diff --git a/administrator/modules/mod_quickicon/helper.php b/administrator/modules/mod_quickicon/helper.php index 9e89ad167cd..128567bbb01 100644 --- a/administrator/modules/mod_quickicon/helper.php +++ b/administrator/modules/mod_quickicon/helper.php @@ -51,72 +51,84 @@ abstract class modQuickIconHelper array( 'link' => JRoute::_('index.php?option=com_content&task=article.add'), 'image' => 'file-add', + 'icon' => 'header/icon-48-article-add.png', 'text' => JText::_('MOD_QUICKICON_ADD_NEW_ARTICLE'), 'access' => array('core.manage', 'com_content', 'core.create', 'com_content', ) ), array( 'link' => JRoute::_('index.php?option=com_content'), 'image' => 'pencil-2', + 'icon' => 'header/icon-48-article.png', 'text' => JText::_('MOD_QUICKICON_ARTICLE_MANAGER'), 'access' => array('core.manage', 'com_content') ), array( 'link' => JRoute::_('index.php?option=com_categories&extension=com_content'), 'image' => 'folder', + 'icon' => 'header/icon-48-category.png', 'text' => JText::_('MOD_QUICKICON_CATEGORY_MANAGER'), 'access' => array('core.manage', 'com_content') ), array( 'link' => JRoute::_('index.php?option=com_media'), 'image' => 'pictures', + 'icon' => 'header/icon-48-media.png', 'text' => JText::_('MOD_QUICKICON_MEDIA_MANAGER'), 'access' => array('core.manage', 'com_media') ), array( 'link' => JRoute::_('index.php?option=com_menus'), 'image' => 'list-view', + 'icon' => 'header/icon-48-menumgr.png', 'text' => JText::_('MOD_QUICKICON_MENU_MANAGER'), 'access' => array('core.manage', 'com_menus') ), array( 'link' => JRoute::_('index.php?option=com_users'), 'image' => 'address', + 'icon' => 'header/icon-48-user.png', 'text' => JText::_('MOD_QUICKICON_USER_MANAGER'), 'access' => array('core.manage', 'com_users') ), array( 'link' => JRoute::_('index.php?option=com_modules'), 'image' => 'cube', + 'icon' => 'header/icon-48-module.png', 'text' => JText::_('MOD_QUICKICON_MODULE_MANAGER'), 'access' => array('core.manage', 'com_modules') ), array( 'link' => JRoute::_('index.php?option=com_installer'), 'image' => 'puzzle', + 'icon' => 'header/icon-48-extension.png', 'text' => JText::_('MOD_QUICKICON_EXTENSION_MANAGER'), 'access' => array('core.manage', 'com_installer') ), array( 'link' => JRoute::_('index.php?option=com_languages'), 'image' => 'comments-2', + 'icon' => 'header/icon-48-language.png', 'text' => JText::_('MOD_QUICKICON_LANGUAGE_MANAGER'), 'access' => array('core.manage', 'com_languages') ), array( 'link' => JRoute::_('index.php?option=com_config'), 'image' => 'cog', + 'icon' => 'header/icon-48-config.png', 'text' => JText::_('MOD_QUICKICON_GLOBAL_CONFIGURATION'), 'access' => array('core.manage', 'com_config', 'core.admin', 'com_config') ), array( 'link' => JRoute::_('index.php?option=com_templates'), 'image' => 'eye', + 'icon' => 'header/icon-48-themes.png', 'text' => JText::_('MOD_QUICKICON_TEMPLATE_MANAGER'), 'access' => array('core.manage', 'com_templates') ), array( 'link' => JRoute::_('index.php?option=com_admin&task=profile.edit&id='.JFactory::getUser()->id), 'image' => 'vcard', + 'icon' => 'header/icon-48-user-profile.png', 'text' => JText::_('MOD_QUICKICON_PROFILE'), 'access' => true ), diff --git a/administrator/templates/hathor/cpanel.php b/administrator/templates/hathor/cpanel.php index 68c4c7a7266..bd4efad327e 100644 --- a/administrator/templates/hathor/cpanel.php +++ b/administrator/templates/hathor/cpanel.php @@ -158,7 +158,7 @@ else
-
+
countModules('icon') > 1):?> 1));?> diff --git a/administrator/templates/hathor/css/template.css b/administrator/templates/hathor/css/template.css index b296f9fd2bc..750727f8e72 100644 --- a/administrator/templates/hathor/css/template.css +++ b/administrator/templates/hathor/css/template.css @@ -925,10 +925,10 @@ h3.pane-toggler a:focus { .pane-slider.pane-hide { display: none; } -div#position-icon.pane-sliders div.pane-down div.icon-wrapper { +div#position-icon.pane-sliders div.pane-down div.quickicon-wrapper { margin: 5px 0 5px 0; } -div#position-icon.pane-sliders div.pane-down .icon-wrapper .icon { +div#position-icon.pane-sliders div.pane-down .quickicon-wrapper .icon { padding: 5px 0 5px 10px; margin: 0; } @@ -1162,10 +1162,11 @@ p.tab-description { text-align: center; } div.cpanel-icons { + width: 54%; float: left; } div.cpanel-component { - width: 75%; + width: 45%; float: right; } div.col { diff --git a/administrator/templates/hathor/html/layouts/joomla/quickicons/icon.php b/administrator/templates/hathor/html/layouts/joomla/quickicons/icon.php new file mode 100644 index 00000000000..e4b343c2d96 --- /dev/null +++ b/administrator/templates/hathor/html/layouts/joomla/quickicons/icon.php @@ -0,0 +1,26 @@ +escape($displayData['title']) . '"'); +$text = empty($displayData['text']) ? '' : ('' . $displayData['text'] . '') + +?> +
> + +
diff --git a/administrator/templates/hathor/html/layouts/joomla/quickicons/index.html b/administrator/templates/hathor/html/layouts/joomla/quickicons/index.html new file mode 100644 index 00000000000..2efb97f319a --- /dev/null +++ b/administrator/templates/hathor/html/layouts/joomla/quickicons/index.html @@ -0,0 +1 @@ + diff --git a/administrator/templates/hathor/html/mod_quickicon/default.php b/administrator/templates/hathor/html/mod_quickicon/default.php new file mode 100644 index 00000000000..63eab0bc0e4 --- /dev/null +++ b/administrator/templates/hathor/html/mod_quickicon/default.php @@ -0,0 +1,18 @@ + + +
+ +
+ diff --git a/administrator/templates/hathor/html/mod_quickicon/index.html b/administrator/templates/hathor/html/mod_quickicon/index.html new file mode 100644 index 00000000000..2efb97f319a --- /dev/null +++ b/administrator/templates/hathor/html/mod_quickicon/index.html @@ -0,0 +1 @@ + diff --git a/administrator/templates/hathor/less/template.less b/administrator/templates/hathor/less/template.less index 2784e476bbf..449483350ae 100644 --- a/administrator/templates/hathor/less/template.less +++ b/administrator/templates/hathor/less/template.less @@ -503,11 +503,11 @@ h3.pane-toggler a:focus { display: none; } -div#position-icon.pane-sliders div.pane-down div.icon-wrapper { +div#position-icon.pane-sliders div.pane-down div.quickicon-wrapper { margin: 5px 0 5px 0; } -div#position-icon.pane-sliders div.pane-down .icon-wrapper .icon { +div#position-icon.pane-sliders div.pane-down .quickicon-wrapper .icon { padding: 5px 0 5px 10px; margin: 0; } @@ -796,11 +796,12 @@ p.tab-description { } div.cpanel-icons { + width: 54%; float: left; } div.cpanel-component { - width: 75%; + width: 45%; float: right; } diff --git a/installation/CHANGELOG b/installation/CHANGELOG index 8b4564632e2..fc1fb97dd81 100644 --- a/installation/CHANGELOG +++ b/installation/CHANGELOG @@ -31,7 +31,7 @@ $ -> Language fix or change # [#29737] If a user is blocked while logged in, he or she stays logged in. Thanks Alexander # [#29736] Bootstrap carousel undefined method JHtmlBootstrap::_getJSObject in bootstrap.php. Thanks Michael and Robert. # [#30063] Disabled template positions shown in module available positions. Thanks Roberto - #$ [#30079] * Improving cookie handling in languagefilter plugin + ^+ [#29896] Switch JHtmlIcons to render with JLayout, update quickicons module to suit. Thanks Michael. 06-February-2013 Jean-Marie Simonet # [#29965] Add pagination in COM_SEARCH component diff --git a/layouts/joomla/quickicons/icon.php b/layouts/joomla/quickicons/icon.php new file mode 100644 index 00000000000..0ff6cf8e871 --- /dev/null +++ b/layouts/joomla/quickicons/icon.php @@ -0,0 +1,25 @@ +escape($displayData['title']) . '"'); +$text = empty($displayData['text']) ? '' : ('' . $displayData['text'] . '') + +?> +
> +
+ > + + +
+
diff --git a/layouts/joomla/quickicons/index.html b/layouts/joomla/quickicons/index.html new file mode 100644 index 00000000000..2efb97f319a --- /dev/null +++ b/layouts/joomla/quickicons/index.html @@ -0,0 +1 @@ + diff --git a/libraries/cms/html/icons.php b/libraries/cms/html/icons.php index 7c8595f1c67..985e9295e53 100644 --- a/libraries/cms/html/icons.php +++ b/libraries/cms/html/icons.php @@ -72,18 +72,8 @@ abstract class JHtmlIcons } } - $html[] = '
'; - $html[] = ''; - $html[] = '
'; - return implode($html); + // Instantiate a new JLayoutFile instance and render the layout + $layout = new JLayoutFile('joomla.quickicons.icon'); + return $layout->render($button); } } diff --git a/plugins/quickicon/extensionupdate/extensionupdate.php b/plugins/quickicon/extensionupdate/extensionupdate.php index 7500bcccbcb..cf26785574c 100644 --- a/plugins/quickicon/extensionupdate/extensionupdate.php +++ b/plugins/quickicon/extensionupdate/extensionupdate.php @@ -65,6 +65,7 @@ class plgQuickiconExtensionupdate extends JPlugin return array(array( 'link' => 'index.php?option=com_installer&view=update', 'image' => 'asterisk', + 'icon' => 'header/icon-48-extension.png', 'text' => JText::_('PLG_QUICKICON_EXTENSIONUPDATE_CHECKING'), 'id' => 'plg_quickicon_extensionupdate' )); diff --git a/plugins/quickicon/joomlaupdate/joomlaupdate.php b/plugins/quickicon/joomlaupdate/joomlaupdate.php index 26164f94f6b..e312a0f65be 100644 --- a/plugins/quickicon/joomlaupdate/joomlaupdate.php +++ b/plugins/quickicon/joomlaupdate/joomlaupdate.php @@ -72,6 +72,7 @@ class plgQuickiconJoomlaupdate extends JPlugin return array(array( 'link' => 'index.php?option=com_joomlaupdate', 'image' => 'download', + 'icon' => 'header/icon-48-download.png', 'text' => JText::_('PLG_QUICKICON_JOOMLAUPDATE_CHECKING'), 'id' => 'plg_quickicon_joomlaupdate' ));