__( 'Primary Menu', 'ascent-free' ),
'social_menu' => __( 'Social Menu', 'ascent-free' )
));
/* Load editor style
------------------------------------------------------------------------------*/
add_editor_style( 'custom-editor-style.css' );
/* Load text domain
------------------------------------------------------------------------------*/
load_theme_textdomain('ascent-free', get_template_directory_uri() . "/languages/");
/* Add various theme support options
----------------------------------------------------------------------------- */
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
//remove_theme_support( 'custom-background' );
//add_theme_support( 'post-formats', array( 'audio', 'gallery', 'image', 'quote', 'video', 'link' ) );
add_post_type_support( 'page', 'excerpt' );
add_theme_support( "title-tag" );
// Add backwards compatibility for title-tag
if ( ! function_exists( '_wp_render_title_tag' ) ) {
function theme_slug_render_title() {
?>
' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
}
add_action( 'wp_head', 'themeora_head_js' );
/* Add analytics to the head if code provided
------------------------------------------------------------------------------- */
function themeora_add_analytics() {
$tracking_id = get_theme_mod('analytics_tracking_code' );
echo "";
}
if ( get_theme_mod('analytics_tracking_code' ) ) {
add_action( 'wp_head', 'themeora_add_analytics' );
}
/* The function to register sidebars & widgets
------------------------------------------------------------------------------- */
if ( ! function_exists( 'themeora_widgets_init' ) ) :
function themeora_widgets_init() {
/* Register widget areas
--------------------------------------------------------------------------*/
register_sidebar( array(
'name' => __( 'Blog Sidebar', 'ascent-free' ),
'id' => 'blog-sidebar',
'description' => __( 'Default blog sidebar stuff', 'ascent-free' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
register_sidebar( array(
'name' => __( 'Page Sidebar', 'ascent-free' ),
'id' => 'page-sidebar',
'description' => __( 'Default page sidebar stuff', 'ascent-free' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
register_sidebar( array(
'name' => __( 'Shop Sidebar', 'ascent-free' ),
'id' => 'shop-sidebar',
'description' => __( 'Sidebar for the single EDD shop', 'ascent-free' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
register_sidebar( array(
'name' => __( 'Checkout Sidebar', 'ascent-free' ),
'id' => 'checkout-sidebar',
'description' => __( 'Sidebar for the EDD checkout', 'ascent-free' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
register_sidebar( array(
'name' => __( 'Footer Top Widget', 'ascent-free' ),
'id' => 'footer-widget-top',
'description' => __( 'Footer Top Widget', 'ascent-free' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
register_sidebar( array(
'name' => __( 'Footer Middle Widget', 'ascent-free' ),
'id' => 'footer-widget-middle',
'description' => __( 'Footer Middle Widget', 'ascent-free' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
register_sidebar( array(
'name' => __( 'Footer bottom Widget', 'ascent-free' ),
'id' => 'footer-widget-bottom',
'description' => __( 'Footer Bottom Widget', 'ascent-free' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
register_sidebar( array(
'name' => __( 'Footer Terms Widget', 'ascent-free' ),
'id' => 'footer-widget-terms',
'description' => __( 'Footer Terms Widget', 'ascent-free' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
}
endif; //themeora_widgets_init
add_action( 'widgets_init', 'themeora_widgets_init' );
/* Load theme functions
------------------------------------------------------------------------------ */
require 'inc/functions-utility.php'; // Helper functions
require 'inc/functions-templates.php'; // Template functions
require 'inc/edd/functions.php'; // Custom functions for EDD