/** * Set component submenu. * * @param string $view opened view page * @return void */ public static function setSubmenu($view = JOOMDOC_JOOMDOC, $asJ3Sidebar = false) { if ($asJ3Sidebar and JOOMDOC_ISJ3) { //J3: if we want to add own things to sidebar, we need to set up own html grid-12, so build own left submenu, which we will display $object = 'JHtmlSidebar'; } else { //else (if j3), its added to default submenu which is displayed as left sidebar automatically $object = 'JSubMenuHelper'; } $object::addEntry(JText::_('JOOMDOC_CONTROL_PANEL'), JoomDOCRoute::viewJoomDOC(), $view == JOOMDOC_JOOMDOC); $object::addEntry(JText::_('JOOMDOC_DOCUMENTS'), JoomDOCRoute::viewDocuments(), $view == JOOMDOC_DOCUMENTS); $object::addEntry(JText::_('JOOMDOC_LICENSES'), JoomDOCRoute::viewLicenses(), $view == JOOMDOC_LICENSES); if (JFactory::getUser()->authorise('core.managafields', 'com_joomdoc')) { $object::addEntry(JText::_('JOOMDOC_FIELDS'), JoomDOCRoute::viewFields(), $view == JOOMDOC_FIELDS); } $object::addEntry(JText::_('JOOMDOC_UPGRADE'), JoomDOCRoute::viewUpgrade(), $view == JOOMDOC_UPGRADE); $object::addEntry(JText::_('JOOMDOC_MIGRATION'), JoomDOCRoute::viewMigration(), $view == JOOMDOC_MIGRATION); }
echo JHtmlJoomDOC::addTab('COM_DOC_JOOMDOC_CONFIGURATION', 'documents', 'doc-cpanel-tabs'); echo '<div class="icon-wrapper">'; echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_DOCUMENTS') . '">'; echo '<a href="' . JRoute::_(JoomDOCRoute::viewDocuments()) . '" title="" >'; echo '<img src="' . JOOMDOC_IMAGES . 'icon-48-documents.png" alt="" />'; echo '<span>' . JText::_('JOOMDOC_DOCUMENTS') . '</span>'; echo '</a>'; echo '</div>'; echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_LICENSES') . '">'; echo '<a href="' . JRoute::_(JoomDOCRoute::viewLicenses()) . '" title="" >'; echo '<img src="' . JOOMDOC_IMAGES . 'icon-48-license.png" alt="" />'; echo '<span>' . JText::_('JOOMDOC_LICENSES') . '</span>'; echo '</a>'; echo '</div>'; echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_CUSTOM_FIELDS') . '">'; echo '<a href="' . JRoute::_(JoomDOCRoute::viewFields()) . '" title="" >'; echo '<img src="' . JOOMDOC_IMAGES . 'icon-48-field.png" alt="" />'; echo '<span>' . JText::_('JOOMDOC_CUSTOM_FIELDS') . '</span>'; echo '</a>'; echo '</div>'; echo '</div>'; echo JHtmlJoomDOC::endTab(); echo JHtmlJoomDOC::addTab('COM_DOC_UPGR', 'upgrade', 'doc-cpanel-tabs'); echo '<div class="icon-wrapper" style="float: left">'; echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_UPGRADE') . '">'; echo '<a href="' . JRoute::_(JoomDOCRoute::viewUpgrade()) . '" title="" >'; echo '<img src="' . JOOMDOC_IMAGES . 'icon-48-upgrade.png" alt="" />'; echo '<span>' . JText::_('JOOMDOC_UPGRADE') . '</span>'; echo '</a>'; echo '</div>'; echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_MIGRATION') . '">';
* @author ARTIO s.r.o., info@artio.net, http:://www.artio.net * @copyright Copyright (C) 2011 Artio s.r.o.. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; JHtml::_('behavior.multiselect'); $user = JFactory::getUser(); $userId = $user->get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $saveOrder = $listOrder == 'a.ordering'; ?> <form action="<?php echo JRoute::_(JoomDOCRoute::viewFields()); ?> " method="post" name="adminForm" id="adminForm"> <fieldset id="filter-bar" class="btn-toolbar filter-bar"> <div class="filter-search fltlft btn-group pull-left input-append"> <?php if (!JOOMDOC_ISJ3) { ?> <label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?> </label> <?php } ?> <input type="text" name="filter_search" id="filter_search" value="<?php