__( 'Top primary menu', 'arebee' ), 'secondary' => __( 'Secondary in footer', 'arebee' ), 'tertiary' => __( 'Tertiary for logged in users', 'arebee' ), ) ); //Adding Theme Logo //https://codex.wordpress.org/Theme_Logo add_theme_support( 'custom-logo', array( 'height' => 180, 'width' => 180, 'flex-height' => true, //'header-text' => array( 'site-title', 'site-description' ), ) ); //Custom header is an image that is chosen as the representative image in the theme top header section. //http://codex.wordpress.org/Custom_Headers $headerdefaults = array( 'default-image' => get_template_directory_uri() . '/images/headers/blueprints.jpg', 'width' => 940, 'height' => 198, 'flex-height' => false, 'flex-width' => false, 'uploads' => true, 'random-default' => false, 'header-text' => true, //Header Text Modification 'default-text-color' => '#000000', //Header Text Color 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $headerdefaults ); set_post_thumbnail_size( $headerdefaults['width'], $headerdefaults['height'], true ); // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( array( 'blueflower' => array( 'url' => '%s/images/headers/blueflower.jpg', 'thumbnail_url' => '%s/images/headers/blueflower-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Blue Flower', 'arebee' ) ), 'flower' => array( 'url' => '%s/images/headers/flower.jpg', 'thumbnail_url' => '%s/images/headers/flower-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Flower', 'arebee' ) ), 'raindrops' => array( 'url' => '%s/images/headers/raindrops.jpg', 'thumbnail_url' => '%s/images/headers/raindrops-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Rain Drops', 'arebee' ) ), 'pond' => array( 'url' => '%s/images/headers/pond.jpg', 'thumbnail_url' => '%s/images/headers/ponds-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Pond', 'arebee' ) ), 'bahamasresort' => array( 'url' => '%s/images/headers/bahamasresort.jpg', 'thumbnail_url' => '%s/images/headers/bahamasresort-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Bahamas Resort', 'arebee' ) ), 'atlanticsunset' => array( 'url' => '%s/images/headers/atlanticsunset.jpg', 'thumbnail_url' => '%s/images/headers/atlanticsunset-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Atlantic Sunset', 'arebee' ) ), 'pond' => array( 'url' => '%s/images/headers/pond.jpg', 'thumbnail_url' => '%s/images/headers/pond-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Pond', 'arebee' ) ) ) ); //Custom Backgrounds is a theme feature that provides for customization of the background color and image. //http://codex.wordpress.org/Custom_Backgrounds $backgrounddefaults = array( 'default-color' => '#474747', //Background Color 'default-image' => '', 'default-repeat' => '', 'default-position-x' => '', 'default-attachment' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_theme_support( 'custom-background', $backgrounddefaults ); } add_action( 'after_setup_theme', 'arebee_setup' ); /**************************************** * Enqueue scripts and styles ****************************************/ function arebee_enqueue_style() { // Load our main stylesheet. wp_enqueue_style( 'arebee-style', get_stylesheet_uri() ); wp_enqueue_style( 'arebee-menu', esc_url( get_template_directory_uri() ) . '/css/menu.css', false ); wp_enqueue_style( 'arebee-advanced', esc_url( get_template_directory_uri() ) . '/css/advanced.css', false ); } function arebee_enqueue_script() { /* * We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_script( 'arebee-copypaste', esc_url( get_template_directory_uri() ) . '/js/copypaste.js', false ); } add_action( 'wp_enqueue_scripts', 'arebee_enqueue_style' ); add_action( 'wp_enqueue_scripts', 'arebee_enqueue_script' ); /**************************************** * Includes ****************************************/ require get_template_directory() . '/inc/customizer.php'; /**************************************** * Wordpress Title ****************************************/ function arebee_wp_title( $title ) { if( empty( $title ) && ( is_home() || is_front_page() ) ) { return ( bloginfo('name') ); } else { return ( bloginfo('name') . ' | ' . get_the_title() ); } return $title; } add_filter( 'wp_title', 'arebee_wp_title' ); /**************************************** * Wordpress Search ****************************************/ if ( ! function_exists( 'arebee_postinfo' ) ) : function arebee_postinfo() { echo '
'; // Translators: 1 is the post author, 2 is the post date. printf( __( 'Written by %1$s on %2$s', 'arebee' ), get_the_author(), get_the_date() ); echo '
'; } endif; /**************************************** * Wordpress Comments ****************************************/ if ( ! function_exists( 'arebee_comment' ) ) { function arebee_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) { case '' : echo ''; _e( 'Pingback:','arebee' ); comment_author_link(); edit_comment_link( __('(Edit)', 'arebee'), ' ' ); echo '
'; break; } } } /**************************************** * Wordpress Single Post ****************************************/ if ( ! function_exists( 'arebee_loop' ) ) : function arebee_loop() { echo ''; // Translators: 1 is the post author, 2 is the post date. printf( __( 'Written by %1$s on %2$s', 'arebee' ), get_the_author(), get_the_date() ); echo '
'; while ( have_posts() ) { the_post(); if ( is_archive() || is_search() ) { the_excerpt(); } else { the_content( __( '','arebee') ); wp_link_pages( array( 'before' => '