mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
issue 2878, fixed a bug. does not resize on popup layout.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12627 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bcb1afcab0
commit
2f6ae4b70c
2 changed files with 16 additions and 1 deletions
|
|
@ -93,6 +93,21 @@ class HTMLDisplayHandler
|
|||
if(!$layout_file) $layout_file = 'default_layout';
|
||||
$output = $oTemplate->compile($layout_path, $layout_file, $edited_layout_file);
|
||||
|
||||
// if popup_layout, remove admin bar.
|
||||
$realLayoutPath = FileHandler::getRealPath($layout_path);
|
||||
if(substr($realLayoutPath, -1) != '/')
|
||||
{
|
||||
$realLayoutPath .= '/';
|
||||
}
|
||||
|
||||
$pathInfo = pathinfo($layout_file);
|
||||
$onlyLayoutFile = $pathInfo['filename'];
|
||||
|
||||
if($realLayoutPath === _XE_PATH_ . 'common/tpl/' && $onlyLayoutFile === 'popup_layout')
|
||||
{
|
||||
Context::set('admin_bar', 'false');
|
||||
}
|
||||
|
||||
if(__DEBUG__==3) $GLOBALS['__layout_compile_elapsed__'] = getMicroTime()-$start;
|
||||
|
||||
if(preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT']) && (Context::get('_use_ssl') == 'optional' || Context::get('_use_ssl') == 'always'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue