| Server IP : 172.67.75.225 / Your IP : 216.73.216.185 Web Server : nginx/1.27.1 System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64 User : vinodai ( 3134) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v1396/wwwindicidolscom/public_html/wp-content/themes/shakti/ |
Upload File : |
<?php
/**
* The Sidebar containing the main widget areas.
*
* @package SHAKTI
* @since SHAKTI 1.0
*/
if ( shakti_sidebar_present() ) {
$shakti_sidebar_type = shakti_get_theme_option( 'sidebar_type' );
if ( 'custom' == $shakti_sidebar_type && ! shakti_is_layouts_available() ) {
$shakti_sidebar_type = 'default';
}
// Catch output to the buffer
ob_start();
if ( 'default' == $shakti_sidebar_type ) {
// Default sidebar with widgets
$shakti_sidebar_name = shakti_get_theme_option( 'sidebar_widgets' );
shakti_storage_set( 'current_sidebar', 'sidebar' );
if ( is_active_sidebar( $shakti_sidebar_name ) ) {
dynamic_sidebar( $shakti_sidebar_name );
}
} else {
// Custom sidebar from Layouts Builder
$shakti_sidebar_id = shakti_get_custom_sidebar_id();
do_action( 'shakti_action_show_layout', $shakti_sidebar_id );
}
$shakti_out = trim( ob_get_contents() );
ob_end_clean();
// If any html is present - display it
if ( ! empty( $shakti_out ) ) {
$shakti_sidebar_position = shakti_get_theme_option( 'sidebar_position' );
$shakti_sidebar_position_ss = shakti_get_theme_option( 'sidebar_position_ss' );
?>
<div class="sidebar widget_area
<?php
echo ' ' . esc_attr( $shakti_sidebar_position );
echo ' sidebar_' . esc_attr( $shakti_sidebar_position_ss );
echo ' sidebar_' . esc_attr( $shakti_sidebar_type );
$shakti_sidebar_scheme = apply_filters( 'shakti_filter_sidebar_scheme', shakti_get_theme_option( 'sidebar_scheme' ) );
if ( ! empty( $shakti_sidebar_scheme ) && ! shakti_is_inherit( $shakti_sidebar_scheme ) && 'custom' != $shakti_sidebar_type ) {
echo ' scheme_' . esc_attr( $shakti_sidebar_scheme );
}
?>
" role="complementary">
<?php
// Skip link anchor to fast access to the sidebar from keyboard
?>
<a id="sidebar_skip_link_anchor" class="shakti_skip_link_anchor" href="#"></a>
<?php
do_action( 'shakti_action_before_sidebar_wrap', 'sidebar' );
// Button to show/hide sidebar on mobile
if ( in_array( $shakti_sidebar_position_ss, array( 'above', 'float' ) ) ) {
$shakti_title = apply_filters( 'shakti_filter_sidebar_control_title', 'float' == $shakti_sidebar_position_ss ? esc_html__( 'Show Sidebar', 'shakti' ) : '' );
$shakti_text = apply_filters( 'shakti_filter_sidebar_control_text', 'above' == $shakti_sidebar_position_ss ? esc_html__( 'Show Sidebar', 'shakti' ) : '' );
?>
<a href="#" class="sidebar_control" title="<?php echo esc_attr( $shakti_title ); ?>"><?php echo esc_html( $shakti_text ); ?></a>
<?php
}
?>
<div class="sidebar_inner">
<?php
do_action( 'shakti_action_before_sidebar', 'sidebar' );
shakti_show_layout( preg_replace( "/<\/aside>[\r\n\s]*<aside/", '</aside><aside', $shakti_out ) );
do_action( 'shakti_action_after_sidebar', 'sidebar' );
?>
</div>
<?php
do_action( 'shakti_action_after_sidebar_wrap', 'sidebar' );
?>
</div>
<div class="clearfix"></div>
<?php
}
}