'171717',
'width' => 960,
'height' => 270,
'wp-head-callback' => 'triton_lite_header_style',
'admin-head-callback' => 'triton_lite_admin_header_style',
'admin-preview-callback' => 'triton_lite_admin_header_image',
) ) );
}
endif; // triton_lite_setup
/**
* Register our sidebars and widgetized areas.
*/
add_action( 'widgets_init', 'triton_lite_register_sidebars' );
if ( ! function_exists( 'triton_lite_register_sidebars' ) ) :
function triton_lite_register_sidebars() {
/*
Add theme support for widgetized sidebars.
*/
register_sidebar( array(
'name' => __( 'Primary Sidebar', 'triton-lite' ),
'id' => 'sidebar-1',
'description' => __( 'Widgets in this sidebar will be displayed adjacent to post and page content.', 'triton-lite' ),
'before_title' => '
',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Middle Row', 'triton-lite' ),
'id' => 'sidebar-2',
'description' => __( 'Widgets in this area will be displayed in a section just above the site footer.', 'triton-lite' ),
'before_title' => '
',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Footer', 'triton-lite' ),
'id' => 'sidebar-3',
'description' => __( 'Widgets in this area will be displayed at the very bottom of the page.', 'triton-lite' ),
'before_title' => '
',
'after_title' => '
'
) );
}
endif; // triton_lite_register_sidebars
/**
* Modify the font sizes of WordPress' tag cloud
*/
if ( ! function_exists( 'triton_lite_widget_tag_cloud_args' ) ) :
function triton_lite_widget_tag_cloud_args( $args ) {
$args[ 'smallest' ] = 12;
$args[ 'largest' ]= 20;
$args[ 'unit' ]= 'px';
return $args;
}
add_filter( 'widget_tag_cloud_args', 'triton_lite_widget_tag_cloud_args' );
endif; // triton_lite_widget_tag_cloud_args
if ( ! function_exists ( 'triton_lite_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*/
function triton_lite_header_style() {
$header_image = get_header_image();
if ( ! empty( $header_image ) ) : ?>
Header admin panel.
*/
function triton_lite_admin_header_style() { ?>
Header admin panel.
*
*/
function triton_lite_admin_header_image() { ?>