first commit
This commit is contained in:
19
administrator/components/com_smartslider3/smartslider3.php
Normal file
19
administrator/components/com_smartslider3/smartslider3.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Nextend\SmartSlider3\Platform\Joomla\AdministratorComponent;
|
||||
|
||||
if (!version_compare(PHP_VERSION, '7.0', '>=')) {
|
||||
Factory::getApplication()
|
||||
->enqueueMessage('Smart Slider 3 requires 7.0+, extension is currently NOT RUNNING.', 'warning');
|
||||
} else if (!version_compare(JVERSION, '3.9', '>=')) {
|
||||
Factory::getApplication()
|
||||
->enqueueMessage('Smart Slider 3 requires Joomla 3.9+. Because you are using an earlier version, the extension is currently NOT RUNNING.', 'warning');
|
||||
} else {
|
||||
|
||||
jimport("smartslider3.joomla");
|
||||
|
||||
if (class_exists('\Nextend\SmartSlider3\Platform\Joomla\AdministratorComponent')) {
|
||||
new AdministratorComponent();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user