Dotclear


Ignore:
Timestamp:
08/14/13 10:35:15 (11 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Post ergo, first step (work in progress).
Typo harmonization (capitalize items).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r1346 r1353  
    133133          if ($next_rs !== null) { 
    134134               $next_link = sprintf($post_link,$next_rs->post_id, 
    135                     html::escapeHTML($next_rs->post_title),__('next entry').'&nbsp;&#187;'); 
     135                    html::escapeHTML($next_rs->post_title),__('Next entry').'&nbsp;&#187;'); 
    136136               $next_headlink = sprintf($post_headlink,'next', 
    137137                    html::escapeHTML($next_rs->post_title),$next_rs->post_id); 
     
    140140          if ($prev_rs !== null) { 
    141141               $prev_link = sprintf($post_link,$prev_rs->post_id, 
    142                     html::escapeHTML($prev_rs->post_title),'&#171;&nbsp;'.__('previous entry')); 
     142                    html::escapeHTML($prev_rs->post_title),'&#171;&nbsp;'.__('Previous entry')); 
    143143               $prev_headlink = sprintf($post_headlink,'previous', 
    144144                    html::escapeHTML($prev_rs->post_title),$prev_rs->post_id); 
     
    337337     switch ($post_status) { 
    338338          case 1: 
    339                $img_status = sprintf($img_status_pattern,__('published'),'check-on.png'); 
     339               $img_status = sprintf($img_status_pattern,__('Published'),'check-on.png'); 
    340340               break; 
    341341          case 0: 
    342                $img_status = sprintf($img_status_pattern,__('unpublished'),'check-off.png'); 
     342               $img_status = sprintf($img_status_pattern,__('Unpublished'),'check-off.png'); 
    343343               break; 
    344344          case -1: 
    345                $img_status = sprintf($img_status_pattern,__('scheduled'),'scheduled.png'); 
     345               $img_status = sprintf($img_status_pattern,__('Scheduled'),'scheduled.png'); 
    346346               break; 
    347347          case -2: 
    348                $img_status = sprintf($img_status_pattern,__('pending'),'check-wrn.png'); 
     348               $img_status = sprintf($img_status_pattern,__('Pending'),'check-wrn.png'); 
    349349               break; 
    350350          default: 
     
    362362 
    363363if ($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>'; 
    365365} 
    366366if ($post_id) 
     
    394394      
    395395     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>'. 
    397397     form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 
    398398     '</p>'. 
    399399      
    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> '. 
    401402     form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 
    402403     '</p>'. 
     
    407408     '</p>'. 
    408409      
    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>'. 
    410412     form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 
    411413     '</p>'; 
     
    415417      
    416418     echo 
    417      '<p>'. 
     419     '<p class="border-top">'. 
    418420     ($post_id ? form::hidden('id',$post_id) : ''). 
    419421     '<input type="submit" value="'.__('Save').' (s)" '. 
     
    441443      
    442444     echo 
    443      '<p><label for="cat_id">'.__('Category:'). 
    444      form::combo('cat_id',$categories_combo,$cat_id,'maximal'). 
    445      '</label></p>'. 
    446       
    447445     '<p><label for="post_status">'.__('Entry status:'). 
    448446     form::combo('post_status',$status_combo,$post_status,'','',!$can_publish). 
     
    454452      
    455453     '<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'). 
    457455     '</label>'. 
    458456     '</p>'. 
    459      '<p>'.($post_id && $post_format != 'xhtml' ? '<a id="convert-xhtml" class="button" href="post.php?id='.$post_id.'&amp;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.'&amp;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>'. 
    460462      
    461463     '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '. 
     
    528530     if ($can_edit_post && $core->auth->check('publish,contentadmin',$core->blog->id)) 
    529531     { 
    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'; 
    534536     } 
    535537      
Note: See TracChangeset for help on using the changeset viewer.

Sites map