Changeset 1454:e64273de06ad for plugins/pages/page.php
- Timestamp:
- 08/18/13 16:27:51 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/page.php
r1358 r1454 124 124 if ($next_rs !== null) { 125 125 $next_link = sprintf($post_link,$next_rs->post_id, 126 html::escapeHTML($next_rs->post_title),__(' next page').' »');126 html::escapeHTML($next_rs->post_title),__('Next page').' »'); 127 127 $next_headlink = sprintf($post_headlink,'next', 128 128 html::escapeHTML($next_rs->post_title),$next_rs->post_id); … … 131 131 if ($prev_rs !== null) { 132 132 $prev_link = sprintf($post_link,$prev_rs->post_id, 133 html::escapeHTML($prev_rs->post_title),'« '.__(' previous page'));133 html::escapeHTML($prev_rs->post_title),'« '.__('Previous page')); 134 134 $prev_headlink = sprintf($post_headlink,'previous', 135 135 html::escapeHTML($prev_rs->post_title),$prev_rs->post_id); … … 318 318 switch ($post_status) { 319 319 case 1: 320 $img_status = sprintf($img_status_pattern,__(' published'),'check-on.png');320 $img_status = sprintf($img_status_pattern,__('Published'),'check-on.png'); 321 321 break; 322 322 case 0: 323 $img_status = sprintf($img_status_pattern,__(' unpublished'),'check-off.png');323 $img_status = sprintf($img_status_pattern,__('Unpublished'),'check-off.png'); 324 324 break; 325 325 case -1: 326 $img_status = sprintf($img_status_pattern,__(' scheduled'),'scheduled.png');326 $img_status = sprintf($img_status_pattern,__('Scheduled'),'scheduled.png'); 327 327 break; 328 328 case -2: 329 $img_status = sprintf($img_status_pattern,__(' pending'),'check-wrn.png');329 $img_status = sprintf($img_status_pattern,__('Pending'),'check-wrn.png'); 330 330 break; 331 331 default: … … 367 367 368 368 if ($post_id && $post->post_status == 1) { 369 echo '<p><a class=" preview_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>';369 echo '<p><a class="onblog_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 370 370 } 371 371 … … 403 403 404 404 echo 405 '<p class="col"><label for="post_title" class="required "><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').405 '<p class="col"><label for="post_title" class="required no-margin"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 406 406 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 407 '</label></p>'. 408 409 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'</label> '. 407 '</p>'. 408 409 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:'). 410 '<span class="form-note">'.__('Add an introduction to the page.').'</span></label> '. 410 411 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 411 412 '</p>'. … … 417 418 418 419 echo 419 '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'. 420 '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:'). 421 '<span class="form-note">'.__('Add unpublished notes.').'</span></label>'. 420 422 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 421 423 '</p>'; … … 425 427 426 428 echo 427 '<p >'.429 '<p class="border-top">'. 428 430 ($post_id ? form::hidden('id',$post_id) : ''). 429 431 '<input type="submit" value="'.__('Save').' (s)" '. … … 453 455 454 456 echo 455 '<p><label for="post_status">'.__('Page status:'). 457 '<p><label for="post_status">'.__('Page status:').'</label> '. 456 458 form::combo('post_status',$status_combo,$post_status,'','',!$can_publish). 457 '</ label></p>'.458 459 '<p><label for="post_dt">'.__('Published on:'). 460 form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')).'</ label></p>'.461 462 '<p><label for="post_format">'.__('Text formating:'). 459 '</p>'. 460 461 '<p><label for="post_dt">'.__('Published on:').'</label>'. 462 form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')).'</p>'. 463 464 '<p><label for="post_format">'.__('Text formating:').'</label>'. 463 465 form::combo('post_format',$formaters_combo,$post_format). 464 ($post_id && $post_format != 'xhtml' ? '<a href="'.html::escapeURL($redir_url).'&id='.$post_id.'&xconv=1">'.__('Convert to XHTML').'</a>' : '').465 '</ label></p>'.466 ($post_id && $post_format != 'xhtml' ? '<a class="button" href="'.html::escapeURL($redir_url).'&id='.$post_id.'&xconv=1">'.__('Convert to XHTML').'</a>' : ''). 467 '</p>'. 466 468 467 469 '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '. … … 487 489 '</p>'. 488 490 489 '<p><label for="post_position" class="classic">'.__('Page position:').' '.491 '<p><label for="post_position" class="classic">'.__('Page position:').'</label> '. 490 492 form::field('post_position',3,3,(string) $post_position). 491 '</ label></p>'.492 493 '<p><label for="post_lang">'.__('Page lang:'). 494 form::combo('post_lang',$lang_combo,$post_lang).'</ label></p>'.495 496 '<p><label for="post_password">'.__('Page password:'). 493 '</p>'. 494 495 '<p><label for="post_lang">'.__('Page lang:').'</label>'. 496 form::combo('post_lang',$lang_combo,$post_lang).'</p>'. 497 498 '<p><label for="post_password">'.__('Page password:').'</label>'. 497 499 form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 498 '</ label></p>'.500 '</p>'. 499 501 500 502 '<div class="lockable">'. 501 '<p><label for="post_url">'.__('Basename:'). 503 '<p><label for="post_url">'.__('Basename:').'</label>'. 502 504 form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 503 '</ label></p>'.505 '</p>'. 504 506 '<p class="form-note warn">'. 505 507 __('Warning: If you set the URL manually, it may conflict with another page.'). … … 530 532 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 531 533 'href="post_media.php?post_id='.$post_id.'&media_id='.$f->media_id.'&remove=1">'. 532 '<img src="images/check-off.png" alt="'.__(' remove').'" /></a>'.534 '<img src="images/check-off.png" alt="'.__('Remove').'" /></a>'. 533 535 '</li>'. 534 536 … … 541 543 echo '<p>'.__('No attachment.').'</p>'; 542 544 } 543 echo '<p><a href="media.php?post_id='.$post_id.'">'.__('Add files to this page').'</a></p>';545 echo '<p><a class="button" href="media.php?post_id='.$post_id.'">'.__('Add files to this page').'</a></p>'; 544 546 } 545 547 … … 577 579 if ($can_edit_page && $core->auth->check('publish,contentadmin',$core->blog->id)) 578 580 { 579 $combo_action[__(' publish')] = 'publish';580 $combo_action[__(' unpublish')] = 'unpublish';581 $combo_action[__(' mark as pending')] = 'pending';582 $combo_action[__(' mark as junk')] = 'junk';581 $combo_action[__('Publish')] = 'publish'; 582 $combo_action[__('Unpublish')] = 'unpublish'; 583 $combo_action[__('Mark as pending')] = 'pending'; 584 $combo_action[__('Mark as junk')] = 'junk'; 583 585 } 584 586 … … 639 641 '<form action="comment.php" method="post" id="comment-form">'. 640 642 '<div class="constrained">'. 641 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 643 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 642 644 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 643 '</ label></p>'.644 645 '<p><label for="comment_email">'.__('Email:'). 645 '</p>'. 646 647 '<p><label for="comment_email">'.__('Email:').'</label>'. 646 648 form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))). 647 '</ label></p>'.648 649 '<p><label for="comment_site">'.__('Web site:'). 649 '</p>'. 650 651 '<p><label for="comment_site">'.__('Web site:').'</label>'. 650 652 form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))). 651 '</ label></p>'.653 '</p>'. 652 654 653 655 '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Comment:').'</label> '. … … 704 706 switch ($rs->comment_status) { 705 707 case 1: 706 $img_status = sprintf($img,__(' published'),'check-on.png');708 $img_status = sprintf($img,__('Published'),'check-on.png'); 707 709 break; 708 710 case 0: 709 $img_status = sprintf($img,__(' unpublished'),'check-off.png');711 $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 710 712 break; 711 713 case -1: 712 $img_status = sprintf($img,__(' pending'),'check-wrn.png');714 $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 713 715 break; 714 716 case -2: 715 $img_status = sprintf($img,__(' junk'),'junk.png');717 $img_status = sprintf($img,__('Junk'),'junk.png'); 716 718 break; 717 719 } … … 722 724 723 725 '<td class="nowrap">'. 724 ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__(' select this comment').'"') : '').'</td>'.726 ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__('Select this comment').'"') : '').'</td>'. 725 727 '<td class="maximal">'.$rs->comment_author.'</td>'. 726 728 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'.
Note: See TracChangeset
for help on using the changeset viewer.