post_date );
$interval = date_diff( $now, $date );
$count = wp_count_posts( 'sp_event' );
$scheduled_count = $count->future;
$published_count = $count->publish;
?>
-
%s until next event', 'sportspress' ), $interval->d . ' ' . __( 'days', 'sportspress' ) . ' ' . sprintf( '%02s:%02s:%02s', $interval->h, $interval->i, $interval->s ) ); ?>
(post_title; ?>)
-
%s event scheduled', '%s events scheduled', $scheduled_count, 'sportspress' ), $scheduled_count ); ?>
-
%s event published', '%s events published', $published_count, 'sportspress' ), $published_count ); ?>
get_results( "SELECT *, SUBSTRING(comment_content,1,100) AS comment_excerpt
FROM $wpdb->comments
LEFT JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID)
WHERE comment_approved = '1'
AND comment_type = ''
AND post_password = ''
AND post_type = 'product'
ORDER BY comment_date_gmt DESC
LIMIT 8" );
if ( $comments ) {
echo '';
} else {
echo '' . __( 'There are no product reviews yet.', 'sportspress' ) . '
';
}
}
}
endif;
return new SP_Admin_Dashboard();