Add settings tabs and config page

This commit is contained in:
Brian Miyaji
2013-12-31 03:52:09 +11:00
parent ed352f8e2d
commit 6d40c687ea
5 changed files with 213 additions and 17 deletions

View File

@@ -55,11 +55,16 @@ function sp_manage_posts_custom_column( $column, $post_id ) {
echo get_post_meta ( $post_id, 'sp_team' ) ? sp_the_posts( $post_id, 'sp_team', '', '<br />', $result, ( empty( $result ) ? ' — ' : ' ' ) ) : '—';
break;
case 'sp_equation':
echo str_replace(
array( '$', '+', '-', '*', '/' ),
array( '', '&plus;', '&minus;', '&times;', '&divide' ),
get_post_meta ( $post_id, 'sp_equation', true )
);
$equation = get_post_meta ( $post_id, 'sp_equation', true );
if ( $equation ):
echo str_replace(
array( '$', '+', '-', '*', '/' ),
array( '', '&plus;', '&minus;', '&times;', '&divide' ),
$equation
);
else:
echo '—';
endif;
break;
case 'sp_order':
$priority = get_post_meta ( $post_id, 'sp_priority', true );