Adjust the dashes appropriately
This commit is contained in:
@@ -20,7 +20,8 @@ function sp_manage_posts_custom_column( $column, $post_id ) {
|
|||||||
echo get_the_terms ( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—';
|
echo get_the_terms ( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—';
|
||||||
break;
|
break;
|
||||||
case 'sp_team':
|
case 'sp_team':
|
||||||
echo get_post_meta ( $post_id, 'sp_team' ) ? sp_the_posts( $post_id, 'sp_team', '', '<br />', get_post_meta( $post_id, 'sp_score', false ) ) : '—';
|
$score = get_post_meta( $post_id, 'sp_score', false );
|
||||||
|
echo get_post_meta ( $post_id, 'sp_team' ) ? sp_the_posts( $post_id, 'sp_team', '', '<br />', $score, ( empty( $score ) ? ' — ' : ' ' ) ) : '—';
|
||||||
break;
|
break;
|
||||||
case 'sp_event':
|
case 'sp_event':
|
||||||
echo get_post_meta ( $post_id, 'sp_event' ) ? sizeof( get_post_meta ( $post_id, 'sp_event' ) ) : '—';
|
echo get_post_meta ( $post_id, 'sp_event' ) ? sizeof( get_post_meta ( $post_id, 'sp_event' ) ) : '—';
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ if ( ! function_exists( 'sp_dropdown_taxonomies' ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( ! function_exists( 'sp_the_posts' ) ) {
|
if ( ! function_exists( 'sp_the_posts' ) ) {
|
||||||
function sp_the_posts( $post_id = null, $meta = 'post', $before = '', $sep = ', ', $after = '', $delimiter = '— ' ) {
|
function sp_the_posts( $post_id = null, $meta = 'post', $before = '', $sep = ', ', $after = '', $delimiter = ' - ' ) {
|
||||||
if ( ! isset( $post_id ) )
|
if ( ! isset( $post_id ) )
|
||||||
global $post_id;
|
global $post_id;
|
||||||
$ids = get_post_meta( $post_id, $meta, false );
|
$ids = get_post_meta( $post_id, $meta, false );
|
||||||
@@ -78,7 +78,7 @@ if ( ! function_exists( 'sp_the_posts' ) ) {
|
|||||||
if ( !$id ) continue;
|
if ( !$id ) continue;
|
||||||
if ( !empty( $before ) ):
|
if ( !empty( $before ) ):
|
||||||
if ( is_array( $before ) && array_key_exists( $i, $before ) )
|
if ( is_array( $before ) && array_key_exists( $i, $before ) )
|
||||||
echo '<span class="sp_before">(' . $before[ $i ] . ')</span> ';
|
echo $before[ $i ] . ' - ';
|
||||||
else
|
else
|
||||||
echo $before;
|
echo $before;
|
||||||
endif;
|
endif;
|
||||||
@@ -92,7 +92,7 @@ if ( ! function_exists( 'sp_the_posts' ) ) {
|
|||||||
edit_post_link( get_the_title( $id ), '', '', $id );
|
edit_post_link( get_the_title( $id ), '', '', $id );
|
||||||
if ( !empty( $after ) ):
|
if ( !empty( $after ) ):
|
||||||
if ( is_array( $after ) && array_key_exists( $i, $after ) )
|
if ( is_array( $after ) && array_key_exists( $i, $after ) )
|
||||||
echo ' <span class="sp_after">(' . $after[ $i ] . ')</span>';
|
echo ' - ' . $after[ $i ];
|
||||||
else
|
else
|
||||||
echo $after;
|
echo $after;
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
@@ -103,12 +103,6 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.sp_team .sp_before,
|
|
||||||
td.sp_team .sp_after {
|
|
||||||
color: #999;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* admin skin */
|
/* admin skin */
|
||||||
/*
|
/*
|
||||||
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.current a.menu-top, .folded #adminmenu li.wp-has-current-submenu, .folded #adminmenu li.current.menu-top, #adminmenu li.wp-has-current-submenu .wp-menu-arrow, #adminmenu li.current .wp-menu-arrow, #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
|
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.current a.menu-top, .folded #adminmenu li.wp-has-current-submenu, .folded #adminmenu li.current.menu-top, #adminmenu li.wp-has-current-submenu .wp-menu-arrow, #adminmenu li.current .wp-menu-arrow, #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
|
||||||
|
|||||||
Reference in New Issue
Block a user