[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_admin/tmpl/help/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_admin
   6   *
   7   * @copyright   (C) 2008 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\Help\Help;
  14  use Joomla\CMS\HTML\HTMLHelper;
  15  use Joomla\CMS\Language\Text;
  16  use Joomla\CMS\Router\Route;
  17  
  18  /** @var \Joomla\Component\Admin\Administrator\View\Help\HtmlView $this */
  19  
  20  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  21  $wa = $this->document->getWebAssetManager();
  22  $wa->useScript('com_admin.admin-help');
  23  
  24  ?>
  25  <form action="<?php echo Route::_('index.php?option=com_admin&amp;view=help'); ?>" method="post" name="adminForm" id="adminForm" class="main-card">
  26      <div class="row mt-sm-3">
  27          <div id="sidebar" class="col-md-3">
  28              <button class="btn btn-sm btn-secondary my-2 options-menu d-md-none" type="button" data-bs-toggle="collapse" data-bs-target=".sidebar-nav" aria-controls="help-index" aria-expanded="false">
  29                   <span class="icon-align-justify" aria-hidden="true"></span>
  30                   <?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?>
  31              </button>
  32              <div class="sidebar-nav" id="help-index">
  33                  <ul class="nav flex-column">
  34                      <li class="item"><?php echo HTMLHelper::_('link', Help::createUrl('Start_Here'), Text::_('COM_ADMIN_START_HERE'), ['target' => 'helpFrame']); ?></li>
  35                      <li class="item"><?php echo HTMLHelper::_('link', 'https://help.joomla.org/proxy?keyref=Help4.x:License', Text::_('COM_ADMIN_LICENSE'), ['target' => 'helpFrame']); ?></li>
  36                      <li class="item"><?php echo HTMLHelper::_('link', Help::createUrl('Glossary'), Text::_('COM_ADMIN_GLOSSARY'), ['target' => 'helpFrame']); ?></li>
  37                      <li class="divider"></li>
  38                      <li class="nav-header"><?php echo Text::_('COM_ADMIN_ALPHABETICAL_INDEX'); ?></li>
  39                      <?php foreach ($this->toc as $k => $v) : ?>
  40                          <li class="item">
  41                              <?php $url = Help::createUrl($k); ?>
  42                              <?php echo HTMLHelper::_('link', $url, $v, ['target' => 'helpFrame']); ?>
  43                          </li>
  44                      <?php endforeach; ?>
  45                  </ul>
  46              </div>
  47          </div>
  48          <div class="col-md-9">
  49              <iframe onLoad="var x = getElementById('help-index'); x.classList.remove('show');" name="helpFrame" title="helpFrame" height="2100px" src="<?php echo $this->page; ?>" class="helpFrame table table-bordered"></iframe>
  50          </div>
  51      </div>
  52      <input class="textarea" type="hidden" name="option" value="com_admin">
  53  </form>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer