> <?php if ($media_position === 'below') { ?> <?php get_template_part('partials/blog/posts/normal/post', 'header'); ?> <?php } ?> <div class="post-media"> <?php if (!is_search()) { if ($gallery_ids !== null) { echo oxy_shortcode_slideshow(array('ids' => $gallery_ids, 'animation' => $theme_options['animation'], 'speed' => $theme_options['speed'], 'duration' => $theme_options['duration'], 'directionnav' => $theme_options['directionnav'], 'itemwidth' => '', 'showcontrols' => $theme_options['showcontrols'], 'controlsposition' => $theme_options['controlsposition'], 'controlsalign' => $theme_options['controlsalign'], 'captions' => $theme_options['captions'], 'captions_horizontal' => $theme_options['captions_horizontal'], 'autostart' => $theme_options['autostart'], 'tooltip' => $theme_options['tooltip'], 'image_size' => oxy_get_post_image_size(), 'margin_top' => 'no-top', 'margin_bottom' => 'no-bottom', 'scroll_animation' => 'none', 'scroll_animation_delay' => '0')); } else { if (has_post_thumbnail()) { get_template_part('partials/blog/posts/normal/featured-image'); } } } ?> </div> <?php if ($media_position === 'above') { ?> <?php get_template_part('partials/blog/posts/normal/post', 'header'); ?>
<?php /** * Shows a posts featured image * * @package Lambda * @subpackage Admin * @since 0.1 * * @copyright (c) 2015 Oxygenna.com * @license **LICENSE** * @version 1.17.0 */ global $post; $image = get_post_thumbnail_id($post->ID); $image_size = oxy_get_post_image_size(); $src = wp_get_attachment_image_src($image, $image_size); if (false !== $src && is_array($src)) { $src = $src[0]; } $image_link = is_single() ? $src : get_permalink($post->ID); $open_magnific = is_single() ? 'magnific' : ''; $icon = is_single() ? 'plus' : 'link'; ?> <div class="figure fade-in text-center figcaption-middle"> <a href="<?php echo esc_url($image_link); ?> " class="figure-image <?php echo esc_attr($open_magnific); ?>