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,221 @@
<?php
/**
* Main dashboard template
*/
?><div id="jet-elements-settings-page">
<div class="jet-elements-settings-page">
<h1 class="cs-vui-title"><?php _e( 'JetElements Settings', 'jet-elements' ); ?></h1>
<div class="cx-vui-panel">
<cx-vui-tabs
:in-panel="false"
value="general-settings"
layout="vertical">
<?php do_action( 'jet-elements/settings-page-template/tabs-start' ); ?>
<cx-vui-tabs-panel
name="general-settings"
label="<?php _e( 'General settings', 'jet-elements' ); ?>"
key="general-settings">
<cx-vui-switcher
name="svg_uploads"
label="<?php _e( 'SVG images upload status', 'jet-elements' ); ?>"
description="<?php _e( 'Enable or disable SVG images uploading', 'jet-elements' ); ?>"
:wrapper-css="[ 'equalwidth' ]"
return-true="enabled"
return-false="disabled"
v-model="pageOptions.svg_uploads.value">
</cx-vui-switcher>
<cx-vui-switcher
name="jet_templates"
label="<?php _e( 'Use Jet Templates', 'jet-elements' ); ?>"
description="<?php _e( 'Add Jet page templates and blocks to Elementor templates library.', 'jet-elements' ); ?>"
:wrapper-css="[ 'equalwidth' ]"
return-true="enabled"
return-false="disabled"
v-model="pageOptions.jet_templates.value">
</cx-vui-switcher>
<cx-vui-select
name="widgets_load_level"
label="<?php _e( 'Editor Load Level', 'jet-elements' ); ?>"
description="<?php _e( 'Choose a certain set of options in the widgets Style tab by moving the slider, and improve your Elementor editor performance by selecting appropriate style settings fill level (from None to Full level)', 'jet-elements' ); ?>"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
:options-list="pageOptions.widgets_load_level.options"
v-model="pageOptions.widgets_load_level.value">
</cx-vui-select>
</cx-vui-tabs-panel>
<cx-vui-tabs-panel
name="api-integrations"
label="<?php _e( 'Integrations', 'jet-elements' ); ?>"
key="api-integrations">
<div
class="cx-vui-subtitle"
v-html="'<?php _e( 'Google Maps', 'jet-elements' ); ?>'"></div>
<cx-vui-input
name="google-map-api-key"
label="<?php _e( 'Google Map API Key', 'jet-elements' ); ?>"
description="<?php
echo sprintf( esc_html__( 'Create own API key, more info %1$s', 'jet-elements' ),
htmlspecialchars( "<a href='https://developers.google.com/maps/documentation/javascript/get-api-key' target='_blank'>here</a>", ENT_QUOTES )
);
?>"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
v-model="pageOptions.api_key.value"></cx-vui-input>
<cx-vui-switcher
name="google-map-disable-api-js"
label="<?php _e( 'Disable Google Maps API JS file', 'jet-elements' ); ?>"
description="<?php _e( 'Disable Google Maps API JS file, if it already included by another plugin or theme', 'jet-elements' ); ?>"
:wrapper-css="[ 'equalwidth' ]"
return-true="true"
return-false="false"
v-model="pageOptions.disable_api_js.value.disable">
</cx-vui-switcher>
<div
class="cx-vui-subtitle"
v-html="'<?php _e( 'MailChimp', 'jet-elements' ); ?>'"></div>
<cx-vui-input
name="mailchimp-api-key"
label="<?php _e( 'MailChimp API key', 'jet-elements' ); ?>"
description="<?php
echo sprintf( esc_html__( 'Input your MailChimp API key %1$s', 'jet-elements' ),
htmlspecialchars( "<a href='http://kb.mailchimp.com/integrations/api-integrations/about-api-keys' target='_blank'>About API Keys</a>", ENT_QUOTES )
);
?>"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
v-model="pageOptions['mailchimp-api-key'].value"></cx-vui-input>
<cx-vui-input
name="mailchimp-list-id"
label="<?php _e( 'MailChimp list ID', 'jet-elements' ); ?>"
description="<?php
echo sprintf( esc_html__( 'Input MailChimp list ID %1$s', 'jet-elements' ),
htmlspecialchars( "<a href='http://kb.mailchimp.com/integrations/api-integrations/about-api-keys' target='_blank'>About Mailchimp List Keys</a>", ENT_QUOTES )
);?>"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
v-model="pageOptions['mailchimp-list-id'].value"></cx-vui-input>
<cx-vui-switcher
name="mailchimp-double-opt-in"
label="<?php _e( 'Double opt-in', 'jet-elements' ); ?>"
description="<?php _e( 'Send contacts an opt-in confirmation email when they subscribe to your list.', 'jet-elements' ); ?>"
:wrapper-css="[ 'equalwidth' ]"
return-true="true"
return-false="false"
v-model="pageOptions['mailchimp-double-opt-in'].value">
</cx-vui-switcher>
<div
class="cx-vui-subtitle"
v-html="'<?php _e( 'Instagram', 'jet-elements' ); ?>'"></div>
<cx-vui-input
name="insta-access-token"
label="<?php _e( 'Access Token', 'jet-elements' ); ?>"
description="<?php
echo sprintf( esc_html__( 'Read more about how to get Instagram Access Token %1$s', 'jet-elements' ),
htmlspecialchars( "<a href='https://instagram.pixelunion.net/' target='_blank'>here</a>", ENT_QUOTES )
); ?>"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
v-model="pageOptions.insta_access_token.value"></cx-vui-input>
<div
class="cx-vui-subtitle"
v-html="'<?php _e( 'Weatherbit.io API (APIXU API deprecated)', 'jet-elements' ); ?>'"></div>
<cx-vui-input
name="weatherstack-api-key"
label="<?php _e( 'Weatherbit.io API Key', 'jet-elements' ); ?>"
description="<?php
echo sprintf( esc_html__( 'Create own Weatherbit.io API key, more info %1$s', 'jet-elements' ),
htmlspecialchars( "<a href='https://www.weatherbit.io/' target='_blank'>here</a>", ENT_QUOTES )
);?>"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
v-model="pageOptions.weather_api_key.value"></cx-vui-input>
</cx-vui-tabs-panel>
<cx-vui-tabs-panel
name="available-widgets"
label="<?php _e( 'Available Widgets', 'jet-elements' ); ?>"
key="available-widgets">
<div class="jet-elements-settings-page__disable-all-widgets">
<div class="cx-vui-component__label">
<span v-if="disableAllWidgets"><?php _e( 'Disable All Widgets', 'jet-elements' ); ?></span>
<span v-if="!disableAllWidgets"><?php _e( 'Enable All Widgets', 'jet-elements' ); ?></span>
</div>
<cx-vui-switcher
name="disable-all-avaliable-widgets"
:prevent-wrap="true"
:return-true="true"
:return-false="false"
@input="disableAllWidgetsEvent"
v-model="disableAllWidgets">
</cx-vui-switcher>
</div>
<div class="jet-elements-settings-page__avaliable-controls">
<div
class="jet-elements-settings-page__avaliable-control"
v-for="(option, index) in pageOptions.avaliable_widgets.options">
<cx-vui-switcher
:key="index"
:name="`avaliable-widget-${option.value}`"
:label="option.label"
:wrapper-css="[ 'equalwidth' ]"
return-true="true"
return-false="false"
v-model="pageOptions.avaliable_widgets.value[option.value]"
>
</cx-vui-switcher>
</div>
</div>
</cx-vui-tabs-panel>
<cx-vui-tabs-panel
name="available-extensions"
label="<?php _e( 'Available Extensions', 'jet-elements' ); ?>"
key="available-extensions">
<div class="jet-elements-settings-page__avaliable-controls">
<div
class="jet-elements-settings-page__avaliable-control"
v-for="(option, index) in pageOptions.avaliable_extensions.options">
<cx-vui-switcher
:key="index"
:name="`avaliable-extension-${option.value}`"
:label="option.label"
:wrapper-css="[ 'equalwidth' ]"
return-true="true"
return-false="false"
v-model="pageOptions.avaliable_extensions.value[option.value]"
>
</cx-vui-switcher>
</div>
</div>
</cx-vui-tabs-panel>
<?php do_action( 'jet-elements/settings-page-template/tabs-end' ); ?>
</cx-vui-tabs>
</div>
</div>
</div>

View File

@@ -0,0 +1,49 @@
<?php
/**
* Animated box action button
*/
$position = $this->get_settings_for_display( 'button_icon_position' );
$use_icon = $this->get_settings_for_display( 'add_button_icon' );
$button_url = $this->get_settings_for_display( 'back_side_button_link' );
if ( empty( $button_url ) ) {
return false;
}
if ( is_array( $button_url ) && empty( $button_url['url'] ) ) {
return false;
}
$this->add_render_attribute( 'url', 'class', array(
'elementor-button',
'elementor-size-md',
'jet-animated-box__button',
'jet-animated-box__button--back',
'jet-animated-box__button--icon-' . $position,
) );
if ( is_array( $button_url ) ) {
$this->add_render_attribute( 'url', 'href', $button_url['url'] );
if ( $button_url['is_external'] ) {
$this->add_render_attribute( 'url', 'target', '_blank' );
}
if ( ! empty( $button_url['nofollow'] ) ) {
$this->add_render_attribute( 'url', 'rel', 'nofollow' );
}
} else {
$this->add_render_attribute( 'url', 'href', $button_url );
}
?>
<a <?php echo $this->get_render_attribute_string( 'url' ); ?>><?php
echo $this->__html( 'back_side_button_text', '<span class="jet-animated-box__button-text">%s</span>' );
if ( filter_var( $use_icon, FILTER_VALIDATE_BOOLEAN ) ) {
echo $this->__icon( 'button_icon', '<span class="jet-animated-box__button-icon jet-elements-icon">%s</span>' );
}
?></a>

View File

