Dotclear

Changeset 2130:9571f9d492ef for admin


Ignore:
Timestamp:
09/22/13 18:04:14 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
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.
Message:

Fusion avec default

Location:
admin
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • admin/posts.php

    r1999 r2130  
    210210/* DISPLAY 
    211211-------------------------------------------------------- */ 
    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 
     213dcPage::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>", 
    218223     dcPage::breadcrumb( 
    219224          array( 
     
    230235{ 
    231236     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>'. 
    240238     '<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      
    243241     '<div class="table">'. 
    244242     '<div class="cell">'. 
     
    301299     $core->formNonce(). 
    302300     '</div>'. 
    303      '</form>' 
     301     '</form>', 
     302     $show_filters 
    304303     ); 
    305304} 
  • admin/posts.php

    r2128 r2130  
    103103 
    104104# 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(); 
    134109 
    135110/* Get posts 
     
    302277     # Show posts 
    303278     $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">'. 
    305280      
    306281     '%s'. 
     
    310285      
    311286     '<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()). 
    313288     '<input type="submit" value="'.__('ok').'" /></p>'. 
    314289     form::hidden(array('user_id'),$user_id). 
  • admin/style/default.css

    r2013 r2130  
    2020#header { 
    2121     background: #676e78; 
    22      color: #FFF; 
     22     position: relative; 
    2323     border-bottom: 4px solid #A2CBE9; 
    2424     width: 100%; 
    25      display: table; 
    26      } 
    27 #wrapper, #wrapper.with-prelude { 
     25     } 
     26#wrapper { 
    2827     position: relative; 
    29      padding-top: 1.5em; 
     28     padding-top: 1em; 
     29     overflow: hidden; 
    3030     float: left; 
    3131     width: 100%; 
    3232     z-index: 10; 
    33      background: #F7F7F7 url(bg_wrapper.png) repeat-y 15em; 
     33     /*background: #f7f7f7 url(bg_wrapper.png) repeat-y 15.5em;*/ 
    3434     } 
    3535.with-js #wrapper { 
     
    3939     width: 100%; 
    4040     float: right; 
    41      margin-left: -14em; 
     41     margin-left: -15.5em; 
    4242     margin-top: 0; 
    4343     } 
    4444#content { 
    45      margin: 0 0 0 14em; 
    46      padding: .75em 1.5em .75em 2.5em; 
     45     margin: 0 0 0 15.5em; 
     46     padding: .75em 1em; 
    4747     background: #fff; 
    4848     } 
     
    6464     border-top: 1px solid #ccc; 
    6565     background-color: #fff; 
     66     } 
     67#content, #main-menu { /* hauteurs égales */ 
     68     padding-bottom: 200em; 
     69     margin-bottom: -200em; 
    6670     } 
    6771/* to hide main-menu */ 
     
    133137          margin-right: 0; 
    134138          } 
    135      .two-cols table { 
    136           width: 90%; 
    137           } 
    138139/* -------------------------------------------------------------- layout: three-cols */ 
    139140.three-cols { 
     
    200201     } 
    201202/* ---------------------------------------------------------------- layout: popups */ 
    202 .popup h1 { 
    203      display: block; 
     203.popup #wrapper, .popup #top { 
    204204     width: 100%; 
     205     padding: 0; 
     206     } 
     207.popup h1, .popup #top { 
    205208     margin: 0; 
     209     border-bottom: 1px solid; 
     210     font-weight: normal; 
     211     color: #fff; 
    206212     background: #676e78; 
    207213     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; 
    212216     } 
    213217.popup #wrapper { 
     218     float: none; 
     219     margin:0; 
    214220     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          } 
    236235/* -------------------------------------------------------- layout: classes de complément */ 
    237236.constrained { 
     
    302301     /* titre de page */ 
    303302     #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; 
    306307          background: #fff url(bg_h2.png) repeat-x center bottom; 
    307308          } 
     
    365366     } 
    366367/* ---------------------------------------------------------------- tableaux */ 
    367 .table-outer { 
    368      width: 100%; 
    369      overflow: auto; 
    370      } 
    371368table { 
    372369     font-size: 12px; /* ie < 9 sucks */ 
     
    374371     border-collapse: collapse; 
    375372     margin: 0 0 1em 0; 
    376      width: 100%; 
    377373     } 
    378374caption { 
     
    442438     } 
    443439a:hover, a:active, a:focus { 
    444      border-bottom-style: solid; 
     440     text-decoration: underline; 
    445441     } 
    446442a img, a:link img, a:visited img { 
     
    576572          display: inline-block; 
    577573          } 
     574a.form-control { 
     575     display: none; 
     576     background: url(../images/expand.png) no-repeat 4px center; 
     577     padding-left: 20px; 
     578     color: #000; 
     579     } 
     580a.form-control.open { 
     581     background: url(../images/hide.png) no-repeat 4px center; 
     582     } 
    578583.form-note { 
    579584     font-style: italic; 
     
    741746     display: block; 
    742747     padding: 1em 1em .33em 1em; 
    743      margin-bottom: 1em; 
    744748     } 
    745749     .warn, .warning { 
     
    790794               border: 1px solid #F7E07E; 
    791795               } 
    792           .success a, .warning-msg a, .info a { 
     796          .success a, .warning-msg a { 
    793797               color: #333; 
    794798               } 
     
    852856          border-bottom-color: #A2CBE9; 
    853857          } 
    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 { 
    865860     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; 
    882893          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               } 
    930953/* ---------------------------------------------------------- MAIN-MENU ELEMENTS */ 
    931954#favorites-menu, #blog-menu, #system-menu, #plugins-menu { 
     
    10071030          } 
    10081031          #qx:focus { 
    1009                border: 1px solid #bee74b; 
     1032               border-color: #bee74b; 
    10101033               } 
    10111034     #search-menu input[type="submit"] { 
     
    10971120     line-height: 3.6rem; 
    10981121     } 
    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         } 
    11091122     .no-js #help-button { 
    11101123          top: 1em; 
     
    11151128          } 
    11161129     #content.with-help #help-button { 
    1117           right: 280px; /* ie < 9 sucks */ 
     1130          right: 282px; /* ie < 9 sucks */ 
    11181131          right: 28rem; 
    11191132          background-color: #f5f5f5; 
    11201133          position: fixed; 
    1121           top: 50px; 
     1134          top: 54px; 
    11221135          z-index: 100; 
    11231136          border-top: 2px solid #FFD478; 
     
    11351148          } 
    11361149     #content.with-help .help-content { 
    1137           padding: 0 1em 1em; 
     1150          padding: 0 .5em 1em; 
    11381151          } 
    11391152          .help-content dt { 
     
    12531266     } 
    12541267/* ----------------------------------------------------------- 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      } 
    12611268#filters-form { 
    12621269     border: 1px dashed #999; 
     
    13621369     #icons a:hover, 
    13631370     #icons a:focus { 
    1364           border-bottom-width: 0; 
     1371          border-bottom-width: 0px; 
    13651372          text-decoration: none; 
    13661373          } 
     
    13821389                    } 
    13831390               #icons a:focus span, #icons a:hover span { 
    1384                     border-bottom-style: solid; 
     1391                    text-decoration: underline; 
    13851392                    } 
    13861393/* billet rapide */ 
     
    20842091     } 
    20852092/* password indicator */ 
    2086 .install .pw-table, .install .pw-cell, .install .pwindicator { 
    2087      display: block; 
    2088      } 
    20892093.pw-table { 
    20902094     display: table; 
     
    23302334/* ------------------------------------------------------------------------------------ 
    23312335                                                                           UN POIL DE MEDIA QUERIES 
    2332 ------------------------------------------------------------------------------------ 
     2336------------------------------------------------------------------------------------ */ 
    23332337@media screen and (max-width: 920px) { 
    23342338     #top, #top h1 a { 
     
    24002404     #info-box1 p.nomobile, label.nomobile { display: none; } 
    24012405     } 
    2402 */ 
Note: See TracChangeset for help on using the changeset viewer.

Sites map