diff --git a/actions.php b/actions.php
index 6c029c05..43febbd3 100644
--- a/actions.php
+++ b/actions.php
@@ -19,7 +19,7 @@ function sp_manage_posts_custom_column( $column, $post_id ) {
echo get_the_terms ( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—';
break;
case 'sp_team':
- echo get_post_meta ( $post_id, 'sp_team' ) ? sp_the_posts( $post_id, 'sp_team', '', '
' ) : '—';
+ echo get_post_meta ( $post_id, 'sp_team' ) ? sp_the_posts( $post_id, 'sp_team', '', '
', get_post_meta( $post_id, 'sp_score', false ) ) : '—';
break;
case 'sp_event':
echo get_post_meta ( $post_id, 'sp_event' ) ? sizeof( get_post_meta ( $post_id, 'sp_event' ) ) : '—';
diff --git a/event.php b/event.php
index 55f969bb..b1ae0679 100644
--- a/event.php
+++ b/event.php
@@ -28,7 +28,7 @@ add_filter( 'the_posts', 'sp_event_display_scheduled' );
function sp_event_meta_init() {
remove_meta_box( 'submitdiv', 'sp_event', 'side' );
add_meta_box( 'submitdiv', __( 'Event', 'sportspress' ), 'post_submit_meta_box', 'sp_event', 'side', 'high' );
- add_meta_box( 'sp_teamdiv', __( 'Teams', 'sportspress' ), 'sp_event_team_meta', 'sp_event', 'side', 'high' );
+ add_meta_box( 'sp_teamdiv', __( 'Teams', 'sportspress' ), 'sp_event_team_meta', 'sp_event', 'normal', 'high' );
add_meta_box( 'sp_articlediv', __( 'Article', 'sportspress' ), 'sp_event_article_meta', 'sp_event', 'normal', 'high' );
}
diff --git a/helpers.php b/helpers.php
index 20c2ef48..119cba7a 100644
--- a/helpers.php
+++ b/helpers.php
@@ -68,7 +68,6 @@ if ( ! function_exists( 'sp_dropdown_taxonomies' ) ) {
if ( ! function_exists( 'sp_the_posts' ) ) {
function sp_the_posts( $post_id = null, $meta = 'post', $before = '', $sep = ', ', $after = '', $delimiter = '— ' ) {
- echo $before;
if ( ! isset( $post_id ) )
global $post_id;
$posts = get_post_meta( $post_id, $meta, false );
@@ -76,6 +75,12 @@ if ( ! function_exists( 'sp_the_posts' ) ) {
$count = count( $posts );
if ( isset( $posts ) && $posts && is_array( $posts ) ):
foreach ( $posts as $post ):
+ if ( !empty( $before ) ):
+ if ( is_array( $before ) && array_key_exists( $i, $before ) )
+ echo $before[ $i ] . ' ';
+ else
+ echo $before;
+ endif;
$parents = get_post_ancestors( $post );
$parents = array_combine( array_keys( $parents ), array_reverse( array_values( $parents ) ) );
foreach ( $parents as $parent ):
@@ -84,12 +89,16 @@ if ( ! function_exists( 'sp_the_posts' ) ) {
echo $delimiter;
endforeach;
edit_post_link( get_the_title( $post ), '', '', $post );
- if ( ++$i !== $count ) {
+ if ( !empty( $after ) ):
+ if ( is_array( $after ) && array_key_exists( $i, $after ) )
+ echo ' ' . $after[ $i ];
+ else
+ echo $after;
+ endif;
+ if ( ++$i !== $count )
echo $sep;
- }
endforeach;
endif;
- echo $after;
}
}
diff --git a/images/menu.png b/images/menu.png
index 9bbc4a14..7bc65121 100644
Binary files a/images/menu.png and b/images/menu.png differ