LittleDemon WebShell


Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Path : /home/eglisebaa/www/wp-content/themes/hallelujah/
File Upload :
Command :
Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/sidebar.php

<?php
/**
 * The Sidebar containing the main widget areas.
 *
 * @package WordPress
 * @subpackage HALLELUJAH
 * @since HALLELUJAH 1.0
 */

if ( hallelujah_sidebar_present() ) {
	
	$hallelujah_sidebar_type = hallelujah_get_theme_option( 'sidebar_type' );
	if ( 'custom' == $hallelujah_sidebar_type && ! hallelujah_is_layouts_available() ) {
		$hallelujah_sidebar_type = 'default';
	}
	
	// Catch output to the buffer
	ob_start();
	if ( 'default' == $hallelujah_sidebar_type ) {
		// Default sidebar with widgets
		$hallelujah_sidebar_name = hallelujah_get_theme_option( 'sidebar_widgets' );
		hallelujah_storage_set( 'current_sidebar', 'sidebar' );
		if ( is_active_sidebar( $hallelujah_sidebar_name ) ) {
			dynamic_sidebar( $hallelujah_sidebar_name );
		}
	} else {
		// Custom sidebar from Layouts Builder
		$hallelujah_sidebar_id = hallelujah_get_custom_sidebar_id();
		do_action( 'hallelujah_action_show_layout', $hallelujah_sidebar_id );
	}
	$hallelujah_out = trim( ob_get_contents() );
	ob_end_clean();
	
	// If any html is present - display it
	if ( ! empty( $hallelujah_out ) ) {
		$hallelujah_sidebar_position    = hallelujah_get_theme_option( 'sidebar_position' );
		$hallelujah_sidebar_position_ss = hallelujah_get_theme_option( 'sidebar_position_ss' );
		?>
		<div class="sidebar widget_area
			<?php
			echo ' ' . esc_attr( $hallelujah_sidebar_position );
			echo ' sidebar_' . esc_attr( $hallelujah_sidebar_position_ss );
			echo ' sidebar_' . esc_attr( $hallelujah_sidebar_type );

			if ( 'float' == $hallelujah_sidebar_position_ss ) {
				echo ' sidebar_float';
			}
			$hallelujah_sidebar_scheme = hallelujah_get_theme_option( 'sidebar_scheme' );
			if ( ! empty( $hallelujah_sidebar_scheme ) && ! hallelujah_is_inherit( $hallelujah_sidebar_scheme ) ) {
				echo ' scheme_' . esc_attr( $hallelujah_sidebar_scheme );
			}
			?>
		" role="complementary">
			<?php
			// Skip link anchor to fast access to the sidebar from keyboard
			?>
			<a id="sidebar_skip_link_anchor" class="hallelujah_skip_link_anchor" href="#"></a>
			<?php
			// Single posts banner before sidebar
			hallelujah_show_post_banner( 'sidebar' );
			// Button to show/hide sidebar on mobile
			if ( in_array( $hallelujah_sidebar_position_ss, array( 'above', 'float' ) ) ) {
				$hallelujah_title = apply_filters( 'hallelujah_filter_sidebar_control_title', 'float' == $hallelujah_sidebar_position_ss ? esc_html__( 'Show Sidebar', 'hallelujah' ) : '' );
				$hallelujah_text  = apply_filters( 'hallelujah_filter_sidebar_control_text', 'above' == $hallelujah_sidebar_position_ss ? esc_html__( 'Show Sidebar', 'hallelujah' ) : '' );
				?>
				<a href="#" class="sidebar_control" title="<?php echo esc_html( $hallelujah_title ); ?>"><?php echo esc_html( $hallelujah_text ); ?></a>
				<?php
			}
			?>
			<div class="sidebar_inner">
				<?php
				do_action( 'hallelujah_action_before_sidebar' );
				hallelujah_show_layout( preg_replace( "/<\/aside>[\r\n\s]*<aside/", '</aside><aside', $hallelujah_out ) );
				do_action( 'hallelujah_action_after_sidebar' );
				?>
			</div><!-- /.sidebar_inner -->
		</div><!-- /.sidebar -->
		<div class="clearfix"></div>
		<?php
	}
}

LittleDemon - FACEBOOK
[ KELUAR ]