NexusLeads Webshell
NexusLeads


Server : LiteSpeed
System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : alsaif ( 1057)
PHP Version : 7.4.33
Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/alsaif/domains/alsaif.group/public_html/plugins/fields/acfiframe/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/domains/alsaif.group/public_html/plugins/fields/acfiframe/tmpl/acfiframe.php
<?php

/**
 * @package         Advanced Custom Fields
 * @version         2.8.9 Free
 *
 * @author          Tassos Marinos <info@tassos.gr>
 * @link            http://www.tassos.gr
 * @copyright       Copyright © 2019 Tassos Marinos All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
 */

defined('_JEXEC') or die;

if (!$iframe = $field->value)
{
	return;
}

$buffer = '';

// Setup Variables
$id        = 'acf_iframe_' . $item->id . '_' . $field->id;
$height    = $fieldParams->get('iframeheight', '500px');
$scrolling = $fieldParams->get('iframescrolling', 'auto');
$params    = $fieldParams->get('iframeparams', 'auto');
$async     = (bool) $fieldParams->get('iframeasync', false);

// Output
$content = '
	<iframe
		src="' . $iframe . '"
		width="100%"
		height="' . $height . '"
		scrolling="' . $scrolling . '"
		' . $params . '
		frameborder="0"
		allowtransparency="true"
		allowfullscreen>
	</iframe>
';

$buffer .= '<div class="acf_iframe_wrapper" id="' . $id . '">';

//if not async
if (!$async) {
	$buffer .= $content;
}
 
$buffer .= '</div>';

echo $buffer;

// if async
// We can't use addScriptDeclaration() here due to a bug which is fires twices the same event.
// https://github.com/joomla/joomla-cms/issues/21004
if ($async) {
	echo '<script>
		jQuery(function($) {
			var container  = $("#' . $id . '.acf_iframe_wrapper");
			var content    = ' . json_encode($content) .';

			$(window).on("load", function() {
				container.html(content);
			})
		});</script>';
}

NexusLeads