forked from ohrionmartin/subform-power
Update
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user