__( 'Sidebar', 'ideation' ), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'ideation_widgets_init' ); /** * Enqueue main styles and scripts. */ function ideation_enqueue() { wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_script( 'ideation-style', get_template_directory_uri() . '/js/style.js', array( 'jquery' ), '20120206', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); if ( is_singular() && wp_attachment_is_image( get_the_ID() ) ) wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); } add_action( 'wp_enqueue_scripts', 'ideation_enqueue' ); /** * Register font styles. */ function ideation_register_fonts() { /* translators: Both custom fonts (Abel and Dosis) for Ideation and Intent provide support for latin characters. If your language requires other subset, please translate this too 'off'. Do not translate it into your own language. */ if ( 'off' !== _x( 'on', 'Abel and Dosis fonts: on or off', 'ideation' ) ) { wp_register_style( 'ideation-dosis', "https://fonts.googleapis.com/css?family=Dosis:400,700", array(), '20120521' ); wp_register_style( 'ideation-Abel', "https://fonts.googleapis.com/css?family=Abel:400,700", array(), '20120521' ); } } add_action( 'init', 'ideation_register_fonts' ); /** * Enqueue font styles. */ function ideation_enqueue_fonts() { wp_enqueue_style( 'ideation-Abel' ); wp_enqueue_style( 'ideation-dosis' ); } add_action( 'wp_enqueue_scripts', 'ideation_enqueue_fonts' ); /** * Implement the Custom Header feature */ require( get_template_directory() . '/inc/custom-header.php' ); /** * Gallery sidebar class. */ require( get_template_directory() . '/inc/gallery-sidebar.php' ); /** * Setup the WordPress core custom background feature. * * @since Ideation and Intent 1.0 */ function ideation_register_custom_background() { add_theme_support( 'custom-background', apply_filters( 'ideation_custom_background_args', array( 'default-color' => 'f6f4f2', 'default-image' => get_template_directory_uri() . '/images/background.png', ) ) ); } add_action( 'after_setup_theme', 'ideation_register_custom_background' ); /** * Tweak styles for the Site Title. * * Since we are using two layers of text shadow * for the Site Title it is important to set the * dynamic value for themes that use the custom * background color feature. * * Hooks into the wp_head action. * * @since Ideation and Intent 1.0 */ function ideation_tweak_site_title_styles() { if ( get_background_color() ) : ?>