Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/* Change Post Date Format (Ago) */ function jnews_ago_time( $post = null ) { $publish_date = human_time_diff( get_post_timestamp($post, 'date'), current_time( 'timestamp' ) ); $modified_date = human_time_diff( get_post_timestamp($post, 'modified'), current_time( 'timestamp' ) ); if ( get_theme_mod( 'jnews_global_post_date', 'modified' ) === 'publish' ) { return esc_html( sprintf( jnews_return_translation( '%s ago', 'jnews', 'sago' ), $publish_date ) ); } elseif ( get_theme_mod( 'jnews_global_post_date', 'modified' ) === 'both' ) { return esc_html( sprintf( jnews_return_translation( 'Published %s ago, Modified %s ago', 'jnews', 'sagoboth' ), $publish_date, $modified_date ) ); } elseif ( get_theme_mod( 'jnews_global_post_date', 'modified' ) === 'modified' ) { return esc_html( sprintf( jnews_return_translation( '%s ago', 'jnews', 'sago' ), $modified_date ) ); } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)