[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_content/tmpl/featured/ -> 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  ?>
  14  <div class="blog-featured" itemscope itemtype="https://schema.org/Blog">
  15      <?php if ($this->params->get('show_page_heading') != 0) : ?>
  16      <div class="page-header">
  17          <h1>
  18          <?php echo $this->escape($this->params->get('page_heading')); ?>
  19          </h1>
  20      </div>
  21      <?php endif; ?>
  22  
  23      <?php if (!empty($this->lead_items)) : ?>
  24          <div class="blog-items items-leading <?php echo $this->params->get('blog_class_leading'); ?>">
  25              <?php foreach ($this->lead_items as &$item) : ?>
  26                  <div class="blog-item"
  27                      itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  28                          <?php
  29                          $this->item = & $item;
  30                          echo $this->loadTemplate('item');
  31                          ?>
  32                  </div>
  33              <?php endforeach; ?>
  34          </div>
  35      <?php endif; ?>
  36  
  37      <?php if (!empty($this->intro_items)) : ?>
  38          <?php $blogClass = $this->params->get('blog_class', ''); ?>
  39          <?php if ((int) $this->params->get('num_columns') > 1) : ?>
  40              <?php $blogClass .= (int) $this->params->get('multi_column_order', 0) === 0 ? ' masonry-' : ' columns-'; ?>
  41              <?php $blogClass .= (int) $this->params->get('num_columns'); ?>
  42          <?php endif; ?>
  43          <div class="blog-items <?php echo $blogClass; ?>">
  44          <?php foreach ($this->intro_items as $key => &$item) : ?>
  45              <div class="blog-item"
  46                  itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  47                      <?php
  48                      $this->item = & $item;
  49                      echo $this->loadTemplate('item');
  50                      ?>
  51              </div>
  52          <?php endforeach; ?>
  53          </div>
  54      <?php endif; ?>
  55  
  56      <?php if (!empty($this->link_items)) : ?>
  57          <div class="items-more">
  58              <?php echo $this->loadTemplate('links'); ?>
  59          </div>
  60      <?php endif; ?>
  61  
  62      <?php if ($this->params->def('show_pagination', 2) == 1  || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?>
  63          <div class="w-100">
  64              <?php if ($this->params->def('show_pagination_results', 1)) : ?>
  65                  <p class="counter float-end pt-3 pe-2">
  66                      <?php echo $this->pagination->getPagesCounter(); ?>
  67                  </p>
  68              <?php endif; ?>
  69              <?php echo $this->pagination->getPagesLinks(); ?>
  70          </div>
  71      <?php endif; ?>
  72  
  73  </div>


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