Changeset 1491:2b9253624dbe for admin/post.php
- Timestamp:
- 08/20/13 10:56:34 (12 years ago)
- Branch:
- twig
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post.php
r1490 r1491 193 193 new dcFieldCombo('post_status',$core->auth->getInfo('user_post_status'),$status_combo,array( 194 194 'disabled' => !$can_publish, 195 'label' => __('Entry status :'))))195 'label' => __('Entry status')))) 196 196 ->addField( 197 197 new dcFieldCombo('cat_id','',$categories_combo,array( 198 "label" => __('Category:')))) 198 "label" => __('Category')))) 199 ->addField( 200 new dcFieldCombo('new_cat_parent','',$categories_combo,array( 201 "label" => __('Parent:')))) 202 ->addField( 203 new dcFieldText('new_cat_title','', array( 204 'maxlength' => 255, 205 'label' => __('Title')))) 206 199 207 ->addField( 200 208 new dcFieldText('post_dt','',array( 201 "label" => __('Publi shed on:'))))209 "label" => __('Publication date and hour')))) 202 210 ->addField( 203 211 new dcFieldCombo('post_format',$core->auth->getOption('post_format'),$formaters_combo,array( 204 "label" => __('Text formating :'))))212 "label" => __('Text formating')))) 205 213 ->addField( 206 214 new dcFieldCheckbox ('post_open_comment',$core->blog->settings->system->allow_comments,array( … … 302 310 $form->setup(); 303 311 312 $sidebar_blocks = new ArrayObject(array( 313 'status-box' => array( 314 'title' => __('Status'), 315 'items' => array('post_status','post_dt','post_lang','post_format')), 316 'metas-box' => array( 317 'title' => __('Ordering'), 318 'items' => array('post_selected','cat_id')), 319 'options-box' => array( 320 'title' => __('Options'), 321 'items' => array('post_open_comment','post_open_tb','post_password','post_url')) 322 )); 323 324 $main_blocks = new ArrayObject(array( 325 "post_title","post_excerpt","post_content","post_notes" 326 )); 327 328 329 $_ctx->sidebar_blocks = $sidebar_blocks; 330 $_ctx->main_blocks = $main_blocks; 331 304 332 /* DISPLAY 305 333 -------------------------------------------------------- */ … … 321 349 ->default_tab = $default_tab; 322 350 351 352 323 353 $core->tpl->display('post.html.twig'); 324 354 ?>
Note: See TracChangeset
for help on using the changeset viewer.