diff --git a/README.md b/README.md index b07bbca..3e9aa28 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Demo (2.0.3) +# Demo (2.1.0) ![Demo image](https://raw.githubusercontent.com/namibia/demo-joomla-3-component/master/admin/assets/images/vdm-component.jpg "The Demo") @@ -10,8 +10,8 @@ Just a basic demo of the most basic implementations of the [Joomla](http://www.j + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Demo](https://www.vdm.io/) + *First Build*: 18th October, 2016 -+ *Last Build*: 3rd March, 2022 -+ *Version*: 2.0.3 ++ *Last Build*: 27th May, 2022 ++ *Version*: 2.1.0 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @@ -23,8 +23,8 @@ due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder > (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, > never making one mistake or taking any coffee break.) -+ *Line count*: **16821** -+ *File count*: **156** ++ *Line count*: **16868** ++ *File count*: **157** + *Folder count*: **57** **31 Hours** or **4 Eight Hour Days** (the actual time the author spent) diff --git a/admin/README.txt b/admin/README.txt index b07bbca..3e9aa28 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -1,4 +1,4 @@ -# Demo (2.0.3) +# Demo (2.1.0) ![Demo image](https://raw.githubusercontent.com/namibia/demo-joomla-3-component/master/admin/assets/images/vdm-component.jpg "The Demo") @@ -10,8 +10,8 @@ Just a basic demo of the most basic implementations of the [Joomla](http://www.j + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Demo](https://www.vdm.io/) + *First Build*: 18th October, 2016 -+ *Last Build*: 3rd March, 2022 -+ *Version*: 2.0.3 ++ *Last Build*: 27th May, 2022 ++ *Version*: 2.1.0 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @@ -23,8 +23,8 @@ due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder > (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, > never making one mistake or taking any coffee break.) -+ *Line count*: **16821** -+ *File count*: **156** ++ *Line count*: **16868** ++ *File count*: **157** + *Folder count*: **57** **31 Hours** or **4 Eight Hour Days** (the actual time the author spent) diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css index b48feee..742f667 100644 --- a/admin/assets/css/admin.css +++ b/admin/assets/css/admin.css @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage admin.css diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css index 5deab58..e5e07ce 100644 --- a/admin/assets/css/dashboard.css +++ b/admin/assets/css/dashboard.css @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage dashboard.css diff --git a/admin/assets/css/look.css b/admin/assets/css/look.css index c4ee29d..b137672 100644 --- a/admin/assets/css/look.css +++ b/admin/assets/css/look.css @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.css diff --git a/admin/assets/css/looks.css b/admin/assets/css/looks.css index 43cc852..8c4e21c 100644 --- a/admin/assets/css/looks.css +++ b/admin/assets/css/looks.css @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage looks.css diff --git a/admin/assets/js/admin.js b/admin/assets/js/admin.js index eac2df2..a134237 100644 --- a/admin/assets/js/admin.js +++ b/admin/assets/js/admin.js @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage admin.js diff --git a/admin/controller.php b/admin/controller.php index db2a162..8efd8ad 100644 --- a/admin/controller.php +++ b/admin/controller.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage controller.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\BaseController; use Joomla\Utilities\ArrayHelper; /** * General Controller of Demo component */ -class DemoController extends JControllerLegacy +class DemoController extends BaseController { /** * Constructor. diff --git a/admin/controllers/demo.php b/admin/controllers/demo.php index ecdcdc0..d281938 100644 --- a/admin/controllers/demo.php +++ b/admin/controllers/demo.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage demo.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); - +use Joomla\CMS\MVC\Controller\AdminController; +use Joomla\Utilities\ArrayHelper; /** - * Demo Controller + * Demo Admin Controller */ -class DemoControllerDemo extends JControllerAdmin +class DemoControllerDemo extends AdminController { } diff --git a/admin/controllers/import.php b/admin/controllers/import.php index 7a21adb..43a74e3 100644 --- a/admin/controllers/import.php +++ b/admin/controllers/import.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage import.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\BaseController; use Joomla\Utilities\ArrayHelper; /** - * Demo Import Controller + * Demo Import Base Controller */ -class DemoControllerImport extends JControllerLegacy +class DemoControllerImport extends BaseController { /** * Import an spreadsheet. diff --git a/admin/controllers/look.php b/admin/controllers/look.php index e2d31d5..9d0c555 100644 --- a/admin/controllers/look.php +++ b/admin/controllers/look.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\FormController; use Joomla\Utilities\ArrayHelper; /** - * Look Controller + * Look Form Controller */ -class DemoControllerLook extends JControllerForm +class DemoControllerLook extends FormController { /** * Current or most recently performed task. diff --git a/admin/controllers/looks.php b/admin/controllers/looks.php index 9e79cc8..2a2a90a 100644 --- a/admin/controllers/looks.php +++ b/admin/controllers/looks.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage looks.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\AdminController; use Joomla\Utilities\ArrayHelper; /** - * Looks Controller + * Looks Admin Controller */ -class DemoControllerLooks extends JControllerAdmin +class DemoControllerLooks extends AdminController { /** * The prefix to use with controller messages. diff --git a/admin/demo.php b/admin/demo.php index ab7ecd1..f381691 100644 --- a/admin/demo.php +++ b/admin/demo.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage demo.php diff --git a/admin/helpers/demo.php b/admin/helpers/demo.php index 36d1c24..3c44656 100644 --- a/admin/helpers/demo.php +++ b/admin/helpers/demo.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage demo.php @@ -1893,3 +1893,4 @@ abstract class DemoHelper return implode($key); } } + diff --git a/admin/helpers/headercheck.php b/admin/helpers/headercheck.php index 1734d1d..4e6b39f 100644 --- a/admin/helpers/headercheck.php +++ b/admin/helpers/headercheck.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage headercheck.php diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php index 02c202b..2ebfdaf 100644 --- a/admin/helpers/html/batch_.php +++ b/admin/helpers/html/batch_.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage batch_.php diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php index c9ae792..70f0fbe 100644 --- a/admin/layouts/batchselection.php +++ b/admin/layouts/batchselection.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage batchselection.php diff --git a/admin/layouts/look/details_above.php b/admin/layouts/look/details_above.php index d40f96f..b9ed293 100644 --- a/admin/layouts/look/details_above.php +++ b/admin/layouts/look/details_above.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage details_above.php diff --git a/admin/layouts/look/details_fullwidth.php b/admin/layouts/look/details_fullwidth.php index 7e59d70..3d19823 100644 --- a/admin/layouts/look/details_fullwidth.php +++ b/admin/layouts/look/details_fullwidth.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage details_fullwidth.php diff --git a/admin/layouts/look/details_under.php b/admin/layouts/look/details_under.php index 5276215..035a51b 100644 --- a/admin/layouts/look/details_under.php +++ b/admin/layouts/look/details_under.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage details_under.php diff --git a/admin/layouts/look/metadata.php b/admin/layouts/look/metadata.php index c1f6dbe..8c980e9 100644 --- a/admin/layouts/look/metadata.php +++ b/admin/layouts/look/metadata.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage metadata.php diff --git a/admin/layouts/look/more_left.php b/admin/layouts/look/more_left.php index d5b319b..0937bef 100644 --- a/admin/layouts/look/more_left.php +++ b/admin/layouts/look/more_left.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage more_left.php diff --git a/admin/layouts/look/more_right.php b/admin/layouts/look/more_right.php index 166a740..ca3c019 100644 --- a/admin/layouts/look/more_right.php +++ b/admin/layouts/look/more_right.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage more_right.php diff --git a/admin/layouts/look/publishing.php b/admin/layouts/look/publishing.php index 85275dd..41a2889 100644 --- a/admin/layouts/look/publishing.php +++ b/admin/layouts/look/publishing.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage publishing.php diff --git a/admin/layouts/trashhelper.php b/admin/layouts/trashhelper.php index 6705021..eeb3813 100644 --- a/admin/layouts/trashhelper.php +++ b/admin/layouts/trashhelper.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage trashhelper.php diff --git a/admin/models/demo.php b/admin/models/demo.php index a2905be..3fe536f 100644 --- a/admin/models/demo.php +++ b/admin/models/demo.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage demo.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); - +use Joomla\CMS\MVC\Model\ListModel; +use Joomla\Utilities\ArrayHelper; /** - * Demo Model + * Demo List Model */ -class DemoModelDemo extends JModelList +class DemoModelDemo extends ListModel { public function getIcons() { diff --git a/admin/models/import.php b/admin/models/import.php index a0f5852..f58b670 100644 --- a/admin/models/import.php +++ b/admin/models/import.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage import.php @@ -21,15 +21,16 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\BaseDatabaseModel; use Joomla\CMS\Filesystem\File; use Joomla\CMS\Filesystem\Folder; use Joomla\Utilities\ArrayHelper; use PhpOffice\PhpSpreadsheet\IOFactory; /** - * Demo Import Model + * Demo Import Base Database Model */ -class DemoModelImport extends JModelLegacy +class DemoModelImport extends BaseDatabaseModel { // set uploading values protected $use_streams = false; diff --git a/admin/models/look.php b/admin/models/look.php index e61b8b6..b71fb4c 100644 --- a/admin/models/look.php +++ b/admin/models/look.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.php @@ -21,14 +21,15 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\AdminModel; use Joomla\Registry\Registry; use Joomla\String\StringHelper; use Joomla\Utilities\ArrayHelper; /** - * Demo Look Model + * Demo Look Admin Model */ -class DemoModelLook extends JModelAdmin +class DemoModelLook extends AdminModel { /** * The tab layout fields array. diff --git a/admin/models/looks.php b/admin/models/looks.php index 42f3aee..4d63756 100644 --- a/admin/models/looks.php +++ b/admin/models/looks.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage looks.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\ListModel; use Joomla\Utilities\ArrayHelper; /** - * Looks Model + * Looks List Model */ -class DemoModelLooks extends JModelList +class DemoModelLooks extends ListModel { public function __construct($config = array()) { diff --git a/admin/sql/updates/mysql/2.0.3.sql b/admin/sql/updates/mysql/2.0.3.sql new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/admin/sql/updates/mysql/2.0.3.sql @@ -0,0 +1 @@ + diff --git a/admin/tables/look.php b/admin/tables/look.php index 6142e43..af57e55 100644 --- a/admin/tables/look.php +++ b/admin/tables/look.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.php @@ -21,6 +21,7 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\Table\Table; use Joomla\Registry\Registry; use Joomla\String\StringHelper; use Joomla\Utilities\ArrayHelper; @@ -28,7 +29,7 @@ use Joomla\Utilities\ArrayHelper; /** * Looks Table class */ -class DemoTableLook extends JTable +class DemoTableLook extends Table { /** * Ensure the params and metadata in json encoded in the bind method diff --git a/admin/views/demo/tmpl/default.php b/admin/views/demo/tmpl/default.php index c784b9d..da01959 100644 --- a/admin/views/demo/tmpl/default.php +++ b/admin/views/demo/tmpl/default.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default.php diff --git a/admin/views/demo/tmpl/default_main.php b/admin/views/demo/tmpl/default_main.php index 34f8eb5..e0280d0 100644 --- a/admin/views/demo/tmpl/default_main.php +++ b/admin/views/demo/tmpl/default_main.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default_main.php diff --git a/admin/views/demo/tmpl/default_vdm.php b/admin/views/demo/tmpl/default_vdm.php index 9dd86c6..f01e617 100644 --- a/admin/views/demo/tmpl/default_vdm.php +++ b/admin/views/demo/tmpl/default_vdm.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default_vdm.php diff --git a/admin/views/demo/view.html.php b/admin/views/demo/view.html.php index 3155101..9d83a9f 100644 --- a/admin/views/demo/view.html.php +++ b/admin/views/demo/view.html.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage view.html.php diff --git a/admin/views/import/tmpl/default.php b/admin/views/import/tmpl/default.php index 993098b..0b7d422 100644 --- a/admin/views/import/tmpl/default.php +++ b/admin/views/import/tmpl/default.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default.php diff --git a/admin/views/import/view.html.php b/admin/views/import/view.html.php index 3316c89..f905620 100644 --- a/admin/views/import/view.html.php +++ b/admin/views/import/view.html.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Demo Import View + * Demo Import Html View */ -class DemoViewImport extends JViewLegacy +class DemoViewImport extends HtmlView { protected $headerList; protected $hasPackage = false; diff --git a/admin/views/look/submitbutton.js b/admin/views/look/submitbutton.js index 9cdeed4..36c11a2 100644 --- a/admin/views/look/submitbutton.js +++ b/admin/views/look/submitbutton.js @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage submitbutton.js diff --git a/admin/views/look/tmpl/edit.php b/admin/views/look/tmpl/edit.php index 70709c0..8c3f3ba 100644 --- a/admin/views/look/tmpl/edit.php +++ b/admin/views/look/tmpl/edit.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage edit.php diff --git a/admin/views/look/view.html.php b/admin/views/look/view.html.php index 4a729df..127bcbe 100644 --- a/admin/views/look/view.html.php +++ b/admin/views/look/view.html.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Look View class + * Look Html View class */ -class DemoViewLook extends JViewLegacy +class DemoViewLook extends HtmlView { /** * display method of View diff --git a/admin/views/looks/tmpl/default.php b/admin/views/looks/tmpl/default.php index 72681c7..3eb719a 100644 --- a/admin/views/looks/tmpl/default.php +++ b/admin/views/looks/tmpl/default.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default.php diff --git a/admin/views/looks/tmpl/default_batch_body.php b/admin/views/looks/tmpl/default_batch_body.php index 553f094..88c364d 100644 --- a/admin/views/looks/tmpl/default_batch_body.php +++ b/admin/views/looks/tmpl/default_batch_body.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default_batch_body.php diff --git a/admin/views/looks/tmpl/default_batch_footer.php b/admin/views/looks/tmpl/default_batch_footer.php index fef5b59..f22d2c3 100644 --- a/admin/views/looks/tmpl/default_batch_footer.php +++ b/admin/views/looks/tmpl/default_batch_footer.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default_batch_footer.php diff --git a/admin/views/looks/tmpl/default_body.php b/admin/views/looks/tmpl/default_body.php index 335a9a5..7da37d9 100644 --- a/admin/views/looks/tmpl/default_body.php +++ b/admin/views/looks/tmpl/default_body.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default_body.php diff --git a/admin/views/looks/tmpl/default_foot.php b/admin/views/looks/tmpl/default_foot.php index 4392222..ab00c73 100644 --- a/admin/views/looks/tmpl/default_foot.php +++ b/admin/views/looks/tmpl/default_foot.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default_foot.php diff --git a/admin/views/looks/tmpl/default_head.php b/admin/views/looks/tmpl/default_head.php index 9ee97dc..d6f8ac8 100644 --- a/admin/views/looks/tmpl/default_head.php +++ b/admin/views/looks/tmpl/default_head.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default_head.php diff --git a/admin/views/looks/tmpl/default_toolbar.php b/admin/views/looks/tmpl/default_toolbar.php index e57b51d..7673a64 100644 --- a/admin/views/looks/tmpl/default_toolbar.php +++ b/admin/views/looks/tmpl/default_toolbar.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default_toolbar.php diff --git a/admin/views/looks/view.html.php b/admin/views/looks/view.html.php index 79d96b0..4b04790 100644 --- a/admin/views/looks/view.html.php +++ b/admin/views/looks/view.html.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Demo View class for the Looks + * Demo Html View class for the Looks */ -class DemoViewLooks extends JViewLegacy +class DemoViewLooks extends HtmlView { /** * Looks view display method diff --git a/demo.xml b/demo.xml index 7d46f0d..d0e6f5c 100644 --- a/demo.xml +++ b/demo.xml @@ -1,15 +1,15 @@ COM_DEMO - 3rd March, 2022 + 27th May, 2022 Llewellyn van der Merwe joomla@vdm.io https://www.vdm.io/ Copyright (C) 2015. All Rights Reserved GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - 2.0.3 + 2.1.0 Demo (v.2.0.3) +