@@ -0,0 +1,79 @@
<?php
/**
* Loop item template
*/
$widget_id = $this->get_id();
$settings = $this->get_settings();
$title_tag = $this->__get_html( 'title_html_tag', '%s' );
$sub_title_tag = $this->__get_html( 'sub_title_html_tag', '%s' );
$animation_class = $settings['animation_effect'];
switch ( $settings['switch_event_type'] ) {
case 'scratch':
$animation_class = 'jet-box-scratch-effect back-events-inactive';
break;
case 'fold':
$animation_class = 'jet-box-fold-effect';
break;
case 'peel':
$animation_class = 'jet-box-peel-effect';
break;
case 'slide-out':
$slide_direction = isset( $settings['slide_out_direction'] ) ? $settings['slide_out_direction'] : '';
$animation_class = 'jet-box-slide-out-effect slide-out-' . $slide_direction;
break;
}
?><div id="jet-animated-box-<?php echo $widget_id; ?>" class="jet-animated-box <?php echo $animation_class; ?>" <?php echo $this->generate_setting_json(); ?>>
<div id="jet-animated-box__front-<?php echo $widget_id; ?>" class="jet-animated-box__front">
<div class="jet-animated-box__inner"><?php
if ( 'default' === $settings['front_side_content_type'] ) {
$this->__icon( 'front_side_icon', '<div class="jet-animated-box__icon jet-animated-box__icon--front"><div class="jet-animated-box-icon-inner"><span class="jet-elements-icon">%s</span></div></div>' );
?><div class="jet-animated-box__content"><?php
$this->__html( 'front_side_title', '<' . $title_tag . ' class="jet-animated-box__title jet-animated-box__title--front">%s</' . $title_tag . '>' );
$this->__html( 'front_side_subtitle', '<' . $sub_title_tag . ' class="jet-animated-box__subtitle jet-animated-box__subtitle--front">%s</' . $sub_title_tag . '>' );
$this->__html( 'front_side_description', '<p class="jet-animated-box__description jet-animated-box__description--front">%s</p>' );
?></div><?php
} else {
echo $this->get_template_content( $settings['front_side_template_id'] );
}
?></div>
<div class="jet-animated-box__overlay"></div><?php
if( 'toggle' === $settings['switch_event_type'] ) {
?><div class="jet-animated-box__toggle jet-animated-box__toggle--front"><?php
$this->__icon( 'front_side_toggle_icon', '<div class="jet-animated-box__toggle-icon"><span class="jet-elements-icon">%s</span></div>' );
?></div><?php
}
?></div>
<div id="jet-animated-box__back-<?php echo $widget_id; ?>" class="jet-animated-box__back">
<div class="jet-animated-box__inner"><?php
if ( 'default' === $settings['back_side_content_type'] ) {
$this->__icon( 'back_side_icon', '<div class="jet-animated-box__icon jet-animated-box__icon--back"><div class="jet-animated-box-icon-inner"><span class="jet-elements-icon">%s</span></div></div>' );
?><div class="jet-animated-box__content"><?php
$this->__html( 'back_side_title', '<' . $title_tag . ' class="jet-animated-box__title jet-animated-box__title--back">%s</' . $title_tag . '>' );
$this->__html( 'back_side_subtitle', '<' . $sub_title_tag . ' class="jet-animated-box__subtitle jet-animated-box__subtitle--back">%s</' . $sub_title_tag . '>' );
$this->__html( 'back_side_description', '<p class="jet-animated-box__description jet-animated-box__description--back">%s</p>' );
$this->__glob_inc_if( 'action-button', array( 'back_side_button_link', 'back_side_button_text' ) );
?></div><?php
} else {
echo $this->get_template_content( $settings['back_side_template_id'] );
}
?></div>
<div class="jet-animated-box__overlay"></div><?php
if( 'toggle' === $settings['switch_event_type'] ) {
?><div class="jet-animated-box__toggle jet-animated-box__toggle--back"><?php
$this->__icon( 'back_side_toggle_icon', '<div class="jet-animated-box__toggle-icon"><span class="jet-elements-icon">%s</span></div>' );
?></div><?php
}
?></div>
</div>

View File

@@ -0,0 +1,11 @@
<?php
/**
* Animated after text template
*/
$settings = $this->get_settings_for_display();
?>
<div class="jet-animated-text__after-text">
<?php
echo '&nbsp;' . $this->str_to_spanned_html( $settings['after_text_content'], 'word' );
?>
</div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list end template
*/
?>
</div>

View File

@@ -0,0 +1,25 @@
<?php
/**
* Animated text list template
*/
$item_text = $this->__loop_item( array( 'item_text' ) );
$classes[] = 'jet-animated-text__animated-text-item';
$settings = $this->get_settings_for_display();
if ( 0 == $this->__processed_index ) {
$classes[] = 'active';
$classes[] = 'visible';
}
$direction = $this->__loop_item( array( 'item_text_direction' ) );
$split_type = ( 'fx12' === $settings['animation_effect'] ) ? 'symbol' : $settings['split_type'];
?>
<div class="<?php echo implode( ' ', $classes ); ?>" dir="<?php echo esc_attr( $direction ); ?>">
<?php
echo $this->str_to_spanned_html( $item_text, $split_type );
$classes = array();
?>
</div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Animated text list start template
*/
?>
<div class="jet-animated-text__animated-text">

View File

@@ -0,0 +1,11 @@
<?php
/**
* Animated before text template
*/
$settings = $this->get_settings_for_display();
?>
<div class="jet-animated-text__before-text">
<?php
echo $this->str_to_spanned_html( $settings['before_text_content'], 'word' ) . '&nbsp;';
?>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Animated text list template
*/
$settings = $this->get_settings_for_display();
$data_settings = $this->generate_setting_json();
$classes[] = 'jet-animated-text';
$classes[] = 'jet-animated-text--effect-' . $settings['animation_effect'];
$tag = ! empty( $settings['html_tag'] ) ? $settings['html_tag'] : 'div';
?>
<<?php echo $tag; ?> class="<?php echo implode( ' ', $classes ); ?>" <?php echo $data_settings; ?>>
<?php $this->__glob_inc_if( 'before-text', array( 'before_text_content' ) ); ?>
<?php $this->__get_global_looped_template( 'animated-text', 'animated_text_list' ); ?>
<?php $this->__glob_inc_if( 'after-text', array( 'after_text_content' ) ); ?>
</<?php echo $tag; ?>>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Loop item template
*/
?>
<figure class="jet-banner jet-effect-<?php $this->__html( 'animation_effect', '%s' ); ?>"><?php
$target = $this->__get_html( 'banner_link_target', ' target="%s"' );
$rel = $this->__get_html( 'banner_link_rel', ' rel="%s"' );
$this->__html( 'banner_link', '<a href="%s" class="jet-banner__link"' . $target . $rel . '>' );
echo '<div class="jet-banner__overlay"></div>';
echo $this->__get_banner_image();
echo '<figcaption class="jet-banner__content">';
echo '<div class="jet-banner__content-wrap">';
$title_tag = $this->__get_html( 'banner_title_html_tag', '%s' );
$this->__html( 'banner_title', '<' . $title_tag . ' class="jet-banner__title">%s</' . $title_tag . '>' );
$this->__html( 'banner_text', '<div class="jet-banner__text">%s</div>' );
echo '</div>';
echo '</figcaption>';
$this->__html( 'banner_link', '</a>' );
?></figure>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list end template
*/
?>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Features list item template
*/
?>
<div class="brands-list__item <?php echo jet_elements_tools()->col_classes( array(
'desk' => $this->__get_html( 'columns' ),
'tab' => $this->__get_html( 'columns_tablet' ),
'mob' => $this->__get_html( 'columns_mobile' ),
) ); ?>"><?php
echo $this->__open_brand_link( 'item_url' );
echo $this->__get_brand_image( 'item_image' );
echo $this->__loop_item( array( 'item_name' ), '<h5 class="brands-list__item-name">%s</h5>' );
echo $this->__loop_item( array( 'item_desc' ), '<div class="brands-list__item-desc">%s</div>' );
echo $this->__close_brand_link( 'item_url' );
?></div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list start template
*/
?>
<div class="brands-list col-row">

View File

@@ -0,0 +1,8 @@
<?php
/**
* Brands list template
*/
?>
<div class="brands-wrap">
<?php $this->__get_global_looped_template( 'brands', 'brands_list' ); ?>
</div>

View File

@@ -0,0 +1,50 @@
<?php
$settings = $this->get_settings_for_display();
$position = $this->get_settings_for_display( 'button_icon_position' );
$use_icon = $this->get_settings_for_display( 'use_button_icon' );
$hover_effect = $this->get_settings_for_display( 'hover_effect' );
$this->add_render_attribute( 'jet-button', 'class', 'jet-button__instance' );
$this->add_render_attribute( 'jet-button', 'class', 'jet-button__instance--icon-' . $position );
$this->add_render_attribute( 'jet-button', 'class', 'hover-' . $hover_effect );
$tag = 'div';
if ( ! empty( $settings['button_url']['url'] ) ) {
$this->add_render_attribute( 'jet-button', 'href', $settings['button_url']['url'] );
if ( $settings['button_url']['is_external'] ) {
$this->add_render_attribute( 'jet-button', 'target', '_blank' );
}
if ( $settings['button_url']['nofollow'] ) {
$this->add_render_attribute( 'jet-button', 'rel', 'nofollow' );
}
$tag = 'a';
}
?>
<div class="jet-button__container">
<<?php echo $tag; ?> <?php echo $this->get_render_attribute_string( 'jet-button' ); ?>>
<div class="jet-button__plane jet-button__plane-normal"></div>
<div class="jet-button__plane jet-button__plane-hover"></div>
<div class="jet-button__state jet-button__state-normal">
<?php
if ( filter_var( $use_icon, FILTER_VALIDATE_BOOLEAN ) ) {
echo $this->__icon( 'button_icon_normal', '<span class="jet-button__icon jet-elements-icon">%s</span>' );
}
echo $this->__html( 'button_label_normal', '<span class="jet-button__label">%s</span>' );
?>
</div>
<div class="jet-button__state jet-button__state-hover">
<?php
if ( filter_var( $use_icon, FILTER_VALIDATE_BOOLEAN ) ) {
echo $this->__icon( 'button_icon_hover', '<span class="jet-button__icon jet-elements-icon">%s</span>' );
}
echo $this->__html( 'button_label_hover', '<span class="jet-button__label">%s</span>' );
?>
</div>
</<?php echo $tag; ?>>
</div>

View File

@@ -0,0 +1,10 @@
<?php
/**
* Loop end template
*/
?></div><?php
if ( filter_var( $this->get_settings_for_display( 'arrows' ), FILTER_VALIDATE_BOOLEAN ) ) {
echo sprintf( '<div class="jet-carousel__prev-arrow-%s jet-arrow prev-arrow">%s</div>', $this->get_id(), $this->__render_icon( 'prev_arrow', '%s', '', false ) );
echo sprintf( '<div class="jet-carousel__next-arrow-%s jet-arrow next-arrow">%s</div>', $this->get_id(), $this->__render_icon( 'next_arrow', '%s', '', false ) );
}
?></div>

View File

