Dotclear

Changeset 690


Ignore:
Timestamp:
01/12/09 13:00:37 (14 years ago)
Author:
bruno
Message:

Added optgroup to actions in gals and items admin page. Closes #5.

Location:
plugins/gallery/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/gallery/trunk/gals.php

    r629 r690  
    159159if ($core->auth->check('publish,contentadmin',$core->blog->id)) 
    160160{ 
    161      $combo_action[__('publish')] = 'publish'; 
    162      $combo_action[__('unpublish')] = 'unpublish'; 
    163      $combo_action[__('schedule')] = 'schedule'; 
    164      $combo_action[__('mark as pending')] = 'pending'; 
    165 } 
    166 $combo_action[__('change category')] = 'category'; 
    167 $combo_action[__('update')] = 'update'; 
     161     $combo_action[__('Status')] = array( 
     162          __('publish') => 'publish', 
     163          __('unpublish') => 'unpublish', 
     164          __('schedule') => 'schedule', 
     165          __('mark as pending') => 'pending' 
     166     ); 
     167} 
     168$combo_action[__('Change')]=array(__('change category') => 'category'); 
    168169if ($core->auth->check('admin',$core->blog->id)) { 
    169      $combo_action[__('change author')] = 'author'; 
    170 } 
     170     $combo_action[__('Change')][__('change author')] = 'author'; 
     171} 
     172$combo_action[__('Maintenance')]=array(__('update') => 'update'); 
    171173if ($core->auth->check('delete,contentadmin',$core->blog->id)) 
    172174{ 
    173      $combo_action[__('delete')] = 'delete'; 
     175     $combo_action[__('Maintenance')][__('delete')] = 'delete'; 
    174176} 
    175177 
  • plugins/gallery/trunk/items.php

    r629 r690  
    200200if ($core->auth->check('publish,contentadmin',$core->blog->id)) 
    201201{ 
    202      $combo_action[__('publish')] = 'publish'; 
    203      $combo_action[__('unpublish')] = 'unpublish'; 
    204      $combo_action[__('schedule')] = 'schedule'; 
    205      $combo_action[__('mark as pending')] = 'pending'; 
    206      $combo_action[__('Remove image-post')] = 'removeimgpost'; 
    207      $combo_action[__('add tags')] = 'tags'; 
    208      $combo_action[__('set date to media exif date')] = 'fixexif'; 
    209 } 
    210 $combo_action[__('change category')] = 'category'; 
     202     $combo_action[__('Status')] = array( 
     203          __('publish') => 'publish', 
     204          __('unpublish') => 'unpublish', 
     205          __('schedule') => 'schedule', 
     206          __('mark as pending') => 'pending' 
     207     ); 
     208     $combo_action[__('Maintenance')] = array( 
     209          __('Remove image-post') => 'removeimgpost', 
     210          __('set date to media exif date') => 'fixexif' 
     211     ); 
     212     $combo_action[__('Tags')] = array( 
     213          __('add tags') => 'tags' 
     214     ); 
     215} 
     216$combo_action[__('Change')] = array(__('change category') => 'category'); 
    211217if ($core->auth->check('admin',$core->blog->id)) { 
    212      $combo_action[__('change author')] = 'author'; 
     218     $combo_action[__('Change')][__('change author')] = 'author'; 
    213219} 
    214220/*if ($core->auth->check('delete,contentadmin',$core->blog->id)) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map