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 360 Lines • ▼ Show 20 Line(s) | |||||
foreach ($section_data['children'] as $priority => $section_name) { | foreach ($section_data['children'] as $priority => $section_name) { | ||||
$perm_section = $sections_helper->getPermSection($section_name); | $perm_section = $sections_helper->getPermSection($section_name); | ||||
if ( !$this->Application->CheckPermission($perm_section.'.view') ) { | if ( !$this->Application->CheckPermission($perm_section.'.view') ) { | ||||
continue; | continue; | ||||
} | } | ||||
$tab_data =& $sections_helper->getSectionData($section_name); | $tab_data =& $sections_helper->getSectionData($section_name); | ||||
$show_mode = isset($tab_data['show_mode']) ? $tab_data['show_mode'] : smNORMAL; | |||||
$debug_only = ($show_mode == smDEBUG) || ($show_mode == smSUPER_ADMIN); | |||||
if ( $show_mode == smHIDE | |||||
|| ($debug_only && !$this->Application->isDebugMode()) | |||||
) { | |||||
continue; | |||||
} | |||||
$block_params['t'] = $tab_data['url']['t']; | $block_params['t'] = $tab_data['url']['t']; | ||||
$block_params['pass'] = $tab_data['url']['pass']; | $block_params['pass'] = $tab_data['url']['pass']; | ||||
$block_params['title'] = $tab_data['label']; | $block_params['title'] = $tab_data['label']; | ||||
$block_params['main_prefix'] = $section_data['SectionPrefix']; | $block_params['main_prefix'] = $section_data['SectionPrefix']; | ||||
$ret .= $this->Application->ParseBlock($block_params); | $ret .= $this->Application->ParseBlock($block_params); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 748 Lines • Show Last 20 Lines |