<?php
defined('_VALID_AI') or die('Direct Access to this location is not allowed.');
?>
<br>
<div>
  <div id="icon-options-general" class="icon_ai">
    <br>
  </div>
  <h2 class="default-h2">
    <?php _e('Basic settings', 'advanced-iframe'); ?></h2>
  <?php
  aiPostboxOpen("id-default-help", "How to insert an iframe", $closedArray);
  ?>
  <p class="shortcode hide-print">
    <?php _e('Please use the following shortcode to add an iframe to your page: ', 'advanced-iframe'); ?><br>
    <?php $securitykeyString = $devOptions['securitykey'] === '' ? '' : ' securitykey="' . $devOptions['securitykey'] . '"'; ?>
    <span> [advanced_iframe<?php echo $securitykeyString; ?>]</span>
    <span class="additional-shortcode">or use the "<strong>Add advanced iframe</strong>" button above the editor or the <strong>Gutenberg block</strong>.</span>

    <?php _e('<br/>Specify at least an url and the size. <strong>You can overwrite all default administration settings by specifying the attribute in the shortcode to create iframes with different settings!</strong>', 'advanced-iframe'); ?>

  </p>
  <p class="hide-print">
    <?php _e('You can also generate a shortcode which does include all settings as shortcode attributes. This shortcode does not use any of the defaults.', 'advanced-iframe'); ?>
    <br><br><input id="gen" class="button-primary" type="button" name="generate"
                   value="Generate a shortcode for the current settings"
                   onclick="aiGenerateShortcode('<?php echo $evanto ? "true" : 'false'; ?>'); jQuery('#jquery-gen').show(); return false;"/>
  </p>
  <div id="jquery-gen" class="hide-print">
    <p class="hide-print">
      <?php _e('Copy the following shortcode to your page:', 'advanced-iframe'); ?>
    </p>
    <p id="gen-shortcode" class="hide-print">
      [advanced_iframe<?php echo $securitykeyString; ?>]
    </p>
  </div>
  <?php
  aiPostboxClose();
  aiPostboxOpen("id-default-examples", "Examples", $closedArray);
  ?>
  <p class="hide-print">
    <?php _e('Examples if you want to use several iframes with different settings. Also read the', 'advanced-iframe'); ?> <a
        target="_blank" href="//www.advanced-iframe.com/advanced-iframe/advanced-iframe-faq">FAQ</a>:
  </p>
  <ul class="hide-print">
    <li>[advanced_iframe<?php echo $securitykeyString; ?> src="https://www.advanced-iframe.com"]</li>
    <li>[advanced_iframe<?php echo $securitykeyString; ?> src="https://www.advanced-iframe.com" width="100%"
      height="600"]
    </li>
    <li>[advanced_iframe<?php echo $securitykeyString; ?> src="https://www.advanced-iframe.com" id="iframe1"
      name="iframe1" width="100%" height="600" ]
    </li>
    <li>[advanced_iframe<?php echo $securitykeyString; ?> id="iframe1" name="iframe1" width="100%"
      height="600"]https://www.advanced-iframe.com[/advanced_iframe]
    </li>
  </ul>
  <?php
  aiPostboxClose();
  aiPostboxOpen("id-default-settings", "Basic settings", $closedArray);
  ?>
  <table class="form-table">
    <?php
    printTextInput(false, $devOptions, __('Security key', 'advanced-iframe'), 'securitykey', __('This is the security key which can be used in the shortcode. This is optional since version 7.5.4. If you set this only users who know the security key can insert an advanced iframe. Also they need to have the minimum user role defined in the options to access a page with an advanced iframe. The key was made optional because many user have not the need of a security key and without the configuration is easier. Because of compatibility reasons security key in a shortcode are ignored if you don\'t define a key here! Shortcode attribute: securitykey=""', 'advanced-iframe'));
    if ($evanto || $isDemo) {

      $extraUserInfo = __(' All data is urlencoded! So do not place whole query strings in extended data but split it properly!', 'advanced-iframe');
      // create the help for userinfo
      $current_user = wp_get_current_user();
      $userinfo_html = __('Click <a href="#" id="user-help-link">here</a> for all values of the current user.', 'advanced-iframe');
      $userinfo_html .= '<span id="user-help">';
      $ovars = get_object_vars($current_user->data);
      foreach ($ovars as $key => $value) {
        if (!is_object($value) && !is_array($value)) {
          $userinfo_html .= $key . " => " . $value . "<br>";
        }
      }
      $userinfo_html .= '</span>' . $extraUserInfo;

      $all_meta_for_user = array_map("aiFirstElement", get_user_meta($current_user->ID));

      $usermeta_html = __('Click <a href="#" id="user-meta-link">here</a> for all values of the current user.', 'advanced-iframe');
      $usermeta_html .= '<span id="meta-help">';
      foreach ($all_meta_for_user as $key => $value) {
        if (!is_object($value) && !is_array($value)) {
          $usermeta_html .= $key . " => " . $value . "<br>";
        }
      }
      $usermeta_html .= '</span>' . $extraUserInfo;
      $src_text = __('Enter the full URL to your page. e.g. https://www.advanced-iframe.com. <strong>Please do not use a different protocol for the iframe: Do not mix http and https if possible! Http pages are NOT shown in https pages.</strong> Please read <a href="//www.advanced-iframe.com/iframe-do-not-mix-http-and-https" target="_blank">this post</a> for details. If you cannot save the full url because of mod_security don\'t specify the protocol (e.g. //www.advanced-iframe.com) or leave this field empty and define the src in the shortcode. Use the free url checker below to make sure that you can include the page. You can add parameters to this url like https://www.advanced-iframe.com/test.php?iframe=true. Then you can check this variable and use it to e.g. hide some elements in the iframe.<br>The pro version has many placeholders (the standalone version has only host and port available) which are replaced on the fly: <span><strong>{site}</strong>: the url to the WordPress root</span><span><strong>{host}</strong>: the current host from the request</span><span><strong>{port}</strong>: the current port from the request</span><span><strong>{userid [,defaultvalue]}</strong>: the id of the current user. The optional default value is used if no user is logged in.</span><span><strong>{username [,defaultvalue]}</strong>: the username of the current user. The optional default value is used if no user is logged in.</span><span><strong>{useremail [,defaultvalue]}</strong>: the e-mail of the current user. The optional default value is used if no user is logged in.</span><span><strong>{adminmail}</strong>: the e-mail of the WordPress admin</span><span><strong>{userinfo-X [,defaultvalue]}</strong>: extract attribute X from get_currentuserinfo. E.g. {userinfo-display_name}.  The optional default value is used if the attribute is not found or set. See <a href="https://codex.wordpress.org/Function_Reference/wp_get_current_user" target="_blank">here</a> for details. ' . $userinfo_html . '</span><span><strong>{usermeta-X [,defaultvalue]}</strong>: extract key X from get_user_meta. E.g. {usermeta-last_name}. The optional default value is used if the attribute is not found or set. See <a href=" https://codex.wordpress.org/Function_Reference/get_user_meta" target="_blank">here</a> for details. ' . $usermeta_html . '</span><span><strong>{href}</strong>: The full url that is shown in the address bar</span><span><strong>{urlpathX}</strong>: the Xth path element from the front. The first path element would be {urlpath1}</span><span><strong>{urlpath-X}</strong>: the Xth path element from behind. The last path element would be {urlpath-1}</span><span><strong>{requesturi}</strong>: The full request uri from the parent is added to the iframe. So everything behind the domain will be added to the iframe! E.g. www.domain.com/abc/cde -> www.iframe.com/abc/cde, www.domain.com/abc/cde/index.php -> www.iframe.com/abc/cde/index.php, www.domain.com/abc/cde/index.php?avc=3 -> www.iframe.com/abc/cde/index.php?abc=3</span><span><strong>{query-X [,defaultvalue]}</strong>: the value of the query parameter sent by GET or POST. ?example=myvalue would be {query-example} -> myvalue. The optional defaultvalue is used if the parameter is not found.</span><span><strong>{timestamp}</strong>: a time stamp which can be used to avoid caching of iframes</span><span><strong>{session_id}</strong>: the current session id if one is available. Otherwise, an empty string.</span><span><strong>{language:xx,yy,zz}</strong>: Replaces the placeholder with the current browser langauge. The comma separated list after the : is the list of supported languages where the first one is the default. E.g. de,en,es will return one of the list. And if the given language is not in the list de is returned.</span><br>Make sure that <strong>no spaces are in the placeholders</strong>. If a placeholder value is not available/set the empty parameter removed from the url. If you like to keep them please use a default value. So ?p1=&p2=2 will be ?p2=2.<br>All placeholders except {site}, {host}, {port} are urlencoded! An example would be src="https://demo.{host}/url?id={userid}". Especially for multi domain installations this is maybe helpful. If no user is logged in the values are empty or 0 for the id.<br>urlpath does extract path elements from the url in the address bar. So {urlpath-1} for the url www.xx.com/a/bb/cc would be cc. All placeholders that cannot be resolved are removed.<br><strong>Shortcodes are supported.</strong> You have to replace the bracket [ with {{ and ] with }}. So if the shortcode is [link] you have to use {{link}} because shortcode attributes which include shortcodes are not supported directly by WordPress. Be aware of single and double quotations: src="https://demo.{{url domain=\'home\'}}/url". So only use \' for attributes of the nested shortcode.<br><strong>BBCode:</strong> If you have special characters e.g. [] in the url you need to use the bbcode style for the url: [advanced_iframe]url[/advanced_iframe].<br><strong>PDF support: </strong>If you include a pdf google doc is used to render the pdf. This solution looks the same on all browsers. If you want to use the native pdf renderer of the browser/your system add NATIVE: before the url. Like NATIVE:https://www.example.com/pdf.pdf.<br>Shortcode attribute: src=""', 'advanced-iframe');
    } else {
      $src_text = __('Enter the full URL to your page. e.g. https://www.advanced-iframe.com. <strong>Please do not use a different protocol for the iframe: Do not mix http and https if possible! Http pages are NOT shown in https pages.</strong> Please read <a href="//www.advanced-iframe.com/iframe-do-not-mix-http-and-https" target="_blank">this post</a> for details. If you cannot save the full url because of mod_security don\'t specify the protocol (e.g. //www.advanced-iframe.com) or leave this field empty and define the src in the shortcode. Also use the free url checker below to make sure that you can include the page. You can also add parameters to this url like https://www.advanced-iframe.com/test.php?iframe=true. Then you can check this variable and use it to e.g. hide some elements in the iframe.', 'advanced-iframe');
    }

    printTextInputSrc(false, $devOptions, __('<b>Url</b>', 'advanced-iframe'), 'src', $src_text, 'text', '//www.advanced-iframe.com/advanced-iframe/advanced-iframe-pro-demo/url-features');
    if ($evanto || $isDemo) {
      printTextInput(true, $devOptions, __('i-20-Hide URL in HTML', 'advanced-iframe'), 'src_hide', __('This feature can hide the real URL by using a page which redirects to the real URL. The input defines the time in seconds the redirect link is valid. 0 creates links that only works once.<br>The browser needs the URL of the iframe to load the content of the iframe. If a user looks at the source code or uses a developer tool to inspect the code he will only see the link to the intermediate page. Please note that users can still use the network tab to find the URL which is really loaded or by using the "view iframe source code" function of the browser! To make it a little bit harder the right click is disabled if you enable this feature.<br>One time links only works if you don\'t use any caching plugin! If you use a caching plugin you can define the time in seconds a link is valid. This hides the URL not as good as before because a user can now copy and the link will still work for the time you have defined it.<br>The plugin does support 2 ways to store the URLs: Database or file. By default, the file advanced-iframe-custom\iframe-data.csv is used to store the URLs. This is very fast but concurrent access to the file can cause issues. By defining |db after the time e.g. 0|db the URLs are temporarily stored in the WordPress database as transients. This solution is very stable, but is also slow (~0.5s). On the demo page you find more details which storage solution could fit best for you. Shortcode attribute: src_hide=""', 'advanced-iframe'), 'text', '//www.advanced-iframe.com/advanced-iframe/advanced-iframe-pro-demo/hide-url-in-html', true);
    }

    ?>
    <tr>
      <th scope="row"><strong><?php _e('Free url checker', 'advanced-iframe'); ?></strong>
      </th>
      <td>
        <?php _e('<strong>Not all pages</strong> can be included in an iframe because they have a header flag this does not allow this. The free iframe checker is already included now in the administration. The <a target="_blank" href="//www.advanced-iframe.com/advanced-iframe/free-iframe-checker/">Free iframe checker</a> page has a 2nd step where you also can see if iframe killer scripts are running!', 'advanced-iframe'); ?></td>
    </tr>
    <?php
    printNumberInputHeightMediaQuery($evanto || $isDemo, false, $devOptions, __('Height', 'advanced-iframe'), 'height', __('The height of the iframe. You can specify the value in px, %, em, pt, vh, vw, rem or ch. If you don\'t specify a unit px is assumed. Please note that % does most of the time does NOT give the expected result (e.g. 100% is only 150px) because the % are not from the iframe page but from the parent element. If you like that the iframe is resized to the content please go to \'<a id="resize-same-link" href="#rt">Resize the iframe to the content height/width</a>\' if you are on the same domain or the "<a id="external-workaround-link" href="#xss">External workaround</a>" if the iframe is on a different domain. Also, vh is now supported! e.g. 100vh means 100% of the view port height. This is the "full screen" many users look after. This is now supported by all major browsers. See <a href="https://caniuse.com/viewport-units" target="blank">here</a>.<br>Pro user can <span> do basic calculations. If you have e.g. a fix header or footer on a page. e.g. 100%-200px. See <a target="_blank" href="https://caniuse.com/calc">https://caniuse.com/calc</a> for supported browsers!</span><span>use <a href="https://www.w3schools.com/css/css_rwd_mediaqueries.asp" target="_blank">media queries</a> to give the iframe a different height depending on the width of the browser. This is pretty cool and can be configured by pressing the "Add breakpoint" link. There you can define the height for a certain width (breakpoint). You always define the upper width for a height. So if you want to optimize your iframe for mobile, table, desktop you can define 3 heights. If you want to define this in a shortcode you have to define first the default height. And then the other heights with a breakpoint separated by |. e.g. height="800,1000|800,1500|400". Please note that the breakpoints will be ordered automatically from big to small to work properly! </span>', 'advanced-iframe'), 'text', '', '//www.advanced-iframe.com/advanced-iframe/advanced-iframe-pro-demo/set-height-with-media-query');

    if ($evanto || $isDemo) {
      printTextInput(true, $devOptions, __('i-20-Remove elements from height', 'advanced-iframe'), 'remove_elements_from_height', __('By default, css can only remove a fix number like described before. This feature does calculate the heights of the elements you define and subtract the total value from the "Height" before. This makes it possible to e.g. have a header which has a dynamic height depending on the resolution and show an iframe on the rest of the page. So if you e.g. define 100vh before and "header" here, the iframe has always 100% of the browser - the height of the header. The height is recalculated when you resize the browser or rotate the device. You can define several elements separated by ",". You can use any valid <a class="jquery-help-link" href="#">jQuery selector pattern</a> here! Please read the section "<a class="howto-id-link" href="#">How to find the id and the attributes</a>" to find the right id or class. So "header,#nav,.footer" does calculate the sum the height of the header element, the element with the id="nav" and the element with class="footer". There are 3 special options: "top" does calculate everything till the top of the iframe. Also, a distance can be calculated by using | e.g. #advanced_iframe|footer does calculate the distance between the bottom of the element with the id="advanced_iframe" and the top of the element footer. Sometimes this is needed if there are paddings/margins which cannot be measured otherwise. If you specify a number only this is simply subtracted. So "top,100" does subtract the top and 100px from the iframe. If you use this then before you can not use the calc function! Also, this feature does NOT work together when you define media queries before. It will always take the default height only! Shortcode attribute: remove_elements_from_height=""', 'advanced-iframe'), 'text', '//www.advanced-iframe.com/advanced-iframe/advanced-iframe-pro-demo/advanced-height-features-with-headers-and-fullscreen-iframes');
    }
    printNumberInput(false, $devOptions, __('Width', 'advanced-iframe'), 'width', __('The width of the iframe. You can specify the value in px, %, em, pt, vh, vw, rem or ch. If you don\'t specify a unit px is assumed. Pro user can also do basic calculations here if you have e.g. a fix left navigation on a page. e.g. 100%-200px. See <a target="_blank" href="https://caniuse.com/calc">https://caniuse.com/calc</a> for supported browsers! Shortcode attribute: width=""', 'advanced-iframe'));

    printAutoNo($devOptions, __('Scrolling', 'advanced-iframe'), 'scrolling', __('Defines if scrollbars are shown if the page is too big for your iframe. Please note: If you select \'Yes\' IE does always show scrollbars on many pages! So only use this if needed. Scrolling "none" means that the attribute is not rendered at all and can be set by css to enable the scrollbars responsive.  Shortcode attribute: scrolling="auto" or scrolling="no" or scrolling="none"', 'advanced-iframe'));
    if ($evanto || $isDemo) {
      printTrueFalse(true, $devOptions, __('i-20-Enable scrolling on ipad and iphone ', 'advanced-iframe'), 'enable_ios_mobile_scolling', __('Currently mobile ios devices like ipad and iphone do not support scrolling inside an iframe properly. This changes from version to version. By enabling this parameter an additional div with additional ios css styles is wrapped around the iframe which does the scrolling. This feature is currently supported for simple iframes, show iframe as layer and show only a part of an iframe when scrolling is enabled. Please test this feature with all the ios devices you want to support! This feature does use the internal browser detection. So the additional div is only rendered for mobile ios devices! Zoom is currently only supported in the "show only a part of the iframe" mode! For all features where auto height is enabled the additional div is also not rendered as there no scrolling does exist. Currently the default is set to false. As soon as many users also report that this is working on many devices the default will be set to true. So please report if this features does/does not work for you! Shortcode attribute: enable_ios_mobile_scrolling="true" or enable_ios_mobile_scrolling="false" ', 'advanced-iframe'), false, '//www.advanced-iframe.com/advanced-iframe/advanced-iframe-pro-demo/scrolling-on-ipad-and-iphone');
    }

    printTrueFalse(false, $devOptions, __('Add surrounding p', 'advanced-iframe'), 'add_surrounding_p', __('Some themes like "Twenty Twenty-Two" require an additional p around the elements so that the content is displayed properly. By selecting "Yes" this p is rendered around the iframe element. The p element has the class="ai-surrounding-p" if you need to style it. If the p element is not needed you should not used it. Very often p in many themes have additional margins or paddings you might not want. Shortcode attribute: add_surrounding_p="true" or add_surrounding_p="false" ', 'advanced-iframe'));
    printNumberInput(false, $devOptions, __('Margin width', 'advanced-iframe'), 'marginwidth', __('The margin width of the iframe. You can specify the value in px. If you don\'t specify a unit px is assumed.  Shortcode attribute: marginwidth=""', 'advanced-iframe'));
    printNumberInput(false, $devOptions, __('Margin height', 'advanced-iframe'), 'marginheight', __('The margin height of the iframe. You can specify the value in px. If you don\'t specify a unit px is assumed.  Shortcode attribute: marginheight=""', 'advanced-iframe'));
    printNumberInput(false, $devOptions, __('Frame border', 'advanced-iframe'), 'frameborder', __('The frame border of the iframe. You can specify the value in px. If you don\'t specify a unit px is used. To define a custom border, leave this field empty and define the border in the "Style" setting below. This setting sets the style border:none if the setting is 0 and sets border-witdh to the given value. Shortcode attribute: frameborder=""', 'advanced-iframe'));
    printTrueFalse(false, $devOptions, __('Transparency', 'advanced-iframe'), 'transparency', __('If you like that the iframe is transparent and your background is shown you should set this to \'Yes\'. If this value is not set then the iframe is transparent in IE but not transparent in e.g. Firefox. So by default you should leave this to \'Yes\'. Shortcode attribute: transparency="true" or transparency="false" ', 'advanced-iframe'));
    printTextInput(false, $devOptions, __('Class', 'advanced-iframe'), 'class', __('You can define a class for the iframe if you like. Shortcode attribute: class=""', 'advanced-iframe'));

    if ($evanto) {
      $style_fs = '<br><input type="button" onclick="aiPresetFullscreen(); return false;" value="Set settings for fullscreen iframe" name="presetFullscreen" class="button-primary" id="presetFullscreen" />&nbsp;&nbsp;' . __('For a full screen button over the iframe go to the advanced tab and there to the section "Hide/cover parts of the iframe".', 'advanced-iframe');
    } else {
      $style_fs = '';
    }
    printTextInput(false, $devOptions, __('Style', 'advanced-iframe'), 'style', __('You can define styles for the iframe if you like. The recommended way is to put the styles in a css file and use the class option. With the button below the width, height, content_id, content_styles, hide_content_until_iframe_color and the needed styles above for a fullscreen iframe are set. Also check the settings at the height where you can do calculations to add fixed headers/footers. Shortcode attribute: style=""' . $style_fs, 'advanced-iframe'));
    printTextInput(false, $devOptions, __('Id', 'advanced-iframe'), 'id', __('Enter the \'id\' attribute of the iframe. Allowed values are only a-zA-Z0-9_. Ids cannot start with a number!!! Do NOT use any other characters because the id is also used to generate unique javascript functions! Other characters will be removed when you save! If a src directly in a shortcode is set and no id than an id is generated automatically if several iframes are on one page to avoid configuration problems. Shortcode attribute: id=""', 'advanced-iframe'));
    printTextInput(false, $devOptions, __('Name', 'advanced-iframe'), 'name', __('Enter the \'name\' attribute of the iframe. Shortcode attribute: name=""', 'advanced-iframe'));
    printTrueFalse(false, $devOptions, __('Allow full screen', 'advanced-iframe'), 'allowfullscreen', __('allowfullscreen is an HTML attribute that enables videos to be displayed in fullscreen mode. Currently this is a new html attribute not supported by all browsers. So please check  all of the browsers you want to support. Shortcode attribute: allowfullscreen="true" or allowfullscreen="false"', 'advanced-iframe'));

    printAiLazy($devOptions, __('Lazy load', 'advanced-iframe'), 'loading', __('Since WordPress 5.7 the loading attribute is rendered for iframes by default to support basic lazy loading for supported browsers. See <a href="https://caniuse.com/loading-lazy-attr" target="_blank">here</a> for the current support. The following values are supported: <span>lazy: is a good candidate for lazy-loading. Please note: if you use features like "Hide the iframe until it is loaded" (hide_page_until_loaded) where the iframe is not shown by default this does not work. Also, the threshold seems to be very high at 3000px right now. See below how the pro version can help you here.</span><span>No: Not rendering the attribute at all will have the same impact as explicitly eagerly loading the resource, except for <a href="https://blog.chromium.org/2019/04/data-saver-is-now-lite-mode.html" target="_blank">Lite Mode</a> users, where Chrome will use the auto value to decide whether it should be lazy-loaded.</span> The pro version on the advanced tab has an advanced lazy loading that additionally does: <span>ALL browsers are supported</span><span>The iframe can be loaded after the parent page is loaded</span><span>The threshold when the iframe should be loaded can be configured. Currently, it seems to be 3000px.</span><span>The iframe can fade in</span><span>The iframe can be loaded manually</span><span>The iframe space can be reserved or not</span>. Shortcode attribute: loading="lazy", loading="eager", loading="auto", loading="false"', 'advanced-iframe'), "https://www.advanced-iframe.com/advanced-iframe/demo-advanced-iframe-2-0");

    printTextInput(false, $devOptions, __('Sandbox', 'advanced-iframe'), 'sandbox', __('Enter the \'sandbox\' attribute of the iframe. See <a href="https://www.w3.org/TR/2011/WD-html5-20110525/the-iframe-element.html#attr-iframe-sandbox" target="_blank">w3c</a> or <a href="https://www.w3schools.com/tags/att_iframe_sandbox.asp" target="_blank">w3schools</a> for details. To render sandbox without a value for all restrictions please enter "sandbox". Shortcode attribute: sandbox=""', 'advanced-iframe'));
    printTextInput(false, $devOptions, __('Title', 'advanced-iframe'), 'title', __('The html title attribute of an iframe. Shortcode attribute: title=""', 'advanced-iframe'));
    printTextInput(false, $devOptions, __('Allow', 'advanced-iframe'), 'allow', __('Since April 2018 the <a target="_blank" href="https://developers.google.com/web/updates/2017/09/autoplay-policy-changes">autoplay functionality of Chrome</a> has changed. To still be able to play videos with sound in an iframe you need to set allow="autoplay" to the iframe. To allow e.g. camera and microphone inside iframes use "camera *;microphone *". Please see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy#directives" target="_blank">here</a> for a list of directives and the browser support. Shortcode attribute: allow=""', 'advanced-iframe'));
    printReferrerpolicy($devOptions, __('Referrerpolicy', 'advanced-iframe'), 'referrerpolicy', __('The referrerpolicy attribute specifies which referrer information to send when fetching an iframe. See <a href="https://www.w3schools.com/tags/att_iframe_referrerpolicy.asp" target="_blank">here</a>. Shortcode attribute: referrerpolicy=""', 'advanced-iframe'), 'https://www.advanced-iframe.com/advanced-iframe/demo-advanced-iframe-2-0');
    printTextInput(false, $devOptions, __('Custom', 'advanced-iframe'), 'custom', __('You can add simple additional custom attributes here. By default unknown attributes are ignored in the shortcode and even reported if you enable the short code validation. If you like to add e.g. data-custom="my-custom" to the iframe you can add e.g. custom="data-custom=\'my-custom\'" here. " needs to be replaced by \'. This is then replaced again when the attribute is rendered. Multiple attributes can be separated by a space. Shortcode attribute: custom=""', 'advanced-iframe'), 'text', 'https://www.advanced-iframe.com/advanced-iframe/demo-advanced-iframe-2-0');

    ?>
  </table>
  <?php
  aiPostboxClose();
  ?>
</div>
