Файловый менеджер - Редактировать - /home2/cocinasdalloway/public_html/tienda/wp-content/themes/negan/framework/configs/options/general.php
Назад
<?php // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } /** * General settings * * @param array $sections An array of our sections. * @return array */ function negan_options_section_general( $sections ) { $sections['general'] = array( 'name' => 'general_panel', 'title' => esc_html__('General', 'negan'), 'icon' => 'fa fa-tachometer', 'sections' => array( array( 'name' => 'general_sections', 'title' => esc_html__('General', 'negan'), 'icon' => 'fa fa-check', 'fields' => array( array( 'id' => 'layout', 'title' => esc_html__('Global Layout', 'negan'), 'type' => 'image_select', 'radio' => true, 'default' => 'col-1c', 'desc' => esc_html__('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'negan'), 'options' => Negan_Options::get_config_main_layout_opts(true, false) ), array( 'id' => 'body_boxed', 'type' => 'radio', 'default' => 'no', 'class' => 'la-radio-style', 'title' => esc_html__('Enable Layout Boxed', 'negan'), 'options' => Negan_Options::get_config_radio_opts(false) ), array( 'id' => 'body_max_width', 'type' => 'slider', 'default' => 1230, 'title' => esc_html__( 'Body Max Width', 'negan' ), 'dependency' => array('body_boxed_yes', '==', 'true'), 'options' => array( 'step' => 5, 'min' => 900, 'max' => 2000, 'unit' => 'px' ) ), array( 'id' => 'main_full_width', 'type' => 'radio', 'default' => 'no', 'class' => 'la-radio-style', 'title' => esc_html__('100% Main Width', 'negan'), 'desc' => esc_html__('Turn on to have the main area display at 100% width according to the window size. Turn off to follow site width.', 'negan'), 'options' => Negan_Options::get_config_radio_opts(false) ), array( 'id' => 'main_space', 'type' => 'spacing', 'title' => esc_html__('Custom Main Space', 'negan'), 'desc' => esc_html__('Leave empty if you not need', 'negan'), 'unit' => 'px', 'default' => array( 'top' => '70', 'bottom' => '30' ) ), array( 'id' => 'google_rich_snippets', 'type' => 'radio', 'default' => 'no', 'class' => 'la-radio-style', 'title' => esc_html__('Breadcrumbs Google Rich Snippets', 'negan'), 'desc' => esc_html__('Turn on to the Google Rich Snippets in the Breadcrumbs.', 'negan'), 'options' => Negan_Options::get_config_radio_opts(false) ), array( 'id' => 'backtotop_btn', 'type' => 'radio', 'default' => 'no', 'class' => 'la-radio-style', 'title' => esc_html__('"Back to top" Button', 'negan'), 'desc' => esc_html__('Turn on to show "Back to top" button', 'negan'), 'options' => Negan_Options::get_config_radio_opts(false) ), array( 'id' => 'enable_one_time_click', 'type' => 'radio', 'default' => 'no', 'class' => 'la-radio-style', 'title' => esc_html__('One click on the product', 'negan'), 'desc' => esc_html__('Disable double click when viewing the site on touch-enabled devices', 'negan'), 'options' => Negan_Options::get_config_radio_opts(false) ) ) ), array( 'name' => 'favicon_sections', 'title' => esc_html__('Custom Favicon', 'negan'), 'icon' => 'fa fa-check', 'fields' => array( array( 'id' => 'favicon', 'type' => 'image', 'title' => esc_html__('Favicon', 'negan'), 'desc' => esc_html__('Favicon for your website at 16px x 16px.', 'negan') ), array( 'id' => 'favicon_iphone', 'type' => 'image', 'title' => esc_html__('Apple iPhone Icon Upload', 'negan'), 'desc' => esc_html__('Favicon for Apple iPhone at 57px x 57px.', 'negan') ), array( 'id' => 'favicon_ipad', 'type' => 'image', 'title' => esc_html__('Apple iPad Icon Upload', 'negan'), 'desc' => esc_html__('Favicon for Apple iPad at 72px x 72px.', 'negan') ) ) ), array( 'name' => 'logo_sections', 'title' => esc_html__('Logo', 'negan'), 'icon' => 'fa fa-check', 'fields' => array( array( 'id' => 'logo', 'type' => 'image', 'title' => esc_html__('Default Logo', 'negan'), 'desc' => esc_html__('Select an image file for your logo.', 'negan') ), array( 'id' => 'logo_2x', 'type' => 'image', 'title' => esc_html__('Retina Default Logo', 'negan'), 'desc' => esc_html__('Select an image file for the retina version of the logo. It should be exactly 2x the size of the main logo.', 'negan') ), array( 'id' => 'logo_transparency', 'type' => 'image', 'title' => esc_html__('Transparency Header Logo', 'negan'), 'desc' => esc_html__('Select an image file for your transparency header logo.', 'negan') ), array( 'id' => 'logo_transparency_2x', 'type' => 'image', 'title' => esc_html__('Retina Transparency Logo', 'negan'), 'desc' => esc_html__('Select an image file for the retina version of the logo. It should be exactly 2x the size of the transparency header logo.', 'negan') ), array( 'id' => 'logo_mobile', 'type' => 'image', 'title' => esc_html__('Mobile Logo', 'negan'), 'desc' => esc_html__('Select an image file for your mobile logo.', 'negan') ), array( 'id' => 'logo_mobile_2x', 'type' => 'image', 'title' => esc_html__('Retina Mobile Logo', 'negan'), 'desc' => esc_html__('Select an image file for the retina version of the logo. It should be exactly 2x the size of the mobile logo.', 'negan') ) ) ), array( 'name' => 'color_sections', 'title' => esc_html__('Colors', 'negan'), 'icon' => 'fa fa-paint-brush', 'fields' => array( array( 'id' => 'body_background', 'type' => 'background', 'title' => esc_html__('Body Background', 'negan') ), array( 'id' => 'body_boxed_background', 'type' => 'background', 'title' => esc_html__('Body Boxed Background', 'negan'), 'dependency' => array('body_boxed_yes', '==', 'true'), ), array( 'id' => 'text_color', 'default' => Negan_Options::get_color_default('text_color'), 'type' => 'color_picker', 'title' => esc_html__('Text Color', 'negan') ), array( 'id' => 'heading_color', 'default' => Negan_Options::get_color_default('heading_color'), 'type' => 'color_picker', 'title' => esc_html__('Heading Color', 'negan') ), array( 'id' => 'primary_color', 'default' => Negan_Options::get_color_default('primary_color'), 'type' => 'color_picker', 'title' => esc_html__('Primary Color', 'negan') ), array( 'id' => 'secondary_color', 'default' => Negan_Options::get_color_default('secondary_color'), 'type' => 'color_picker', 'title' => esc_html__('Secondary Color', 'negan') ), array( 'id' => 'three_color', 'default' => Negan_Options::get_color_default('three_color'), 'type' => 'color_picker', 'title' => esc_html__('Three Color', 'negan') ), array( 'id' => 'border_color', 'default' => Negan_Options::get_color_default('border_color'), 'type' => 'color_picker', 'title' => esc_html__('Border Color', 'negan') ) ) ), array( 'name' => 'loading_sections', 'title' => esc_html__('Page Loading', 'negan'), 'icon' => 'fa fa-refresh fa-spin', 'fields' => array( array( 'id' => 'page_loading_animation', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'off', 'title' => esc_html__('Page Loading Animation', 'negan'), 'desc' => esc_html__('Turn on to show the icon/images loading animation before view site', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false) ), array( 'id' => 'page_loading_style', 'type' => 'select', 'default' => '1', 'title' => esc_html__('Page Loading Style', 'negan'), 'options' => array( '1' => esc_html__('Style 1', 'negan'), '2' => esc_html__('Style 2', 'negan'), '3' => esc_html__('Style 3', 'negan'), '4' => esc_html__('Style 4', 'negan'), 'custom' => esc_html__('Custom image', 'negan') ), 'dependency' => array('page_loading_animation_on', '==', 'true'), ), array( 'id' => 'page_loading_background', 'type' => 'background', 'title' => esc_html__('Page Loading Background', 'negan') ), array( 'id' => 'page_loading_color', 'type' => 'color_picker', 'default' => Negan_Options::get_color_default('primary_color'), 'title' => esc_html__('Page Loading Color', 'negan') ), array( 'id' => 'page_loading_custom', 'type' => 'image', 'title' => esc_html__('Custom Page Loading Image', 'negan'), 'add_title' => esc_html__('Add Image', 'negan'), 'dependency'=> array('page_loading_animation_on|page_loading_style', '==|==', 'true|custom'), ) ) ) ) ); return $sections; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.22 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка