-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop.php
More file actions
executable file
·62 lines (44 loc) · 1.84 KB
/
loop.php
File metadata and controls
executable file
·62 lines (44 loc) · 1.84 KB
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
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<!-- Article -->
<?php $special_class = in_category( of_get_option( 'special_post_category', '' ) ) ? "spritz_special" : '' ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $special_class ); ?> >
<div class="inner">
<div class="prefix"><?php spritz_posted_on(); ?> - <?php the_tags(''); ?></div>
<!-- Post Title -->
<h2>
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a>
</h2>
<!-- /Post Title -->
<!-- Post Details -->
<ul class="post_details">
<li class="posted_by"><span class="postit"><?php spritz_posted_by(); ?></span></li>
</ul>
<!-- /Post Details -->
<!-- Post Thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<div class="catribbon"><?php
$category = get_the_category();
echo '<span>' . $category[0]->cat_name . '</span>';
?></div>
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" class="thumbnail post_thumbnail" >
<?php echo the_post_thumbnail(); // Declare pixel size you need inside the array ?>
</a>
<?php endif; ?>
<!-- /Post Thumbnail -->
<?php spritz_excerpt( 'spritz_index' ); // Build your custom callback length in functions.php ?>
<?php #edit_post_link('Edit','<span class="label">', '</span>'); # uncomment at will?>
</div>
</article>
<!-- /Article -->
<?php endwhile; ?>
<?php else: ?>
<!-- Article -->
<article>
<div class="inner">
<h2><?php _e( 'Sorry, nothing to display.', 'spritz' ); ?></h2>
<p><?php _e( 'You are looking for an empty page. We are sorry for the inconvenience.', 'spritz' ); ?></p>
<p><a href="/"><?php _e( 'Return to home', 'spritz' ); ?></a></p>
</div>
</article>
<!-- /Article -->
<?php endif; ?>