Dotclear


Ignore:
Timestamp:
08/31/13 11:00:34 (12 years ago)
Author:
Lepeltier kévin
Branch:
Ticket #1181
Message:

Ticket #1181 : ajout du changement de langue et mise en forme de la combo-box d'actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/list.php

    r1888 r1893  
    148148if ($core->auth->check('publish,contentadmin',$core->blog->id)) 
    149149{ 
    150      $combo_action[__('Publish')] = 'publish'; 
    151      $combo_action[__('Unpublish')] = 'unpublish'; 
    152      $combo_action[__('Schedule')] = 'schedule'; 
    153      $combo_action[__('Mark as pending')] = 'pending'; 
    154 } 
    155 if ($core->auth->check('admin',$core->blog->id)) { 
    156      $combo_action[__('Change author')] = 'author'; 
     150     $combo_action[__('Status')] = array( 
     151          __('Publish') => 'publish', 
     152          __('Unpublish') => 'unpublish', 
     153          __('Schedule') => 'schedule', 
     154          __('Mark as pending') => 'pending' 
     155     ); 
     156} 
     157     $combo_action[__('Change')] = array( 
     158          __('Change language') => 'lang' 
     159     ); 
     160if ($core->auth->check('admin',$core->blog->id)) 
     161{ 
     162     $combo_action[__('Change')] = array_merge($combo_action[__('Change')], array( 
     163          __('Change author') => 'author') 
     164     ); 
    157165} 
    158166if ($core->auth->check('delete,contentadmin',$core->blog->id)) 
    159167{ 
    160      $combo_action[__('Delete')] = 'delete'; 
     168     $combo_action[__('Delete')] = array( 
     169          __('Delete') => 'delete' 
     170     ); 
    161171} 
    162172 
Note: See TracChangeset for help on using the changeset viewer.

Sites map