Changeset 2175:44a940977175 for inc/admin
- Timestamp:
- 09/30/13 21:16:20 (12 years ago)
- Branch:
- dcRepo
- Parents:
- 2174:6ed25e45a14e (diff), 2173:94520262a1b8 (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. - Files:
-
- 2 edited
-
inc/admin/lib.dc.page.php (modified) (1 diff)
-
inc/admin/lib.dc.page.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r2167 r2175 611 611 self::jsVar('dotclear.msg.load_enhanced_uploader', 612 612 __('Loading enhanced uploader, please wait.')). 613 614 self::jsVar('dotclear.msg.module_author', 615 __('Author:')). 616 self::jsVar('dotclear.msg.module_details', 617 __('Details')). 618 self::jsVar('dotclear.msg.module_support', 619 __('Support')). 620 self::jsVar('dotclear.msg.module_help', 621 __('Help:')). 622 self::jsVar('dotclear.msg.module_section', 623 __('Section:')). 624 self::jsVar('dotclear.msg.module_tags', 625 __('Tags:')). 613 626 "\n//]]>\n". 614 627 "</script>\n"; -
inc/admin/lib.dc.page.php
r2164 r2175 304 304 } 305 305 306 public static function breadcrumb($elements=null,$with_home_link=true,$echo=false) 307 { 306 public static function breadcrumb($elements=null,$options=array()) 307 { 308 $with_home_link = isset($options['home_link'])?$options['home_link']:true; 309 $hl = isset($options['hl'])?$options['hl']:true; 310 $hl_pos = isset($options['hl_pos'])?$options['hl_pos']:-1; 308 311 // First item of array elements should be blog's name, System or Plugins 309 312 $res = '<h2>'.($with_home_link ? … … 311 314 '<img src="style/dashboard-alt.png" alt="" />'); 312 315 $index = 0; 316 if ($hl_pos < 0) { 317 $hl_pos = count($elements)+$hl_pos; 318 } 313 319 foreach ($elements as $element => $url) { 320 if ($hl && $index == $hl_pos) { 321 $element = sprintf('<span class="page-title">%s</span>',$element); 322 } 314 323 $res .= ($with_home_link ? ($index == 1 ? ' : ' : ' › ') : ($index == 0 ? ' ' : ' › ')). 315 324 ($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); … … 317 326 } 318 327 $res .= '</h2>'; 319 if ($echo) {320 echo $res;321 }322 328 return $res; 323 329 }
Note: See TracChangeset
for help on using the changeset viewer.
