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')); } }; + "); ?> -
+
-
- - -
-
- - + form->renderField('lock'); ?> + form->renderField('mail_on_new'); ?> + form->renderField('auto_purge'); ?> + + -
+ + + \ 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'); ?>
diff --git a/administrator/components/com_messages/views/messages/tmpl/default.php b/administrator/components/com_messages/views/messages/tmpl/default.php index 9c33de250f9ac..f3ee32f5cdab4 100644 --- a/administrator/components/com_messages/views/messages/tmpl/default.php +++ b/administrator/components/com_messages/views/messages/tmpl/default.php @@ -16,9 +16,21 @@ JHtml::_('behavior.multiselect'); JHtml::_('formbehavior.chosen', 'select'); -$user = JFactory::getUser(); -$listOrder = $this->escape($this->state->get('list.ordering')); -$listDirn = $this->escape($this->state->get('list.direction')); +$user = JFactory::getUser(); +$listOrder = $this->escape($this->state->get('list.ordering')); +$listDirn = $this->escape($this->state->get('list.direction')); + +JFactory::getDocument()->addStyleDeclaration( + " + @media (min-width: 768px) { + div.modal { + left: none; + width: 500px; + margin-left: -250px; + } + } + " +); ?> @@ -113,4 +125,4 @@ -
+ \ 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'); + ?>
@@ -90,15 +93,18 @@ || (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?> loadTemplate('links'); ?> - get('access-view')):?> - image_fulltext) && !empty($images->image_fulltext)) : ?> + get('access-view')) : ?> float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?> -
image_fulltext_caption): - echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"'; - endif; ?> - src="image_fulltext); ?>" alt="image_fulltext_alt); ?>" itemprop="image"/>
- +
+ image_fulltext_caption) : ?> + image_fulltext_caption) . '"'; ?> + + src="image_fulltext); ?>" alt="image_fulltext_alt); ?>"/> + image_fulltext_caption) : ?> +
image_fulltext_caption); ?>
+ +
item->pagination) && $this->item->pagination && !$this->item->paginationposition && !$this->item->paginationrelative): echo $this->item->pagination; diff --git a/components/com_content/views/category/tmpl/blog.php b/components/com_content/views/category/tmpl/blog.php index 8a5bb822cbe49..04a357e70383e 100644 --- a/components/com_content/views/category/tmpl/blog.php +++ b/components/com_content/views/category/tmpl/blog.php @@ -11,7 +11,9 @@ JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); +// Only required for legacy captions. This should be removed in j4. JHtml::_('behavior.caption'); + ?>
params->get('show_page_heading')) : ?> diff --git a/components/com_content/views/featured/tmpl/default.php b/components/com_content/views/featured/tmpl/default.php index 884da2a465fda..16b4641070c11 100644 --- a/components/com_content/views/featured/tmpl/default.php +++ b/components/com_content/views/featured/tmpl/default.php @@ -11,6 +11,7 @@ JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); +// Only required for legacy captions. This should be removed in j4. JHtml::_('behavior.caption'); // If the page class is defined, add to class as suffix. diff --git a/components/com_content/views/featured/tmpl/default_item.php b/components/com_content/views/featured/tmpl/default_item.php index 048ac1ab186d1..4df6df2aedb1c 100644 --- a/components/com_content/views/featured/tmpl/default_item.php +++ b/components/com_content/views/featured/tmpl/default_item.php @@ -56,14 +56,7 @@ $this->item, 'params' => $params, 'position' => 'above')); ?> -image_intro) && !empty($images->image_intro)) : ?> - float_intro)) ? $params->get('float_intro') : $images->float_intro; ?> -
image_intro_caption): - echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; - endif; ?> - src="image_intro); ?>" alt="image_intro_alt); ?>"/>
- +item); ?> get('show_intro')) : ?> item->event->afterDisplayTitle; ?> diff --git a/layouts/joomla/content/intro_image.php b/layouts/joomla/content/intro_image.php index 4a7b1a1f85d19..2503234dd5cf3 100644 --- a/layouts/joomla/content/intro_image.php +++ b/layouts/joomla/content/intro_image.php @@ -8,23 +8,21 @@ */ defined('_JEXEC') or die; -$params = $displayData->params; + +$params = $displayData->params; +$images = json_decode($displayData->images); + ?> -images); ?> image_intro) && !empty($images->image_intro)) : ?> float_intro)) ? $params->get('float_intro') : $images->float_intro; ?> -
- get('link_titles') && $params->get('access-view')) : ?> - image_intro_caption): - echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; - endif; ?> - src="image_intro); ?>" alt="image_intro_alt); ?>" itemprop="thumbnailUrl"/> - image_intro_caption): - echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; - endif; ?> - src="image_intro); ?>" alt="image_intro_alt); ?>" itemprop="thumbnailUrl"/> - -
+
+ image_intro_caption) : ?> + image_intro_caption) .'"'; ?> + + src="image_intro); ?>" alt="image_intro_alt); ?>"/> + image_intro_caption) : ?> +
image_intro_caption); ?>
+ +
diff --git a/libraries/cms/html/behavior.php b/libraries/cms/html/behavior.php index 1c07cf22c1fbc..aa1ef7cddd856 100644 --- a/libraries/cms/html/behavior.php +++ b/libraries/cms/html/behavior.php @@ -99,9 +99,13 @@ public static function core() * @return void * * @since 1.5 + * + * @deprecated 4.0 Use the layout (layouts/joomla/content/intro_image.php) instead */ public static function caption($selector = 'img.caption') { + JLog::add('The use of caption is deprecated use the layout (layouts/joomla/content/intro_image.php) instead.', JLog::WARNING, 'deprecated'); + // Only load once if (isset(static::$loaded[__METHOD__][$selector])) { @@ -136,7 +140,7 @@ public static function caption($selector = 'img.caption') * * @since 1.5 * - * @Deprecated 3.4 Use formvalidator instead + * @deprecated 4.0 Use formvalidator instead */ public static function formvalidation() {