ttfmake_get_default( 'background_color' ), 'default-image' => ttfmake_get_default( 'background_image' ), 'default-repeat' => ttfmake_get_default( 'background_repeat' ), 'default-position-x' => ttfmake_get_default( 'background_position_x' ), 'default-attachment' => ttfmake_get_default( 'background_attachment' ), ) ); // HTML5 add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); // Menu locations register_nav_menus( array( 'primary' => __( 'Primary Menu', 'make' ), 'social' => __( 'Social Profile Links', 'make' ) ) ); // Editor styles $editor_styles = array(); if ( '' !== $google_request = ttfmake_get_google_font_uri() ) { $editor_styles[] = $google_request; } $editor_styles[] = 'css/font-awesome.css'; $editor_styles[] = 'css/editor-style.css'; // Another editor stylesheet is added via ttfmake_mce_css() in inc/customizer/bootstrap.php add_editor_style( $editor_styles ); } endif; add_action( 'after_setup_theme', 'ttfmake_setup' ); if ( ! function_exists( 'ttfmake_widgets_init' ) ) : /** * Register widget areas * * @since 1.0.0. * * @return void */ function ttfmake_widgets_init() { register_sidebar( array( 'id' => 'sidebar-left', 'name' => __( 'Left Sidebar', 'make' ), 'description' => ttfmake_sidebar_description( 'sidebar-left' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'id' => 'sidebar-right', 'name' => __( 'Right Sidebar', 'make' ), 'description' => ttfmake_sidebar_description( 'sidebar-right' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'id' => 'footer-1', 'name' => __( 'Footer 1', 'make' ), 'description' => ttfmake_sidebar_description( 'footer-1' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'id' => 'footer-2', 'name' => __( 'Footer 2', 'make' ), 'description' => ttfmake_sidebar_description( 'footer-2' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'id' => 'footer-3', 'name' => __( 'Footer 3', 'make' ), 'description' => ttfmake_sidebar_description( 'footer-3' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'id' => 'footer-4', 'name' => __( 'Footer 4', 'make' ), 'description' => ttfmake_sidebar_description( 'footer-4' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } endif; add_action( 'widgets_init', 'ttfmake_widgets_init' ); if ( ! function_exists( 'ttfmake_head_early' ) ) : /** * Add items to the top of the wp_head section of the document head. * * @since 1.0.0. * * @return void */ function ttfmake_head_early() { // JavaScript detection ?> implode( ',', $selector_array ) ); // Send to the script wp_localize_script( 'ttfmake-fitvids', 'ttfmakeFitVids', $fitvids_custom_selectors ); $script_dependencies[] = 'ttfmake-fitvids'; // Global script wp_enqueue_script( 'ttfmake-global', get_template_directory_uri() . '/js/global' . TTFMAKE_SUFFIX . '.js', $script_dependencies, TTFMAKE_VERSION, true ); // Comment reply script if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } endif; add_action( 'wp_enqueue_scripts', 'ttfmake_scripts' ); if ( ! function_exists( 'ttfmake_cycle2_script_setup' ) ) : /** * Enqueue Cycle2 scripts * * If the environment is set up for minified scripts, load one concatenated, minified * Cycle 2 script. Otherwise, load each module separately. * * @since 1.0.0. * * @param array $script_dependencies Scripts that Cycle2 depends on. * * @return void */ function ttfmake_cycle2_script_setup( $script_dependencies ) { if ( defined( 'TTFMAKE_SUFFIX' ) && '.min' === TTFMAKE_SUFFIX ) { wp_enqueue_script( 'ttfmake-cycle2', get_template_directory_uri() . '/js/libs/cycle2/jquery.cycle2' . TTFMAKE_SUFFIX . '.js', $script_dependencies, TTFMAKE_VERSION, true ); } else { // Core script wp_enqueue_script( 'ttfmake-cycle2', get_template_directory_uri() . '/js/libs/cycle2/jquery.cycle2.js', $script_dependencies, '2.1.3', true ); // Vertical centering wp_enqueue_script( 'ttfmake-cycle2-center', get_template_directory_uri() . '/js/libs/cycle2/jquery.cycle2.center.js', 'ttfmake-cycle2', '20140121', true ); // Swipe support wp_enqueue_script( 'ttfmake-cycle2-swipe', get_template_directory_uri() . '/js/libs/cycle2/jquery.cycle2.swipe.js', 'ttfmake-cycle2', '20121120', true ); } } endif; if ( ! function_exists( 'ttfmake_head_late' ) ) : /** * Add additional items to the end of the wp_head section of the document head. * * @since 1.0.0. * * @return void */ function ttfmake_head_late() { ?>