Commit Graph

8 Commits

Author SHA1 Message Date
Hakim Zulkufli
e66834b5a6 A new function is created to achieve this, Text::truncate
which is based on Text::cut from the text.class.php helper.

Limit is set to 60 characters.

Example A:

Content has over 60 characters.
Title = First 60 characters + remaining characters of the last word + '...'
Example B:

Content has less than or equal to 60 characters
Title = All.
Example C:

Content only has one word but is over 60 characters.
Title = First 60 characters + '...'
Why B and C differ from each other?
Because we do not want the whole that one weird word
with over 60 characters to make its way to the title.
It's probably unrealistic, the code can be much cleaner
with B and C combined.

Feel free to discuss.
2017-08-06 22:17:34 +08:00
Diego Najar
05c67fc473 Regex Rel to Abs img, improves on manage content 2017-08-02 01:11:57 +02:00
Diego Najar
95e6500993 Remove posts 2017-05-16 00:46:20 +02:00
Hristo Dipchikov
6b00944d8b fix 2016-09-17 13:33:42 +03:00
Hristo Dipchikov
ebb941b98e Bulgarian specialChars 2016-09-17 13:31:43 +03:00
dignajar
4a8749af98 Extreme friendly urls 2016-06-02 21:57:13 -03:00
dignajar
dbf7a14854 New plugin, API 2016-05-29 14:21:11 -03:00
dignajar
e7890f4a71 changes on directories names 2016-01-20 21:29:01 -03:00