File: /home/reachcon/public_html/wp-content/themes/reach-connects/archive.php
<?php
// THIS FILE HANDLES THE LISTING OF YOUR BLOG ARGICLES.
// THIS PAGE ALSO USES THE DEFAULT SIDEBAR
global $omada,$omadaLayout;
get_header();
?>
<main class="grid-container">
<div class="grid-x grid-padding-x">
<div class="cell medium-8">
<article id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<h1 class="archive-title"><?php
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'omada' ), '<span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'omada' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'omada' ) ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'omada' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'omada' ) ) . '</span>' );
else :
_e( 'Archives', 'omada' );
endif;
?></h1>
</header>
<?php
while ( have_posts() ) : the_post();?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
<div class="featured-post">
<?php _e( 'Featured post', 'omada' ); ?>
</div>
<?php endif; ?>
<?php
// The thumbnail is being removed for this theme. The following line will display the thumbnail.
//if ( ! post_password_required() && ! is_attachment() ) : the_post_thumbnail(); endif;
?>
<div class="row">
<div class="xlarge-1 large-2 medium-3 columns show-for-medium">
<div class="callout secondary tyspc text-center">
<div class="callout">
<span class="day"><?php echo the_time('d'); ?></span><br />
<span class="bold"> <?php echo $test = the_time('M'); ?> </span>
</div>
<?php if ( comments_open() ) : ?>
<span class="post-comments"><a href="<?php the_permalink(); ?>#comments" title="<?php echo esc_attr( sprintf( __( 'Leave a comment on %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php echo comments_number('0','1','%'); ?><br><small>Comments</small></a></span>
<?php endif; ?>
</div>
</div>
<div class="xlarge-11 large-10 medium-9 columns">
<?php if ( is_single() ) : ?>
<h1><?php the_title(); ?></h1>
<?php else : ?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a><small><?php edit_post_link( __( 'Edit', 'omada' ), ' - <span class="edit-link">', '</span>' ); ?></small></h2>
<?php endif; // is_single() ?>
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php omada_excerpt(get_the_ID()); ?>
<?php if(get_the_category()):?>
<footer class="entry-meta">
<div class="callout tyspc"><small><strong>Categories:</strong> <?php the_category(', '); ?></small></div>
</footer>
<?php endif;?>
<a href="<?php the_permalink(); ?>" class="button" >Continue Reading</a>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php omada_excerpt(get_the_ID()); ?>
<?php if(get_the_category()):?>
<footer class="entry-meta">
<div class="callout tyspc"><small><strong>Categories:</strong> <?php the_category(', '); ?></small></div>
</footer>
<?php endif;?>
<?php //the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'omada' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'omada' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
</div>
</div>
<div class="smspc borderBottom"></div>
</div>
<?php
endwhile;
echo '<div class="spc"></div>';
$omadaLayout->postNavigation( 'nav-below' );
?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</article>
</div>
<div class="cell medium-4">
<div id="secondary" class="widget-area" role="complementary">
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<aside class="first front-widgets">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</aside>
<?php endif; ?>
</div>
</div>
</div>
</main>
<?php get_footer(); ?>