Dotclear


Ignore:
Timestamp:
09/27/13 20:16:29 (12 years ago)
Author:
Lepeltier kévin <kevin@…>
Branch:
Ticket #1548
Message:

Ticket #1548

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blogs.php

    r2107 r2135  
    6969/* DISPLAY 
    7070-------------------------------------------------------- */ 
    71 $starting_script = ''; 
    72 if (!$show_filters) { 
    73      $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 
    74 } 
     71$starting_script  = dcPage::jsLoad('js/filter-controls.js'); 
     72$starting_script .= 
     73     '<script type="text/javascript">'."\n". 
     74     "//<![CDATA["."\n". 
     75     dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 
     76     dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 
     77     dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 
     78     "//]]>". 
     79     "</script>"; 
     80 
     81$form_filter_title = __('Filter blogs list and display options'); 
     82 
    7583dcPage::open(__('List of blogs'),$starting_script, 
    7684     dcPage::breadcrumb( 
     
    8997     if ($core->auth->isSuperAdmin()) { 
    9098          echo '<p class="top-add"><a class="button add" href="blog.php">'.__('Create a new blog').'</a></p>'; 
    91      } 
    92       
    93      if (!$show_filters) { 
    94           echo '<p><a id="filter-control" class="form-control" href="#">'.__('Filter blogs list').'</a></p>'; 
    9599     } 
    96100      
     
    124128     if ($nb_blog == 0) 
    125129     { 
    126           echo '<p><strong>'.__('No blog').'</strong></p>'; 
     130          if( $show_filters ) { 
     131               echo '<p><strong>'.__('No blog matches the filter').'</strong></p>'; 
     132          } else { 
     133               echo '<p><strong>'.__('No blog').'</strong></p>'; 
     134          } 
    127135     } 
    128136     else 
     
    134142          echo 
    135143          '<div class="table-outer">'. 
    136           '<table class="clear"><caption class="hidden">'.__('Blogs list').'</caption><tr>'. 
     144          '<table class="clear">'; 
     145           
     146          if( $show_filters ) { 
     147               echo '<caption>'.sprintf(__('List of %s blogs match the filter.'), $nb_blog).'</caption>'; 
     148          } else { 
     149               echo '<caption class="hidden">'.__('Blogs list').'</caption>'; 
     150          } 
     151                     
     152          echo  
     153          '<tr>'. 
    137154          '<th scope="col" class="nowrap">'.__('Blog id').'</th>'. 
    138155          '<th scope="col">'.__('Blog name').'</th>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map