Changeset 1576:5638c7934641
- Timestamp:
- 08/25/13 15:18:38 (12 years ago)
- Branch:
- default
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/categories.php
r1571 r1576 82 82 } 83 83 84 # Actions combo box85 $combo_action = array();86 if ($core->auth->check('categories',$core->blog->id)) {87 $combo_action[__('Delete')] = 'delete';88 }89 90 84 91 85 /* Display … … 181 175 '</div>'; 182 176 183 if (count($combo_action)>0) { 184 echo 185 '<div class="two-cols">'. 186 '<p class="col checkboxes-helpers"></p>'. 187 '<p class="col right" id="mov-cat">'. 188 '<label for="mov_cat" class="classic">'.__('Category which will receive entries of deleted categories:').'</label> '. 189 form::combo('mov_cat',array_merge(array(__('(No cat)') => ''),$categories_combo),'',''). 190 '</p>'. 191 '<p class="right">'. 192 $core->formNonce(). 193 '<input type="submit" value="'.__('Delete selected categories').'"/>'. 194 '</p>'. 195 '</div>'. 196 '</form>'; 197 } 177 echo 178 '<div class="two-cols">'. 179 '<p class="col checkboxes-helpers"></p>'. 180 '<p class="col right" id="mov-cat">'. 181 '<label for="mov_cat" class="classic">'.__('Category which will receive entries of deleted categories:').'</label> '. 182 form::combo('mov_cat',array_merge(array(__('(No cat)') => ''),$categories_combo),'',''). 183 '</p>'. 184 '<p class="right">'. 185 $core->formNonce(). 186 '<input type="submit" value="'.__('Delete selected categories').'"/>'. 187 '</p>'. 188 '</div>'. 189 '</form>'; 198 190 199 191 echo '<h3 class="clear">'.__('Categories order').'</h3>'; 200 192 201 if (!$core->auth->user_prefs->accessibility->nodragdrop 202 && $core->auth->check('categories',$core->blog->id) 203 && $rs->count()>1) { 193 if ($core->auth->check('categories',$core->blog->id) && $rs->count()>1) { 204 194 echo 205 '<form action="categories.php" method="post">'. 206 '<p>'.__('To rearrange categories order, move items by drag and drop, then click on “Save categories order” button.').'</p>'. 195 '<form action="categories.php" method="post">'; 196 if (!$core->auth->user_prefs->accessibility->nodragdrop) { 197 echo '<p class="no-js-hidden">'.__('To rearrange categories order, move items by drag and drop, then click on “Save categories order” button.').'</p>'; 198 } 199 echo 200 '<p class="js-hidden">'.__('To rearrange categories order, change position number and click on “Save categories order” button.').'</p>'. 207 201 '<p>'. 208 202 '<input type="hidden" id="categories_order" name="categories_order" value=""/>'. … … 210 204 $core->formNonce().'</p>'. 211 205 '</form>'; 212 213 // Pour le cas de js désactivé, phrase du formulaire ci-dessus : 214 // "To rearrange categories order, change position number and click on “Save categories order” button." 206 } 215 207 216 208 echo … … 220 212 $core->formNonce().'</p>'. 221 213 '</form>'; 222 }223 214 } 224 215 -
admin/js/common.js
r1573 r1576 338 338 -------------------------------------------------------- */ 339 339 $(function() { 340 // remove class no-js from html tag 341 $('html').removeClass('no-js'); 342 340 343 // Blog switcher 341 344 $('#switchblog').change(function() { -
admin/style/default.css
r1574 r1576 34 34 text-decoration: underline; 35 35 } 36 a img, a:link img, a:visited img { 36 a img, a:link img, a:visited img { 37 37 border:none; 38 38 } … … 62 62 padding: 0 18px 6px; /* ie < 9 sucks */ 63 63 padding: 0 1.8rem .6rem; 64 margin: 0 -18px .5em; /* ie < 9 sucks */ 64 margin: 0 -18px .5em; /* ie < 9 sucks */ 65 65 margin: 0 -1.8rem 1rem; 66 66 background: #fff url(bg_h2.png) repeat-x center bottom; … … 114 114 cursor: help; 115 115 } 116 117 .no-js .js-hidden { 118 display: block; 119 } 120 .no-js .no-js-hidden { 121 display: none; 122 } 123 .js-hidden { 124 display: none; 125 } 126 116 127 /* LAYOUT 117 128 -------------------------------------------------------- */ … … 173 184 } 174 185 #top h1 a:hover, #top h1 a:focus { 175 background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 -94px; 186 background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 -94px; 176 187 } 177 188 #info-boxes { … … 244 255 #content { 245 256 margin: 0 0 0 14.5em; 246 padding: 9px 18px 18px; /* ie < 9 sucks */ 257 padding: 9px 18px 18px; /* ie < 9 sucks */ 247 258 padding: .9rem 1.8rem 1.8rem; 248 259 background: #fff; … … 376 387 #search-menu * { 377 388 height: 20px; /* ie < 9 sucks */ 378 height: 2rem; 389 height: 2rem; 379 390 } 380 391 #search-menu p { … … 392 403 background: transparent url(search.png) no-repeat 4px center; 393 404 text-indent: 18px; 394 padding: 0 2px; 405 padding: 0 2px; 395 406 border: none; 396 407 } 397 #search-menu input[type="submit"] { 408 #search-menu input[type="submit"] { 398 409 padding: 0 3px; 399 410 padding: 0 .3rem; … … 648 659 #categories input[type="checkbox"] { 649 660 margin-right: .8em; 650 } 661 } 651 662 #categories h4 { 652 663 margin: 0; … … 888 899 display: table-cell; 889 900 vertical-align: top; 890 padding: 0; 901 padding: 0; 891 902 width: 312px; 892 903 border: 1px solid #ccc; 893 904 border-radius: 3px; 894 905 } 895 #theme-box .theme-shot, 906 #theme-box .theme-shot, 896 907 #theme-box .theme-info, 897 908 #theme-box .theme-actions { … … 1146 1157 background: #fff; 1147 1158 border: 1px solid #aaa; 1148 border-radius: 6px; 1159 border-radius: 6px; 1149 1160 padding: 1em .7em .5em; 1150 1161 margin-bottom: 1em; … … 1290 1301 width: 80%; 1291 1302 border: 1px solid #999; 1292 margin-bottom: 3em; 1303 margin-bottom: 3em; 1293 1304 } 1294 1305 table.settings th, table.prefs th { … … 1385 1396 input.invalid, textarea.invalid, select.invalid { 1386 1397 border: 1px solid red; 1387 background: #fff; 1398 background: #fff; 1388 1399 color: red; 1389 1400 box-shadow: 0 0 0 1px rgba(218, 62, 90, 0.3) … … 1472 1483 p.field { 1473 1484 position: relative; 1474 1485 1475 1486 } 1476 1487 p.field label { … … 1702 1713 margin-top: 1em; 1703 1714 line-height: 22px; 1704 padding: 0 .75em; 1715 padding: 0 .75em; 1705 1716 border: 1px solid #ddd; 1706 overflow: hidden; 1707 background: #e1e1e1; 1708 background: -moz-linear-gradient(center top , #f2f2f2, #e1e1e1); 1709 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#e1e1e1)); 1710 -moz-border-radius: 4px; 1711 -webkit-border-radius: 4px; 1712 border-radius: 4px; 1717 overflow: hidden; 1718 background: #e1e1e1; 1719 background: -moz-linear-gradient(center top , #f2f2f2, #e1e1e1); 1720 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#e1e1e1)); 1721 -moz-border-radius: 4px; 1722 -webkit-border-radius: 4px; 1723 border-radius: 4px; 1713 1724 clear: left; 1714 1725 } … … 1716 1727 height: 20px; 1717 1728 border: none; 1718 padding: 2px 6px; 1729 padding: 2px 6px; 1719 1730 background-color : transparent; 1720 1731 background-position : 50% 50%; … … 1773 1784 } 1774 1785 #top h1 a:link { 1775 background: transparent url(dc_logos/b-dotclear120.png) no-repeat -180px 6px; 1786 background: transparent url(dc_logos/b-dotclear120.png) no-repeat -180px 6px; 1776 1787 border-right: 1px solid #ccc; 1777 1788 } -
inc/admin/lib.dc.page.php
r1573 r1576 90 90 '<html xmlns="http://www.w3.org/1999/xhtml" '. 91 91 'xml:lang="'.$core->auth->getInfo('user_lang').'" '. 92 'lang="'.$core->auth->getInfo('user_lang').'" >'."\n".92 'lang="'.$core->auth->getInfo('user_lang').'" class="no-js">'."\n". 93 93 "<head>\n". 94 94 ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'."\n".
Note: See TracChangeset
for help on using the changeset viewer.