Changeset 2135:35a0194cdafa for admin/blogs.php
- Timestamp:
- 09/27/13 20:16:29 (12 years ago)
- Branch:
- Ticket #1548
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blogs.php
r2107 r2135 69 69 /* DISPLAY 70 70 -------------------------------------------------------- */ 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 75 83 dcPage::open(__('List of blogs'),$starting_script, 76 84 dcPage::breadcrumb( … … 89 97 if ($core->auth->isSuperAdmin()) { 90 98 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>';95 99 } 96 100 … … 124 128 if ($nb_blog == 0) 125 129 { 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 } 127 135 } 128 136 else … … 134 142 echo 135 143 '<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>'. 137 154 '<th scope="col" class="nowrap">'.__('Blog id').'</th>'. 138 155 '<th scope="col">'.__('Blog name').'</th>'.
Note: See TracChangeset
for help on using the changeset viewer.