Changeset 2128:42a5c4990b87 for admin/posts.php
- Timestamp:
- 09/22/13 02:31:51 (12 years ago)
- Branch:
- Ticket #1548
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r1912 r2128 235 235 /* DISPLAY 236 236 -------------------------------------------------------- */ 237 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 238 if (!$show_filters) { 239 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 240 } 241 242 dcPage::open(__('Entries'),$starting_script, 237 238 dcPage::open(__('Entries'), 239 dcPage::jsLoad('js/_posts_list.js'). 240 dcPage::jsLoad('js/filter-controls.js'). 241 '<script type="text/javascript">'."\n". 242 "//<![CDATA["."\n". 243 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 244 dcPage::jsVar('dotclear.msg.filter_posts_list',__('Filter posts list'))."\n". 245 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 246 "//]]>". 247 "</script>", 243 248 dcPage::breadcrumb( 244 249 array( … … 255 260 { 256 261 echo 257 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 258 259 if (!$show_filters) { 260 echo '<p><a id="filter-control" class="form-control" href="#">'. 261 __('Filter posts list').'</a></p>'; 262 } 263 264 echo 262 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 265 263 '<form action="posts.php" method="get" id="filters-form">'. 266 '<h3 class=" hidden">'.__('Filter posts list').'</h3>'.267 264 '<h3 class="out-of-screen-if-js">'.__('Filters and display options').'</h3>'. 265 268 266 '<div class="table">'. 269 267 '<div class="cell">'. … … 326 324 $core->formNonce(). 327 325 '</div>'. 328 '</form>' 326 '</form>', 327 $show_filters 329 328 ); 330 329 }
Note: See TracChangeset
for help on using the changeset viewer.