Created
January 22, 2014 17:06
-
-
Save jdcauley/8562690 to your computer and use it in GitHub Desktop.
edit lib/content.php
This file contains hidden or 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
<div class="col-md-3 post-grid"> | |
<article <?php post_class(); ?>> | |
<header> | |
<a href="<?php the_permalink(); ?>"> | |
<?php if (has_post_thumbnail()): ?> | |
<?php the_post_thumbnail('', array('class' => 'center img-responsive')); ?> | |
<?php else : ?> | |
<img class="center img-responsive" src="<?php echo get_template_directory_uri(); ?>/assets/img/placeholder.jpg"> | |
<?php endif; ?> | |
</a> | |
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | |
<?php get_template_part('templates/entry-meta'); ?> | |
</header> | |
<div class="entry-summary"> | |
<?php the_excerpt(); ?> | |
</div> | |
</article> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment