__( 'Top Navigation', 'android' ),
'navbar' => __( 'Navigation Bar', 'android' ),
) );
// This theme allows users to set a custom background
add_custom_background('', 'android_admin_background_style');
// Your changeable header business starts here
define( 'HEADER_TEXTCOLOR', '' );
// No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
define( 'HEADER_IMAGE', '%s/images/header.png' );
// The height and width of your custom header. You can hook into the theme's own filters to change these values.
// Add a filter to android_header_image_width and android_header_image_height to change these values.
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'android_header_image_height', 140 ) );
define( 'HEADER_IMAGE_WIDTH' , apply_filters( 'android_header_image_width' , 670 ) );
// User can disable the post thumbnails function from the settingd psge.
add_option('android_use_thumbnails', false ); // It's still beta!
// Now, the user can change the default post thumbnail height so, let's add our default.
// Anyway the height should be between 100 and 300.
add_option('android_thumbnail_height', 300);
// Don't support text inside the header image.
define( 'NO_HEADER_TEXT', true );
// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
register_default_headers( array(
'android' => array(
'url' => '%s/images/headers/header.png',
'thumbnail_url' => '%s/images/headers/header-thumbnail.png',
/* translators: header image description */
'description' => __( 'Android', 'android' )
),
'android2' => array(
'url' => '%s/images/headers/header2.png',
'thumbnail_url' => '%s/images/headers/header2-thumbnail.png',
/* translators: header image description */
'description' => __( 'Android', 'android' ) . ' 2'
),
'android3' => array(
'url' => '%s/images/headers/header3.png',
'thumbnail_url' => '%s/images/headers/header3-thumbnail.png',
/* translators: header image description */
'description' => __( 'Android', 'android' ) . ' 3'
),
));
// Add a way for the custom header to be styled in the admin panel that controls
// custom headers. See android_admin_header_style(), below.
add_custom_image_header( '', 'android_admin_header_style' );
/*
//add options
add_option('android_fb_page_id', '');
add_option('android_fb_likebox', false);
add_option('android_fb_like', true);
add_option('android_color_scheme', '');
add_option('android_show_author', true);
*/
//social links options
$default_social = array(
'rss' => array( get_bloginfo('name').' RSS', get_bloginfo('rss2_url') ),
'twitter' => array( 'Louy on Twitter', 'http://twitter.com/l0uy' ),
'facebook' => array( 'Louy on Facebook', 'http://www.facebook.com/louy08' ),
'flickr' => array( 'Louy on Flickr', 'http://www.flickr.com/people/lo-uy/' ),
'youtube' => array( 'Louy on YouTube', 'http://www.youtube.com/MrL0uy' ),
);
add_option( 'android_social_icons', $default_social );
if( get_option('android_use_thubmnails') ) {
// This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );
// We'll be using post thumbnails for custom header images on posts and pages.
// We want them to be 940 pixels wide by 198 pixels tall.
// Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
set_post_thumbnail_size( 660, get_option('android_thumbnail_height'), true );
// Now, add a new thumbnail size to use in one column pages.
add_image_size( 'onecolumn-thumbnail', 990, get_option('android_thumbnail_height'), true );
}
}
function android_admin_header_style() {
?>
__( 'Primary Widget Area', 'android' ),
'id' => 'primary-widget-area',
'description' => __( 'The primary widget area', 'android' ),
'before_widget' => '