/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);
Feed plugin for Flextype supports Atom 1.0, RSS and JSON feed types and allows you to generate feeds for entries.
PHP Mailer plugin for Flextype.
Section plugin provides a basic way to work with content sections.
Page View Counter plugin will help you to know how many readers of every page on your website.
Form Admin Plugin to manage user forms in Flextype Admin Panel.
PHP Embed plugin allows you to embed php code into your page.