- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r2136 r2072 212 212 /* DISPLAY 213 213 -------------------------------------------------------- */ 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>"; 214 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 215 if (!$show_filters) { 216 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 217 } 226 218 227 219 dcPage::open(__('Entries'),$starting_script, … … 240 232 { 241 233 echo 242 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 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 243 242 '<form action="posts.php" method="get" id="filters-form">'. 244 '<h3 class=" out-of-screen-if-js">'.$form_filter_title.'</h3>'.243 '<h3 class="hidden">'.__('Filter posts list').'</h3>'. 245 244 246 245 '<div class="table">'. … … 304 303 $core->formNonce(). 305 304 '</div>'. 306 '</form>', 307 $show_filters 305 '</form>' 308 306 ); 309 307 }
Note: See TracChangeset
for help on using the changeset viewer.