esc_html__( 'Header - Primary Menu', 'ac-repair' ),
'fixit-footer-menu-first' => esc_html__( 'Footer - Quick Links', 'ac-repair' ),
'fixit-footer-menu-secound' => esc_html__( 'Footer - Locations', 'ac-repair' ),
);
if ( !function_exists( 'fixit_function_theme_setup' ) ) {
function fixit_function_theme_setup() {
/* Load translation domain ---------------------------------------------*/
load_theme_textdomain( 'ac-repair', get_template_directory() . '/language' );
/* Register Menus ------------------------------------------------------*/
foreach( $GLOBALS['fixit_wordpress_menus'] as $key => $value )
register_nav_menus( array( $key => $value ));
// Add theme support for Automatic Feed Links
add_theme_support( 'automatic-feed-links' );
// Add theme support for document Title tag
add_theme_support( 'title-tag' );
// @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
add_theme_support( 'post-thumbnails' );
// Add theme support for HTML5 Semantic Markup
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );
// Add theme support for Post Formats
add_theme_support( 'post-formats', array( 'status', 'quote', 'gallery', 'image', 'video', 'audio', 'link', 'aside', 'chat' ) );
// Add theme support for Custom Background
add_theme_support( 'custom-background', array( 'default-color' => 'ffffff', 'default-image' => '', ) );
} add_action( 'after_setup_theme', 'fixit_function_theme_setup' );
}
/**
* Register widget area.
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
if( !function_exists('fixit_function_widget_init') ){
function fixit_function_widget_init(){
register_sidebar( array(
'name' => esc_html__( 'Primary Widget Area', 'ac-repair' ),
'id' => 'fixit_widget_id_primary_widget',
'description' => esc_html__( 'Add widgets here to appear in your Sidebar Section Primary Sidebar.', 'ac-repair' ),
'before_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Secondary Widget Area', 'ac-repair' ),
'id' => 'fixit_widget_id_secondary_widget',
'description' => esc_html__( 'Add widgets here to appear in your Sidebar Section Secoudary Sidebar.', 'ac-repair' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Location Widget Area', 'ac-repair' ),
'id' => 'fixit_widget_id_location_widget',
'description' => esc_html__( 'Add widgets here to appear in your Sidebar Section Location Sidebar.', 'ac-repair' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Services Sidebar', 'ac-repair' ),
'id' => 'fixit_widget_id_service_widget',
'description' => esc_html__( 'Add widgets here to appear in your Sidebar Section Services Sidebar.', 'ac-repair' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Section', 'ac-repair' ),
'id' => 'fixit_widget_id_footer_widget',
'description' => esc_html__( 'Add widgets here to appear in your Footer Section.', 'ac-repair' ),
'before_widget' => '',
'before_title' => '
id="li-comment-">
' . "\n";
print $style;
} add_action( 'wp_head', 'fixit_function_favicon_upload');
add_action( 'login_head', 'fixit_function_favicon_upload');
add_action( 'admin_head', 'fixit_function_favicon_upload');
}
/**
* Add Body Class.
*/
if( !function_exists( 'fixit_function_body_class' ) ){
function fixit_function_body_class( array $classes ) {
$classes[] = sanitize_html_class('fixit_sticky_header');
$classes[] = sanitize_html_class('animsition');
// Removes a class from the body_class array.
if (in_array('author-admin', $classes)) {
unset( $classes[array_search('author-admin', $classes)] );
}
return $classes;
} add_filter( 'body_class', 'fixit_function_body_class' );
}
/**
* Require Plugin Installation.
*/
Fixit_Factory::fixit_required_plugin_setup();
/**
* Fixit Admin Framework
*/
Fixit_Factory::fixit_framework();
/**
* Active Theme Actions
*/
Fixit_Factory::fixit_theme_active_actions();
?>