HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/ruwebsiteok/wp-content/themes/vw-school-education/footer.php
<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package VW School Education
 */
?>
<footer role="contentinfo">
    <?php if (get_theme_mod('vw_school_education_footer_hide_show', true)){ ?>
        <div  class="footer copyright-wrapper">
            <div class="container">
                <?php
                    $count = 0;
                    
                    if ( is_active_sidebar( 'footer-1' ) ) {
                        $count++;
                    }
                    if ( is_active_sidebar( 'footer-2' ) ) {
                        $count++;
                    }
                    if ( is_active_sidebar( 'footer-3' ) ) {
                        $count++;
                    }
                    if ( is_active_sidebar( 'footer-4' ) ) {
                        $count++;
                    }
                    // $count == 0 none
                    if ( $count == 1 ) {
                        $colmd = 'col-md-12 col-sm-12';
                    } elseif ( $count == 2 ) {
                        $colmd = 'col-md-6 col-sm-6';
                    } elseif ( $count == 3 ) {
                        $colmd = 'col-md-4 col-sm-4';
                    } else {
                        $colmd = 'col-md-3 col-sm-6';
                    }
                ?>
                <div class="row">
                    <div class="<?php echo !is_active_sidebar('footer-1') ? 'footer_hide' : esc_attr($vw_school_education_colmd); ?> col-lg-3 col-md-3 col-xs-12 footer-block">
                        <?php if (is_active_sidebar('footer-1')) : ?>
                            <?php dynamic_sidebar('footer-1'); ?>
                        <?php else : ?>
                            <aside id="search" class="widget py-3" role="complementary" aria-label="firstsidebar">
                                <h3 class="widget-title"><?php esc_html_e( 'Search', 'vw-school-education' ); ?></h3>
                                <?php get_search_form(); ?>
                            </aside>
                        <?php endif; ?>
                    </div>

                    <div class="<?php echo !is_active_sidebar('footer-2') ? 'footer_hide' : esc_attr($vw_school_education_colmd); ?> col-lg-3 col-md-3 col-xs-12 footer-block pe-2">
                        <?php if (is_active_sidebar('footer-2')) : ?>
                            <?php dynamic_sidebar('footer-2'); ?>
                        <?php else : ?>
                            <aside id="archives" class="widget py-3" role="complementary" >
                                <h3 class="widget-title"><?php esc_html_e( 'Archives', 'vw-school-education' ); ?></h3>
                                <ul>
                                    <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
                                </ul>
                            </aside>
                        <?php endif; ?>
                    </div>

                    <div class="<?php echo !is_active_sidebar('footer-3') ? 'footer_hide' : esc_attr($vw_school_education_colmd); ?> col-lg-3 col-md-3 col-xs-12 footer-block">
                        <?php if (is_active_sidebar('footer-3')) : ?>
                            <?php dynamic_sidebar('footer-3'); ?>
                        <?php else : ?>
                            <aside id="meta" class="widget py-3" role="complementary" >
                                <h3 class="widget-title"><?php esc_html_e( 'Meta', 'vw-school-education' ); ?></h3>
                                <ul>
                                    <?php wp_register(); ?>
                                    <li><?php wp_loginout(); ?></li>
                                    <?php wp_meta(); ?>
                                </ul>
                            </aside>
                        <?php endif; ?>
                    </div>

                    <div class="<?php echo !is_active_sidebar('footer-4') ? 'footer_hide' : esc_attr($vw_school_education_colmd); ?> col-lg-3 col-md-3 col-xs-12 footer-block">
                        <?php if (is_active_sidebar('footer-4')) : ?>
                            <?php dynamic_sidebar('footer-4'); ?>
                        <?php else : ?>
                            <aside id="categories" class="widget py-3" role="complementary">
                                <h3 class="widget-title"><?php esc_html_e( 'Categories', 'vw-school-education' ); ?></h3>
                                <ul>
                                    <?php wp_list_categories('title_li=');  ?>
                                </ul>
                            </aside>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    <?php }?>
    <?php if (get_theme_mod('vw_school_education_copyright_hide_show', true)) {?>
        <div class="footer-2 inner">
          	<div class="copyright text-center">
                <div class="container">
                    <p><?php vw_school_education_credit(); ?> <a href="<?php echo esc_url(VW_SCHOOL_EDUCATION_COPYRIGHT_CREDIT); ?>" target='_blank'><?php echo esc_html(get_theme_mod('vw_school_education_footer_text',__('By VWThemes','vw-school-education'))); ?></a></p>
                    <?php if(get_theme_mod('vw_school_education_footer_icon',false) != false) {?>
                        <?php dynamic_sidebar('footer-icon'); ?>
                    <?php }?>
                </div>
                <?php if( get_theme_mod( 'vw_school_education_hide_show_scroll',true) == 1 || get_theme_mod( 'vw_school_education_resp_scroll_top_hide_show',true) == 1) { ?>
                    <?php $vw_school_education_theme_lay = get_theme_mod( 'vw_school_education_scroll_top_alignment','Right');
                    if($vw_school_education_theme_lay == 'Left'){ ?>
                        <a href="#" class="scrollup left"><i class="<?php echo esc_attr(get_theme_mod('vw_school_education_scroll_to_top_icon','fas fa-angle-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'vw-school-education' ); ?></span></a>
                    <?php }else if($vw_school_education_theme_lay == 'Center'){ ?>
                        <a href="#" class="scrollup center"><i class="<?php echo esc_attr(get_theme_mod('vw_school_education_scroll_to_top_icon','fas fa-angle-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'vw-school-education' ); ?></span></a>
                    <?php }else{ ?>
                        <a href="#" class="scrollup"><i class="<?php echo esc_attr(get_theme_mod('vw_school_education_scroll_to_top_icon','fas fa-angle-up')); ?>"></i><span class="screen-reader-text"><?php esc_html_e( 'Scroll Up', 'vw-school-education' ); ?></span></a>
                    <?php }?>
                <?php }?>
          	</div>
          	<div class="clear"></div>
        </div>
    <?php }?>
</footer>

<?php wp_footer(); ?>

</body>
</html>