Changeset 9018
- Timestamp:
- 09/28/08 12:29:19 (2 months ago)
- Files:
-
- trunk/wp-admin/css/colors-classic.css (modified) (2 diffs)
- trunk/wp-admin/css/colors-fresh.css (modified) (2 diffs)
- trunk/wp-admin/css/global.css (modified) (1 diff)
- trunk/wp-admin/css/ie-rtl.css (modified) (1 diff)
- trunk/wp-admin/edit-comments.php (modified) (3 diffs)
- trunk/wp-admin/edit-pages.php (modified) (2 diffs)
- trunk/wp-admin/edit.php (modified) (4 diffs)
- trunk/wp-admin/images/exc.gif (added)
- trunk/wp-admin/images/list.gif (added)
- trunk/wp-admin/link-manager.php (modified) (2 diffs)
- trunk/wp-admin/rtl.css (modified) (1 diff)
- trunk/wp-admin/wp-admin.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/css/colors-classic.css
r9016 r9018 62 62 63 63 li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, 64 ul.view-switch li.current,.form-table tr, #poststuff h3, #replyhandle,64 .form-table tr, #poststuff h3, #replyhandle, 65 65 .login form, h3.info-box-title, #post-status-info, #edit-settings-wrap, 66 66 #wpbody-content .describe tr { … … 249 249 } 250 250 251 .submitbox #autosave .error, ul.view-switch li.current a,251 .submitbox #autosave .error, 252 252 #side-info-column #category-tabs .ui-tabs-selected a { 253 253 color: #333; trunk/wp-admin/css/colors-fresh.css
r9016 r9018 62 62 63 63 li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, 64 ul.view-switch li.current,.form-table tr, #poststuff h3, #replyhandle,64 .form-table tr, #poststuff h3, #replyhandle, 65 65 .login form, h3.info-box-title, #post-status-info, #edit-settings-wrap, 66 66 #wpbody-content .describe tr { … … 248 248 } 249 249 250 ul.view-switch li.current a,251 250 #side-info-column #category-tabs .ui-tabs-selected a { 252 251 color: #333; trunk/wp-admin/css/global.css
r8973 r9018 132 132 .subsubsub { 133 133 list-style: none; 134 margin: 14px 0 8px 0;134 margin: 0 0 8px; 135 135 padding: 0; 136 136 white-space: nowrap; 137 137 font-size: 12px; 138 float: left; 138 139 } 139 140 trunk/wp-admin/css/ie-rtl.css
r8827 r9018 52 52 } 53 53 /* fix manage comment page */ 54 ul.view-switch li{54 .view-switch { 55 55 float:left; 56 56 } trunk/wp-admin/edit-comments.php
r9016 r9018 112 112 <div class="wrap"> 113 113 114 <form id="posts-filter" action="" method="get">115 114 <h2><?php _e('Manage Comments'); ?></h2> 116 115 … … 142 141 </ul> 143 142 144 <input type="hidden" name="mode" value="<?php echo $mode; ?>" />145 <input type="hidden" name="comment_status" value="<?php echo $comment_status; ?>" />146 </form>147 148 <!-- crazyhorse149 <ul class="view-switch">150 <li <?php if ( 'detail' == $mode ) echo "class='current'" ?>><a href="<?php echo clean_url(add_query_arg('mode', 'detail', $_SERVER['REQUEST_URI'])) ?>"><?php _e('Detail View') ?></a></li>151 <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>152 </ul>153 -->154 155 143 <?php 156 144 … … 179 167 180 168 <form id="comments-form" action="" method="post"> 169 <input type="hidden" name="mode" value="<?php echo $mode; ?>" /> 170 <input type="hidden" name="comment_status" value="<?php echo $comment_status; ?>" /> 181 171 182 172 <div class="tablenav"> trunk/wp-admin/edit-pages.php
r9016 r9018 133 133 ?></h2> 134 134 135 <form id="posts-filter" action="" method="get">136 135 <ul class="subsubsub"> 137 136 <?php … … 190 189 echo "<div class='tablenav-pages'>$page_links</div>"; 191 190 ?> 191 192 <form id="posts-filter" action="" method="get"> 192 193 193 194 <div class="alignleft"> trunk/wp-admin/edit.php
r9016 r9018 156 156 ?></h2> 157 157 158 <form id="posts-filter" action="" method="get">159 158 <ul class="subsubsub"> 160 159 <?php … … 184 183 </ul> 185 184 185 <div class="filter"> 186 <form id="list-filter" action="" method="get"> 187 <?php 188 if ( !is_singular() ) { 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"; 190 191 $arc_result = $wpdb->get_results( $arc_query ); 192 193 $month_count = count($arc_result); 194 195 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { 196 $m = isset($_GET['m']) ? (int)$_GET['m'] : 0; 197 ?> 198 <select name='m'> 199 <option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option> 200 <?php 201 foreach ($arc_result as $arc_row) { 202 if ( $arc_row->yyear == 0 ) 203 continue; 204 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); 205 206 if ( $arc_row->yyear . $arc_row->mmonth == $m ) 207 $default = ' selected="selected"'; 208 else 209 $default = ''; 210 211 echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>"; 212 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear"; 213 echo "</option>\n"; 214 } 215 ?> 216 </select> 217 <?php } ?> 218 219 <?php 220 $dropdown_options = array('show_option_all' => __('View all categories'), 'hide_empty' => 0, 'hierarchical' => 1, 221 'show_count' => 0, 'orderby' => 'name', 'selected' => $cat); 222 wp_dropdown_categories($dropdown_options); 223 do_action('restrict_manage_posts'); 224 ?> 225 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> 226 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 186 238 <?php if ( isset($_GET['post_status'] ) ) : ?> 187 239 <input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" /> … … 189 241 <input type="hidden" name="mode" value="<?php echo $mode; ?>" /> 190 242 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 243 <div class="tablenav"> 197 198 244 <?php 199 245 $page_links = paginate_links( array( … … 216 262 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 217 263 <?php wp_nonce_field('bulk-posts'); ?> 218 <?php219 if ( !is_singular() ) {220 $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";221 222 $arc_result = $wpdb->get_results( $arc_query );223 224 $month_count = count($arc_result);225 226 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) {227 $m = isset($_GET['m']) ? (int)$_GET['m'] : 0;228 ?>229 <select name='m'>230 <option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>231 <?php232 foreach ($arc_result as $arc_row) {233 if ( $arc_row->yyear == 0 )234 continue;235 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );236 237 if ( $arc_row->yyear . $arc_row->mmonth == $m )238 $default = ' selected="selected"';239 else240 $default = '';241 242 echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>";243 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear";244 echo "</option>\n";245 }246 ?>247 </select>248 <?php } ?>249 250 <?php251 $dropdown_options = array('show_option_all' => __('View all categories'), 'hide_empty' => 0, 'hierarchical' => 1,252 'show_count' => 0, 'orderby' => 'name', 'selected' => $cat);253 wp_dropdown_categories($dropdown_options);254 do_action('restrict_manage_posts');255 ?>256 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />257 258 <?php } ?>259 264 </div> 260 265 trunk/wp-admin/link-manager.php
r9016 r9018 101 101 <h2><?php printf( __('Links (<a href="%s">Add New</a>)' ), 'link-add.php' ); ?></h2> 102 102 103 <form id="list-filter" action="" method="get"> 104 <?php 105 $categories = get_terms('link_category', "hide_empty=1"); 106 $select_cat = "<select name=\"cat_id\">\n"; 107 $select_cat .= '<option value="all"' . (($cat_id == 'all') ? " selected='selected'" : '') . '>' . __('View all Categories') . "</option>\n"; 108 foreach ((array) $categories as $cat) 109 $select_cat .= '<option value="' . $cat->term_id . '"' . (($cat->term_id == $cat_id) ? " selected='selected'" : '') . '>' . sanitize_term_field('name', $cat->name, $cat->term_id, 'link_category', 'display') . "</option>\n"; 110 $select_cat .= "</select>\n"; 111 112 $select_order = "<select name=\"order_by\">\n"; 113 $select_order .= '<option value="order_id"' . (($order_by == 'order_id') ? " selected='selected'" : '') . '>' . __('Order by Link ID') . "</option>\n"; 114 $select_order .= '<option value="order_name"' . (($order_by == 'order_name') ? " selected='selected'" : '') . '>' . __('Order by Name') . "</option>\n"; 115 $select_order .= '<option value="order_url"' . (($order_by == 'order_url') ? " selected='selected'" : '') . '>' . __('Order by Address') . "</option>\n"; 116 $select_order .= '<option value="order_rating"' . (($order_by == 'order_rating') ? " selected='selected'" : '') . '>' . __('Order by Rating') . "</option>\n"; 117 $select_order .= "</select>\n"; 118 119 echo $select_cat; 120 echo $select_order; 121 122 ?> 123 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> 124 </form> 125 103 126 <form id="posts-filter" action="" method="get"> 104 127 <div class="tablenav"> … … 110 133 </select> 111 134 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 112 <?php113 $categories = get_terms('link_category', "hide_empty=1");114 $select_cat = "<select name=\"cat_id\">\n";115 $select_cat .= '<option value="all"' . (($cat_id == 'all') ? " selected='selected'" : '') . '>' . __('View all Categories') . "</option>\n";116 foreach ((array) $categories as $cat)117 $select_cat .= '<option value="' . $cat->term_id . '"' . (($cat->term_id == $cat_id) ? " selected='selected'" : '') . '>' . sanitize_term_field('name', $cat->name, $cat->term_id, 'link_category', 'display') . "</option>\n";118 $select_cat .= "</select>\n";119 120 $select_order = "<select name=\"order_by\">\n";121 $select_order .= '<option value="order_id"' . (($order_by == 'order_id') ? " selected='selected'" : '') . '>' . __('Order by Link ID') . "</option>\n";122 $select_order .= '<option value="order_name"' . (($order_by == 'order_name') ? " selected='selected'" : '') . '>' . __('Order by Name') . "</option>\n";123 $select_order .= '<option value="order_url"' . (($order_by == 'order_url') ? " selected='selected'" : '') . '>' . __('Order by Address') . "</option>\n";124 $select_order .= '<option value="order_rating"' . (($order_by == 'order_rating') ? " selected='selected'" : '') . '>' . __('Order by Rating') . "</option>\n";125 $select_order .= "</select>\n";126 127 echo $select_cat;128 echo $select_order;129 130 ?>131 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />132 133 135 </div> 134 136 trunk/wp-admin/rtl.css
r8909 r9018 311 311 padding: 0 1px .2em 0; 312 312 } 313 ul.view-switch { 314 float: left; 315 margin: -23px 0 -2px 5px; 316 } 317 ul.view-switch li { 318 float: right; 319 } 313 .view-switch { 314 float: left; 315 } 316 320 317 #the-comment-list td.comment p.comment-author { 321 318 margin-right: 0 ; trunk/wp-admin/wp-admin.css
r9017 r9018 224 224 .submit input, .button, .button-secondary, .button-highlighted { 225 225 font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; 226 padding: 3px 5px;226 padding: 2px 4px; 227 227 font-size: 12px; 228 228 line-height: 1.5em; … … 1541 1541 } 1542 1542 1543 form#posts-filter {1544 position: relative;1545 }1546 1547 1543 p#big-add-button { 1548 1544 position: absolute; … … 1617 1613 1618 1614 body.minwidth { 1619 min-width: 808px;1620 } 1621 1622 ul.view-switch {1615 min-width: 785px; 1616 } 1617 1618 .view-switch { 1623 1619 float: right; 1624 list-style: none; 1625 margin: -23px 5px -2px 0; 1620 margin: 3px 5px; 1626 1621 position: relative; 1627 1622 } 1628 1623 1629 ul.view-switch li { 1624 .view-switch img { 1625 margin: 0; 1626 border: 1px solid #fff; 1627 } 1628 1629 .view-switch img.current { 1630 border: 1px solid #999; 1631 } 1632 1633 .filter { 1630 1634 float: left; 1631 margin: 0; 1632 font-size: 11px; 1633 padding: 4px 6px; 1634 font-weight: bold; 1635 } 1636 1637 ul.view-switch a { 1638 text-decoration: none; 1639 } 1640 1641 ul.view-switch li.current { 1642 border: none; 1643 -moz-border-radius: 3px 3px 0 0; 1644 -webkit-border-top-left-radius: 3px; 1645 -webkit-border-top-right-radius: 3px; 1646 -khtml-border-top-left-radius: 3px; 1647 -khtml-border-top-right-radius: 3px; 1648 border-top-left-radius: 3px; 1649 border-top-right-radius: 3px; 1635 margin: 0 30px; 1650 1636 } 1651 1637
