ALite CMS 44.0
Language: 
ALite CMS

System News

Loading plugins

05.07.2024 19:24  rating: 14 

The method of connecting plugins has been changed.

Previously, plugins were loaded using the following structure:
$plugin_local = alc_common_local_path()."/_themes/".alc_common_get_user_theme()."/plugins/[plugin_file].php";
if (is_file($plugin_local)) include($plugin_local);

Now plugins are loaded using the function alc_common_load_plugin('plugin_file_name_without_path'). For this feature to work correctly, the plugin must be installed and activated.

Example:
echo alc_common_load_plugin('[plugin_file].php');

Previous versions of the templates will work, but unactivated plugins will not be displayed in the page builder.

Tags: #Plugins
New comment
User:
Protected codeRefresh
RSS  RSS