HEX
Server: LiteSpeed
System: Linux sv01.secureweb.vn 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: h3b738e84d (1657)
PHP: 8.3.19
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/h3b738e84d/public_html/backup_2026/wp-content/themes/news-portal/sidebar-footer.php
<?php
/**
 * The Sidebar containing the footer widget areas.
 *
 * @package Mystery Themes
 * @subpackage News Portal
 * @since 1.0.0
 */

    /**
     * The footer widget area is triggered if any of the areas
     * have widgets. So let's check that first.
     *
     * If none of the sidebars have widgets, then let's bail early.
     */

    $news_portal_footer_widget_option = get_theme_mod( 'news_portal_footer_widget_option', 'show' );

    if ( $news_portal_footer_widget_option == 'hide' ) {
        return;
    }

    if ( !is_active_sidebar( 'news_portal_footer_sidebar' ) && !is_active_sidebar( 'news_portal_footer_sidebar-2' ) && !is_active_sidebar( 'news_portal_footer_sidebar-3' ) && !is_active_sidebar( 'news_portal_footer_sidebar-4' ) ) {
           return;
    }
    
    $news_portal_footer_layout = get_theme_mod( 'footer_widget_layout', 'column_three' );
?>

<div id="top-footer" class="footer-widgets-wrapper footer_<?php echo esc_attr( $news_portal_footer_layout ); ?> np-clearfix">
    <div class="mt-container">
        <div class="footer-widgets-area np-clearfix">
            <div class="np-footer-widget-wrapper np-column-wrapper np-clearfix">
                <div class="np-footer-widget wow fadeInLeft" data-wow-duration="0.5s">
                    <?php dynamic_sidebar( 'news_portal_footer_sidebar' ); ?>
                </div>
                <?php if ( $news_portal_footer_layout != 'column_one' ){ ?>
                <div class="np-footer-widget wow fadeInLeft" data-woww-duration="1s">
                    <?php dynamic_sidebar( 'news_portal_footer_sidebar-2' ); ?>
                </div>
                <?php } ?>
                <?php if ( $news_portal_footer_layout == 'column_three' || $news_portal_footer_layout == 'column_four' ){ ?>
                <div class="np-footer-widget wow fadeInLeft" data-wow-duration="1.5s">
                    <?php dynamic_sidebar( 'news_portal_footer_sidebar-3' ); ?>
                </div>
                <?php } ?>
                <?php if ( $news_portal_footer_layout == 'column_four' ){ ?>
                <div class="np-footer-widget wow fadeInLeft" data-wow-duration="2s">
                    <?php dynamic_sidebar( 'news_portal_footer_sidebar-4' ); ?>
                </div>
                <?php } ?>
            </div><!-- .np-footer-widget-wrapper -->
        </div><!-- .footer-widgets-area -->
    </div><!-- .mt-container -->
</div><!-- .footer-widgets-wrapper -->