Almost done

This commit is contained in:
rumperuu 2017-04-11 07:22:35 +00:00
parent b0a265ea24
commit 98ea090b9f
19 changed files with 2056 additions and 774 deletions

View file

@ -12,15 +12,17 @@
<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">
<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
<span class="sticky-post"><?php _e( 'Featured', 'bengoldsworthy' ); ?></span>
<?php endif; ?>
<?php
if (strlen(get_the_title()) > 70) $small= "vsmall";
elseif (strlen(get_the_title()) > 35) $small = "small";
the_title( '<h2 class="post-title '.$small.'">', '</h2>' );
?>
<div class="post-header-details">
<?php
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>