-
Notifications
You must be signed in to change notification settings - Fork 1
/
feature-full.php
54 lines (46 loc) · 1.12 KB
/
feature-full.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
<div id="feature" class="full slider">
<ul>
<?php
$boloday = get_option('boloday');
$args = array(
'posts_per_page' => $boloday[5],
'tag' => $boloday[4],
'orderby' => 'date',
'order' => 'DESC'
);
query_posts( $args );
while(have_posts() ) : the_post();
?>
<li>
<div class="desktop">
<?php the_post_thumbnail('feature_full'); ?>
</div>
<div class="mobile">
<?php the_post_thumbnail('homepage_thumbnail'); ?>
</div>
<div class="inner">
<div class="article">
<div class="nav">
<span class="pre">‹</span>
<span class="next">›</span>
</div>
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
</div>
</div>
<?php
$data = wp_get_attachment_metadata( get_post_thumbnail_id() );
if($data['image_meta']['copyright']) {
?>
<div class="copyright">
<?php _e('Photo ©', 'boloday'); ?> <?php echo $data['image_meta']['copyright']; ?>
</div>
<?php } ?>
</li>
<?php
endwhile;
wp_reset_query();
?>
</ul>
</div>