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,77 @@
<?php
/**
* Main dashboard template
*/
?><div id="jet-tabs-settings-page">
<div class="jet-tabs-settings-page">
<h1 class="cs-vui-title"><?php _e( 'JetTabs Settings', 'jet-tabs' ); ?></h1>
<div class="cx-vui-panel">
<cx-vui-tabs
:in-panel="false"
value="general-settings"
layout="vertical">
<?php do_action( 'jet-tabs/settings-page-template/tabs-start' ); ?>
<cx-vui-tabs-panel
name="general-settings"
label="<?php _e( 'General settings', 'jet-tabs' ); ?>"
key="general-settings">
<cx-vui-select
name="widgets_load_level"
label="<?php _e( 'Editor Load Level', 'jet-tabs' ); ?>"
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-tabs' ); ?>"
: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="available-widgets"
label="<?php _e( 'Available Widgets', 'jet-tabs' ); ?>"
key="available-widgets">
<div class="jet-tabs-settings-page__disable-all-widgets">
<div class="cx-vui-component__label">
<span v-if="disableAllWidgets"><?php _e( 'Disable All Widgets', 'jet-tabs' ); ?></span>
<span v-if="!disableAllWidgets"><?php _e( 'Enable All Widgets', 'jet-tabs' ); ?></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-tabs-settings-page__avaliable-controls">
<div
class="jet-tabs-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>
<?php do_action( 'jet-tabs/settings-page-template/tabs-end' ); ?>
</cx-vui-tabs>
</div>
</div>
</div>

View File

@@ -0,0 +1,33 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
<title><?php echo wp_get_document_title(); ?></title>
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
do_action( 'jet-tabs/elementor-canvas-page/before-content' );
while ( have_posts() ) :
the_post();
the_content();
endwhile;
do_action( 'jet-tabs/elementor-canvas-page/after-content' );
wp_footer();
?>
<div id="secondary"></div>
</body>
</html>

View File

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

View File

@@ -0,0 +1,13 @@
<?php
/**
* Image accordion list item template
*/
?>
<div class="jet-image-accordion__item">
<?php echo $this->__loop_item( array( 'item_image', 'url' ), '<img class="jet-image-accordion__image-instance" src="%s" alt="">' ); ?>
<div class="jet-image-accordion__content"><?php
echo $this->__loop_item( array( 'item_title' ), '<h5 class="jet-image-accordion__title">%s</h5>' );
echo $this->__loop_item( array( 'item_desc' ), '<div class="jet-image-accordion__desc">%s</div>' );
echo $this->__generate_action_button();?></div>
<div class="jet-image-accordion__item-loader"><span></span></div>
</div>

View File

@@ -0,0 +1,11 @@
<?php
/**
* Image accordion list start template
*/
$this->add_render_attribute( 'inner-container', 'class', array(
'jet-image-accordion__list',
) );
?>
<div <?php echo $this->get_render_attribute_string( 'inner-container' ); ?>>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Images Layout template
*/
$settings = $this->get_settings();
$this->add_render_attribute( 'main-container', 'class', array(
'jet-image-accordion',
'jet-image-accordion-' . $settings['instance_orientation'] . '-orientation',
'jet-image-accordion-' . $settings['anim_ease'] . '-ease',
) );
$this->add_render_attribute( 'main-container', 'data-settings', $this->generate_setting_json() );
?>
<div <?php echo $this->get_render_attribute_string( 'main-container' ); ?>>
<?php $this->__get_global_looped_template( 'image-accordion', 'item_list' ); ?>
</div>

View File

@@ -0,0 +1,38 @@
<?php
/**
* Switcher Preset-1
*/
$this->add_render_attribute( 'jet_switcher_control_disable', array(
'class' => array(
'jet-switcher__control',
'jet-switcher__control--disable',
),
'role' => 'button',
'aria-controls' => 'jet-switcher-content-disable-' . $this->get_id(),
'aria-expanded' => ! $initial_state ? 'true' : 'false',
) );
$disable_label_html = ! empty( $widget_settings['disable_label'] ) ? sprintf( '<div class="jet-switcher__label-text">%1$s</div>', $widget_settings['disable_label'] ) : '';
$this->add_render_attribute( 'jet_switcher_control_enable', array(
'class' => array(
'jet-switcher__control',
'jet-switcher__control--enable',
),
'role' => 'button',
'aria-controls' => 'jet-switcher-content-enable-' . $this->get_id(),
'aria-expanded' => $initial_state ? 'true' : 'false',
) );
$enable_label_html = ! empty( $widget_settings['disable_label'] ) ? sprintf( '<div class="jet-switcher__label-text">%1$s</div>', $widget_settings['enable_label'] ) : '';
?>
<div class="jet-switcher__control-instance">
<div class="jet-switcher__control-handler"><span></span></div>
<div <?php echo $this->get_render_attribute_string( 'jet_switcher_control_disable' ); ?>><?php
echo $disable_label_html; ?></div>
<div <?php echo $this->get_render_attribute_string( 'jet_switcher_control_enable' ); ?>><?php
echo $enable_label_html; ?></div>
</div>

View File

@@ -0,0 +1,36 @@
<?php
/**
* Switcher Preset-1
*/
$this->add_render_attribute( 'jet_switcher_control_disable', array(
'class' => array(
'jet-switcher__control',
'jet-switcher__control--disable',
),
'role' => 'button',
'aria-controls' => 'jet-switcher-content-disable-' . $this->get_id(),
'aria-expanded' => ! $initial_state ? 'true' : 'false',
) );
$disable_label_html = ! empty( $widget_settings['disable_label'] ) ? sprintf( '<div class="jet-switcher__label-text">%1$s</div>', $widget_settings['disable_label'] ) : '';
$this->add_render_attribute( 'jet_switcher_control_enable', array(
'class' => array(
'jet-switcher__control',
'jet-switcher__control--enable',
),
'role' => 'button',
'aria-controls' => 'jet-switcher-content-enable-' . $this->get_id(),
'aria-expanded' => $initial_state ? 'true' : 'false',
) );
$enable_label_html = ! empty( $widget_settings['disable_label'] ) ? sprintf( '<div class="jet-switcher__label-text">%1$s</div>', $widget_settings['enable_label'] ) : '';
?>
<div <?php echo $this->get_render_attribute_string( 'jet_switcher_control_disable' ); ?>><?php echo $disable_label_html; ?></div>
<div class="jet-switcher__control-instance">
<div class="jet-switcher__control-handler"><span></span></div>
</div>
<div <?php echo $this->get_render_attribute_string( 'jet_switcher_control_enable' ); ?>><?php echo $enable_label_html; ?></div>