| Server IP : 104.26.5.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 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/v9321/buzzbitesv3/public_html/wp-content/themes/bite/ |
Upload File : |
<?php
/**
* The Sidebar containing the main widget areas.
*
* @package BITE
* @since BITE 1.0
*/
if ( bite_sidebar_present() ) {
$bite_sidebar_type = bite_get_theme_option( 'sidebar_type' );
if ( 'custom' == $bite_sidebar_type && ! bite_is_layouts_available() ) {
$bite_sidebar_type = 'default';
}
// Catch output to the buffer
ob_start();
if ( 'default' == $bite_sidebar_type ) {
// Default sidebar with widgets
$bite_sidebar_name = bite_get_theme_option( 'sidebar_widgets' );
bite_storage_set( 'current_sidebar', 'sidebar' );
if ( is_active_sidebar( $bite_sidebar_name ) ) {
dynamic_sidebar( $bite_sidebar_name );
}
} else {
// Custom sidebar from Layouts Builder
$bite_sidebar_id = bite_get_custom_sidebar_id();
do_action( 'bite_action_show_layout', $bite_sidebar_id );
}
$bite_out = trim( ob_get_contents() );
ob_end_clean();
// If any html is present - display it
if ( ! empty( $bite_out ) ) {
$bite_sidebar_position = bite_get_theme_option( 'sidebar_position' );
$bite_sidebar_position_ss = bite_get_theme_option( 'sidebar_position_ss', 'below' );
?>
<div class="sidebar widget_area
<?php
echo ' ' . esc_attr( $bite_sidebar_position );
echo ' sidebar_' . esc_attr( $bite_sidebar_position_ss );
echo ' sidebar_' . esc_attr( $bite_sidebar_type );
$bite_sidebar_scheme = apply_filters( 'bite_filter_sidebar_scheme', bite_get_theme_option( 'sidebar_scheme', 'inherit' ) );
if ( ! empty( $bite_sidebar_scheme ) && ! bite_is_inherit( $bite_sidebar_scheme ) && 'custom' != $bite_sidebar_type ) {
echo ' scheme_' . esc_attr( $bite_sidebar_scheme );
}
?>
" role="complementary">
<?php
// Skip link anchor to fast access to the sidebar from keyboard
?>
<span id="sidebar_skip_link_anchor" class="bite_skip_link_anchor"></span>
<?php
do_action( 'bite_action_before_sidebar_wrap', 'sidebar' );
// Button to show/hide sidebar on mobile
if ( in_array( $bite_sidebar_position_ss, array( 'above', 'float' ) ) ) {
$bite_title = apply_filters( 'bite_filter_sidebar_control_title', 'float' == $bite_sidebar_position_ss ? esc_html__( 'Show Sidebar', 'bite' ) : '' );
$bite_text = apply_filters( 'bite_filter_sidebar_control_text', 'above' == $bite_sidebar_position_ss ? esc_html__( 'Show Sidebar', 'bite' ) : '' );
?>
<a href="#" role="button" class="sidebar_control" title="<?php echo esc_attr( $bite_title ); ?>"><?php echo esc_html( $bite_text ); ?></a>
<?php
}
?>
<div class="sidebar_inner">
<?php
do_action( 'bite_action_before_sidebar', 'sidebar' );
bite_show_layout( preg_replace( "/<\/aside>[\r\n\s]*<aside/", '</aside><aside', $bite_out ) );
do_action( 'bite_action_after_sidebar', 'sidebar' );
?>
</div>
<?php
do_action( 'bite_action_after_sidebar_wrap', 'sidebar' );
?>
</div>
<div class="clearfix"></div>
<?php
}
}