__( 'Primary Menu', 'brussels' ), ) ); // Enable support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'brussels_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; // brussels_setup add_action( 'after_setup_theme', 'brussels_setup' ); /** * Register widgetized area and update sidebar with default widgets. */ function brussels_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'brussels' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'brussels_widgets_init' ); /** * Enqueue scripts and styles. */ function brussels_scripts() { wp_enqueue_style( 'brussels-style', get_stylesheet_uri() ); wp_enqueue_script( 'filterable', get_template_directory_uri() . '/js/filterable.js', array( 'jquery' ) ); wp_enqueue_script( 'brussels-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20140404', false ); wp_enqueue_script( 'brussels-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', 'brussels_scripts' ); /** * Implement the Custom Header feature. */ //require get_template_directory() . '/inc/custom-header.php'; /* Font options */ add_action( 'admin_menu', 'brussels_fonts' ); function brussels_fonts() { add_theme_page( 'Fonts', 'Fonts', 'edit_theme_options', 'fonts', 'brussels_add_fonts' ); } function brussels_add_fonts() { ?>

Fonts

array( 'name' => 'Arial', 'font' => '', 'css' => "font-family: Arial, sans-serif;" ), 'Port Lligat Slab' => array( 'name' => 'Port Lligat Slab', 'font' => ' @import url(http://fonts.googleapis.com/css?family=Port+Lligat+Slab);', 'css' => " font-family: 'Port Lligat Slab', serif;" ), 'Roboto' => array( 'name' => 'Roboto', 'font' => '@import url(http://fonts.googleapis.com/css?family=Roboto);', 'css' => "font-family: 'Roboto', sans-serif;" ), 'Happy Monkey' => array( 'name' => 'Happy Monkey ', 'font' => '@import url(http://fonts.googleapis.com/css?family=Happy+Monkey);', 'css' => "font-family: 'Happy Monkey', cursive;" ), 'Crushed' => array( 'name' => 'Crushed', 'font' => '@import url(http://fonts.googleapis.com/css?family=Crushed);', 'css' => " font-family: 'Crushed', cursive;" ), 'New Rocker ' => array( 'name' => 'New Rocker ', 'font' => '@import url(http://fonts.googleapis.com/css?family=New+Rocker);', 'css' => "font-family: 'New Rocker', cursive;" ), 'Rosario' => array( 'name' => 'Rosario', 'font' => '@import url(http://fonts.googleapis.com/css?family=Rosario);', 'css' => "font-family: 'Rosario', sans-serif;" ) ); return apply_filters( 'brussels_get_fonts', $fonts ); } add_action( 'wp_head', 'brussels_font_head' ); function brussels_font_head() { $options = (array) get_option( 'fonts' ); $fonts = brussels_get_fonts(); $body_key = 'arial'; if ( isset( $options['body-font'] ) ) $body_key = $options['body-font']; if ( isset( $fonts[ $body_key ] ) ) { $body_font = $fonts[ $body_key ]; echo ''; } } if ( ! function_exists( 'brussels_pagination' ) ) : function brussels_pagination() { global $wp_query; $big = 999999999; // need an unlikely integer echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages ) ); } endif; //Add 3 widgets in footer register_sidebar( array( 'name' => __( 'Footer Area One', 'toolbox' ), 'id' => 'sidebar-3', 'description' => __( 'An optional widget area for your site footer', 'toolbox' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Area Two', 'toolbox' ), 'id' => 'sidebar-4', 'description' => __( 'An optional widget area for your site footer', 'toolbox' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Area Three', 'toolbox' ), 'id' => 'sidebar-5', 'description' => __( 'An optional widget area for your site footer', 'toolbox' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; //Include shortcode file require( get_template_directory() . '/inc/shortcode.php' ); // Enqueue Scripts/Styles for our Lightbox function brussels_add_lightbox() { wp_enqueue_script( 'fancybox', get_template_directory_uri() . '/js/jquery.fancybox.pack.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'lightbox', get_template_directory_uri() . '/js/lightbox.js', array( 'fancybox' ), false, true ); wp_enqueue_style( 'lightbox-style', get_template_directory_uri() . '/css/jquery.fancybox.css' ); } add_action( 'wp_enqueue_scripts', 'brussels_add_lightbox' );