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,39 @@
<?php
/**
* Verticall tab template.
*
* @package Cherry_Interface_Builder
* @subpackage Views
* @author Cherry Team <cherryframework@gmail.com>
* @copyright Copyright (c) 2012 - 2017, Cherry Team
* @link http://www.cherryframework.com/
* @license http://www.gnu.org/licenses/gpl-3.0.html
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cherry-ui-kit cherry-component cherry-tab cherry-tab--vertical <?php echo esc_attr( $__data['class'] ); ?>" data-compotent-id="#<?php echo esc_attr( $__data['id'] ); ?>">
<?php if ( ! empty( $__data['title'] ) ) { ?>
<h2 class="cherry-ui-kit__title cherry-component__title" role="banner" ><?php echo wp_kses_post( $__data['title'] ); ?></h2>
<?php } ?>
<?php if ( ! empty( $__data['description'] ) ) { ?>
<div class="cherry-ui-kit__description cherry-component__description" role="note" ><?php echo wp_kses_post( $__data['description'] ); ?></div>
<?php } ?>
<?php if ( ! empty( $__data['children'] ) ) { ?>
<div class="cherry-tab__body" >
<div class="cherry-tab__tabs" role="navigation" >
<div class="cherry-tab__tabs-wrap">
<div class="cherry-tab__tabs-wrap-content">
<?php echo $__data['tabs']; ?>
</div>
</div>
</div>
<div class="cherry-ui-kit__content cherry-component__content cherry-tab__content" role="group" >
<?php echo $__data['children']; ?>
</div>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,18 @@
<div class="jet-editor-frame">
<div class="jet-close-frame">
<span class="back-arrow-top"></span>
<span class="back-arrow-bottom"></span>
</div>
<iframe src="{{{ data.url }}}" width="100%" class="jet-edit-frame"></iframe>
<div id="elementor-loading" style="">
<div class="elementor-loader-wrapper">
<div class="elementor-loader">
<div class="elementor-loader-box"></div>
<div class="elementor-loader-box"></div>
<div class="elementor-loader-box"></div>
<div class="elementor-loader-box"></div>
</div>
<div class="elementor-loading-title">Loading</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,4 @@
<span class="jet-menu-trigger" data-item-id="{{{ data.id }}}" data-item-depth="{{{ data.depth }}}">
<span class="dashicons dashicons-admin-generic"></span>
{{{ data.label }}}
</span>

View File

@@ -0,0 +1,20 @@
<div class="jet-settings-tabs">
<div class="jet-settings-tabs__nav">
<# _.each( data.tabs, function( tab, key ) { #>
<# if ( ! ( tab.depthFrom <= data.depth && data.depth < tab.depthTo ) ) {
return;
} #>
<div class="jet-settings-tabs__nav-item" data-tab="{{{ key }}}" data-action="{{{ tab.action }}}" data-template="{{{ tab.template }}}">
{{{ tab.label }}}
</div>
<# } ); #>
</div>
<div class="jet-settings-tabs__content">
<# _.each( data.tabs, function( tab, key ) { #>
<# if ( ! ( tab.depthFrom <= data.depth && data.depth < tab.depthTo ) ) {
return;
} #>
<div class="jet-settings-tabs__content-item jet-hidden-tab" data-tab="{{{ key }}}" data-action="{{{ tab.action }}}" data-template="{{{ tab.template }}}" data-loaded="0"><div class="tab-loader"></div></div>
<# } ); #>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<div class="jet-menu-popup jet-hidden" id="jet-popup-{{{ data.id }}}" data-id="{{{ data.id }}}">
<div class="jet-menu-popup__overlay"></div>
<div class="jet-menu-popup__content">
<div class="jet-menu-popup__inner">{{{ data.content }}}</div>
<div class="jet-menu-popup__actions">
<span class="jet-menu-popup__close"><span class="dashicons dashicons-no"></span></span>
<div class="jet-menu-popup__actions-save">
<span class='spinner'></span>
<span class="dashicons dashicons-yes hidden"></span>
<button class="cherry5-ui-button cherry5-ui-button-success-style jet-save-menu">
{{{ data.saveLabel }}}
</button>
</div>
</div>
<div class="jet-menu-editor-wrap"></div>
</div>
</div>

View File

@@ -0,0 +1,101 @@
<?php
/**
* Presets manager view
*/
?>
<div class="cherry-ui-kit cherry-control">
<div class="cherry-control__info">
<h4 class="cherry-ui-kit__title cherry-control__title" role="banner"><?php
esc_html_e( 'Create Preset', 'jet-menu' );
?></h4>
<div class="cherry-ui-kit__description cherry-control__description" role="note"><?php
esc_html_e( 'Create new preset from current options configuration', 'jet-menu' );
?></div>
</div>
<div class="cherry-ui-kit__content cherry-control__content" role="group">
<div class="cherry-ui-container">
<div class="cherry-ui-control-preset-wrapper">
<input type="text" class="cherry-ui-text jet-preset-name" placeholder="<?php esc_html_e( 'Preset Name', 'jet-menu' ); ?>">
<?php $this->preset_action( 'jet-menu-create-preset', esc_html__( 'Save', 'jet-menu' ) ); ?>
</div>
</div>
</div>
</div>
<div class="cherry-ui-kit cherry-control">
<div class="cherry-control__info">
<h4 class="cherry-ui-kit__title cherry-control__title" role="banner"><?php
esc_html_e( 'Update Preset', 'jet-menu' );
?></h4>
<div class="cherry-ui-kit__description cherry-control__description" role="note"><?php
esc_html_e( 'Save current options configuration to existing preset', 'jet-menu' );
?></div>
</div>
<div class="cherry-ui-kit__content cherry-control__content" role="group">
<div class="cherry-ui-container">
<div class="cherry-ui-control-preset-wrapper"><?php
$presets = $this->get_presets();
if ( ! empty( $presets ) ) {
$this->preset_select(
'jet-update-preset',
esc_html__( 'Select preset to update...', 'jet-menu' )
);
$this->preset_action( 'jet-menu-update-preset', esc_html__( 'Update', 'jet-menu' ) );
} else {
esc_html_e( 'You haven\'t created any presets yet', 'jet-menu' );
}
?></div>
</div>
</div>
</div>
<div class="cherry-ui-kit cherry-control">
<div class="cherry-control__info">
<h4 class="cherry-ui-kit__title cherry-control__title" role="banner"><?php
esc_html_e( 'Apply This Preset Globally', 'jet-menu' );
?></h4>
<div class="cherry-ui-kit__description cherry-control__description" role="note"><?php
esc_html_e( 'Load preset to use it for all menu locations', 'jet-menu' );
?></div>
</div>
<div class="cherry-ui-kit__content cherry-control__content" role="group">
<div class="cherry-ui-container">
<div class="cherry-ui-control-preset-wrapper"><?php
$presets = $this->get_presets();
if ( ! empty( $presets ) ) {
$this->preset_select(
'jet-load-preset',
esc_html__( 'Select preset to apply...', 'jet-menu' )
);
$this->preset_action( 'jet-menu-load-preset', esc_html__( 'Load', 'jet-menu' ) );
} else {
esc_html_e( 'You haven\'t created any presets yet', 'jet-menu' );
}
?></div>
</div>
</div>
</div>
<div class="cherry-ui-kit cherry-control jet-delete-preset-wrap">
<div class="cherry-control__info">
<h4 class="cherry-ui-kit__title cherry-control__title" role="banner"><?php
esc_html_e( 'Delete Preset', 'jet-menu' );
?></h4>
<div class="cherry-ui-kit__description cherry-control__description" role="note"><?php
esc_html_e( 'Delete existing preset', 'jet-menu' );
?></div>
</div>
<div class="cherry-ui-kit__content cherry-control__content" role="group">
<div class="cherry-ui-container">
<div class="cherry-ui-control-preset-wrapper"><?php
$presets = $this->get_presets();
if ( ! empty( $presets ) ) {
$this->preset_select(
'jet-delete-preset',
esc_html__( 'Select preset to delete...', 'jet-menu' )
);
$this->preset_action( 'jet-menu-delete-preset', esc_html__( 'Delete', 'jet-menu' ) );
} else {
esc_html_e( 'You haven\'t created any presets yet', 'jet-menu' );
}
?></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Import-export template
*/
?>
<div class="jet-menu-import-export">
<a href="<?php echo jet_menu_option_page()->export_url(); ?>" class="cherry5-ui-button cherry5-ui-button-normal-style ui-button jet-menu-export-btn">
<?php esc_html_e( 'Export', 'jet-menu' ); ?>
</a>
<button type="button" class="cherry5-ui-button cherry5-ui-button-normal-style ui-button jet-menu-import-btn">
<?php esc_html_e( 'Import', 'jet-menu' ); ?>
</button>
<div class="jet-menu-import">
<div class="jet-menu-import__inner">
<input type="file" class="jet-menu-import-file" accept="application/json" multiple="false">
<button type="button" class="cherry5-ui-button cherry5-ui-button-normal-style ui-button jet-menu-run-import-btn">
<span class="text"><?php esc_html_e( 'Go', 'jet-menu' ); ?></span><span class="loader-wrapper"><span class="loader"></span></span><span class="dashicons dashicons-yes icon"></span>
</button>
<div class="jet-menu-import-messages"></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,12 @@
<?php
foreach ( $settings_stack as $key => $args ) {
$args['value'] = isset( $saved_settings[ $location ][ $key ] ) ? $saved_settings[ $location ][ $key ] : $args['value'];
$args['class'] = isset( $args['class'] ) ? $args['class'] . ' jet-menu-control' : 'jet-menu-control';
$args['id'] = sprintf( '%1$s-%2$s', $location, $args['id'] );
$args['name'] = sprintf( '%1$s[%2$s]', $location, $args['name'] );
$instance = jet_menu()->ui()->get_ui_element_instance( $args['type'], $args );
printf( '<div>%s</div>', $instance->render() );
}

