esc_html__( 'Primary Menu', 'business-club' ), 'footer' => esc_html__( 'Footer Menu', 'business-club' ), 'social' => esc_html__( 'Social Menu', 'business-club' ), ) ); // Add support for HTML5 markup. add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'business_club_custom_background_args', array( 'default-color' => 'F1F0F0', 'default-image' => '', ) ) ); // Enable support for selective refresh of widgets in Customizer. add_theme_support( 'customize-selective-refresh-widgets' ); $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; // Enable admin editor style. add_editor_style( array( business_club_fonts_url(), 'css/editor-style' . $min . '.css' ) ); // Enable support for custom logo. add_theme_support( 'custom-logo', array( 'width' => 95, 'height' => 95, ) ); } endif; add_action( 'after_setup_theme', 'business_club_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function business_club_content_width() { $GLOBALS['content_width'] = apply_filters( 'business_club_content_width', 640 ); } add_action( 'after_setup_theme', 'business_club_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function business_club_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Primary Sidebar', 'business-club' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here to appear in your Primary Sidebar.', 'business-club' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Secondary Sidebar', 'business-club' ), 'id' => 'sidebar-2', 'description' => esc_html__( 'Add widgets here to appear in your Secondary Sidebar.', 'business-club' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Front Page Widget Area', 'business-club' ), 'id' => 'sidebar-front-page-widget-area', 'description' => esc_html__( 'Add widgets here to appear in your Front Page.', 'business-club' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer %d', 'business-club' ), 1 ), 'id' => 'footer-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer %d', 'business-club' ), 2 ), 'id' => 'footer-2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer %d', 'business-club' ), 3 ), 'id' => 'footer-3', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer %d', 'business-club' ), 4 ), 'id' => 'footer-4', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'business_club_widgets_init' ); /** * Enqueue scripts and styles. */ function business_club_scripts() { $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/vendors/font-awesome/css/font-awesome' . $min . '.css', '', '4.7.0' ); $fonts_url = business_club_fonts_url(); if ( ! empty( $fonts_url ) ) { wp_enqueue_style( 'business-club-google-fonts', $fonts_url, array(), null ); } wp_enqueue_style( 'jquery-sidr', get_template_directory_uri() . '/vendors/sidr/css/jquery.sidr.dark' . $min . '.css', '', '2.2.1' ); wp_enqueue_style( 'business-club-style', get_stylesheet_uri(), array(), '2.0.2' ); wp_enqueue_script( 'business-club-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix' . $min . '.js', array(), '20130115', true ); wp_enqueue_script( 'jquery-cycle2', get_template_directory_uri() . '/vendors/cycle2/js/jquery.cycle2' . $min . '.js', array( 'jquery' ), '2.1.6', true ); wp_enqueue_script( 'jquery-sidr', get_template_directory_uri() . '/vendors/sidr/js/jquery.sidr' . $min . '.js', array( 'jquery' ), '2.2.1', true ); wp_enqueue_script( 'business-club-custom', get_template_directory_uri() . '/js/custom' . $min . '.js', array( 'jquery' ), '2.0.2', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'business_club_scripts' ); /** * Enqueue admin scripts and styles. * * @since 1.0.0 * * @param string $hook Hook name. */ function business_club_admin_scripts( $hook ) { $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; if ( 'widgets.php' === $hook ) { wp_enqueue_media(); wp_enqueue_style( 'business-club-widgets', get_template_directory_uri() . '/css/widgets' . $min . '.css', array(), '2.0.2' ); wp_enqueue_script( 'business-club-widgets', get_template_directory_uri() . '/js/widgets' . $min . '.js', array( 'jquery' ), '2.0.2', true ); } } add_action( 'admin_enqueue_scripts', 'business_club_admin_scripts' ); // Load starting file. require_once trailingslashit( get_template_directory() ) . 'includes/start.php';