22 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
Hakim Zulkufli
aebaed2a8c Retain PNG transparency.
Transparency data will be saved when cropping or resizing.
2017-04-30 17:03:33 +08:00
metaskop
928856fe81 [req171] bug fixes 2017-04-10 17:29:10 +02:00
metaskop
56b8b358ca [req171] first / last page front end implementation 2017-04-10 16:57:30 +02:00
dignajar
5ff7511863 API Plugin, bug fixed 2016-10-19 16:57:10 -03:00
dignajar
185ffda5ca Tag in title of page 2016-09-26 00:25:40 -03: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
edb3ca4d13 New default theme based on Future Imperfect 2016-05-17 23:36:23 -03:00
dignajar
12f8de5da8 updates 2016-05-07 00:22:48 -03:00
dignajar
ee91c104fc Minor bug fixes 2016-02-26 12:32:18 -03:00
dignajar
3728ea8a98 Tags sorted low to high alphanumeric 2016-02-24 22:50:27 -03:00
dignajar
aa2196f91f Themes updates 2016-02-14 13:34:25 -03:00
dignajar
bfa4756bf4 New Menu V8 for Images and improves on cover images 2016-02-09 20:02:51 -03:00
dignajar
e26b86fddd Bug fixes, plugins databases - Improves, Disqus plugin 2016-02-06 17:35:12 -03:00
dignajar
741e9c3935 Improves on Paginator 2016-01-20 23:18:02 -03:00
dignajar
983dc20f60 Improves on Paginator 2016-01-20 23:16:32 -03:00
dignajar
e7890f4a71 changes on directories names 2016-01-20 21:29:01 -03:00