__( 'Blog Sidebar', 'avis-lite' ),
'id' => 'blog-sidebar',
'before_widget' => '
',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => __( 'Page Sidebar', 'avis-lite' ),
'id' => 'page-sidebar',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => __( 'Home Featured Sidebar', 'avis-lite' ),
'id' => 'home-featured-sidebar',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
register_sidebar(array(
'name' => __( 'Footer Sidebar', 'avis-lite' ),
'id' => 'footer-sidebar',
'before_widget' => '',
'before_title' => '',
));
}
add_action( 'widgets_init', 'avis_lite_widgets_init' );
/**
* Sets up theme defaults and registers the various WordPress features that
* 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 avis_lite_theme_setup() {
/*
* Makes 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 'avis-lite' to the name of your theme in all
* template files.
*/
load_theme_textdomain( 'avis-lite', get_template_directory() . '/languages' );
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
add_theme_support( 'title-tag' );
add_theme_support( 'custom-header', array( 'flex-width' => true, 'width' => 1600, 'flex-height' => true, 'height' => 750, 'default-image' => get_template_directory_uri() . '/images/header.png') );
// This theme allows users to set a custom background.
add_theme_support( 'custom-background', apply_filters( 'avis_custom_background_args', array('default-color' => 'f5f5f5', ) ) );
/**
* SETS UP THE CONTENT WIDTH VALUE BASED ON THE THEME'S DESIGN.
*/
global $content_width;
if ( ! isset( $content_width ) ){
$content_width = 900;
}
// 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
*/
add_theme_support( 'post-formats', array('video', 'gallery', 'quote') );
set_post_thumbnail_size( 850, 400, true );
add_image_size( 'avis-lite-standardimg', 850, 400, true); //Standard size
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'Header' => __( 'Main Navigation', 'avis-lite' ),
));
}
add_action( 'after_setup_theme', 'avis_lite_theme_setup' );
/**
* Add Customizer
*/
require get_template_directory() . '/includes/customizer.php';
/**
* Add Config File
*/
require_once(get_template_directory() . '/SketchBoard/functions/admin-init.php');
//---------------------------------------------------------------------
//---------------------------------------------------------------------
/* Theme Required Plugins
/*---------------------------------------------------------------------------*/
if ( !defined( 'AVIS_REQUIRED_PLUGINS' ) ) {
define( 'AVIS_REQUIRED_PLUGINS', trailingslashit(get_theme_root()) . 'avis-lite/includes/plugins' );
}
include_once('includes/skt-required-plugins.php');
//---------------------------------------------------------------------
/* Upshell Pro Theme
/*---------------------------------------------------------------------------*/
require_once( trailingslashit( get_template_directory() ) . 'sketchthemes-upsell/class-customize.php' );