| Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 Path : /home/eglisebaa/www/wp-content/plugins/trx_addons/components/cpt/testimonials/ |
| Current File : /home/eglisebaa/www/wp-content/plugins/trx_addons/components/cpt/testimonials/tpl.default-item.php |
<?php
/**
* The style "default" of the Testimonials
*
* @package WordPress
* @subpackage ThemeREX Addons
* @since v1.4.3
*/
$args = get_query_var('trx_addons_args_sc_testimonials');
$meta = get_post_meta(get_the_ID(), 'trx_addons_options', true);
$title = get_the_title();
if ($args['slider']) {
?><div class="slider-slide swiper-slide"><?php
} else if ((int)$args['columns'] > 1) {
?><div class="<?php echo esc_attr(trx_addons_get_column_class(1, $args['columns'], !empty($args['columns_tablet']) ? $args['columns_tablet'] : '', !empty($args['columns_mobile']) ? $args['columns_mobile'] : '')); ?>"><?php
}
?>
<div data-post-id="<?php the_ID(); ?>" class="sc_testimonials_item">
<div class="sc_testimonials_item_content"><?php
if (has_excerpt())
the_excerpt();
else
the_content();
?></div>
<div class="sc_testimonials_item_author">
<?php if ( has_post_thumbnail() ) { ?>
<div class="sc_testimonials_item_author_avatar"><?php the_post_thumbnail( apply_filters('trx_addons_filter_thumb_size', trx_addons_get_thumb_size('tiny'), 'testimonials-default'), array('alt' => get_the_title()) ); ?></div>
<?php } else if( !empty($args['use_initials']) && trx_addons_is_on($args['use_initials']) && ($title_initials = trx_addons_get_initials($title)) ) { ?>
<div class="sc_testimonials_item_author_avatar sc_testimonials_avatar_with_initials"><span class="sc_testimonials_item_author_initials"><?php echo esc_html($title_initials)?></span></div>
<?php } ?>
<div class="sc_testimonials_item_author_data">
<h4 class="sc_testimonials_item_author_title"><?php trx_addons_show_layout($title); ?></h4>
<div class="sc_testimonials_item_author_subtitle"><?php echo esc_html($meta['subtitle']);?></div>
</div>
</div>
</div>
<?php
if ($args['slider'] || (int)$args['columns'] > 1) {
?></div><?php
}