Moved the MVC to extend the CMS MVC via namespace.

This commit is contained in:
2022-05-25 10:30:55 +02:00
parent 6e4443b997
commit d789ef249e
398 changed files with 1461 additions and 911 deletions

View File

@ -13,10 +13,12 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\View\HtmlView;
/**
* Server View class
* Server Html View class
*/
class ComponentbuilderViewServer extends JViewLegacy
class ComponentbuilderViewServer extends HtmlView
{
/**
* display method of View
@ -195,9 +197,9 @@ class ComponentbuilderViewServer extends JViewLegacy
// Add the CSS for Footable
$this->document->addStyleSheet('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');
JHtml::_('stylesheet', 'com_componentbuilder/footable-v3/css/footable.standalone.min.css', ['version' => 'auto']);
JHtml::_('stylesheet', 'media/com_componentbuilder/footable-v3/css/footable.standalone.min.css', ['version' => 'auto']);
// Add the JavaScript for Footable (adding all functions)
JHtml::_('script', 'com_componentbuilder/footable-v3/js/footable.min.js', ['version' => 'auto']);
JHtml::_('script', 'media/com_componentbuilder/footable-v3/js/footable.min.js', ['version' => 'auto']);
$footable = "jQuery(document).ready(function() { jQuery(function () { jQuery('.footable').footable();});});";
$this->document->addScriptDeclaration($footable);