@@ -0,0 +1,39 @@
<?php
/**
* Loop item template
*/
$target = $this->__loop_item( array( 'item_link_target' ), ' target="%s"' );
$rel = $this->__loop_item( array( 'item_link_rel' ), ' rel="%s"' );
$item_settings = $this->__processed_item;
$content_type = ! empty( $item_settings['item_content_type'] ) ? $item_settings['item_content_type'] : 'default';
?>
<div class="jet-carousel__item">
<div class="jet-carousel__item-inner">
<figure class="jet-banner jet-effect-<?php echo esc_attr( $this->get_settings_for_display( 'animation_effect' ) ); ?>"><?php
if ($item_settings['item_content_type'] == 'default') {
echo $this->__loop_item( array( 'item_link' ), '<a href="%s" class="jet-banner__link"' . $target . $rel . '>' );
}
echo '<div class="jet-banner__overlay"></div>';
echo $this->get_advanced_carousel_img( 'jet-banner__img' );
echo '<figcaption class="jet-banner__content">';
echo '<div class="jet-banner__content-wrap">';
switch ( $content_type ) {
case 'default':
echo $this->__loop_item( array( 'item_title' ), '<' . $title_tag . ' class="jet-banner__title">%s</' . $title_tag . '>' );
echo $this->__loop_item( array( 'item_text' ), '<div class="jet-banner__text">%s</div>' );
break;
case 'template':
echo $this->__loop_item_template_content();
break;
}
echo '</div>';
echo '</figcaption>';
echo $this->__loop_item( array( 'item_link' ), '</a>' );
?></figure>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<?php
/**
* Loop start template
*/
$options = $this->get_advanced_carousel_options();
$title_tag = $this->get_settings_for_display( 'title_html_tag' );
$dir = is_rtl() ? 'rtl' : 'ltr';
?><div class="jet-carousel" data-slider_options="<?php echo htmlspecialchars( json_encode( $options ) ); ?>" dir="<?php echo $dir; ?>">
<div class="elementor-slick-slider">

View File

@@ -0,0 +1,11 @@
<?php
/**
* Advanced carousel template
*/
$layout = $this->get_settings_for_display( 'item_layout' );
$equal_cols = $this->get_settings_for_display( 'equal_height_cols' );
$cols_class = ( 'true' === $equal_cols ) ? ' jet-equal-cols' : '';
?><div class="jet-carousel-wrap<?php echo $cols_class; ?>">
<?php $this->__get_global_looped_template( esc_attr( $layout ) . '/items', 'items_list' ); ?>
</div>

View File

@@ -0,0 +1,10 @@
<?php
/**
* Loop end template
*/
?></div><?php
if ( filter_var( $this->get_settings_for_display( 'arrows' ), FILTER_VALIDATE_BOOLEAN ) ) {
echo sprintf( '<div class="jet-carousel__prev-arrow-%s jet-arrow prev-arrow">%s</div>', $this->get_id(), $this->__render_icon( 'prev_arrow', '%s', '', false ) );
echo sprintf( '<div class="jet-carousel__next-arrow-%s jet-arrow next-arrow">%s</div>', $this->get_id(), $this->__render_icon( 'next_arrow', '%s', '', false ) );
}
?></div>

View File

@@ -0,0 +1,48 @@
<?php
/**
* Loop item template
*/
$target = $this->__loop_item( array( 'item_link_target' ), ' target="%s"' );
$rel = $this->__loop_item( array( 'item_link_rel' ), ' rel="%s"' );
$img = $this->get_advanced_carousel_img( 'jet-carousel__item-img' );
$item_settings = $this->__processed_item;
$content_type = ! empty( $item_settings['item_content_type'] ) ? $item_settings['item_content_type'] : 'default';
?><div class="jet-carousel__item">
<div class="jet-carousel__item-inner"><?php
if ( $img ) {
echo $this->__loop_item( array( 'item_link' ), '<a href="%s" class="jet-carousel__item-link"' . $target . $rel . '>' );
echo $img;
echo $this->__loop_item( array( 'item_link' ), '</a>' );
}
echo '<div class="jet-carousel__content">';
switch ( $content_type ) {
case 'default':
$title = $this->__loop_item( array( 'item_title' ) );
$text = $this->__loop_item( array( 'item_text' ), '<div class="jet-carousel__item-text">%s</div>' );
$button = $this->__loop_button_item( array( 'item_link', 'item_button_text' ), '<a class="elementor-button elementor-size-md jet-carousel__item-button" href="%1$s"' . $target . $rel . '>%2$s</a>' );
$link = $this->__loop_item( array( 'item_link' ) );
$title_format = '<%1$s class="jet-carousel__item-title">%2$s</%1$s>';
if ( $link_title && $link ) {
$title_format = '<%1$s class="jet-carousel__item-title"><a href="%3$s"%4$s%5$s>%2$s</a></%1$s>';
}
if ( $title || $text || $button ) {
printf( $title_format, $title_tag, $title, esc_url( $link ), $target, $rel );
echo $text;
echo $button;
}
break;
case 'template':
echo $this->__loop_item_template_content();
break;
}
echo '</div>';
?></div>
</div>

View File

@@ -0,0 +1,12 @@
<?php
/**
* Loop start template
*/
$options = $this->get_advanced_carousel_options();
$dir = is_rtl() ? 'rtl' : 'ltr';
$title_tag = $this->get_settings_for_display( 'title_html_tag' );
$link_title = $this->get_settings_for_display( 'link_title' );
?><div class="jet-carousel" data-slider_options="<?php echo htmlspecialchars( json_encode( $options ) ); ?>" dir="<?php echo $dir; ?>">
<div class="elementor-slick-slider">

View File

@@ -0,0 +1,129 @@
<?php
/**
* SVG circle template
*/
$settings = $this->get_settings_for_display();
$size = is_array( $settings['circle_size'] ) ? $settings['circle_size']['size'] : $settings['circle_size'];
$radius = $size / 2;
$center = $radius;
$viewbox = sprintf( '0 0 %1$s %1$s', $size );
$val_stroke = is_array( $settings['value_stroke'] ) ? $settings['value_stroke']['size'] : $settings['value_stroke'];
$bg_stroke = is_array( $settings['bg_stroke'] ) ? $settings['bg_stroke']['size'] : $settings['bg_stroke'];
// Fix radius relative to stroke
$max = ( $val_stroke >= $bg_stroke ) ? $val_stroke : $bg_stroke;
$radius = $radius - ( $max / 2 );
$value = 0;
if ( 'percent' === $settings['values_type'] ) {
$value = $settings['percent_value']['size'];
} elseif ( 0 !== absint( $settings['absolute_value_max'] ) ) {
$curr = $settings['absolute_value_curr'];
$max = $settings['absolute_value_max'];
$value = round( ( ( absint( $curr ) * 100 ) / absint( $max ) ), 0 );
}
$circumference = 2 * M_PI * $radius;
$meter_stroke = ( 'color' === $settings['bg_stroke_type'] ) ? $settings['val_bg_color'] : 'url(#circle-progress-meter-gradient-' . $this->get_id() . ')';
$value_stroke = ( 'color' === $settings['val_stroke_type'] ) ? $settings['val_stroke_color'] : 'url(#circle-progress-value-gradient-' . $this->get_id() . ')';
// Tablet size data.
$tablet_size = is_array( $settings['circle_size_tablet'] ) ? $settings['circle_size_tablet']['size'] : $settings['circle_size_tablet'];
$tablet_size = ! empty( $tablet_size ) ? $tablet_size : $size;
$tablet_viewbox = sprintf( '0 0 %1$s %1$s', $tablet_size );
$tablet_center = $tablet_size / 2;
$tablet_val_stroke = is_array( $settings['value_stroke_tablet'] ) ? $settings['value_stroke_tablet']['size'] : $settings['value_stroke_tablet'];
$tablet_val_stroke = ! empty( $tablet_val_stroke ) ? $tablet_val_stroke : $val_stroke;
$tablet_bg_stroke = is_array( $settings['bg_stroke_tablet'] ) ? $settings['bg_stroke_tablet']['size'] : $settings['bg_stroke_tablet'];
$tablet_bg_stroke = ! empty( $tablet_bg_stroke ) ? $tablet_bg_stroke : $bg_stroke;
$tablet_max = ( $tablet_val_stroke >= $tablet_bg_stroke ) ? $tablet_val_stroke : $tablet_bg_stroke;
$tablet_radius = ( $tablet_size / 2 ) - ( $tablet_max / 2 );
$tablet_circumference = 2 * M_PI * $tablet_radius;
// Mobile size data.
$mobile_size = is_array( $settings['circle_size_mobile'] ) ? $settings['circle_size_mobile']['size'] : $settings['circle_size_mobile'];
$mobile_size = ! empty( $mobile_size ) ? $mobile_size : $tablet_size;
$mobile_viewbox = sprintf( '0 0 %1$s %1$s', $mobile_size );
$mobile_center = $mobile_size / 2;
$mobile_val_stroke = is_array( $settings['value_stroke_mobile'] ) ? $settings['value_stroke_mobile']['size'] : $settings['value_stroke_mobile'];
$mobile_val_stroke = ! empty( $mobile_val_stroke ) ? $mobile_val_stroke : $tablet_val_stroke;
$mobile_bg_stroke = is_array( $settings['bg_stroke_mobile'] ) ? $settings['bg_stroke_mobile']['size'] : $settings['bg_stroke_mobile'];
$mobile_bg_stroke = ! empty( $mobile_bg_stroke ) ? $mobile_bg_stroke : $tablet_bg_stroke;
$mobile_max = ( $mobile_val_stroke >= $mobile_bg_stroke ) ? $mobile_val_stroke : $mobile_bg_stroke;
$mobile_radius = ( $mobile_size / 2 ) - ( $mobile_max / 2 );
$mobile_circumference = 2 * M_PI * $mobile_radius;
$responsive_sizes = array(
'desktop' => array(
'size' => $size,
'viewBox' => $viewbox,
'center' => $center,
'radius' => $radius,
'valStroke' => $val_stroke,
'bgStroke' => $bg_stroke,
'circumference' => $circumference,
),
'tablet' => array(
'size' => $tablet_size,
'viewBox' => $tablet_viewbox,
'center' => $tablet_center,
'radius' => $tablet_radius,
'valStroke' => $tablet_val_stroke,
'bgStroke' => $tablet_bg_stroke,
'circumference' => $tablet_circumference,
),
'mobile' => array(
'size' => $mobile_size,
'viewBox' => $mobile_viewbox,
'center' => $mobile_center,
'radius' => $mobile_radius,
'valStroke' => $mobile_val_stroke,
'bgStroke' => $mobile_bg_stroke,
'circumference' => $mobile_circumference,
),
);
$val_bg_gradient_angle = ! empty( $settings['val_bg_gradient_angle'] ) ? $settings['val_bg_gradient_angle'] : 0;
$val_stroke_gradient_angle = ! empty( $settings['val_stroke_gradient_angle'] ) ? $settings['val_stroke_gradient_angle'] : 0;
?>
<svg class="circle-progress" width="<?php echo $size; ?>" height="<?php echo $size; ?>" viewBox="<?php echo $viewbox; ?>" data-radius="<?php echo $radius; ?>" data-circumference="<?php echo $circumference; ?>" data-responsive-sizes="<?php echo esc_attr( json_encode( $responsive_sizes ) ); ?>">
<linearGradient id="circle-progress-meter-gradient-<?php echo $this->get_id(); ?>" gradientUnits="objectBoundingBox" gradientTransform="rotate(<?php echo $val_bg_gradient_angle; ?> 0.5 0.5)" x1="-0.25" y1="0.5" x2="1.25" y2="0.5">
<stop offset="0%" stop-color="<?php echo $settings['val_bg_gradient_color_a']; ?>"/>
<stop offset="100%" stop-color="<?php echo $settings['val_bg_gradient_color_b']; ?>"/>
</linearGradient>
<linearGradient id="circle-progress-value-gradient-<?php echo $this->get_id(); ?>" gradientUnits="objectBoundingBox" gradientTransform="rotate(<?php echo $val_stroke_gradient_angle; ?> 0.5 0.5)" x1="-0.25" y1="0.5" x2="1.25" y2="0.5">
<stop offset="0%" stop-color="<?php echo $settings['val_stroke_gradient_color_a']; ?>"/>
<stop offset="100%" stop-color="<?php echo $settings['val_stroke_gradient_color_b']; ?>"/>
</linearGradient>
<circle
class="circle-progress__meter"
cx="<?php echo $center; ?>"
cy="<?php echo $center; ?>"
r="<?php echo $radius; ?>"
stroke="<?php echo $meter_stroke; ?>"
stroke-width="<?php echo $bg_stroke; ?>"
fill="none"
/>
<circle
class="circle-progress__value"
cx="<?php echo $center; ?>"
cy="<?php echo $center; ?>"
r="<?php echo $radius; ?>"
stroke="<?php echo $value_stroke; ?>"
stroke-width="<?php echo $val_stroke; ?>"
data-value="<?php echo $value; ?>"
style="stroke-dasharray: <?php echo $circumference; ?>; stroke-dashoffset: <?php echo $circumference; ?>;"
fill="none"
/>
</svg>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Counter number template
*/
$value = 0;
if ( 'percent' === $settings['values_type'] ) {
$value = $settings['percent_value']['size'];
} else {
$value = $settings['absolute_value_curr'];
}
$this->add_render_attribute( 'circle-counter', array(
'class' => 'circle-counter__number',
'data-to-value' => $value,
) );
if ( ! empty( $settings['thousand_separator'] ) ) {
$this->add_render_attribute( 'circle-counter', 'data-delimiter', ',' );
}
?>
<span <?php echo $this->get_render_attribute_string( 'circle-counter' ); ?>>0</span>

