Changeset 1229
- Timestamp:
- 02/06/2015 01:32:36 AM (10 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r1026 r1229 198 198 function admin_enqueue_scripts() { 199 199 global $post_type; 200 wp_enqueue_style( 'campicons', plugins_url( 'fonts/campicons.css', __FILE__ ), array(), 1 );201 200 202 201 // Enqueues scripts and styles for session admin page … … 256 255 default: 257 256 } 258 259 // Post types menu icons260 $menu_icons = array(261 'wcb_speaker' => '\e602',262 'wcb_session' => '\e603',263 'wcb_sponsor' => '\e601',264 );265 266 ?>267 <style type="text/css">268 <?php foreach ( $menu_icons as $post_type => $icon_content ): ?>269 <?php270 $class = sanitize_html_class( $post_type );271 ?>272 #menu-posts-<?php echo $class; ?> .wp-menu-image:before {273 font-family: 'Campicons' !important;274 content: '<?php echo $icon_content; ?>' !important;275 }276 <?php endforeach; ?>277 278 #menu-posts-wcb_organizer .wp-menu-image:before {279 font-family: 'Dashicons';280 content: "\f338";281 }282 </style>283 <?php284 257 } 285 258 … … 637 610 $session_title = apply_filters( 'the_title', $session->post_title ); 638 611 $session_tracks = get_the_terms( $session->ID, 'wcb_track' ); 639 $session_track_titles = implode( ', ', wp_list_pluck( $session_tracks, 'name' ) ); 612 $session_track_titles = implode( ', ', wp_list_pluck( $session_tracks, 'name' ) ); // todo implode(): Invalid arguments passed in wc-post-types.php on line 612 640 613 $session_type = get_post_meta( $session->ID, '_wcpt_session_type', true ); 641 614 … … 1623 1596 'hierarchical' => false, 1624 1597 'query_var' => true, 1625 'menu_icon' => ' ', // see $this->menu_icons_css()1598 'menu_icon' => 'dashicons-megaphone', 1626 1599 ) ); 1627 1600 … … 1655 1628 'hierarchical' => false, 1656 1629 'query_var' => true, 1657 'menu_icon' => ' ', // see $this->menu_icons_css()1630 'menu_icon' => 'dashicons-schedule', 1658 1631 ) ); 1659 1632 … … 1687 1660 'hierarchical' => false, 1688 1661 'query_var' => true, 1689 'menu_icon' => ' ', // see $this->menu_icon_css()1662 'menu_icon' => 'dashicons-heart', 1690 1663 ) ); 1691 1664 … … 1719 1692 'hierarchical' => false, 1720 1693 'query_var' => true, 1721 'menu_icon' => ' ', // see $this->menu_icon_css()1694 'menu_icon' => 'dashicons-groups', 1722 1695 ) ); 1723 1696 }
Note: See TracChangeset
for help on using the changeset viewer.