Changeset 1230 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php
- Timestamp:
- 02/06/2015 01:45:58 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php
r1108 r1230 98 98 */ 99 99 function metabox_save ( $post_id ) { 100 100 101 101 // Don't add/remove meta on revisions and auto-saves 102 102 if ( wp_is_post_autosave( $post_id ) || wp_is_post_revision( $post_id ) ) 103 103 return; 104 104 105 105 // WordCamp post type only 106 106 if ( WCPT_POST_TYPE_ID == get_post_type() ) { … … 127 127 update_post_meta( $post_id, $key, $values[$key] ); 128 128 break; 129 129 130 130 default: 131 131 do_action( 'wcpt_metabox_save', $key, $value, $post_id ); … … 231 231 return apply_filters( 'wcpt_admin_meta_keys', $retval, $meta_group ); 232 232 } 233 233 234 234 /** 235 235 * Fired during admin_print_styles … … 240 240 wp_enqueue_script( 'jquery-ui-datepicker' ); 241 241 } 242 242 243 243 function admin_print_scripts() { 244 244 if ( get_post_type() == WCPT_POST_TYPE_ID ) : … … 256 256 endif; 257 257 } 258 258 259 259 function admin_styles() { 260 260 if ( get_post_type() == WCPT_POST_TYPE_ID ) { … … 270 270 */ 271 271 function admin_head () { 272 // Icons for top level admin menus 273 $menu_icon_url = WCPT_IMAGES_URL . '/icon-wordcamp.png'; 274 275 // Top level menu classes 276 $class = sanitize_html_class( WCPT_POST_TYPE_ID ); ?> 277 278 #menu-posts-<?php echo $class; ?> .wp-menu-image { 279 background: url(<?php echo $menu_icon_url; ?>) no-repeat 0 -32px; 280 } 281 #menu-posts-<?php echo $class; ?>:hover .wp-menu-image, 282 #menu-posts-<?php echo $class; ?>.wp-has-current-submenu .wp-menu-image { 283 background: url(<?php echo $menu_icon_url; ?>) no-repeat 0 0; 284 } 285 286 <?php if ( !empty( $_GET['post_type'] ) && $_GET['post_type'] == WCPT_POST_TYPE_ID ) : ?> 287 288 #icon-edit, #icon-post { 289 background: url(<?php echo WCPT_IMAGES_URL . '/icon32.png'; ?>) no-repeat 4px 0; 290 } 272 if ( !empty( $_GET['post_type'] ) && $_GET['post_type'] == WCPT_POST_TYPE_ID ) : ?> 291 273 292 274 .column-title { width: 40%; }
Note: See TracChangeset
for help on using the changeset viewer.