Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/admin/admin_tag_processor.php
Show First 20 Lines • Show All 789 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Returns menu frame width or 200 in case, when invalid width specified in config | * Returns menu frame width or 200 in case, when invalid width specified in config | ||||
* | * | ||||
* @param Array $params | * @param Array $params | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
function MenuFrameWidth($params) | function MenuFrameWidth($params) | ||||
{ | { | ||||
$width = (int)$this->Application->RecallPersistentVar('MenuFrameWidth'); | |||||
if ( $width <= 0 ) { | |||||
$width = (int)$this->Application->ConfigValue('MenuFrameWidth'); | $width = (int)$this->Application->ConfigValue('MenuFrameWidth'); | ||||
} | |||||
return $width > 0 ? $width : 200; | return $width > 0 ? $width : 200; | ||||
} | } | ||||
function AdminSkin($params) | function AdminSkin($params) | ||||
{ | { | ||||
$skin_helper = $this->Application->recallObject('SkinHelper'); | $skin_helper = $this->Application->recallObject('SkinHelper'); | ||||
/* @var $skin_helper SkinHelper */ | /* @var $skin_helper SkinHelper */ | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |