whoami7 - Manager
:
/
home
/
topsuzmw
/
www
/
wp-content
/
plugins
/
pixwell-core
/
elementor
/
Upload File:
files >> //home/topsuzmw/www/wp-content/plugins/pixwell-core/elementor/left-side-toggle.php
<?php namespace PixwellElementorElement\Widgets; use Elementor\Controls_Manager; use Elementor\Widget_Base; use function get_template_part; defined( 'ABSPATH' ) || exit; class Header_L_Toggle extends Widget_Base { public function get_name() { return 'pixwell-L-Toggle-icon'; } public function get_title() { return esc_html__( 'Pixwell - Left Side Toggle Icon', 'pixwell-core' ); } public function get_icon() { return 'eicon-skill-bar'; } public function get_categories() { return [ 'pixwell_header' ]; } protected function register_controls() { $this->start_controls_section( 'color-section', [ 'label' => esc_html__( 'Colors', 'pixwell-core' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'color', [ 'label' => esc_html__( 'Icon Color', 'pixwell-core' ), 'type' => Controls_Manager::COLOR, 'description' => esc_html__( 'Select a color for the left side toggle icon.', 'pixwell-core' ), 'default' => '', 'selectors' => [ '{{WRAPPER}} .off-canvas-toggle' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'dark_color', [ 'label' => esc_html__( 'Dark Mode - Icon Color', 'pixwell-core' ), 'type' => Controls_Manager::COLOR, 'description' => esc_html__( 'Select a color for the left side toggle icon in dark mode.', 'pixwell-core' ), 'default' => '', 'selectors' => [ '[data-theme="dark"] {{WRAPPER}} .off-canvas-toggle' => 'color: {{VALUE}};', ], ] ); $this->end_controls_section(); } /** * render layout */ protected function render() { get_template_part( 'templates/header/module', 'toggle' ); } }
Copyright ©2021 || Defacer Indonesia