apply_filters( 'beautifuldecay_header_image_width', 1000 ),
'height' => apply_filters( 'beautifuldecay_header_image_height', 250 ),
'header-text' => false,
);
add_theme_support( 'custom-header', $custom_header_support );
// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
register_default_headers( array(
'blue' => array (
'url' => '%s/headers/001.jpg',
'thumbnail_url' => '%s/headers/thumbnails/001_thumb.jpg',
'description' => __( 'Blue', 'beautifuldecay' )
),
//Image 2
'barbed' => array (
'url' => '%s/headers/002.jpg',
'thumbnail_url' => '%s/headers/thumbnails/002_thumb.jpg',
'description' => __( 'Barbed', 'beautifuldecay' )
),
//Image 3
'leaves' => array (
'url' => '%s/headers/003.jpg',
'thumbnail_url' => '%s/headers/thumbnails/003_thumb.jpg',
'description' => __( 'Leaves', 'beautifuldecay' )
),
//Image 4
'sky' => array (
'url' => '%s/headers/004.jpg',
'thumbnail_url' => '%s/headers/thumbnails/004_thumb.jpg',
'description' => __( 'Sky', 'beautifuldecay' )
),
) );
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 343, 100, true );
function beautifuldecay_main_image() {
$files = get_children('post_parent='.get_the_ID().'&post_type=attachment
&post_mime_type=image&order=desc');
if($files) :
$keys = array_reverse(array_keys($files));
$j=0;
$num = $keys[$j];
$image=wp_get_attachment_image($num, 'large', true);
$imagepieces = explode('"', $image);
$imagepath = $imagepieces[1];
$main=wp_get_attachment_url($num);
$template=get_template_directory();
$the_title= the_title_attribute( 'echo=0');
print "";
endif;
}
function beautifuldecay_menu() {
register_nav_menus(
array( 'header-menu' => __( 'Header Menu', 'beautifuldecay' ) )
);
}
add_action( 'init', 'beautifuldecay_menu' );
function beautifuldecay_widgets_init() {
// Footer Menu
register_sidebar( array(
'name' => __( 'Side Bar Widget Area', 'beautifuldecay' ),
'id' => 'primary-widget-area',
'description' => __( 'The side bar widget area', 'beautifuldecay' ),
'before_widget' => '