Changeset 1888:d55087172539
- Timestamp:
- 08/26/13 11:24:30 (10 years ago)
- Branch:
- Ticket #1181
- Children:
- 1889:03b338af9afe, 1890:4d31d3ae18fc
- Location:
- plugins/pages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/index.php
r1179 r1888 12 12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 13 14 $act = (!empty($_REQUEST['act']) && $_REQUEST['act'] == 'page') ? 'page': 'list';14 $act = !empty($_REQUEST['act']) ? $_REQUEST['act'] : 'list'; 15 15 16 16 17 17 if ($act == 'page') { 18 18 include dirname(__FILE__).'/page.php'; 19 } else if ($act == 'actions') { 20 include dirname(__FILE__).'/pages_actions.php'; 19 21 } else { 20 22 include dirname(__FILE__).'/list.php'; 21 23 } 22 23 ?> -
plugins/pages/list.php
r1882 r1888 148 148 if ($core->auth->check('publish,contentadmin',$core->blog->id)) 149 149 { 150 $combo_action[__('Reorder')] = 'reorder';151 150 $combo_action[__('Publish')] = 'publish'; 152 151 $combo_action[__('Unpublish')] = 'unpublish'; … … 197 196 # Show pages 198 197 $post_list->display($page,$nb_per_page, 199 '<form action="p osts_actions.php" method="post" id="form-entries">'.198 '<form action="plugin.php?p=pages&act=actions" method="post" id="form-entries">'. 200 199 201 200 '%s'. … … 209 208 form::hidden(array('post_type'),'page'). 210 209 form::hidden(array('redir'),html::escapeHTML($_SERVER['REQUEST_URI'])). 210 '</div>'. 211 211 $core->formNonce(). 212 '</div>'. 212 '<br class="clear"/>'. 213 '<input type="submit" value="'.__('Save categories order').'" name="reorder" class="clear"/>'. 213 214 '</form>'); 214 215 }
Note: See TracChangeset
for help on using the changeset viewer.