'Homepage Widgets',
'id' => 'homepage_widgets',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
));
register_sidebar(array(
'name'=> 'Sidebar 1',
'id' => 'sidebar_1',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
));
register_sidebar(array(
'name'=> 'Sidebar 2',
'id' => 'sidebar_2',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
));
register_sidebar(array(
'name'=> 'Footer Widgets',
'id' => 'footer-widgets',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
));
}
if ( function_exists( 'register_nav_menus' ) ) {
register_nav_menus(
array(
'turnkey_mainnav' => 'TurnKey Main Navigation',
'turnkey_secondary' => 'TurnKey Secondary Navigation'
)
);
};
add_theme_support( 'post-thumbnails' );
// Makes Sure thumbnails show up in RSS
function do_post_thumbnail_feeds($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '' . get_the_post_thumbnail($post->ID) . '
' . $content;
}
return $content;
}
add_filter('the_excerpt_rss', 'do_post_thumbnail_feeds');
add_filter('the_content_feed', 'do_post_thumbnail_feeds');
// Define Thumbnail Images Sizes
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'post-thumb-threecol', 390, 200, true );
add_image_size( 'post-thumb-onetwocol', 520, 200, true );
/* Slide Image */ add_image_size( 'special', 580, 340, true );
}
if ( !is_admin() ) { // instruction to only load if it is not the admin area
function googlejquery() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');
}
add_action('init', 'googlejquery');
wp_register_script('functions',
get_bloginfo('template_directory') . '/assets/js/functions.js');
wp_register_script('cycle',
get_bloginfo('template_directory') . '/assets/js/cycle.min.js');
wp_register_script('lightbox',
get_bloginfo('template_directory') . '/assets/js/lightbox_me.js');
// enqueue the script
wp_enqueue_script('jquery');
wp_enqueue_script('functions');
wp_enqueue_script('cycle');
wp_enqueue_script('lightbox');
};
function the_breadcrumb() {
if (!is_home()) {
echo '';
bloginfo('name');
echo " » ";
if (is_category() || is_single()) {
the_category('title_li=');
if (is_single()) {
echo " » ";
the_title();
}
} elseif (is_page()) {
echo " ";
echo the_title();
echo " ";
}
}
}
?>