__('Primary Widget Sidebar','bizstudio-lite'),
'id' => 'primary-widget-area',
'before_widget' => '
',
'after_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => __('Secondary Widget Sidebar','bizstudio-lite'),
'id' => 'secondary-widget-area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => __('First Footer Widget Sidebar','bizstudio-lite'),
'id' => 'first-footer-widget-area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => __('Second Footer Widget Sidebar','bizstudio-lite'),
'id' => 'second-footer-widget-area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => __('Third Footer Widget Sidebar','bizstudio-lite'),
'id' => 'third-footer-widget-area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
));
}
add_action( 'widgets_init', 'bizstudio_widgets_init' );
/***************register nav menus*********************/
function bizstudio_theme_setup_call() {
global $shortname;
/*
* Makes Incart 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 'incart-lite' to the name of your theme in all
* template files.
*/
load_theme_textdomain( 'bizstudio-lite', get_template_directory() . '/languages' );
add_theme_support( 'title-tag' );
register_nav_menus( array(
'Header' => __( 'Main Navigation', 'bizstudio-lite' ),
));
}
add_action( 'after_setup_theme', 'bizstudio_theme_setup_call' );
function the_commenter_avatar() {
$email = get_comment_author_email();
$avatar = get_avatar( "$email", "40" );
echo $avatar;
}
function bizstudio_new_excerpt_more($more) {
global $post;
return '';
}
add_filter('excerpt_more', 'bizstudio_new_excerpt_more');
/***** Make theme available for translation ****/
/**
* Funtion to add CSS class to body
*/
/**
* Funtion to add CSS class to body
*/
function bizstudio_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','bizstudio_add_class' );
/**
* Funtion to add CSS class to body for apply background
*/
function bizstudio_addbackground_class( $classes ) {
global $shortname;
$classes[] = 'body-background' ;
return $classes;
}
add_filter( 'body_class','bizstudio_addbackground_class' );
/* * Loads the Options Panel * * If you're loading from a child theme use stylesheet_directory * instead of template_directory */
if ( !function_exists( 'optionsframework_init' ) ){
//Theme Shortname
$shortname = 'bizstudiolite';
$themename= 'Biz Studio Theme';
define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/SketchBoard/includes/' );
require_once get_template_directory(). '/SketchBoard/includes/options-framework.php';
require_once get_template_directory(). '/SketchBoard/functions/admin-init.php';
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
/* Theme RECOMMENDED Plugins
/*---------------------------------------------------------------------------*/
if ( !defined( 'BIZSTUDIO_RECOMMENDED_PLUGINS' ) ) {
define( 'BIZSTUDIO_RECOMMENDED_PLUGINS', trailingslashit(get_theme_root()) . 'bizstudio-lite/includes/plugins' );
}
include_once('includes/skt-required-plugins.php');
//---------------------------------------------------------------------
/* Upshell Pro Theme
/*---------------------------------------------------------------------------*/
require_once( trailingslashit( get_template_directory() ) . 'sketchthemes-upsell/class-customize.php' );