Skip to content

Instantly share code, notes, and snippets.

@MjHead
Created June 11, 2019 14:48
Show Gist options
  • Select an option

  • Save MjHead/3df6d8237e0ea118428d15e21fdeb44b to your computer and use it in GitHub Desktop.

Select an option

Save MjHead/3df6d8237e0ea118428d15e21fdeb44b to your computer and use it in GitHub Desktop.
<?php
/**
* Testimonials start template
*/
$settings = $this->get_settings();
$data_settings = $this->generate_setting_json();
$use_comment_corner = $this->get_settings( 'use_comment_corner' );
$class_array[] = 'jet-testimonials__instance';
$class_array[] = 'elementor-slick-slider';
if ( filter_var( $use_comment_corner, FILTER_VALIDATE_BOOLEAN ) ) {
$class_array[] = 'jet-testimonials--comment-corner';
}
$classes = implode( ' ', $class_array );
$dir = is_rtl() ? 'rtl' : 'ltr';
$data_settings = str_replace( '}\'', ',"centerMode":true}\'', $data_settings );
?>
<div class="<?php echo $classes; ?>" <?php echo $data_settings; ?> dir="<?php echo $dir; ?>">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment