diff --git a/src/IPub/Widgets/Widgets/Widget.php b/src/IPub/Widgets/Widgets/Widget.php index e0499fc..41b896d 100644 --- a/src/IPub/Widgets/Widgets/Widget.php +++ b/src/IPub/Widgets/Widgets/Widget.php @@ -155,13 +155,13 @@ protected function beforeRender() : void } // Assign basic widget data to template - $this->template->add('badge', $badge); - $this->template->add('icon', $icon); - $this->template->add('title', [ + $this->template->badge = $badge; + $this->template->icon = $icon; + $this->template->title = [ 'text' => $name, 'insert' => $this->data->getParam('widget.title.insert', TRUE), 'hidden' => $this->data->getParam('widget.title.hidden', FALSE) - ]); + ]; // Check if translator is available if ($this->getTranslator() instanceof Localization\ITranslator) {