Changeset 1353:745f14d89686 for admin/post.php
- Timestamp:
- 08/14/13 10:35:15 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post.php
r1346 r1353 133 133 if ($next_rs !== null) { 134 134 $next_link = sprintf($post_link,$next_rs->post_id, 135 html::escapeHTML($next_rs->post_title),__(' next entry').' »');135 html::escapeHTML($next_rs->post_title),__('Next entry').' »'); 136 136 $next_headlink = sprintf($post_headlink,'next', 137 137 html::escapeHTML($next_rs->post_title),$next_rs->post_id); … … 140 140 if ($prev_rs !== null) { 141 141 $prev_link = sprintf($post_link,$prev_rs->post_id, 142 html::escapeHTML($prev_rs->post_title),'« '.__(' previous entry'));142 html::escapeHTML($prev_rs->post_title),'« '.__('Previous entry')); 143 143 $prev_headlink = sprintf($post_headlink,'previous', 144 144 html::escapeHTML($prev_rs->post_title),$prev_rs->post_id); … … 337 337 switch ($post_status) { 338 338 case 1: 339 $img_status = sprintf($img_status_pattern,__(' published'),'check-on.png');339 $img_status = sprintf($img_status_pattern,__('Published'),'check-on.png'); 340 340 break; 341 341 case 0: 342 $img_status = sprintf($img_status_pattern,__(' unpublished'),'check-off.png');342 $img_status = sprintf($img_status_pattern,__('Unpublished'),'check-off.png'); 343 343 break; 344 344 case -1: 345 $img_status = sprintf($img_status_pattern,__(' scheduled'),'scheduled.png');345 $img_status = sprintf($img_status_pattern,__('Scheduled'),'scheduled.png'); 346 346 break; 347 347 case -2: 348 $img_status = sprintf($img_status_pattern,__(' pending'),'check-wrn.png');348 $img_status = sprintf($img_status_pattern,__('Pending'),'check-wrn.png'); 349 349 break; 350 350 default: … … 362 362 363 363 if ($post_id && $post->post_status == 1) { 364 echo '<p><a class=" preview_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this entry on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>';364 echo '<p><a class="onblog_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this entry on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 365 365 } 366 366 if ($post_id) … … 394 394 395 395 echo 396 '<p class="col"><label class="required "><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'.396 '<p class="col"><label class="required no-margin"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 397 397 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 398 398 '</p>'. 399 399 400 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'</label> '. 400 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'<span class="form-note">'. 401 __('Add an introduction to the post.').'</span></label> '. 401 402 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 402 403 '</p>'. … … 407 408 '</p>'. 408 409 409 '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').'</label>'. 410 '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').'<span class="form-note">'. 411 __('Add unpublished notes.').'</span></label>'. 410 412 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 411 413 '</p>'; … … 415 417 416 418 echo 417 '<p >'.419 '<p class="border-top">'. 418 420 ($post_id ? form::hidden('id',$post_id) : ''). 419 421 '<input type="submit" value="'.__('Save').' (s)" '. … … 441 443 442 444 echo 443 '<p><label for="cat_id">'.__('Category:').444 form::combo('cat_id',$categories_combo,$cat_id,'maximal').445 '</label></p>'.446 447 445 '<p><label for="post_status">'.__('Entry status:'). 448 446 form::combo('post_status',$status_combo,$post_status,'','',!$can_publish). … … 454 452 455 453 '<p><label for="post_format">'.__('Text formating:'). 456 form::combo('post_format',$formaters_combo,$post_format ).454 form::combo('post_format',$formaters_combo,$post_format,'maximal'). 457 455 '</label>'. 458 456 '</p>'. 459 '<p>'.($post_id && $post_format != 'xhtml' ? '<a id="convert-xhtml" class="button" href="post.php?id='.$post_id.'&xconv=1">'.__('Convert to XHTML').'</a>' : '').'</p>'. 457 '<p>'.($post_id && $post_format != 'xhtml' ? '<a id="convert-xhtml" class="button maximal" href="post.php?id='.$post_id.'&xconv=1">'.__('Convert to XHTML').'</a>' : '').'</p>'. 458 459 '<p class="border-top"><label for="cat_id">'.__('Category:'). 460 form::combo('cat_id',$categories_combo,$cat_id,'maximal'). 461 '</label></p>'. 460 462 461 463 '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '. … … 528 530 if ($can_edit_post && $core->auth->check('publish,contentadmin',$core->blog->id)) 529 531 { 530 $combo_action[__(' publish')] = 'publish';531 $combo_action[__(' unpublish')] = 'unpublish';532 $combo_action[__(' mark as pending')] = 'pending';533 $combo_action[__(' mark as junk')] = 'junk';532 $combo_action[__('Publish')] = 'publish'; 533 $combo_action[__('Unpublish')] = 'unpublish'; 534 $combo_action[__('Mark as pending')] = 'pending'; 535 $combo_action[__('Mark as junk')] = 'junk'; 534 536 } 535 537
Note: See TracChangeset
for help on using the changeset viewer.