| Server IP : 89.248.107.232 / Your IP : 216.73.217.70 Web Server : Apache System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : seg ( 10005) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/seg-sa.es/peyco.es/wp-content/themes/StoreFront/layouts/ |
Upload File : |
<?php
/**
*
* The template fragment to show post featured image
*
**/
// disable direct access to the file
defined('GAVERN_WP') or die('Access denied');
global $gk_tpl;
$params = get_post_custom();
$params_image = isset($params['gavern-post-params-image']) ? esc_attr( $params['gavern-post-params-image'][0] ) : 'Y';
?>
<?php if((is_single() || is_page()) && $params_image == 'Y') : ?>
<?php
// if there is a Featured Video
if(get_post_meta(get_the_ID(), "_gavern-featured-video", true) != '') :
?>
<?php echo get_post_meta(get_the_ID(), "_gavern-featured-video", true); ?>
<?php elseif(has_post_thumbnail()) : ?>
<figure class="featured-image">
<?php if(is_sticky()) : ?>
<sup>
<?php _e( 'Featured', GKTPLNAME ); ?>
</sup>
<?php endif; ?>
<?php the_post_thumbnail(); ?>
<?php if(is_single() || is_page()) : ?>
<?php echo gk_post_thumbnail_caption(); ?>
<?php endif; ?>
</figure>
<?php endif; ?>
<?php elseif(!(is_single() || is_page())) : ?>
<?php
// if there is a Featured Video
if(get_post_meta(get_the_ID(), "_gavern-featured-video", true) != '') :
?>
<?php echo get_post_meta(get_the_ID(), "_gavern-featured-video", true); ?>
<?php elseif(has_post_thumbnail()) : ?>
<figure class="featured-image category">
<?php if(is_sticky()) : ?>
<sup>
<?php _e( 'Featured', GKTPLNAME ); ?>
</sup>
<?php endif; ?>
<a href="<?php the_permalink(); ?>" alt="<?php the_title(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php if(is_single() || is_page()) : ?>
<?php echo gk_post_thumbnail_caption(); ?>
<?php endif; ?>
</figure>
<?php endif; ?>
<?php endif; ?>