Changeset 2130:9571f9d492ef for admin
- Timestamp:
- 09/22/13 18:04:14 (12 years ago)
- Branch:
- Ticket #1548
- Parents:
- 2129:8bc6a4f0ac8f (diff), 2013:da9c70e5fd18 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- admin
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r1999 r2130 210 210 /* DISPLAY 211 211 -------------------------------------------------------- */ 212 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 213 if (!$show_filters) { 214 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 215 } 216 217 dcPage::open(__('Entries'),$starting_script, 212 213 dcPage::open(__('Entries'), 214 dcPage::jsLoad('js/_posts_list.js'). 215 dcPage::jsLoad('js/filter-controls.js'). 216 '<script type="text/javascript">'."\n". 217 "//<![CDATA["."\n". 218 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 219 dcPage::jsVar('dotclear.msg.filter_posts_list',__('Filter posts list'))."\n". 220 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 221 "//]]>". 222 "</script>", 218 223 dcPage::breadcrumb( 219 224 array( … … 230 235 { 231 236 echo 232 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 233 234 if (!$show_filters) { 235 echo '<p><a id="filter-control" class="form-control" href="#">'. 236 __('Filter posts list').'</a></p>'; 237 } 238 239 echo 237 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 240 238 '<form action="posts.php" method="get" id="filters-form">'. 241 '<h3 class=" hidden">'.__('Filter posts list').'</h3>'.242 239 '<h3 class="out-of-screen-if-js">'.__('Filters and display options').'</h3>'. 240 243 241 '<div class="table">'. 244 242 '<div class="cell">'. … … 301 299 $core->formNonce(). 302 300 '</div>'. 303 '</form>' 301 '</form>', 302 $show_filters 304 303 ); 305 304 } -
admin/posts.php
r2128 r2130 103 103 104 104 # Actions combo box 105 $combo_action = array(); 106 if ($core->auth->check('publish,contentadmin',$core->blog->id)) 107 { 108 $combo_action[__('Status')] = array( 109 __('Publish') => 'publish', 110 __('Unpublish') => 'unpublish', 111 __('Schedule') => 'schedule', 112 __('Mark as pending') => 'pending' 113 ); 114 } 115 $combo_action[__('Mark')] = array( 116 __('Mark as selected') => 'selected', 117 __('Mark as unselected') => 'unselected' 118 ); 119 $combo_action[__('Change')] = array( 120 __('Change category') => 'category', 121 __('Change language') => 'lang'); 122 if ($core->auth->check('admin',$core->blog->id)) 123 { 124 $combo_action[__('Change')] = array_merge($combo_action[__('Change')], 125 array(__('Change author') => 'author')); 126 } 127 if ($core->auth->check('delete,contentadmin',$core->blog->id)) 128 { 129 $combo_action[__('Delete')] = array(__('Delete') => 'delete'); 130 } 131 132 # --BEHAVIOR-- adminPostsActionsCombo 133 $core->callBehavior('adminPostsActionsCombo',array(&$combo_action)); 105 106 $posts_actions_page = new dcPostsActionsPage($core,'posts.php'); 107 108 $posts_actions_page->process(); 134 109 135 110 /* Get posts … … 302 277 # Show posts 303 278 $post_list->display($page,$nb_per_page, 304 '<form action="posts _actions.php" method="post" id="form-entries">'.279 '<form action="posts.php" method="post" id="form-entries">'. 305 280 306 281 '%s'. … … 310 285 311 286 '<p class="col right"><label for="action" class="classic">'.__('Selected entries action:').'</label> '. 312 form::combo('action',$ combo_action).287 form::combo('action',$posts_actions_page->getCombo()). 313 288 '<input type="submit" value="'.__('ok').'" /></p>'. 314 289 form::hidden(array('user_id'),$user_id). -
admin/style/default.css
r2013 r2130 20 20 #header { 21 21 background: #676e78; 22 color: #FFF;22 position: relative; 23 23 border-bottom: 4px solid #A2CBE9; 24 24 width: 100%; 25 display: table; 26 } 27 #wrapper, #wrapper.with-prelude { 25 } 26 #wrapper { 28 27 position: relative; 29 padding-top: 1.5em; 28 padding-top: 1em; 29 overflow: hidden; 30 30 float: left; 31 31 width: 100%; 32 32 z-index: 10; 33 background: #F7F7F7 url(bg_wrapper.png) repeat-y 15em;33 /*background: #f7f7f7 url(bg_wrapper.png) repeat-y 15.5em;*/ 34 34 } 35 35 .with-js #wrapper { … … 39 39 width: 100%; 40 40 float: right; 41 margin-left: -1 4em;41 margin-left: -15.5em; 42 42 margin-top: 0; 43 43 } 44 44 #content { 45 margin: 0 0 0 1 4em;46 padding: .75em 1 .5em .75em 2.5em;45 margin: 0 0 0 15.5em; 46 padding: .75em 1em; 47 47 background: #fff; 48 48 } … … 64 64 border-top: 1px solid #ccc; 65 65 background-color: #fff; 66 } 67 #content, #main-menu { /* hauteurs égales */ 68 padding-bottom: 200em; 69 margin-bottom: -200em; 66 70 } 67 71 /* to hide main-menu */ … … 133 137 margin-right: 0; 134 138 } 135 .two-cols table {136 width: 90%;137 }138 139 /* -------------------------------------------------------------- layout: three-cols */ 139 140 .three-cols { … … 200 201 } 201 202 /* ---------------------------------------------------------------- layout: popups */ 202 .popup h1 { 203 display: block; 203 .popup #wrapper, .popup #top { 204 204 width: 100%; 205 padding: 0; 206 } 207 .popup h1, .popup #top { 205 208 margin: 0; 209 border-bottom: 1px solid; 210 font-weight: normal; 211 color: #fff; 206 212 background: #676e78; 207 213 font-size: 1.5em; 208 text-indent: 1em; 209 line-height: 1.5em; 210 font-weight: normal; 211 color: #fff; 214 text-indent: .5em; 215 line-height: 1.3em; 212 216 } 213 217 .popup #wrapper { 218 float: none; 219 margin:0; 214 220 display: block; 215 float: none; 216 width: 100%; 217 margin: 0; 218 padding: 0; 219 background-position: 0 0; 220 } 221 .popup #main { 222 margin: 0; 223 padding: 0; 224 } 225 .popup #content { 226 margin: 0; 227 padding: 1em; 228 } 229 .popup #content h2 { 230 margin: 0 0 1em 0; 231 padding: 0; 232 } 233 .popup #footer p { 234 border: none; 235 } 221 } 222 .popup #main { 223 margin-bottom: 1em 0; 224 } 225 .popup #content { 226 margin: 0; 227 padding: .5em 0; 228 } 229 .popup #content h2 { 230 margin: 0 0 1em; 231 } 232 .popup #footer p { 233 border: none; 234 } 236 235 /* -------------------------------------------------------- layout: classes de complément */ 237 236 .constrained { … … 302 301 /* titre de page */ 303 302 #content > h2 { 304 padding: 0 1em .5em 1em; 305 margin: 0 -1em .5em -1em; 303 padding: 0 18px 6px; /* ie < 9 sucks */ 304 padding: 0 1.8rem .6rem; 305 margin: 0 -18px .5em; /* ie < 9 sucks */ 306 margin: 0 -1.8rem 1rem; 306 307 background: #fff url(bg_h2.png) repeat-x center bottom; 307 308 } … … 365 366 } 366 367 /* ---------------------------------------------------------------- tableaux */ 367 .table-outer {368 width: 100%;369 overflow: auto;370 }371 368 table { 372 369 font-size: 12px; /* ie < 9 sucks */ … … 374 371 border-collapse: collapse; 375 372 margin: 0 0 1em 0; 376 width: 100%;377 373 } 378 374 caption { … … 442 438 } 443 439 a:hover, a:active, a:focus { 444 border-bottom-style: solid;440 text-decoration: underline; 445 441 } 446 442 a img, a:link img, a:visited img { … … 576 572 display: inline-block; 577 573 } 574 a.form-control { 575 display: none; 576 background: url(../images/expand.png) no-repeat 4px center; 577 padding-left: 20px; 578 color: #000; 579 } 580 a.form-control.open { 581 background: url(../images/hide.png) no-repeat 4px center; 582 } 578 583 .form-note { 579 584 font-style: italic; … … 741 746 display: block; 742 747 padding: 1em 1em .33em 1em; 743 margin-bottom: 1em;744 748 } 745 749 .warn, .warning { … … 790 794 border: 1px solid #F7E07E; 791 795 } 792 .success a, .warning-msg a , .info a{796 .success a, .warning-msg a { 793 797 color: #333; 794 798 } … … 852 856 border-bottom-color: #A2CBE9; 853 857 } 854 /* header global h1, form#top-info-blog, ul#top-info-user */ 855 #header a { 856 color: #FFF; 857 } 858 #header img { 859 vertical-align: middle; 860 padding-left: .5em; 861 } 862 h1, #top-info-blog, #top-info-user { 863 display: table-cell; 864 padding: 8px 0; 858 /* top (h1) */ 859 #top { 865 860 margin: 0; 866 font-size: 1em; 867 vertical-align: top; 868 } 869 /* h1 */ 870 h1 { 871 text-indent: -1000px; 872 width: 16.5em; 873 } 874 h1 a { 875 position: absolute; 876 top: 0; 877 left: 0; 878 width: 174px; /* ie < 9 sucks */ 879 width: 17.4rem; 880 height: 36px; /* ie < 9 sucks */ 881 height: 3.6rem; 861 padding: 0; 862 width: 14.5em; 863 float: left; 864 } 865 h1 { 866 padding: 0; 867 margin: 0; 868 height: 36px; 869 text-indent: -1000px; 870 } 871 h1 a { 872 position: absolute; 873 top: 0; 874 left: 0; 875 width: 174px; /* ie < 9 sucks */ 876 width: 17.4rem; 877 height: 36px; /* ie < 9 sucks */ 878 height: 3.6rem; 879 color: #fff; 880 background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 6px; 881 } 882 h1 a:hover, h1 a:focus { 883 background-position: 0 -94px; 884 } 885 /* info-boxes */ 886 #info-boxes { 887 font-size: 12px; /* ie < 9 sucks */ 888 font-size: 1.2rem; 889 line-height: 3em; 890 } 891 #info-boxes a { 892 font-weight: bold; 882 893 color: #fff; 883 background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 6px; 884 } 885 h1 a:hover, h1 a:focus { 886 background-position: 0 -94px; 887 } 888 /* top-info-blog */ 889 #top-info-blog select { 890 max-width: 20em; 891 } 892 .with-js #top-info-blog select, .no-js #top-info-blog input[type=submit] { 893 margin-right: 1.33em; 894 } 895 #top-info-blog input[type=submit] { 896 background: #000; 897 border-color: #999; 898 margin-left: .33em; 899 } 900 #top-info-blog input[type=submit]:hover { 901 background: #999; 902 } 903 #top-info-blog p { 904 display: inline-block; 905 margin: 0; 906 } 907 /* top-info-user */ 908 #top-info-user { 909 padding-right: 18px; 910 list-style-type: none; 911 text-align: right; 912 } 913 #top-info-user li { 914 display: inline-block; 915 margin-left: .5em; 916 padding-left: .5em; 917 border-left: 1px solid #999; 918 } 919 #top-info-user li:first-child { 920 border-left: none; 921 } 922 #top-info-user a.active { 923 border-bottom-color: #fff; 924 margin: 0; 925 padding: 16px .5em; 926 background-color: #fff; 927 color: #333; 928 font-weight: bold; 929 } 894 border-bottom-color: #ccc; 895 margin-left: .3em; 896 margin-right: .3em; 897 white-space: nowrap; 898 font-weight: normal; 899 } 900 #info-boxes a img { 901 vertical-align: middle; 902 padding-left: .3em; 903 } 904 #info-box1 { 905 margin: 0; 906 padding: 0 3px 0 18px; 907 color: #fff; 908 display: inline-block; 909 } 910 #info-box1 p { 911 margin: 0; 912 display: inline; 913 } 914 .with-js #info-box1 .hidden-if-js { 915 display: none; 916 } 917 #info-box1 select { 918 width: 145px; /* ie < 9 sucks */ 919 width: 14.5em; 920 } 921 #info-box1 a { 922 margin-left: 1.33em; 923 } 924 #info-box1 input[type=submit] { 925 background: #000; 926 border-color: #999; 927 margin-left: .33em; 928 } 929 #info-box1 input[type=submit]:hover { 930 background: #999; 931 } 932 #info-box2 { 933 margin: 0; 934 padding: 0 18px 0 0; 935 color: #fff; 936 float: right; 937 text-align: right; 938 } 939 #info-box2 span { 940 color: #999; 941 } 942 #info-box2 .logout { 943 margin-right: 0; 944 } 945 #info-box2 a.active { 946 border-bottom-color: #fff; 947 margin: 0; 948 padding: 1.2em .5em; 949 background-color: #fff; 950 color: #333; 951 font-weight: bold; 952 } 930 953 /* ---------------------------------------------------------- MAIN-MENU ELEMENTS */ 931 954 #favorites-menu, #blog-menu, #system-menu, #plugins-menu { … … 1007 1030 } 1008 1031 #qx:focus { 1009 border : 1px solid#bee74b;1032 border-color: #bee74b; 1010 1033 } 1011 1034 #search-menu input[type="submit"] { … … 1097 1120 line-height: 3.6rem; 1098 1121 } 1099 #help-button.floatable {1100 border-top: 2px solid #ccc;1101 border-left: 2px solid #ccc;1102 border-bottom: 2px solid #ccc;1103 border-bottom-left-radius: 1em;1104 border-top-left-radius: 1em;1105 background-color: #f5f5f5;1106 position: fixed;1107 top: 10px;1108 }1109 1122 .no-js #help-button { 1110 1123 top: 1em; … … 1115 1128 } 1116 1129 #content.with-help #help-button { 1117 right: 28 0px; /* ie < 9 sucks */1130 right: 282px; /* ie < 9 sucks */ 1118 1131 right: 28rem; 1119 1132 background-color: #f5f5f5; 1120 1133 position: fixed; 1121 top: 5 0px;1134 top: 54px; 1122 1135 z-index: 100; 1123 1136 border-top: 2px solid #FFD478; … … 1135 1148 } 1136 1149 #content.with-help .help-content { 1137 padding: 0 1em 1em;1150 padding: 0 .5em 1em; 1138 1151 } 1139 1152 .help-content dt { … … 1253 1266 } 1254 1267 /* ----------------------------------------------------------- BOITES À FILTRES */ 1255 a.form-control {1256 display: none;1257 background: url(../images/expand.png) no-repeat 4px center;1258 padding-left: 20px;1259 color: #000;1260 }1261 1268 #filters-form { 1262 1269 border: 1px dashed #999; … … 1362 1369 #icons a:hover, 1363 1370 #icons a:focus { 1364 border-bottom-width: 0 ;1371 border-bottom-width: 0px; 1365 1372 text-decoration: none; 1366 1373 } … … 1382 1389 } 1383 1390 #icons a:focus span, #icons a:hover span { 1384 border-bottom-style: solid;1391 text-decoration: underline; 1385 1392 } 1386 1393 /* billet rapide */ … … 2084 2091 } 2085 2092 /* password indicator */ 2086 .install .pw-table, .install .pw-cell, .install .pwindicator {2087 display: block;2088 }2089 2093 .pw-table { 2090 2094 display: table; … … 2330 2334 /* ------------------------------------------------------------------------------------ 2331 2335 UN POIL DE MEDIA QUERIES 2332 ------------------------------------------------------------------------------------ 2336 ------------------------------------------------------------------------------------ */ 2333 2337 @media screen and (max-width: 920px) { 2334 2338 #top, #top h1 a { … … 2400 2404 #info-box1 p.nomobile, label.nomobile { display: none; } 2401 2405 } 2402 */
Note: See TracChangeset
for help on using the changeset viewer.