<?php } ?> </div><!-- .wpex-slider-slide sp-slide --> <?php } ?> </div><!-- .wpex-slider-slides .sp-slides --> <?php // Display nav thumbnails if ('large-image-entry-style' == wpex_blog_entry_style()) { ?> <div class="wpex-slider-thumbnails sp-thumbnails"> <?php // Loop through attachments foreach ($attachments as $attachment) { ?> <?php // Display image thumbnail wpex_blog_entry_thumbnail(array('attachment' => $attachment, 'class' => 'wpex-slider-thumbnail sp-thumbnail', 'alt' => get_post_meta($attachments, '_wp_attachment_image_alt', true))); ?> <?php } ?> </div><!-- .wpex-slider-thumbnails -->
<?php /** * Blog entry layout * * @package Total WordPress theme * @subpackage Partials * @version 3.0.0 */ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // Get post data $post_format = get_post_format(); $entry_style = wpex_blog_entry_style(); // Quote format is completely different if ('quote' == $post_format) { // Get quote entry content get_template_part('partials/blog/blog-entry-quote'); // Don't run any other code in this file return; } // Add classes to the blog entry post class - see framework/blog/blog-functions $classes = wpex_blog_entry_classes(); // Get layout blocks $blocks = wpex_blog_entry_layout_blocks(); ?> <article id="post-<?php the_ID();
/** * Returns correct blog entry classes * * @since 1.1.6 */ function wpex_blog_entry_classes() { // Define classes array $classes = array(); // Entry Style $entry_style = wpex_blog_entry_style(); // Core classes $classes[] = 'blog-entry'; $classes[] = 'clr'; // Masonry classes if ('masonry' == wpex_blog_grid_style()) { $classes[] = 'isotope-entry'; } // Equal heights if (wpex_blog_entry_equal_heights()) { $classes[] = 'blog-entry-equal-heights'; } // Add columns for grid style entries if ($entry_style == 'grid-entry-style') { $classes[] = 'col'; $classes[] = wpex_grid_class(wpex_blog_entry_columns()); } // No Featured Image Class, don't add if oembed or self hosted meta are defined if (!has_post_thumbnail() && '' == get_post_meta(get_the_ID(), 'wpex_post_self_hosted_shortcode', true) && '' == get_post_meta(get_the_ID(), 'wpex_post_oembed', true)) { $classes[] = 'no-featured-image'; } // Blog entry style $classes[] = $entry_style; // Avatar if ($avatar_enabled = wpex_get_mod('blog_entry_author_avatar')) { $classes[] = 'entry-has-avatar'; } // Counter global $wpex_count; if ($wpex_count) { $classes[] = 'col-' . $wpex_count; } // Apply filters to entry post class for child theming $classes = apply_filters('wpex_blog_entry_classes', $classes); // Rturn classes array return $classes; }