function presscore_single_post_navigation_bar()
 {
     if (!(is_single() && presscore_is_content_visible())) {
         return;
     }
     $post_meta = presscore_get_posted_on();
     $post_navigation = presscore_post_navigation();
     if ($post_meta || $post_navigation) {
         $article_top_bar_html_class = 'article-top-bar ' . presscore_get_page_title_bg_mode_html_class();
         if (!$post_meta) {
             $article_top_bar_html_class .= ' post-meta-disabled';
         }
         echo '<div class="' . esc_attr($article_top_bar_html_class) . '"><div class="wf-wrap"><div class="wf-container-top">';
         echo $post_meta;
         echo '<div class="navigation-inner"><div class="single-navigation-wrap">' . $post_navigation . '</div></div>';
         echo '</div></div></div>';
     }
 }
}
?>

	<div class="blog-content wf-td">
		<h2 class="entry-title">
			<a href="javascript: void(0);" class="trigger-first-post-pp" title="<?php 
echo esc_attr(the_title_attribute('echo=0'));
?>
" rel="bookmark"><?php 
the_title();
?>
</a>
		</h2>

		<?php 
echo presscore_get_posted_on();
?>

		<?php 
the_excerpt();
?>

		<a href="javascript: void(0);" class="trigger-first-post-pp" rel="nofollow"><?php 
_ex('Details', 'details button', 'the7mk2');
?>
</a>

		<?php 
echo presscore_post_edit_link();
?>
	</div>
 /**
  * @return string
  */
 function presscore_mod_albums_get_preview_decription()
 {
     $config = presscore_config();
     $html = '';
     if ($config->get('show_titles') && ($title = get_the_title())) {
         $title_class = '';
         if ('lightbox' == $config->get('post.open_as')) {
             $title_class = 'dt-trigger-first-mfp';
         }
         $html .= sprintf('<h3 class="entry-title"><a href="%s" title="%s" class="%s">%s</a></h3>', get_permalink(), the_title_attribute('echo=0'), $title_class, $title);
     }
     if ($config->get('show_excerpts')) {
         $html .= apply_filters('the_excerpt', get_the_excerpt());
     }
     $html .= presscore_get_posted_on();
     if ($html) {
         $html .= presscore_post_edit_link();
     }
     return $html;
 }
 /**
  * @return string
  */
 function presscore_project_get_preview_content()
 {
     $config = presscore_config();
     $html = '';
     // title
     if ($config->get('show_titles') && ($title = get_the_title())) {
         $html .= sprintf('<h3 class="entry-title"><a href="%s" title="%s" rel="bookmark">%s</a></h3>', get_permalink(), the_title_attribute('echo=0'), $title);
     }
     // description
     if ($config->get('show_excerpts')) {
         $html .= apply_filters('the_excerpt', get_the_excerpt());
     }
     // details button
     if ($config->get('post.preview.buttons.details.enabled')) {
         $html .= '<p>' . presscore_post_details_link() . '</p>';
     }
     // post meta
     $html .= presscore_get_posted_on();
     // edit link
     if ($html) {
         $html .= presscore_post_edit_link();
     }
     return $html;
 }
 /**
  * Get related posts attachments data slightly modified.
  *
  * @return array Attachments data.
  */
 function presscore_get_related_posts($options = array())
 {
     $default_options = array('select' => 'only', 'exclude_current' => true, 'args' => array());
     $options = wp_parse_args($options, $default_options);
     // exclude current post if in the loop
     if (in_the_loop() && $options['exclude_current']) {
         $options['args'] = array_merge($options['args'], array('post__not_in' => array(get_the_ID())));
     }
     $posts = presscore_get_posts_in_categories($options);
     $attachments_ids = array();
     $attachments_data_override = array();
     $posts_data = array();
     // get posts attachments id
     if ($posts->have_posts()) {
         global $post;
         $post_back = $post;
         while ($posts->have_posts()) {
             $posts->the_post();
             // thumbnail or first attachment id
             if (has_post_thumbnail()) {
                 $attachment_id = get_post_thumbnail_id();
             } else {
                 if ($attachment = presscore_get_first_image()) {
                     $attachment_id = $attachment->ID;
                 } else {
                     $attachment_id = 0;
                 }
             }
             $post_data = array();
             /////////////////////////
             // attachment data //
             /////////////////////////
             $post_data['full'] = $post_data['width'] = $post_data['height'] = '';
             $meta = wp_get_attachment_image_src($attachment_id, 'full');
             if (!empty($meta)) {
                 $post_data['full'] = esc_url($meta[0]);
                 $post_data['width'] = absint($meta[1]);
                 $post_data['height'] = absint($meta[2]);
             }
             $post_data['thumbnail'] = wp_get_attachment_image_src($attachment_id, 'thumbnail');
             $post_data['caption'] = '';
             $post_data['video_url'] = esc_url(get_post_meta($attachment_id, 'dt-video-url', true));
             $post_data['mime_type_full'] = get_post_mime_type($attachment_id);
             $post_data['mime_type'] = dt_get_short_post_myme_type($attachment_id);
             $post_data['ID'] = $attachment_id;
             $post_data['image_attachment_data'] = array('caption' => $post_data['caption'], 'description' => wp_kses_post(get_post_field('post_content', $attachment_id)), 'title' => presscore_imagee_title_is_hidden($attachment_id) ? '' : get_the_title($attachment_id), 'permalink' => get_permalink($attachment_id), 'video_url' => $post_data['video_url'], 'ID' => $attachment_id);
             ///////////////////
             // post data //
             ///////////////////
             $post_data['title'] = get_the_title();
             $post_data['permalink'] = get_permalink();
             $post_data['link'] = presscore_get_project_link('project-link');
             $post_data['description'] = get_the_excerpt();
             $post_data['alt'] = get_the_title();
             $post_data['parent_id'] = get_the_ID();
             $post_data['meta'] = presscore_get_posted_on();
             // save data
             $posts_data[] = $post_data;
         }
         $post = $post_back;
         setup_postdata($post);
     }
     return $posts_data;
 }