View File

@@ -0,0 +1,37 @@
<div class="jet-menu-settings-fields">
<?php
if ( count( $tagged_menu_locations ) == 1 ) {
$locations = array_keys( $tagged_menu_locations );
$location = $locations[0];
if ( isset( $tagged_menu_locations[ $location ] ) ) {
include $settings_list;
}
} else {
echo '<div class="jet-menu-settings-locations">';
foreach ( $theme_locations as $location => $name ) {
if ( ! isset( $tagged_menu_locations[ $location ] ) ) {
continue;
}
printf( '<h4 class="theme_settings">%s</h4>', esc_html( $name ) );
echo '<div>';
include $settings_list;
echo '</div>';
}
echo '</div>';
}
?>
</div>
<?php submit_button( __( 'Save', 'jet-menu' ), 'jet-menu-settins-save button-primary alignright' ); ?>
<span class='spinner'></span>

View File

@@ -0,0 +1,16 @@
<div class="jet-content-tab-wrap">
<div class="jet-enabled-wrap"><?php
echo $enabled;
?></div>
<div class="jet-edit-content-btn">
<?php if ( jet_menu()->has_elementor() ) : ?>
<button class="cherry5-ui-button cherry5-ui-button-success-style button-hero jet-menu-editor"><?php
esc_html_e( 'Edit Mega Menu Item Content', 'jet-menu' );
?></button>
<?php else : ?>
<p><?php
esc_html_e( 'This plugin requires Elementor page builder to edt Mega Menu items content', 'jet-menu' );
?></p>
<?php endif; ?>
</div>
</div>