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/e/g/l/eglisebaa/www/wp-content/themes/hallelujah/templates/
File Upload :
Command :
Current File : /home/e/g/l/eglisebaa/www/wp-content/themes/hallelujah/templates/header-widgets.php

<?php
/**
 * The template to display the widgets area in the header
 *
 * @package WordPress
 * @subpackage HALLELUJAH
 * @since HALLELUJAH 1.0
 */

// Header sidebar
$hallelujah_header_name    = hallelujah_get_theme_option( 'header_widgets' );
$hallelujah_header_present = ! hallelujah_is_off( $hallelujah_header_name ) && is_active_sidebar( $hallelujah_header_name );
if ( $hallelujah_header_present ) {
	hallelujah_storage_set( 'current_sidebar', 'header' );
	$hallelujah_header_wide = hallelujah_get_theme_option( 'header_wide' );
	ob_start();
	if ( is_active_sidebar( $hallelujah_header_name ) ) {
		dynamic_sidebar( $hallelujah_header_name );
	}
	$hallelujah_widgets_output = ob_get_contents();
	ob_end_clean();
	if ( ! empty( $hallelujah_widgets_output ) ) {
		$hallelujah_widgets_output = preg_replace( "/<\/aside>[\r\n\s]*<aside/", '</aside><aside', $hallelujah_widgets_output );
		$hallelujah_need_columns   = strpos( $hallelujah_widgets_output, 'columns_wrap' ) === false;
		if ( $hallelujah_need_columns ) {
			$hallelujah_columns = max( 0, (int) hallelujah_get_theme_option( 'header_columns' ) );
			if ( 0 == $hallelujah_columns ) {
				$hallelujah_columns = min( 6, max( 1, hallelujah_tags_count( $hallelujah_widgets_output, 'aside' ) ) );
			}
			if ( $hallelujah_columns > 1 ) {
				$hallelujah_widgets_output = preg_replace( '/<aside([^>]*)class="widget/', '<aside$1class="column-1_' . esc_attr( $hallelujah_columns ) . ' widget', $hallelujah_widgets_output );
			} else {
				$hallelujah_need_columns = false;
			}
		}
		?>
		<div class="header_widgets_wrap widget_area<?php echo ! empty( $hallelujah_header_wide ) ? ' header_fullwidth' : ' header_boxed'; ?>">
			<div class="header_widgets_inner widget_area_inner">
				<?php
				if ( ! $hallelujah_header_wide ) {
					?>
					<div class="content_wrap">
					<?php
				}
				if ( $hallelujah_need_columns ) {
					?>
					<div class="columns_wrap">
					<?php
				}
				do_action( 'hallelujah_action_before_sidebar' );
				hallelujah_show_layout( $hallelujah_widgets_output );
				do_action( 'hallelujah_action_after_sidebar' );
				if ( $hallelujah_need_columns ) {
					?>
					</div>	<!-- /.columns_wrap -->
					<?php
				}
				if ( ! $hallelujah_header_wide ) {
					?>
					</div>	<!-- /.content_wrap -->
					<?php
				}
				?>
			</div>	<!-- /.header_widgets_inner -->
		</div>	<!-- /.header_widgets_wrap -->
		<?php
	}
}

LittleDemon - FACEBOOK
[ KELUAR ]