diff --git a/administrator/components/com_messages/views/config/tmpl/default.php b/administrator/components/com_messages/views/config/tmpl/default.php index 6bdf386b4f029..a28589c548434 100644 --- a/administrator/components/com_messages/views/config/tmpl/default.php +++ b/administrator/components/com_messages/views/config/tmpl/default.php @@ -14,7 +14,6 @@ JHtml::_('behavior.formvalidator'); JHtml::_('behavior.keepalive'); -JHtml::_('behavior.modal'); JFactory::getDocument()->addScriptDeclaration(" Joomla.submitbutton = function(task) @@ -24,49 +23,17 @@ Joomla.submitform(task, document.getElementById('config-form')); } }; + "); ?> -
+ + + \ No newline at end of file diff --git a/administrator/components/com_messages/views/message/tmpl/default.php b/administrator/components/com_messages/views/message/tmpl/default.php index 7d06848920986..a5963e7c26345 100644 --- a/administrator/components/com_messages/views/message/tmpl/default.php +++ b/administrator/components/com_messages/views/message/tmpl/default.php @@ -8,7 +8,7 @@ */ defined('_JEXEC') or die; -JHtml::_('behavior.framework'); +JHtml::_('behavior.core'); JHtml::_('formbehavior.chosen', 'select'); ?> + \ No newline at end of file diff --git a/administrator/components/com_messages/views/messages/view.html.php b/administrator/components/com_messages/views/messages/view.html.php index 00e84b36ea5bc..866fc3a510ab2 100644 --- a/administrator/components/com_messages/views/messages/view.html.php +++ b/administrator/components/com_messages/views/messages/view.html.php @@ -8,7 +8,6 @@ */ defined('_JEXEC') or die; -JHtml::_('behavior.modal'); /** * View class for a list of messages. @@ -34,9 +33,9 @@ class MessagesViewMessages extends JViewLegacy */ public function display($tpl = null) { - $this->items = $this->get('Items'); - $this->pagination = $this->get('Pagination'); - $this->state = $this->get('State'); + $this->items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) @@ -60,8 +59,8 @@ public function display($tpl = null) */ protected function addToolbar() { - $state = $this->get('State'); - $canDo = JHelperContent::getActions('com_messages'); + $state = $this->get('State'); + $canDo = JHelperContent::getActions('com_messages'); JToolbarHelper::title(JText::_('COM_MESSAGES_MANAGER_MESSAGES'), 'envelope inbox'); @@ -79,12 +78,23 @@ protected function addToolbar() JToolbarHelper::divider(); $bar = JToolBar::getInstance('toolbar'); - - // Instantiate a new JLayoutFile instance and render the layout - JHtml::_('behavior.modal', 'a.messagesSettings'); - $layout = new JLayoutFile('toolbar.mysettings'); - - $bar->appendButton('Custom', $layout->render(array()), 'upload'); + $bar->appendButton( + 'Popup', + 'cog', + 'COM_MESSAGES_TOOLBAR_MY_SETTINGS', + 'index.php?option=com_messages&view=config&tmpl=component', + 500, + 250, + 0, + 0, + '', + '', + '' + ); if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) { @@ -105,4 +115,4 @@ protected function addToolbar() JToolbarHelper::divider(); JToolbarHelper::help('JHELP_COMPONENTS_MESSAGING_INBOX'); } -} +} \ No newline at end of file diff --git a/components/com_content/views/article/tmpl/default.php b/components/com_content/views/article/tmpl/default.php index 1b7201f206133..bcf569e68ee81 100644 --- a/components/com_content/views/article/tmpl/default.php +++ b/components/com_content/views/article/tmpl/default.php @@ -11,6 +11,9 @@ JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); +// Only required for legacy captions. This should be removed in j4. +JHtml::_('behavior.caption'); + // Create shortcuts to some parameters. $params = $this->item->params; $images = json_decode($this->item->images); @@ -18,7 +21,7 @@ $canEdit = $params->get('access-edit'); $user = JFactory::getUser(); $info = $params->get('info_block_position', 0); -JHtml::_('behavior.caption'); + ?>