- md5
- aa5fa4dba692c6be1592cb7af34a7e17
- sha1
- a1f51519b2d2cd881bdb4578922fb639cd693171
- sha256
- a625576cf5ac8aaf2360c95821a51ea7db54cb1d2bac10e65513ef242b27795b
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
<?php
/**
* @version $Id: helper.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
class modWrapperHelper
{
function getParams(&$params)
{
$params->def('url', '');
$params->def('scrolling', 'auto');
$params->def('height', '200');
$params->def('height_auto', '0');
$params->def('width', '100%');
$params->def('add', '1');
$params->def('name', 'wrapper');
$url = $params->get('url');
if ($params->get('add'))
{
// adds 'http://' if none is set
if (substr($url, 0, 1) == '/') {
// relative url in component. use server http_host.
$url = 'http://'.$_SERVER['HTTP_HOST'].$url;
}
elseif (!strstr($url, 'http') && !strstr($url, 'https')) {
$url = 'http://'.$url;
}
else {
$url = $url;
}
}
// auto height control
if ($params->def('height_auto')) {
$load = 'onload="iFrameHeight()"';
}
else {
$load = '';
}
$params->set( 'load', $load );
$params->set( 'url', $url );
return $params;
}
}
The same content is in 11 releases, Joomla 1.5.16 to 1.5.26. See them all, or every version of this file.