function wpi_relative_date($timestamp) { echo wpi_get_relative_date($timestamp); }
/** * Post summary, active at single & page */ function wpi_widget_post_summary() { global $post, $commentdata; $section = is_at(); $name = 'about-articles'; $title = $section == 'single' ? 'About this articles' : 'About'; wpi_widget_start($title, $name); $title = apply_filters('the_title', $post->post_title); $link = _t('a', WPI_BLOG_NAME, array('href' => apply_filters(wpiFilter::FILTER_LINKS, WPI_URL_SLASHIT), 'title' => WPI_BLOG_NAME, 'rel' => 'home')); $hdate = apply_filters('postdate', $post->post_date); $date = _t('span', get_the_time(__('l M jS, Y', WPI_META)), array('class' => 'published-date', 'title' => $hdate)); $output = sprintf(__('<big>Y</big>ou’re currently reading “ <strong class="fw-">%1s</strong>”. This entry appeared in %2s on %3s.', WPI_META), $title, $link, $date); t('p', $output, array('class' => 'meta-title')); ?> <p class="meta-published-date"> It was last updated at <span class="date"><?php the_modified_time('H:i a'); ?> </span> on <span class="date"><?php the_modified_time('M jS o'); ?> </span> approximately <sup>≅</sup> <span class="last-updated hdate"><?php echo wpi_get_relative_date($post->post_modified); ?> </span>.</p> <?php do_action('widget_single_summary_after'); wpi_widget_end(); }