You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
1.0 KiB

{tikimodule error=$module_params.error title=$tpl_module_title name="reading time" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
<div>
{if ($readingTimeMin < $module_params.minTimeThreshold) && ($module_params.minTimeThreshold neq 'none')} {* If minTimeThreshold has not being reached or neq 'none" *}
{tr}{$module_params.minTimeThresholdText}{/tr}
{elseif ($readingTimeMin > $module_params.maxTimeThreshold) && ($module_params.maxTimeThreshold neq 'none')} {* If maxTimeThreshold has not being reached or neq 'none" *}
{tr}{$module_params.maxTimeThresholdText}{/tr}
{else}
{tr}{$module_params.timePrefixText}{/tr}
{if $module_params.timeMinutesOnly eq 'y'}
{$readingTimeMin}
{else}
{$readingTimeMin}'{$readingTimeSec}
{/if}
{tr}{$module_params.timePostfixText}{/tr}
{/if}
</div>
{/tikimodule}