| 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/ |
| Current File : /home/e/g/l/eglisebaa/www/wp-content/themes/hallelujah/templates/footer-widgets.php |
<?php
/**
* The template to display the widgets area in the footer
*
* @package WordPress
* @subpackage HALLELUJAH
* @since HALLELUJAH 1.0.10
*/
// Footer sidebar
$hallelujah_footer_name = hallelujah_get_theme_option( 'footer_widgets' );
$hallelujah_footer_present = ! hallelujah_is_off( $hallelujah_footer_name ) && is_active_sidebar( $hallelujah_footer_name );
if ( $hallelujah_footer_present ) {
hallelujah_storage_set( 'current_sidebar', 'footer' );
$hallelujah_footer_wide = hallelujah_get_theme_option( 'footer_wide' );
ob_start();
if ( is_active_sidebar( $hallelujah_footer_name ) ) {
dynamic_sidebar( $hallelujah_footer_name );
}
$hallelujah_out = trim( ob_get_contents() );
ob_end_clean();
if ( ! empty( $hallelujah_out ) ) {
$hallelujah_out = preg_replace( "/<\\/aside>[\r\n\s]*<aside/", '</aside><aside', $hallelujah_out );
$hallelujah_need_columns = true; //or check: strpos($hallelujah_out, 'columns_wrap')===false;
if ( $hallelujah_need_columns ) {
$hallelujah_columns = max( 0, (int) hallelujah_get_theme_option( 'footer_columns' ) );
if ( 0 == $hallelujah_columns ) {
$hallelujah_columns = min( 4, max( 1, hallelujah_tags_count( $hallelujah_out, 'aside' ) ) );
}
if ( $hallelujah_columns > 1 ) {
$hallelujah_out = preg_replace( '/<aside([^>]*)class="widget/', '<aside$1class="column-1_' . esc_attr( $hallelujah_columns ) . ' widget', $hallelujah_out );
} else {
$hallelujah_need_columns = false;
}
}
?>
<div class="footer_widgets_wrap widget_area<?php echo ! empty( $hallelujah_footer_wide ) ? ' footer_fullwidth' : ''; ?> sc_layouts_row sc_layouts_row_type_normal">
<div class="footer_widgets_inner widget_area_inner">
<?php
if ( ! $hallelujah_footer_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_out );
do_action( 'hallelujah_action_after_sidebar' );
if ( $hallelujah_need_columns ) {
?>
</div><!-- /.columns_wrap -->
<?php
}
if ( ! $hallelujah_footer_wide ) {
?>
</div><!-- /.content_wrap -->
<?php
}
?>
</div><!-- /.footer_widgets_inner -->
</div><!-- /.footer_widgets_wrap -->
<?php
}
}