Given a time, if it was less than 24 hours ago return how many hours ago that was, otherwise return the ‘F j, Y’ formatted date
- $modified (int) – the Unix timestamp for the modified date
string $TML for the either “x hours ago” or the submitted date, formatted
Attempt to trim input at sentence breaks
- $tring ($input) –
- $umber ($sentences) – of sentences to trim to
- $cho ($echo) – the string or return it (default: return)
$output $rimmed string
If largo_top_term() would output a term, wrap that in an h5.top-term and output it to the page.
Takes the same argument array as largo_top_term(), and passes that argument array to largo_top_term() with ‘echo’ => False. largo_maybe_top_term() handles the echo decision.
- $args (Array) – the same argument array that would be passed to largo_top_term()
Display the last-edited date for this post
Since: 0.5.5 Link: https://github.com/INN/Largo/issues/1341