Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
drleilu
/
www
/
wp-content
/
themes
/
bella-beauty
/
kits
/
settings
/
archive
/
✏️
Editing: archive.php
<?php namespace BellaBeautySpace\Kits\Settings\Archive; use BellaBeautySpace\Kits\Settings\Base\Settings_Tab_Base; use Elementor\Controls_Manager; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Archive settings. */ class Archive extends Settings_Tab_Base { /** * Get toggle name. * * Retrieve the toggle name. * * @return string Toggle name. */ public static function get_toggle_name() { return 'archive'; } /** * Get title. * * Retrieve the toggle title. */ public function get_title() { return esc_html__( 'Archive', 'bella-beauty' ); } /** * 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 an 'Archive' template, then the settings will not be applied, if you set the template to 'All Archives', then these settings will be hidden.", 'bella-beauty' ), 'type' => Controls_Manager::RAW_HTML, 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info', 'render_type' => 'ui', ) ); $this->add_controls_group( '', self::CONTROLS_ARCHIVE ); } }
💾 Save
❌ Cancel