__('-- Main Menu --', 'gdl_front_end'), 'indent_string' => '- ', 'indent_after' => '','container' => 'div', 'container_class' => 'responsive-menu-wrapper', 'theme_location'=>'main_menu') );
echo '
';
}
// main menu
echo '
';
if( has_nav_menu('main_menu') ){
echo '
';
wp_nav_menu( array('container' => '', 'menu_class'=> 'sf-menu', 'theme_location' => 'main_menu' ) );
echo '
';
echo '
';
}
if( get_option(THEME_SHORT_NAME.'_enable_random_post', 'enable') == 'enable' ){
$random_post = get_posts(array('orderby'=>'rand', 'posts_per_page'=>'1' ));
if( !empty( $random_post ) ){
echo '
';
echo '
';
echo '';
echo '';
echo '
';
}
}
echo '
';
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 ''; // 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);
}
?>