zZzzZ.
home2
/
zrzvbdry
/
couponetive.com
/
wp-content
/
themes
/
retail-pro-main
New Folder
Editing: footer.php
Save
Cancel
<?php /** * The template for displaying the footer. * * Contains the closing of the #content div and all content after * * @package WP Coupon */ global $st_option; if( wpcoupon_get_option( 'before_footer', '' ) != '' ) { if( wpcoupon_get_option( 'before_footer_apply', 'home' ) != 'all' ) { if ( get_option( 'show_on_front' ) == 'page' && is_home() ) { ?> <div class="before_footer_wrap"> <div class="container"> <div class="before-footer-text"> <?php echo do_shortcode( wpcoupon_get_option( 'before_footer', '' ) );?> </div> </div> </div> <?php } } else { ?> <div class="before_footer_wrap"> <div class="container"> <div class="before-footer-text"> <?php echo do_shortcode( wpcoupon_get_option( 'before_footer', '' ) );?> </div> </div> </div> <?php } } ?> </div> <!-- END .site-content --> <footer id="colophon" class="site-footer <?php echo ( $st_option['footer_widgets'] ) ? 'footer-widgets-on' : 'footer-widgets-off' ?>" role="contentinfo"> <div class="container"> <?php if ( wpcoupon_get_option( 'footer_widgets' ) ) { $footer_columns = wpcoupon_get_option( 'footer_columns', 5); $layouts = 16; if ( $footer_columns > 1 ){ $layouts = wpcoupon_get_option( 'footer_columns_layout_'.$footer_columns ); } $layouts = explode( '+', $layouts ); foreach ( $layouts as $k => $v ) { $v = absint( trim( $v ) ); $v = $v >= 16 ? 16 : $v; $layouts[ $k ] = $v; } ?> <div class="footer-widgets-area"> <?php if ( is_active_sidebar( 'footer-site-info' ) ){ ?> <div class="footer-info"> <div class="sidebar-footer"> <?php dynamic_sidebar( 'footer-site-info' );?> </div> </div> <div class="footer-link"> <div class="sidebar-footer footer-columns stackable ui grid clearfix"> <?php for ($count = 0; $count < $footer_columns; $count++) { ?> <div id="footer-<?php echo esc_attr( $count +1 ) ?>" class="<?php echo esc_attr( wpcoupon_number_to_column_class( $layouts[ $count ] ) ); ?> wide column footer-column widget-area" role="complementary"> <?php dynamic_sidebar('footer-' . ( $count +1 ) ); ?> </div> <?php } ?> </div> </div> <?php }else{ ?> <div class="footer-wide-link"> <div class="sidebar-footer footer-columns stackable ui grid clearfix"> <?php for ($count = 0; $count < $footer_columns; $count++) { ?> <div id="footer-<?php echo esc_attr( $count +1 ) ?>" class="<?php echo esc_attr( wpcoupon_number_to_column_class( $layouts[ $count ] ) ); ?> wide column footer-column widget-area" role="complementary"> <?php dynamic_sidebar('footer-' . ( $count +1 ) ); ?> </div> <?php } ?> </div> </div> <?php } ?> </div> <?php } ?> <div class="footer_copy"> <nav id="footer-nav" class="site-footer-nav fleft"> <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'footer', 'fallback_cb' => false ) ); ?> </nav> <div class="footer_copyright fleft"> <?php if ( wpcoupon_get_option('footer_copyright', false, '') != ''){ ?> <p> <?php echo wpcoupon_get_option('footer_copyright', false, ''); ?> </p> <?php }else { ?> <p> <?php echo '<span>'; if ( wpcoupon_get_option('footer_copyright') == '' ) { printf( esc_html__( 'Copyright © %1$s %2$s. All Rights Reserved. ', 'retail-pro' ), esc_attr(date('Y')), get_bloginfo('name') ); } else { echo wp_kses_post( wpcoupon_get_option('footer_copyright') ); } echo '</span>'; if ( wpcoupon_get_option('enable_footer_author') ) { echo '<span>'.sprintf( esc_html__( 'WordPress Coupon Theme by %s', 'retail-pro' ), '<a href="https://couponthemes.net/">CouponThemes</a>' ).'</span>' ; } ?> </p> <?php } ?> </div> </div> </div> </footer><!-- END #colophon--> </div><!-- END #page --> <?php wp_footer(); ?> </body> </html>