Changeset 911:8eb6c605bf39 for plugins
- Timestamp:
- 10/26/12 11:41:00 (13 years ago)
- Branch:
- default
- Location:
- plugins/pages
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/_public.php
r904 r911 228 228 $params['limit'] = abs((integer) $w->limit); 229 229 $params['no_content'] = true; 230 $params['post_selected'] = false; 230 231 231 232 $sort = $w->sortby; -
plugins/pages/list.php
r578 r911 86 86 $selected = ''; 87 87 if ($this->rs->post_selected) { 88 $selected = sprintf($img,__(' selected'),'selected.png');88 $selected = sprintf($img,__('hidden'),'hidden.png'); 89 89 } 90 90 -
plugins/pages/page.php
r907 r911 31 31 $post_open_comment = false; 32 32 $post_open_tb = false; 33 $post_selected = false; 33 34 34 35 $post_media = array(); … … 108 109 $post_open_comment = (boolean) $post->post_open_comment; 109 110 $post_open_tb = (boolean) $post->post_open_tb; 111 $post_selected = (boolean) $post->post_selected; 110 112 111 113 $page_title = __('Edit page'); … … 160 162 $post_open_comment = !empty($_POST['post_open_comment']); 161 163 $post_open_tb = !empty($_POST['post_open_tb']); 164 $post_selected = !empty($_POST['post_selected']); 162 165 $post_lang = $_POST['post_lang']; 163 166 $post_password = !empty($_POST['post_password']) ? $_POST['post_password'] : null; … … 200 203 $cur->post_open_comment = (integer) $post_open_comment; 201 204 $cur->post_open_tb = (integer) $post_open_tb; 205 $cur->post_selected = (integer) $post_selected; 202 206 203 207 if (isset($_POST['post_url'])) { … … 424 428 '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '. 425 429 __('Accept comments').'</label></p>'. 430 426 431 '<p><label for="post_open_tb" class="classic">'.form::checkbox('post_open_tb',1,$post_open_tb).' '. 427 432 __('Accept trackbacks').'</label></p>'. 428 433 434 '<p><label for="post_selected" class="classic">'.form::checkbox('post_selected',1,$post_selected).' '. 435 __('Hidden').'</label></p>'. 436 '<p class="form-note">'. 437 __('If checked this page will be active but not listed in widget Pages.'). 438 '</p>'. 439 429 440 '<p><label for="post_position" class="classic">'.__('Page position:').' '. 430 441 form::field('post_position',3,3,(string) $post_position).
Note: See TracChangeset
for help on using the changeset viewer.