Dotclear


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

New dcPage::breadcrumb function, applied to some other admin's pages, should be continued by me

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/category.php

    r1179 r1332  
    167167} 
    168168 
    169 echo 
    170 '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; <a href="categories.php">'. 
    171 __('Categories').'</a> &rsaquo; '; 
    172  
    173 if ($cat_id) 
    174 { 
     169$elements = array( 
     170     html::escapeHTML($core->blog->name) => '', 
     171     __('Categories') => 'categories.php' 
     172     ); 
     173if ($cat_id) { 
    175174     while($parents->fetch()) { 
    176           echo '<a href="category.php?id='.$parents->cat_id.'">'.html::escapeHTML($parents->cat_title).'</a>'; 
    177           echo " &rsaquo; "; 
    178      } 
    179 } 
    180  
    181 echo '<span class="page-title">'.$title.'</span></h2>'; 
     175          $elements[html::escapeHTML($parents->cat_title)] = 'category.php?id='.$parents->cat_id; 
     176     } 
     177} 
     178$elements['<span class="page-title">'.$title.'</span>'] = ''; 
     179echo dcPage::breadcrumb($elements); 
    182180 
    183181echo 
Note: See TracChangeset for help on using the changeset viewer.

Sites map