Server IP : 104.21.14.103 / Your IP : 3.140.196.48 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/dangky.bnnagency.com/wp-content/themes/flatsome/inc/shortcodes/ |
Upload File : |
<?php function flatsome_sidebar_shortcode( $atts ){ extract( shortcode_atts( array( 'id' => 'sidebar-main', 'class' => '', 'visibility' => '', 'style' => '' ), $atts ) ); // Stop if visibility is hidden if($visibility == 'hidden') return; $classes = array( 'sidebar-wrapper' , 'ul-reset' ); if( $class ) $classes[] = $class; if( $visibility ) $classes[] = $visibility; if( $style ) $classes[] = 'widgets-'.$style; $classes = implode(' ', $classes); ob_start(); dynamic_sidebar($id); $sidebar = trim( ob_get_clean() ); return '<ul class="'.$classes.'">'.$sidebar.'</ul>'; } add_shortcode('ux_sidebar', 'flatsome_sidebar_shortcode');