HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/shootinschool/vc_templates/stm_trophy.php
<?php
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );

$post_thumbnail = wpb_getImageBySize( array(
	'attach_id' => $image,
	'thumb_size' => $image_size
) );

$height = '';
$height_new = explode('x', $image_size);

if(!empty($height_new[1])) {
	$height = 'style="min-height:' . $height_new[1] . 'px;"';
}

?>

<div class="stm-single-trophy">
	<?php if(!empty($post_thumbnail['thumbnail'])): ?>
		<div class="image" <?php echo sanitize_text_field($height); ?>>
			<?php echo wp_kses_post($post_thumbnail['thumbnail']); ?>
		</div>
	<?php endif; ?>

	<?php if(!empty($year)): ?>
		<div class="stm-year h6">
			<?php echo esc_attr($year); ?>
		</div>
	<?php endif; ?>

	<?php if(is_layout("sccr")) : ?>
		<div class="stm-border stm-animated"></div>
	<?php endif; ?>

	<?php if(!empty($title)): ?>
		<div class="stm-title heading-font">
			<?php echo esc_attr($title); ?>
		</div>
	<?php endif; ?>
	<?php if(!is_layout("sccr")) : ?>
		<div class="stm-border stm-animated"></div>
	<?php endif; ?>

</div>