Dotclear

Changeset 1089:049be1a46863 for admin


Ignore:
Timestamp:
12/19/12 11:57:54 (13 years ago)
Author:
JcDenis
Branch:
twig
Message:
  • Better way to fill in complex page title
  • Group all types of messages
  • Fix aboutConfig form submit
  • Clean up uggly tabs on inline doc
Location:
admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r1061 r1089  
    3131     try { 
    3232          if (($changes = dotclearUpgrade($core)) !== false) { 
    33                $_ctx->setMessage(__('Dotclear has been upgraded.').'<!-- '.$changes.' -->'); 
     33               $_ctx->setAlert(__('Dotclear has been upgraded.').'<!-- '.$changes.' -->'); 
    3434          } 
    3535     } 
     
    6464                
    6565               mail::sendMail($recover_res['user_email'],$subject,$message,$headers); 
    66                $_ctx->setMessage(__('Your new password is in your mailbox.')); 
     66               $_ctx->setAlert(__('Your new password is in your mailbox.')); 
    6767          } 
    6868          catch (Exception $e) { 
     
    171171                
    172172               mail::sendMail($user_email,$subject,$message,$headers); 
    173                $_ctx->setMessage(sprintf(__('The e-mail was sent successfully to %s.'),$user_email)); 
     173               $_ctx->setAlert(sprintf(__('The e-mail was sent successfully to %s.'),$user_email)); 
    174174          } 
    175175          catch (Exception $e) { 
  • admin/index.php

    r1080 r1089  
    306306} 
    307307 
    308 $_ctx->setPageTitle(__('Dashboard')); 
     308$_ctx->fillPageTitle(__('Dashboard')); 
    309309$core->tpl->display('index.html.twig'); 
    310310?> 
  • admin/plugin.php

    r1088 r1089  
    9090# No plugin or content found 
    9191if (!$has_content) { 
    92      $_ctx->setPageTitle(__('Plugin not found')); 
     92     $_ctx->fillPageTitle(__('Plugin not found')); 
    9393     $_ctx->addError(__('The plugin you reached does not exist or does not have an admin page.')); 
    9494     $core->tpl->display('plugin.html.twig'); 
  • admin/post.php

    r1088 r1089  
    1717function savePost($form) { 
    1818     global $_ctx; 
    19      $_ctx->setMessage('save'); 
     19     $_ctx->setAlert('save'); 
    2020 
    2121} 
     
    180180     $default_tab = 'comments'; 
    181181} 
    182 $_ctx->default_tab = $default_tab; 
    183 $_ctx->setPageTitle($page_title); 
     182 
     183$_ctx 
     184     ->fillPageTitle(__('Entries'),'posts.php') 
     185     ->fillPageTitle($page_title) 
     186     ->default_tab = $default_tab; 
    184187 
    185188$core->tpl->display('post.html.twig'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map