<?php
// Start the engine
require_once(TEMPLATEPATH.’/lib/init.php’);
require_once(CHILD_DIR.’/lib/custom-header.php’);
require_once(CHILD_DIR.’/lib/style.php’);
// Child theme (do not remove)
define(‘CHILD_THEME_NAME’, ‘Social Eyes Theme’);
define(‘CHILD_THEME_URL’, ‘https://www.studiopress.com/themes/socialeyes’);
// Add support for custom background
add_custom_background();
// Add new image sizes
add_image_size(‘Homepage Featured’, 600, 300, TRUE);
add_image_size(‘Homepage Thumbnail’, 110, 110, TRUE);
// Customize the post info function
add_filter(‘genesis_post_info’, ‘post_info_filter’);
function post_info_filter($post_info) {
if (!is_page()) {
$post_info = ‘[post_date] by [post_author_posts_link] [post_comments] [post_edit]’;
return $post_info;
}
}
// Customize the post meta function
add_filter(‘genesis_post_meta’, ‘post_meta_filter’);
function post_meta_filter($post_meta) {
if (!is_page()) {
$post_meta = ‘[post_categories] · [post_tags]’;
return $post_meta;
}
}
// Add after post ad widget area on single post
add_action(‘genesis_after_post_content’, ‘socialeyes_after_post_ad’, 9);
function socialeyes_after_post_ad() {
if ( is_single() ) {
echo ‘<div class=”after-post-ad”>’;
dynamic_sidebar(‘after-post-ad’);
echo ‘</div>’;
}
}
// Add widgeted footer section
add_action(‘genesis_before_footer’, ‘socialeyes_footer_widgets’);
function socialeyes_footer_widgets() {
require( CHILD_DIR . ‘/footer-widgets.php’ );
}
// Customize the footer section
add_filter(‘genesis_footer_creds_text’, ‘socialeyes_footer_creds_text’);
function socialeyes_footer_creds_text($creds) {
return __(‘Copyright’, ‘genesis’) . ‘ [footer_copyright] [footer_childtheme_link] ‘ . __(‘on’, ‘socialeyes’) . ‘ [footer_genesis_link] · [footer_wordpress_link] · [footer_loginout]’;
}
// Register widget areas
genesis_register_sidebar( array(
‘name’=>’Homepage’,
‘id’ => ‘homepage’,
‘description’ => ‘This is the content section of the homepage.’
) );
genesis_register_sidebar( array(
‘name’=>’After Post Ad’,
‘id’ => ‘after-post-ad’,
‘description’ => ‘This is the section after a post for an ad.’
) );
genesis_register_sidebar( array(
‘name’=>’Footer #1’,
‘id’ => ‘footer-1’,
‘description’ => ‘This is the first column of the footer section.’
) );
genesis_register_sidebar( array(
‘name’=>’Footer #2’,
‘id’ => ‘footer-2’,
‘description’ => ‘This is the second column of the footer section.’
) );
genesis_register_sidebar( array(
‘name’=>’Footer #3’,
‘id’ => ‘footer-3’,
‘description’ => ‘This is the third column of the footer section.’
) );