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>