__( 'Primary Menu', 'fictive' ), 'social' => __( 'Social Links', 'fictive' ), ) ); // Enable support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'audio', 'gallery', 'status' ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'fictive_custom_background_args', array( 'default-color' => 'efedea', ) ) ); // Enable support for HTML5 markup. add_theme_support( 'html5', array( 'comment-list', 'search-form', 'comment-form', 'gallery', ) ); /** * Add support for Eventbrite. * See: https://wordpress.org/plugins/eventbrite-api/ */ add_theme_support( 'eventbrite' ); } endif; // fictive_setup add_action( 'after_setup_theme', 'fictive_setup' ); /** * Register widgetized area and update sidebar with default widgets. */ function fictive_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'fictive' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'fictive_widgets_init' ); /** * Enqueue scripts and styles. */ function fictive_scripts() { wp_enqueue_style( 'fictive-style', get_stylesheet_uri() ); wp_enqueue_style( 'fictive-open-sans' ); wp_enqueue_style( 'fictive-bitter' ); wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', '3.4.1' ); wp_enqueue_script( 'fictive-script', get_template_directory_uri() . '/js/fictive.js', array( 'jquery' ), '20140403', true ); wp_enqueue_script( 'fictive-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'fictive_scripts' ); function fictive_sidebar_position() { if ( 'fixed' == get_theme_mod( 'fictive_sidebar', 'scroll' ) ) : ?>