'Page Sidebar',
'before_widget' => '
',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => 'Blog Sidebar',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => 'Footer Sidebar',
'before_widget' => '',
'before_title' => '',
));
}
add_action( 'widgets_init', 'foodeez_lite_widgets_init' );
/**
* Sets up theme defaults and registers the various WordPress features that
* Foodeez supports.
*
* @uses load_theme_textdomain() For translation/localization support.
* @uses add_editor_style() To add Visual Editor stylesheets.
* @uses add_theme_support() To add support for automatic feed links, post
* formats, and post thumbnails.
* @uses register_nav_menu() To add support for a navigation menu.
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
*
*/
function foodeez_lite_theme_setup() {
/*
* Makes Foodeez available for translation.
*
* Translations can be added to the /languages/ directory.
* If you're building a theme based on Twenty Thirteen, use a find and
* replace to change 'foodeez-lite' to the name of your theme in all
* template files.
*/
load_theme_textdomain( 'foodeez-lite', get_template_directory() . '/languages' );
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
// Adds RSS feed links to for posts and comments.
add_theme_support( 'automatic-feed-links' );
/*
* This theme uses a custom image size for featured images, displayed on
* "standard" posts and pages.
*/
add_theme_support('post-thumbnails');
/**
* Enable support for Post Formats
*/
set_post_thumbnail_size( 600, 220, true );
add_image_size( 'homepage-slider',1024,520); //remove if slider is not needed
add_image_size( 'foodeez_lite_featuredbox_image',250,114); //remove if slider is not needed
add_image_size( 'foodeez_lite_standard_img',770,365,true); //standard size
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'Header' => __( 'Main Navigation', 'foodeez-lite' ),
));
/**
* SETS UP THE CONTENT WIDTH VALUE BASED ON THE THEME'S DESIGN.
*/
if ( ! isset( $content_width ) ){
$content_width = 900;
}
}
add_action( 'after_setup_theme', 'foodeez_lite_theme_setup' );
/**
* Funtion to add CSS class to body
*/
function foodeez_lite_add_class( $classes ) {
if ( 'page' == get_option( 'show_on_front' ) && ( '' != get_option( 'page_for_posts' ) ) && is_front_page() ) {
$classes[] = 'front-page';
}
return $classes;
}
add_filter( 'body_class','foodeez_lite_add_class' );
/**
* Filter content with empty post title
*
*/
add_filter('the_title', 'foodeez_lite_untitled');
function foodeez_lite_untitled($title) {
if ($title == '') {
return __('Untitled','foodeez-lite');
} else {
return $title;
}
}
/*---------------------------------------------------------------------------*/
/* ADMIN SCRIPT: Enqueue scripts in back-end
/*---------------------------------------------------------------------------*/
if( !function_exists('foodeez_lite_page_admin_enqueue_scripts') ){
add_action('admin_enqueue_scripts','foodeez_lite_page_admin_enqueue_scripts');
/**
* Register scripts for admin panel
* @return void
*/
function foodeez_lite_page_admin_enqueue_scripts(){
wp_enqueue_script('media-upload');
wp_enqueue_script('thickbox');
wp_register_script('my-upload', get_template_directory_uri() .'/SketchBoard/js/admin-jqery.js', array('jquery','media-upload','thickbox'));
wp_enqueue_script('my-upload');
wp_enqueue_style('thickbox');
wp_register_style( 'skt-admin-stylesheet', get_template_directory_uri().'/SketchBoard/css/sketch-admin.css', false);
wp_enqueue_style( 'skt-admin-stylesheet' );
}
}
/********************************************************
INCLUDE REQUIRED FILE FOR THEME (PLEASE DON'T REMOVE IT)
*********************************************************/
//THEME SHORTNAME
$foodeez_lite_shortname = 'foodeez';
$foodeez_lite_themename = 'Foodeez';
require_once(get_template_directory() . '/SketchBoard/functions/admin-init.php');
require ( get_template_directory() . '/SketchBoard/includes/sketchtheme-upsell.php' );
/********************************************************/