Dotclear


Ignore:
Timestamp:
08/14/13 14:16:36 (12 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
  • admin/post.php

    r1353 r1358  
    294294} 
    295295 
    296 dcPage::open($page_title.' - '.__('Entries'), 
    297      dcPage::jsDatePicker(). 
    298      dcPage::jsToolBar(). 
    299      dcPage::jsModal(). 
    300      dcPage::jsMetaEditor(). 
    301      dcPage::jsLoad('js/_post.js'). 
    302      dcPage::jsConfirmClose('entry-form','comment-form'). 
    303      # --BEHAVIOR-- adminPostHeaders 
    304      $core->callBehavior('adminPostHeaders'). 
    305      dcPage::jsPageTabs($default_tab). 
    306      $next_headlink."\n".$prev_headlink 
    307 ); 
    308  
    309 if (!empty($_GET['upd'])) { 
    310      dcPage::message(__('Entry has been successfully updated.')); 
    311 } 
    312 elseif (!empty($_GET['crea'])) { 
    313      dcPage::message(__('Entry has been successfully created.')); 
    314 } 
    315 elseif (!empty($_GET['attached'])) { 
    316      dcPage::message(__('File has been successfully attached.')); 
    317 } 
    318 elseif (!empty($_GET['rmattach'])) { 
    319      dcPage::message(__('Attachment has been successfully removed.')); 
    320 } 
    321  
    322 if (!empty($_GET['creaco'])) { 
    323      dcPage::message(__('Comment has been successfully created.')); 
    324 } 
    325  
    326 # XHTML conversion 
    327 if (!empty($_GET['xconv'])) 
    328 { 
    329      $post_excerpt = $post_excerpt_xhtml; 
    330      $post_content = $post_content_xhtml; 
    331      $post_format = 'xhtml'; 
    332       
    333      dcPage::message(__('Don\'t forget to validate your XHTML conversion by saving your post.')); 
    334 } 
    335  
    336296if ($post_id) { 
    337297     switch ($post_status) { 
     
    354314     $page_title_edit = sprintf($edit_entry_str, html::escapeHTML($post_title)).' '.$img_status; 
    355315} 
    356 dcPage::breadcrumb( 
    357      array( 
    358           html::escapeHTML($core->blog->name) => '', 
    359           __('Entries') => 'posts.php', 
    360           '<span class="page-title">'.($post_id ? $page_title_edit : $page_title).'</span>' => '' 
    361      )); 
     316 
     317 
     318dcPage::open($page_title.' - '.__('Entries'), 
     319     dcPage::jsDatePicker(). 
     320     dcPage::jsToolBar(). 
     321     dcPage::jsModal(). 
     322     dcPage::jsMetaEditor(). 
     323     dcPage::jsLoad('js/_post.js'). 
     324     dcPage::jsConfirmClose('entry-form','comment-form'). 
     325     # --BEHAVIOR-- adminPostHeaders 
     326     $core->callBehavior('adminPostHeaders'). 
     327     dcPage::jsPageTabs($default_tab). 
     328     $next_headlink."\n".$prev_headlink, 
     329     dcPage::breadcrumb( 
     330          array( 
     331               html::escapeHTML($core->blog->name) => '', 
     332               __('Entries') => 'posts.php', 
     333               '<span class="page-title">'.($post_id ? $page_title_edit : $page_title).'</span>' => '' 
     334          )) 
     335); 
     336 
     337if (!empty($_GET['upd'])) { 
     338     dcPage::message(__('Entry has been successfully updated.')); 
     339} 
     340elseif (!empty($_GET['crea'])) { 
     341     dcPage::message(__('Entry has been successfully created.')); 
     342} 
     343elseif (!empty($_GET['attached'])) { 
     344     dcPage::message(__('File has been successfully attached.')); 
     345} 
     346elseif (!empty($_GET['rmattach'])) { 
     347     dcPage::message(__('Attachment has been successfully removed.')); 
     348} 
     349 
     350if (!empty($_GET['creaco'])) { 
     351     dcPage::message(__('Comment has been successfully created.')); 
     352} 
     353 
     354# XHTML conversion 
     355if (!empty($_GET['xconv'])) 
     356{ 
     357     $post_excerpt = $post_excerpt_xhtml; 
     358     $post_content = $post_content_xhtml; 
     359     $post_format = 'xhtml'; 
     360      
     361     dcPage::message(__('Don\'t forget to validate your XHTML conversion by saving your post.')); 
     362} 
    362363 
    363364if ($post_id && $post->post_status == 1) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map