This repository has been archived by the owner on Nov 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
76 lines (57 loc) · 2.87 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
<?php get_header();?>
<!-- Ads -->
<?php get_template_part('inc/reklam-buyuk'); ?>
<!-- Ads -->
<!-- Content -->
<div id="content" class="col-md-7 col-md-offset-1">
<div class="col-md-12">
<div class="col-md-3"><h1 class="section-headtext">Arama: <?php printf( __( '%s', 'hills' ), get_search_query() ); ?></h1></div>
<div class="col-md-9"><hr class="sari-cizgi" /></div>
</div>
<div class="col-md-12 posts">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="post row">
<div class="post-img col-md-4">
<a href="<?php the_permalink('') ?>">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail( array(725, 450), array( 'class' => 'img-responsive', 'style'=>'max-width:100%;height:auto' ) );
}
else { ?>
<img src="<?php bloginfo('template_url'); ?>/img/no-image.jpg" alt="" class="img-responsive">
<?php } ?>
</a>
</div>
<div class="post-content col-md-8">
<div class="post-headtext"><h1><a href="<?php the_permalink('') ?>"><?php the_title(''); ?></a></h1></div>
<div class="post-text">
<p><?php the_excerpt(''); ?></p>
</div>
<div class="post-info">
<div class="post-time"><i class="fa fa-clock-o" aria-hidden="true"></i><?php the_time('d-F') ?></div>
<div class="post-category"><i class="fa fa-square" aria-hidden="true" style="color:#ffcc01;"></i> <?php kategori_yazdir(); ?></div>
</div>
</div>
</div>
<hr class="siyah-cizgi">
<?php endwhile; ?>
<?php endif; ?>
<?php if(!have_posts()) : ?>
<h3>Aramanız için sonuç bulunamadı, belki şunlar ilginizi çekebilir;</h3>
<div class="widget-hr">
<div class="sari-cizgi-2"></div><div class="siyah-cizgi-2"></div>
</div>
<?php rastgele_yazi('3'); ?>
<?php endif; ?>
</div>
<div class="col-md-12 col-md-offset-4">
<?php echo sayfalama(); ?>
</div>
</div>
<!-- Content -->
<!-- Sidebar -->
<?php get_sidebar(); ?>
<!-- Sidebar -->
<!-- Footer -->
<?php get_footer(); ?>
<!-- Footer -->