<?php
/**
* The template part for displaying content
*
* @package WordPress
* @subpackage Ben_Goldsworthy
* @since Ben Goldsworthy 1.0
*/
?>
<div class="col-m-6 col-4 col-w-3">
<a href="<?php the_permalink(); ?>">
<article id="post-<?php the_ID(); ?>" class="index-item" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<header class="entry-header">
<div class="post-header-details">
if (strlen(get_the_title()) > 70) $small= "vsmall";
elseif (strlen(get_the_title()) > 35) $small = "small";
elseif (strlen(get_the_title()) > 12) $small = "qsmall";
<h2 class="post-title <?php echo $small ?>">
<?php echo get_the_title(); ?>
<?php if ($versionNum = get_post_meta( get_the_ID(), 'Program/Version', true )) echo '<span id="version">'.$versionNum.'</span>'; ?>
</h2>
</div>
</header><!-- .entry-header -->
</article><!-- #post-## -->
</a>