Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions components/com_wrapper/views/wrapper/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
id="blockrandom"
name="iframe"
src="<?php echo $this->escape($this->wrapper->url); ?>"
width="<?php echo $this->escape($this->params->get('width')); ?>"
height="<?php echo $this->escape($this->params->get('height')); ?>"
scrolling="<?php echo $this->escape($this->params->get('scrolling')); ?>"
frameborder="<?php echo $this->escape($this->params->get('frameborder', 1)); ?>"
style="width: <?php echo $this->escape($this->params->get('width')); ?>;
height: <?php echo $this->escape($this->params->get('height')); ?>;
overflow: <?php echo $this->escape($this->params->get('overflow')); ?>;
border: <?php echo $this->escape($this->params->get('border')); ?>;"
<?php if ($this->escape($this->params->get('page_heading'))) : ?>
title="<?php echo $this->escape($this->params->get('page_heading')); ?>"
<?php else : ?>
Expand Down
18 changes: 9 additions & 9 deletions components/com_wrapper/views/wrapper/tmpl/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
<fieldset name="basic" label="COM_WRAPPER_FIELD_LABEL_SCROLLBARSPARAMS">

<field
name="scrolling"
name="overflow"
type="list"
label="COM_WRAPPER_FIELD_SCROLLBARS_LABEL"
description="COM_WRAPPER_FIELD_SCROLLBARS_DESC"
default="auto"
>
<option value="no">JNO</option>
<option value="yes">JYES</option>
<option value="hidden">JNO</option>
<option value="scroll">JYES</option>
<option value="auto">COM_WRAPPER_FIELD_VALUE_AUTO</option>
</field>

Expand All @@ -51,10 +51,10 @@

<field
name="height"
type="number"
type="text"
label="COM_WRAPPER_FIELD_HEIGHT_LABEL"
description="COM_WRAPPER_FIELD_HEIGHT_DESC"
default="500"
default="500px"
size="5"
/>

Expand Down Expand Up @@ -88,15 +88,15 @@
</field>

<field
name="frameborder"
name="border"
type="radio"
label="COM_WRAPPER_FIELD_FRAME_LABEL"
description="COM_WRAPPER_FIELD_FRAME_DESC"
class="btn-group btn-group-yesno"
default="1"
default="thin solid #D3D3D3"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
<option value="thin solid #D3D3D3">JYES</option>
<option value="none">JNO</option>
</field>

</fieldset>
Expand Down
4 changes: 2 additions & 2 deletions modules/mod_wrapper/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class ModWrapperHelper
public static function getParams(&$params)
{
$params->def('url', '');
$params->def('scrolling', 'auto');
$params->def('height', '200');
$params->def('overflow', 'auto');
$params->def('height', '200px');
$params->def('height_auto', '0');
$params->def('width', '100%');
$params->def('add', '1');
Expand Down
4 changes: 2 additions & 2 deletions modules/mod_wrapper/mod_wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
$target = htmlspecialchars($params->get('target'), ENT_COMPAT, 'UTF-8');
$width = htmlspecialchars($params->get('width'), ENT_COMPAT, 'UTF-8');
$height = htmlspecialchars($params->get('height'), ENT_COMPAT, 'UTF-8');
$scroll = htmlspecialchars($params->get('scrolling'), ENT_COMPAT, 'UTF-8');
$overflow = htmlspecialchars($params->get('overflow'), ENT_COMPAT, 'UTF-8');
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');
$frameborder = htmlspecialchars($params->get('frameborder'), ENT_COMPAT, 'UTF-8');
$border = htmlspecialchars($params->get('border'), ENT_COMPAT, 'UTF-8');
$ititle = $module->title;
$id = $module->id;

Expand Down
16 changes: 8 additions & 8 deletions modules/mod_wrapper/mod_wrapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
</field>

<field
name="scrolling"
name="overflow"
type="list"
label="MOD_WRAPPER_FIELD_SCROLL_LABEL"
description="MOD_WRAPPER_FIELD_SCROLL_DESC"
default="auto"
>
<option value="auto">MOD_WRAPPER_FIELD_VALUE_AUTO</option>
<option value="no">JNO</option>
<option value="yes">JYES</option>
<option value="hidden">JNO</option>
<option value="scroll">JYES</option>
</field>

<field
Expand All @@ -70,7 +70,7 @@
label="MOD_WRAPPER_FIELD_HEIGHT_LABEL"
description="MOD_WRAPPER_FIELD_HEIGHT_DESC"
size="5"
default="200"
default="200px"
/>

<field
Expand All @@ -86,15 +86,15 @@
</field>

<field
name="frameborder"
name="border"
type="radio"
label="MOD_WRAPPER_FIELD_FRAME_LABEL"
description="MOD_WRAPPER_FIELD_FRAME_DESC"
class="btn-group btn-group-yesno"
default="1"
default="thin solid #D3D3D3"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
<option value="thin solid #D3D3D3">JYES</option>
<option value="none">JNO</option>
</field>

<field
Expand Down
8 changes: 4 additions & 4 deletions modules/mod_wrapper/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
id="blockrandom-<?php echo $id; ?>"
name="<?php echo $target; ?>"
src="<?php echo $url; ?>"
width="<?php echo $width; ?>"
height="<?php echo $height; ?>"
scrolling="<?php echo $scroll; ?>"
frameborder="<?php echo $frameborder; ?>"
style="width: <?php echo $width; ?>;
height: <?php echo $height; ?>;
overflow: <?php echo $overflow; ?>;
border: <?php echo $border; ?>;"
title="<?php echo $ititle; ?>"
class="wrapper<?php echo $moduleclass_sfx; ?>" >
<?php echo JText::_('MOD_WRAPPER_NO_IFRAMES'); ?>
Expand Down