View difference between Paste ID: SnfgXe7S and HDkw62Bz
SHOW: | | - or go back to the newest paste.
1
<?php
2
/** Start the engine */
3
require_once( TEMPLATEPATH . '/lib/init.php' );
4
5
/** Child theme (do not remove) */
6
define( 'CHILD_THEME_NAME', 'Corporate Theme' );
7
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/corporate' );
8
9
$content_width = apply_filters( 'content_width', 620, 450, 930 );
10
11
/** Add new image sizes */
12
add_image_size( 'featured', 500, 240, TRUE );
13
add_image_size( 'home-middle', 275, 100, TRUE );
14
15
/** Add suport for custom background */
16
add_custom_background();
17
18
/** Add support for custom header */
19
add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 130, 'textcolor' => 'ffffff', 'admin_header_callback' => 'corporate_admin_style' ) );
20
21
/**
22
 * Register a custom admin callback to display the custom header preview with the
23
 * same style as is shown on the front end.
24
 *
25
 */
26
function corporate_admin_style() {
27
28
	$headimg = sprintf( '.appearance_page_custom-header #headimg { background: url(%s) no-repeat; font-family: Droid Sans, arial, serif; min-height: %spx; text-shadow: #000 1px 1px; }', get_header_image(), HEADER_IMAGE_HEIGHT );
29
	$h1 = sprintf( '#headimg h1, #headimg h1 a { color: #%s; font-size: 30px; font-weight: normal; line-height: 30px; margin: 40px 0 0 15px; text-decoration: none; }', esc_html( get_header_textcolor() ) );
30
	$desc = sprintf( '#headimg #desc { color: #%s; font-size: 16px; line-height: 1; margin: 10px 0 0 30px; }', esc_html( get_header_textcolor() ) );
31
32
	printf( '<style type="text/css">%1$s %2$s %3$s</style>', $headimg, $h1, $desc );
33
34
}
35
36
/** Change breadcrumb location */
37
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
38
add_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );
39
40
/** Add support for 3-column footer widgets */
41
add_theme_support( 'genesis-footer-widgets', 3 );
42
43
/** Register widget areas */
44
genesis_register_sidebar( array(
45
	'id'			=> 'featured',
46
	'name'			=> __( 'Featured', 'corporate' ),
47
	'description'	=> __( 'This is the featured section.', 'corporate' ),
48
) );
49
genesis_register_sidebar( array(
50
	'id'			=> 'home-middle-1',
51
	'name'			=> __( 'Home Middle #1', 'corporate' ),
52
	'description'	=> __( 'This is the home middle #1 section.', 'corporate' ),
53
) );
54
genesis_register_sidebar( array(
55
	'id'			=> 'home-middle-2',
56
	'name'			=> __( 'Home Middle #2', 'corporate' ),
57
	'description'	=> __( 'This is the home middle #2 section.', 'corporate' ),
58
) );
59
genesis_register_sidebar( array(
60
	'id'			=> 'home-middle-3',
61
	'name'			=> __( 'Home Middle #3', 'corporate' ),
62
	'description'	=> __( 'This is the home middle #3 section.', 'corporate' ),
63
) );
64
genesis_register_sidebar( array(
65-
    &#039;id&#039;            =&gt; &#039;home-middle-4&#039;,
65+
    'id'            => 'home-middle-4',
66-
    &#039;name&#039;          =&gt; __( &#039;Home Middle #4&#039;, &#039;corporate&#039; ),
66+
    'name'          => __( 'Home Middle #4', 'corporate' ),
67-
    &#039;description&#039;   =&gt; __( &#039;This is a widget area that can be shown on Home Page&#039;, &#039;corporate&#039; ),
67+
    'description'   => __( 'This is a widget area that can be shown on Home Page', 'corporate' ),
68
) );
69
70
genesis_register_sidebar( array(
71-
    &#039;id&#039;            =&gt; &#039;home-middle-5&#039;,
71+
    'id'            => 'home-middle-5',
72-
    &#039;name&#039;          =&gt; __( &#039;Home Middle #5&#039;, &#039;corporate&#039; ),
72+
    'name'          => __( 'Home Middle #5', 'corporate' ),
73-
    &#039;description&#039;   =&gt; __( &#039;This is a widget area that can be shown on Home Page&#039;, &#039;corporate&#039; ),
73+
    'description'   => __( 'This is a widget area that can be shown on Home Page', 'corporate' ),
74
) );