Dotclear

Changeset 1353:745f14d89686 for admin


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

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

Location:
admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_post.js

    r1280 r1353  
    149149          var a = document.createElement('a'); 
    150150          a.href = '#'; 
     151          a.className = 'button'; 
    151152          $(a).click(function() { 
    152153               var params = { 
  • 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      
  • admin/posts.php

    r1334 r1353  
    7777     $selected_combo = array( 
    7878     '-' => '', 
    79      __('selected') => '1', 
    80      __('not selected') => '0' 
     79     __('Selected') => '1', 
     80     __('Not selected') => '0' 
    8181     ); 
    8282      
  • admin/search.php

    r1334 r1353  
    8484'<p><label for="qtype1" class="classic">'.form::radio(array('qtype','qtype1'),'p',$qtype == 'p').' '.__('Search in entries').'</label> '. 
    8585'<label for="qtype2" class="classic">'.form::radio(array('qtype','qtype2'),'c',$qtype == 'c').' '.__('Search in comments').'</label></p>'. 
    86 '</p><input type="submit" value="'.__('Search').'" /></p>'. 
     86'<p><input type="submit" value="'.__('Search').'" /></p>'. 
    8787'</div>'. 
    8888'</form>'; 
  • admin/style/default.css

    r1344 r1353  
    525525     margin-left: 1.2rem; 
    526526} 
     527#entry-content label { 
     528     text-transform: uppercase; 
     529     font-weight: bold; 
     530     margin-top: 2em; 
     531} 
    527532#entry-sidebar { 
    528533     width: 17em; 
     
    985990/* -------------------------------------------------------------------- CLASSES COMMUNES */ 
    986991 
    987 .no-margin { 
    988      margin: 0; 
    989 } 
    990  
     992.no-margin, #entry-content label.no-margin { 
     993     margin: 0; 
     994} 
     995.border-top { 
     996     border-top: 1px solid #999; 
     997     padding-top: 1em; 
     998     margin-top:    1em; 
     999} 
    9911000/* paragraphe pour bouton Nouveau bidule */ 
    9921001p.top-add { 
     
    12521261     font-style:italic; 
    12531262     font-weight: normal; 
     1263     text-transform: none; 
    12541264     color: #666; 
    12551265} 
     
    13451355     margin-bottom: .1em; 
    13461356} 
     1357h4 a.button {font-weight: normal;} 
     1358 
    13471359/* validation */ 
    13481360input[type=submit], 
Note: See TracChangeset for help on using the changeset viewer.

Sites map