-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
105 lines (74 loc) · 3.64 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php get_header(); ?>
<!--page-title area-->
<section class="page-title-area">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="breadcrumb-inner">
<ul class="page-list">
<li><a href="<?php bloginfo("home"); ?>">Anasayfa</a></li>
<li style="padding-left:10px"> <?php
if(is_category()){
single_cat_title();
}
if(is_tag()){
single_tag_title();
}
?></li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!--page-title area end-->
<div class="blog-page-area pd-bottom-80">
<div class="container">
<div class="row">
<div class="col-lg-9 pd-top-50">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="single-blog-inner single-blog-inner-3">
<div class="single-blog-details">
<?php the_post_thumbnail( "resim-800x460" ); ?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="meta">
<span class="date">
<i class="fa fa-calendar"></i>
<?php echo esc_html( human_time_diff( get_the_time('U'), current_time('timestamp') ) ) . ' önce'; ?>
</span>
<span class="comments">
<i class="fa fa-comments"></i>
<?php printf( _nx( '1 Yorum', '%1$s Yorum', get_comments_number(), 'comments title', 'textdomain' ), number_format_i18n( get_comments_number() ) ); ?>
</span>
</div>
<p><?php the_excerpt(); ?></p>
<a class="btn btn-base" href="<?php the_permalink(); ?>">Devamını Görüntüle ➤</a>
</div>
</div>
<?php endwhile; endif; wp_reset_query(); ?>
<nav class="mt-4">
<?php
global $wp_query;
$big = 999999999; // need an unlikely integer
echo '<ul class="sayfalama">';
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages
) );
echo '</ul>';
?>
</nav>
</div>
<div class="col-lg-3 pd-top-50">
<?php include("kategoriler.php"); ?>
<ul class="widgets-atarikafa">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar_Archive') ) : ?>
<?php endif; ?>
</ul>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>