Dotclear


Ignore:
Timestamp:
08/18/13 16:27:51 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Let labels be labels, the end (I hope so).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/page.php

    r1358 r1454  
    124124          if ($next_rs !== null) { 
    125125               $next_link = sprintf($post_link,$next_rs->post_id, 
    126                     html::escapeHTML($next_rs->post_title),__('next page').'&nbsp;&#187;'); 
     126                    html::escapeHTML($next_rs->post_title),__('Next page').'&nbsp;&#187;'); 
    127127               $next_headlink = sprintf($post_headlink,'next', 
    128128                    html::escapeHTML($next_rs->post_title),$next_rs->post_id); 
     
    131131          if ($prev_rs !== null) { 
    132132               $prev_link = sprintf($post_link,$prev_rs->post_id, 
    133                     html::escapeHTML($prev_rs->post_title),'&#171;&nbsp;'.__('previous page')); 
     133                    html::escapeHTML($prev_rs->post_title),'&#171;&nbsp;'.__('Previous page')); 
    134134               $prev_headlink = sprintf($post_headlink,'previous', 
    135135                    html::escapeHTML($prev_rs->post_title),$prev_rs->post_id); 
     
    318318     switch ($post_status) { 
    319319          case 1: 
    320                $img_status = sprintf($img_status_pattern,__('published'),'check-on.png'); 
     320               $img_status = sprintf($img_status_pattern,__('Published'),'check-on.png'); 
    321321               break; 
    322322          case 0: 
    323                $img_status = sprintf($img_status_pattern,__('unpublished'),'check-off.png'); 
     323               $img_status = sprintf($img_status_pattern,__('Unpublished'),'check-off.png'); 
    324324               break; 
    325325          case -1: 
    326                $img_status = sprintf($img_status_pattern,__('scheduled'),'scheduled.png'); 
     326               $img_status = sprintf($img_status_pattern,__('Scheduled'),'scheduled.png'); 
    327327               break; 
    328328          case -2: 
    329                $img_status = sprintf($img_status_pattern,__('pending'),'check-wrn.png'); 
     329               $img_status = sprintf($img_status_pattern,__('Pending'),'check-wrn.png'); 
    330330               break; 
    331331          default: 
     
    367367 
    368368if ($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>'; 
    370370} 
    371371 
     
    403403      
    404404     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>'. 
    406406     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> '. 
    410411     form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 
    411412     '</p>'. 
     
    417418      
    418419     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>'. 
    420422     form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 
    421423     '</p>'; 
     
    425427      
    426428     echo 
    427      '<p>'. 
     429     '<p class="border-top">'. 
    428430     ($post_id ? form::hidden('id',$post_id) : ''). 
    429431     '<input type="submit" value="'.__('Save').' (s)" '. 
     
    453455      
    454456     echo 
    455      '<p><label for="post_status">'.__('Page status:'). 
     457     '<p><label for="post_status">'.__('Page status:').'</label> '. 
    456458     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>'. 
    463465     form::combo('post_format',$formaters_combo,$post_format). 
    464      ($post_id && $post_format != 'xhtml' ? '<a href="'.html::escapeURL($redir_url).'&amp;id='.$post_id.'&amp;xconv=1">'.__('Convert to XHTML').'</a>' : ''). 
    465      '</label></p>'. 
     466     ($post_id && $post_format != 'xhtml' ? '<a class="button" href="'.html::escapeURL($redir_url).'&amp;id='.$post_id.'&amp;xconv=1">'.__('Convert to XHTML').'</a>' : ''). 
     467     '</p>'. 
    466468      
    467469     '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '. 
     
    487489     '</p>'. 
    488490 
    489      '<p><label for="post_position" class="classic">'.__('Page position:').' '. 
     491     '<p><label for="post_position" class="classic">'.__('Page position:').'</label> '. 
    490492     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>'. 
    497499     form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 
    498      '</label></p>'. 
     500     '</p>'. 
    499501      
    500502     '<div class="lockable">'. 
    501      '<p><label for="post_url">'.__('Basename:'). 
     503     '<p><label for="post_url">'.__('Basename:').'</label>'. 
    502504     form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 
    503      '</label></p>'. 
     505     '</p>'. 
    504506     '<p class="form-note warn">'. 
    505507     __('Warning: If you set the URL manually, it may conflict with another page.'). 
     
    530532               '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 
    531533               'href="post_media.php?post_id='.$post_id.'&amp;media_id='.$f->media_id.'&amp;remove=1">'. 
    532                '<img src="images/check-off.png" alt="'.__('remove').'" /></a>'. 
     534               '<img src="images/check-off.png" alt="'.__('Remove').'" /></a>'. 
    533535               '</li>'. 
    534536                
     
    541543               echo '<p>'.__('No attachment.').'</p>'; 
    542544          } 
    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>'; 
    544546     } 
    545547      
     
    577579     if ($can_edit_page && $core->auth->check('publish,contentadmin',$core->blog->id)) 
    578580     { 
    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'; 
    583585     } 
    584586      
     
    639641     '<form action="comment.php" method="post" id="comment-form">'. 
    640642     '<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>'. 
    642644     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>'. 
    646648     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>'. 
    650652     form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))). 
    651      '</label></p>'. 
     653     '</p>'. 
    652654      
    653655     '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Comment:').'</label> '. 
     
    704706          switch ($rs->comment_status) { 
    705707               case 1: 
    706                     $img_status = sprintf($img,__('published'),'check-on.png'); 
     708                    $img_status = sprintf($img,__('Published'),'check-on.png'); 
    707709                    break; 
    708710               case 0: 
    709                     $img_status = sprintf($img,__('unpublished'),'check-off.png'); 
     711                    $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 
    710712                    break; 
    711713               case -1: 
    712                     $img_status = sprintf($img,__('pending'),'check-wrn.png'); 
     714                    $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 
    713715                    break; 
    714716               case -2: 
    715                     $img_status = sprintf($img,__('junk'),'junk.png'); 
     717                    $img_status = sprintf($img,__('Junk'),'junk.png'); 
    716718                    break; 
    717719          } 
     
    722724           
    723725          '<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>'. 
    725727          '<td class="maximal">'.$rs->comment_author.'</td>'. 
    726728          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map