HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User: scientificreligi (1062)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/scientificreligi/www/wp-content/plugins/auteur-framework/elements/events-slider/template.php
<?php
// Do not allow directly accessing this file.
if (!defined('ABSPATH')) {
	exit('Direct script access denied.');
}

/**
 * @var $element UBE_Element_Auteur_Events_Slider
 */

$atts = $element->get_settings_for_display();

$wrapper_classes = array(
	'ube__events',
	'gf-events',
	'clearfix',
	"gf-event-{$atts['post_layout']}",
);

$element->set_render_attribute('wrapper', array(
	'class' => $wrapper_classes
));

$query_args = array(
	'post_type' => Tribe__Events__Main::POSTTYPE,
);

$post_image_size = isset($atts['image_size']) ? $atts['image_size'] : 'medium';
$post_image_width = isset($atts['post_image_width']) ? $atts['post_image_width'] : '400';
$post_layout = isset($atts['post_layout']) ? $atts['post_layout'] : 'grid';
$post_image_ratio_width = isset($atts['post_image_ratio_width']) ? $atts['post_image_ratio_width'] : '';
$post_image_ratio_height = isset($atts['post_image_ratio_height']) ? $atts['post_image_ratio_height'] : '';

$settings = array(
	'post_layout' => $post_layout,
	'image_size' => $post_image_size,
	'image_width' => array(
		'width' => $post_image_width
	),
	'image_ratio_custom' => array(
		'width' => $post_image_ratio_width,
		'height' => $post_image_ratio_height
	)
);
$atts['is_slider'] = true;
$element->prepare_display($atts, $query_args, $settings);
?>
<div <?php echo $element->get_render_attribute_string('wrapper') ?>>
	<?php $element->layout_markup($element->_query_args, $element->_settings) ?>
</div>