8 Commits

Author SHA1 Message Date
Hakim Zulkufli
3e869fd60d More safety checks for Text::truncate 2017-08-06 02:34:32 +08:00
Hakim Zulkufli
97058daa12 Generate title (if empty) from the content.
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:
1. Content has over 60 characters.
2. Title = First 60 characters + remaining characters of the last word + '...'

Example B:
1. Content has less than or equal to 60 characters
2. Title = All.

Example C:
1. Content only has one word but is over 60 characters.
2. 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 00:49:52 +08:00
Tran Duy Hung
08f3329d68 Added Vietnamese characters 2017-05-10 21:30:52 +07: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