|
155 | 155 | } |
156 | 156 | ?></h2> |
157 | 157 |
|
158 | | -<form id="posts-filter" action="" method="get"> |
159 | 158 | <ul class="subsubsub"> |
160 | 159 | <?php |
161 | 160 | if ( empty($locked_post_status) ) : |
|
183 | 182 | ?> |
184 | 183 | </ul> |
185 | 184 |
|
186 | | -<?php if ( isset($_GET['post_status'] ) ) : ?> |
187 | | -<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" /> |
188 | | -<?php endif; ?> |
189 | | -<input type="hidden" name="mode" value="<?php echo $mode; ?>" /> |
190 | | - |
191 | | -<ul class="view-switch"> |
192 | | - <li <?php if ( 'list' == $mode ) echo "class='current'" ?>><a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><?php _e('List View') ?></a></li> |
193 | | - <li <?php if ( 'excerpt' == $mode ) echo "class='current'" ?>><a href="<?php echo clean_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><?php _e('Excerpt View') ?></a></li> |
194 | | -</ul> |
195 | | - |
196 | | -<div class="tablenav"> |
197 | | - |
198 | | -<?php |
199 | | -$page_links = paginate_links( array( |
200 | | - 'base' => add_query_arg( 'paged', '%#%' ), |
201 | | - 'format' => '', |
202 | | - 'total' => $wp_query->max_num_pages, |
203 | | - 'current' => $_GET['paged'] |
204 | | -)); |
205 | | - |
206 | | -if ( $page_links ) |
207 | | - echo "<div class='tablenav-pages'>$page_links</div>"; |
208 | | -?> |
209 | | - |
210 | | -<div class="alignleft"> |
211 | | -<select name="action"> |
212 | | -<option value="-1" selected="selected"><?php _e('Actions'); ?></option> |
213 | | -<option value="edit"><?php _e('Edit'); ?></option> |
214 | | -<option value="delete"><?php _e('Delete'); ?></option> |
215 | | -</select> |
216 | | -<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> |
217 | | -<?php wp_nonce_field('bulk-posts'); ?> |
| 185 | +<div class="filter"> |
| 186 | +<form id="list-filter" action="" method="get"> |
218 | 187 | <?php |
219 | 188 | if ( !is_singular() ) { |
220 | 189 | $arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date DESC"; |
|
256 | 225 | <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> |
257 | 226 |
|
258 | 227 | <?php } ?> |
| 228 | +</form> |
| 229 | +</div> |
| 230 | + |
| 231 | +<div class="view-switch"> |
| 232 | + <a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> src="images/list.gif" title="<?php _e('List View') ?>" alt="<?php _e('List View') ?>" /></a> |
| 233 | + <a href="<?php echo clean_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> src="images/exc.gif" title="<?php _e('Excerpt View') ?>" alt="<?php _e('Excerpt View') ?>" /></a> |
| 234 | +</div> |
| 235 | + |
| 236 | +<form id="posts-filter" action="" method="get"> |
| 237 | + |
| 238 | +<?php if ( isset($_GET['post_status'] ) ) : ?> |
| 239 | +<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" /> |
| 240 | +<?php endif; ?> |
| 241 | +<input type="hidden" name="mode" value="<?php echo $mode; ?>" /> |
| 242 | + |
| 243 | +<div class="tablenav"> |
| 244 | +<?php |
| 245 | +$page_links = paginate_links( array( |
| 246 | + 'base' => add_query_arg( 'paged', '%#%' ), |
| 247 | + 'format' => '', |
| 248 | + 'total' => $wp_query->max_num_pages, |
| 249 | + 'current' => $_GET['paged'] |
| 250 | +)); |
| 251 | + |
| 252 | +if ( $page_links ) |
| 253 | + echo "<div class='tablenav-pages'>$page_links</div>"; |
| 254 | +?> |
| 255 | + |
| 256 | +<div class="alignleft"> |
| 257 | +<select name="action"> |
| 258 | +<option value="-1" selected="selected"><?php _e('Actions'); ?></option> |
| 259 | +<option value="edit"><?php _e('Edit'); ?></option> |
| 260 | +<option value="delete"><?php _e('Delete'); ?></option> |
| 261 | +</select> |
| 262 | +<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> |
| 263 | +<?php wp_nonce_field('bulk-posts'); ?> |
259 | 264 | </div> |
260 | 265 |
|
261 | 266 | <br class="clear" /> |
|
0 commit comments