✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.138
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/tdhomesa/public_html/wp-content/plugins/elementor-selio/widgets//top-bar.php
<?php
namespace ElementorSelio\Widgets;

use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Utils;
use Elementor\Editor;
use Elementor\Plugin;
use Top_Nav_Menu_Walker;

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * @since 1.1.0
 */
class Top_Bar extends Widget_Base {

	public static $multiple_instance=false;
	
	// Default widget settings
	private $defaults = array(
		/*array(
			'phone_number' => '(647) 346-0855',
			'link'	=> '#',
		),
           
		array(
			'address' => 'CF Fairview Mall, Toronto, ON',
			'link'	=> '#',
		),
		array(
			'social_1_icon' => 'fa-facebook',
			'link'	=> '#',
		),
		array(
			'social_2_icon' => 'fa-twitter',
			'link'	=> '#',
		),
		array(
			'social_3_icon' => 'fa-instagram',
			'link'	=> '#',
		),
		array(
			'social_4_icon' => 'fa-linkedin',
			'link'	=> '#',
		),*/
	);

	private $items_num = 6;

	/**
	 * Retrieve the widget name.
	 *
	 * @since 1.1.0
	 *
	 * @access public
	 *
	 * @return string Widget name.
	 */
	public function get_name() {
		return 'top-bar';
	}

	/**
	 * Retrieve the widget title.
	 *
	 * @since 1.1.0
	 *
	 * @access public
	 *
	 * @return string Widget title.
	 */
	public function get_title() {
		return __( 'Top Bar', 'selio-blocks' );
	}

	/**
	 * Retrieve the widget icon.
	 *
	 * @since 1.1.0
	 *
	 * @access public
	 *
	 * @return string Widget icon.
	 */
	public function get_icon() {
		return 'fa fa-address-card';
	}

	/**
	 * Retrieve the list of categories the widget belongs to.
	 *
	 * Used to determine where to display the widget in the editor.
	 *
	 * Note that currently Elementor supports only one category.
	 * When multiple categories passed, Elementor uses the first one.
	 *
	 * @since 1.1.0
	 *
	 * @access public
	 *
	 * @return array Widget categories.
	 */
	public function get_categories() {
		return [ 'winter-themes' ];
	}

	/**
	 * Register the widget controls.
	 *
	 * Adds different input fields to allow the user to change and customize the widget settings.
	 *
	 * @since 1.1.0
	 *
	 * @access protected
	 */
	protected function register_controls() {



		$this->start_controls_section(
			'section_elements',
			[
				'label' => __( 'Block elements', 'selio-blocks' ),
			]
		);

                $this->add_control(
                        'phone_title',
                        [
                            'label' => esc_html__('Share Links', 'elementinvader-addons-for-elementor'),
                            'type' => Controls_Manager::HEADING,
                            'separator' => 'before',
                        ]
                );

                $this->add_control(
                        'phone_edit',
                        [
                            'type' => Controls_Manager::RAW_HTML,
                            'raw' => sprintf(__('<a href="%s" target="_blank">Open to Edit</a>', 'elementinvader-addons-for-elementor'), esc_url(add_query_arg(['autofocus[section]'=>'selio_share_plugin'], admin_url( 'customize.php' ) ))),
                            'separator' => 'after',
                            'content_classes' => 'wl-panel-alert wl-panel-alert-warning',
                        ]
                );

                $this->add_control(
                        'share_title',
                        [
                            'label' => esc_html__('Contact Data', 'elementinvader-addons-for-elementor'),
                            'type' => Controls_Manager::HEADING,
                            'separator' => 'before',
                        ]
                );

                $this->add_control(
                        'share_edit',
                        [
                            'type' => Controls_Manager::RAW_HTML,
                            'raw' => sprintf(__('<a href="%s" target="_blank">Open to Edit</a>', 'elementinvader-addons-for-elementor'), esc_url(add_query_arg(['autofocus[section]'=>'selio_contact'], admin_url( 'customize.php' ) ))),
                            'separator' => 'after',
                            'content_classes' => 'wl-panel-alert wl-panel-alert-warning',
                        ]
                );
                
/*
		for($i=0;$i<$this->items_num;$i++)
		{

			$item_elements = $this->defaults[0];

			if(isset($this->defaults[$i]))
			{
				$item_elements = $this->defaults[$i];
			}

			foreach($item_elements as $key=>$val)
			{

				$gen_item = 'item_'.($i+1).'_'.$key;

				$gen_label = ucwords(str_replace('_', ' ', $key));

				if(substr_count($key, 'link') > 0)
				{
					$this->add_control(
						$gen_item,
						[
							'label' => $gen_label,
							'type' => Controls_Manager::TEXT,
							'default' => $val,
						]
					);
				}
				elseif(substr_count($key, 'image') > 0)
				{
					$this->add_control(
						$gen_item,
						[
							'label' => $gen_label,
							'type' => Controls_Manager::MEDIA,
							'default' => [
								'url' => Utils::get_placeholder_image_src(),
							]
						]
					);
				}
				elseif(substr_count($key, 'description') > 0)
				{
					$this->add_control(
						$gen_item,
						[
							'label' => $gen_label,
							'type' => Controls_Manager::TEXT,
							'default' => $val,
						]
					);
				}
				else
				{
					$this->add_control(
						$gen_item,
						[
							'label' => $gen_label,
							'type' => Controls_Manager::TEXT,
							'default' => $val,
						]
					);
				}
			}
		}
*/
		$this->end_controls_section();
	}

