Dotclear

Changeset 1340:765347f5f7b7


Ignore:
Timestamp:
08/12/13 14:22:08 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Children:
1341:530893ad2aab, 1509:5ecd0bd4074b
Message:

New dcPage::breadcrumb function, change parameter no_home_link (default false) to with_home_link (default true)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r1334 r1340  
    200200     '<span class="page-title">'.__('Dashboard').' : '.html::escapeHTML($core->blog->name).'</span>' => '' 
    201201     ), 
    202      true); 
     202     false); 
    203203 
    204204if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->blog_count > 1) { 
  • inc/admin/lib.dc.page.php

    r1334 r1340  
    273273     } 
    274274 
    275      public static function breadcrumb($elements=null,$no_home_link=false,$echo=true) 
     275     public static function breadcrumb($elements=null,$with_home_link=true,$echo=true) 
    276276     { 
    277277          // First item of array elements should be blog's name, System or Plugins 
    278           $res = '<h2>'.($no_home_link ? 
    279                '<img src="style/dashboard-alt.png" alt="" />' : 
    280                '<a class="go_home" href="index.php"><img src="style/dashboard.png" alt="'.__('Go to dashboard').'" /></a>'); 
     278          $res = '<h2>'.($with_home_link ? 
     279               '<a class="go_home" href="index.php"><img src="style/dashboard.png" alt="'.__('Go to dashboard').'" /></a>' : 
     280               '<img src="style/dashboard-alt.png" alt="" />'); 
    281281          $index = 0; 
    282282          foreach ($elements as $element => $url) { 
    283                $res .= ($no_home_link ? ' ' : ($index == 1 ? ' : ' : ' &rsaquo; ')).($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); 
     283               $res .= ($with_home_link ? ($index == 1 ? ' : ' : ' &rsaquo; ') : ' ').($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); 
    284284               $index++; 
    285285          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map