- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r2072 r2136 212 212 /* DISPLAY 213 213 -------------------------------------------------------- */ 214 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 215 if (!$show_filters) { 216 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 217 } 214 215 $form_filter_title = __('Filter users list and display options'); 216 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 217 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 218 $starting_script .= 219 '<script type="text/javascript">'."\n". 220 "//<![CDATA["."\n". 221 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 222 dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 223 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 224 "//]]>". 225 "</script>"; 218 226 219 227 dcPage::open(__('Entries'),$starting_script, … … 232 240 { 233 241 echo 234 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 235 236 if (!$show_filters) { 237 echo '<p><a id="filter-control" class="form-control" href="#">'. 238 __('Filter posts list').'</a></p>'; 239 } 240 241 echo 242 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 242 243 '<form action="posts.php" method="get" id="filters-form">'. 243 '<h3 class=" hidden">'.__('Filter posts list').'</h3>'.244 '<h3 class="out-of-screen-if-js">'.$form_filter_title.'</h3>'. 244 245 245 246 '<div class="table">'. … … 303 304 $core->formNonce(). 304 305 '</div>'. 305 '</form>' 306 '</form>', 307 $show_filters 306 308 ); 307 309 }
Note: See TracChangeset
for help on using the changeset viewer.