/** * CSVI VirtueMart view display method * * @return void */ function display($tpl = null) { // Show the toolbar JToolBarHelper::title(JText::_('COM_CSVI_CONTROL_PANEL'), 'csvi_logo_48.png'); // Options button. if (JFactory::getUser()->authorise('core.admin', 'com_csvi')) { JToolBarHelper::preferences('com_csvi'); } //JToolBarHelper::help('control_panel.html', true); // Assign data for display $helper = new CsviHelper(); $this->cpanel_images = $helper->getButtons(); // Display the page parent::display($tpl); }
/** * CSVI Form helper * * @package CSVI * @author Roland Dalmulder * @link http://www.csvimproved.com * @copyright Copyright (C) 2006 - 2012 RolandD Cyber Produksi * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * @version $Id: panel.php 1924 2012-03-02 11:32:38Z RolandD $ */ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); $jinput = JFactory::getApplication()->input; // Check if we are running cron, no need to show the panel if (!$jinput->get('cron', false, 'bool')) { $helper = new CsviHelper(); $buttons = $helper->getButtons(); // Create the top slider $topmenu = '<div id="panel-container"><div id="slide-menu"> <div id="top-panel"><div id="main"> <div id="cpanel">'; $topmenu .= $buttons->process; $topmenu .= $buttons->replacements; $topmenu .= $buttons->log; $topmenu .= $buttons->maintenance; $topmenu .= $buttons->availablefields; $topmenu .= '</div></div></div> <div id="sub-panel"> <a href="#" id="toggle"><span id="shText">' . JText::_('COM_CSVI_SHOW_PANEL') . '</span></a> </div> </div></div>'; $topmenu = preg_replace("/(\\s\\s+)/", ' ', $topmenu);