You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -12,7 +12,7 @@ This concept mod is inspired by the Wedge plugin system. It adds plugin support
12
12
13
13
Plugins are standalone modifications that do not need to be installed or removed through the Package Manager. They don't make changes to SMF files and run entirely on hooks.
14
14
15
-
The key source file of the plugin is **plugin.php** with the anonymous class and the **hooks** method, which is executed through the _integrate_pre_load_ hook. Also in the directory of each plugin should be a file **plugin-info.xml**, which contains the key data of the plugin:
15
+
The entry point of each plugin is **plugin.php** with an anonymous class inside. Also in the directory of each plugin should be a file **plugin-info.xml**, which contains the key data of the plugin:
16
16
17
17
* name
18
18
* description
@@ -93,7 +93,7 @@ Plugins that require creation of tables in the database for their work must cont
93
93
* @package Example
94
94
* @link https://plugin-site.com
95
95
* @author Author https://author-site.com
96
-
* @copyright 2023 Author
96
+
* @copyright 2024 Author
97
97
* @license https://opensource.org/licenses/MIT The MIT License
Плагины — это автономные модификации, которым не требуется установка или удаление через Менеджер пакетов. Они не вносят изменения в файлы SMF и работают полностью на хуках.
14
14
15
-
Ключевым source-файлом у плагина является **plugin.php** с анонимным классом внутри и методом **hooks**, выполняемым через хук _integrate_pre_load_. Также в директории каждого плагина должен находиться файл **plugin-info.xml**, содержащий ключевые данные плагина:
15
+
Точкой входа каждого плагина является **plugin.php** с анонимным классом внутри. Также в директории каждого плагина должен находиться файл **plugin-info.xml**, содержащий ключевые данные плагина:
16
16
17
17
* название
18
18
* описание
@@ -93,30 +93,23 @@ example_plugin/
93
93
* @package Example
94
94
* @link https://plugin-site.com
95
95
* @author Author https://author-site.com
96
-
* @copyright 2023 Author
96
+
* @copyright 2024 Author
97
97
* @license https://opensource.org/licenses/MIT The MIT License
0 commit comments