first commit
This commit is contained in:
30
modules/mod_wrapper/tmpl/default.php
Normal file
30
modules/mod_wrapper/tmpl/default.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_wrapper
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $app->getDocument()->getWebAssetManager();
|
||||
$wa->registerAndUseScript('com_wrapper.iframe', 'com_wrapper/iframe-height.min.js', [], ['defer' => true]);
|
||||
|
||||
?>
|
||||
<iframe <?php echo $load; ?>
|
||||
id="blockrandom-<?php echo $id; ?>"
|
||||
name="<?php echo $target; ?>"
|
||||
src="<?php echo $url; ?>"
|
||||
width="<?php echo $width; ?>"
|
||||
height="<?php echo $height; ?>"
|
||||
loading="<?php echo $lazyloading; ?>"
|
||||
title="<?php echo $ititle; ?>"
|
||||
class="mod-wrapper wrapper">
|
||||
<?php echo Text::_('MOD_WRAPPER_NO_IFRAMES'); ?>
|
||||
</iframe>
|
||||
Reference in New Issue
Block a user