Файловый менеджер - Редактировать - /home/digitalm/invisalign/wp-content/themes/healthy-smiles/kits/settings/search/title.php
Назад
<?php namespace HealthySmilesSpace\Kits\Settings\Search; use HealthySmilesSpace\Kits\Settings\Base\Settings_Tab_Base; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Search Title settings. * * @since 1.0.0 */ class Title extends Settings_Tab_Base { /** * Get toggle name. * * Retrieve the toggle name. * * @since 1.0.0 * * @return string Toggle name. */ public static function get_toggle_name() { return 'search_title'; } /** * Get title. * * Retrieve the toggle title. * * @since 1.0.0 */ public function get_title() { return esc_html__( 'Title', 'healthy-smiles' ); } /** * Get control ID prefix. * * Retrieve the control ID prefix. * * @return string Control ID prefix. */ protected static function get_control_id_prefix() { return parent::get_control_id_prefix() . '_search'; } /** * Get toggle conditions. * * Retrieve the settings toggle conditions. * * @since 1.0.0 * * @return array Toggle conditions. */ protected function get_toggle_conditions() { return array( 'conditions' => array( 'relation' => 'or', 'terms' => array( array( 'relation' => 'and', 'terms' => array( array( 'name' => $this->get_control_id_parameter( '', 'type' ), 'operator' => '===', 'value' => 'large', ), array( 'name' => $this->get_control_id_parameter( '', 'large_elements' ), 'operator' => 'contains', 'value' => 'title', ), ), ), array( 'relation' => 'and', 'terms' => array( array( 'name' => $this->get_control_id_parameter( '', 'type' ), 'operator' => '===', 'value' => 'grid', ), array( 'name' => $this->get_control_id_parameter( '', 'grid_elements' ), 'operator' => 'contains', 'value' => 'title', ), ), ), array( 'relation' => 'and', 'terms' => array( array( 'name' => $this->get_control_id_parameter( '', 'type' ), 'operator' => '===', 'value' => 'compact', ), array( 'name' => $this->get_control_id_parameter( '', 'compact_elements' ), 'operator' => 'contains', 'value' => 'title', ), ), ), ), ), ); } /** * Register toggle controls. * * Registers the controls of the kit settings tab toggle. * * @since 1.0.0 */ protected function register_toggle_controls() { $this->add_controls_group( 'title', self::CONTROLS_POST_TITLE, array( 'hover' => true ) ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка