• Pat Reading Time
  • London • NYC • Paris
A TXP Network Plugin
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
FR

pat reading time

246 WORDS. TIME TO READ: 1 MN, 25 S.

Add a "time to read" indicator for your articles on your Textpattern CMS driven website.

Version 0.2 Download

Two tags available:

Tag

<txp:pat_reading_time text="" title="" plural="" before="" charlist="" wraptag="" break="" class="" />

Attributes

  • text (string): set which content to apply for the result, among body or excerpt. Default: body.
  • title (string): set the text before the result. Default: "Word: ".
  • plural (string): plural character for "word". Default: "s".
  • before (boolean): position with the count for the content of the "title" attribute (among before: 1 or after: 0). Default: "1".
  • charlist (string): list of additional characters - without any commas - to include into the count (e.g. "!\"'"). Default: empty.
  • wraptag (string): HTML container tag. Default: p.
  • break (string): HTML break tag. Default: br.
  • class (string): HTML class attribute. Default: "word-count".

Tag

<txp:pat_estimate_time_reading text="" title="" short="" minute="" second="" plural="" wraptag="" break="" class="" />

Attributes

  • text (string): set which content to apply for the result, among body or excerpt. Default: body.
  • title (string): set the text before the result. Default: "Time to read: ".
  • short (boolean): display only minutes time. Default: "0" (display full estimation time with seconds).
  • wraptag (string): HTML container tag. Default: p.
  • break (string): HTML breaking tag. Default: br.
  • minute (integer): word for the "minute" time (i18n support). Default: "minute".
  • second (integer): word for the "second" time (i18n support). Default: "second".
  • plural (string): plural character for "minute" & "second". Default: "s".
  • class (string): HTML class attribute. Default: "time-reading".
  • frequence (integer): the number of words read by minutes (average). Default: 200.