Changeset 1796:ef72fa20ed9d for admin/posts.php
- Timestamp:
- 09/11/13 17:43:40 (12 years ago)
- Branch:
- actionsreloaded
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r1792 r1796 103 103 104 104 # Actions combo box 105 $combo_action = array(); 106 if ($core->auth->check('publish,contentadmin',$core->blog->id)) 107 { 108 $combo_action[__('Status')] = array( 109 __('Publish') => 'publish', 110 __('Unpublish') => 'unpublish', 111 __('Schedule') => 'schedule', 112 __('Mark as pending') => 'pending' 113 ); 114 } 115 $combo_action[__('Mark')] = array( 116 __('Mark as selected') => 'selected', 117 __('Mark as unselected') => 'unselected' 118 ); 119 $combo_action[__('Change')] = array( 120 __('Change category') => 'category', 121 __('Change language') => 'lang'); 122 if ($core->auth->check('admin',$core->blog->id)) 123 { 124 $combo_action[__('Change')] = array_merge($combo_action[__('Change')], 125 array(__('Change author') => 'author')); 126 } 127 if ($core->auth->check('delete,contentadmin',$core->blog->id)) 128 { 129 $combo_action[__('Delete')] = array(__('Delete') => 'delete'); 130 } 131 132 # --BEHAVIOR-- adminPostsActionsCombo 133 $core->callBehavior('adminPostsActionsCombo',array(&$combo_action)); 105 106 $posts_actionset = new dcPostsActionSet($core,'posts.php'); 107 108 $posts_actionset->process(); 134 109 135 110 /* Get posts … … 304 279 # Show posts 305 280 $post_list->display($page,$nb_per_page, 306 '<form action="posts _actions.php" method="post" id="form-entries">'.281 '<form action="posts.php" method="post" id="form-entries">'. 307 282 308 283 '%s'. … … 312 287 313 288 '<p class="col right"><label for="action" class="classic">'.__('Selected entries action:').'</label> '. 314 form::combo('action',$ combo_action).289 form::combo('action',$posts_actionset->getCombo()). 315 290 '<input type="submit" value="'.__('ok').'" /></p>'. 316 291 form::hidden(array('user_id'),$user_id).
Note: See TracChangeset
for help on using the changeset viewer.