Dotclear


Ignore:
Timestamp:
08/14/13 14:16:36 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Messages are now displayed below the breadcrumb, fixes #1528

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r1357 r1358  
    4949 
    5050     # Top of admin page 
    51      public static function open($title='', $head='', $breadcrumb='') 
     51     public static function open($title='',$head='',$breadcrumb='') 
    5252     { 
    5353          global $core; 
     
    213213     } 
    214214 
    215      public static function openPopup($title='', $head='') 
     215     public static function openPopup($title='',$head='',$breadcrumb='') 
    216216     { 
    217217          global $core; 
     
    258258          '<div id="content">'."\n"; 
    259259 
     260          // display breadcrumb if given 
     261          echo $breadcrumb; 
     262 
    260263          if ($core->error->flag()) { 
    261264               echo 
     
    276279     } 
    277280 
    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) 
    279282     { 
    280283          // First item of array elements should be blog's name, System or Plugins 
     
    284287          $index = 0; 
    285288          foreach ($elements as $element => $url) { 
    286                $res .= ($with_home_link ? ($index == 1 ? ' : ' : ' &rsaquo; ') : ' ').($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); 
     289               $res .= ($with_home_link ? ($index == 1 ? ' : ' : ' &rsaquo; ') : ($index == 0 ? ' ' : ' &rsaquo; ')). 
     290                    ($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); 
    287291               $index++; 
    288292          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map