View File

@@ -0,0 +1,24 @@
<?php
/**
* Circle progress counter template
*/
$perc_position = $this->get_settings_for_display( 'percent_position' );
$labels_position = $this->get_settings_for_display( 'labels_position' );
?>
<div class="circle-counter">
<?php if ( $perc_position === $this->__processed_item ) { ?>
<div class="circle-val"><?php
$this->__html( 'prefix', '<span class="circle-counter__prefix">%s</span>' );
include $this->__get_global_template( 'counter-number' );
$this->__html( 'suffix', '<span class="circle-counter__suffix">%s</span>' );
?></div>
<?php } ?>
<?php if ( $labels_position === $this->__processed_item ) { ?>
<div class="circle-counter__content">
<?php $this->__html( 'title', '<div class="circle-counter__title">%s</div>' ); ?>
<?php $this->__html( 'subtitle', '<div class="circle-counter__subtitle">%s</div>' ); ?>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,40 @@
<?php
/**
* Circle progress template
*/
$perc_position = $this->get_settings_for_display( 'percent_position' );
$labels_position = $this->get_settings_for_display( 'labels_position' );
$this->add_render_attribute( 'circle-wrap', array(
'class' => 'circle-progress-wrap',
'data-duration' => $this->get_settings_for_display( 'duration' ),
) );
$this->add_render_attribute( 'circle-bar', array(
'class' => 'circle-progress-bar',
) );
?>
<div <?php echo $this->get_render_attribute_string( 'circle-wrap' ); ?>>
<div <?php echo $this->get_render_attribute_string( 'circle-bar' ); ?>>
<?php
include $this->__get_global_template( 'circle' );
if ( 'in-circle' === $perc_position || 'in-circle' === $labels_position ) {
echo '<div class="position-in-circle">';
$this->__processed_item = 'in-circle';
include $this->__get_global_template( 'counter' );
echo '</div>';
}
?>
</div>
<?php
if ( 'out-circle' === $perc_position || 'out-circle' === $labels_position ) {
echo '<div class="position-below-circle">';
$this->__processed_item = 'out-circle';
include $this->__get_global_template( 'counter' );
echo '</div>';
}
$this->__processed_item = false;
?>
</div>

View File

@@ -0,0 +1,4 @@
<div class="jet-countdown-timer__item item-days">
<div class="jet-countdown-timer__item-value" data-value="days"><?php echo $this->date_placeholder(); ?></div>
<?php $this->__html( 'label_days', '<div class="jet-countdown-timer__item-label">%s</div>' ); ?>
</div>

View File

@@ -0,0 +1,5 @@
<?php echo $this->blocks_separator(); ?>
<div class="jet-countdown-timer__item item-hours">
<div class="jet-countdown-timer__item-value" data-value="hours"><?php echo $this->date_placeholder(); ?></div>
<?php $this->__html( 'label_hours', '<div class="jet-countdown-timer__item-label">%s</div>' ); ?>
</div>

View File

@@ -0,0 +1,5 @@
<?php echo $this->blocks_separator(); ?>
<div class="jet-countdown-timer__item item-minutes">
<div class="jet-countdown-timer__item-value" data-value="minutes"><?php echo $this->date_placeholder(); ?></div>
<?php $this->__html( 'label_min', '<div class="jet-countdown-timer__item-label">%s</div>' ); ?>
</div>

View File

@@ -0,0 +1,5 @@
<?php echo $this->blocks_separator(); ?>
<div class="jet-countdown-timer__item item-seconds">
<div class="jet-countdown-timer__item-value" data-value="seconds"><?php echo $this->date_placeholder(); ?></div>
<?php $this->__html( 'label_sec', '<div class="jet-countdown-timer__item-label">%s</div>' ); ?>
</div>

View File

@@ -0,0 +1,44 @@
<?php
$settings = $this->get_settings_for_display();
$countdown_type = isset( $settings['type'] ) ? $settings['type'] : 'due_date';
$this->add_render_attribute( 'countdown', 'class', 'jet-countdown-timer' );
$this->add_render_attribute( 'countdown', 'data-type', esc_attr( $countdown_type ) );
switch( $countdown_type ) {
case 'due_date':
$this->add_render_attribute( 'countdown', 'data-due-date', $this->get_date_from_setting( 'due_date' ) );
break;
case 'evergreen':
$this->add_render_attribute( 'countdown', 'data-evergreen-interval', $this->get_evergreen_interval( $settings ) );
break;
case 'endless':
$this->add_render_attribute( 'countdown', 'data-start-date', $this->get_date_from_setting( 'start_date' ) );
$this->add_render_attribute( 'countdown', 'data-restart-interval', $this->get_restart_interval( $settings ) );
$this->add_render_attribute( 'countdown', 'data-expire-actions', json_encode( array( 'restart' ) ) );
break;
}
$is_edit_mode = jet_elements()->elementor()->editor->is_edit_mode();
if ( ! $is_edit_mode && ! empty( $settings['expire_actions'] ) && is_array( $settings['expire_actions'] ) ) {
$this->add_render_attribute( 'countdown', 'data-expire-actions', json_encode( $settings['expire_actions'] ) );
}
if ( ! $is_edit_mode && ! empty( $settings['expire_redirect_url']['url'] ) ) {
$this->add_render_attribute( 'countdown', 'data-expire-redirect-url', esc_url( $settings['expire_redirect_url']['url'] ) );
}
?>
<div <?php $this->print_render_attribute_string( 'countdown' ); ?>>
<?php $this->__glob_inc_if( '00-days', array( 'show_days' ) ); ?>
<?php $this->__glob_inc_if( '01-hours', array( 'show_hours' ) ); ?>
<?php $this->__glob_inc_if( '02-minutes', array( 'show_min' ) ); ?>
<?php $this->__glob_inc_if( '03-seconds', array( 'show_sec' ) ); ?>
</div>
<?php $this->__html( 'message_after_expire', '<div class="jet-countdown-timer-message">%s</div>' );

View File

@@ -0,0 +1,31 @@
<?php
$settings = $this->get_settings_for_display();
$position = isset( $settings['download_icon_position'] ) ? $settings['download_icon_position'] : 'left';
?><a class="elementor-button elementor-size-md jet-download jet-download-icon-position-<?php echo $position; ?>" href="<?php echo jet_elements_download_handler()->get_download_link( $settings['download_file'] ); ?>"><?php
$icon_format = '<span class="jet-download__icon jet-download-icon-' . $position . ' jet-elements-icon">%s</span>';
$this->__icon( 'download_icon', $icon_format );
$label = $this->__get_html( 'download_label' );
$sublabel = $this->__get_html( 'download_sub_label' );
if ( $label || $sublabel ) {
echo '<span class="jet-download__text">';
printf(
'<span class="jet-download__label">%s</span>',
$this->__format_label( $label, $settings['download_file'] )
);
printf(
'<small class="jet-download__sub-label">%s</small>',
$this->__format_label( $sublabel, $settings['download_file'] )
);
echo '</span>';
}
?></a>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Dropbar button template
*/
$settings = $this->get_settings_for_display();
$this->add_render_attribute( 'button', 'class', 'jet-dropbar__button' );
if ( isset( $settings['button_hover_animation'] ) && $settings['button_hover_animation'] ) {
$this->add_render_attribute( 'button', 'class', 'elementor-animation-' . esc_attr( $settings['button_hover_animation'] ) );
}
?>
<button <?php $this->print_render_attribute_string( 'button' ); ?>><?php
$this->__icon( 'button_before_icon', '<span class="jet-elements-icon jet-dropbar__button-icon jet-dropbar__button-icon--before">%s</span>' );
$this->__html( 'button_text', '<span class="jet-dropbar__button-text">%s</span>' );
$this->__icon( 'button_after_icon', '<span class="jet-elements-icon jet-dropbar__button-icon jet-dropbar__button-icon--after">%s</span>' );
?></button>

View File

@@ -0,0 +1,10 @@
<?php
/**
* Dropbar content template
*/
?>
<div class="jet-dropbar__content-wrapper">
<div class="jet-dropbar__content"><?php
echo $this->get_dropbar_content();
?></div>
</div>

View File

@@ -0,0 +1,37 @@
<?php
/**
* Main Dropbar template
*/
$settings = $this->get_settings_for_display();
$this->add_render_attribute( 'wrapper', 'class', 'jet-dropbar' );
$this->add_render_attribute( 'wrapper', 'data-settings', esc_attr( $this->get_dropbar_export_settings() ) );
if ( isset( $settings['show_effect'] ) && $settings['show_effect'] ) {
$this->add_render_attribute( 'wrapper', 'class', sprintf( 'jet-dropbar--%s-effect', esc_attr( $settings['show_effect'] ) ) );
}
if ( isset( $settings['fixed'] ) && filter_var( $settings['fixed'], FILTER_VALIDATE_BOOLEAN ) ) {
$this->add_render_attribute( 'wrapper', 'class', 'jet-dropbar-fixed' );
if ( isset( $settings['fixed_position'] ) && $settings['fixed_position'] ) {
$this->add_render_attribute( 'wrapper', 'class', sprintf( 'jet-dropbar-fixed--%s-position', esc_attr( $settings['fixed_position'] ) ) );
}
if ( isset( $settings['fixed_position_tablet'] ) && $settings['fixed_position_tablet'] ) {
$this->add_render_attribute( 'wrapper', 'class', sprintf( 'jet-dropbar-fixed--%s-tablet-position', esc_attr( $settings['fixed_position_tablet'] ) ) );
}
if ( isset( $settings['fixed_position_mobile'] ) && $settings['fixed_position_mobile'] ) {
$this->add_render_attribute( 'wrapper', 'class', sprintf( 'jet-dropbar-fixed--%s-mobile-position', esc_attr( $settings['fixed_position_mobile'] ) ) );
}
}
?>
<div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
<div class="jet-dropbar__inner"><?php
include $this->__get_global_template( 'button' );
include $this->__get_global_template( 'content' );
?></div>
</div>

View File

@@ -0,0 +1,21 @@
<?php
/**
* Card item template
*/
$show_arrow = filter_var( $settings['show_card_arrows'], FILTER_VALIDATE_BOOLEAN );
$title_tag = ! empty( $settings['item_title_size'] ) ? $settings['item_title_size'] : 'h5';
?>
<div class="jet-hor-timeline-item__card">
<div class="jet-hor-timeline-item__card-inner">
<?php
$this->__render_image( $item_settings );
echo $this->__loop_item( array( 'item_title' ) , '<' . $title_tag .' class="jet-hor-timeline-item__card-title">%s</' . $title_tag . '>' );
echo $this->__loop_item( array( 'item_desc' ), '<div class="jet-hor-timeline-item__card-desc">%s</div>' );
$this->__render_button( $item_settings );
?>
</div>
<?php if ( $show_arrow ) { ?>
<div class="jet-hor-timeline-item__card-arrow"></div>
<?php } ?>
</div>

View File

@@ -0,0 +1,44 @@
<?php
/**
* Timeline main template
*/
$settings = $this->get_settings_for_display();
$this->add_render_attribute( 'wrapper', 'class',
array(
'jet-hor-timeline',
'jet-hor-timeline--layout-' . esc_attr( $settings['vertical_layout'] ),
'jet-hor-timeline--align-' . esc_attr( $settings['horizontal_alignment'] ),
'jet-hor-timeline--' . esc_attr( $settings['navigation_type'] ),
)
);
$desktop_columns = ! empty( $settings['columns'] ) ? $settings['columns'] : 3;
$tablet_columns = ! empty( $settings['columns_tablet'] ) ? $settings['columns_tablet'] : $desktop_columns;
$mobile_columns = ! empty( $settings['columns_mobile'] ) ? $settings['columns_mobile'] : $tablet_columns;
$data_columns = array(
'desktop' => $desktop_columns,
'tablet' => $tablet_columns,
'mobile' => $mobile_columns,
);
$this->add_render_attribute( 'wrapper', 'data-timeline-columns', esc_attr( json_encode( $data_columns ) ) );
?>
<div <?php $this->print_render_attribute_string( 'wrapper' ) ?>>
<div class="jet-hor-timeline-inner">
<div class="jet-hor-timeline-track">
<?php $this->__get_global_looped_template( 'list-top', 'cards_list' ); ?>
<?php $this->__get_global_looped_template( 'list-middle', 'cards_list' ); ?>
<?php $this->__get_global_looped_template( 'list-bottom', 'cards_list' ); ?>
</div>
</div>
<?php
if ( 'arrows-nav' === $settings['navigation_type'] ) {
echo jet_elements_tools()->get_carousel_arrow( array( $settings['arrow_type'], 'jet-prev-arrow jet-arrow-disabled' ) );
echo jet_elements_tools()->get_carousel_arrow( array( $settings['arrow_type'], 'jet-next-arrow' ) );
}
?>
</div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Timeline list end template
*/
?>
</div>

View File

@@ -0,0 +1,52 @@
<?php
/**
* Timeline list item template
*/
$settings = $this->get_settings_for_display();
$layout = $settings['vertical_layout'];
$item_settings = $this->__processed_item;
$this->add_render_attribute(
'item_bottom_' . $item_settings['_id'],
array(
'class' => array(
'jet-hor-timeline-item',
'elementor-repeater-item-' . esc_attr( $item_settings['_id'] )
),
'data-item-id' => esc_attr( $item_settings['_id'] )
)
);
if ( filter_var( $item_settings['is_item_active'], FILTER_VALIDATE_BOOLEAN ) ) {
$this->add_render_attribute( 'item_bottom_' . $item_settings['_id'], 'class', 'is-active' );
}
?>
<div <?php $this->print_render_attribute_string( 'item_bottom_' . $item_settings['_id'] ) ?>>
<?php
switch ( $layout ) {
case 'top':
include $this->__get_global_template( 'meta' );
break;
case 'chess':
if ( $this->__processed_index % 2 ) {
include $this->__get_global_template( 'card' );
} else {
include $this->__get_global_template( 'meta' );
}
break;
case 'bottom':
include $this->__get_global_template( 'card' );
break;
}
?>
</div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Timeline list start template
*/
?>
<div class="jet-hor-timeline-list jet-hor-timeline-list--bottom">

View File

@@ -0,0 +1,6 @@
<?php
/**
* Timeline list end template
*/
?>
</div>

View File

@@ -0,0 +1,26 @@
<?php
/**
* Timeline list item template
*/
$settings = $this->get_settings_for_display();
$item_settings = $this->__processed_item;
$this->add_render_attribute(
'item_middle_' . $item_settings['_id'],
array(
'class' => array(
'jet-hor-timeline-item',
'elementor-repeater-item-' . esc_attr( $item_settings['_id'] )
),
'data-item-id' => esc_attr( $item_settings['_id'] )
)
);
if ( filter_var( $item_settings['is_item_active'], FILTER_VALIDATE_BOOLEAN ) ) {
$this->add_render_attribute( 'item_middle_' . $item_settings['_id'], 'class', 'is-active' );
}
?>
<div <?php $this->print_render_attribute_string( 'item_middle_' . $item_settings['_id'] ) ?>>
<?php include $this->__get_global_template( 'point' ); ?>
</div>

View File

@@ -0,0 +1,9 @@
<?php
/**
* Timeline list start template
*/
$settings = $this->get_settings_for_display();
?>
<div class="jet-hor-timeline-list jet-hor-timeline-list--middle">
<div class="jet-hor-timeline__line"></div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Timeline list end template
*/
?>
</div>

View File

@@ -0,0 +1,51 @@
<?php
/**
* Timeline list item template
*/
$settings = $this->get_settings_for_display();
$layout = $settings['vertical_layout'];
$item_settings = $this->__processed_item;
$this->add_render_attribute(
'item_top_' . $item_settings['_id'],
array(
'class' => array(
'jet-hor-timeline-item',
'elementor-repeater-item-' . esc_attr( $item_settings['_id'] )
),
'data-item-id' => esc_attr( $item_settings['_id'] )
)
);
if ( filter_var( $item_settings['is_item_active'], FILTER_VALIDATE_BOOLEAN ) ) {
$this->add_render_attribute( 'item_top_' . $item_settings['_id'], 'class', 'is-active' );
}
?>
<div <?php $this->print_render_attribute_string( 'item_top_' . $item_settings['_id'] ) ?>>
<?php
switch ( $layout ) {
case 'top':
include $this->__get_global_template( 'card' );
break;
case 'chess':
if ( $this->__processed_index % 2 ) {
include $this->__get_global_template( 'meta' );
} else {
include $this->__get_global_template( 'card' );
}
break;
case 'bottom':
include $this->__get_global_template( 'meta' );
break;
}
?>
</div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Timeline list start template
*/
?>
<div class="jet-hor-timeline-list jet-hor-timeline-list--top">

View File

@@ -0,0 +1,6 @@
<?php
/**
* Meta item template
*/
echo $this->__loop_item( array( 'item_meta' ), '<div class="jet-hor-timeline-item__meta">%s</div>' );

View File

@@ -0,0 +1,6 @@
<?php
/**
* Point item template
*/
$this->__render_point_content( $item_settings );

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>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list end template
*/
?>
</div>

View File

@@ -0,0 +1,61 @@
<?php
/**
* Images list item template
*/
$settings = $this->get_settings_for_display();
$col_class = '';
if ( 'grid' === $settings['layout_type'] ) {
$col_class = jet_elements_tools()->col_classes( array(
'desk' => $this->__get_html( 'columns' ),
'tab' => $this->__get_html( 'columns_tablet' ),
'mob' => $this->__get_html( 'columns_mobile' ),
) );
}
$link_instance = 'link-instance-' . $this->item_counter;
$link_type = $this->__loop_item( array( 'item_link_type' ), '%s' );
$this->add_render_attribute( $link_instance, 'class', array(
'jet-images-layout__link',
// Ocean Theme lightbox compatibility
class_exists( 'OCEANWP_Theme_Class' ) ? 'no-lightbox' : '',
) );
if ( 'lightbox' === $link_type ) {
$this->add_render_attribute( $link_instance, 'href', $this->__loop_item( array( 'item_image', 'url' ), '%s' ) );
$this->add_render_attribute( $link_instance, 'data-elementor-open-lightbox', 'yes' );
$this->add_render_attribute( $link_instance, 'data-elementor-lightbox-slideshow', $this->get_id() );
} else {
$target = $this->__loop_item( array( 'item_target' ), '%s' );
$target = ! empty( $target ) ? $target : '_self';
$rel = $this->__loop_item( array( 'item_rel' ), '%s' );
$rel = ! empty( $rel ) ? $rel : '';
$this->add_render_attribute( $link_instance, 'href', $this->__loop_item( array( 'item_url' ), '%s' ) );
$this->add_render_attribute( $link_instance, 'target', $target );
$this->add_render_attribute( $link_instance, 'rel', $rel );
}
$this->item_counter++;
?>
<div class="jet-images-layout__item <?php echo $col_class ?>">
<div class="jet-images-layout__inner">
<div class="jet-images-layout__image-loader"><span></span></div>
<a <?php echo $this->get_render_attribute_string( $link_instance ); ?>>
<div class="jet-images-layout__image">
<?php echo $this->__loop_image_item(); ?>
</div>
<div class="jet-images-layout__content"><?php
echo $this->__render_icon( 'item_icon', '<div class="jet-images-layout__icon"><div class="jet-images-layout-icon-inner">%s</div></div>', '', false );
$title_tag = $this->__get_html( 'title_html_tag', '%s' );
echo $this->__loop_item( array( 'item_title' ), '<' . $title_tag . ' class="jet-images-layout__title">%s</' . $title_tag . '>' );
echo $this->__loop_item( array( 'item_desc' ), '<div class="jet-images-layout__desc">%s</div>' );
?></div>
</a>
</div>
</div>

View File

@@ -0,0 +1,36 @@
<?php
/**
* Features list start template
*/
$settings = $this->get_settings_for_display();
$class_array[] = 'jet-images-layout__list';
$attr_array = [];
if ( 'grid' === $settings['layout_type'] ) {
$class_array[] = 'col-row';
$class_array[] = 'disable-cols-gap';
$class_array[] = 'disable-rows-gap';
}
if ( 'masonry' === $settings['layout_type'] ) {
$attr_array[] = 'data-columns';
}
$columns = $this->__get_html( 'columns' );
$columns_tablet = $this->__get_html( 'columns_tablet' );
$columns_mobile = $this->__get_html( 'columns_mobile' );
$columns = empty( $columns ) ? 3 : $columns;
$columns_tablet = empty( $columns_tablet ) ? 2 : $columns_tablet;
$columns_mobile = empty( $columns_mobile ) ? 1 : $columns_mobile;
$class_array[] = 'column-desktop-' . $columns;
$class_array[] = 'column-tablet-' . $columns_tablet;
$class_array[] = 'column-mobile-' . $columns_mobile;
$classes = implode( ' ', $class_array );
$attrs = implode( ' ', $attr_array );
?>
<div class="<?php echo $classes; ?>" <?php echo $attrs; ?>>

View File

@@ -0,0 +1,14 @@
<?php
/**
* Images Layout template
*/
$settings = $this->get_settings_for_display();
$data_settings = $this->generate_setting_json();
$classes_list[] = 'layout-type-' . $settings['layout_type'];
$classes = implode( ' ', $classes_list );
?>
<div class="jet-images-layout <?php echo $classes; ?>" <?php echo $data_settings; ?>>
<?php $this->__get_global_looped_template( 'images-layout', 'image_list' ); ?>
</div>

View File

@@ -0,0 +1,41 @@
<?php
$settings = $this->get_settings_for_display();
$data_settings = $this->generate_setting_json();
$attr_array = array();
$class_array = array( 'jet-instagram-gallery__instance' );
$class_array[] = 'layout-type-' . $settings['layout_type'];
if ( 'grid' === $settings['layout_type'] ) {
$class_array[] = 'col-row';
$class_array[] = 'disable-cols-gap';
$class_array[] = 'disable-rows-gap';
}
if ( filter_var( $settings['show_on_hover'], FILTER_VALIDATE_BOOLEAN ) ) {
$class_array[] = 'show-overlay-on-hover';
}
if ( 'masonry' === $settings['layout_type'] ) {
$attr_array[] = 'data-columns';
}
$columns = $settings['columns'];
$columns_tablet = $settings['columns_tablet'];
$columns_mobile = $settings['columns_mobile'];
$columns = empty( $columns ) ? 3 : $columns;
$columns_tablet = empty( $columns_tablet ) ? 2 : $columns_tablet;
$columns_mobile = empty( $columns_mobile ) ? 1 : $columns_mobile;
$class_array[] = 'column-desktop-' . $columns;
$class_array[] = 'column-tablet-' . $columns_tablet;
$class_array[] = 'column-mobile-' . $columns_mobile;
$classes = implode( ' ', $class_array );
$attrs = implode( ' ', $attr_array );
?>
<div class="<?php echo $classes; ?>" <?php echo $attrs; ?> <?php echo $data_settings; ?>><?php
$this->render_gallery();
?></div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* Portfolio template
*/
$settings = $this->get_settings_for_display();
$preset = $settings['preset'];
$layout = $settings['layout_type'];
$columns = $settings['columns'];
$columnsTablet = $settings['columns_tablet'];
$columnsMobile = $settings['columns_mobile'];
$this->add_render_attribute( 'main-container', 'class', array(
'jet-portfolio',
'layout-type-' . $layout,
'preset-' . $preset,
) );
if ( 'masonry' == $layout || 'grid' == $layout ) {
$this->add_render_attribute( 'main-container', 'class', array(
'layout-desktop-column-' . $columns,
! empty( $columnsTablet ) ? 'layout-tablet-column-' . $columnsTablet : false,
! empty( $columnsMobile ) ? 'layout-mobile-column-' . $columnsMobile : false,
) );
}
$this->add_render_attribute( 'main-container', 'data-settings', $this->generate_setting_json() );
?>
<div <?php echo $this->get_render_attribute_string( 'main-container' ); ?>><?php
$this->render_filters();
$this->__get_global_looped_template( esc_attr( $preset ) . '/portfolio', 'image_list' );
$this->render_view_more_button();?>
</div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list end template
*/
?>
</div>

View File

@@ -0,0 +1,58 @@
<?php
/**
* Images list item template
*/
$settings = $this->get_settings_for_display();
$perPage = $settings['per_page'];
$is_more_button = $settings['view_more_button'];
$item_instance = 'item-instance-' . $this->item_counter;
$more_item = ( $this->item_counter >= $perPage && filter_var( $is_more_button, FILTER_VALIDATE_BOOLEAN ) ) ? true : false;
$this->add_render_attribute( $item_instance, 'class', array(
'jet-portfolio__item',
! $more_item ? 'visible-status' : 'hidden-status',
) );
if ( 'justify' == $settings['layout_type'] ) {
$this->add_render_attribute( $item_instance, 'class', $this->get_justify_item_layout() );
}
$this->add_render_attribute( $item_instance, 'data-slug', $this->get_item_slug_list() );
$link_instance = 'link-instance-' . $this->item_counter;
$this->add_render_attribute( $link_instance, 'class', array(
'jet-portfolio__link',
// Ocean Theme lightbox compatibility
class_exists( 'OCEANWP_Theme_Class' ) ? 'no-lightbox' : '',
) );
$this->add_render_attribute( $link_instance, 'href', $this->__loop_item( array( 'item_image', 'url' ), '%s' ) );
$this->add_render_attribute( $link_instance, 'data-elementor-open-lightbox', 'yes' );
//$this->add_render_attribute( $link_instance, 'data-elementor-lightbox-slideshow', $this->get_id() );
?>
<article <?php echo $this->get_render_attribute_string( $item_instance ); ?>>
<div class="jet-portfolio__inner">
<a <?php echo $this->get_render_attribute_string( $link_instance ); ?>>
<div class="jet-portfolio__image">
<?php echo $this->__loop_image_item(); ?>
<div class="jet-portfolio__image-loader"><span></span></div>
</div>
</a>
<div class="jet-portfolio__content">
<div class="jet-portfolio__content-inner"><?php
$title_tag = $this->__get_html( 'title_html_tag', '%s' );
echo $this->__loop_item( array( 'item_title' ), '<' . $title_tag . ' class="jet-portfolio__title">%s</' . $title_tag . '>' );
echo $this->__get_item_category();
echo $this->__loop_item( array( 'item_desc' ), '<p class="jet-portfolio__desc">%s</p>' );
echo $this->__generate_item_button(); ?></div>
</div>
</div>
</article><?php
$this->item_counter++;
?>

View File

@@ -0,0 +1,8 @@
<?php
/**
* Features list start template
*/
?>
<div class="jet-portfolio__list"><?php
if ( 'justify' === $this->get_settings_for_display( 'layout_type' ) ) {?>
<div class="grid-sizer"></div><?php } ?>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list end template
*/
?>
</div>

View File

@@ -0,0 +1,59 @@
<?php
/**
* Images list item template
*/
$settings = $this->get_settings_for_display();
$perPage = $settings['per_page'];
$cover_icon = ! empty( $settings['cover_icon'] ) ? sprintf( '<i class="%s"></i>', $settings['cover_icon'] ) : '';
$is_more_button = $settings['view_more_button'];
$item_instance = 'item-instance-' . $this->item_counter;
$more_item = ( $this->item_counter >= $perPage && filter_var( $is_more_button, FILTER_VALIDATE_BOOLEAN ) ) ? true : false;
$this->add_render_attribute( $item_instance, 'class', array(
'jet-portfolio__item',
! $more_item ? 'visible-status' : 'hidden-status',
) );
if ( 'justify' == $settings['layout_type'] ) {
$this->add_render_attribute( $item_instance, 'class', $this->get_justify_item_layout() );
}
$this->add_render_attribute( $item_instance, 'data-slug', $this->get_item_slug_list() );
$link_instance = 'link-instance-' . $this->item_counter;
$this->add_render_attribute( $link_instance, 'class', array(
'jet-portfolio__link',
// Ocean Theme lightbox compatibility
class_exists( 'OCEANWP_Theme_Class' ) ? 'no-lightbox' : '',
) );
$this->add_render_attribute( $link_instance, 'href', $this->__loop_item( array( 'item_image', 'url' ), '%s' ) );
$this->add_render_attribute( $link_instance, 'data-elementor-open-lightbox', 'yes' );
//$this->add_render_attribute( $link_instance, 'data-elementor-lightbox-slideshow', $this->get_id() );
?>
<article <?php echo $this->get_render_attribute_string( $item_instance ); ?>>
<div class="jet-portfolio__inner">
<a <?php echo $this->get_render_attribute_string( $link_instance ); ?>>
<div class="jet-portfolio__image">
<?php echo $this->__loop_image_item(); ?>
<div class="jet-portfolio__image-loader"><span></span></div>
<div class="jet-portfolio__cover"><?php echo $cover_icon; ?></div>
</div>
</a>
<div class="jet-portfolio__content">
<div class="jet-portfolio__content-inner"><?php
$title_tag = $this->__get_html( 'title_html_tag', '%s' );
echo $this->__loop_item( array( 'item_title' ), '<' . $title_tag . ' class="jet-portfolio__title">%s</' . $title_tag . '>' );
echo $this->__get_item_category();
echo $this->__loop_item( array( 'item_desc' ), '<p class="jet-portfolio__desc">%s</p>' );
echo $this->__generate_item_button(); ?></div>
</div>
</div>
</article><?php
$this->item_counter++;
?>

View File

@@ -0,0 +1,9 @@
<?php
/**
* Features list start template
*/
?>
<div class="jet-portfolio__list"><?php
if ( 'justify' === $this->get_settings_for_display( 'layout_type' ) ) {?>
<div class="grid-sizer"></div><?php } ?>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list end template
*/
?>
</div>

View File

@@ -0,0 +1,51 @@
<?php
/**
* Images list item template
*/
$settings = $this->get_settings_for_display();
$perPage = $settings['per_page'];
$cover_icon = ! empty( $settings['cover_icon'] ) ? sprintf( '<i class="%s"></i>', $settings['cover_icon'] ) : '';
$is_more_button = $settings['view_more_button'];
$item_instance = 'item-instance-' . $this->item_counter;
$more_item = ( $this->item_counter >= $perPage && filter_var( $is_more_button, FILTER_VALIDATE_BOOLEAN ) ) ? true : false;
$this->add_render_attribute( $item_instance, 'class', array(
'jet-portfolio__item',
! $more_item ? 'visible-status' : 'hidden-status',
) );
if ( 'justify' == $settings['layout_type'] ) {
$this->add_render_attribute( $item_instance, 'class', $this->get_justify_item_layout() );
}
$this->add_render_attribute( $item_instance, 'data-slug', $this->get_item_slug_list() );
$link_instance = 'link-instance-' . $this->item_counter;
$this->add_render_attribute( $link_instance, 'class', array(
'jet-portfolio__link',
// Ocean Theme lightbox compatibility
class_exists( 'OCEANWP_Theme_Class' ) ? 'no-lightbox' : '',
) );
$this->add_render_attribute( $link_instance, 'href', $this->__loop_item( array( 'item_image', 'url' ), '%s' ) );
$this->add_render_attribute( $link_instance, 'data-elementor-open-lightbox', 'yes' );
//$this->add_render_attribute( $link_instance, 'data-elementor-lightbox-slideshow', $this->get_id() );
?>
<article <?php echo $this->get_render_attribute_string( $item_instance ); ?>>
<div class="jet-portfolio__inner">
<a <?php echo $this->get_render_attribute_string( $link_instance ); ?>>
<div class="jet-portfolio__image">
<?php echo $this->__loop_image_item(); ?>
<div class="jet-portfolio__image-loader"><span></span></div>
<div class="jet-portfolio__cover"><?php echo $cover_icon; ?></div>
</div>
</a>
</div>
</article><?php
$this->item_counter++;
?>

View File

@@ -0,0 +1,9 @@
<?php
/**
* Features list start template
*/
?>
<div class="jet-portfolio__list"><?php
if ( 'justify' === $this->get_settings_for_display( 'layout_type' ) ) {?>
<div class="grid-sizer"></div><?php } ?>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list end template
*/
?>
</div>

View File

@@ -0,0 +1,58 @@
<?php
/**
* Images list item template
*/
$settings = $this->get_settings_for_display();
$perPage = $settings['per_page'];
$cover_icon = ! empty( $settings['cover_icon'] ) ? $settings['cover_icon'] : 'fa fa-search';
$is_more_button = $settings['view_more_button'];
$item_instance = 'item-instance-' . $this->item_counter;
$more_item = ( $this->item_counter >= $perPage && filter_var( $is_more_button, FILTER_VALIDATE_BOOLEAN ) ) ? true : false;
$this->add_render_attribute( $item_instance, 'class', array(
'jet-portfolio__item',
! $more_item ? 'visible-status' : 'hidden-status',
) );
if ( 'justify' == $settings['layout_type'] ) {
$this->add_render_attribute( $item_instance, 'class', $this->get_justify_item_layout() );
}
$this->add_render_attribute( $item_instance, 'data-slug', $this->get_item_slug_list() );
$link_instance = 'link-instance-' . $this->item_counter;
$this->add_render_attribute( $link_instance, 'class', array(
'jet-portfolio__link',
// Ocean Theme lightbox compatibility
class_exists( 'OCEANWP_Theme_Class' ) ? 'no-lightbox' : '',
) );
$this->add_render_attribute( $link_instance, 'href', $this->__loop_item( array( 'item_image', 'url' ), '%s' ) );
$this->add_render_attribute( $link_instance, 'data-elementor-open-lightbox', 'yes' );
//$this->add_render_attribute( $link_instance, 'data-elementor-lightbox-slideshow', $this->get_id() );
?>
<article <?php echo $this->get_render_attribute_string( $item_instance ); ?>>
<div class="jet-portfolio__inner">
<a <?php echo $this->get_render_attribute_string( $link_instance ); ?>>
<div class="jet-portfolio__image">
<?php echo $this->__loop_image_item(); ?>
<div class="jet-portfolio__image-loader"><span></span></div>
</div>
</a>
<div class="jet-portfolio__content">
<div class="jet-portfolio__content-inner"><?php
$title_tag = $this->__get_html( 'title_html_tag', '%s' );
echo $this->__loop_item( array( 'item_title' ), '<' . $title_tag . ' class="jet-portfolio__title">%s</' . $title_tag . '>' );
echo $this->__get_item_category();
echo $this->__loop_item( array( 'item_desc' ), '<p class="jet-portfolio__desc">%s</p>' );
echo $this->__generate_item_button(); ?></div>
</div>
</div>
</article><?php
$this->item_counter++;
?>

View File

@@ -0,0 +1,9 @@
<?php
/**
* Features list start template
*/
?>
<div class="jet-portfolio__list"><?php
if ( 'justify' === $this->get_settings_for_display( 'layout_type' ) ) {?>
<div class="grid-sizer"></div><?php } ?>

View File

@@ -0,0 +1,21 @@
<?php
/**
* Loop item contnet
*/
if ( 'yes' !== $this->get_attr( 'show_excerpt' ) ) {
$this->render_meta( 'content_related', 'jet-content-fields', array( 'before', 'after' ) );
return;
}
$this->render_meta( 'content_related', 'jet-content-fields', array( 'before' ) );
jet_elements_post_tools()->get_post_content( array(
'length' => intval( $this->get_attr( 'excerpt_length' ) ),
'content_type' => 'post_excerpt',
'html' => '<div %1$s>%2$s</div>',
'class' => 'entry-excerpt',
'echo' => true,
) );
$this->render_meta( 'content_related', 'jet-content-fields', array( 'after' ) );

View File

@@ -0,0 +1,37 @@
<?php
/**
* Loop item meta
*/
if ( 'yes' !== $this->get_attr( 'show_meta' ) ) {
return;
}
echo '<div class="post-meta">';
jet_elements_post_tools()->get_post_author( array(
'visible' => $this->get_attr( 'show_author' ),
'class' => 'posted-by__author',
'prefix' => esc_html__( 'Posted by ', 'jet-elements' ),
'html' => '<span class="posted-by post-meta__item">%1$s<a href="%2$s" %3$s %4$s rel="author">%5$s%6$s</a></span>',
'echo' => true,
) );
jet_elements_post_tools()->get_post_date( array(
'visible' => $this->get_attr( 'show_date' ),
'class' => 'post__date-link',
'icon' => '',
'html' => '<span class="post__date post-meta__item">%1$s<a href="%2$s" %3$s %4$s ><time datetime="%5$s" title="%5$s">%6$s%7$s</time></a></span>',
'echo' => true,
) );
jet_elements_post_tools()->get_post_comment_count( array(
'visible' => $this->get_attr( 'show_comments' ),
'class' => 'post__comments-link',
'icon' => '',
'prefix' => esc_html__( 'Comments: ', 'jet-elements' ),
'html' => '<span class="post__comments post-meta__item">%1$s<a href="%2$s" %3$s %4$s>%5$s%6$s</a></span>',
'echo' => true,
) );
echo '</div>';

View File

@@ -0,0 +1,16 @@
<?php
/**
* Loop item more button
*/
if ( 'yes' !== $this->get_attr( 'show_more' ) ) {
return;
}
jet_elements_post_tools()->get_post_button( array(
'class' => 'btn btn-primary elementor-button elementor-size-md jet-more',
'text' => $this->get_attr( 'more_text' ),
'icon' => $this->html( $this->get_attr( 'more_icon' ), '<span class="jet-elements-icon jet-more-icon">%1$s</span>', array(), false ),
'html' => '<div class="jet-more-wrap"><a href="%1$s" %3$s><span class="btn__text">%4$s</span>%5$s</a></div>',
'echo' => true,
) );

View File

@@ -0,0 +1,16 @@
<?php
/**
* Loop item thumbnail
*/
if ( 'yes' !== $this->get_attr( 'show_image' ) || 'background' === $this->get_attr( 'show_image_as' ) ) {
return;
}
jet_elements_post_tools()->get_post_image( array(
'size' => $this->get_attr( 'thumb_size' ),
'mobile_size' => $this->get_attr( 'thumb_size' ),
'class' => 'post-thumbnail__link',
'html' => '<div class="post-thumbnail"><a href="%1$s" %2$s><img class="post-thumbnail__img wp-post-image" src="%3$s" alt="%4$s" %5$s></a></div>',
'placeholder' => false,
'echo' => true,
) );

View File

@@ -0,0 +1,28 @@
<?php
/**
* Loop item title
*/
if ( 'yes' !== $this->get_attr( 'show_title' ) ) {
$this->render_meta( 'title_related', 'jet-title-fields', array( 'before', 'after' ) );
return;
}
$title_length = -1;
$title_ending = $this->get_attr( 'title_trimmed_ending_text' );
if ( filter_var( $this->get_attr( 'title_trimmed' ), FILTER_VALIDATE_BOOLEAN ) ) {
$title_length = $this->get_attr( 'title_length' );
}
$this->render_meta( 'title_related', 'jet-title-fields', array( 'before' ) );
jet_elements_post_tools()->get_post_title( array(
'class' => 'entry-title',
'html' => '<h4 %1$s><a href="%2$s">%4$s</a></h4>',
'length' => $title_length,
'ending' => $title_ending,
'echo' => true,
) );
$this->render_meta( 'title_related', 'jet-title-fields', array( 'after' ) );

View File

@@ -0,0 +1,5 @@
<?php
/**
* Posts loop end template
*/
?></div>

View File

@@ -0,0 +1,26 @@
<?php
/**
* Posts loop start template
*/
?><div class="jet-posts__item <?php echo jet_elements_tools()->col_classes( array(
'desk' => $this->get_attr( 'columns' ),
'tab' => $this->get_attr( 'columns_tablet' ),
'mob' => $this->get_attr( 'columns_mobile' ),
) ); ?>">
<div class="jet-posts__inner-box"<?php $this->add_box_bg(); ?>><?php
include $this->get_template( 'item-thumb' );
$this->render_post_terms();
echo '<div class="jet-posts__inner-content">';
include $this->get_template( 'item-title' );
include $this->get_template( 'item-meta' );
include $this->get_template( 'item-content' );
include $this->get_template( 'item-more' );
echo '</div>';
?></div>
</div>

