> <?php bloginfo('name'); ?> <?php wp_title(); ?> '; } } // add facebook thumbnail to this page $thumbnail_id = get_post_thumbnail_id(); if( !empty($thumbnail_id) ){ $thumbnail = wp_get_attachment_image_src( $thumbnail_id , '150x150' ); echo ''; } // start calling header script wp_head(); ?> > '; echo '' . $alt_text . ''; echo ''; } } ?>
'; echo '
'; wp_nav_menu( array('container' => '', 'menu_class'=> 'top-menu', 'theme_location' => 'top_menu' ) ); echo '
'; echo '
'; if( $gdl_is_responsive ){ echo '
'; dropdown_menu( array('dropdown_title' => '-- Top Menu --', 'indent_string' => '- ', 'indent_after' => '', 'theme_location'=>'top_menu') ); echo '
'; } echo '
'; } echo '
'; if( get_option(THEME_SHORT_NAME.'_enable_top_search', 'enable') == 'enable' ){ echo '
'; ?>
'; } // Get Social Icons $gdl_social_icon = array( 'deviantart'=> array('name'=>THEME_SHORT_NAME.'_deviantart', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/deviantart.png'), 'digg'=> array('name'=>THEME_SHORT_NAME.'_digg', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/digg.png'), 'facebook' => array('name'=>THEME_SHORT_NAME.'_facebook', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/facebook.png'), 'flickr' => array('name'=>THEME_SHORT_NAME.'_flickr', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/flickr.png'), 'lastfm'=> array('name'=>THEME_SHORT_NAME.'_lastfm', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/lastfm.png'), 'linkedin' => array('name'=>THEME_SHORT_NAME.'_linkedin', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/linkedin.png'), 'picasa'=> array('name'=>THEME_SHORT_NAME.'_picasa', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/picasa.png'), 'rss'=> array('name'=>THEME_SHORT_NAME.'_rss', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/rss.png'), 'stumble-upon'=> array('name'=>THEME_SHORT_NAME.'_stumble_upon', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/stumble-upon.png'), 'tumblr'=> array('name'=>THEME_SHORT_NAME.'_tumblr', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/tumblr.png'), 'twitter' => array('name'=>THEME_SHORT_NAME.'_twitter', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/twitter.png'), 'vimeo' => array('name'=>THEME_SHORT_NAME.'_vimeo', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/vimeo.png'), 'youtube' => array('name'=>THEME_SHORT_NAME.'_youtube', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/youtube.png'), 'google_plus' => array('name'=>THEME_SHORT_NAME.'_google_plus', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/google-plus.png'), 'email' => array('name'=>THEME_SHORT_NAME.'_email', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/email.png'), 'pinterest' => array('name'=>THEME_SHORT_NAME.'_pinterest', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/pinterest.png') ); echo ''; // social wrapper $top_right_text = get_option(THEME_SHORT_NAME.'_top_navigation_right'); if( !empty($top_right_text) ){ echo '
'; echo do_shortcode( __( $top_right_text , 'gdl_front_end') ); echo '
'; } echo '
'; // top navigation right ?>
' . $alt_text . ''; }else{ echo '' . $alt_text . ''; } ?>
'; echo ''; echo '' . $alt_text . ''; echo ''; echo '
'; } $banner_script = get_option(THEME_SHORT_NAME.'_header_banner_script'); if( !empty($banner_script) ){ echo '
' . $banner_script . '
'; } ?>
__('-- Main Menu --', 'gdl_front_end'), 'indent_string' => '- ', 'indent_after' => '','container' => 'div', 'container_class' => 'responsive-menu-wrapper', 'theme_location'=>'main_menu') ); echo '
'; } // main menu echo ''; // navigation-wrapper // Post ticker global $gdl_top_sliding; if( $gdl_top_sliding ){ $num_fetch = get_option(THEME_SHORT_NAME.'_top_sliding_num_fetch', 5); $category = get_option(THEME_SHORT_NAME.'_top_sliding_category', 'All'); if( $category == 'All' ) $category = ''; echo '
'; echo '
' . __('BREAKING NEWS', 'gdl_front_end') . '
'; echo '
'; echo '
'; query_posts(array('category_name'=>$category, 'posts_per_page'=>$num_fetch)); if( have_posts() ){ while( have_posts() ){ the_post(); echo ''; } } echo '
'; // marquee echo '
'; echo '
'; // marquee-wrapper echo '
'; // header-top-marquee wp_reset_query(); } ?>
ID, 'page-option-caption', true); print_page_header(get_the_title(), $page_caption); }else if ( $gdl_top_slider_type == "Post Slider" ){ $category = get_post_meta($post->ID, 'page-option-post-slider-category', true); $num_fetch = get_post_meta($post->ID, 'page-option-post-slider-num-fetch', true); $width = get_post_meta($post->ID, 'page-option-post-slider-width', true); $height = get_post_meta($post->ID, 'page-option-post-slider-height', true); echo '
'; echo '
'; print_top_post_slider_item( $category, $num_fetch, $width, $height ); echo '
'; echo '
'; echo '
'; echo '
'; }else if ( $gdl_top_slider_type != "None"){ echo '
'; echo '
'; $slider_xml = "" . create_xml_tag('size', 'full-width'); $slider_xml = $slider_xml . create_xml_tag('slider-type', $gdl_top_slider_type); $slider_xml = $slider_xml . $gdl_top_slider_xml; $slider_xml = $slider_xml . ""; $slider_xml_dom = new DOMDocument(); $slider_xml_dom->loadXML($slider_xml); print_slider_item($slider_xml_dom->documentElement); echo '
'; echo '
'; echo '
'; echo '
'; } }else if( is_single() ){ $current_page_style = get_option(THEME_SHORT_NAME.'_use_portfolio_as', 'portfolio style'); if( $post->post_type == 'portfolio' && $current_page_style == 'portfolio style' ){ $single_title = get_the_title(); $single_caption = get_post_meta( $post->ID, "post-option-blog-header-caption", true); print_page_header($single_title, $single_caption); } }else if( is_404() ){ global $gdl_admin_translator; if( $gdl_admin_translator == 'enable' ){ $translator_404_title = get_option(THEME_SHORT_NAME.'_404_title', 'Page Not Found'); }else{ $translator_404_title = __('Page Not Found','gdl_front_end'); } print_page_header($translator_404_title); }else if( is_search() ){ global $gdl_admin_translator; if( $gdl_admin_translator == 'enable' ){ $title = get_option(THEME_SHORT_NAME.'_search_header_title', 'Search Results'); }else{ $title = __('Search Results', 'gdl_front_end'); } $caption = get_search_query(); print_page_header($title, $caption); }else if( is_archive() ){ if( is_category() || is_tax('portfolio-category') || is_tax('product_cat') ){ $title = __('Category','gdl_front_end'); $caption = single_cat_title('', false); }else if( is_tag() || is_tax('portfolio-tag') || is_tax('product_tag') ){ $title = __('Tag','gdl_front_end'); $caption = single_cat_title('', false); }else if( is_day() ){ $title = __('Day','gdl_front_end'); $caption = get_the_date('F j, Y'); }else if( is_month() ){ $title = __('Month','gdl_front_end'); $caption = get_the_date('F Y'); }else if( is_year() ){ $title = __('Year','gdl_front_end'); $caption = get_the_date('Y'); }else if( is_author() ){ $title = __('By','gdl_front_end'); $author_id = get_query_var('author'); $author = get_user_by('id', $author_id); $caption = $author->display_name; }else{ $title = __('Shop','gdl_front_end'); } print_page_header($title, $caption); } ?>