Function getContentShorten
Shorten the content of any type of item and add the shorten indicator and readmore link set on the Zenpage plugin options. Helper function for getNewsContent() but usage of course not limited to that. If there is nothing to shorten the content passed.
The read more link is wrapped within
.
Package: plugins\zenpage
Author: Malte Müller (acrylian), Stephen Billard (sbillard)
Located at zp-extensions/zenpage/zenpage-template-functions.php
Author: Malte Müller (acrylian), Stephen Billard (sbillard)
Located at zp-extensions/zenpage/zenpage-template-functions.php
string |
$text |
The text content to be shortenend. |
mixed |
$shorten |
The lenght the content should be shortened. Set to true for shorten to pagebreak zero or false for no shortening |
string |
$shortenindicator = NULL |
The placeholder to mark the shortening (e.g."(...)"). If empty the Zenpage option for this is used. |
string |
$readmore = NULL |
The text for the "read more" link. If empty the term set in Zenpage option is used. |
string |
$readmoreurl = NULL |
The url the read more link should point to |