View File

@@ -0,0 +1,26 @@
<?php
/**
* Posts loop start template
*/
$classes = array(
'jet-posts',
'col-row',
jet_elements_tools()->gap_classes( $this->get_attr( 'columns_gap' ), $this->get_attr( 'rows_gap' ) ),
);
$equal = $this->get_attr( 'equal_height_cols' );
if ( $equal ) {
$classes[] = 'jet-equal-cols';
}
$elementor_widget = $this->elementor_widget;
?><div class="<?php echo implode( ' ', $classes ); ?>"><?php
if ( filter_var( $elementor_widget->get_settings_for_display( 'arrows' ), FILTER_VALIDATE_BOOLEAN )
&& filter_var( $elementor_widget->get_settings_for_display( 'carousel_enabled' ), FILTER_VALIDATE_BOOLEAN ) ) {
echo sprintf( '<div class="jet-posts__prev-arrow-%s jet-arrow prev-arrow">%s</div>', $elementor_widget->get_id(), $elementor_widget->__render_icon( 'prev_arrow', '%s', '', false ) );
echo sprintf( '<div class="jet-posts__next-arrow-%s jet-arrow next-arrow">%s</div>', $elementor_widget->get_id(), $elementor_widget->__render_icon( 'next_arrow', '%s', '', false ) );
}

