Ejemplo n.º 1
0
 /**
  * Helper method to return button list.
  *
  * This method returns the array by reference so it can be
  * used to add custom buttons or remove default ones.
  *
  * @return	array	An array of buttons
  */
 public static function &getButtons()
 {
     if (empty(self::$buttons)) {
         self::$buttons = array(array('link' => JRoute::_('index.php?option=com_content&task=article.add'), 'image' => 'icon-48-article-add.png', 'text' => JText::_('Add_New_Article')), array('link' => JRoute::_('index.php?option=com_content'), 'image' => 'icon-48-article.png', 'text' => JText::_('Article_Manager')), array('link' => JRoute::_('index.php?option=com_categories&extension=com_content'), 'image' => 'icon-48-category.png', 'text' => JText::_('Category_Manager')), array('link' => JRoute::_('index.php?option=com_media'), 'image' => 'icon-48-media.png', 'text' => JText::_('Media_Manager')), array('link' => JRoute::_('index.php?option=com_menus'), 'image' => 'icon-48-menumgr.png', 'text' => JText::_('Menu_Manager'), 'access' => 'core.menus.manage'), array('link' => JRoute::_('index.php?option=com_users'), 'image' => 'icon-48-user.png', 'text' => JText::_('User_Manager'), 'access' => 'core.users.manage'), array('link' => JRoute::_('index.php?option=com_modules'), 'image' => 'icon-48-module.png', 'text' => JText::_('Module_Manager')), array('link' => JRoute::_('index.php?option=com_installer'), 'image' => 'icon-48-extension.png', 'text' => JText::_('Extension_Manager')));
     }
     return self::$buttons;
 }
Ejemplo n.º 2
0
 /**
  * Helper method to return button list.
  *
  * This method returns the array by reference so it can be
  * used to add custom buttons or remove default ones.
  *
  * @return	array	An array of buttons
  * @since	1.6
  */
 public static function &getButtons()
 {
     if (empty(self::$buttons)) {
         self::$buttons = array(array('link' => JRoute::_('index.php?option=com_playjoom&view=audiotracks'), 'params' => null, 'imagePath' => '/administrator/components/com_playjoom/images/header/', 'image' => 'icon-48-tracks-managment.gif', 'text' => JText::_('COM_PLAYJOOM_AUDIOTRACK_MANAGER_PLAYJOOM'), 'access' => array('core.manage', 'com_content', 'core.create', 'com_content')), array('link' => JRoute::_('index.php?option=com_playjoom&view=artists'), 'params' => null, 'imagePath' => '/administrator/components/com_playjoom/images/header/', 'image' => 'icon-48-artists-managment.gif', 'text' => JText::_('COM_PLAYJOOM_ARTIST_MANAGER_PLAYJOOM'), 'access' => array('core.manage', 'com_content')), array('link' => JRoute::_('index.php?option=com_playjoom&view=albums'), 'params' => null, 'imagePath' => '/administrator/components/com_playjoom/images/header/', 'image' => 'icon-48-albums-managment.gif', 'text' => JText::_('COM_PLAYJOOM_ALBUM_MANAGER_PLAYJOOM'), 'access' => array('core.manage', 'com_content')), array('link' => JRoute::_('index.php?option=com_playjoom&view=covers'), 'params' => null, 'imagePath' => '/administrator/components/com_playjoom/images/header/', 'image' => 'icon-48-cover-managment.gif', 'text' => JText::_('COM_PLAYJOOM_COVER_MANAGER_PLAYJOOM'), 'access' => array('core.manage', 'com_media')), array('link' => JRoute::_('index.php?option=com_categories&view=categories&extension=com_playjoom'), 'params' => null, 'imagePath' => '/administrator/components/com_playjoom/images/header/', 'image' => 'icon-48-category.png', 'text' => JText::_('COM_PLAYJOOM_CATEGORY_MANAGER_PLAYJOOM'), 'access' => array('core.manage', 'com_menus')), array('link' => JRoute::_('index.php?option=com_categories&view=categories&extension=com_playjoom.playlist'), 'params' => null, 'imagePath' => '/administrator/components/com_playjoom/images/header/', 'image' => 'icon-48-category.png', 'text' => JText::_('COM_PLAYJOOM_PLAYLIST_CATEGORY_MANAGER_PLAYJOOM'), 'access' => array('core.manage', 'com_menus')), array('link' => JRoute::_('index.php?option=com_config&view=component&component=com_playjoom'), 'params' => null, 'imagePath' => '/administrator/components/com_playjoom/images/header/', 'image' => 'icon-32-config.png', 'text' => JText::_('COM_PLAYJOOM_PLAYJOOM_OPTIONS'), 'access' => array('core.manage', 'com_config', 'core.admin', 'com_config')));
     }
     return self::$buttons;
 }
Ejemplo n.º 3
0
 * of works licensed under the GNU General Public License or other free or open
 * source software licenses. See COPYRIGHT.php for copyright notices and
 * details.
 *
 * @PlayJoom Component
 * @copyright Copyright (C) 2010-2012 by www.teglo.info
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @date $Date: 2012-05-06 13:09:02 +0200 (So, 06 Mai 2012) $
 * @revision $Revision: 522 $
 * @author $Author: toto $
 * @headurl $HeadURL: http://dev.teglo.info/svn/playjoom/administrator/components/com_playjoom/views/cpanel/tmpl/default.php $
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla view library
jimport('joomla.application.component.view');
require_once dirname(__FILE__) . '/helper.php';
$buttons = QuickIconHelper::getButtons();
echo '<div class="row-striped">';
echo '<div id="cpanel">';
foreach ($buttons as $button) {
    echo '<div class="row-fluid">';
    echo '<div class="span12">';
    echo '<a href="' . $button['link'] . '" ' . $button['params'] . '>';
    echo '<img src="' . JURI::root(true) . $button['imagePath'] . $button['image'] . '" alt="' . $button['image'] . '"/>';
    echo '<span>' . $button['text'] . '</span></a>';
    echo '</div>';
    echo '</div>';
}
echo '</div>';
echo '</div>';
Ejemplo n.º 4
0
<?php
/**
 * @version		$Id: default.php 14276 2010-01-18 14:20:28Z louis $
 * @package		Joomla.Administrator
 * @subpackage	mod_quickicon
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

$buttons = QuickIconHelper::getButtons();
?>
<div id="cpanel">
<ul>
<?php
foreach ($buttons as $button):
	echo QuickIconHelper::button($button);
endforeach;
?>
</ul>
</div>