* @link http://www.tassos.gr * @copyright Copyright © 2019 Tassos Marinos All Rights Reserved * @license GNU GPLv3 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 = ' '; $buffer .= '
'; //if not async if (!$async) { $buffer .= $content; } $buffer .= '
'; 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 ''; }