View File

@@ -0,0 +1,6 @@
<?php
/**
* Posts not found template
*/
?>
<h3 class="jet-posts__not-found"><?php esc_html_e( 'Posts not found', 'jet-elements' ); ?></h3>

View File

@@ -0,0 +1,7 @@
<?php
/**
* Price list template
*/
?>
<?php $this->__get_global_looped_template( 'price-list', 'price_list' ); ?>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Price list end template
*/
?>
</ul>

View File

@@ -0,0 +1,30 @@
<?php
/**
* Price list item template
*/
if ( in_array( $this->__processed_index, $this->__hidden_price_items ) ) {
return;
}
$item_title_attr = $this->get_item_inline_editing_attributes( 'item_title', 'price_list', $this->__processed_item_index, 'price-list__item-title' );
$item_price_attr = $this->get_item_inline_editing_attributes( 'item_price', 'price_list', $this->__processed_item_index, 'price-list__item-price' );
$item_desc_attr = $this->get_item_inline_editing_attributes( 'item_text', 'price_list', $this->__processed_item_index, 'price-list__item-desc' );
$this->__processed_item_index += 1;
?>
<li class="price-list__item"><?php
echo $this->__open_price_item_link( 'item_url' );
echo '<div class="price-list__item-inner">';
echo $this->__get_price_list_image();
echo '<div class="price-list__item-content">';
echo '<div class="price-list__item-title__wrapper">';
echo $this->__loop_item( array( 'item_title' ), '<h5 ' . $item_title_attr . '>%s</h5>' );
echo '<div class="price-list__item-separator"></div>';
echo $this->__loop_item( array( 'item_price' ), '<div ' . $item_price_attr . '>%s</div>' );
echo '</div>';
echo $this->__loop_item( array( 'item_text' ), '<div ' . $item_desc_attr . '>%s</div>' );
echo '</div>';
echo '</div>';
echo $this->__close_price_item_link( 'item_url' );
?></li>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Price list start template
*/
?>
<ul class="jet-price-list">

