Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
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') . '">';
echo '<a href="' . JRoute::_(JoomDOCRoute::viewMigration()) . '" title="" >';
echo '<img src="' . JOOMDOC_IMAGES . 'icon-48-migration.png" alt="" />';
echo '<span>' . JText::_('JOOMDOC_MIGRATION') . '</span>';
echo '</a>';
echo '</div>';
echo '</div>';
echo JHtmlJoomDOC::endTab();
echo JHtmlJoomDOC::addTab('COM_DOC_HANDS', 'help', 'doc-cpanel-tabs');
echo '<div class="icon-wrapper"  style="float: left">';
echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_CHANGELOG') . '">';