Demo (v.2.1.0)

Just a basic demo of the most basic implementations of the [Joomla](http://www.joomla.org) Component Builder's ability.

Created by Llewellyn van der Merwe
Development started 18th October, 2016

diff --git a/demo_updateserver.xml b/demo_updateserver.xml index 7cc5b42..595d2e7 100644 --- a/demo_updateserver.xml +++ b/demo_updateserver.xml @@ -7,7 +7,7 @@ 2.0.0 https://www.vdm.io/ - https://github.com/namibia/demo-joomla-3-component/archive/v2.0.0.zip + https://git.vdm.dev/joomla/Demo-Component/archive/v2.0.0.zip stable @@ -24,7 +24,7 @@ 2.0.2 https://www.vdm.io/ - https://github.com/namibia/demo-joomla-3-component/archive/master.zip + https://git.vdm.dev/joomla/Demo-Component/archive/v2.0.2.zip stable @@ -41,7 +41,24 @@ 2.0.3 https://www.vdm.io/ - http://domain.com/demo.zip + https://git.vdm.dev/joomla/Demo-Component/archive/v2.0.3.zip + + + stable + + Llewellyn van der Merwe + https://www.vdm.io/ + + + + Demo + Demo Component + com_demo + component + 2.1.0 + https://www.vdm.io/ + + https://git.vdm.dev/joomla/Demo-Component/archive/v2.1.0.zip stable diff --git a/media/js/look.js b/media/js/look.js index 9421fd9..45e0956 100644 --- a/media/js/look.js +++ b/media/js/look.js @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.js diff --git a/script.php b/script.php index fdbe24d..df1c852 100644 --- a/script.php +++ b/script.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage script.php @@ -613,7 +613,7 @@ class com_demoInstallerScript echo ' -

Upgrade to Version 2.0.3 Was Successful! Let us know if anything is not working as expected.

'; +

Upgrade to Version 2.1.0 Was Successful! Let us know if anything is not working as expected.

'; // Set db if not set already. if (!isset($db)) diff --git a/site/assets/css/look.css b/site/assets/css/look.css index c4ee29d..b137672 100644 --- a/site/assets/css/look.css +++ b/site/assets/css/look.css @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.css diff --git a/site/assets/css/looking.css b/site/assets/css/looking.css index b534fbe..f282389 100644 --- a/site/assets/css/looking.css +++ b/site/assets/css/looking.css @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage looking.css diff --git a/site/assets/css/looks.css b/site/assets/css/looks.css index 43cc852..8c4e21c 100644 --- a/site/assets/css/looks.css +++ b/site/assets/css/looks.css @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage looks.css diff --git a/site/assets/css/site.css b/site/assets/css/site.css index 4dce307..9b5fbcc 100644 --- a/site/assets/css/site.css +++ b/site/assets/css/site.css @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage site.css diff --git a/site/assets/js/site.js b/site/assets/js/site.js index 5b64c83..b2afd29 100644 --- a/site/assets/js/site.js +++ b/site/assets/js/site.js @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage site.js diff --git a/site/controller.php b/site/controller.php index 46e1c57..8958bc2 100644 --- a/site/controller.php +++ b/site/controller.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage controller.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\BaseController; use Joomla\Utilities\ArrayHelper; /** - * Demo Component Controller + * Demo Component Base Controller */ -class DemoController extends JControllerLegacy +class DemoController extends BaseController { /** * Method to display a view. diff --git a/site/controllers/look.php b/site/controllers/look.php index 40ed21a..b672bd8 100644 --- a/site/controllers/look.php +++ b/site/controllers/look.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\FormController; use Joomla\Utilities\ArrayHelper; /** - * Look Controller + * Look Form Controller */ -class DemoControllerLook extends JControllerForm +class DemoControllerLook extends FormController { /** * Current or most recently performed task. diff --git a/site/demo.php b/site/demo.php index 199983b..9b11b26 100644 --- a/site/demo.php +++ b/site/demo.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage demo.php diff --git a/site/helpers/category.php b/site/helpers/category.php index 618d4db..dccb175 100644 --- a/site/helpers/category.php +++ b/site/helpers/category.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage category.php diff --git a/site/helpers/demo.php b/site/helpers/demo.php index 28d61c0..fd8133e 100644 --- a/site/helpers/demo.php +++ b/site/helpers/demo.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage demo.php @@ -1701,3 +1701,4 @@ abstract class DemoHelper return implode($key); } } + diff --git a/site/helpers/headercheck.php b/site/helpers/headercheck.php index 1734d1d..4e6b39f 100644 --- a/site/helpers/headercheck.php +++ b/site/helpers/headercheck.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage headercheck.php diff --git a/site/helpers/route.php b/site/helpers/route.php index cb36dba..59e1a58 100644 --- a/site/helpers/route.php +++ b/site/helpers/route.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage route.php diff --git a/site/layouts/look/details_above.php b/site/layouts/look/details_above.php index d40f96f..b9ed293 100644 --- a/site/layouts/look/details_above.php +++ b/site/layouts/look/details_above.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage details_above.php diff --git a/site/layouts/look/details_fullwidth.php b/site/layouts/look/details_fullwidth.php index 7e59d70..3d19823 100644 --- a/site/layouts/look/details_fullwidth.php +++ b/site/layouts/look/details_fullwidth.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage details_fullwidth.php diff --git a/site/layouts/look/details_under.php b/site/layouts/look/details_under.php index 5276215..035a51b 100644 --- a/site/layouts/look/details_under.php +++ b/site/layouts/look/details_under.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage details_under.php diff --git a/site/layouts/look/metadata.php b/site/layouts/look/metadata.php index c1f6dbe..8c980e9 100644 --- a/site/layouts/look/metadata.php +++ b/site/layouts/look/metadata.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage metadata.php diff --git a/site/layouts/look/more_left.php b/site/layouts/look/more_left.php index d5b319b..0937bef 100644 --- a/site/layouts/look/more_left.php +++ b/site/layouts/look/more_left.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage more_left.php diff --git a/site/layouts/look/more_right.php b/site/layouts/look/more_right.php index 166a740..ca3c019 100644 --- a/site/layouts/look/more_right.php +++ b/site/layouts/look/more_right.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage more_right.php diff --git a/site/layouts/look/publishing.php b/site/layouts/look/publishing.php index 85275dd..41a2889 100644 --- a/site/layouts/look/publishing.php +++ b/site/layouts/look/publishing.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage publishing.php diff --git a/site/models/forms/look.js b/site/models/forms/look.js index 9421fd9..45e0956 100644 --- a/site/models/forms/look.js +++ b/site/models/forms/look.js @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.js diff --git a/site/models/look.php b/site/models/look.php index e61b8b6..b71fb4c 100644 --- a/site/models/look.php +++ b/site/models/look.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage look.php @@ -21,14 +21,15 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\AdminModel; use Joomla\Registry\Registry; use Joomla\String\StringHelper; use Joomla\Utilities\ArrayHelper; /** - * Demo Look Model + * Demo Look Admin Model */ -class DemoModelLook extends JModelAdmin +class DemoModelLook extends AdminModel { /** * The tab layout fields array. diff --git a/site/models/looking.php b/site/models/looking.php index 32f4c14..99521c9 100644 --- a/site/models/looking.php +++ b/site/models/looking.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage looking.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\ItemModel; use Joomla\Utilities\ArrayHelper; /** - * Demo Looking Model + * Demo Looking Item Model */ -class DemoModelLooking extends JModelItem +class DemoModelLooking extends ItemModel { /** * Model context string. diff --git a/site/models/looks.php b/site/models/looks.php index 1e1fdee..8d9245a 100644 --- a/site/models/looks.php +++ b/site/models/looks.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage looks.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\ListModel; use Joomla\Utilities\ArrayHelper; /** - * Demo Model for Looks + * Demo List Model for Looks */ -class DemoModelLooks extends JModelList +class DemoModelLooks extends ListModel { /** * Model user data. diff --git a/site/router.php b/site/router.php index b8c099a..df4fbff 100644 --- a/site/router.php +++ b/site/router.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage router.php diff --git a/site/views/look/submitbutton.js b/site/views/look/submitbutton.js index 9cdeed4..36c11a2 100644 --- a/site/views/look/submitbutton.js +++ b/site/views/look/submitbutton.js @@ -2,8 +2,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage submitbutton.js diff --git a/site/views/look/tmpl/edit.php b/site/views/look/tmpl/edit.php index 9438dce..86bab9b 100644 --- a/site/views/look/tmpl/edit.php +++ b/site/views/look/tmpl/edit.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage edit.php diff --git a/site/views/look/view.html.php b/site/views/look/view.html.php index f038060..e003659 100644 --- a/site/views/look/view.html.php +++ b/site/views/look/view.html.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Look View class + * Look Html View class */ -class DemoViewLook extends JViewLegacy +class DemoViewLook extends HtmlView { /** * display method of View diff --git a/site/views/looking/tmpl/default.php b/site/views/looking/tmpl/default.php index aa1ba9e..5c5a557 100644 --- a/site/views/looking/tmpl/default.php +++ b/site/views/looking/tmpl/default.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default.php diff --git a/site/views/looking/view.html.php b/site/views/looking/view.html.php index ccfd71c..1892d1b 100644 --- a/site/views/looking/view.html.php +++ b/site/views/looking/view.html.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Demo View class for the Looking + * Demo Html View class for the Looking */ -class DemoViewLooking extends JViewLegacy +class DemoViewLooking extends HtmlView { // Overwriting JView display method function display($tpl = null) @@ -113,12 +115,12 @@ class DemoViewLooking extends JViewLegacy // The uikit css. if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) { - $this->document->addStyleSheet(JURI::root(true) .'/media/com_demo/uikit-v2/css/uikit'.$style.$size.'.css', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + JHtml::_('stylesheet', 'media/com_demo/uikit-v2/css/uikit'.$style.$size.'.css', ['version' => 'auto']); } // The uikit js. if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) { - $this->document->addScript(JURI::root(true) .'/media/com_demo/uikit-v2/js/uikit'.$size.'.js', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + JHtml::_('script', 'media/com_demo/uikit-v2/js/uikit'.$size.'.js', ['version' => 'auto']); } // Load the needed uikit components in this view. @@ -134,13 +136,13 @@ class DemoViewLooking extends JViewLegacy if (File::exists(JPATH_ROOT.'/media/com_demo/uikit-v2/css/components/'.$name.$style.$size.'.css')) { // load the css. - $this->document->addStyleSheet(JURI::root(true) .'/media/com_demo/uikit-v2/css/components/'.$name.$style.$size.'.css', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + JHtml::_('stylesheet', 'media/com_demo/uikit-v2/css/components/'.$name.$style.$size.'.css', ['version' => 'auto']); } // check if the JavaScript file exists. if (File::exists(JPATH_ROOT.'/media/com_demo/uikit-v2/js/components/'.$name.$size.'.js')) { // load the js. - $this->document->addScript(JURI::root(true) .'/media/com_demo/uikit-v2/js/components/'.$name.$size.'.js', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true); + JHtml::_('script', 'media/com_demo/uikit-v2/js/components/'.$name.$size.'.js', ['version' => 'auto'], ['type' => 'text/javascript', 'async' => 'async']); } } } diff --git a/site/views/looks/tmpl/default.php b/site/views/looks/tmpl/default.php index d04448c..a9aed3e 100644 --- a/site/views/looks/tmpl/default.php +++ b/site/views/looks/tmpl/default.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage default.php diff --git a/site/views/looks/view.html.php b/site/views/looks/view.html.php index 4c3b010..1998407 100644 --- a/site/views/looks/view.html.php +++ b/site/views/looks/view.html.php @@ -3,8 +3,8 @@ Vast Development Method /-------------------------------------------------------------------------------------------------------/ - @version 2.0.3 - @build 3rd March, 2022 + @version 2.1.0 + @build 27th May, 2022 @created 18th October, 2016 @package Demo @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Demo View class for the Looks + * Demo Html View class for the Looks */ -class DemoViewLooks extends JViewLegacy +class DemoViewLooks extends HtmlView { // Overwriting JView display method function display($tpl = null) @@ -77,12 +79,12 @@ class DemoViewLooks extends JViewLegacy // The uikit css. if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) { - $this->document->addStyleSheet(JURI::root(true) .'/media/com_demo/uikit-v2/css/uikit'.$style.$size.'.css', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + JHtml::_('stylesheet', 'media/com_demo/uikit-v2/css/uikit'.$style.$size.'.css', ['version' => 'auto']); } // The uikit js. if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) { - $this->document->addScript(JURI::root(true) .'/media/com_demo/uikit-v2/js/uikit'.$size.'.js', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + JHtml::_('script', 'media/com_demo/uikit-v2/js/uikit'.$size.'.js', ['version' => 'auto']); } // Load the needed uikit components in this view. @@ -98,13 +100,13 @@ class DemoViewLooks extends JViewLegacy if (File::exists(JPATH_ROOT.'/media/com_demo/uikit-v2/css/components/'.$name.$style.$size.'.css')) { // load the css. - $this->document->addStyleSheet(JURI::root(true) .'/media/com_demo/uikit-v2/css/components/'.$name.$style.$size.'.css', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + JHtml::_('stylesheet', 'media/com_demo/uikit-v2/css/components/'.$name.$style.$size.'.css', ['version' => 'auto']); } // check if the JavaScript file exists. if (File::exists(JPATH_ROOT.'/media/com_demo/uikit-v2/js/components/'.$name.$size.'.js')) { // load the js. - $this->document->addScript(JURI::root(true) .'/media/com_demo/uikit-v2/js/components/'.$name.$size.'.js', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (DemoHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true); + JHtml::_('script', 'media/com_demo/uikit-v2/js/components/'.$name.$size.'.js', ['version' => 'auto'], ['type' => 'text/javascript', 'async' => 'async']); } } }