diff --git wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
index 503bbff..013e8b7 100644
|
|
class WordCamp_Post_Types_Plugin { |
919 | 919 | 'show_avatars' => false, |
920 | 920 | 'avatar_size' => 100, |
921 | 921 | 'track' => 'all', |
| 922 | 'link' => 'none', |
| 923 | 'content' => 'full', |
| 924 | 'excerpt_length' => 55, |
922 | 925 | 'speaker_link' => 'wporg', // anchor|wporg|permalink|none |
923 | 926 | 'posts_per_page' => -1, |
924 | 927 | 'orderby' => 'date', // date|title|rand|session_time |
… |
… |
class WordCamp_Post_Types_Plugin { |
1096 | 1099 | ?> |
1097 | 1100 | |
1098 | 1101 | <div id="wcorg-session-<?php the_ID(); ?>" class="wcorg-session" > |
1099 | | <h2><?php the_title(); ?></h2> |
| 1102 | |
| 1103 | <?php if ( 'post' === $attr['link'] ) : ?> |
| 1104 | <h2><a href="<?php echo esc_attr( esc_url( get_permalink() ) ); ?>"><?php the_title(); ?></a></h2> |
| 1105 | <?php else : ?> |
| 1106 | <h2><?php the_title(); ?></h2> |
| 1107 | <?php endif; ?> |
| 1108 | |
1100 | 1109 | <div class="wcorg-session-description"> |
1101 | 1110 | <?php the_post_thumbnail(); ?> |
1102 | 1111 | <?php echo $session_meta; ?> |
1103 | 1112 | <?php echo $speakers_avatars; ?> |
1104 | | <?php the_content(); ?> |
| 1113 | |
| 1114 | <?php if ( 'full' === $attr['content'] ) : ?> |
| 1115 | <?php the_content(); ?> |
| 1116 | <?php elseif ( 'excerpt' === $attr['content'] ) : ?> |
| 1117 | <?php echo wpautop( |
| 1118 | wp_trim_words( |
| 1119 | get_the_content(), |
| 1120 | absint( $attr['excerpt_length'] ), |
| 1121 | apply_filters( 'excerpt_more', ' ' . '…' ) |
| 1122 | ) |
| 1123 | ); ?> |
| 1124 | <?php endif; ?> |
1105 | 1125 | |
1106 | 1126 | <?php if ( $links ) : ?> |
1107 | 1127 | <ul class="wcorg-session-links"> |