/project/plugins/reading-time
/project/plugins/reading-time
Key | Value | Description |
---|---|---|
enabled | true | true or false to disable the plugin |
priority | 100 | Reading Time plugin priority |
Function readingTime()
in namespace Flextype\Plugin\ReadingTime
/**
* Get reading time
*
* @return string
*/
function readingTime(string $content, array $options = []): string
Display reading time with custom translates in the twig templates
{{ readingTime(entry.content, {
'minute': 'Minute',
'minutes': 'Minutes',
'second': 'Second',
'seconds': 'Seconds'
}) }}
Display reading time with custom translates and format in the twig templates
{{ readingTime(entry.content, {
'minute': 'Minute',
'minutes': 'Minutes',
'second': 'Second',
'seconds': 'Seconds',
'format': '{minutes_count} {minutes_label} – {seconds_count} {seconds_label}'
}) }}
Display reading time with custom translates and format that alternative format that hides the minute label in the twig templates
{{ readingTime(entry.content, {
'minute': 'Minute',
'minutes': 'Minutes',
'second': 'Second',
'seconds': 'Seconds',
'format': '{minutes_count} {minutes_label} – {seconds_count} {seconds_label}'
}) }}
Display page view counter in the php
echo Flextype\Plugin\ReadingTime\readingTime($content, $options);
Twig plugin to present Twig template engine for Flextype.
Icon plugin to present most popular icons sets in SVG format for Flextype.
Simple redirect plugin for Flextype.
Access Control List plugin for Flextype.
Data Guard plugin protects your website from the content copying.