function x_ethos_featured_index() { $entry_id = get_the_ID(); $index_featured_layout = get_post_meta($entry_id, '_x_ethos_index_featured_post_layout', true); $index_featured_size = get_post_meta($entry_id, '_x_ethos_index_featured_post_size', true); $index_featured_layout_class = $index_featured_layout == 'on' ? ' featured' : ''; $index_featured_size_class = $index_featured_layout == 'on' ? ' ' . strtolower($index_featured_size) : ''; $is_index_featured_layout = $index_featured_layout == 'on' && !is_single(); ?> <a href="<?php the_permalink(); ?> " class="entry-thumb<?php echo $index_featured_layout_class; echo $index_featured_size_class; ?> " style="<?php echo x_ethos_entry_cover_background_image_style(); ?> "> <?php if ($is_index_featured_layout) { ?> <span class="featured-meta"><?php echo x_ethos_post_categories(); ?> / <?php echo get_the_date('F j, Y'); ?> </span> <h2 class="h-featured"><span><?php x_the_alternate_title(); ?> </span></h2> <span class="featured-view">View Post</span> <?php } else { ?> <span class="view">View Post</span> <?php } ?> </a> <?php }
?> " <?php post_class('x-post-slider-entry'); ?> style="<?php echo x_ethos_entry_cover_background_image_style(); ?> "> <a href="<?php the_permalink(); ?> "> <div class="cover"> <div class="middle"> <span class="featured-meta"><?php echo x_ethos_post_categories(); ?> / <?php echo get_the_date('F j, Y'); ?> </span> <h2 class="h-featured"><span><?php x_the_alternate_title(); ?> </span></h2> <span class="featured-view"><?php _e('View Post', '__x__'); ?> </span> </div> </div>
<?php // ============================================================================= // VIEWS/ETHOS/_INDEX-FEATURED.PHP // ----------------------------------------------------------------------------- // Featured content output for the index pages. // ============================================================================= $index_layout = get_post_meta(get_the_ID(), '_x_ethos_index_featured_post_layout', true); $class = $index_layout == 'on' ? 'featured' : ''; $background_image_style = x_ethos_entry_cover_background_image_style(); $categories = x_ethos_post_categories(); ?> <a href="<?php the_permalink(); ?> " class="entry-thumb <?php echo $class; ?> " style="<?php echo $background_image_style; ?> "> <?php if ($index_layout == 'on' && !is_single()) { ?> <span class="featured-meta"><?php echo $categories; ?> / <?php