This commit is contained in:
Oh
2025-02-04 16:52:43 +02:00
parent ab99fc1336
commit 752a42b2cb
89 changed files with 199 additions and 144 deletions

View File

@@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.1
@build 21st August, 2024
@build 4th February, 2025
@created 24th May, 2024
@package Subform Power
@subpackage HtmlView.php
@@ -36,13 +36,17 @@ use JCB\Joomla\Utilities\StringHelper;
*
* @since 1.6
*/
#[\AllowDynamicProperties]
class HtmlView extends BaseHtmlView
{
/**
* View display method
*
* @return void
* @throws \Exception
* @since 1.6
*/
function display($tpl = null)
function display($tpl = null): void
{
// Assign data to the view
$this->icons = $this->get('Icons');
@@ -104,7 +108,7 @@ class HtmlView extends BaseHtmlView
// set page title
$this->getDocument()->setTitle(Text::_('COM_SUBFORMPOWER_DASHBOARD'));
// add manifest to page JavaScript
$this->getDocument()->addScriptDeclaration("var manifest = JSON.parse('" . json_encode($this->manifest) . "');", "text/javascript");
$this->getDocument()->addScriptDeclaration("var manifest = JSON.parse(" . json_encode($this->manifest) . ");", "text/javascript");
// add styles
foreach ($this->styles as $style)
{