Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
drleilu
/
www
/
wp-content
/
themes
/
bella-beauty
/
kits
/
settings
/
single
/
✏️
Editing: author.php
<?php namespace BellaBeautySpace\Kits\Settings\Single; use BellaBeautySpace\Kits\Settings\Base\Settings_Tab_Base; use Elementor\Controls_Manager; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Single Author settings. */ class Author extends Settings_Tab_Base { /** * Get toggle name. * * Retrieve the toggle name. * * @return string Toggle name. */ public static function get_toggle_name() { return 'single_author'; } /** * Get title. * * Retrieve the toggle title. */ public function get_title() { return esc_html__( 'Author Box', '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() . '_single'; } /** * Get toggle conditions. * * Retrieve the settings toggle conditions. * * @return array Toggle conditions. */ protected function get_toggle_conditions() { return array( 'condition' => array( $this->get_control_id_parameter( '', 'blocks' ) => 'author', ), ); } /** * Register toggle controls. * * Registers the controls of the kit settings tab toggle. */ protected function register_toggle_controls() { $this->add_control( 'author_title_text', array( 'label' => esc_html__( 'Title', 'bella-beauty' ), 'label_block' => false, 'description' => esc_html__( 'This setting will be applied after save and reload.', 'bella-beauty' ), 'type' => Controls_Manager::TEXT, 'placeholder' => esc_html__( 'About Author', 'bella-beauty' ), ) ); $this->add_controls_group( 'author_box', self::CONTROLS_CONTAINER_BOX, array( 'excludes' => array( 'alignment', 'bg_color', 'box_shadow', ), ) ); } }
💾 Save
❌ Cancel