/**
  * Return fancy date html
  *
  * @since 1.0.0
  * 
  * @param  string $new_class Additional class
  * @return string            Fancy date html
  */
 function presscore_get_post_fancy_date($new_class = '')
 {
     if (!in_the_loop()) {
         return '';
     }
     $class = 'fancy-date' . ($new_class ? ' ' . trim($new_class) : '');
     $href = 'javascript: void(0);';
     if ('post' == get_post_type()) {
         // remove link if in date archive
         if (!(is_day() && is_month() && is_year())) {
             $href = presscore_get_post_day_link();
         }
     }
     return sprintf('<div class="%s"><a title="%s" href="%s" rel="nofollow"><span class="entry-month">%s</span><span class="entry-date updated">%s</span><span class="entry-year">%s</span></a></div>', esc_attr($class), esc_attr(get_the_time()), $href, esc_attr(get_the_date('M')), esc_html(get_the_date('j')), esc_html(get_the_date('Y')));
 }
 /**
  * Get post date.
  */
 function presscore_get_post_data($html = '')
 {
     $href = 'javascript: void(0);';
     if ('post' == get_post_type()) {
         // remove link if in date archive
         if (!(is_day() && is_month() && is_year())) {
             $href = presscore_get_post_day_link();
         }
     }
     $html .= sprintf('<a href="%s" title="%s" class="data-link" rel="bookmark"><time class="entry-date updated" datetime="%s">%s</time></a>', $href, esc_attr(get_the_time()), esc_attr(get_the_date('c')), esc_html(get_the_date()));
     return $html;
 }