Files
carpseeds.pl/wp-content/plugins/jet-tricks/templates/admin-templates/settings-page.php
2024-07-15 11:28:08 +02:00

102 lines
3.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Main dashboard template
*/
?><div id="jet-tricks-settings-page">
<div class="jet-tricks-settings-page">
<h1 class="cs-vui-title"><?php _e( 'JetTricks Settings', 'jet-tricks' ); ?></h1>
<div class="cx-vui-panel">
<cx-vui-tabs
:in-panel="false"
value="general-settings"
layout="vertical">
<?php do_action( 'jet-tricks/settings-page-template/tabs-start' ); ?>
<cx-vui-tabs-panel
name="general-settings"
label="<?php _e( 'General settings', 'jet-tricks' ); ?>"
key="general-settings">
<cx-vui-select
name="widgets_load_level"
label="<?php _e( 'Editor Load Level', 'jet-tricks' ); ?>"
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-tricks' ); ?>"
: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-tricks' ); ?>"
key="available-widgets">
<div class="jet-tricks-settings-page__disable-all-widgets">
<div class="cx-vui-component__label">
<span v-if="disableAllWidgets"><?php _e( 'Disable All Widgets', 'jet-tricks' ); ?></span>
<span v-if="!disableAllWidgets"><?php _e( 'Enable All Widgets', 'jet-tricks' ); ?></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-tricks-settings-page__avaliable-controls">
<div
class="jet-tricks-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-tricks' ); ?>"
key="available-extensions">
<div class="jet-tricks-settings-page__avaliable-controls">
<div
class="jet-tricks-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-tricks/settings-page-template/tabs-end' ); ?>
</cx-vui-tabs>
</div>
</div>
</div>