Changeset 2167:e81d864a3838 for inc/admin
- Timestamp:
- 09/30/13 12:30:20 (12 years ago)
- Branch:
- default
- Children:
- 2168:ac4827f94a9f, 2169:0de9a9b024f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r2166 r2167 307 307 { 308 308 $with_home_link = isset($options['home_link'])?$options['home_link']:true; 309 $h ighlight_latest = isset($options['highlight_latest'])?$options['highlight_latest']:true;310 $h ighlight_pos = isset($options['highlight_pos'])?$options['highlight_pos']:-1;309 $hl = isset($options['hl'])?$options['hl']:true; 310 $hl_pos = isset($options['hl_pos'])?$options['hl_pos']:-1; 311 311 // First item of array elements should be blog's name, System or Plugins 312 312 $res = '<h2>'.($with_home_link ? … … 314 314 '<img src="style/dashboard-alt.png" alt="" />'); 315 315 $index = 0; 316 if ($h ighlight_pos < 0) {317 $h ighlight_pos = count($elements)+$highlight_pos;316 if ($hl_pos < 0) { 317 $hl_pos = count($elements)+$hl_pos; 318 318 } 319 319 foreach ($elements as $element => $url) { 320 if ($h ighlight_latest && $index == $highlight_pos) {320 if ($hl && $index == $hl_pos) { 321 321 $element = sprintf('<span class="page-title">%s</span>',$element); 322 322 }
Note: See TracChangeset
for help on using the changeset viewer.