Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Template for Featured Image in Archive Content
- *
- * Overriding Parent Theme
- *
- * @since Clean Journal Child
- */
- function clean_journal_archive_content_image() {
- $options = clean_journal_get_theme_options();
- $featured_image = $options['content_layout'];
- if ( has_post_thumbnail() ) { ?>
- <figure class="featured-image">
- <a rel="bookmark" href="<?php the_permalink(); ?>">
- <?php
- if ( 'excerpt-image-left' == $featured_image || 'excerpt-image-right' == $featured_image ) {
- the_post_thumbnail( 'clean-journal-landscape' );
- }
- elseif ( 'excerpt-image-top' == $featured_image ) {
- the_post_thumbnail( 'clean-journal-featured' );
- }
- else {
- the_post_thumbnail( 'full' );
- }
- ?>
- </a>
- </figure>
- <?php
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement