Changeset 1793:a25f8d0fd400 for admin/help.php
- Timestamp:
- 09/11/13 17:10:01 (12 years ago)
- Branch:
- default
- Children:
- 1795:5c5c52124ab4, 1796:ef72fa20ed9d
- Parents:
- 1792:3ad2e47ed52d (diff), 514:5cacbd2e1fa9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/help.php
r514 r1793 17 17 function helpPage() 18 18 { 19 $ret = array('content' => '', 'title' => ''); 20 19 21 $args = func_get_args(); 20 22 if (empty($args)) { 21 return ;23 return $ret; 22 24 }; 23 25 24 26 global $__resources; 25 27 if (empty($__resources['help'])) { 26 return ;28 return $ret; 27 29 } 28 30 … … 56 58 57 59 if (trim($content) == '') { 58 return '';60 return $ret; 59 61 } 60 62 63 $ret['content'] = $content; 61 64 if ($title != '') { 62 $title = '<a href="help.php">'.__('Global help').'</a> › <span class="page-title">'.$title.'</span>'; 63 } else { 64 $title = '<span class="page-title">'.__('Global help').'</span>'; 65 $ret['title'] = $title; 65 66 } 66 return '<h2>'.$title.'</h2>'."\n".'<div id="mainhelp">'.$content.'</div>';67 return $ret; 67 68 } 68 69 69 70 $help_page = !empty($_GET['page']) ? html::escapeHTML($_GET['page']) : 'core_main'; 70 $content = helpPage($help_page); 71 $content_array = helpPage($help_page); 72 if (($content_array['content'] == '') || ($help_page == 'core_main')) { 73 $content_array = helpPage('core_main'); 74 } 75 if ($content_array['title'] != '') { 76 $breadcrumb = dcPage::breadcrumb( 77 array( 78 __('Global help') => 'help.php', 79 '<span class="page-title">'.$content_array['title'].'</span>' => '' 80 )); 81 } else { 82 $breadcrumb = dcPage::breadcrumb( 83 array( 84 '<span class="page-title">'.__('Global help').'</span>' => '' 85 )); 86 } 71 87 72 88 /* DISPLAY … … 74 90 dcPage::open(__('Global help'), 75 91 # --BEHAVIOR-- adminPostHeaders 76 $core->callBehavior('adminPostHeaders') 92 $core->callBehavior('adminPostHeaders'), 93 $breadcrumb 77 94 ); 78 95 79 if (($content == '') || ($help_page == 'core_main')) { 80 $content = helpPage('core_main'); 81 } 82 echo $content; 96 echo $content_array['content']; 83 97 84 98 dcPage::close();
Note: See TracChangeset
for help on using the changeset viewer.