first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<?php
/**
* Image Comparison wrap end template
*/
?>
</div>

View File

@@ -0,0 +1,24 @@
<?php
/**
* Image Comparison item template
*/
$settings = $this->get_settings();
$prevArrow = $settings['handle_prev_arrow'];
$nextArrow = $settings['handle_next_arrow'];
$starting_position = $settings['starting_position'];
$starting_position_string = $starting_position['size'] . $starting_position['unit'];
$item_before_label = $this->__loop_item( array( 'item_before_label' ), 'data-label="%s"' );
$item_before_image = $this->__loop_item( array( 'item_before_image', 'url' ), '%s' );
$item_after_label = $this->__loop_item( array( 'item_after_label' ), 'data-label="%s"' );
$item_after_image = $this->__loop_item( array( 'item_after_image', 'url' ), '%s' );
?>
<div class="jet-image-comparison__item">
<div class="jet-image-comparison__container jet-juxtapose" data-prev-icon="<?php echo $prevArrow; ?>" data-next-icon="<?php echo $nextArrow; ?>" data-makeresponsive="true" data-startingposition="<?php echo $starting_position_string; ?>">
<img class="jet-image-comparison__before-image a3-notlazy" src="<?php echo $item_before_image; ?>" <?php echo $item_before_label; ?> alt="" data-no-lazy="1">
<img class="jet-image-comparison__after-image a3-notlazy" src="<?php echo $item_after_image; ?>" <?php echo $item_after_label; ?> alt="" data-no-lazy="1">
</div>
</div>

View File

@@ -0,0 +1,20 @@
<?php
/**
* Image Comparison start template
*/
$settings = $this->get_settings();
$data_settings = $this->generate_setting_json();
$class_array[] = 'jet-image-comparison__instance';
$class_array[] = 'elementor-slick-slider';
$classes = implode( ' ', $class_array );
$dir = is_rtl() ? 'rtl' : 'ltr';
if ( filter_var( $settings['arrows'], FILTER_VALIDATE_BOOLEAN ) ) {
echo sprintf( '<div class="jet-image-comparison__prev-arrow-%s jet-arrow prev-arrow">%s</div>', $this->get_id(), $this->__render_icon( 'prev_arrow', '%s', '', false ) );
echo sprintf( '<div class="jet-image-comparison__next-arrow-%s jet-arrow next-arrow">%s</div>', $this->get_id(), $this->__render_icon( 'next_arrow', '%s', '', false ) );
}
?><div class="<?php echo $classes; ?>" <?php echo $data_settings; ?> dir="<?php echo $dir; ?>">

View File

@@ -0,0 +1,11 @@
<?php
/**
* Image Comparison template
*/
$classes_list[] = 'jet-image-comparison';
$classes = implode( ' ', $classes_list );
?><div class="<?php echo $classes; ?>">
<?php $this->__get_global_looped_template( 'image-comparison', 'item_list' ); ?>
</div>