Dotclear


Ignore:
Timestamp:
08/12/13 14:10:18 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

New dcPage::breadcrumb function, last step at least

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/page.php

    r1336 r1339  
    338338} 
    339339 
    340 echo '<h2>'.html::escapeHTML($core->blog->name). 
    341 ' &rsaquo; <a href="'.$p_url.'">'.__('Pages').'</a> &rsaquo; <span class="page-title">'.$page_title;  
    342      if ($post_id) { 
    343           switch ($post_status) { 
    344                case 1: 
    345                     $img_status = sprintf($img_status_pattern,__('published'),'check-on.png'); 
    346                     break; 
    347                case 0: 
    348                     $img_status = sprintf($img_status_pattern,__('unpublished'),'check-off.png'); 
    349                     break; 
    350                case -1: 
    351                     $img_status = sprintf($img_status_pattern,__('scheduled'),'scheduled.png'); 
    352                     break; 
    353                case -2: 
    354                     $img_status = sprintf($img_status_pattern,__('pending'),'check-wrn.png'); 
    355                     break; 
    356                default: 
    357                     $img_status = ''; 
    358           } 
    359           echo ' &ldquo;'.$post_title.'&rdquo;'.' '.$img_status; 
    360      } 
    361 echo '</span></h2>'; 
     340if ($post_id) { 
     341     switch ($post_status) { 
     342          case 1: 
     343               $img_status = sprintf($img_status_pattern,__('published'),'check-on.png'); 
     344               break; 
     345          case 0: 
     346               $img_status = sprintf($img_status_pattern,__('unpublished'),'check-off.png'); 
     347               break; 
     348          case -1: 
     349               $img_status = sprintf($img_status_pattern,__('scheduled'),'scheduled.png'); 
     350               break; 
     351          case -2: 
     352               $img_status = sprintf($img_status_pattern,__('pending'),'check-wrn.png'); 
     353               break; 
     354          default: 
     355               $img_status = ''; 
     356     } 
     357     $edit_entry_title = ' &ldquo;'.$post_title.'&rdquo;'.' '.$img_status; 
     358} else { 
     359     $edit_entry_title = ''; 
     360} 
     361dcPage::breadcrumb( 
     362     array( 
     363          html::escapeHTML($core->blog->name) => '', 
     364          __('Pages') => $p_url, 
     365          '<span class="page-title">'.$page_title.$edit_entry_title.'</span>' => '' 
     366     )); 
    362367 
    363368if ($post_id && $post->post_status == 1) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map