File: /var/www/newfaith.focalat.com/new-faith/wp-content/themes/christian/kits/settings/footer/social.php
<?php
namespace ChristianSpace\Kits\Settings\Footer;
use ChristianSpace\Kits\Settings\Base\Settings_Tab_Base;
use Elementor\Controls_Manager;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Footer Social settings.
*/
class Social extends Settings_Tab_Base {
/**
* Get toggle name.
*
* Retrieve the toggle name.
*
* @return string Toggle name.
*/
public static function get_toggle_name() {
return 'footer_social';
}
/**
* Get title.
*
* Retrieve the toggle title.
*/
public function get_title() {
return esc_html__( 'Social Icons', 'christian' );
}
/**
* 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() . '_footer';
}
/**
* 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( '', 'elements' ) => 'social' ),
);
}
/**
* Register toggle controls.
*
* Registers the controls of the kit settings tab toggle.
*/
protected function register_toggle_controls() {
$this->add_controls_group( 'social', self::CONTROLS_SOCIAL_ICONS, array(
'states' => array(
'normal' => esc_html__( 'Normal', 'christian' ),
'hover' => esc_html__( 'Hover', 'christian' ),
),
) );
}
}