com presentations: Added support for setting a scroll method for iframes: templates/default/iframe.ezt
| From: | Derick Rethans | Date: | Fri, 02 Oct 2015 11:26:01 +0000 |
| Subject: | com presentations: Added support for setting a scroll method for iframes: templates/default/iframe.ezt | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-2124@lists.php.net to get a copy of this message | ||
Commit: 7ff7e8ea7f07474b413341c885bef43f3cbbea22
Author: Derick Rethans <github@derickrethans.nl> Fri, 2 Oct 2015 12:26:01 +0100
Parents: d75eeecc94965dd61321d1804059fe318814d721
Branches: master
Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=7ff7e8ea7f07474b413341c885bef43f3cbbea22
Log:
Added support for setting a scroll method for iframes
Changed paths:
M templates/default/iframe.ezt
Diff:
diff --git a/templates/default/iframe.ezt b/templates/default/iframe.ezt
index 63a96bb..13e6f76 100644
--- a/templates/default/iframe.ezt
+++ b/templates/default/iframe.ezt
@@ -3,6 +3,7 @@
{var $attr = get_attribute( $node, 'attr' )}
{var $width = get_attribute( $node, 'width' )}
{var $height = get_attribute( $node, 'height' )}
+{var $scrolling = get_attribute( $node, 'scrolling' )}
{var $source = ''}
{if !$width}{$width = 1010}{/if}
{if !$height}{$height = 592}{/if}
@@ -11,7 +12,8 @@
{else}
{$source = str_append($pres->base, get_attribute( $node, 'filename' ))}
{/if}
+{if !$scrolling}{$scrolling = "no"}{/if}
{if $attr}<div{if $align} align='{$align}'{/if}>{/if}
-<iframe style="clear: both; background-color: #fff; margin-left: 9px;"
scrolling="no" frameborder="0" width="{$width}"
height="{$height}" {if $inline}class='inline' {/if}{if
$align}align='{$align}' {/if}src='{$source}'></iframe>
+<iframe style="clear: both; background-color: #fff; margin-left: 9px;"
scrolling="{$scrolling}" frameborder="0" width="{$width}"
height="{$height}" {if $inline}class='inline' {/if}{if
$align}align='{$align}' {/if}src='{$source}'></iframe>
<!--<img src="{$pres->base}{get_attribute( $node, 'image'
)}"/>-->
{if $attr}<span class='attribution'>{$attr}</span></div>{/if}