	/**
	 * Render the widget output on the frontend.
	 *
	 * Written in PHP and used to generate the final HTML.
	 *
	 * @since 1.1.0
	 *
	 * @access protected
	 */
	protected function render() {
        $settings = $this->get_settings();
        
        //dump($settings);
        sw_win_load_ci_frontend();
        $CI = &get_instance();
        $CI->load->model('treefield_m');
        $treefield_list = $CI->treefield_m->get_all_list(array('field_id'=>2,'level'=>'0'), 40);
        $langs = sw_get_languages();
            
		?>
<h2 class="vis-hid"><?php echo esc_html__('Top bar elementor','selio-blocks');?></h2>
<div class="top-header section-top-bar <?php if(!get_theme_mod('enable_top_bar_mobile')):?> d-none d-sm-block<?php endif;?>">
    <div class="container">
        <div class="row justify-content-between">
            <div class="col-xl-8 col-md-7 col-sm-12">
                <div class="header-address">
                <?php if(!get_theme_mod('country_dropdown_disable')):?>
                    <?php if(sw_count($treefield_list) && sw_count($treefield_list)>1): ?>
                    <a href='#' data-toggle="modal" data-target="#country-modal" class="country_selector">
                        <?php
                        $d_country = esc_html__('Global','selio-blocks');
                        
                        if(sw_get_user_location())
                            $d_country = sw_get_user_location_value();
                        
                        $sw_location_img = '';
                        if(sw_get_user_location_icon())
                            $sw_location_img = ' <img src="'.sw_get_user_location_icon().'" />';
                        ?>
                        <?php if(sw_get_user_location_icon()):?>
                            <span><?php echo $sw_location_img;?> <?php echo $d_country;?></span>
                        <?php else:?>
                            <i class="fa fa-globe"></i><span><?php echo esc_html__('Select country','selio-blocks'); ?>: <?php echo $sw_location_img;?> <?php echo $d_country;?></span>
                        <?php endif;?>
                    </a>
                    <?php endif;?>
                <?php endif;?>
                    <?php if(!get_theme_mod('tagline_enable')): ?>
                        <?php if (get_theme_mod('selio_phone_setting') != ""):?>
                        <a href="tel://<?php echo esc_attr(urlencode(get_theme_mod('selio_phone_setting')));?>">
                            <i class="la la-phone-square"></i>
                            <span><?php echo esc_html(get_theme_mod('selio_phone_setting'));?></span>
                        </a>
                        <?php endif; ?>
                        <?php if (get_theme_mod('selio_address_setting') != ""):?>
                         <a href="#">
                            <i class="la la-map-marker"></i>
                            <span><?php echo esc_html(get_theme_mod('selio_address_setting'));?></span>
                        </a>
                        <?php endif; ?>
                    <?php else: ?>
                    <span class='h-text'><?php echo esc_html(get_bloginfo('description'));?></span>
                    <?php endif; ?>
                </div>
            </div>
            <?php if (function_exists('sw_count') && count($langs) > 1):?>
            <div class="col-xl-3 col-lg-3 col-md-2 col-sm-6 col-6">
            <?php else:?>
            <div class="resp-grid din">
            <?php endif;?>
                <?php if (shortcode_exists('sw_win_selio_share_list')): ?>
                <div class="header-social">
                     <?php echo do_shortcode('[sw_win_selio_share_list]'); ?>
                </div>
                <?php endif;?>
            </div>
            <?php if(!get_theme_mod('country_dropdown_disable')):?>
                <div class="resp-grid"><?php sw_generate_currency_menu();?></div>
            <?php endif;?>
            <?php
            if (function_exists('sw_count') && count($langs) > 1):
                ?>
                <div class="col-xl-3 col-lg-3 col-md-2 col-sm-6 col-6">
                    <div class="language-selector">
                        <div class="drop-menu links">
                            <div class="select">
                                <span><img src="<?php echo esc_url(SELIO_IMAGES . '/flags/' . sw_current_language() . '.png'); ?>" alt="<?php esc_viewe(sw_get_language_name(sw_current_language())); ?>"><?php esc_viewe(sw_get_language_name(sw_current_language())); ?></span>
                                <i class="la la-caret-down"></i>
                            </div>
                            <input type="hidden" name="gender">
                            <ul class="dropeddown" style="display: none;">
                            <?php foreach ($langs as $lang): if ($lang['lang_code'] == sw_current_language()) continue; ?>
                                <li> 
                                    <a class="dropdown-item" href="<?php echo esc_url(sw_get_language_url($lang['lang_code'])); ?>">
                                        <img src="<?php echo esc_url(SELIO_IMAGES . '/flags/' . $lang['lang_code'] . '.png'); ?>" alt="<?php echo esc_html($lang['title']); ?>" /> <?php echo esc_html($lang['title']); ?>
                                    </a>
                                </li> 
                            <?php endforeach; ?>
                            </ul>
                        </div>
                    </div><!--language-selector end-->
                </div>
            <?php endif; ?>
        </div>
    </div>
</div>


	<?php if(Plugin::$instance->editor->is_edit_mode()): ?>
	
	<script>	
	
	</script>
	
	<?php endif; ?>
	<?php
	
		self::$multiple_instance = true;
	}

}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Jun 2026 6.38 AM
tdhomesa / tdhomesa
0755
about-features.php
23.691 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
agents.php
20.381 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
blog-grid.php
9.356 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
carousel-purposes.php
24.622 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
categories-listings.php
7.597 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
categories-presentation.php
10.026 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
clients-say.php
11.321 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
contact-featured.php
28.683 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
contact-section.php
17.065 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
header-search.php
22.835 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
header-slider-listing.php
13.477 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
header-static.php
6.906 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
header-title.php
7.849 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
latest-posts.php
9.082 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
map-full-width.php
28.66 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
map-svg-area.php
40.32 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
map-svg.php
38.443 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
navigation-over-image.php
38.217 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
partners-agencies.php
9.411 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
placeholder-footer.php
7.348 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
popular-cities.php
25.512 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
popular-listings.php
28.91 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
post-slider.php
9.744 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
pricing-packages.php
9.74 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
result-listings.php
5.813 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
section-subscriptions.php
9.603 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
services-you-need.php
23.69 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
single-apartment.php
15.194 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
slogan.php
8.02 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
top-bar.php
11.326 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
top-navigation-white.php
12.387 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
video-feature.php
8.556 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644
wide-search.php
14.575 KB
30 Apr 2025 12.44 PM
tdhomesa / tdhomesa
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF