Changeset 1358:f117338392dc for inc/admin/lib.dc.page.php
- Timestamp:
- 08/14/13 14:16:36 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r1357 r1358 49 49 50 50 # Top of admin page 51 public static function open($title='', $head='',$breadcrumb='')51 public static function open($title='',$head='',$breadcrumb='') 52 52 { 53 53 global $core; … … 213 213 } 214 214 215 public static function openPopup($title='', $head='')215 public static function openPopup($title='',$head='',$breadcrumb='') 216 216 { 217 217 global $core; … … 258 258 '<div id="content">'."\n"; 259 259 260 // display breadcrumb if given 261 echo $breadcrumb; 262 260 263 if ($core->error->flag()) { 261 264 echo … … 276 279 } 277 280 278 public static function breadcrumb($elements=null,$with_home_link=true,$echo= true)281 public static function breadcrumb($elements=null,$with_home_link=true,$echo=false) 279 282 { 280 283 // First item of array elements should be blog's name, System or Plugins … … 284 287 $index = 0; 285 288 foreach ($elements as $element => $url) { 286 $res .= ($with_home_link ? ($index == 1 ? ' : ' : ' › ') : ' ').($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); 289 $res .= ($with_home_link ? ($index == 1 ? ' : ' : ' › ') : ($index == 0 ? ' ' : ' › ')). 290 ($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); 287 291 $index++; 288 292 }
Note: See TracChangeset
for help on using the changeset viewer.