Created
February 28, 2018 22:48
-
-
Save joshfeck/17aa50fb18fabdd3c562f944498ae7ff to your computer and use it in GitHub Desktop.
Custom template for Unicon theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="page-wrap" class="blog-page blog-medium container"> | |
<div id="content" class="twelve alt columns"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>> | |
<?php if ( has_post_thumbnail() ) { ?> | |
<div class="entry-image"> | |
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'minti'), the_title_attribute('echo=0') ); ?>" rel="bookmark"> | |
<?php the_post_thumbnail('portfolio'); ?> | |
</a> | |
</div> | |
<?php } ?> | |
<div class="entry-wrap"> | |
<div class="entry-title"> | |
<h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'minti'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> | |
</div> | |
<div class="entry-content"> | |
<?php echo wp_kses_post(minti_custom_excerpt(30)); ?> | |
</div> | |
<div class="entry-meta"> | |
<ul> | |
<li class="meta-date"> | |
<?php if(function_exists('espresso_next_upcoming_datetime')){ | |
espresso_next_upcoming_datetime( '', ' ', $post->ID, true); | |
} ?> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</article><!-- #post --> | |
<div class="clear"></div> | |
<?php endwhile; endif; ?> | |
<?php get_template_part( 'framework/inc/nav' ); ?> | |
</div> | |
</div> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment