Beispiel #1
1
 public static function &getButtons()
 {
     if (empty(self::$buttons)) {
         self::$buttons = array(array('link' => JRoute::_('index.php?option=com_imageshow'), 'image' => 'components/com_imageshow/assets/images/icons-48/icon-off.png', 'text' => JText::_('LAUNCH_PAD'), 'extra_text' => ''), array('link' => JRoute::_('index.php?option=com_imageshow&controller=showlist'), 'image' => 'components/com_imageshow/assets/images/icons-48/icon-file.png', 'text' => JText::_('SHOWLISTS_MANAGER'), 'extra_text' => ''), array('link' => JRoute::_('index.php?option=com_imageshow&controller=showlist&task=add'), 'image' => 'components/com_imageshow/assets/images/icons-48/icon-add-file.png', 'text' => JText::_('ADD_NEW_SHOWLISTS'), 'extra_text' => ''), array('link' => JRoute::_('index.php?option=com_imageshow&controller=showcase'), 'image' => 'components/com_imageshow/assets/images/icons-48/icon-monitor.png', 'text' => JText::_('SHOWCASES_MANAGER'), 'extra_text' => ''), array('link' => JRoute::_('index.php?option=com_imageshow&controller=showcase&task=add'), 'image' => 'components/com_imageshow/assets/images/icons-48/icon-add-monitor.png', 'text' => JText::_('ADD_NEW_SHOWCASES'), 'extra_text' => ''), array('link' => JRoute::_('index.php?option=com_imageshow&controller=about'), 'image' => 'components/com_imageshow/assets/images/icons-48/icon-star.png', 'text' => JText::_('ABOUT'), 'extra_text' => ''));
     }
     return self::$buttons;
 }
Beispiel #2
0
<?php

/**
 * @author JoomlaShine.com Team
 * @copyright JoomlaShine.com
 * @link joomlashine.com
 * @package JSN ImageShow
 * @version $Id: default.php 6505 2011-05-31 11:01:31Z trungnq $
 * @license GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
 */
defined('_JEXEC') or die('Restricted access');
$lang = JFactory::getLanguage();
$document = JFactory::getDocument();
$lang->load('mod_imageshow_quickicon');
$document->addStyleSheet(JURI::root(true) . '/administrator/modules/mod_imageshow_quickicon/assets/css/mod_imageshow_quickicon.css');
$buttons = modImageShowQuickIconHelper::getButtons();
?>
<div class="row-striped">
	<div class="row-fluid">
		<div class="span12">
			<?php 
foreach ($buttons as $button) {
    echo modImageShowQuickIconHelper::button($button);
}
?>
		</div>
	</div>
</div>
<?php

/**
 * @author JoomlaShine.com Team
 * @copyright JoomlaShine.com
 * @link joomlashine.com
 * @package JSN ImageShow
 * @version $Id: mod_imageshow_quickicon.php 6505 2011-05-31 11:01:31Z trungnq $
 * @license GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
 */
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filesystem.file');
if (!defined('DS')) {
    define('DS', DIRECTORY_SEPARATOR);
}
require_once dirname(__FILE__) . '/helper.php';
$fileFactory = JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_imageshow' . DS . 'classes' . DS . 'jsn_is_factory.php';
if (JFile::exists($fileFactory)) {
    require_once $fileFactory;
    require JModuleHelper::getLayoutPath('mod_imageshow_quickicon', $params->get('layout', 'default'));
} else {
    modImageShowQuickIconHelper::approveModule('mod_imageshow_quickicon', 0);
}