File manager - Edit - /home/verseaumee/blueversionx/wp-content/themes/stargaze/sidebar.php
Back
<?php /** * The Sidebar containing the main widget areas. * * @package STARGAZE * @since STARGAZE 1.0 */ if ( stargaze_sidebar_present() ) { $stargaze_sidebar_type = stargaze_get_theme_option( 'sidebar_type' ); if ( 'custom' == $stargaze_sidebar_type && ! stargaze_is_layouts_available() ) { $stargaze_sidebar_type = 'default'; } // Catch output to the buffer ob_start(); if ( 'default' == $stargaze_sidebar_type ) { // Default sidebar with widgets $stargaze_sidebar_name = stargaze_get_theme_option( 'sidebar_widgets' ); stargaze_storage_set( 'current_sidebar', 'sidebar' ); if ( is_active_sidebar( $stargaze_sidebar_name ) ) { dynamic_sidebar( $stargaze_sidebar_name ); } } else { // Custom sidebar from Layouts Builder $stargaze_sidebar_id = stargaze_get_custom_sidebar_id(); do_action( 'stargaze_action_show_layout', $stargaze_sidebar_id ); } $stargaze_out = trim( ob_get_contents() ); ob_end_clean(); // If any html is present - display it if ( ! empty( $stargaze_out ) ) { $stargaze_sidebar_position = stargaze_get_theme_option( 'sidebar_position' ); $stargaze_sidebar_position_ss = stargaze_get_theme_option( 'sidebar_position_ss' ); ?> <div class="sidebar widget_area <?php echo ' ' . esc_attr( $stargaze_sidebar_position ); echo ' sidebar_' . esc_attr( $stargaze_sidebar_position_ss ); echo ' sidebar_' . esc_attr( $stargaze_sidebar_type ); $stargaze_sidebar_scheme = apply_filters( 'stargaze_filter_sidebar_scheme', stargaze_get_theme_option( 'sidebar_scheme' ) ); if ( ! empty( $stargaze_sidebar_scheme ) && ! stargaze_is_inherit( $stargaze_sidebar_scheme ) && 'custom' != $stargaze_sidebar_type ) { echo ' scheme_' . esc_attr( $stargaze_sidebar_scheme ); } ?> " role="complementary"> <?php // Skip link anchor to fast access to the sidebar from keyboard ?> <a id="sidebar_skip_link_anchor" class="stargaze_skip_link_anchor" href="#"></a> <?php do_action( 'stargaze_action_before_sidebar_wrap', 'sidebar' ); // Button to show/hide sidebar on mobile if ( in_array( $stargaze_sidebar_position_ss, array( 'above', 'float' ) ) ) { $stargaze_title = apply_filters( 'stargaze_filter_sidebar_control_title', 'float' == $stargaze_sidebar_position_ss ? esc_html__( 'Show Sidebar', 'stargaze' ) : '' ); $stargaze_text = apply_filters( 'stargaze_filter_sidebar_control_text', 'above' == $stargaze_sidebar_position_ss ? esc_html__( 'Show Sidebar', 'stargaze' ) : '' ); ?> <a href="#" class="sidebar_control" title="<?php echo esc_attr( $stargaze_title ); ?>"><?php echo esc_html( $stargaze_text ); ?></a> <?php } ?> <div class="sidebar_inner"> <?php do_action( 'stargaze_action_before_sidebar', 'sidebar' ); stargaze_show_layout( preg_replace( "/<\/aside>[\r\n\s]*<aside/", '</aside><aside', $stargaze_out ) ); do_action( 'stargaze_action_after_sidebar', 'sidebar' ); ?> </div> <?php do_action( 'stargaze_action_after_sidebar_wrap', 'sidebar' ); ?> </div> <div class="clearfix"></div> <?php } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings