31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-05-28 11:30:47 +00:00

Add icons for admin menu and toolbar

This commit is contained in:
Nikolai Plath 2011-10-15 17:02:31 -05:00
parent 1037d7f22d
commit 3bb367319f
4 changed files with 7 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -27,12 +27,13 @@
<filename>patchtester.php</filename>
</files>
<administration>
<menu img="class:patchtester">com_patchtester</menu>
<menu img="components/com_patchtester/assets/images/icon-16-patchtester.png">com_patchtester</menu>
<files folder="admin">
<filename>access.xml</filename>
<filename>config.xml</filename>
<filename>controller.php</filename>
<filename>patchtester.php</filename>
<folder>assets</folder>
<folder>controllers</folder>
<folder>models</folder>
<folder>sql</folder>

View File

@ -44,7 +44,11 @@ class PatchtesterViewPulls extends JView
*/
protected function addToolbar()
{
JToolBarHelper::title('Joomla! Patch Tester');
JToolBarHelper::title('Joomla! Patch Tester', 'patchtester');
JToolBarHelper::preferences('com_patchtester');
JFactory::getDocument()->addStyleDeclaration(
'.icon-48-patchtester {background-image: url(components/com_patchtester/assets/images/icon-48-patchtester.png);}'
);
}
}