__( 'Primary Navigation', 'picolight' ),
) );
// This theme allows users to set a custom background
add_custom_background();
// Thumbnails
set_post_thumbnail_size( '150', '150', true );
//Sidebars
function picolight_sidebars(){
register_sidebar(array(
'name' => __('Sidebar', 'picolight'),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
));
}
add_action('widgets_init', 'picolight_sidebars');
define('HEADER_TEXTCOLOR', '');
define('HEADER_IMAGE', '%s/images/headers/shore.jpg'); // %s is the template dir uri
define('HEADER_IMAGE_WIDTH', 1000); // use width and height appropriate for your theme
global $picolight_options;
$picolight_settings = get_option( 'picolight_options', $picolight_options );
if( $picolight_settings['custom_header_height'] ) {
$custom_header_height = $picolight_settings['custom_header_height'];
}
define('HEADER_IMAGE_HEIGHT', $custom_header_height);
define('NO_HEADER_TEXT', true );
add_custom_image_header('', 'picolight_admin_header_style');
// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
register_default_headers( array(
'chessboard' => array(
'url' => '%s/images/headers/chessboard.jpg',
'thumbnail_url' => '%s/images/headers/chessboard-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Chessboard', 'picolight' )
),
'hanoi' => array(
'url' => '%s/images/headers/hanoi.jpg',
'thumbnail_url' => '%s/images/headers/hanoi-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Hanoi', 'picolight' )
),
'lanterns' => array(
'url' => '%s/images/headers/lanterns.jpg',
'thumbnail_url' => '%s/images/headers/lanterns-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Lanterns', 'picolight' )
),
'pine-core' => array(
'url' => '%s/images/headers/pine-cone.jpg',
'thumbnail_url' => '%s/images/headers/pine-cone-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Pine-cone', 'picolight' )
),
'shore' => array(
'url' => '%s/images/headers/shore.jpg',
'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Shore', 'picolight' )
),
'trolley' => array(
'url' => '%s/images/headers/trolley.jpg',
'thumbnail_url' => '%s/images/headers/trolley-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Trolley', 'picolight' )
),
'wheel' => array(
'url' => '%s/images/headers/wheel.jpg',
'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Wheel', 'picolight' )
),
'willow' => array(
'url' => '%s/images/headers/willow.jpg',
'thumbnail_url' => '%s/images/headers/willow-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Willow', 'picolight' )
)
) );
}
endif;
if ( ! function_exists( 'picolight_admin_header_style' ) ) :
/**
* Styles the header image displayed on the Appearance > Header admin panel.
* Referenced via add_custom_image_header() in picolight_setup().
*/
function picolight_admin_header_style() {
?>
comment_type ) :
case 'pingback' :
case 'trackback' :
?>
', '' ); ?>
id="li-comment-">