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
  • plugins/pages/page.php

    r1346 r1358  
    315315<?php 
    316316 
    317 if (!empty($_GET['upd'])) { 
    318      dcPage::message(__('Page has been successfully updated.')); 
    319 } 
    320 elseif (!empty($_GET['crea'])) { 
    321      dcPage::message(__('Page has been successfully created.')); 
    322 } 
    323 elseif (!empty($_GET['attached'])) { 
    324      dcPage::message(__('File has been successfully attached.')); 
    325 } 
    326 elseif (!empty($_GET['rmattach'])) { 
    327      dcPage::message(__('Attachment has been successfully removed.')); 
    328 } 
    329  
    330 # XHTML conversion 
    331 if (!empty($_GET['xconv'])) 
    332 { 
    333      $post_excerpt = $post_excerpt_xhtml; 
    334      $post_content = $post_content_xhtml; 
    335      $post_format = 'xhtml'; 
    336       
    337      dcPage::message(__('Don\'t forget to validate your XHTML conversion by saving your post.')); 
    338 } 
    339  
    340317if ($post_id) { 
    341318     switch ($post_status) { 
     
    359336     $edit_entry_title = $page_title; 
    360337} 
    361 dcPage::breadcrumb( 
     338echo dcPage::breadcrumb( 
    362339     array( 
    363340          html::escapeHTML($core->blog->name) => '', 
     
    365342          '<span class="page-title">'.$edit_entry_title.'</span>' => '' 
    366343     )); 
     344 
     345if (!empty($_GET['upd'])) { 
     346     dcPage::message(__('Page has been successfully updated.')); 
     347} 
     348elseif (!empty($_GET['crea'])) { 
     349     dcPage::message(__('Page has been successfully created.')); 
     350} 
     351elseif (!empty($_GET['attached'])) { 
     352     dcPage::message(__('File has been successfully attached.')); 
     353} 
     354elseif (!empty($_GET['rmattach'])) { 
     355     dcPage::message(__('Attachment has been successfully removed.')); 
     356} 
     357 
     358# XHTML conversion 
     359if (!empty($_GET['xconv'])) 
     360{ 
     361     $post_excerpt = $post_excerpt_xhtml; 
     362     $post_content = $post_content_xhtml; 
     363     $post_format = 'xhtml'; 
     364      
     365     dcPage::message(__('Don\'t forget to validate your XHTML conversion by saving your post.')); 
     366} 
    367367 
    368368if ($post_id && $post->post_status == 1) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map