View difference between Paste ID: vg6jA8zn and 3n6wD5hA
SHOW: | | - or go back to the newest paste.
1
<?php
2
/** Start the engine **/
3
require_once( TEMPLATEPATH . '/lib/init.php' );
4
require_once( CHILD_DIR . '/lib/style.php' );
5
6
/** Child theme (do not remove) **/
7
define( 'CHILD_THEME_NAME', 'Focus Theme' );
8
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/focus' );
9
10
/** Add support for custom background **/
11
add_custom_background();
12
13
/** Add support for custom header **/
14
add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 100 ) );
15
16
/** Add support for 3-column footer widgets **/
17
add_theme_support( 'genesis-footer-widgets', 3 );
18
19
/** Add new image sizes **/
20
add_image_size( 'grid-thumbnail', 100, 100, TRUE );
21
22
/** Modify the size of the Gravatar in the author box **/
23
add_filter( 'genesis_author_box_gravatar_size', 'focus_gravatar_size' );
24
function focus_gravatar_size( $size ) {
25
	return 80;
26
}
27
28
/** Add after post section **/
29
add_action( 'genesis_before_comments', 'focus_after_post_box' );
30
function focus_after_post_box() {
31
	if ( is_single() )
32
	require( CHILD_DIR . '/after-post.php' );
33
}
34
35
/** Register widget areas **/
36
genesis_register_sidebar( array(
37
	'id'				=> 'after-post-left',
38
	'name'			=> __( 'After Post Left', 'focus' ),
39
	'description'	=> __( 'This is the left section after a post.', 'focus' ),
40
) );
41
genesis_register_sidebar( array(
42
	'id'				=> 'after-post-right',
43
	'name'			=> __( 'After Post Right', 'focus' ),
44
	'description'	=> __( 'This is the right section after a post.', 'focus' ),
45
) );
46
47-
add_filter( ‘genesis_post_info’, ‘custom_post_info’ );
47+
add_filter( 'genesis_post_info', 'custom_post_info' );
48
function custom_post_info( $post_info ) {
49-
	$post_info = __(‘By’, ‘genesis’) . ‘ [post_author_posts_link] ‘ . __(‘on’, ‘genesis’) . ‘ [post_date] [post_comments] [post_edit]‘;
49+
	$post_info = __('By', 'genesis') . ' [post_author_posts_link] ' . __('on', 'genesis') . ' [post_date] [post_comments] [post_edit]';
50
	return $post_info;
51
}