Commit Graph

44 Commits (bd405ec98a970b36ce725772ae487eddb4c0c3ed)

Author SHA1 Message Date
Hypolite Petovan 39c654da00 [various] Remove App dependency from hook functions 2023-01-13 21:16:09 -05:00
Philipp b0eb28143a
UserSession class - Refactor addon 2022-10-20 23:51:49 +02:00
Michael 5d8129600d Replace all functions from boot.php 2022-10-19 09:47:36 -04:00
Roland Häder 04df7f6e05
Changes:
- added more type-hints
- cleaned up some files (curly braces, spaces)
2022-06-23 07:17:00 +02:00
Hypolite Petovan 779b38ec09 [various] Convert addon_settings hook functions to the new data array format
- Add separate template files to several addons
- Remove superfluous addon settings CSS files
2021-11-29 06:55:16 -05:00
Hypolite Petovan f0522a998b [various] Use __DIR__ constant in all Page registerStylesheet and registerFooterScript calls 2021-11-29 06:54:59 -05:00
Hypolite Petovan 1c745a3d3a [showmore] Add RTL support to showmore created div 2021-05-20 08:43:53 -04:00
Hypolite Petovan 368a0d3f6c [showmore] Use DOMDocument object instead of static call to loadHTML()
- Address https://github.com/friendica/friendica/issues/9498#issuecomment-751191039
2020-12-26 18:30:21 -05:00
Hypolite Petovan 203672cf27 [various] Remove redundant uninstall functions
- All hooks (current and obsolete) are removed automatically during addon uninstall
2020-07-27 08:30:41 -04:00
Michael 3f84caeec5 Unneeded "info" messages removed 2020-07-23 03:48:52 +00:00
Michael c95713b19c Showmore: Ignore addon for screen readers 2020-02-05 15:47:13 +00:00
nupplaPhil f2fc22227a
cleanup namespace usages for L10n 2020-01-19 16:31:47 +01:00
nupplaPhil 48fecb9a40
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:46 +01:00
nupplaPhil a26bfe79e9
Remove unused `use` statements & remove PConfig class 2020-01-18 17:02:59 +01:00
nupplaPhil febc835a2d
Move PConfig::set() to DI::pConfig()->set() 2020-01-18 16:54:49 +01:00
nupplaPhil ea3a9052d8
Move PConfig::get() to DI::pConfig()->get() 2020-01-18 16:50:56 +01:00
Hypolite Petovan d3717045f7 [various] Replace remaining $a->page by DI::page() 2019-12-30 15:53:43 -05:00
Hypolite Petovan 905823ea63 Update obsolete App::getBaseUrl calls to DI::baseUrl 2019-12-29 21:55:10 -05:00
Hypolite Petovan c27b1cb66f Replace deprecated Addon::*registerHook by Hook::*register 2018-12-26 10:20:18 -05:00
Hypolite Petovan d836593a3b Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
2018-11-30 09:11:56 -05:00
Adam Magness 1ac32c622e Functions moved to Strings class
implement functions from Strings class
2018-11-09 07:09:15 -05:00
Philipp Holzer 1454abfdb4
rename App Methods
- rename get_baseurl() to getBaseURL()
2018-10-10 00:04:49 +02:00
Michael 7a29893ecb some more notices and some code beautification 2018-08-08 06:24:47 +00:00
Michael Vogel 475299e642 Avoid warnings in addons (#639)
* Avoid warnings in addons

* And some warnings removed

* And more ...

* And some more ...

* Added comment

* And again ...

* And again ...

* Partly reworked "newmemberwidget"

* And more warnings ...

* The next round
2018-07-10 08:30:23 -04:00
Hypolite Petovan 02eb1b74f7 [showmore] Prevent use with content filters 2018-04-01 02:39:29 -04:00
Adam Magness b191d5716c Remove sprintf with translations
don't use sprintf with translation functions
2018-01-23 22:59:20 -05:00
Adam Magness f8c162cbfb Update t() calls
Update all t() calls.
2018-01-22 18:09:05 -05:00
Adam Magness c71f7b0e1a Update function names
update function names and hook calls
2018-01-20 08:57:41 -05:00
Adam Magness 0afd633346 Addon class
plugin moved to Addon src class
2018-01-19 07:20:17 -05:00
Hypolite Petovan 27b60e003f Use short form array syntax everywhere 2018-01-15 08:15:33 -05:00
Tobias Diekershoff f8d9efe8c7 some files were executable, now they are not 2017-12-07 14:26:26 +01:00
Adam Magness 48dcbc6f3f Issue 3873
Replace deprecated functions with new syntax
2017-11-06 18:55:24 -05:00
rabuzarus 16315e876f showmore: add css classes to elements 2016-04-14 01:28:04 +02:00
tobiasd 0b459e8379 Merge pull request #166 from annando/master
inflate/deflate settings
2013-12-01 02:25:26 -08:00
Michael Vogel 468868ae07 showmore: inflate/deflate settings 2013-11-30 21:23:32 +01:00
Tobias Diekershoff 5c5c23acb0 wording submit -> save settings 2013-11-19 14:10:27 +01:00
Domovoy 7639f91179 Oooops, put back the warnings ignore for DomDocument 2012-07-27 10:12:12 +02:00
Domovoy 27a924f286 return 0 from get_body_length before loading the body to DomDocument if body is empty 2012-07-27 10:08:30 +02:00
Domovoy 47a5a5c03a Supree the warning of DomDocument::loadHTML 2012-07-23 21:22:20 +02:00
Domovoy 7f34be5a9a The $node parameter of DomDocument::saveHTML was added only in php version 5.3.6.
No problem, strip_tags gets out anything we don't want anyway.
2012-07-23 20:46:09 +02:00
Domovoy 7b786e0214 showmore now only count what is visible to know if it should act, fixes #1 2012-07-23 20:07:15 +02:00
Michael Vogel 3689c821b6 Showmore: A little html bug was fixed (missing </div>) 2012-04-06 23:36:41 +02:00
Michael Vogel 619c758263 Show more: Changed "Show More" to "show more" 2012-03-17 11:09:21 +01:00
ike 516c678827 First commit: Addon for shortening long content and "show more" link. 2012-02-19 19:48:09 +01:00