echo get_the_date(); ?> </time> <cite class="article-author" role="author"><?php the_author_posts_link(); ?> </cite> </hgroup> </header> <?php if (!is_singular()) { ?> <div class="article-summary"> <?php if (spine_has_thumbnail_image()) { ?> <figure class="article-thumbnail"><a href="<?php the_permalink(); ?> "><?php spine_the_thumbnail_image(); ?> </a></figure><?php } elseif (spine_has_featured_image()) { ?> <figure class="article-thumbnail"><a href="<?php the_permalink(); ?> "><?php the_post_thumbnail('spine-thumbnail_size');
/** * Add excerpt style in classes to article on list views. * * @param array $classes List of classes to be added to the article element. * * @return array Modified list of classes. */ function spine_excerpt_style_classes($classes) { global $post; if (!is_singular()) { if ($post->post_excerpt) { $classes[] = "summary-excerpted"; } elseif (strstr($post->post_content, '<!--more-->')) { $classes[] = "summary-divided"; } elseif ('excerpt' === spine_get_option('archive_content_display')) { $classes[] = "summary-truncated"; } else { $classes[] = "summary-unabridged"; } if (spine_has_background_image()) { $classes[] = 'has-background-image'; } if (spine_has_featured_image()) { $classes[] = 'has-featured-image'; } if (spine_has_thumbnail_image()) { $classes[] = 'has-thumbnail-image'; } } return $classes; }