@@ -742,17 +742,32 @@ function search_results(){
* @since 0.1
*
* @param string $update_text
* @param int $time_ago - measured in seconds, default equals one week
*
* @uses do_action
* @uses get_the_modified_time
* @uses get_the_time
* @uses human_time_diff
*
* @internal Used with Post-Format: Status
*/
function status_update( $update_text = 'Updated', $days_ago = 7 ){
function status_update( $update_text = 'Updated', $time_ago = 604800 ){
/** Add empty hook before status update output */
do_action( 'opus_before_status_update' );

if ( $days_ago < human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) )
printf( __( '<div class="opus-status-update">%1$s %2$s ago</div>', 'opusprimus' ), $update_text, human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) );
/** @var int $time_diff - initialize as zero */
$time_diff = 0;
/** Check if the post has been modified and get how long ago that was */
if ( get_the_modified_time( 'U' ) != get_the_time( 'U' ) ) {
$time_diff = get_the_modified_time( 'U' ) - get_the_time( 'U' );
}

/** Compare time difference between modification and actual post */
if ( ( $time_diff > $time_ago ) && ( $time_diff < 31449600 ) ) {
printf( __( '<div class="opus-status-update">%1$s %2$s ago.</div>', 'opusprimus' ), $update_text, human_time_diff( get_the_modified_time( 'U' ), current_time( 'timestamp' ) ) );
} elseif ( $time_diff >= 31449600 ) {
_e( '<div class="opus-status-update">Updated over a year ago.</div>', 'opusprimus' );
}

/** Add empty hook after status update output */
do_action( 'opus_after_status_update' );
@@ -32,8 +32,9 @@

jQuery( document ).ready( function( $ ) {
/** Note: $() will work as an alias for jQuery() inside of this function */
/** Use fit Text to display status update message across post */
$( '.post.format-status div.opus-status-update' ).fitText( 1.25 );
/** Use fitText to display status update message across post */
$( '.post.format-status div.opus-status-update' ).fitText( 1.50 );
$( '.archive.term-post-format-status div.opus-status-update' ).fitText( 1.50 );
/** Use fitVids to make video more responsive */
$( 'div.post-content' ).fitVids();
/** Add a drop shadow to make gallery images pop */
@@ -39,14 +39,18 @@
<div <?php post_class(); ?>>

<?php
$opus_structure->post_byline( array( 'show_mod_author' => true ) );
$opus_structure->status_update();
$opus_structure->post_byline( array(
'show_mod_author' => true,
'anchor' => 'Updated',
'sticky_flag' => 'Breaking News',
) );
$opus_structure->post_title();
if ( ! is_single() ) {
$opus_structure->comments_link();
}
$opus_image->featured_thumbnail();
$opus_structure->post_content();
$opus_structure->status_update();
$opus_nav->opus_link_pages( array(), $preface = __( 'Pages:', 'opusprimus' ) );
$opus_structure->meta_tags();
if ( is_single() ) {