Dotclear


Ignore:
Files:
6 added
2 deleted
64 edited

Legend:

Unmodified
Added
Removed
  • admin/_charte.php

    r2111 r2160  
    2323     <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
    2424     <title>Bibliothèque de styles - Dotclear - 2.6</title> 
    25      <link rel="icon" type="image/png" href="images/favicon.png" /> 
     25     <link rel="icon" type="image/png" href="images/favicon96-login.png" /> 
    2626     <!--[if lt IE 9]> 
    2727     <script type="text/javascript" src="js/ie7/IE9.js"></script> 
     
    158158                              </div><!-- 
    159159                              --><div class="two-boxes even"> 
    160                                    <p><span class="step">2</span> S'il n'y a que deux boîtes, une autre class n'est pas nécessaire. S'il y en a plusieurs, il est conseillé de leur attribuer alternativement les class <code>"odd"</code> et <code>"even"</code> pour que les marges se placent correctement.</p> 
     160                                   <p><span class="step">2</span> On peut assortir une boîte des class <code>"odd"</code> (nothing left) et <code>"even"</code> pour que les marges se placent correctement.</p> 
    161161                              </div><!-- 
    162162                              --><div class="two-boxes odd"> 
  • admin/auth.php

    r2143 r2160  
    268268  <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
    269269  <title><?php echo html::escapeHTML(DC_VENDOR_NAME); ?></title> 
    270   <link rel="icon" type="image/png" href="images/favicon-off.png" /> 
     270  <link rel="icon" type="image/png" href="images/favicon96-logout.png" /> 
     271  <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 
     272 
    271273   
    272274<?php 
  • admin/blog.php

    r1615 r2166  
    7272                    __('System') => '', 
    7373                    __('Blogs') => 'blogs.php', 
    74                     '<span class="page-title">'.__('New blog').'</span>' => '' 
     74                    __('New blog') => '' 
    7575               )) 
    7676     ); 
  • admin/blog_del.php

    r1733 r2166  
    5454               __('System') => '', 
    5555               __('Blogs') => 'blogs.php', 
    56                '<span class="page-title">'.__('Delete a blog').'</span>' => '' 
     56               __('Delete a blog') => '' 
    5757          )) 
    5858); 
  • admin/blog_pref.php

    r2028 r2166  
    270270          array( 
    271271               html::escapeHTML($blog_name) => '', 
    272                '<span class="page-title">'.__('Blog settings').'</span>' => '' 
    273           )); 
     272               __('Blog settings') => '' 
     273          ) 
     274     ); 
    274275} else { 
    275276     $breadcrumb = dcPage::breadcrumb( 
     
    277278               __('System') => '', 
    278279               __('Blogs') => 'blogs.php', 
    279                '<span class="page-title">'.__('Blog settings').' : '.html::escapeHTML($blog_name).'</span>' => '' 
     280               __('Blog settings').' : '.html::escapeHTML($blog_name) => '' 
    280281          )); 
    281282} 
  • admin/blog_theme.php

    r1553 r2166  
    212212          array( 
    213213               html::escapeHTML($core->blog->name) => '', 
    214                '<span class="page-title">'.__('Blog appearance').'</span>' => '' 
     214               __('Blog appearance') => '' 
    215215          )); 
    216216} else { 
     
    219219               html::escapeHTML($core->blog->name) => '', 
    220220               __('Blog appearance') => 'blog_theme.php', 
    221                '<span class="page-title">'.__('Theme configuration').'</span>' => '' 
     221               __('Theme configuration') => '' 
    222222          )); 
    223223} 
  • admin/blogs.php

    r2137 r2166  
    7373-------------------------------------------------------- */ 
    7474 
    75 $form_filter_title = __('Filter blogs list and display options'); 
     75$form_filter_title = __('Show filters and display options'); 
    7676$starting_script  = dcPage::jsLoad('js/filter-controls.js'); 
    7777$starting_script .= 
     
    8080     dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 
    8181     dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 
    82      dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 
     82     dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel filters and display options'))."\n". 
    8383     "//]]>". 
    8484     "</script>"; 
     
    8888          array( 
    8989               __('System') => '', 
    90                '<span class="page-title">'.__('List of blogs').'</span>' => '' 
     90               __('List of blogs') 
    9191          )) 
    9292); 
  • admin/categories.php

    r2125 r2166  
    107107          array( 
    108108               html::escapeHTML($core->blog->name) => '', 
    109                '<span class="page-title">'.__('Categories').'</span>' => '' 
     109               __('Categories') => '' 
    110110          )) 
    111111); 
  • admin/category.php

    r2117 r2166  
    166166     } 
    167167} 
    168 $elements['<span class="page-title">'.$title.'</span>'] = ''; 
     168$elements[$title] = ''; 
    169169 
    170170dcPage::open($title, 
  • admin/comment.php

    r1972 r2166  
    164164               html::escapeHTML($core->blog->name) => '', 
    165165               html::escapeHTML($post_title) => $core->getPostAdminURL($post_type,$post_id).'&amp;co=1#c'.$comment_id, 
    166                '<span class="page-title">'.__('Edit comment').'</span>' => '' 
     166               __('Edit comment') => '' 
    167167          )); 
    168168} else { 
     
    171171               html::escapeHTML($core->blog->name) => '', 
    172172               html::escapeHTML($post_title) => $core->getPostAdminURL($post_type,$post_id), 
    173                '<span class="page-title">'.__('Edit comment').'</span>' => '' 
     173               __('Edit comment') => '' 
    174174          )); 
    175175} 
  • admin/comments.php

    r2136 r2166  
    153153-------------------------------------------------------- */ 
    154154 
    155 $form_filter_title = __('Filter comments, trackbacks list and display options'); 
     155$form_filter_title = __('Show filters and display options'); 
    156156$starting_script  = dcPage::jsLoad('js/_comments.js'); 
    157157$starting_script .= dcPage::jsLoad('js/filter-controls.js'); 
     
    161161     dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 
    162162     dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 
    163      dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 
     163     dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel filters and display options'))."\n". 
    164164     "//]]>". 
    165165     "</script>"; 
     
    169169          array( 
    170170               html::escapeHTML($core->blog->name) => '', 
    171                '<span class="page-title">'.__('Comments and trackbacks').'</span>' => '' 
     171               __('Comments and trackbacks') => '' 
    172172          )) 
    173173); 
  • admin/help.php

    r2074 r2166  
    7777          array( 
    7878               __('Global help') => 'help.php', 
    79                '<span class="page-title">'.$content_array['title'].'</span>' => '' 
     79               $content_array['title'] => '' 
    8080          )); 
    8181} else { 
    8282     $breadcrumb = dcPage::breadcrumb( 
    8383          array( 
    84                '<span class="page-title">'.__('Global help').'</span>' => '' 
     84               __('Global help') => '' 
    8585          )); 
    8686} 
  • admin/index.php

    r2116 r2166  
    205205     dcPage::breadcrumb( 
    206206          array( 
    207           '<span class="page-title">'.__('Dashboard').' : '.html::escapeHTML($core->blog->name).'</span>' => '' 
     207          __('Dashboard').' : '.html::escapeHTML($core->blog->name) => '' 
    208208          ), 
    209           false) 
     209          array('home_link' =>false) 
     210     ) 
    210211); 
    211212 
     
    228229} 
    229230 
    230 if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->blog_count > 1) { 
     231if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->getBlogCount() > 1) { 
    231232     echo 
    232233     '<p><a href="index.php?default_blog=1" class="button">'.__('Make this blog my default blog').'</a></p>'; 
  • admin/js/jquery/jquery.pageTabs.js

    r2113 r2162  
    7272      
    7373     $.pageTabs.clickTab = function(tab) { 
     74          if (tab=='') { 
     75               tab = getHash($('ul li a', '.'+$.pageTabs.options.containerClass+':eq(0)').attr('href')); 
     76          } 
     77 
    7478          $('ul li a', '.'+$.pageTabs.options.containerClass).filter(function() { 
    7579               return getHash($(this).attr('href'))==tab; 
  • admin/js/jsToolBar/jsToolBar.wysiwyg.js

    r2101 r2155  
    8989               var idoc = This.iwin.document; 
    9090               var para = idoc.createElement('p'); 
    91                para.appendChild(idoc.createTextNode('')); 
     91               para.appendChild(idoc.createElement('br')); 
    9292               while (idoc.body.hasChildNodes()) { 
    9393                    idoc.body.removeChild(idoc.body.lastChild); 
  • admin/langs.php

    r2007 r2166  
    133133     array( 
    134134          __('System') => '', 
    135           '<span class="page-title">'.__('Languages management').'</span>' => '' 
     135          __('Languages management') => '' 
    136136     )) 
    137137); 
  • admin/media.php

    r2099 r2167  
    212212                    html::escapeHTML($core->blog->name) => '', 
    213213                    __('Media manager') => '', 
    214                     '<span class="page-title">'.__('confirm removal').'</span>' => '' 
    215                ),!$popup) 
     214                    __('confirm removal') => '' 
     215               ), 
     216               array('home_link' => !$popup) 
     217          ) 
    216218     ); 
    217219      
     
    240242          array( 
    241243               html::escapeHTML($core->blog->name) => '', 
    242                '<span class="page-title">'.__('Media manager').'</span>' => '' 
    243           ),!$popup); 
     244               __('Media manager') => '' 
     245          ), 
     246          array('home_link' => !$popup) 
     247     ); 
    244248} else { 
    245249     $breadcrumb_media = $core->media->breadCrumb(html::escapeURL($page_url).'&amp;d=%s','<span class="page-title">%s</span>'); 
     
    248252               array( 
    249253                    html::escapeHTML($core->blog->name) => '', 
    250                     '<span class="page-title">'.__('Media manager').'</span>' => '' 
    251                ),!$popup); 
     254                    __('Media manager') => '' 
     255               ), 
     256               array('home_link' => !$popup) 
     257          ); 
    252258     } else { 
    253259          $breadcrumb = dcPage::breadcrumb( 
     
    256262                    __('Media manager') => html::escapeURL($page_url.'&d='), 
    257263                    $breadcrumb_media => '' 
    258                ),!$popup); 
     264               ), 
     265               array( 
     266                    'home_link' => !$popup, 
     267                    'hl' => false 
     268               ) 
     269          ); 
    259270     } 
    260271} 
     
    409420{ 
    410421     echo 
    411      '<div class="two-boxes fieldset">';      
     422     '<div class="two-boxes fieldset even">';      
    412423     if ($user_ui_enhanceduploader) { 
    413424          echo 
  • admin/media_item.php

    r2106 r2167  
    206206               __('Media manager') => html::escapeURL($media_page_url), 
    207207               $core->media->breadCrumb(html::escapeURL($media_page_url).'&amp;d=%s').'<span class="page-title">'.$file->basename.'</span>' => '' 
    208           ),!$popup) 
     208          ), 
     209          array( 
     210               'home_link' => !$popup, 
     211               'hl' => false 
     212          ) 
     213     ) 
    209214); 
    210215 
  • admin/plugin.php

    r1358 r2166  
    8585               array( 
    8686                    __('System') => '', 
    87                     '<span class="page-title">'.__('Plugin not found').'</span>' => '' 
     87                    __('Plugin not found') => '' 
    8888               )) 
    8989     ); 
  • admin/plugins.php

    r2007 r2166  
    195195          array( 
    196196               __('System') => '', 
    197                '<span class="page-title">'.__('Plugins management').'</span>' => '' 
     197               __('Plugins management') => '' 
    198198          )) 
    199199); 
  • admin/post.php

    r2142 r2181  
    298298               # --BEHAVIOR-- adminAfterPostUpdate 
    299299               $core->callBehavior('adminAfterPostUpdate',$cur,$post_id); 
    300                 
    301                http::redirect('post.php?id='.$post_id.'&upd=1'); 
     300               dcPage::addSuccessNotice (sprintf('The post "%s" has been successfully updated',html::escapeHTML($cur->post_title))); 
     301               http::redirect('post.php?id='.$post_id); 
    302302          } 
    303303          catch (Exception $e) 
     
    385385               html::escapeHTML($core->blog->name) => '', 
    386386               __('Entries') => 'posts.php', 
    387                '<span class="page-title">'.($post_id ? $page_title_edit : $page_title).'</span>' => '' 
     387               ($post_id ? $page_title_edit : $page_title) => '' 
    388388          )) 
    389389); 
  • admin/posts.php

    r2136 r2166  
    213213-------------------------------------------------------- */ 
    214214 
    215 $form_filter_title = __('Filter users list and display options'); 
     215$form_filter_title = __('Show filters and display options'); 
    216216$starting_script  = dcPage::jsLoad('js/_posts_list.js'); 
    217217$starting_script .= dcPage::jsLoad('js/filter-controls.js'); 
     
    221221     dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 
    222222     dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 
    223      dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 
     223     dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel filters and display options'))."\n". 
    224224     "//]]>". 
    225225     "</script>"; 
     
    229229          array( 
    230230               html::escapeHTML($core->blog->name) => '', 
    231                '<span class="page-title">'.__('Entries').'</span>' => '' 
     231               __('Entries') => '' 
    232232          )) 
    233233); 
  • admin/preferences.php

    r2021 r2166  
    382382     array( 
    383383          html::escapeHTML($core->auth->userID()) => '', 
    384           '<span class="page-title">'.$page_title.'</span>' => '' 
     384          $page_title => '' 
    385385     )) 
    386386); 
     
    543543echo '<h3>'.__('My dashboard').'</h3>'; 
    544544 
    545 echo '<form action="preferences.php" method="post" id="favs-form" class="two-boxes">'; 
     545echo '<form action="preferences.php" method="post" id="favs-form" class="two-boxes odd">'; 
    546546 
    547547echo '<div id="my-favs" class="fieldset"><h4>'.__('My favorites').'</h4>'; 
  • admin/search.php

    r1912 r2166  
    7474          array( 
    7575               html::escapeHTML($core->blog->name) => '', 
    76                '<span class="page-title">'.__('Search').'</span>' => '' 
     76               __('Search') => '' 
    7777          )) 
    7878); 
  • admin/style/default.css

    r2142 r2152  
    149149          } 
    150150/* ------------------------------------------------- layout: optionnal one/two-boxes */ 
    151 .one-box, .two-boxes, .three-boxes, .box { 
    152      margin-bottom: 1em; 
    153      } 
    154151.one-box { 
    155152     text-align: justify; 
    156153     } 
     154.two-boxes, .three-boxes, .box { 
     155     display: inline-block; 
     156     vertical-align: top; 
     157     margin: 0 1.5% 1em; 
     158     -moz-box-sizing: border-box;  
     159     -webkit-box-sizing: border-box;  
     160     box-sizing: border-box;   
     161     } 
    157162.two-boxes { 
    158163     width: 47%; 
    159      display: inline-block; 
    160      vertical-align: top; 
    161      margin-right: 2%; 
    162      -moz-box-sizing: border-box;  
    163      -webkit-box-sizing: border-box;  
    164      box-sizing: border-box; 
    165      } 
    166      .two-boxes:first-child, .two-boxes.odd, .two-boxes.odd:last-child { 
    167           margin-right: 3%; 
    168           margin-left: 0; 
    169           } 
    170      .two-boxes.even:last-child, .two-boxes.even { 
    171           margin-left: 3%; 
    172           margin-right: 0; 
    173           } 
     164     } 
    174165.three-boxes { 
    175166     width: 30%; 
    176      display: inline-block; 
    177      vertical-align: top; 
    178      margin-left: 1.5%; 
    179      margin-right: 1.5%;  
    180      -moz-box-sizing: border-box;  
    181      -webkit-box-sizing: border-box;  
    182      box-sizing: border-box; 
    183      } 
    184      .three-boxes:first-child, .three-boxes.first-child { 
    185           margin-left: 0; 
    186           } 
    187      .three-boxes:last-child, .three-boxes.last-child { 
    188           margin-right: 0; 
    189           } 
    190 /* boîtes intérieures distribuées horizontalement */ 
     167     } 
    191168.box { 
    192      display: inline-block; 
    193      vertical-align: top; 
    194      margin-right: 3%;  
    195      text-align: left; 
    196      } 
    197 .box:last-child { 
     169     margin-left: 0; 
     170     margin-right: 0; 
     171     } 
     172.odd { 
     173     margin-left: 0; 
     174     } 
     175.even { 
    198176     margin-right: 0; 
    199177     } 
     
    448426h1 a:link, h1 a:visited { 
    449427     border:   none; 
     428     } 
     429.discrete a { 
     430     color: #333; 
    450431     } 
    451432/* ---------------------------------------------------------------------------- 
     
    14741455          } 
    14751456          .box.small { 
    1476                width: 300px; 
     1457               width: 320px; 
    14771458               } 
    14781459          .box.medium { 
    1479                width: 640px; 
     1460               width: 660px; 
    14801461               } 
    14811462          .box.large { 
     
    23942375     display: block; 
    23952376     } 
     2377/* ---------------------------------------------- Couleurs ajoutées via javascript    
     2378/* color-picker.js */ 
     2379.color-color-picker { 
     2380     border: 1px solid #000; 
     2381     width: 195px; 
     2382     background: #fff; 
     2383     } 
     2384/* _blog_theme.js */ 
     2385.select-button { 
     2386     font-weight: bold; 
     2387     } 
     2388/* _media_item.js */ 
     2389.color-div { 
     2390     border: 1px solid #ccc; 
     2391     } 
     2392/* fadings ('color' est utilisé comme variable, pas comme text color) */ 
     2393.colorBeginPassword, .colorBeginValidatorErr, .colorBeginUserMail { 
     2394     color: #fff; 
     2395     } 
     2396.colorEndPassword, .colorEndError, .colorEndValidatorErr, .colorEndUserMail { 
     2397     color: #ffbaba; 
     2398     } 
     2399.colorBeginMessage { 
     2400     color: #ccc; 
     2401     } 
     2402.colorEndMessage, .colorBeginValidatorMsg { 
     2403     color: #676e78; 
     2404     } 
     2405.colorBeginError { 
     2406     color: #ffdec8; 
     2407     } 
     2408.colorBeginSuccess { 
     2409     color: #9BCA1C; 
     2410     } 
     2411.colorEndSuccess { 
     2412     color: #bee74b; 
     2413     } 
     2414 .colorEndValidatorMsg { 
     2415     color: #ffcc00; 
     2416     } 
    23962417/* ------------------------------------------------------------------------------------ 
    23972418                                                                           UN POIL DE MEDIA QUERIES 
     
    24332454     #top-info-user a.active { 
    24342455          padding: 2px 8px; 
     2456          background: #999; 
     2457          color: #FFF; 
     2458          border-width: 0; 
     2459          -webkit-border-radius: 6px; 
     2460                  border-radius: 6px; 
    24352461          }  
    24362462     .three-boxes, .three-boxes .box, 
    2437      .three-boxes:first-child, .three-boxes.first-child, 
    2438      .three-boxes:last-child, .three-boxes.last-child, 
    24392463     .two-cols .col70, .two-cols .col30 { 
    24402464          width: 100%; 
     
    24572481          top: 77px; 
    24582482          } 
    2459      .one-box, .two-boxes, 
    2460      .one-box .box, .two-boxes .box, .two-boxes.odd, .two-boxes.even, 
    2461      .two-boxes:first-child, .two-boxes.odd, .two-boxes.odd:last-child, 
    2462      .two-boxes.even:last-child, .two-boxes.even, 
     2483     .one-box, .two-boxes, .two-boxes.odd, .two-boxes.even, .box, 
    24632484     .two-cols .col { 
    24642485          width: 100%; 
     
    24932514          display: inline; 
    24942515          } 
    2495      #content { 
     2516     #content, .hide-mm #content { 
    24962517          margin: 0; 
    24972518          padding: 0 .5em !important; 
     
    25022523     #main #content > h2 { 
    25032524          margin: 0; 
    2504           padding: 6px 0; 
     2525          padding: 6px 30px 6px 0; 
    25052526          } 
    25062527     #dashboard-boxes .box.medium, 
    25072528     #dashboard-boxes .box.small, 
    25082529     #dashboard-boxes .box.large { 
    2509           width: 90%; 
     2530          width: 100%; 
    25102531          margin: 10px auto; 
    25112532          } 
    25122533     } 
    2513 @media screen and (max-width: 500px) { 
     2534@media screen and (max-width: 420px) { 
    25142535     h1, h1 a { 
    25152536          padding: 0; 
     
    25192540          display: none; 
    25202541          } 
     2542     #top-info-blog { 
     2543          margin-bottom: .5em; 
     2544          max-width: 75%; 
     2545          } 
    25212546     #top-info-blog select { 
    25222547          margin-bottom: .5em; 
    2523           margin-right: 0 !important; 
    2524           } 
    2525      #top-info-blog p { 
    2526           display: block; 
    25272548          } 
    25282549     #icons p { 
     
    25332554          } 
    25342555     } 
    2535 /* ---------------------------------------------- Couleurs ajoutées via javascript    
    2536 /* color-picker.js */ 
    2537 .color-color-picker { 
    2538      border: 1px solid #000; 
    2539      width: 195px; 
    2540      background: #fff; 
    2541      } 
    2542 /* _blog_theme.js */ 
    2543 .select-button { 
    2544      font-weight: bold; 
    2545      } 
    2546 /* _media_item.js */ 
    2547 .color-div { 
    2548      border: 1px solid #ccc; 
    2549      } 
    2550 /* fadings ('color' est utilisé comme variable, pas comme text color) */ 
    2551 .colorBeginPassword, .colorBeginValidatorErr, .colorBeginUserMail { 
    2552      color: #fff; 
    2553      } 
    2554 .colorEndPassword, .colorEndError, .colorEndValidatorErr, .colorEndUserMail { 
    2555      color: #ffbaba; 
    2556      } 
    2557 .colorBeginMessage { 
    2558      color: #ccc; 
    2559      } 
    2560 .colorEndMessage, .colorBeginValidatorMsg { 
    2561      color: #676e78; 
    2562      } 
    2563 .colorBeginError { 
    2564      color: #ffdec8; 
    2565      } 
    2566 .colorBeginSuccess { 
    2567      color: #9BCA1C; 
    2568      } 
    2569 .colorEndSuccess { 
    2570      color: #bee74b; 
    2571      } 
    2572  .colorEndValidatorMsg { 
    2573      color: #ffcc00; 
    2574      } 
  • admin/update.php

    r1792 r2166  
    178178          array( 
    179179               __('System') => '', 
    180                '<span class="page-title">'.__('Dotclear update').'</span>' => '' 
     180               __('Dotclear update') => '' 
    181181          )) 
    182182); 
  • admin/user.php

    r1719 r2166  
    186186               __('System') => '', 
    187187               __('Users') => 'users.php', 
    188                '<span class="page-title">'.$page_title.'</span>' => '' 
     188               $page_title => '' 
    189189          )) 
    190190); 
  • admin/users.php

    r2137 r2166  
    9393-------------------------------------------------------- */ 
    9494 
    95 $form_filter_title = __('Filter users list and display options'); 
     95$form_filter_title = __('Show filters and display options'); 
    9696$starting_script  = dcPage::jsLoad('js/_users.js'); 
    9797$starting_script .= dcPage::jsLoad('js/filter-controls.js'); 
     
    101101     dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 
    102102     dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 
    103      dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 
     103     dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel filters and display options'))."\n". 
    104104     "//]]>". 
    105105     "</script>"; 
     
    109109          array( 
    110110               __('System') => '', 
    111                '<span class="page-title">'.__('Users').'</span>' => '' 
     111               __('Users') => '' 
    112112          )) 
    113113); 
  • admin/users_actions.php

    r2108 r2166  
    136136               __('System') => '', 
    137137               __('Users') => 'users.php', 
    138                '<span class="page-title">'.__('Permissions').'</span>' => '' 
     138               __('Permissions') => '' 
    139139          )); 
    140140} else { 
     
    143143               __('System') => '', 
    144144               __('Users') => 'users.php', 
    145                '<span class="page-title">'.__('Actions').'</span>' => '' 
     145               __('Actions') => '' 
    146146          )); 
    147147} 
  • inc/admin/actions/class.dcaction.php

    r2072 r2169  
    225225     * @return string the redirection url 
    226226     */ 
    227      public function getRedirection($params=array(),$with_selected_entries=false) { 
     227     public function getRedirection($with_selected_entries=false,$params=array()) { 
    228228          $redir_args = array_merge($params,$this->redir_args); 
    229229          if ($with_selected_entries) { 
     
    240240     * @access public 
    241241     */ 
    242      public function redirect($params=array(),$with_selected_entries=false) { 
    243           http::redirect($this->getRedirection($params,$with_selected_entries)); 
     242     public function redirect($with_selected_entries=false,$params=array()) { 
     243          http::redirect($this->getRedirection($with_selected_entries,$params)); 
    244244          exit; 
    245245     }     
  • inc/admin/actions/class.dcactioncomments.php

    r2075 r2169  
    4646 
    4747          } 
    48           echo '<p><a class="back" href="'.$this->getRedirection(array(),true).'">'.__('Back to comments list').'</a></p>'; 
     48          echo '<p><a class="back" href="'.$this->getRedirection(true).'">'.__('Back to comments list').'</a></p>'; 
    4949     } 
    5050      
     
    5959                    html::escapeHTML($this->core->blog->name) => '', 
    6060                    __('Comments') => 'comments.php', 
    61                     '<span class="page-title">'.__('Comments actions').'</span>' => '' 
     61                    __('Comments actions') => '' 
    6262               )) 
    6363          ); 
     
    149149           
    150150          $core->blog->updCommentsStatus($co_ids,$status); 
    151           $ap->redirect(array('upd'=>1),true); 
     151          $ap->redirect(true,array('upd'=>1)); 
    152152     } 
    153153 
     
    168168           
    169169          $core->blog->delComments($co_ids); 
    170           $ap->redirect(array('del'=>1), false); 
     170          $ap->redirect(false,array('del'=>1)); 
    171171     } 
    172172} 
  • inc/admin/actions/class.dcactionposts.php

    r2072 r2181  
    4444               ); 
    4545          } 
    46           echo '<p><a class="back" href="'.$this->getRedirection(array(),true).'">'.__('Back to entries list').'</a></p>'; 
     46          echo '<p><a class="back" href="'.$this->getRedirection(true).'">'.__('Back to entries list').'</a></p>'; 
    4747     } 
    4848      
     
    6060               array( 
    6161                    html::escapeHTML($this->core->blog->name) => '', 
    62                     $this->getCallerTitle() => $this->getRedirection(array(),true), 
    63                     '<span class="page-title">'.__('Entries actions').'</span>' => '' 
     62                    $this->getCallerTitle() => $this->getRedirection(true), 
     63                    __('Entries actions') => '' 
    6464               )) 
    6565          ); 
     
    159159          } 
    160160          $core->blog->updPostsStatus($posts_ids,$status); 
    161            
    162           $ap->redirect(array('upd' => 1),true); 
     161          dcPage::addSuccessNotice(sprintf( 
     162               __( 
     163                    '%d entry has been successfully updated to status : "%s"', 
     164                    '%d entries have been successfully updated to status : "%s"', 
     165                    count($posts_ids) 
     166               ), 
     167               count($posts_ids), 
     168               $core->blog->getPostStatus($status)) 
     169          ); 
     170          $ap->redirect(true); 
    163171     } 
    164172      
     
    170178          $action = $ap->getAction(); 
    171179          $core->blog->updPostsSelected($posts_ids,$action == 'selected'); 
    172            
    173           $ap->redirect(array('upd' => 1),true); 
     180          if ($action == 'selected') { 
     181               dcPage::addSuccessNotice(sprintf( 
     182                    __( 
     183                         '%d entry has been successfully marked as selected', 
     184                         '%d entries have been successfully marked as selected', 
     185                         count($posts_ids) 
     186                    ), 
     187                    count($posts_ids)) 
     188               ); 
     189          } else { 
     190               dcPage::addSuccessNotice(sprintf( 
     191                    __( 
     192                         '%d entry has been successfully marked as unselected', 
     193                         '%d entries have been successfully marked as unselected', 
     194                         count($posts_ids) 
     195                    ), 
     196                    count($posts_ids)) 
     197               ); 
     198          } 
     199          $ap->redirect(true); 
    174200     } 
    175201      
     
    191217           
    192218          $core->blog->delPosts($posts_ids); 
     219          dcPage::addSuccessNotice(sprintf( 
     220               __( 
     221                    '%d entry has been successfully deleted', 
     222                    '%d entries have been successfully deleted', 
     223                    count($posts_ids) 
     224               ), 
     225               count($posts_ids)) 
     226          ); 
    193227           
    194           $ap->redirect(array('del',1),false); 
     228          $ap->redirect(false); 
    195229     } 
    196230 
     
    207241                    $cur_cat->cat_title = $post['new_cat_title']; 
    208242                    $cur_cat->cat_url = ''; 
     243                    $title = $cur_cat->cat_title; 
    209244                     
    210245                    $parent_cat = !empty($post['new_cat_parent']) ? $post['new_cat_parent'] : ''; 
     
    220255                
    221256               $core->blog->updPostsCategory($posts_ids, $new_cat_id); 
    222                 
    223                $ap->redirect(array('upd'=>1),true); 
     257               $title = $core->blog->getCategory($new_cat_id); 
     258               dcPage::addSuccessNotice(sprintf( 
     259                    __( 
     260                         '%d entry has been successfully moved to category "%s"', 
     261                         '%d entries have been successfully moved to category "%s"', 
     262                         count($posts_ids) 
     263                    ), 
     264                    count($posts_ids), 
     265                    html::escapeHTML($title->cat_title)) 
     266               ); 
     267 
     268               $ap->redirect(true); 
    224269          } else { 
    225270 
     
    228273                         array( 
    229274                              html::escapeHTML($core->blog->name) => '', 
    230                               $ap->getCallerTitle() => $ap->getRedirection(array(),true), 
    231                               '<span class="page-title">'.__('Change category for this selection').'</span>' => '' 
     275                              $ap->getCallerTitle() => $ap->getRedirection(true), 
     276                              __('Change category for this selection') => '' 
    232277               ))); 
    233278               # categories list 
     
    237282               );              
    238283               echo 
    239                '<form action="'.$ap->getRedirection(array(),true).'" method="post">'. 
     284               '<form action="'.$ap->getURI().'" method="post">'. 
    240285               $ap->getCheckboxes(). 
    241286               '<p><label for="new_cat_id" class="classic">'.__('Category:').'</label> '. 
     
    279324               $cur->user_id = $new_user_id; 
    280325               $cur->update('WHERE post_id '.$core->con->in($posts_ids)); 
    281                 
    282                $ap->redirect(array('upd' => 1),true); 
     326               dcPage::addSuccessNotice(sprintf( 
     327                    __( 
     328                         '%d entry has been successfully set to user "%s"', 
     329                         '%d entries have been successfully set to user "%s"', 
     330                         count($posts_ids) 
     331                    ), 
     332                    count($posts_ids), 
     333                    html::escapeHTML($new_user_id)) 
     334               ); 
     335 
     336 
     337               $ap->redirect(true); 
    283338          } else { 
    284339               $usersList = ''; 
     
    298353                         array( 
    299354                              html::escapeHTML($core->blog->name) => '', 
    300                               $ap->getCallerTitle() => $ap->getRedirection(array(),true), 
    301                               '<span class="page-title">'.__('Change author for this selection').'</span>' => '')), 
     355                              $ap->getCallerTitle() => $ap->getRedirection(true), 
     356                              __('Change author for this selection') => '')), 
    302357                         dcPage::jsLoad('js/jquery/jquery.autocomplete.js'). 
    303358                         '<script type="text/javascript">'."\n". 
     
    309364 
    310365               echo 
    311                '<form action="'.$ap->getRedirection(array(),true).'" method="post">'. 
     366               '<form action="'.$ap->getURI().'" method="post">'. 
    312367               $ap->getCheckboxes(). 
    313368               '<p><label for="new_auth_id" class="classic">'.__('New author (author ID):').'</label> '. 
     
    332387               $cur->post_lang = $new_lang; 
    333388               $cur->update('WHERE post_id '.$core->con->in($posts_ids)); 
    334                 
    335                $ap->redirect(array('upd' => 1),true); 
     389               dcPage::addSuccessNotice(sprintf( 
     390                    __( 
     391                         '%d entry has been successfully set to language "%s"', 
     392                         '%d entries have been successfully set to language "%s"', 
     393                         count($posts_ids) 
     394                    ), 
     395                    count($posts_ids), 
     396                    html::escapeHTML(l10n::getLanguageName($new_lang))) 
     397               ); 
     398               $ap->redirect(true); 
    336399          } else { 
    337400               $ap->beginPage( 
     
    339402                         array( 
    340403                              html::escapeHTML($core->blog->name) => '', 
    341                               $ap->getCallerTitle() => $ap->getRedirection(array(),true), 
    342                               '<span class="page-title">'.__('Change language for this selection').'</span>' => '' 
     404                              $ap->getCallerTitle() => $ap->getRedirection(true), 
     405                              _('Change language for this selection') => '' 
    343406               ))); 
    344407               # lang list 
     
    359422                
    360423               echo 
    361                '<form action="'.$ap->getRedirection(array(),true).'" method="post">'. 
     424               '<form action="'.$ap->getURI().'" method="post">'. 
    362425               $ap->getCheckboxes(). 
    363426                
  • inc/admin/lib.admincombos.php

    r2049 r2154  
    3030     @return   <b>array</b> the combo box (form::combo -compatible format) 
    3131     */ 
    32      public static function getCategoriesCombo($categories,$include_empty = true) { 
     32     public static function getCategoriesCombo($categories,$include_empty = true,$use_url = false) { 
    3333          $categories_combo = array(); 
    3434          if ($include_empty) { 
     
    3838               $categories_combo[] = new formSelectOption ( 
    3939                    html::escapeHTML($categories->cat_title).' ('.$categories->nb_post.')', 
    40                     $categories->cat_id, 
     40                    ($use_url ? $categories->cat_url : $categories->cat_id), 
    4141                    ($categories->level-1 ? 'sub-option'.($categories->level-1) : '') 
    4242               ); 
  • inc/admin/lib.dc.page.php

    r2113 r2181  
    5454 
    5555          # List of user's blogs 
    56           if ($core->auth->blog_count == 1 || $core->auth->blog_count > 20) 
     56          if ($core->auth->getBlogCount() == 1 || $core->auth->getBlogCount() > 20) 
    5757          { 
    5858               $blog_box = 
     
    6060               html::escapeHTML($core->blog->name).'</strong>'; 
    6161 
    62                if ($core->auth->blog_count > 20) { 
     62               if ($core->auth->getBlogCount() > 20) { 
    6363                    $blog_box .= ' - <a href="blogs.php">'.__('Change blog').'</a>'; 
    6464               } 
     
    108108          $user_ui_hide_std_favicon = $core->auth->user_prefs->interface->hide_std_favicon; 
    109109          if (!$user_ui_hide_std_favicon) { 
    110                echo '<link rel="icon" type="image/png" href="images/favicon.png" />'; 
    111           } 
    112  
     110               echo  
     111               '<link rel="icon" type="image/png" href="images/favicon96-login.png" />'. 
     112               '<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />'; 
     113          } 
    113114          echo 
    114115          self::jsCommon(). 
     
    174175               '</div>'; 
    175176          } 
    176      } 
    177  
     177           
     178          if (isset($_SESSION['notifications'])) { 
     179               $types = array("success" => "success", "warning" => "warning-msg"); 
     180               $notifications = $_SESSION['notifications']; 
     181               foreach ($types as $type => $class) { 
     182                    if (isset($notifications[$type])) { 
     183                         foreach ($notifications[$type] as $n) { 
     184                              echo self::getNotification($n,$class); 
     185                         } 
     186                    } 
     187               } 
     188               unset($_SESSION['notifications']); 
     189          } 
     190           
     191     } 
     192     public static function AddNotice($type,$message) { 
     193          $notification = isset($_SESSION['notifications']) ? $_SESSION['notifications']:array(); 
     194          $notification[$type][] = array('ts' => time(), 'text' => $message); 
     195          $_SESSION['notifications'] = $notification; 
     196     } 
     197     public static function addSuccessNotice($message) { 
     198          self::addNotice("success",$message); 
     199     } 
     200     public static function addWarningNotice($message) { 
     201          self::addNotice("warning",$message); 
     202     } 
     203      
     204     protected static function getNotification($msg,$class) { 
     205          global $core; 
     206          $res = '<p class="'.$class.'">'. 
     207          dt::str(__('[%H:%M:%S] '),$msg['ts'],$core->auth->getInfo('user_tz')).' '.$msg['text']. 
     208          '</p>'; 
     209          return $res;    
     210     } 
    178211     public static function close() 
    179212     { 
     
    303336     } 
    304337 
    305      public static function breadcrumb($elements=null,$with_home_link=true,$echo=false) 
    306      { 
     338     public static function breadcrumb($elements=null,$options=array()) 
     339     { 
     340          $with_home_link = isset($options['home_link'])?$options['home_link']:true; 
     341          $hl = isset($options['hl'])?$options['hl']:true; 
     342          $hl_pos = isset($options['hl_pos'])?$options['hl_pos']:-1; 
    307343          // First item of array elements should be blog's name, System or Plugins 
    308344          $res = '<h2>'.($with_home_link ? 
     
    310346               '<img src="style/dashboard-alt.png" alt="" />'); 
    311347          $index = 0; 
     348          if ($hl_pos < 0) { 
     349               $hl_pos = count($elements)+$hl_pos; 
     350          } 
    312351          foreach ($elements as $element => $url) { 
     352               if ($hl && $index == $hl_pos) { 
     353                    $element = sprintf('<span class="page-title">%s</span>',$element); 
     354               } 
    313355               $res .= ($with_home_link ? ($index == 1 ? ' : ' : ' &rsaquo; ') : ($index == 0 ? ' ' : ' &rsaquo; ')). 
    314356                    ($url ? '<a href="'.$url.'">' : '').$element.($url ? '</a>' : ''); 
     
    316358          } 
    317359          $res .= '</h2>'; 
    318           if ($echo) { 
    319                echo $res; 
    320           } 
    321360          return $res; 
    322361     } 
  • inc/admin/lib.pager.php

    r2138 r2152  
    409409               '<th scope="col">'.__('Date').'</th>'. 
    410410               '<th scope="col" class="txt-center">'.__('Status').'</th>'. 
    411                '<th scope="col" abbr="entry">'.__('Entry title').'</th>'. 
     411               '<th scope="col" abbr="entry">'.__('Entry').'</th>'. 
    412412               '</tr>%s</table></div>'; 
    413413 
     
    469469           
    470470          $post_title = html::escapeHTML($this->rs->post_title); 
    471           if (mb_strlen($post_title) > 60) { 
    472                $post_title = mb_strcut($post_title,0,57).'...'; 
     471          if (mb_strlen($post_title) > 70) { 
     472               $post_title = mb_strcut($post_title,0,67).'...'; 
    473473          } 
    474474          $comment_title = sprintf(__('Edit the %1$s from %2$s'), 
     
    489489          '<td class="nowrap count">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->comment_dt).'</td>'. 
    490490          '<td class="nowrap status txt-center">'.$img_status.'</td>'. 
    491           '<td class="nowrap"><a href="'.$post_url.'">'. 
     491          '<td class="nowrap discrete"><a href="'.$post_url.'">'. 
    492492          html::escapeHTML($post_title).'</a>'. 
    493493          ($this->rs->post_type != 'post' ? ' ('.html::escapeHTML($this->rs->post_type).')' : '').'</td>'; 
  • inc/admin/prepend.php

    r2062 r2159  
    351351          preg_match('/blogs.php$/',$_SERVER['REQUEST_URI']), 
    352352          $core->auth->isSuperAdmin() || 
    353           $core->auth->check('usage,contentadmin',$core->blog->id) && $core->auth->blog_count > 1); 
     353          $core->auth->check('usage,contentadmin',$core->blog->id) && $core->auth->getBlogCount() > 1); 
    354354 
    355355     if (!$user_ui_nofavmenu) { 
  • inc/core/class.dc.auth.php

    r1179 r2159  
    377377               return $this->blogs[$blog_id]; 
    378378          } 
    379            
    380           if ($this->blog_count === null) { 
    381                $this->blog_count = $this->core->getBlogs(array(),true)->f(0); 
    382           } 
    383            
     379 
    384380          if ($this->user_admin) { 
    385381               $strReq = 'SELECT blog_id '. 
     
    404400          return $this->blogs[$blog_id]; 
    405401     } 
     402 
     403    public function getBlogCount() { 
     404          if ($this->blog_count === null) { 
     405               $this->blog_count = $this->core->getBlogs(array(),true)->f(0); 
     406          } 
     407 
     408        return $this->blog_count; 
     409    } 
    406410      
    407411     public function findUserBlog($blog_id=null) 
  • inc/dbschema/upgrade.php

    r1785 r2144  
    1414function dotclearUpgrade($core) 
    1515{ 
     16    $cleanup_sessions = false; // update it in a step that needed sessions to be removed 
    1617     $version = $core->getVersion('core'); 
    1718      
     
    344345               $core->blogDefaults(); 
    345346                
    346                # Drop content from session table 
    347                $core->con->execute('DELETE FROM '.$core->prefix.'session '); 
     347               # Drop content from session table if changes or if needed 
     348               if ($changes != 0 || $cleanup_sessions) { 
     349                    $core->con->execute('DELETE FROM '.$core->prefix.'session '); 
     350               } 
    348351                
    349352               # Empty templates cache directory 
  • locales/fr/main.po

    r2142 r2145  
    36993699msgid "Trackbacks received" 
    37003700msgstr "Rétroliens reçus" 
     3701 
     3702msgid "Show filters and display options" 
     3703msgstr "Afficher les filtres et options d'affichage" 
     3704 
     3705msgid "Cancel filters and display options" 
     3706msgstr "Annuler les filtres et options d'affichage" 
  • plugins/aboutConfig/index.php

    r2003 r2166  
    119119          __('System') => '', 
    120120          html::escapeHTML($core->blog->name) => '', 
    121           '<span class="page-title">'.__('about:config').'</span>' => '' 
     121          __('about:config') => '' 
    122122     )); 
    123123if (!empty($_GET['upd'])) { 
  • plugins/antispam/index.php

    r2122 r2166  
    127127               __('Plugins') => '', 
    128128               $page_name => $p_url, 
    129                '<span class="page-title">'.sprintf(__('%s filter configuration'),$filter->name).'</span>' => '' 
     129               sprintf(__('%s filter configuration'),$filter->name) => '' 
    130130          )); 
    131131 
     
    139139          array( 
    140140               __('Plugins') => '', 
    141                '<span class="page-title">'.$page_name.'</span>' => '' 
     141               $page_name => '' 
    142142          )); 
    143143 
  • plugins/blogroll/edit.php

    r2002 r2166  
    9999          array( 
    100100               html::escapeHTML($core->blog->name) => '', 
    101                '<span class="page-title">'.__('Blogroll').'</span>' => $p_url 
     101               __('Blogroll') => $p_url 
    102102          )); 
    103103?> 
  • plugins/blogroll/index.php

    r2115 r2166  
    181181          array( 
    182182               html::escapeHTML($core->blog->name) => '', 
    183                '<span class="page-title">'.__('Blogroll').'</span>' => '' 
     183               __('Blogroll') => '' 
    184184          )); 
    185185?> 
  • plugins/blowupConfig/index.php

    r1588 r2166  
    231231          html::escapeHTML($core->blog->name) => '', 
    232232          __('Blog appearance') => 'blog_theme.php', 
    233           '<span class="page-title">'.__('Blowup configuration').'</span>' => '' 
     233          __('Blowup configuration') => '' 
    234234     )); 
    235235 
  • plugins/daInstaller/index.php

    r1912 r2166  
    259259     array( 
    260260          __('System') => '', 
    261           '<span class="page-title">'.__('DotAddict.org Installer').'</span>' => '' 
     261          __('DotAddict.org Installer') => '' 
    262262     )). 
    263263 
  • plugins/importExport/index.php

    r2095 r2166  
    7878               __('Plugins') => '', 
    7979               $title => $p_url, 
    80                '<span class="page-title">'.html::escapeHTML($module->name).'</span>' => '' 
     80               html::escapeHTML($module->name) => '' 
    8181          )); 
    8282 
     
    9292          array( 
    9393               __('Plugins') => '', 
    94                '<span class="page-title">'.$title.'</span>' => '' 
     94               $title => '' 
    9595          )); 
    9696 
  • plugins/maintenance/_admin.php

    r2116 r2177  
    128128 
    129129          $icon[0] .= '<br />'.sprintf(__('One task to execute', '%s tasks to execute', $count), $count); 
     130          $icon[2] = 'index.php?pf=maintenance/icon-big-update.png'; 
    130131     } 
    131132 
  • plugins/maintenance/index.php

    r2051 r2166  
    133133          array( 
    134134               __('Plugins') => '', 
    135                '<span class="page-title">'.__('Maintenance').'</span>' => '' 
     135               __('Maintenance') => '' 
    136136          ) 
    137137     ). 
     
    159159               __('Plugins') => '', 
    160160               '<a href="'.$p_url.'">'.__('Maintenance').'</a>' => '', 
    161                '<span class="page-title">'.html::escapeHTML($task->name()).'</span>' => '' 
     161               html::escapeHTML($task->name())=> '' 
    162162          ) 
    163163     ); 
     
    193193          array( 
    194194               __('Plugins') => '', 
    195                '<span class="page-title">'.__('Maintenance').'</span>' => '' 
     195               __('Maintenance') => '' 
    196196          ) 
    197197     ); 
  • plugins/pages/class.actionpage.php

    r2061 r2169  
    2525               array( 
    2626                    html::escapeHTML($this->core->blog->name) => '', 
    27                     __('Pages') => $this->getRedirection(array(),true), 
    28                     '<span class="page-title">'.__('Pages actions').'</span>' => '' 
     27                    __('Pages') => $this->getRedirection(true), 
     28                    __('Pages actions') => '' 
    2929               )) 
    3030          ); 
     
    3737               '</script></head><body>'. 
    3838               $breadcrumb; 
    39           echo '<p><a class="back" href="'.$this->getRedirection(array(),true).'">'.__('Back to pages list').'</a></p>'; 
     39          echo '<p><a class="back" href="'.$this->getRedirection(true).'">'.__('Back to pages list').'</a></p>'; 
    4040 
    4141     } 
     
    8080                
    8181          } 
    82           $ap->redirect(array('reo'=>1),false); 
     82          $ap->redirect(false,array('reo'=>1)); 
    8383     }     
    8484} 
  • plugins/pages/list.php

    r2056 r2166  
    7575     array( 
    7676          html::escapeHTML($core->blog->name) => '', 
    77           '<span class="page-title">'.__('Pages').'</span>' => '' 
     77          __('Pages') => '' 
    7878     )); 
    7979 
  • plugins/pages/page.php

    r1981 r2166  
    329329          html::escapeHTML($core->blog->name) => '', 
    330330          __('Pages') => $p_url, 
    331           '<span class="page-title">'.$edit_entry_title.'</span>' => '' 
     331          $edit_entry_title => '' 
    332332     )); 
    333333 
  • plugins/pings/index.php

    r1930 r2166  
    5555     array( 
    5656          __('Plugins') => '', 
    57           '<span class="page-title">'.__('Pings configuration').'</span>' => '' 
     57          __('Pings configuration') => '' 
    5858     )); 
    5959 
  • plugins/simpleMenu/index.php

    r2120 r2167  
    2525$categories_label = array(); 
    2626$rs = $core->blog->getCategories(array('post_type'=>'post')); 
    27 $categories_combo = dcAdminCombos::getCategoriesCombo($rs,false); 
    28  
     27$categories_combo = dcAdminCombos::getCategoriesCombo($rs,false,true); 
    2928$rs->moveStart(); 
    3029while ($rs->fetch()) { 
    31      $categories_label[$rs->cat_id] = html::escapeHTML($rs->cat_title); 
    32 } 
     30     $categories_label[$rs->cat_url] = html::escapeHTML($rs->cat_title); 
     31} 
     32 
    3333# Liste des langues utilisées 
    3434$langs_combo = dcAdminCombos::getLangscombo( 
     
    374374               html::escapeHTML($core->blog->name) => '', 
    375375               $page_title => $p_url, 
    376                '<span class="page-title">'.__('Add item').'</span>' => '', 
     376               __('Add item') => '', 
    377377               $step_label => '' 
    378           )); 
     378          ), 
     379          array( 
     380               'hl_pos' => -2) 
     381     ); 
    379382} else { 
    380383     echo dcPage::breadcrumb( 
    381384          array( 
    382385               html::escapeHTML($core->blog->name) => '', 
    383                '<span class="page-title">'.$page_title.'</span>' => '' 
     386               $page_title => '' 
    384387          )); 
    385388} 
  • plugins/tags/_admin.php

    r2065 r2169  
    136136                    } 
    137137               } 
    138                $ap->redirect(array('upd' => 1),true); 
     138               $ap->redirect(true,array('upd' => 1)); 
    139139          }  
    140140          else  
     
    150150                         array( 
    151151                              html::escapeHTML($core->blog->name) => '', 
    152                               __('Entries') => $ap->getRedirection(array(),true), 
    153                               '<span class="page-title">'.__('Add tags to this selection').'</span>' => '' 
     152                              __('Entries') => $ap->getRedirection(true), 
     153                              __('Add tags to this selection') => '' 
    154154                    )), 
    155155                    dcPage::jsLoad('js/jquery/jquery.autocomplete.js'). 
     
    201201                    } 
    202202               } 
    203                $ap->redirect(array('upd' => 1),true); 
     203               $ap->redirect(true,array('upd' => 1)); 
    204204          } 
    205205          else 
     
    228228                                   html::escapeHTML($core->blog->name) => '', 
    229229                                   __('Entries') => 'posts.php', 
    230                                    '<span class="page-title">'.__('Remove selected tags from this selection').'</span>' => '' 
     230                                   __('Remove selected tags from this selection') => '' 
    231231               ))); 
    232232               $posts_count = count($_POST['entries']); 
  • plugins/tags/js/post.js

    r1871 r2180  
    2626               delay: 1000, 
    2727               multiple: true, 
     28               multipleSeparator: ", ", 
    2829               matchSubset: false, 
    2930               matchContains: true, 
  • plugins/tags/style.css

    r2079 r2152  
    1010.tag90 { font-size: 220%; } 
    1111.tag100 { font-size: 230%; } 
    12  
    1312table.tags { 
    1413     margin-left: 3em; 
    15 } 
    16  
    17  
     14     } 
    1815tr.tagLetter span { 
    1916     font-size : 250%; 
     
    2421     top: 0.80em; 
    2522     left: -2ex; 
    26 } 
    27  
     23     } 
    2824ul.metaList { 
    2925     margin: 0 0 1em 0; 
    3026     padding: 0; 
    31 } 
     27     } 
    3228ul.metaList li { 
    3329     margin: 0; 
     
    3531     list-style: square; 
    3632     list-style-position: inside; 
    37 } 
    38  
     33     } 
    3934a.metaRemove { 
    4035     color : #999 !important; 
    4136     border: none; 
    42 } 
     37     } 
    4338a.metaRemove:hover, a.metaRemove:focus { 
    4439     color : #06c !important; 
    45 } 
    46  
     40     } 
    4741.addMeta a { 
    4842     border: none; 
    49 } 
     43     } 
    5044.addMeta a:hover, .addMeta a:focus { 
    5145     background: #fc0; 
    5246     color: #000; 
    53 } 
     47     } 
    5448.addMeta a.metaGetMore { 
    5549     font-weight: bold; 
    56 } 
     50     } 
    5751/* Auto Complete */ 
    5852.ac_results { 
     
    6256     overflow: hidden; 
    6357     z-index: 99999; 
    64 } 
     58     } 
    6559.ac_results ul { 
    6660     width: 100%; 
     
    6963     padding: 0; 
    7064     margin: 0; 
    71 } 
     65     } 
    7266.ac_results li { 
    7367     margin: 0px; 
     
    8882     line-height: 16px; 
    8983     overflow: hidden; 
    90 } 
     84     } 
    9185.ac_loading { 
    9286     background: transparent url('index.php?pf=tags/img/loader.gif') right center no-repeat; 
    93 } 
     87     } 
    9488.ac_odd { 
    9589     background-color: #eee; 
    96 } 
     90     } 
    9791.ac_over { 
    9892     background-color: #06c; 
    9993     color: white; 
    100 } 
    101 #post_meta_input { 
    102     margin: 0 0.5em 0 0; 
    103     width: 13em; 
    104 } 
     94     } 
    10595#post_meta_input:focus { 
    10696     -moz-box-sizing: content-box; 
    107 } 
    108 #tags-edit input[type=button] { 
    109      width: 3.5em; 
    110 } 
     97     } 
     98#tags-edit input[type=text] { 
     99     width: 11.5em; 
     100     } 
    111101.tag-actions form { 
    112102     display: inline-block; 
    113103     margin-right: 1.5em; 
    114 } 
     104     } 
  • plugins/tags/tag_posts.php

    r2079 r2166  
    9191          html::escapeHTML($core->blog->name) => '', 
    9292          __('Tags') => $p_url.'&amp;m=tags', 
    93           '<span class="page-title">'.__('Tag').' &ldquo;'.html::escapeHTML($tag).'&rdquo;'.'</span>' => '' 
     93          __('Tag').' &ldquo;'.html::escapeHTML($tag).'&rdquo;' => '' 
    9494     )); 
    9595?> 
  • plugins/tags/tags.php

    r2003 r2166  
    2424     array( 
    2525          html::escapeHTML($core->blog->name) => '', 
    26           '<span class="page-title">'.__('Tags').'</span>' => '' 
     26          __('Tags') => '' 
    2727     )); 
    2828?> 
  • plugins/themeEditor/index.php

    r1382 r2166  
    9191          html::escapeHTML($core->blog->name) => '', 
    9292          __('Blog appearance') => 'blog_theme.php', 
    93           '<span class="page-title">'.__('Edit theme files').'</span>' => '' 
     93          __('Edit theme files') => '' 
    9494     )); 
    9595?> 
  • plugins/userPref/index.php

    r2003 r2168  
    115115          __('System') => '', 
    116116          html::escapeHTML($core->auth->userID()) => '', 
    117           '<span class="page-title">'.__('user:preferences').'</span>' => '' 
     117          __('user:preferences') => '' 
    118118     )); 
    119119 
     
    160160          '<label for="lp_nav" class="classic">'.__('Goto:').'</label> '.form::combo('lp_nav',$ws_combo). 
    161161          ' <input type="submit" value="'.__('Ok').'" id="lp_submit" />'. 
    162           '<input type="hidden" name="p" value="aboutConfig" />'. 
     162          '<input type="hidden" name="p" value="userPref" />'. 
    163163          $core->formNonce().'</p></form>'; 
    164164} 
     
    210210          '<label for="gp_nav" class="classic">'.__('Goto:').'</label> '.form::combo('gp_nav',$ws_combo). 
    211211          ' <input type="submit" value="'.__('Ok').'" id="gp_submit" />'. 
    212           '<input type="hidden" name="p" value="aboutConfig" />'. 
     212          '<input type="hidden" name="p" value="userPref" />'. 
    213213          $core->formNonce().'</p></form>'; 
    214214} 
  • plugins/widgets/index.php

    r1993 r2166  
    190190     array( 
    191191          html::escapeHTML($core->blog->name) => '', 
    192           '<span class="page-title">'.__('Widgets').'</span>' => '' 
     192          __('Widgets') => '' 
    193193     )); 
    194194 
  • tests/functional/spec/page_tabs.js

    r2113 r2162  
    131131          expect($('#part-user-favorites')).not.toBeVisible(); 
    132132     }); 
     133 
     134     it("Must open first tab when clicking back until hash is empty", function() { 
     135          loadFixtures('tabs.html'); 
     136          loadStyleFixtures('default.css'); 
     137 
     138          var navigation = ['', 'user-profile', 'user-favorites']; 
     139          var current_index = 0; 
     140 
     141          $.pageTabs(); 
     142          current_index++; 
     143          $.pageTabs.clickTab(navigation[current_index]); 
     144          // tab is now user-profile 
     145 
     146          // simulate back : window.history.back(); 
     147          current_index--; 
     148          spyOn(jQuery.pageTabs, 'getLocationHash').andReturn(navigation[current_index]); 
     149          jQuery.event.trigger('hashchange'); 
     150 
     151          expect($('#part-user-options')).toBeVisible(); 
     152          expect($('#part-user-profile')).not.toBeVisible(); 
     153          expect($('#part-user-favorites')).not.toBeVisible(); 
     154     }); 
    133155}); 
    134156 
Note: See TracChangeset for help on using the changeset viewer.

Sites map