-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-success_stories.php
38 lines (34 loc) · 1.39 KB
/
archive-success_stories.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
<?php get_header(); ?>
<div class="grid-container spacer-top">
<div class="grid-100">
<h1 class="entry-title"><?php
if ( is_day() ) { printf( __( 'Daily Archives: %s', 'catholicsingles' ), get_the_time( get_option( 'date_format' ) ) ); }
elseif ( is_month() ) { printf( __( 'Monthly Archives: %s', 'catholicsingles' ), get_the_time( 'F Y' ) ); }
elseif ( is_year() ) { printf( __( 'Yearly Archives: %s', 'catholicsingles' ), get_the_time( 'Y' ) ); }
else { _e( 'Success Stories', 'catholicsingles' ); }
?></h1>
</div>
<div class="grid-100 alternate-row-colors">
<?php $counter = 0 ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php $counter++; ?>
<div class="post-preview grid-container row">
<?php if($counter % 2 == 1): ?>
<div class="grid-30 tablet-grid-33 mobile-grid-33">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('medium'); } ?>
</div>
<?php endif; ?>
<div class="grid-70 tablet-grid-66 mobile-grid-66">
<?php the_content(); ?>
</div>
<?php if($counter % 2 == 0): ?>
<div class="grid-30 tablet-grid-33 mobile-grid-33">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('medium'); } ?>
</div>
<?php endif; ?>
</div>
<?php endwhile; endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>