Changeset 1353:745f14d89686 for admin
- Timestamp:
- 08/14/13 10:35:15 (12 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_post.js
r1280 r1353 149 149 var a = document.createElement('a'); 150 150 a.href = '#'; 151 a.className = 'button'; 151 152 $(a).click(function() { 152 153 var params = { -
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 -
admin/posts.php
r1334 r1353 77 77 $selected_combo = array( 78 78 '-' => '', 79 __(' selected') => '1',80 __(' not selected') => '0'79 __('Selected') => '1', 80 __('Not selected') => '0' 81 81 ); 82 82 -
admin/search.php
r1334 r1353 84 84 '<p><label for="qtype1" class="classic">'.form::radio(array('qtype','qtype1'),'p',$qtype == 'p').' '.__('Search in entries').'</label> '. 85 85 '<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>'. 87 87 '</div>'. 88 88 '</form>'; -
admin/style/default.css
r1344 r1353 525 525 margin-left: 1.2rem; 526 526 } 527 #entry-content label { 528 text-transform: uppercase; 529 font-weight: bold; 530 margin-top: 2em; 531 } 527 532 #entry-sidebar { 528 533 width: 17em; … … 985 990 /* -------------------------------------------------------------------- CLASSES COMMUNES */ 986 991 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 } 991 1000 /* paragraphe pour bouton Nouveau bidule */ 992 1001 p.top-add { … … 1252 1261 font-style:italic; 1253 1262 font-weight: normal; 1263 text-transform: none; 1254 1264 color: #666; 1255 1265 } … … 1345 1355 margin-bottom: .1em; 1346 1356 } 1357 h4 a.button {font-weight: normal;} 1358 1347 1359 /* validation */ 1348 1360 input[type=submit],
Note: See TracChangeset
for help on using the changeset viewer.