[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_wrapper/tmpl/wrapper/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_wrapper
   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  
  15  $this->document->getWebAssetManager()
  16      ->registerAndUseScript('com_wrapper.iframe', 'com_wrapper/iframe-height.min.js', [], ['defer' => true]);
  17  
  18  ?>
  19  <div class="com-wrapper contentpane">
  20      <?php if ($this->params->get('show_page_heading')) : ?>
  21          <div class="page-header">
  22              <h1>
  23                  <?php if ($this->escape($this->params->get('page_heading'))) : ?>
  24                      <?php echo $this->escape($this->params->get('page_heading')); ?>
  25                  <?php else : ?>
  26                      <?php echo $this->escape($this->params->get('page_title')); ?>
  27                  <?php endif; ?>
  28              </h1>
  29          </div>
  30      <?php endif; ?>
  31      <iframe <?php echo $this->wrapper->load; ?>
  32          id="blockrandom"
  33          name="iframe"
  34          src="<?php echo $this->escape($this->wrapper->url); ?>"
  35          width="<?php echo $this->escape($this->params->get('width')); ?>"
  36          height="<?php echo $this->escape($this->params->get('height')); ?>"
  37          loading="<?php echo $this->params->get('lazyloading', 'lazy'); ?>"
  38          <?php if ($this->escape($this->params->get('page_heading'))) : ?>
  39              title="<?php echo $this->escape($this->params->get('page_heading')); ?>"
  40          <?php else : ?>
  41              title="<?php echo $this->escape($this->params->get('page_title')); ?>"
  42          <?php endif; ?>
  43          class="com-wrapper__iframe wrapper <?php echo $this->pageclass_sfx; ?>">
  44          <?php echo Text::_('COM_WRAPPER_NO_IFRAMES'); ?>
  45      </iframe>
  46  </div>


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