Файловый менеджер - Редактировать - /home/digitalm/studiodentisticodigitalecm/wp-content/themes/healthy-smiles/kits/settings/footer/footer.php
Назад
<?php namespace HealthySmilesSpace\Kits\Settings\Footer; use HealthySmilesSpace\Kits\Controls\Controls_Manager as CmsmastersControls; use HealthySmilesSpace\Kits\Settings\Base\Settings_Tab_Base; use Elementor\Controls_Manager; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Footer settings. */ class Footer extends Settings_Tab_Base { /** * Get toggle name. * * Retrieve the toggle name. * * @return string Toggle name. */ public static function get_toggle_name() { return 'footer'; } /** * Get title. * * Retrieve the toggle title. */ public function get_title() { return esc_html__( 'Footer', 'healthy-smiles' ); } /** * Get control ID prefix. * * Retrieve the control ID prefix. * * @return string Control ID prefix. */ protected static function get_control_id_prefix() { $toggle_name = self::get_toggle_name(); return parent::get_control_id_prefix() . "_{$toggle_name}"; } /** * Register toggle controls. * * Registers the controls of the kit settings tab toggle. */ protected function register_toggle_controls() { $this->add_control( 'notice', array( 'raw' => esc_html__( "If you use a 'Footer' template, then the settings will not be applied, if you set the template to sitewide, then these settings will be hidden.", 'healthy-smiles' ), 'type' => Controls_Manager::RAW_HTML, 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info', 'render_type' => 'ui', ) ); $this->add_control( 'type', array( 'label' => esc_html__( 'Type', 'healthy-smiles' ), 'label_block' => false, 'description' => esc_html__( 'This setting will be applied after save and reload.', 'healthy-smiles' ), 'type' => Controls_Manager::CHOOSE, 'options' => array( 'horizontal' => array( 'title' => esc_html__( 'Horizontal', 'healthy-smiles' ), 'icon' => 'eicon-ellipsis-h', ), 'vertical' => array( 'title' => esc_html__( 'Vertical', 'healthy-smiles' ), 'icon' => 'eicon-ellipsis-v', ), ), 'default' => $this->get_default_setting( $this->get_control_name_parameter( '', 'type' ), 'horizontal' ), 'toggle' => false, ) ); $this->add_control( 'alignment', array( 'label' => esc_html__( 'Alignment', 'healthy-smiles' ), 'label_block' => false, 'type' => Controls_Manager::CHOOSE, 'options' => array( 'center' => array( 'title' => esc_html__( 'Centered', 'healthy-smiles' ), 'icon' => 'eicon-text-align-center', ), 'space-between' => array( 'title' => esc_html__( 'Justified', 'healthy-smiles' ), 'icon' => 'eicon-text-align-justify', ), ), 'selectors' => array( ':root' => '--' . $this->get_control_prefix_parameter( '', 'alignment' ) . ': {{VALUE}};', ), 'toggle' => true, 'condition' => array( $this->get_control_id_parameter( '', 'type' ) => 'horizontal' ), ) ); $this->add_control( 'elements_heading_control', array( 'label' => esc_html__( 'Elements Order', 'healthy-smiles' ), 'type' => Controls_Manager::HEADING, ) ); $this->add_control( 'elements', array( 'label_block' => true, 'show_label' => false, 'description' => esc_html__( 'This setting will be applied after save and reload.', 'healthy-smiles' ), 'type' => CmsmastersControls::SELECTIZE, 'options' => array( 'copyright' => esc_html__( 'Copyright', 'healthy-smiles' ), 'nav' => esc_html__( 'Navigation', 'healthy-smiles' ), 'social' => esc_html__( 'Social Icons', 'healthy-smiles' ), 'info' => esc_html__( 'Short Info', 'healthy-smiles' ), 'logo' => esc_html__( 'Logo', 'healthy-smiles' ), 'html' => esc_html__( 'Custom HTML', 'healthy-smiles' ), ), 'default' => $this->get_default_setting( $this->get_control_name_parameter( '', 'elements' ), array( 'copyright' ) ), 'multiple' => true, ) ); $this->add_responsive_control( 'elements_gap', array( 'label' => esc_html__( 'Gap Between', 'healthy-smiles' ), 'type' => Controls_Manager::SLIDER, 'range' => array( 'px' => array( 'min' => 0, 'max' => 50, ), '%' => array( 'min' => 0, 'max' => 100, ), 'vw' => array( 'min' => 0, 'max' => 10, ), ), 'size_units' => array( 'px', '%', 'vw', ), 'selectors' => array( ':root' => '--' . $this->get_control_prefix_parameter( '', 'elements_gap' ) . ': {{SIZE}}{{UNIT}};', ), 'condition' => array( $this->get_control_id_parameter( '', 'elements!' ) => '' ), ) ); $this->add_controls_group( 'container', self::CONTROLS_CONTAINER ); $this->add_controls_group( 'content', self::CONTROLS_CONTENT ); $this->add_control( 'apply_settings', array( 'label_block' => true, 'show_label' => false, 'type' => Controls_Manager::BUTTON, 'text' => esc_html__( 'Save & Reload', 'healthy-smiles' ), 'event' => 'cmsmasters:theme_settings:apply_settings', 'separator' => 'before', ) ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка