Clean up sponsor page and comment out for development

This commit is contained in:
Brian Miyaji
2014-03-08 15:52:55 +11:00
parent 7b3a79f079
commit 9e4619a641
3 changed files with 19 additions and 20 deletions

View File

@@ -5,9 +5,6 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
if ( is_admin() ):
if ( in_array( $typenow, array( 'sp_team', 'sp_sponsor' ) ) ):
switch ( $untranslated_text ):
case 'Enter title here':
$translated_text = __( 'Team', 'sportspress' );
break;
case 'Set featured image':
$translated_text = __( 'Select Logo', 'sportspress' );
break;
@@ -38,6 +35,22 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
endswitch;
endif;
if ( in_array( $typenow, array( 'sp_team' ) ) ):
switch ( $untranslated_text ):
case 'Enter title here':
$translated_text = __( 'Team', 'sportspress' );
break;
endswitch;
endif;
if ( in_array( $typenow, array( 'sp_sponsor' ) ) ):
switch ( $untranslated_text ):
case 'Enter title here':
$translated_text = __( 'Sponsor', 'sportspress' );
break;
endswitch;
endif;
if ( in_array( $typenow, array( 'sp_player', 'sp_staff' ) ) ):
switch ( $untranslated_text ):
case 'Featured Image':

View File

@@ -28,16 +28,6 @@ function sportspress_sponsor_post_init() {
add_action( 'init', 'sportspress_sponsor_post_init' );
function sportspress_sponsor_meta_init() {
add_meta_box( 'sp_teamdiv', __( 'Teams', 'sportspress' ), 'sportspress_sponsor_team_meta', 'sp_sponsor', 'side', 'default' );
}
function sportspress_sponsor_team_meta( $post ) {
sportspress_post_checklist( $post->ID, 'sp_team' );
sportspress_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
sportspress_nonce();
}
function sportspress_sponsor_profile_meta( $post ) {
wp_editor( $post->post_content, 'content' );
}
function sportspress_sponsor_edit_columns() {
@@ -45,10 +35,6 @@ function sportspress_sponsor_edit_columns() {
'cb' => '<input type="checkbox" />',
'sp_icon' => '&nbsp;',
'title' => __( 'Name', 'sportspress' ),
'sp_position' => __( 'Positions', 'sportspress' ),
'sp_team' => __( 'Teams', 'sportspress' ),
'sp_league' => __( 'Leagues', 'sportspress' ),
'sp_season' => __( 'Seasons', 'sportspress' ),
'sp_views' => __( 'Views', 'sportspress' ),
);
return $columns;

View File

@@ -6,7 +6,7 @@
Plugin Name: SportsPress
Plugin URI: http://themeboy.com/sportspress
Description: Manage your club and its players, staff, events, league tables, and player lists.
Version: 0.4.1
Version: 0.4.2
Author: ThemeBoy
Author URI: http://themeboy.com/
License: GPLv3
@@ -18,7 +18,7 @@ if ( !function_exists( 'add_action' ) ):
exit;
endif;
define( 'SPORTSPRESS_VERSION', '0.4.1' );
define( 'SPORTSPRESS_VERSION', '0.4.2' );
define( 'SPORTSPRESS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'SPORTSPRESS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
define( 'SPORTSPRESS_PLUGIN_FILE', __FILE__ );
@@ -70,7 +70,7 @@ require_once dirname( __FILE__ ) . '/admin/post-types/table.php';
require_once dirname( __FILE__ ) . '/admin/post-types/player.php';
require_once dirname( __FILE__ ) . '/admin/post-types/list.php';
require_once dirname( __FILE__ ) . '/admin/post-types/staff.php';
require_once dirname( __FILE__ ) . '/admin/post-types/sponsor.php';
//require_once dirname( __FILE__ ) . '/admin/post-types/sponsor.php';
// Terms
require_once dirname( __FILE__ ) . '/admin/terms/league.php';