inc/post-tags.php¶
-
largo_time_diff
()¶ 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
Parameters: - $modified (int) – the Unix timestamp for the modified date
Returns: string $TML for the either “x hours ago” or the submitted date, formatted
Since: 0.5.5
See: See:
-
largo_trim_sentences
()¶ Attempt to trim input at sentence breaks
Parameters: - $tring ($input) –
- $umber ($sentences) – of sentences to trim to
- $cho ($echo) – the string or return it (default: return)
Returns: $output $rimmed string
Since: 0.3
-
largo_maybe_top_term
()¶ 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.
Since: 0.5.5
Uses: largo_top_term
Parameters: - $args (Array) – the same argument array that would be passed to largo_top_term()
-
largo_edited_date
()¶ Display the last-edited date for this post
Since: 0.5.5 Link: https://github.com/INN/Largo/issues/1341
-
largo_after_hero_largo_edited_date
()¶ Output largo_edited_date() on the single post template
This is disabled in Largo by default. To add it to your child theme, paste in this:
#add_action( ‘largo_after_hero’, ‘largo_after_hero_largo_edited_date’, 5 );Since: 0.5.5 Action: largo_after_hero Uses: largo_edited_date Link: https://github.com/INN/Largo/issues/1341