Changeset 500
- Timestamp:
- 04/05/2014 01:04:01 AM (9 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r483 r500 22 22 add_action( 'admin_print_styles', array( $this, 'admin_css' ) ); 23 23 add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); 24 add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) ); 24 25 25 26 add_action( 'save_post', array( $this, 'save_post_speaker' ), 10, 2 ); … … 190 191 wp_enqueue_style( 'campicons', plugins_url( 'fonts/campicons.css', __FILE__ ), array(), 1 ); 191 192 } 193 194 function wp_enqueue_scripts() { 195 wp_enqueue_style( 'wcb_shortcodes', plugins_url( 'css/shortcodes.css', __FILE__ ), array(), 1 ); 196 } 192 197 193 198 /** … … 543 548 // Determine the session title 544 549 if ( 'permalink' == $attr['session_link'] && 'session' == $session_type ) 545 $session_title = sprintf( '<a class="wcpt-session-title" href="%s">%s</a>', esc_url( get_permalink( $session->ID ) ), $session_title );550 $session_title_html = sprintf( '<a class="wcpt-session-title" href="%s">%s</a>', esc_url( get_permalink( $session->ID ) ), $session_title ); 546 551 elseif ( 'anchor' == $attr['session_link'] && 'session' == $session_type ) 547 $session_title = 'noop';552 $session_title_html = 'noop'; 548 553 else 549 $session_title = sprintf( '<span class="wcpt-session-title">%s</span>', $session_title );550 551 $content = $session_title ;554 $session_title_html = sprintf( '<span class="wcpt-session-title">%s</span>', $session_title ); 555 556 $content = $session_title_html; 552 557 553 558 $speakers_names = array(); … … 584 589 } 585 590 586 $columns_html .= sprintf( '<td colspan="%d" class="%s" >%s</td>', $colspan, esc_attr( implode( ' ', $classes ) ), $content );591 $columns_html .= sprintf( '<td colspan="%d" class="%s" data-track-title="%s">%s</td>', $colspan, esc_attr( implode( ' ', $classes ) ), $session_title, $content ); 587 592 } 588 593
Note: See TracChangeset
for help on using the changeset viewer.