Clean up sponsor page and comment out for development
This commit is contained in:
@@ -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;
|
||||
@@ -37,6 +34,22 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
|
||||
break;
|
||||
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 ):
|
||||
|
||||
@@ -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' => ' ',
|
||||
'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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user