View File

@@ -0,0 +1,10 @@
<?php
/**
* Action box template
*/
?>
<div class="pricing-table__action">
<?php $this->__html( 'button_before', '<div class="pricing-table__action-before">%s</div>' ); ?>
<?php $this->__glob_inc_if( 'button', array( 'button_url', 'button_text' ) ); ?>
<?php $this->__html( 'button_after', '<div class="pricing-table__action-after">%s</div>' ); ?>
</div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Featured badge template
*/
echo $this->__get_badge_image();

View File

@@ -0,0 +1,44 @@
<?php
/**
* Pricing table action button
*/
$settings = $this->get_settings_for_display();
$button_size = ! empty( $settings['button_size'] ) ? $settings['button_size'] : 'auto';
$this->add_render_attribute( 'button', array(
'class' => array(
'elementor-button',
'elementor-size-md',
'pricing-table-button',
'button-' . $button_size . '-size',
),
'href' => $settings['button_url'],
) );
if ( isset( $settings['button_is_external'] ) && filter_var( $settings['button_is_external'], FILTER_VALIDATE_BOOLEAN ) ) {
$this->add_render_attribute( 'button', 'target', '_blank' );
}
if ( isset( $settings['button_nofollow'] ) && filter_var( $settings['button_nofollow'], FILTER_VALIDATE_BOOLEAN ) ) {
$this->add_render_attribute( 'button', 'rel', 'nofollow' );
}
?>
<a <?php echo $this->get_render_attribute_string( 'button' ); ?>><?php
$position = $settings['button_icon_position'];
$icon = $settings['add_button_icon'];
if ( $icon && 'left' === $position ) {
echo $this->__icon( 'button_icon', '<span class="jet-elements-icon button-icon">%s</span>' );
}
echo $this->__html( 'button_text' );
if ( $icon && 'right' === $position ) {
echo $this->__icon( 'button_icon', '<span class="jet-elements-icon button-icon">%s</span>' );
}
?></a>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list end template
*/
?>
</div>

