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