Advertisement
Guest User

Functions.php child theme code

a guest
Dec 24th, 2013
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.65 KB | None | 0 0
  1. if ( ! function_exists( 'catchbox_footer_content' ) ) :
  2. /**
  3.  * shows footer content
  4.  *
  5.  * @since Catch Box 2.5
  6.  */
  7. function catchbox_footer_content() { ?>
  8.     <div class="copyright">
  9.         <?php esc_attr_e('Copyright &copy;', 'catchbox'); ?> <?php _e(date('Y')); ?>
  10.         <a href="<?php echo home_url('/') ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>">
  11.             <?php bloginfo('name'); ?>
  12.         </a>
  13.         <?php esc_attr_e('. All Rights Reserved.', 'catchbox'); ?>
  14.     </div>
  15.     <div class="powered">
  16.         <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'catchbox' ) ); ?>" title="<?php esc_attr_e( 'Proudly Powered by WordPress', 'catchbox' ); ?>" rel="generator"><?php printf( __( 'Proudly Powered by %s', 'catchbox' ), 'WordPress' ); ?></a>
  17.         <span class="sep"> | </span>
  18.         <a href="<?php echo esc_url( __( 'http://catchthemes.com/', 'catchbox' ) ); ?>" title="<?php esc_attr_e( 'Theme built from Catch Box by Catch Themes', 'catchbox' ); ?>" rel="designer"><?php printf( __( 'Theme built from %s', 'catchbox' ), 'Catch Box' ); ?></a>
  19.     </div>
  20. <?php }
  21. endif; //catchbox_footer_content
  22.  
  23. // Load footer content in  catchbox_site_generator hook
  24. add_action( 'catchbox_site_generator', 'catchbox_footer_content', 15 );
  25.  
  26. function favicon4admin() {
  27.  echo '<link rel="Icon" type="image/x-icon" href="http://www.owensinclairjones.co.uk/wp-content/uploads/2013/07/favicon1.ico" />
  28. <link rel="Shortcut Icon" type="image/x-icon" href="http://www.owensinclairjones.co.uk/wp-content/uploads/2013/07/favicon1.ico" />';
  29.  }
  30.  add_action( 'login_head', 'favicon4admin' );
  31.  add_action( 'admin_head', 'favicon4admin' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement