Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'wp_enqueue_scripts', 'mh_great_child_style' , 5 );
- function mh_great_child_style() {
- wp_enqueue_style( 'great-parent-style', get_template_directory_uri() . '/style.css' );
- }
- function great_child_wp_footer () { ?>
- </div><!-- #content -->
- <?php
- // Footer Widgets
- $s = array('footer-left','footer-center','footer-right');
- // Is Active?
- $active = array();
- foreach ( $s as $i )
- if ( is_active_sidebar($i) ) $active [] = $i;
- ?>
- <?php if ( is_active_sidebar( 'left-sidebar' ) ) : ?>
- <ul id="sidebar"><?php dynamic_sidebar( 'left-sidebar' ); ?></ul>
- <?php endif; ?>
- <footer id="colophon" class="site-footer" role="contentinfo">
- <!-- Footer Quotation -->
- <?php great_footer_quote ();?>
- <div class="clear"></div>
- <!-- Footer Widgets -->
- <?php
- // Count Actives
- if ( count ($active) ) {
- $width = round ( 100 / count ($active) , 2 ) - 2; // -2 : for margins
- foreach ( $active as $activ ) {
- ?>
- <div style="width:<?php echo $width;?>%;" class="footer-widget"><?php dynamic_sidebar( $activ ); ?></div>
- <?php
- }
- }
- ?>
- <div class="clear"></div>
- <!-- Site Contact -->
- <?php great_site_contact( "footer" );?>
- <div class="clear"></div>
- <!-- Footer SM -->
- <?php great_social_media( "footer" );?>
- <div class="clear"></div>
- <div class="site-info"><?php printf( __( 'Copyright © %1$d %2$s.','great' ),date('Y'),'<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" ><span>' . get_bloginfo( 'name', 'display' ) . '</span></a>');?> <?php _e( 'Powered by WordPress', 'great' ); ?>
- <span class="sep"> & </span>Copyright © 2015 Perfect Finish Painting. Powered by WordPress & Designer: Nicole Dudding,<a href="yourpageyoursite.com.au">yourpageyoursite.com.au</a>
- </div><!-- .site-info -->
- </footer><!-- #colophon -->
- <div id="back_top"><i class="fa fa-angle-up"></i></div>
- </div><!-- #page -->
- <?php
- } // end of great_wp_footer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement