Changes in [1808:7cb106195d0d:1874:0f292c55dba7]
- Files:
-
- 8 added
- 5 deleted
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
.hgsubstate
r1742 r1860 1 33139a996922b7a21b658961f8052c869bea60a1inc/libs/clearbricks1 d56b02c87260d4e54872c54fba979e03c0b5422b inc/libs/clearbricks -
admin/blog_pref.php
r1746 r1848 394 394 '</p>'. 395 395 396 '<p><label for="note_title_tag">'.__(' Note title HTML tag:').'</label>'.396 '<p><label for="note_title_tag">'.__('HTML tag for the title of the notes on the blog:').'</label>'. 397 397 form::combo('note_title_tag',$note_title_tag_combo,$blog_settings->system->note_title_tag). 398 398 '</p>'. … … 403 403 404 404 echo 405 '<p class="form-note ">'.__('XML/RPC interface allows you to edit your blog with an external client.').'</p>';405 '<p class="form-note info">'.__('XML/RPC interface allows you to edit your blog with an external client.').'</p>'; 406 406 407 407 if ($blog_settings->system->enable_xmlrpc) { … … 509 509 '<div class="col">'. 510 510 '<h5>'.__('Generated image sizes (in pixels)').'</h5>'. 511 '<p class="field"><label for="media_img_t_size"> '.__('Thumbnails:').''.512 form::field('media_img_t_size',3,3,$blog_settings->system->media_img_t_size).'</ label></p>'.513 514 '<p class="field"><label for="media_img_s_size"> '.__('Small:').''.515 form::field('media_img_s_size',3,3,$blog_settings->system->media_img_s_size).'</ label></p>'.516 517 '<p class="field"><label for="media_img_m_size"> '.__('Medium:').''.518 form::field('media_img_m_size',3,3,$blog_settings->system->media_img_m_size).'</ label></p>'.519 '</div>'. 520 521 '<div class="col">'. 522 '<h5> <label for="media_img_title_pattern">'.__('Inserted image title').'</label></h5>'.523 '<p >'.__('This defines image tag title when you insert it in a post from the media manager. It is retrieved from the picture\'s metadata.').'</p>'.524 '<p>'.form::combo('media_img_title_pattern',$img_title_combo,html::escapeHTML($blog_settings->system->media_img_title_pattern)).'</p>'.525 '< p><label for="media_img_use_dto_first" class="classic">'.511 '<p class="field"><label for="media_img_t_size">Thumbnail</label> '. 512 form::field('media_img_t_size',3,3,$blog_settings->system->media_img_t_size).'</p>'. 513 514 '<p class="field"><label for="media_img_s_size">Small</label> '. 515 form::field('media_img_s_size',3,3,$blog_settings->system->media_img_s_size).'</p>'. 516 517 '<p class="field"><label for="media_img_m_size">Medium</label> '. 518 form::field('media_img_m_size',3,3,$blog_settings->system->media_img_m_size).'</p>'. 519 '</div>'. 520 521 '<div class="col">'. 522 '<h5>'.__('Default image insertion attributes').'</h5>'. 523 '<p class="vertical-separator"><label for="media_img_title_pattern">'.__('Inserted image title').'</label>'. 524 form::combo('media_img_title_pattern',$img_title_combo,html::escapeHTML($blog_settings->system->media_img_title_pattern)).' '. 525 '<label for="media_img_use_dto_first" class="classic">'. 526 526 form::checkbox('media_img_use_dto_first','1',$blog_settings->system->media_img_use_dto_first). 527 527 __('Use original media date if possible').'</label></p>'. 528 529 '<h5>'.__('Default image insertion attributes').'</h5>'. 530 '<p ><label for="media_img_default_size">'.__('Image size:').'</label>'.528 '<p class="form-note info">'.__('It is retrieved from the picture\'s metadata.').'</p>'. 529 530 '<p class="field vertical-separator"><label for="media_img_default_size">'.__('Size of inserted image:').'</label>'. 531 531 form::combo('media_img_default_size',$img_default_size_combo, 532 532 (html::escapeHTML($blog_settings->system->media_img_default_size) != '' ? html::escapeHTML($blog_settings->system->media_img_default_size) : 'm')). 533 533 '</p>'. 534 '<p ><label for="media_img_default_alignment">'.__('Image alignment:').'</label>'.534 '<p class="field"><label for="media_img_default_alignment">'.__('Image alignment:').'</label>'. 535 535 form::combo('media_img_default_alignment',$img_default_alignment_combo,html::escapeHTML($blog_settings->system->media_img_default_alignment)). 536 536 '</p>'. 537 '<p><label for="media_img_default_link" class="classic">'.537 '<p><label for="media_img_default_link">'. 538 538 form::checkbox('media_img_default_link','1',$blog_settings->system->media_img_default_link). 539 __(' As a link tooriginal image').'</label></p>'.539 __('Insert a link to the original image').'</label></p>'. 540 540 '</div>'. 541 541 '</div>'. -
admin/help.php
r1793 r1839 68 68 } 69 69 70 $help_page = !empty($_GET['page']) ? html::escapeHTML($_GET['page']) : ' core_main';70 $help_page = !empty($_GET['page']) ? html::escapeHTML($_GET['page']) : 'index'; 71 71 $content_array = helpPage($help_page); 72 if (($content_array['content'] == '') || ($help_page == ' core_main')) {73 $content_array = helpPage(' core_main');72 if (($content_array['content'] == '') || ($help_page == 'index')) { 73 $content_array = helpPage('index'); 74 74 } 75 75 if ($content_array['title'] != '') { … … 90 90 dcPage::open(__('Global help'), 91 91 # --BEHAVIOR-- adminPostHeaders 92 $core->callBehavior('adminPostHeaders'), 92 $core->callBehavior('adminPostHeaders'). 93 dcPage::jsPageTabs('first-step'), 93 94 $breadcrumb 94 95 ); -
admin/index.php
r1788 r1811 221 221 '<div class="dc-update"><h3>'.sprintf(__('Dotclear %s is available!'),$new_v).'</h3> '. 222 222 '<p><a class="button submit" href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a> '. 223 '<a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'.223 '<a class="button" href="update.php?hide_msg=1">'.__('Remind me later').'</a>'. 224 224 ($version_info ? ' </p>'. 225 '<p ><a href="'.$version_info.'" class="updt-info">'.__('Information about this version').'</a>' : '').'</p>'.225 '<p class="updt-info"><a href="'.$version_info.'">'.__('Information about this version').'</a>' : '').'</p>'. 226 226 '</div>'; 227 227 } -
admin/js/_media.js
r1782 r1852 25 25 } 26 26 27 $('.button. add').click(function(e) {27 $('.button.choose_files').click(function(e) { 28 28 // Use the native click() of the file input. 29 29 $('#upfile').click(); -
admin/js/_post.js
r1760 r1832 90 90 $(this).val(last_post_format); 91 91 } 92 93 $('.format_control > *').addClass('hide'); 94 $('.format_control:not(.control_no_'+$(this).val()+') > *').removeClass('hide'); 92 95 }); 93 96 … … 117 120 return window.confirm(dotclear.msg.confirm_delete_post); 118 121 }); 122 123 // Markup validator 124 var v = $('<div class="format_control"><p><a id="a-validator"></a></p><div/>').get(0); 125 $('.format_control').before(v); 126 var a = $('#a-validator').get(0); 127 a.href = '#'; 128 a.className = 'button '; 129 $(a).click(function() { 130 131 excerpt_content = $('#post_excerpt').css('display') != 'none' ? $('#post_excerpt').val() : $('#excerpt-area iframe').contents().find('body').html(); 132 post_content = $('#post_content').css('display') != 'none' ? $('#post_content').val() : $('#content-area iframe').contents().find('body').html(); 133 134 var params = { 135 xd_check: dotclear.nonce, 136 f: 'validatePostMarkup', 137 excerpt: excerpt_content, 138 content: post_content, 139 format: $('#post_format').get(0).value, 140 lang: $('#post_lang').get(0).value 141 }; 142 143 $.post('services.php',params,function(data) { 144 if ($(data).find('rsp').attr('status') != 'ok') { 145 alert($(data).find('rsp message').text()); 146 return false; 147 } 148 149 $('.message, .success, .error, .warning-msg').remove(); 150 151 if ($(data).find('valid').text() == 1) { 152 var p = document.createElement('p'); 153 p.id = 'markup-validator'; 154 155 $(p).addClass('success'); 156 $(p).text(dotclear.msg.xhtml_valid); 157 $('#entry-content h3').after(p); 158 $(p).backgroundFade({sColor:'#9BCA1C',eColor:'#bee74b',steps:20}); 159 } else { 160 var div = document.createElement('div'); 161 div.id = 'markup-validator'; 162 163 $(div).addClass('error'); 164 $(div).html('<p><strong>' + dotclear.msg.xhtml_not_valid + '</strong></p>' + $(data).find('errors').text()); 165 $('#entry-content h3').after(div); 166 $(div).backgroundFade({sColor:'#ffdec8',eColor:'#ffbaba',steps:20}); 167 } 168 169 if ( $('#post_excerpt').text() != excerpt_content || $('#post_content').text() != post_content ) { 170 var pn = document.createElement('p'); 171 $(pn).addClass('warning-msg'); 172 $(pn).text(dotclear.msg.warning_validate_no_save_content); 173 $('#entry-content h3').after(pn); 174 } 175 176 return false; 177 }); 178 179 return false; 180 }); 181 182 a.appendChild(document.createTextNode(dotclear.msg.xhtml_validator)); 183 184 $('.format_control > *').addClass('hide'); 185 $('.format_control:not(.control_no_'+last_post_format+') > *').removeClass('hide'); 119 186 120 187 // Hide some fields … … 184 251 }); 185 252 186 // Markup validator187 var h = document.createElement('h4');188 var a = document.createElement('a');189 a.href = '#';190 a.className = 'button';191 $(a).click(function() {192 var params = {193 xd_check: dotclear.nonce,194 f: 'validatePostMarkup',195 excerpt: $('#post_excerpt').text(),196 content: $('#post_content').text(),197 format: $('#post_format').get(0).value,198 lang: $('#post_lang').get(0).value199 };200 201 $.post('services.php',params,function(data) {202 if ($(data).find('rsp').attr('status') != 'ok') {203 alert($(data).find('rsp message').text());204 return false;205 }206 207 if ($(data).find('valid').text() == 1) {208 var p = document.createElement('p');209 p.id = 'markup-validator';210 211 if ($('#markup-validator').length > 0) {212 $('#markup-validator').remove();213 }214 215 $(p).addClass('message');216 $(p).text(dotclear.msg.xhtml_valid);217 $(p).insertAfter(h);218 $(p).backgroundFade({sColor:'#676e78',eColor:'#ffcc00',steps:50},function() {219 $(this).backgroundFade({sColor:'#ffcc00',eColor:'#676e78'});220 });221 } else {222 var div = document.createElement('div');223 div.id = 'markup-validator';224 225 if ($('#markup-validator').length > 0) {226 $('#markup-validator').remove();227 }228 229 $(div).addClass('error');230 $(div).html('<p><strong>' + dotclear.msg.xhtml_not_valid + '</strong></p>' + $(data).find('errors').text());231 $(div).insertAfter(h);232 $(div).backgroundFade({sColor:'#ffffff',eColor:'#FFBABA',steps:50},function() {233 $(this).backgroundFade({sColor:'#ffbaba',eColor:'#ffffff'});234 });235 }236 237 return false;238 });239 240 return false;241 });242 243 a.appendChild(document.createTextNode(dotclear.msg.xhtml_validator));244 h.appendChild(a);245 $(h).appendTo('#entry-content');246 247 253 // Check unsaved changes before XHTML conversion 248 254 var excerpt = $('#post_excerpt').val(); -
admin/js/_preferences-dragdrop.js
r1766 r1795 2 2 $("#my-favs ul").sortable({'cursor':'move'}); 3 3 $("#my-favs ul, #my-favs ul *").css({'cursor':'move'}); 4 $("#my-favs ul input").css({'cursor':'auto'}); 4 5 $('#favs-form').submit(function() { 5 6 var order=[]; -
admin/js/common.js
r1789 r1862 263 263 }, 264 264 265 checkboxesHelpers: function(e ) {265 checkboxesHelpers: function(e, target) { 266 266 $(e).append(document.createTextNode(dotclear.msg.to_select)); 267 267 $(e).append(document.createTextNode(' ')); 268 268 269 target = target || $(e).parents('form').find('input[type="checkbox"]'); 270 269 271 var a = document.createElement('a'); 270 272 a.href='#'; 271 273 $(a).append(document.createTextNode(dotclear.msg.select_all)); 272 274 a.onclick = function() { 273 $(this).parents('form').find('input[type="checkbox"]').check();275 target.check(); 274 276 return false; 275 277 }; … … 282 284 $(a).append(document.createTextNode(dotclear.msg.no_selection)); 283 285 a.onclick = function() { 284 $(this).parents('form').find('input[type="checkbox"]').unCheck();286 target.unCheck(); 285 287 return false; 286 288 }; … … 293 295 $(a).append(document.createTextNode(dotclear.msg.invert_sel)); 294 296 a.onclick = function() { 295 $(this).parents('form').find('input[type="checkbox"]').toggleCheck();297 target.toggleCheck(); 296 298 return false; 297 299 }; … … 346 348 $(function() { 347 349 // remove class no-js from html tag; cf style/default.css for examples 348 $('body').removeClass('no-js'); 349 $('body').addClass('with-js'); 350 350 $('body').removeClass('no-js').addClass('with-js'); 351 351 352 $('#wrapper').contents().each(function() { 352 353 if (this.nodeType==8) { … … 396 397 return true; 397 398 }); 399 400 // Main menu collapser 401 var objMain = $('#wrapper'); 402 function showSidebar(){ 403 // Show sidebar 404 objMain.removeClass('hide-mm'); 405 $.cookie('sidebar-pref',null,{expires:30}); 406 } 407 function hideSidebar(){ 408 // Hide sidebar 409 objMain.addClass('hide-mm'); 410 $.cookie('sidebar-pref','hide-mm',{expires:30}); 411 } 412 // Sidebar separator 413 var objSeparator = $('#collapser'); 414 objSeparator.click(function(e){ 415 e.preventDefault(); 416 if ( objMain.hasClass('hide-mm') ){ 417 showSidebar(); 418 } 419 else { 420 hideSidebar(); 421 } 422 }).css('height', objSeparator.parent().parent().parent().outerHeight() + 'px'); 423 if ( $.cookie('sidebar-pref') == 'hide-mm' ){ 424 objMain.addClass('hide-mm'); 425 } else { 426 objMain.removeClass('hide-mm'); 427 } 428 398 429 }); 399 -
admin/js/jsToolBar/jsToolBar.wysiwyg.js
r1753 r1833 46 46 47 47 if (mode == 'xhtml') { 48 this.wwg_mode = true; 48 49 this.draw(mode); 49 50 } else { … … 51 52 this.syncContents('iframe'); 52 53 } 54 this.wwg_mode = false; 53 55 this.removeEditor(); 54 56 this.textarea.style.display = ''; … … 86 88 } else if (window.navigator.product != undefined && 87 89 window.navigator.product == 'Gecko') { 88 This.ibody.innerHTML = '<p><br _moz_editor_blogus_node="TRUE" _moz_dirty="" ></p>';90 This.ibody.innerHTML = '<p><br _moz_editor_blogus_node="TRUE" _moz_dirty=""/></p>'; 89 91 } else { 90 92 var idoc = This.iwin.document; -
admin/js/meta-editor.js
r1741 r1819 113 113 114 114 addMetaDialog: function() { 115 var This = this;116 115 117 116 if (this.submit_button == null) { … … 121 120 } 122 121 123 // View meta list124 var a = $('<a href="#">' + this.text_choose + '</a>');125 a.click(function() {126 This.showMetaList(metaEditor.prototype.meta_type,$(this).parent());127 return false;128 });129 122 if (this.text_separation != '') { 130 123 this.target.append($('<p></p>').addClass('form-note').append(this.text_separation.replace(/%s/,this.meta_type))); 131 124 } 132 this.target.append($('<p></p>').append(a)); 125 126 this.showMetaList(metaEditor.prototype.meta_type,this.target); 127 133 128 }, 134 129 135 130 showMetaList: function(type,target) { 136 target.empty();137 target.append('...');138 target.addClass('addMeta');139 131 140 132 var params = { … … 151 143 152 144 $.get(this.service_uri,params,function(data) { 145 146 var pl = $('<p class="addMeta"></p>'); 147 148 $('.addMeta').remove(); 149 153 150 if ($(data).find('meta').length > 0) { 154 target.empty();151 pl.empty(); 155 152 var meta_link; 156 153 … … 165 162 166 163 if (i>0) { 167 target.append(', ');164 pl.append(', '); 168 165 } 169 target.append(meta_link);166 pl.append(meta_link); 170 167 }); 171 168 … … 177 174 return false; 178 175 }); 179 target.append(', ').append(a_more); 180 } 176 pl.append(', ').append(a_more); 177 178 pl.addClass('hide'); 179 180 var pa = $('<p></p>'); 181 target.append(pa); 182 183 var a = $('<a href="#" class="metaGetList">' + This.text_choose + '</a>'); 184 a.click(function() { 185 $('.addMeta').removeClass('hide'); 186 $('.metaGetList').remove(); 187 return false; 188 }); 189 190 pa.append(a); 191 } 192 193 target.append(pl); 194 181 195 } else { 182 target.empty();196 pl.empty(); 183 197 } 184 198 }); -
admin/media.php
r1760 r1855 328 328 329 329 '<p class="pagination">'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 330 331 for ($i=$pager->index_start, $j=0; $i<=$pager->index_end; $i++, $j++) 330 331 $dgroup = ''; 332 $fgroup = ''; 333 for ($i=$pager->index_start, $j=0; $i<=$pager->index_end; $i++,$j++) 332 334 { 333 echo mediaItemLine($items[$i],$j); 334 } 335 if ($items[$i]->d) { 336 $dgroup .= mediaItemLine($items[$i],$j); 337 } else { 338 $fgroup .= mediaItemLine($items[$i],$j); 339 } 340 } 341 echo 342 ($dgroup != '' ? '<div class="folders-group">'.$dgroup.'</div>' : ''). 343 ($fgroup != '' ? '<div class="files-group">'.$fgroup.'</div>' : ''); 335 344 336 345 echo … … 361 370 '<h4>'.__('Add files').'</h4>'. 362 371 '<p>'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 363 '<p class="max-sizer form-note info"> '.__('Maximum file size allowed:').' '.files::size(DC_MAX_UPLOAD_SIZE).'</p>'.364 372 '<form id="fileupload" action="'.html::escapeURL($page_url).'" method="post" enctype="multipart/form-data" aria-disabled="false">'. 365 373 '<p>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). … … 372 380 echo 373 381 '<p><label for="upfile">'.'<span class="add-label one-file">'.__('Choose file').'</span>'.'</label>'. 374 '<button class="button add">'.__('Choose files').'</button>'.382 '<button class="button choose_files">'.__('Choose files').'</button>'. 375 383 '<input type="file" id="upfile" name="upfile[]"'.($user_ui_enhanceduploader?' multiple="mutiple"':'').' data-url="'.html::escapeURL($page_url).'" /></p>'; 384 385 echo 386 '<p class="max-sizer form-note"> '.__('Maximum file size allowed:').' '.files::size(DC_MAX_UPLOAD_SIZE).'</p>'; 376 387 377 388 echo … … 379 390 '<p class="one-file"><label for="upfilepriv" class="classic">'.__('Private').'</label> '. 380 391 form::checkbox(array('upfilepriv','upfilepriv'),1).'</p>'; 392 393 381 394 382 395 if (!$user_ui_enhanceduploader) { … … 454 467 $fname = $f->basename; 455 468 469 $class = 'media-item media-col-'.($i%2); 470 456 471 if ($f->d) { 457 472 $link = html::escapeURL($page_url).'&d='.html::sanitizeURL($f->relname); 458 473 if ($f->parent) { 459 474 $fname = '..'; 475 $class .= ' media-folder-up'; 476 } else { 477 $class .= ' media-folder'; 460 478 } 461 479 } else { … … 464 482 } 465 483 466 $class = 'media-item media-col-'.($i%2);467 468 484 $res = 469 '<div class="'.$class.'">< a class="media-icon media-link" href="'.$link.'">'.470 '<img src="'.$f->media_icon.'" alt="" /> </a>'.471 '<ul>'. 472 '<li><a class="media-link" href="'.$link.'">'.$fname.'</a></li>';485 '<div class="'.$class.'"><p><a class="media-icon media-link" href="'.$link.'">'. 486 '<img src="'.$f->media_icon.'" alt="" />'.$fname.'</a></p>'; 487 488 $lst = ''; 473 489 474 490 if (!$f->d) { 475 $ res.=491 $lst .= 476 492 '<li>'.$f->media_title.'</li>'. 477 493 '<li>'. … … 482 498 } 483 499 484 $ res .= '<li class="media-action"> ';500 $act = ''; 485 501 486 502 if ($post_id && !$f->d) { 487 $res .= '<form action="post_media.php" method="post">'. 503 $act .= 504 '<form action="post_media.php" method="post">'. 488 505 '<input type="image" src="images/plus.png" alt="'.__('Attach this file to entry').'" '. 489 506 'title="'.__('Attach this file to entry').'" /> '. … … 496 513 497 514 if ($popup && !$f->d) { 498 $ res.= '<a href="'.$link.'"><img src="images/plus.png" alt="'.__('Insert this file into entry').'" '.515 $act .= '<a href="'.$link.'"><img src="images/plus.png" alt="'.__('Insert this file into entry').'" '. 499 516 'title="'.__('Insert this file into entry').'" /></a> '; 500 517 } 501 518 502 519 if ($f->del) { 503 $ res.= '<a class="media-remove" '.520 $act .= '<a class="media-remove" '. 504 521 'href="'.html::escapeURL($page_url).'&d='. 505 522 rawurlencode($GLOBALS['d']).'&remove='.rawurlencode($f->basename).'">'. … … 507 524 } 508 525 509 $ res .= '</li>';526 $lst .= ($act != '' ? '<li class="media-action"> '.$act.'</li>' : ''); 510 527 511 528 if ($f->type == 'audio/mpeg3') { 512 $res .= '<li>'.dcMedia::mp3player($f->file_url,'index.php?pf=player_mp3.swf').'</li>'; 513 } 514 515 $res .= '</ul></div>'; 529 $lst .= '<li>'.dcMedia::mp3player($f->file_url,'index.php?pf=player_mp3.swf').'</li>'; 530 } 531 532 $res .= ($lst != '' ? '<ul>'.$lst.'</ul>' : ''); 533 534 $res .= '</div>'; 516 535 517 536 return $res; -
admin/media_item.php
r1605 r1853 263 263 __('As a single image').'</label><br />'. 264 264 '<label for="insert2" class="classic">'.form::radio(array('insertion','insert2'),'link',$media_img_default_link). 265 __('As a link to original image').'</label>'.265 __('As a link to the original image').'</label>'. 266 266 '</p>'; 267 267 } … … 282 282 echo '<p>'; 283 283 foreach ($i_align as $k => $v) { 284 echo '<label for="alignment"class="classic">'.284 echo '<label class="classic">'. 285 285 form::radio(array('alignment'),$k,$v[1]).' '.$v[0].'</label><br /> '; 286 286 } … … 316 316 echo '<p>'; 317 317 foreach ($i_align as $k => $v) { 318 echo '<label for="alignment"class="classic">'.318 echo '<label class="classic">'. 319 319 form::radio(array('alignment'),$k,$v[1]).' '.$v[0].'</label><br /> '; 320 320 } -
admin/post.php
r1789 r1831 455 455 '<p>'.form::combo('post_format',$formaters_combo,$post_format,'maximal'). 456 456 '</p>'. 457 '<p >'.($post_id && $post_format != 'xhtml' ?458 '<a id="convert-xhtml" class="button " href="post.php?id='.$post_id.'&xconv=1">'.459 __('Convert to XHTML').'</a> ' : '').'</p></div>')),457 '<p class="format_control control_no_xhtml">'. 458 '<a id="convert-xhtml" class="button'.($post_id && $post_format != 'wiki' ? ' hide' : '').'" href="post.php?id='.$post_id.'&xconv=1">'. 459 __('Convert to XHTML').'</a></p></div>')), 460 460 'metas-box' => array( 461 461 'title' => __('Ordering'), … … 533 533 534 534 "post_content" => 535 '<p class="area" ><label class="required" '.535 '<p class="area" id="content-area"><label class="required" '. 536 536 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 537 537 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). -
admin/preferences.php
r1786 r1845 169 169 $core->auth->user_prefs->interface->put('hide_std_favicon',!empty($_POST['user_ui_hide_std_favicon']),'boolean',null,true,true); 170 170 } 171 $core->auth->user_prefs->interface->put('iconset',(!empty($_POST['user_ui_iconset']) ? $_POST['user_ui_iconset'] : ''));172 $core->auth->user_prefs->interface->put('nofavmenu',!empty($_POST['user_ui_nofavmenu']),'boolean');173 171 174 172 # Udate user -
admin/style/default.css
r1793 r1869 27 27 width: 100%; 28 28 padding-top: 1em; 29 background: #f7f7f7 url(bg_wrapper.png) repeat-y 15.5em; 29 30 } 30 31 #main { … … 33 34 margin-left: -14.5em; 34 35 margin-top: 0; 35 background: #fff url(bg_menu.png);36 36 } 37 37 #content { 38 margin: 0 0 0 1 4.5em;38 margin: 0 0 0 15.5em; 39 39 padding: 9px 18px 18px; /* ie < 9 sucks */ 40 40 padding: .9rem 1.8rem 1.8rem; 41 41 background: #fff; 42 overflow: hidden; 42 43 } 43 44 #main-menu { … … 47 48 padding-top: .5em; 48 49 padding-bottom: 1em; 49 background: #f7f7f7;50 overflow: hidden; 50 51 } 51 52 #footer { … … 54 55 text-align: right; 55 56 border-top: 1px solid #ccc; 56 } 57 background-color: #fff; 58 } 59 /* to hide main-menu */ 60 #collapser { 61 display: block; 62 float: left; 63 width: 1em; 64 background: #f3f3f3; 65 margin-left: 14.5em; 66 border: none; 67 text-align: left; 68 overflow: hidden; 69 padding-top: 22px; 70 } 71 .expand-mm { 72 display:none; 73 } 74 /* if main-menu is hidden */ 75 #wrapper.hide-mm { 76 background: #fff; 77 } 78 .hide-mm #main { 79 margin-left: 0; 80 } 81 .hide-mm #content { 82 margin-left: 1em; 83 } 84 .hide-mm #main-menu { 85 display: none; 86 } 87 .hide-mm #collapser { 88 margin-left: 0; 89 text-align: right; 90 background-color: #e3e3e3; 91 } 92 .hide-mm .collapse-mm { 93 display: none; 94 } 95 .hide-mm .expand-mm { 96 display: block; 97 } 98 /* if no js activated */ 99 .no-js #content { 100 margin-left: 14.5em; 101 } 102 57 103 /* -------------------------------------------------------------- layout: two-cols */ 58 104 .two-cols { … … 122 168 display: inline-block; 123 169 vertical-align: top; 124 margin-left: 2.5%;125 margin-right: 2.5%;170 margin-left: 1.5%; 171 margin-right: 1.5%; 126 172 -moz-box-sizing: border-box; 127 173 -webkit-box-sizing: border-box; 128 174 box-sizing: border-box; 129 175 } 130 .three-boxes:first-child {176 .three-boxes:first-child, .three-boxes.first-child { 131 177 margin-left: 0; 132 178 } 133 .three-boxes:last-child {179 .three-boxes:last-child, .three-boxes.last-child { 134 180 margin-right: 0; 135 181 } … … 376 422 cursor: help; 377 423 } 424 input, textarea, select, option, optgroup, legend,label { 425 font-size: 1em; 426 } 378 427 /* ------------------------------------------------------------------ liens */ 379 428 a, a:link, a:visited { … … 387 436 a img, a:link img, a:visited img { 388 437 border:none; 438 } 439 h1 a:link, h1 a:visited { 440 border: none; 389 441 } 390 442 /* ---------------------------------------------------------------------------- … … 398 450 fieldset { 399 451 display: block; 400 margin: 0 01em 0;452 margin: 1em 0; 401 453 padding: 1em 0.5em; 402 454 border-width: 1px 0; … … 405 457 background: #f7f7f7; 406 458 } 407 input , textarea, select, option, optgroup, legend{459 input[type=text], textarea { 408 460 font: 100% "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; 409 461 } … … 467 519 input[type=checkbox], input[type=radio], input[type=file] { 468 520 border: none; 469 margin: 0 ;521 margin: 0 .33em 0 0; 470 522 padding: 0; 471 523 background: transparent; … … 508 560 } 509 561 p.field label { 510 display: block;562 display: inline-block; 511 563 width: 14em; 512 564 } 513 565 p.field input, p.field select { 514 display: inline; 515 position: absolute; 516 left: 14.5em; 517 top: 0; 566 display: inline-block; 518 567 } 519 568 a.form-control { … … 553 602 border: 1px solid #ccc; 554 603 font-family: arial, helvetica, sans-serif; 555 padding: 3px 8px;604 padding: 4px 10px; 556 605 line-height: normal !important; 557 606 display: inline-block; 558 vertical-align: top;607 vertical-align: middle; 559 608 font-size: 12px; /* ie < 9 sucks */ 560 609 font-size: 1.2rem; … … 563 612 border-radius: 3px; 564 613 cursor: pointer; 614 font: 100% "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; 565 615 } 566 616 button, … … 571 621 } 572 622 /* validation */ 573 input[type=submit], a.button.submit {623 input[type=submit], a.button.submit, input.button.start { 574 624 color: #fff; 625 border: 1px solid #2C8FD1; 626 background-image:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%); 627 background-image:-webkit-gradient(linear,left top,left bottom, from(#25A6E1), to(#188BC0)); 628 background-image:linear-gradient(top,#25A6E1 0%,#188BC0 100%); 575 629 background-color:#25A6E1; 576 border-color: #2C8FD1;577 background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);578 background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));579 background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);580 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#25A6E1',endColorstr='#188BC0',GradientType=0);581 630 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); 582 631 } 583 632 input[type=submit]:hover, input[type=submit]:focus, 633 input.button.start:hover, input.button.start:focus, 584 634 a.button.submit:hover, a.button.submit:focus { 585 background :#188BC0;586 background :-moz-linear-gradient(top,#188BC0 0%,#25A6E1 100%);587 background :-webkit-gradient(linear,left top,left bottom,color-stop(0%,#188BC0),color-stop(100%,#25A6E1));588 background :linear-gradient(top,#188BC0 0%,#25A6E1 100%);589 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#25A6E1',endColorstr='#25A6E1',GradientType=0);590 } 591 /* suppression, reset, "neutres" */ 592 input[type=reset], input[type= delete], input[type=submit].delete, input[type=submit].reset, input[type=button],593 input .delete, input.reset, input.button,594 a. delete, a.reset, a.button {635 background-image:-moz-linear-gradient(top,#188BC0 0%,#25A6E1 100%); 636 background-image:-webkit-gradient(linear,left top,left bottom, from(#188BC0),to(#25A6E1)); 637 background-image:linear-gradient(top,#188BC0 0%,#25A6E1 100%); 638 background-color:#188BC0; 639 } 640 /* suppression, reset, "neutres" fond gris */ 641 button, input[type=button], input.button, 642 input[type=reset], input[type=submit].reset, input.reset, 643 input[type=submit].delete, input.delete, 644 a.button.delete, a.button.reset, a.button { 595 645 color: #000; 596 background-color: #f5f5f5; 597 background: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#dfdfdf)); 598 background: -moz-linear-gradient(top, #f5f5f5, #dfdfdf); 646 background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#dfdfdf)); 647 background-image: -moz-linear-gradient(top, #f5f5f5, #dfdfdf); 648 background-image:linear-gradient(top,#f5f5f5 0%,#dfdfdf 100%); 649 background-color: #eee; 650 border: 1px solid #ccc; 599 651 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); 600 652 } 601 input[type=reset]:hover, input[type=delete]:hover, input[type=button]:hover, 602 input[type=submit].delete:hover, 603 input.delete:hover, input.reset:hover, input.button:hover, 604 a.delete:hover, a.reset:hover, a.button:hover, 605 input[type=reset]:focus, input[type=delete]:focus, input[type=button]:focus, 606 input[type=submit].delete:focus, 607 input.delete:focus, input.reset:focus, input.button:focus, 608 a.delete:focus, a.reset:focus, a.button:focus { 609 background-color:#e9e9e9; 610 background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) ); 611 background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% ); 612 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9'); 613 } 614 a.delete, input[type=delete], input.delete { 653 button:hover, input[type=button]:hover, input.button:hover, 654 button:focus, input[type=button]:focus, input.button:focus, 655 input[type=reset]:hover, input[type=submit].reset:hover, input.reset:hover, 656 input[type=reset]:focus, input[type=submit].reset:focus, input.reset:focus, 657 input[type=submit].delete:hover, input.delete:hover, 658 input[type=submit].delete:focus, input.delete:focus, 659 a.button.delete:hover, a.button.reset:hover, a.button:hover, 660 a.button.delete:focus, a.button.reset:focus, a.button:focus { 661 background-image:-webkit-gradient( linear, left top, left bottom, from(#e9e9e9), to(#f9f9f9)); 662 background-image:-moz-linear-gradient(top, #e9e9e9, #f9f9f9); 663 background-image:linear-gradient(top,#e9e9e9 0%,#f9f9f9 100%); 664 background-color:#f3f3f3; 665 } 666 /* suppression */ 667 input[type=submit].delete, input.delete, a.button.delete { 615 668 border-color: #ccc; 616 669 color: #c00; 617 670 margin-left: 1em; 618 671 } 619 a.delete:first-child, input [type=delete]:first-child, input.delete:first-child {672 a.delete:first-child, input.delete:first-child { 620 673 margin-left: 0; 621 674 } 622 a.delete:hover, input[type=delete]:hover, input.delete:hover,623 a.delete:focus, input[type=delete]:focus, input.delete:focus {675 input[type=submit].delete:hover, input.delete:hover, a.button.delete:hover, 676 input[type=submit].delete:focus, input.delete:focus, a.button.delete:focus { 624 677 border-color: #c00; 625 678 } … … 629 682 } 630 683 .button.add { 631 background :-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #bee74b), color-stop(1, #9BCA1C) );632 background :-moz-linear-gradient( center top, #bee74b 5%, #9BCA1C 100%);684 background-image:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #bee74b), color-stop(1, #9BCA1C) ); 685 background-image:-moz-linear-gradient(center top, #bee74b 5%, #9BCA1C 100%); 633 686 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#bee74b', endColorstr='#9BCA1C'); 634 687 background-color:#bee74b; 635 688 border:1px solid #B2D742; 636 padding:.33em 1.33em ;689 padding:.33em 1.33em .5em; 637 690 color: #000; 638 691 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); … … 642 695 } 643 696 .button.add:hover, .button.add:active, .button.add:focus { 644 background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #9BCA1C), color-stop(1, #bee74b) ); 645 background:-moz-linear-gradient( center top, #9BCA1C 5%, #bee74b 100% ); 697 background-image:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #9BCA1C), color-stop(1, #bee74b) ); 698 background-image:-moz-linear-gradient(center top, #9BCA1C 5%, #bee74b 100%); 699 background-image:linear-gradient(center top, #9BCA1C 5%, #bee74b 100%); 646 700 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#9BCA1C', endColorstr='#bee74b'); 647 701 background-color:#9BCA1C; … … 659 713 input.disabled, input[type=submit].disabled { 660 714 text-shadow: none; 715 filter: none; 661 716 color: #676e78; 662 717 background: #F5F5F5; 663 718 border: 1px solid #CCC; 664 719 } 665 input.disabled:hover, input[type=submit].disabled {720 input.disabled:hover, input[type=submit].disabled:hover { 666 721 color: #676e78; 667 background: # DFDFDF;722 background: #eee; 668 723 border: 1px solid #CCC; 669 724 } … … 739 794 background: #A2CBE9 url(msg-success.png) no-repeat .7em .7em; 740 795 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); 741 color: # 34495e;796 color: #000; 742 797 box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) 743 798 } 744 799 .dc-update h3 { 745 800 margin-top: 0; 746 color: # 34495e;801 color: #000; 747 802 } 748 803 .dc-update p { 749 804 display: inline-block; 805 vertical-align: middle; 750 806 } 751 807 .dc-update a { 752 color: #34495e; 753 border-color: #000; 808 color: #000; 754 809 margin-right: 1em; 755 810 } 756 a.updt-info {757 margin-left: 2em;758 font-weight: bold;759 }760 811 .dc-update a.button { 761 812 padding: .5em 1em; 813 } 814 .updt-info a { 815 margin-left: 2em; 816 border-color: #000; 817 font-weight: bold; 762 818 } 763 819 /* --------------------------------------------------------------------------------- … … 811 867 height: 36px; /* ie < 9 sucks */ 812 868 height: 3.6rem; 813 border: none;814 869 color: #fff; 815 870 background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 6px; … … 980 1035 /* ----------------------------------------------------------------- CONTENT ELEMENTS */ 981 1036 .part-tabs ul { 982 padding: .5em 0 .3em1em;1037 padding: .5em 0 0 1em; 983 1038 border-bottom: 1px solid #ddd; 1039 line-height: 2; 984 1040 } 985 1041 .part-tabs li { … … 996 1052 color: #333; 997 1053 background-color: #ecf0f1; 1054 display: inline-block; 998 1055 } 999 1056 .part-tabs li a:hover, .part-tabs li a:focus { … … 1006 1063 font-weight: bold; 1007 1064 border-bottom-color: #fff; 1008 padding-bottom: 7px; /* ie < 9 sucks */ 1009 padding-bottom: .7rem; 1010 } 1065 } 1011 1066 .multi-part { 1012 1067 padding-left: 1em; … … 1079 1134 margin: 0.3em 0 1.5em 0; 1080 1135 } 1136 /* 1. inside help block */ 1137 #helplink p { 1138 padding: 0 0 0 .5em; 1139 } 1140 /* 2. in footer */ 1141 span.helplink { 1142 display: block; 1143 float: left; 1144 padding: 0 1.5em 0 30px; 1145 background: transparent url(../images/page_help.png) no-repeat 6px center; 1146 } 1147 span.helplink a { 1148 border-bottom: 1px solid #2373A8; 1149 } 1081 1150 /* ------------------------------------------------------------------ FOOTER ELEMENTS */ 1082 1151 #footer p { … … 1356 1425 } 1357 1426 .box.small { 1358 width: 300px;1427 width: 280px; 1359 1428 } 1360 1429 .box.large { … … 1394 1463 } 1395 1464 /* ------------------------------------------------------------------- blog_pref.php */ 1465 #media_img_title_pattern { 1466 margin-right: 1em; 1467 } 1396 1468 .user-perm { 1397 1469 margin: 2em 0px; … … 1588 1660 width: 100%; 1589 1661 } 1662 /* ------------------------------------------------------------------ help.php */ 1663 .legible { /* for pages with a lot of text to read */ 1664 font-size: 1.16em; 1665 max-width: 62em; 1666 margin-left: 6%; 1667 } 1668 1590 1669 /* ------------------------------------------------------------------ media.php */ 1591 .media-list {1592 position: static;1593 }1594 1670 .media-item { 1595 1671 position: relative; 1596 border: 1px solid # ccc;1597 margin: 1em;1598 padding: 1 em;1672 border: 1px solid #ddd; 1673 margin: 9px; 1674 padding: 10px 12px 6px; 1599 1675 width: 300px; 1600 1676 display: inline-block; 1601 1677 vertical-align: top; 1602 min-height: 120px 1603 } 1678 min-height: 140px; 1679 } 1680 .media-item p { 1681 margin: 0 0 .5em; 1682 } 1683 .media-item object { 1684 margin-top: .5em; 1685 } 1604 1686 .media-item ul { 1605 1687 display: block; … … 1616 1698 display: block; 1617 1699 } 1618 .media-action-box { 1619 position: relative; 1620 margin: 3em 3em 1em 1em; 1621 display: inline-block; 1622 vertical-align: top; 1623 } 1624 li.media-action { 1625 display: block; 1626 position: absolute; 1627 top: 5px; 1628 right: 5px; 1629 height: 16px; 1630 } 1700 .media-link { 1701 font-size: 1.1em; 1702 } 1703 .media-action-box { 1704 position: relative; 1705 margin: 3em 3em 1em 1em; 1706 display: inline-block; 1707 vertical-align: top; 1708 } 1709 li.media-action { 1710 display: block; 1711 position: absolute; 1712 bottom: 4px; 1713 right: 8px; 1714 height: 16px; 1715 } 1631 1716 li.media-action a { 1632 1717 border: none; … … 1638 1723 border: none; 1639 1724 } 1725 #entry-sidebar .media-item { 1726 width: 100%; 1727 min-height: 0; 1728 padding: 4px; 1729 margin: .33em 0; 1730 } 1731 #entry-sidebar li.media-action { 1732 top: 4px; 1733 } 1734 1735 .folders-group .media-item { 1736 min-height: 70px; 1737 } 1738 .folders-group .media-item p { 1739 margin-bottom: 0; 1740 } 1741 .media-folder { 1742 background: transparent url(bg_menu.png) repeat-y; 1743 border-color: #eee; 1744 } 1745 .media-folder-up { 1746 border-color: #fff; 1747 padding-bottom: 6px; 1748 } 1749 .media-folder .media-link { 1750 font-size: 1.25em; 1751 margin-left: 2em; 1752 color: #676e78; 1753 border-bottom: none; 1754 } 1755 1640 1756 .zip-dl { 1641 1757 background: transparent url(package.png) no-repeat 0 50%; 1642 1758 padding: 5px 0 5px 20px; 1643 1759 } 1760 /* upload multiple */ 1761 .enhanced_uploader .choose_files, .enhanced_uploader .cancel, 1762 .enhanced_uploader .clean, .enhanced_uploader .start { 1763 margin-right: .4em; 1764 } 1765 .enhanced_uploader #upfile { 1766 visibility: hidden; 1767 width: 0; 1768 height: 0; 1769 margin: 0; 1770 opacity: 0; 1771 filter: alpha(opacity=0); 1772 cursor: pointer; 1773 } 1774 .button.clean, .button.cancel, .button.choose_files { 1775 display: none; 1776 } 1777 .enhanced_uploader .button.choose_files { 1778 display: inline-block; 1779 } 1780 .enhanced_uploader .max-size { 1781 display: block; 1782 } 1783 .enhanced_uploader .one-file { 1784 display: none; 1785 } 1786 label span.one-file { 1787 display: inline; 1788 } 1789 .enhanced_uploader p.clear { 1790 padding-top: 1em; 1791 margin-bottom: 1em; 1792 } 1793 #add-file-f p.clear { 1794 margin-top: 1em; 1795 margin-bottom: 0; 1796 clear: both; 1797 } 1798 .files { 1799 list-style-type: none; 1800 margin-left: 0; 1801 padding-left: 0; 1802 border-bottom: 1px solid #ddd; 1803 } 1804 .files li { 1805 margin-left: 0; 1806 padding-left: 0; 1807 } 1808 .upload-msg { 1809 font-weight: bold; 1810 } 1811 .upload-msg.upload-error { 1812 color: #c00; 1813 } 1814 .upload-files { 1815 padding: 0 0.5em; 1816 margin: 1em 0; 1817 } 1818 .upload-file { 1819 margin: 0; 1820 padding: .3em 0; 1821 border-top: 1px solid #ddd; 1822 position: relative; 1823 } 1824 .upload-fileinfo { 1825 margin-left: 0; 1826 /* margin-bottom: .4em;*/ 1827 } 1828 .upload-fileinfo input { 1829 position: absolute; 1830 top: .5em; 1831 right: .5em; 1832 } 1833 .upload-fileinfo span { 1834 padding-right: 8px; 1835 } 1836 .upload-fileinfo .upload-filecancel { 1837 display: block; 1838 padding-right: 0; 1839 margin-top: 3px; 1840 width: 20px; 1841 height: 20px; 1842 background: transparent url("cancel.png") no-repeat left top; 1843 text-indent: -1000px; 1844 cursor: pointer; 1845 float: left; 1846 } 1847 .upload-filemsg { 1848 font-weight: bold; 1849 color: green; 1850 } 1851 .upload-filemsg.upload-error { 1852 color: #c00; 1853 } 1854 .upload-progress { 1855 padding: .3em 0; 1856 } 1857 .upload-progress div { 1858 width: 0; 1859 height: 1em; 1860 padding: .2em 0; 1861 font-size: 0.8em; 1862 font-weight: bold; 1863 line-height: 1em; 1864 text-align: right; 1865 background: green url("loader.png") repeat-x left top; 1866 color: white; 1867 border-radius: 2px; 1868 } 1869 div.template-upload { 1870 clear: both; 1871 } 1872 .queue-message { 1873 font-weight: bold; 1874 } 1875 1644 1876 /* --------------------------------------------------------------- media-item.php */ 1645 1877 #media-icon { … … 1815 2047 cursor: default; 1816 2048 display: block; 1817 font: menu;1818 2049 font-size: 1em; 1819 2050 line-height: 16px; … … 1984 2215 } 1985 2216 /* caché pour tout le monde */ 1986 .hide {2217 .hide, .button.hide { 1987 2218 display: none; 1988 2219 } 1989 2220 /* Caché sauf pour les revues d'écran */ 1990 2221 .hidden, .with-js .out-of-screen-if-js { 1991 1992 1993 1994 1995 1996 1997 1998 1999 2222 position: absolute !important; 2223 clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 2224 clip: rect(1px, 1px, 1px, 1px); 2225 padding: 0 !important; 2226 border: 0 !important; 2227 height: 1px !important; 2228 width: 1px !important; 2229 overflow: hidden; 2230 } 2000 2231 /* caché si js est inactif */ 2001 2232 .no-js .hidden-if-no-js { 2002 display: none; 2003 } 2004 /* montré si js est inactif */ 2005 .no-js .hidden-if-js { 2006 display: block; 2233 display: none; 2007 2234 } 2008 2235 /* caché si js est actif */ 2009 . hidden-if-js {2010 2236 .with-js .hidden-if-js { 2237 display: none; 2011 2238 } 2012 2239 /* ------------------------------------------------------------------------------------ … … 2034 2261 display: block; 2035 2262 } 2036 2037 2038 /*2039 tests dashboard2040 2041 #content {width: auto;float:none !important; margin: 0;}2042 #main {width: auto; display:inline-block; vertical-align: top; margin: 0;float: none !important}2043 #main-menu {clear:both; width: auto}2044 #main-menu {margin-top: 8em}2045 #favorites-menu {display:none;}2046 #plugins-menu, #blog-menu, #system-menu, #dashboard-items {display: inline-block;vertical-align: top; min-width: 17em; margin: 0; clear: none;}2047 2048 */2049 2050 2263 /* ------------------------------------------------------------------------------------ 2051 2264 UN POIL DE MEDIA QUERIES … … 2077 2290 #info-box1 select { width: 140px; width: 14rem; } 2078 2291 #main-menu, #main, #content, #content h2, #entry-wrapper, #entry-sidebar, #entry-content, 2079 . col, .col30, .col70{2292 .two-cols .col, .three-cols .col, .two-cols .col30, .two-cols .col70, .two-boxes, .three-boxes { 2080 2293 display:block !important; 2081 2294 width: 98% !important; … … 2120 2333 #info-box1 p.nomobile, label.nomobile { display: none; } 2121 2334 } 2122 2123 /* Globalhelp */2124 2125 /* 1. inside help block */2126 #helplink p {2127 padding: 0 0 0 .5em;2128 }2129 2130 /* 2. in footer */2131 span.helplink {2132 display: block;2133 float: left;2134 padding: 0 1.5em 0 30px;2135 background: transparent url(../images/page_help.png) no-repeat 6px center;2136 }2137 span.helplink a {2138 border-bottom: 1px solid #2373A8;2139 } -
admin/style/jsToolBar/jsToolBar.css
r1760 r1810 36 36 border-radius: 4px 4px 0 0; 37 37 } 38 39 38 .jstElements select, .jstElements button { 40 39 vertical-align: middle; … … 55 54 background-repeat: no-repeat; 56 55 } 57 .jstElements button:hover {56 .jstElements button:hover, .jstElements button:focus { 58 57 border-color : #ddd; 59 58 background-color: #fff; … … 72 71 margin-right: 0; 73 72 } 74 75 73 .jstSwitcher { 76 74 display: block; … … 98 96 /* Buttons 99 97 -------------------------------------------------------- */ 100 .jstb_strong {98 button.jstb_strong { 101 99 background-image: url(bt_strong.png); 102 100 } 103 .jstb_em {101 button.jstb_em { 104 102 background-image: url(bt_em.png); 105 103 } 106 .jstb_ins {104 button.jstb_ins { 107 105 background-image: url(bt_ins.png); 108 106 } 109 .jstb_del {107 button.jstb_del { 110 108 background-image: url(bt_del.png); 111 109 } 112 .jstb_quote {110 button.jstb_quote { 113 111 background-image: url(bt_quote.png); 114 112 } 115 .jstb_code {113 button.jstb_code { 116 114 background-image: url(bt_code.png); 117 115 } 118 .jstb_paragraph {116 button.jstb_paragraph { 119 117 background-image: url(bt_paragraph.png); 120 118 } 121 .jstb_br {119 button.jstb_br { 122 120 background-image: url(bt_br.png); 123 121 } 124 .jstb_blockquote {122 button.jstb_blockquote { 125 123 background-image: url(bt_bquote.png); 126 124 } 127 .jstb_pre {125 button.jstb_pre { 128 126 background-image: url(bt_pre.png); 129 127 } 130 .jstb_ul {128 button.jstb_ul { 131 129 background-image: url(bt_ul.png); 132 130 } 133 .jstb_ol {131 button.jstb_ol { 134 132 background-image: url(bt_ol.png); 135 133 } 136 .jstb_link {134 button.jstb_link { 137 135 background-image: url(bt_link.png); 138 136 } 139 .jstb_img {137 button.jstb_img { 140 138 background-image: url(bt_img.png); 141 139 } 142 .jstb_img_select {140 button.jstb_img_select { 143 141 background-image: url(bt_img_select.png); 144 142 } 145 .jstb_post_link {143 button.jstb_post_link { 146 144 background-image: url(bt_post.png); 147 145 } 148 .jstb_removeFormat {146 button.jstb_removeFormat { 149 147 background-image: url(bt_clean.png); 150 148 } -
build-tools/make-l10n.php
r1179 r1863 29 29 echo "l10n file ".$dest.": "; 30 30 31 $l = l10n::getPoFile($f); 32 33 $fcontent = 34 "<?php\n". 35 $license_block. 36 "#\n#\n#\n". 37 "# DOT NOT MODIFY THIS FILE !\n\n\n\n\n"; 38 39 foreach (l10n::getPoFile($f) as $vo => $tr) { 40 $vo = str_replace("'","\\'",$vo); 41 $tr = str_replace("'","\\'",$tr); 42 $fcontent .= '$GLOBALS[\'__l10n\'][\''.$vo.'\'] = \''.$tr.'\';'."\n"; 43 } 44 45 $fcontent .= "?>"; 46 47 echo $dest.' : '; 48 if (($fp = fopen($dest,'w')) !== false) { 49 fwrite($fp,$fcontent,strlen($fcontent)); 50 fclose($fp); 31 if (l10n::generatePhpFileFromPo(dirname($f).'/'.basename($f,'.po'),$license_block)) { 51 32 echo 'OK'; 52 33 } else { -
inc/admin/lib.dc.page.php
r1793 r1867 152 152 '<div id="wrapper" class="clearfix">'."\n". 153 153 '<div id="main">'."\n". 154 '<div class="hidden-if-no-js"><a href="#" id="collapser">'. 155 '<img class="collapse-mm" src="images/collapser-hide.png" alt="'.__('Hide main menu').'" />'. 156 '<img class="expand-mm" src="images/collapser-show.png" alt="'.__('Show main menu').'" />'. 157 '</a></div>'. 154 158 '<div id="content" class="clearfix">'."\n"; 155 159 … … 206 210 echo 207 211 '</div>'."\n". // End of #main-menu 212 208 213 '<div id="footer">'. 209 214 '<span class="helplink"><a href="help.php">'.__('Global help').'</a></span> '. … … 482 487 { 483 488 $mute_or_no = ''; 484 if ( !empty($GLOBALS['core']->blog->settings->system->jquery_migrate_mute)) {489 if (empty($GLOBALS['core']->blog) || $GLOBALS['core']->blog->settings->system->jquery_migrate_mute) { 485 490 $mute_or_no .= 486 491 '<script type="text/javascript">'."\n". … … 584 589 self::jsVar('dotclear.msg.xhtml_not_valid', 585 590 __('There are XHTML markup errors.')). 591 self::jsVar('dotclear.msg.warning_validate_no_save_content', 592 __('Attention: an audit of a content not yet registered.')). 586 593 self::jsVar('dotclear.msg.confirm_change_post_format', 587 594 __('You have unsaved changes. Switch post format will loose these changes. Proceed anyway?')). … … 810 817 811 818 return 812 '<link rel="stylesheet" type="text/css" href="style/jsUpload/style.css" />'."\n".813 814 819 '<script type="text/javascript">'."\n". 815 820 "//<![CDATA[\n". -
inc/core/class.dc.media.php
r1718 r1855 462 462 $this->dir['files'] = $f_res; 463 463 foreach ($this->dir['dirs'] as $k => $v) { 464 $v->media_icon = sprintf($this->icon_img, 'folder');464 $v->media_icon = sprintf($this->icon_img,($v->parent ? 'folder-up' : 'folder')); 465 465 } 466 466 -
locales/fr/main.po
r1793 r1868 281 281 msgstr "Format d'URL des nouveaux billets :" 282 282 283 msgid " Note title HTML tag:"284 msgstr "Balise HTML pour le titre des notes :"283 msgid "HTML tag for the title of the notes on the blog:" 284 msgstr "Balise HTML pour le titre des notes sur le blog :" 285 285 286 286 msgid "Note" … … 359 359 360 360 msgid "Generated image sizes (in pixels)" 361 msgstr "Tailles des images générées (en pixels)"361 msgstr "Tailles des miniatures générées (largeur en pixels)" 362 362 363 363 msgid "Thumbnails:" … … 373 373 msgstr "Titres des images insérées" 374 374 375 msgid " This defines image tag title when you insert it in a post from the media manager.It is retrieved from the picture's metadata."376 msgstr "Ce ci définit le titre de la balise d'une image insérée depuis la médiathèque. Les informations sont obtenues depuis les métadonnées de l'image."375 msgid "It is retrieved from the picture's metadata." 376 msgstr "Ces informations sont obtenues depuis les métadonnées de l'image." 377 377 378 378 msgid "Use original media date if possible" 379 msgstr "Utiliser la date origin ale du média si possible"379 msgstr "Utiliser la date originelle du média si possible" 380 380 381 381 msgid "Search engines robots policy" … … 1359 1359 msgstr "En tant qu'image uniquement" 1360 1360 1361 msgid "As a link to original image"1361 msgid "As a link to the original image" 1362 1362 msgstr "En tant que lien vers l'image originale" 1363 1364 msgid "Insert a link to the original image" 1365 msgstr "Insérer le lien vers l'image originale" 1363 1366 1364 1367 msgid "MP3 disposition" … … 2325 2328 msgstr "Il y a des erreurs XHTML." 2326 2329 2330 msgid "Attention: an audit of a content not yet registered." 2331 msgstr "Attention : la vérification porte sur un contenu non encore enregistré." 2332 2327 2333 msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 2328 2334 msgstr "Vous avez des modifications non sauvegardées. Changer de format vous fera perdre ces modifications. Continuer ?" … … 3366 3372 msgid "Dashboard icons" 3367 3373 msgstr "Icônes du tableau de bord" 3374 3375 msgid "Go to dashboard" 3376 msgstr "Tableau de bord" 3377 3378 msgid "Size of inserted image:" 3379 msgstr "Taille de l'image insérée :" 3380 3381 msgid "Hide main menu" 3382 msgstr "Masquer le menu principal" 3383 3384 msgid "Show main menu" 3385 msgstr "Afficher le menu principal" -
plugins/importExport/inc/class.dc.export.flat.php
r1559 r1857 196 196 197 197 '<p><label for="file_name">'.__('File name:').'</label>'. 198 form::field(array('file_name','file_name'),50,255,date('Y-m-d- ').html::escapeHTML($this->core->blog->id.'-backup.txt')).198 form::field(array('file_name','file_name'),50,255,date('Y-m-d-H-i-').html::escapeHTML($this->core->blog->id.'-backup.txt')). 199 199 '</p>'. 200 200 … … 221 221 222 222 '<p><label for="file_name2">'.__('File name:').'</label>'. 223 form::field(array('file_name','file_name2'),50,255,date('Y-m-d- ').'dotclear-backup.txt').223 form::field(array('file_name','file_name2'),50,255,date('Y-m-d-H-i-').'dotclear-backup.txt'). 224 224 '</p>'. 225 225 -
plugins/pages/page.php
r1741 r1833 406 406 '<p>'.form::combo('post_format',$formaters_combo,$post_format,'maximal'). 407 407 '</p>'. 408 '<p >'.($post_id && $post_format != 'xhtml' ?409 '<a id="convert-xhtml" class="button maximal" href="post.php?id='.$post_id.'&xconv=1">'.410 __('Convert to XHTML').'</a> ' : '').'</p></div>')),408 '<p class="format_control control_wiki">'. 409 '<a id="convert-xhtml" class="button'.($post_id && $post_format != 'wiki' ? ' hide' : '').'" href="post.php?id='.$post_id.'&xconv=1">'. 410 __('Convert to XHTML').'</a></p></div>')), 411 411 'metas-box' => array( 412 412 'title' => __('Ordering'), … … 473 473 474 474 "post_content" => 475 '<p class="area" ><label class="required" '.475 '<p class="area" id="content-area"><label class="required" '. 476 476 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 477 477 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). … … 494 494 echo '<div id="entry-wrapper">'; 495 495 echo '<div id="entry-content"><div class="constrained">'; 496 echo '<h3 class="out-of-screen-if-js">'.__('Edit page').'</h3>'; 496 497 497 498 -
plugins/pings/lib.pings.php
r1398 r1818 65 65 $item .= 66 66 '<p class="ping-services"><label for="pings_do-'.$i.'" class="classic">'. 67 form::checkbox(array('pings_do[]','pings_do-'.$i),html::escapeHTML($v),in_array($v,$pings_do) ).' '.67 form::checkbox(array('pings_do[]','pings_do-'.$i),html::escapeHTML($v),in_array($v,$pings_do), 'check-ping-services').' '. 68 68 html::escapeHTML($k).'</label></p>'; 69 69 $i++; -
plugins/pings/post.js
r1699 r1818 4 4 p = $('<p></p>'); 5 5 p.addClass('ping-services'); 6 a = $('<a href="#"></a>'); 7 a.text(dotclear.msg.check_all); 8 a.click(function() { 9 $('p.ping-services input[type="checkbox"]').attr('checked','checked'); 10 return false; 11 }); 12 $('p.ping-services:last').after(p.append(a)); 6 $('p.ping-services:last').after(p); 7 dotclear.checkboxesHelpers($('p.ping-services:last').get(0), $('.check-ping-services')); 13 8 } 14 9 $('h5.ping-services').toggleWithLegend($('p.ping-services'),{ -
plugins/tags/_admin.php
r1797 r1874 321 321 322 322 echo 323 '<p><label for="user_tag_list_format" >'.__('Tags list format:').'</label> '.323 '<p><label for="user_tag_list_format" class="classic">'.__('Tags list format:').'</label> '. 324 324 form::combo('user_tag_list_format',$combo,$value). 325 325 '</p>'; -
plugins/tags/style.css
r0 r1820 99 99 color: white; 100 100 } 101 #post_meta_input { 102 margin: 0 0.5em 0 0; 103 width: 13em; 104 } 105 #post_meta_input:focus { 106 -moz-box-sizing: content-box; 107 } 108 #tags-edit input[type=button] { 109 width: 3.5em; 110 } -
tests/functional/fixtures/form_media_disabled.html
r1724 r1854 14 14 <p> 15 15 <label for="upfile"><span class="add-label one-file">Choose file</span></label> 16 <button class="button add">Choose files</button>16 <button class="button choose_files">Choose files</button> 17 17 <input type="file" id="upfile" name="upfile[]" data-url="media.php?popup=0&post_id=" /> 18 18 </p> -
tests/functional/fixtures/form_media_enabled.html
r1724 r1854 14 14 <p> 15 15 <label for="upfile"><span class="add-label one-file">Choose file</span></label> 16 <button class="button add">Choose files</button>16 <button class="button choose_files">Choose files</button> 17 17 <input type="file" id="upfile" name="upfile[]" multiple="mutiple" data-url="media.php?popup=0&post_id=" /> 18 18 </p>
Note: See TracChangeset
for help on using the changeset viewer.