bludit/bl-kernel/helpers
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
..
alert.class.php changes on directories names 2016-01-20 21:29:01 -03:00
cookie.class.php changes on directories names 2016-01-20 21:29:01 -03:00
crypt.class.php changes on directories names 2016-01-20 21:29:01 -03:00
date.class.php changes on directories names 2016-01-20 21:29:01 -03:00
email.class.php updates 2016-05-07 00:22:48 -03:00
filesystem.class.php Filesystem helper improved 2017-07-02 18:55:27 +02:00
image.class.php Retain PNG transparency. 2017-04-30 17:03:33 +08:00
log.class.php Login and Security improves 2017-07-16 20:10:19 +02:00
paginator.class.php bug fixes, improves on paginator, admin url filter 2017-07-30 14:25:16 +02:00
redirect.class.php bug fixes, improves on paginator, admin url filter 2017-07-30 14:25:16 +02:00
sanitize.class.php Bug fixes, plugins databases - Improves, Disqus plugin 2016-02-06 17:35:12 -03:00
session.class.php Login and Security improves 2017-07-16 00:42:37 +02:00
tcp.class.php Filesystem helper improved 2017-07-02 18:55:27 +02:00
text.class.php A new function is created to achieve this, Text::truncate 2017-08-06 22:17:34 +08:00
theme.class.php tinymce cloud, version plugin 2017-08-03 23:28:32 +02:00
valid.class.php changes on directories names 2016-01-20 21:29:01 -03:00