ID,'post-option-sidebar-template',true); if( empty($sidebar) ){ global $default_post_sidebar; $sidebar = $default_post_sidebar; } $sidebar_reverse = ($sidebar == 'both-sidebar-reverse' || $sidebar == 'left-sidebar' )? 'reverse-sidebar': 'normal-sidebar'; $sidebar_array = gdl_get_sidebar_size( $sidebar ); // Translator words if( $gdl_admin_translator == 'enable' ){ $translator_related_posts = get_option(THEME_SHORT_NAME.'_translator_related_posts', 'Related Posts'); $translator_about_author = get_option(THEME_SHORT_NAME.'_translator_about_author', 'About the Author'); }else{ $translator_related_posts = __('Related Posts','gdl_front_end'); $translator_about_author = __('About the Author','gdl_front_end'); } ?>
>
ID , "post-option-choose-left-sidebar", true); $right_sidebar = get_post_meta( $post->ID , "post-option-choose-right-sidebar", true); if( empty( $left_sidebar )){ $left_sidebar = $default_post_left_sidebar; } if( empty( $right_sidebar )){ $right_sidebar = $default_post_right_sidebar; } global $blog_single_size, $sidebar_type; $item_size = $blog_single_size[$sidebar_type]; // starting the content echo '
'; echo '
'; echo '
'; echo '
'; if ( have_posts() ){ while (have_posts()){ the_post(); echo '
'; echo '
'; // blog thumbnail print_single_blog_thumbnail( get_the_ID(), $item_size ); // blog title echo '

' . get_the_title() . '

'; // blog information echo '
'; echo '
'; echo '' . __('Posted On' , 'gdl_front_end') . ' '; echo ''; echo get_the_time($gdl_date_format); echo ''; echo '
'; echo '
'; echo '' . __('By :' , 'gdl_front_end') . ' '; echo the_author_posts_link(); echo '
'; echo '
'; comments_popup_link( __('Comment: 0','gdl_front_end'), __('Comment: 1','gdl_front_end'), __('Comments: %','gdl_front_end'), '', __('Comment: Off','gdl_front_end') ); echo '
'; $tags_opening = '
'; $tags_opening = $tags_opening . '' . __('Tag: ' , 'gdl_front_end') . ' '; $tags_ending = '
'; the_tags( $tags_opening, ', ', $tags_ending ); echo '
'; echo '
'; // blog information // blog content echo '
'; the_content(); wp_link_pages( array( 'before' => '' ) ); echo '
'; echo '
'; echo '
'; // gdl-blog-full // About Author if(get_post_meta($post->ID, 'post-option-author-info-enabled', true) != "No"){ echo "
"; echo "
" . get_avatar( get_the_author_meta('ID'), 90 ) . "
"; echo "
"; echo "
" . $translator_about_author . "
"; echo get_the_author_meta('description'); echo "
"; echo "
"; echo "
"; } // Include Social Shares if(get_post_meta($post->ID, 'post-option-social-enabled', true) != "No"){ include_social_shares(); echo "
"; } // adjacent post echo '
'; previous_post_link( '', '%title', true); next_post_link( '', '%title', true); echo '
'; echo '
'; // print related post if( get_option(THEME_SHORT_NAME.'_gdl_related_post' ,'Yes') == 'Yes' ){ global $blog_div_size_num_class; $blog_size = get_option( THEME_SHORT_NAME.'_gdl_related_post_size' , '1/4') . ' Blog Grid'; $num_fetch = get_option( THEME_SHORT_NAME.'_gdl_related_post_num_fetch' , 4); $item_class = $blog_div_size_num_class[$blog_size]['class']; $item_size = $blog_div_size_num_class[$blog_size][$sidebar_type]; $blog_tags = get_the_terms(get_the_ID(), 'post_tag'); $blog_terms = array(); if( !empty($blog_tags) ){ foreach( $blog_tags as $blog_tag ){ $blog_terms[] = $blog_tag->slug; } $current_post = array(get_the_ID()); $tax_query = array( array('taxonomy'=>'post_tag', 'field'=>'slug', 'terms'=>$blog_terms) ); query_posts(array('tax_query'=>$tax_query, 'posts_per_page'=>$num_fetch, 'post__not_in'=>$current_post)); if( have_posts() ){ echo '
'; echo '

' . $translator_related_posts . '

'; print_blog_grid( $item_class, $item_size, 0, 'No', $blog_size); echo '
'; echo '
'; // gdl-related-post } } wp_reset_query(); } echo '
'; comments_template(); echo '
'; echo '
'; // blog content wrapper } } echo "
"; // end of gdl-page-item get_sidebar('left'); echo '
'; echo "
"; // row echo "
"; // gdl-page-left get_sidebar('right'); echo '
'; echo "
"; // row ?>