View File

@@ -0,0 +1,15 @@
<?php
/**
* Features list item template
*/
$classes = 'pricing-feature-' . $this->__loop_item( array( '_id' ) );
$classes .= ' ' . $this->__loop_item( array( 'item_included' ) );
?>
<div class="pricing-feature <?php echo $classes; ?>">
<div class="pricing-feature__inner"><?php
echo $this->__pricing_feature_icon();
printf( '<span class="pricing-feature__text">%s</span>', $this->__loop_item( array( 'item_text' ) ) );
?></div>
</div>

View File

@@ -0,0 +1,6 @@
<?php
/**
* Features list start template
*/
?>
<div class="pricing-table__features">

View File

@@ -0,0 +1,10 @@
<?php
/**
* Pricing table heading template
*/
?>
<div class="pricing-table__heading">
<?php $this->__icon( 'icon', '<div class="pricing-table__icon"><div class="pricing-table__icon-box"><span class="jet-elements-icon">%s</span></div></div>' ); ?>
<?php $this->__html( 'title', '<h2 class="pricing-table__title">%s</h2>' ); ?>
<?php $this->__html( 'subtitle', '<h4 class="pricing-table__subtitle">%s</h4>' ); ?>
</div>

View File

@@ -0,0 +1,12 @@
<?php
/**
* Pricing table main template
*/
?>
<div class="pricing-table <?php $this->__html( 'featured', 'featured-table' ); ?>">
<?php $this->__glob_inc_if( 'heading', array( 'icon', 'title', 'subtitle' ) ); ?>
<?php $this->__glob_inc_if( 'price', array( 'price_prefix', 'price', 'price_suffix' ) ); ?>
<?php $this->__get_global_looped_template( 'features', 'features_list' ); ?>
<?php $this->__glob_inc_if( 'action', array( 'button_before', 'button_url', 'button_text', 'button_after' ) ); ?>
<?php $this->__glob_inc_if( 'badge', array( 'featured' ) ); ?>
</div>

View File

@@ -0,0 +1,11 @@
<?php
/**
* Pricing table price block template
*/
?>
<div class="pricing-table__price"><?php
$this->__html( 'price_prefix', '<span class="pricing-table__price-prefix">%s</span>' );
$this->__html( 'price', '<span class="pricing-table__price-val">%s</span>' );
$this->__html( 'price_suffix', '<span class="pricing-table__price-suffix">%s</span>' );
$this->__html( 'price_desc', '<p class="pricing-table__price-desc">%s</p>' );
?></div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Progress Bar template
*/
$settings = $this->get_settings_for_display();
$this->add_render_attribute( 'main-container', 'class', array(
'jet-progress-bar',
'jet-progress-bar-' . $settings['progress_type'],
) );
$this->add_render_attribute( 'main-container', 'data-percent', $settings['percent'] );
$this->add_render_attribute( 'main-container', 'data-type', $settings['progress_type'] );
?>
<div <?php echo $this->get_render_attribute_string( 'main-container' ); ?>>
<?php include $this->__get_type_template( $settings['progress_type'] ); ?>
</div>

View File

@@ -0,0 +1,10 @@
<div class="jet-progress-bar__inner">
<div class="jet-progress-bar__title"><?php
$this->__icon( 'icon', '<span class="jet-progress-bar__title-icon jet-elements-icon">%s</span>' );
$this->__html( 'title', '<span class="jet-progress-bar__title-text">%s</span>' );?></div>
<div class="jet-progress-bar__wrapper">
<div class="jet-progress-bar__status-bar">
<div class="jet-progress-bar__percent"><span class="jet-progress-bar__percent-value">0</span><span class="jet-progress-bar__percent-suffix">&#37;</span></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<div class="jet-progress-bar__inner">
<div class="jet-progress-bar__percent"><span class="jet-progress-bar__percent-value">0</span><span class="jet-progress-bar__percent-suffix">&#37;</span></div>
<div class="jet-progress-bar__wrapper">
<div class="jet-progress-bar__status-bar"></div>
</div>
<div class="jet-progress-bar__title"><?php
$this->__icon( 'icon', '<span class="jet-progress-bar__title-icon jet-elements-icon">%s</span>' );
$this->__html( 'title', '<span class="jet-progress-bar__title-text">%s</span>' );?></div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="jet-progress-bar__inner">
<div class="jet-progress-bar__wrapper">
<div class="jet-progress-bar__status-bar">
<div class="jet-progress-bar__percent"><span class="jet-progress-bar__percent-value">0</span><span class="jet-progress-bar__percent-suffix">&#37;</span></div>
</div>
</div>
<div class="jet-progress-bar__title"><?php
$this->__icon( 'icon', '<span class="jet-progress-bar__title-icon jet-elements-icon">%s</span>' );
$this->__html( 'title', '<span class="jet-progress-bar__title-text">%s</span>' );?></div>
</div>

View File

@@ -0,0 +1,9 @@
<div class="jet-progress-bar__inner">
<div class="jet-progress-bar__title"><?php
$this->__icon( 'icon', '<span class="jet-progress-bar__title-icon jet-elements-icon">%s</span>' );
$this->__html( 'title', '<span class="jet-progress-bar__title-text">%s</span>' );?></div>
<div class="jet-progress-bar__wrapper">
<div class="jet-progress-bar__status-bar"></div>
</div>
<div class="jet-progress-bar__percent"><span class="jet-progress-bar__percent-value">0</span><span class="jet-progress-bar__percent-suffix">&#37;</span></div>
</div>

View File

@@ -0,0 +1,9 @@
<div class="jet-progress-bar__inner">
<div class="jet-progress-bar__title"><?php
$this->__icon( 'icon', '<span class="jet-progress-bar__title-icon jet-elements-icon">%s</span>' );
$this->__html( 'title', '<span class="jet-progress-bar__title-text">%s</span>' );?></div>
<div class="jet-progress-bar__wrapper">
<div class="jet-progress-bar__status-bar"></div>
<div class="jet-progress-bar__percent"><span class="jet-progress-bar__percent-value">0</span><span class="jet-progress-bar__percent-suffix">&#37;</span></div>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<div class="jet-progress-bar__inner">
<div class="jet-progress-bar__wrapper">
<div class="jet-progress-bar__status-bar"></div>
<div class="jet-progress-bar__status">
<div class="jet-progress-bar__percent"><span class="jet-progress-bar__percent-value">0</span><span class="jet-progress-bar__percent-suffix">&#37;</span></div>
<div class="jet-progress-bar__title"><?php
$this->__icon( 'icon', '<span class="jet-progress-bar__title-icon jet-elements-icon">%s</span>' );
$this->__html( 'title', '<span class="jet-progress-bar__title-text">%s</span>' );?></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<div class="jet-progress-bar__inner">
<div class="jet-progress-bar__wrapper">
<div class="jet-progress-bar__percent"><span class="jet-progress-bar__percent-value">0</span><span class="jet-progress-bar__percent-suffix">&#37;</span></div>
<div class="jet-progress-bar__status-bar"></div>
</div>
<div class="jet-progress-bar__title"><?php
$this->__icon( 'icon', '<span class="jet-progress-bar__title-icon jet-elements-icon">%s</span>' );
$this->__html( 'title', '<span class="jet-progress-bar__title-text">%s</span>' );?></div>
</div>

Some files were not shown because too many files have changed in this diff Show More