[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_content/tmpl/archive/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_content
   6   *
   7   * @copyright   (C) 2006 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\Language\Text;
  14  use Joomla\CMS\Router\Route;
  15  
  16  ?>
  17  <div class="com-content-archive archive">
  18  <?php if ($this->params->get('show_page_heading')) : ?>
  19      <div class="page-header">
  20          <h1>
  21              <?php echo $this->escape($this->params->get('page_heading')); ?>
  22          </h1>
  23      </div>
  24  <?php endif; ?>
  25  
  26  <form id="adminForm" action="<?php echo Route::_('index.php'); ?>" method="post" class="com-content-archive__form">
  27      <fieldset class="com-content-archive__filters filters">
  28      <div class="filter-search form-inline">
  29          <?php if ($this->params->get('filter_field') !== 'hide') : ?>
  30          <div class="me-2">
  31              <label class="filter-search-lbl visually-hidden" for="filter-search"><?php echo Text::_('COM_CONTENT_TITLE_FILTER_LABEL') . '&#160;'; ?></label>
  32              <input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->filter); ?>" class="inputbox col-md-2" onchange="document.getElementById('adminForm').submit();" placeholder="<?php echo Text::_('COM_CONTENT_TITLE_FILTER_LABEL'); ?>">
  33          </div>
  34          <?php endif; ?>
  35  
  36          <span class="me-2">
  37          <?php echo $this->form->monthField; ?>
  38          </span>
  39          <span class="me-2">
  40          <?php echo $this->form->yearField; ?>
  41          </span>
  42          <span class="me-2">
  43          <?php echo $this->form->limitField; ?>
  44          </span>
  45  
  46          <button type="submit" class="btn btn-primary" style="vertical-align: top;"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
  47          <input type="hidden" name="view" value="archive">
  48          <input type="hidden" name="option" value="com_content">
  49          <input type="hidden" name="limitstart" value="0">
  50      </div>
  51      </fieldset>
  52  </form>
  53  <?php echo $this->loadTemplate('items'); ?>
  54  </div>


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