Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Footer Template
- *
- * @version 3.2.5
- */
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
- ?>
- <footer id="containerfooter" class="footerclass" itemscope itemtype="https://schema.org/WPFooter">
- <div class="container">
- <div class="row">
- <?php global $virtue; if(isset($virtue['footer_layout'])) { $footer_layout = $virtue['footer_layout']; } else { $footer_layout = 'fourc'; }
- if ($footer_layout == "fourc") {
- if (is_active_sidebar('footer_1') ) { ?>
- <div class="col-md-3 col-sm-6 footercol1">
- <?php dynamic_sidebar('footer_1'); ?>
- </div>
- <?php }; ?>
- <?php if (is_active_sidebar('footer_2') ) { ?>
- <div class="col-md-3 col-sm-6 footercol2">
- <?php dynamic_sidebar('footer_2'); ?>
- </div>
- <?php }; ?>
- <?php if (is_active_sidebar('footer_3') ) { ?>
- <div class="col-md-3 col-sm-6 footercol3">
- <?php dynamic_sidebar('footer_3'); ?>
- </div>
- <?php }; ?>
- <?php if (is_active_sidebar('footer_4') ) { ?>
- <div class="col-md-3 col-sm-6 footercol4">
- <?php dynamic_sidebar('footer_4'); ?>
- </div>
- <?php }; ?>
- <?php } else if($footer_layout == "threec") {
- if (is_active_sidebar('footer_third_1') ) { ?>
- <div class="col-md-4 footercol1">
- <?php dynamic_sidebar('footer_third_1'); ?>
- </div>
- <?php }; ?>
- <?php if (is_active_sidebar('footer_third_2') ) { ?>
- <div class="col-md-4 footercol2">
- <?php dynamic_sidebar('footer_third_2'); ?>
- </div>
- <?php }; ?>
- <?php if (is_active_sidebar('footer_third_3') ) { ?>
- <div class="col-md-4 footercol3">
- <?php dynamic_sidebar('footer_third_3'); ?>
- </div>
- <?php }; ?>
- <?php } else {
- if (is_active_sidebar('footer_double_1') ) { ?>
- <div class="col-md-6 footercol1">
- <?php dynamic_sidebar('footer_double_1'); ?>
- </div>
- <?php }; ?>
- <?php if (is_active_sidebar('footer_double_2') ) { ?>
- <div class="col-md-6 footercol2">
- <?php dynamic_sidebar('footer_double_2'); ?>
- </div>
- <?php }; ?>
- <?php } ?>
- </div>
- <div class="footercredits clearfix">
- <?php if (has_nav_menu('footer_navigation')) :
- ?><div class="footernav clearfix"><?php
- wp_nav_menu(array('theme_location' => 'footer_navigation', 'menu_class' => 'footermenu'));
- ?></div><?php
- endif;?>
- <p><?php if(isset($virtue['footer_text'])) { $footertext = $virtue['footer_text'];} else {$footertext = '[copyright] [the-year] [site-name] [theme-credit]';}
- $footertext = str_replace('[copyright]','©',$footertext);
- $footertext = str_replace('[the-year]',date('Y'),$footertext);
- $footertext = str_replace('[site-name]',get_bloginfo('name'),$footertext);
- $footertext = str_replace('[theme-credit]','- WordPress Theme by <a href="https://www.kadencewp.com/" rel="nofollow" target="_blank">Kadence WP</a>',$footertext);
- echo do_shortcode($footertext); ?></p>
- </div>
- <!-- wp:kadence/advancedheading {"level":5,"uniqueID":"_e74c8d-2c","align":"center"} -->
- <h5 id="kt-adv-heading_e74c8d-2c" class="kt-adv-heading_e74c8d-2c wp-block-kadence-advancedheading" style="text-align:center">West Derby Methodist Church, Crosby Green, West Derby, Liverpool, L12 7JZ</h5>
- <!-- /wp:kadence/advancedheading -->
- </div>
- </footer>
Advertisement
Add Comment
Please, Sign In to add comment