True. → r41614.
Thanks,
J-M
On 5/29/12, luciash <luci@...> wrote:
> default max height should be empty, no ?
>
> On 29.5.2012 0:14, Jyhem@... wrote:
>> Revision: 41611
>>
>> http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=41611&view=rev
>> Author: Jyhem
>> Date: 2012-05-28 22:14:50 +0000 (Mon, 28 May 2012)
>> Log Message:
>> -----------
>> [ENH] Add two more useful params
>>
>> Modified Paths:
>> --------------
>> branches/9.x/lib/wiki-plugins/wikiplugin_appframe.php
>>
>> Modified: branches/9.x/lib/wiki-plugins/wikiplugin_appframe.php
>> ===================================================================
>> --- branches/9.x/lib/wiki-plugins/wikiplugin_appframe.php 2012-05-28
>> 19:58:24 UTC (rev 41610)
>> +++ branches/9.x/lib/wiki-plugins/wikiplugin_appframe.php 2012-05-28
>> 22:14:50 UTC (rev 41611)
>> @@ -24,6 +24,13 @@
>> 'default' => 300,
>> 'filter' => 'int',
>> ),
>> + 'max' => array(
>> + 'required' => false,
>> + 'name' => tr('Maximal height'),
>> + 'description' => tr('Prevent the frame from becoming any higher than
>> the specified size.'),
>> + 'default' => 300,
>> + 'filter' => 'int',
>> + ),
>> 'hideleft' => array(
>> 'requred' => false,
>> 'name' => tr('Hide left column'),
>> @@ -71,6 +78,16 @@
>> 'default' => 0,
>> 'filter' => 'int',
>> ),
>> + 'fullscreen' => array(
>> + 'required' => false,
>> + 'name' => tr('Full screen'),
>> + 'description' => tr('Occupy the complete page.'),
>> + 'default' => 'n',
>> + 'options' => array(
>> + array('value' => 'n', 'text' => tr('No')),
>> + array('value' => 'y', 'text' => tr('Yes')),
>> + ),
>> + ),
>> ),
>> );
>> }
>> @@ -78,10 +95,15 @@
>> function wikiplugin_appframe($data, $params)
>> {
>> $minHeight = isset($params['min']) ? (int) $params['min'] : 300;
>> + $maxHeight = isset($params['max']) ? (int) $params['max'] : 300;
>> $fullPage = 0;
>> if (isset($params['fullpage'])&& $params['fullpage'] == 'y') {
>> $fullPage = 1;
>> }
>> + $fullscreen = 0;
>> + if (isset($params['fullscreen'])&& $params['fullscreen'] == 'y') {
>> + $fullscreen = 1;
>> + }
>>
>> $absolute = intval(isset($params['absolute']) ? $params['absolute'] ==
>> 'y' : false);
>> $top = isset($params['top']) ? $params['top'] : 0;
>> @@ -130,6 +152,11 @@
>> target = min;
>> }
>>
>> + var max = $maxHeight;
>> + if (target> max) {
>> + target = max;
>> + }
>> +
>> appframe.height(target);
>> }
>>
>> @@ -182,6 +209,15 @@
>> $('#role_main').children().not($('#appframe')).remove();
>> }
>>
>> +if ($fullscreen) {
>> + $('.header_outer').hide();
>> + $('#topbar_modules').hide();
>> + $('#footer').hide();
>> + $('#error_report').hide();
>> + $('.share').hide();
>> + $('.tellafriend').hide();
>> +}
>> +
>> $(window).resize();
>> JS
>> );
>>
>> This was sent by the SourceForge.net collaborative development platform,
>> the world's largest Open Source development site.
>>
>>
|