document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. // Start the engine
  3. require_once( get_template_directory() . \'/lib/init.php\' );
  4.  
  5. // Child theme (do not remove)
  6. define( \'CHILD_THEME_NAME\', \'Genesis Sample Theme\' );
  7. define( \'CHILD_THEME_URL\', \'http://www.studiopress.com/\' );
  8.  
  9. // Add Viewport meta tag for mobile browsers
  10. add_action( \'genesis_meta\', \'sample_viewport_meta_tag\' );
  11. function sample_viewport_meta_tag() {
  12.     echo \'<meta name="viewport" content="width=device-width, initial-scale=1.0"/>\';
  13. }
  14.  
  15. // Add Featured Image Sizes
  16.  
  17. add_image_size(\'featured\', 336, 236, true);
  18. add_image_size(\'popular_thumb\', 80, 80, true);
  19.  
  20. // Add support for 5-column footer widgets
  21. add_theme_support( \'genesis-footer-widgets\', 5 );
  22.  
  23. add_theme_support( \'genesis-connect-woocommerce\' );
  24.  
  25. /** Register Widget Area */
  26.  
  27.  
  28. genesis_register_sidebar( array(
  29.         \'id\'            => \'featured_top\',
  30.         \'name\'          => __( \'Homepage  Slider\' ),
  31.         \'description\'   => __( \'This is  the slider of the homepage.\' ),
  32. ) );
  33.  
  34. genesis_register_sidebar( array(
  35.         \'id\'            => \'home_recipes\',
  36.         \'name\'          => __( \'Homepage Featured Recipes\' ),
  37.         \'description\'   => __( \'This is below the slider of the homepage.\' ),
  38. ) );
  39.  
  40. genesis_register_sidebar( array(
  41.         \'id\'            => \'home_blog\',
  42.         \'name\'          => __( \'Homepage Featured Blog Posts\' ),
  43.         \'description\'   => __( \'This is below the slider of the homepage.\' ),
  44. ) );
  45.  
  46. genesis_register_sidebar( array(
  47.         \'id\'            => \'recipes_col1\',
  48.         \'name\'          => __( \'Recipes Category page column left\' ),
  49.         \'description\'   => __( \'This is on the Recipes category page.\' ),
  50. ) );
  51.  
  52. genesis_register_sidebar( array(
  53.         \'id\'            => \'recipes_col2\',
  54.         \'name\'          => __( \'Recipes Category page column right\' ),
  55.         \'description\'   => __( \'This is below the slider of the homepage.\' ),
  56. ) );
  57.  
  58.  
  59.  
  60. /** Add Widget Area */
  61.  
  62.  
  63. add_filter(\'genesis_footer_output\', \'footer_output_filter\', 10, 3);
  64. /**
  65.  * Custom Footer
  66.  */
  67. function footer_output_filter( $output, $creds_text ) {
  68.     $creds_text = \'Copyright © 2013  &middot; <a href="http://www.powerfood.com" target="_blank" rel="nofollow">www.PowerFood.com</a> &middot; <a href="#" target="_blank" rel="nofollow">All Rights Reserved</a>
  69.    &middot; <a href="#" target="_blank" rel="nofollow">Disclaimer</a>&middot; <a href="#" target="_blank" rel="nofollow">Privacy</a>&middot; <a href="#" target="_blank" rel="nofollow">Terms Of Use</a>&middot; <a href="#" target="_blank" rel="nofollow">Reseller</a>&middot; <a href="#" target="_blank" rel="nofollow">Who built this site</a>\';
  70.     $output =  \'<div class="creds">\' . $creds_text . \'</div>\';
  71.       return $output;
  72. }
  73.  
  74. /** Custom Read More link for Genesis Post Excerpts */
  75. function custom_read_more_link() {
  76. return \'<a href="\' .get_permalink() .\'" rel="nofollow"> Read More...</a>\';
  77. }
  78. add_filter( \'excerpt_more\', \'custom_read_more_link\' );
  79. add_filter( \'get_the_content_more_link\', \'custom_read_more_link\' );
  80. add_filter( \'the_content_more_link\', \'custom_read_more_link\' );
  81.  
  82.  
  83. // Customize the post meta function
  84. add_filter( \'genesis_post_meta\', \'post_meta_filter\' );
  85. function post_meta_filter($post_meta) {
  86.     $post_meta = \'[post_categories before="Under: "] [post_tags before="Tagged: "]\';
  87.     return $post_meta;
  88. }
');