ID,'post-option-sidebar-template',true); $sidebar_class = ''; if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar"){ $sidebar_class = "sidebar-included " . $sidebar; }else if( $sidebar == "both-sidebar" ){ $sidebar_class = "both-sidebar-included"; } // Translator words global $gdl_admin_translator; if( $gdl_admin_translator == 'enable' ){ $translator_client = get_option(THEME_SHORT_NAME.'_translator_client', 'Client'); $translator_visit_website = get_option(THEME_SHORT_NAME.'_translator_visit_website', 'Visit Website'); $translator_about_author = get_option(THEME_SHORT_NAME.'_translator_about_author', 'About the Author'); $translator_social_share = get_option(THEME_SHORT_NAME.'_translator_social_shares', 'Social Share'); }else{ $translator_client = __('Client','gdl_front_end'); $translator_visit_website = __('Visit Website','gdl_front_end'); $translator_about_author = __('About the Author','gdl_front_end'); $translator_social_share = __('Social Share','gdl_front_end'); } ?>
ID , "post-option-choose-left-sidebar", true); $right_sidebar = get_post_meta( $post->ID , "post-option-choose-right-sidebar", true); if ( have_posts() ){ while (have_posts()){ the_post(); echo '
'; echo '
'; echo '

'; the_title(); echo '

'; echo '
'; echo get_post_meta($post->ID, 'page-option-page-caption', true); echo '
'; echo '
'; // single-course-header-title echo '
'; echo "
"; echo "
"; echo '
'; // Inside Thumbnail if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){ $item_size = "640x250"; }else if( $sidebar == "both-sidebar" ){ $item_size = "460x180"; }else{ $item_size = "940x375"; } $thumbnail_id = get_post_thumbnail_id(); $thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_size ); $thumbnail_full = wp_get_attachment_image_src( $thumbnail_id , 'full' ); $alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true); if( !empty($thumbnail) ){ echo '
'; echo ''. $alt_text .''; echo '
'; } echo "
"; // Print Course Table global $search_custom_meta; echo ""; echo ""; foreach ( $search_custom_meta as $custom_meta ){ if( !empty($custom_meta['width']) ){ $course_width = ' style="width: ' . $custom_meta['width'] . ';" '; }else{ $course_width = ''; } echo ""; } echo ""; echo ""; foreach ( $search_custom_meta as $custom_meta ){ echo ""; } echo ""; echo "
"; if ( $custom_meta['show-on-table'] == 'Yes' ){ echo $custom_meta['title_show']; } echo "
"; if ( $custom_meta['show-on-table'] == 'Yes' ){ echo get_post_meta($post->ID, $custom_meta['name'], true); } echo "
"; // Single content echo "
"; echo the_content(); echo "
"; // Include Social Shares if(get_post_meta($post->ID, 'post-option-social-enabled', true) == "Yes"){ echo ""; include_social_shares(); echo "
"; } echo "
"; echo "
"; // sixteen-column } } ?>
"; // gdl-page-float-left get_sidebar('right'); ?>