Update translations
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
function sportspress_admin_post_thumbnail_html( $translated_text, $post_id ) {
|
||||
$texts = array(
|
||||
'sp_team' => array(
|
||||
'Set featured image' => __( 'Select Logo', 'sportspress' ),
|
||||
'Remove featured image' => __( 'Remove Logo', 'sportspress' ),
|
||||
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
|
||||
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
|
||||
),
|
||||
'sp_player' => array(
|
||||
'Set featured image' => __( 'Select Photo', 'sportspress' ),
|
||||
'Remove featured image' => __( 'Remove Photo', 'sportspress' ),
|
||||
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
||||
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
||||
),
|
||||
'sp_staff' => array(
|
||||
'Set featured image' => __( 'Select Photo', 'sportspress' ),
|
||||
'Remove featured image' => __( 'Remove Photo', 'sportspress' ),
|
||||
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
||||
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
@@ -32,15 +32,6 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
|
||||
case 'Remove featured image':
|
||||
$translated_text = __( 'Remove Photo', 'sportspress' );
|
||||
break;
|
||||
case 'Scheduled for: <b>%1$s</b>':
|
||||
$translated_text = __( 'Date/Time: <b>%1$s</b>', 'sportspress' );
|
||||
break;
|
||||
case 'Published on: <b>%1$s</b>':
|
||||
$translated_text = __( 'Date/Time: <b>%1$s</b>', 'sportspress' );
|
||||
break;
|
||||
case 'Publish <b>immediately</b>':
|
||||
$translated_text = __( 'Date/Time: <b>%1$s</b>', 'sportspress' );
|
||||
break;
|
||||
endswitch;
|
||||
endif;
|
||||
else:
|
||||
|
||||
@@ -9,67 +9,3 @@ function sportspress_media_buttons() {
|
||||
<?php
|
||||
}
|
||||
add_action( 'media_buttons', 'sportspress_media_buttons', 20 );
|
||||
|
||||
/*
|
||||
//Action target that displays the popup to insert a form to a post/page
|
||||
public static function add_mce_popup(){
|
||||
?>
|
||||
<script>
|
||||
function InsertForm(){
|
||||
var form_id = jQuery("#add_form_id").val();
|
||||
if(form_id == ""){
|
||||
alert("<?php _e("Please select a form", "gravityforms") ?>");
|
||||
return;
|
||||
}
|
||||
|
||||
var form_name = jQuery("#add_form_id option[value='" + form_id + "']").text().replace(/[\[\]]/g, '');
|
||||
var display_title = jQuery("#display_title").is(":checked");
|
||||
var display_description = jQuery("#display_description").is(":checked");
|
||||
var ajax = jQuery("#gform_ajax").is(":checked");
|
||||
var title_qs = !display_title ? " title=\"false\"" : "";
|
||||
var description_qs = !display_description ? " description=\"false\"" : "";
|
||||
var ajax_qs = ajax ? " ajax=\"true\"" : "";
|
||||
|
||||
window.send_to_editor("[gravityform id=\"" + form_id + "\" name=\"" + form_name + "\"" + title_qs + description_qs + ajax_qs + "]");
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="select_gravity_form" style="display:none;">
|
||||
<div class="wrap <?php echo GFCommon::get_browser_class() ?>">
|
||||
<div>
|
||||
<div style="padding:15px 15px 0 15px;">
|
||||
<h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;"><?php _e("Insert A Form", "gravityforms"); ?></h3>
|
||||
<span>
|
||||
<?php _e("Select a form below to add it to your post or page.", "gravityforms"); ?>
|
||||
</span>
|
||||
</div>
|
||||
<div style="padding:15px 15px 0 15px;">
|
||||
<select id="add_form_id">
|
||||
<option value=""> <?php _e("Select a Form", "gravityforms"); ?> </option>
|
||||
<?php
|
||||
$forms = RGFormsModel::get_forms(1, "title");
|
||||
foreach($forms as $form){
|
||||
?>
|
||||
<option value="<?php echo absint($form->id) ?>"><?php echo esc_html($form->title) ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select> <br/>
|
||||
<div style="padding:8px 0 0 0; font-size:11px; font-style:italic; color:#5A5A5A"><?php _e("Can't find your form? Make sure it is active.", "gravityforms"); ?></div>
|
||||
</div>
|
||||
<div style="padding:15px 15px 0 15px;">
|
||||
<input type="checkbox" id="display_title" checked='checked' /> <label for="display_title"><?php _e("Display form title", "gravityforms"); ?></label>
|
||||
<input type="checkbox" id="display_description" checked='checked' /> <label for="display_description"><?php _e("Display form description", "gravityforms"); ?></label>
|
||||
<input type="checkbox" id="gform_ajax" /> <label for="gform_ajax"><?php _e("Enable AJAX", "gravityforms"); ?></label>
|
||||
</div>
|
||||
<div style="padding:15px;">
|
||||
<input type="button" class="button-primary" value="<?php _e("Insert Form", "gravityforms"); ?>" onclick="InsertForm();"/>
|
||||
<a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", "gravityforms"); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
*/
|
||||
@@ -9,7 +9,7 @@ function sportspress_post_updated_messages( $messages ) {
|
||||
for ( $i = 0; $i <= 10; $i++ ):
|
||||
$messages['post'][ $i ] = __( 'Settings saved.', 'sportspress' ) .
|
||||
' <a href="' . esc_url( admin_url( 'edit.php?post_type=' . $typenow ) ) . '">' .
|
||||
__( 'View all', 'sportspress' ) . '</a>';
|
||||
__( 'View All', 'sportspress' ) . '</a>';
|
||||
endfor;
|
||||
|
||||
elseif ( in_array( $typenow, array( 'sp_event', 'sp_team', 'sp_table', 'sp_player', 'sp_list', 'sp_staff' ) ) ):
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_column_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Columns', 'sportspress' ),
|
||||
'singular_name' => __( 'Column', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Column', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Column', 'sportspress' ),
|
||||
'new_item' => __( 'New Column', 'sportspress' ),
|
||||
'view_item' => __( 'View Column', 'sportspress' ),
|
||||
'search_items' => __( 'Search Columns', 'sportspress' ),
|
||||
'not_found' => __( 'No columns found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No columns found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Columns', 'sportspress' ),
|
||||
|
||||
@@ -4,13 +4,13 @@ function sportspress_event_post_init() {
|
||||
'name' => __( 'Schedule', 'sportspress' ),
|
||||
'singular_name' => __( 'Event', 'sportspress' ),
|
||||
'all_items' => __( 'Events', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Event', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Event', 'sportspress' ),
|
||||
'new_item' => __( 'New Event', 'sportspress' ),
|
||||
'view_item' => __( 'View Event', 'sportspress' ),
|
||||
'search_items' => __( 'Search Events', 'sportspress' ),
|
||||
'not_found' => __( 'No events found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No events found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Events', 'sportspress' ),
|
||||
@@ -76,7 +76,7 @@ function sportspress_event_details_meta( $post ) {
|
||||
'show_option_none' => __( '-- Not set --', 'sportspress' ),
|
||||
);
|
||||
if ( ! sportspress_dropdown_taxonomies( $args ) ):
|
||||
sportspress_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New League', 'sportspress' ) );
|
||||
sportspress_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
@@ -91,7 +91,7 @@ function sportspress_event_details_meta( $post ) {
|
||||
'show_option_none' => __( '-- Not set --', 'sportspress' ),
|
||||
);
|
||||
if ( ! sportspress_dropdown_taxonomies( $args ) ):
|
||||
sportspress_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New Season', 'sportspress' ) );
|
||||
sportspress_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
@@ -106,7 +106,7 @@ function sportspress_event_details_meta( $post ) {
|
||||
'show_option_none' => __( '-- Not set --', 'sportspress' ),
|
||||
);
|
||||
if ( ! sportspress_dropdown_taxonomies( $args ) ):
|
||||
sportspress_taxonomy_adder( 'sp_venue', 'sp_event', __( 'Add New Venue', 'sportspress' ) );
|
||||
sportspress_taxonomy_adder( 'sp_venue', 'sp_event', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_list_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Player Lists', 'sportspress' ),
|
||||
'singular_name' => __( 'Player List', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Player List', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Player List', 'sportspress' ),
|
||||
'new_item' => __( 'New Player List', 'sportspress' ),
|
||||
'view_item' => __( 'View Player List', 'sportspress' ),
|
||||
'search_items' => __( 'Search Player Lists', 'sportspress' ),
|
||||
'not_found' => __( 'No player lists found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No player lists found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Player Lists', 'sportspress' ),
|
||||
@@ -74,7 +74,7 @@ function sportspress_list_player_meta( $post ) {
|
||||
'values' => 'term_id',
|
||||
);
|
||||
if ( ! sportspress_dropdown_taxonomies( $args ) ):
|
||||
sportspress_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New League', 'sportspress' ) );
|
||||
sportspress_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
@@ -88,7 +88,7 @@ function sportspress_list_player_meta( $post ) {
|
||||
'values' => 'term_id',
|
||||
);
|
||||
if ( ! sportspress_dropdown_taxonomies( $args ) ):
|
||||
sportspress_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New Season', 'sportspress' ) );
|
||||
sportspress_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
@@ -98,12 +98,12 @@ function sportspress_list_player_meta( $post ) {
|
||||
$args = array(
|
||||
'post_type' => 'sp_team',
|
||||
'name' => 'sp_team',
|
||||
'show_option_all' => __( 'All Teams', 'sportspress' ),
|
||||
'show_option_all' => __( 'All', 'sportspress' ),
|
||||
'selected' => $team_id,
|
||||
'values' => 'ID',
|
||||
);
|
||||
if ( ! sportspress_dropdown_pages( $args ) ):
|
||||
sportspress_post_adder( 'sp_team', __( 'Add New Team', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
@@ -122,7 +122,7 @@ function sportspress_list_player_meta( $post ) {
|
||||
'values' => 'slug',
|
||||
);
|
||||
if ( ! sportspress_dropdown_pages( $args ) ):
|
||||
sportspress_post_adder( 'sp_list', __( 'Add New Player List', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_list', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
@@ -136,7 +136,7 @@ function sportspress_list_player_meta( $post ) {
|
||||
<p><strong><?php _e( 'Players', 'sportspress' ); ?></strong></p>
|
||||
<?php
|
||||
sportspress_post_checklist( $post->ID, 'sp_player', 'block', 'sp_team' );
|
||||
sportspress_post_adder( 'sp_player', __( 'Add New Player', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_player', __( 'Add New', 'sportspress' ) );
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_metric_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Metrics', 'sportspress' ),
|
||||
'singular_name' => __( 'Metric', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Metric', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Metric', 'sportspress' ),
|
||||
'new_item' => __( 'New Metric', 'sportspress' ),
|
||||
'view_item' => __( 'View Metric', 'sportspress' ),
|
||||
'search_items' => __( 'Search Metrics', 'sportspress' ),
|
||||
'not_found' => __( 'No metrics found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No metrics found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Metrics', 'sportspress' ),
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_outcome_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Outcomes', 'sportspress' ),
|
||||
'singular_name' => __( 'Outcome', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Outcome', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Outcome', 'sportspress' ),
|
||||
'new_item' => __( 'New Outcome', 'sportspress' ),
|
||||
'view_item' => __( 'View Outcome', 'sportspress' ),
|
||||
'search_items' => __( 'Search Outcomes', 'sportspress' ),
|
||||
'not_found' => __( 'No outcomes found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No outcomes found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Outcomes', 'sportspress' ),
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_player_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Players', 'sportspress' ),
|
||||
'singular_name' => __( 'Player', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Player', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Player', 'sportspress' ),
|
||||
'new_item' => __( 'New Player', 'sportspress' ),
|
||||
'view_item' => __( 'View Player', 'sportspress' ),
|
||||
'search_items' => __( 'Search Players', 'sportspress' ),
|
||||
'not_found' => __( 'No players found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No players found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Players', 'sportspress' ),
|
||||
@@ -110,7 +110,7 @@ function sportspress_player_details_meta( $post ) {
|
||||
<p><input type="text" size="4" id="sp_number" name="sp_number" value="<?php echo $number; ?>"></p>
|
||||
|
||||
<p><strong><?php _e( 'Nationality', 'sportspress' ); ?></strong></p>
|
||||
<p><select id="sp_nationality" name="sp_nationality" data-placeholder="<?php _e( 'Select Nationality', 'sportspress' ); ?>" class="widefat chosen-select<?php if ( is_rtl() ): ?> chosen-rtl<?php endif; ?>">
|
||||
<p><select id="sp_nationality" name="sp_nationality" data-placeholder="<?php printf( __( 'Select %s', 'sportspress' ), __( 'Nationality', 'sportspress' ) ); ?>" class="widefat chosen-select<?php if ( is_rtl() ): ?> chosen-rtl<?php endif; ?>">
|
||||
<option value=""></option>
|
||||
<?php foreach ( $continents as $continent => $countries ): ?>
|
||||
<optgroup label="<?php echo $continent; ?>">
|
||||
@@ -128,7 +128,7 @@ function sportspress_player_details_meta( $post ) {
|
||||
'name' => 'tax_input[sp_position][]',
|
||||
'selected' => $position_ids,
|
||||
'values' => 'term_id',
|
||||
'placeholder' => __( 'Select Positions', 'sportspress' ),
|
||||
'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Positions', 'sportspress' ) ),
|
||||
'class' => 'widefat',
|
||||
'property' => 'multiple',
|
||||
'chosen' => true,
|
||||
@@ -144,7 +144,7 @@ function sportspress_player_details_meta( $post ) {
|
||||
'show_option_blank' => true,
|
||||
'selected' => $current_team,
|
||||
'values' => 'ID',
|
||||
'placeholder' => __( 'Select Team', 'sportspress' ),
|
||||
'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Team', 'sportspress' ) ),
|
||||
'class' => 'sp-current-team widefat',
|
||||
'chosen' => true,
|
||||
);
|
||||
@@ -158,7 +158,7 @@ function sportspress_player_details_meta( $post ) {
|
||||
'name' => 'sp_past_team[]',
|
||||
'selected' => $past_teams,
|
||||
'values' => 'ID',
|
||||
'placeholder' => __( 'Select Teams', 'sportspress' ),
|
||||
'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Teams', 'sportspress' ) ),
|
||||
'class' => 'sp-past-teams widefat',
|
||||
'property' => 'multiple',
|
||||
'chosen' => true,
|
||||
@@ -173,7 +173,7 @@ function sportspress_player_details_meta( $post ) {
|
||||
'name' => 'tax_input[sp_league][]',
|
||||
'selected' => $league_ids,
|
||||
'values' => 'term_id',
|
||||
'placeholder' => __( 'Select Leagues', 'sportspress' ),
|
||||
'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Leagues', 'sportspress' ) ),
|
||||
'class' => 'widefat',
|
||||
'property' => 'multiple',
|
||||
'chosen' => true,
|
||||
@@ -188,7 +188,7 @@ function sportspress_player_details_meta( $post ) {
|
||||
'name' => 'tax_input[sp_season][]',
|
||||
'selected' => $season_ids,
|
||||
'values' => 'term_id',
|
||||
'placeholder' => __( 'Select Seasons', 'sportspress' ),
|
||||
'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Seasons', 'sportspress' ) ),
|
||||
'class' => 'widefat',
|
||||
'property' => 'multiple',
|
||||
'chosen' => true,
|
||||
@@ -234,7 +234,7 @@ function sportspress_player_metrics_meta( $post ) {
|
||||
<?php
|
||||
endforeach;
|
||||
else:
|
||||
sportspress_post_adder( 'sp_metric', __( 'Add New Metric', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_metric', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
|
||||
sportspress_nonce();
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_result_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Results', 'sportspress' ),
|
||||
'singular_name' => __( 'Result', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Result', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Result', 'sportspress' ),
|
||||
'new_item' => __( 'New Result', 'sportspress' ),
|
||||
'view_item' => __( 'View Result', 'sportspress' ),
|
||||
'search_items' => __( 'Search Results', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found in trash.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Results', 'sportspress' ),
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_staff_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Staff', 'sportspress' ),
|
||||
'singular_name' => __( 'Staff', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Staff', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Staff', 'sportspress' ),
|
||||
'new_item' => __( 'New Staff', 'sportspress' ),
|
||||
'view_item' => __( 'View Staff', 'sportspress' ),
|
||||
'search_items' => __( 'Search Staff', 'sportspress' ),
|
||||
'not_found' => __( 'No staff found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No staff found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Staff', 'sportspress' ),
|
||||
@@ -37,7 +37,7 @@ function sportspress_staff_meta_init() {
|
||||
}
|
||||
function sportspress_staff_team_meta( $post ) {
|
||||
sportspress_post_checklist( $post->ID, 'sp_team' );
|
||||
sportspress_post_adder( 'sp_team', __( 'Add New Team', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
sportspress_nonce();
|
||||
}
|
||||
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_statistic_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Statistics', 'sportspress' ),
|
||||
'singular_name' => __( 'Statistic', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Statistic', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Statistic', 'sportspress' ),
|
||||
'new_item' => __( 'New Statistic', 'sportspress' ),
|
||||
'view_item' => __( 'View Statistic', 'sportspress' ),
|
||||
'search_items' => __( 'Search Statistics', 'sportspress' ),
|
||||
'not_found' => __( 'No statistics found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No statistics found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Statistics', 'sportspress' ),
|
||||
|
||||
@@ -3,13 +3,13 @@ function sportspress_table_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'League Tables', 'sportspress' ),
|
||||
'singular_name' => __( 'League Table', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New League Table', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit League Table', 'sportspress' ),
|
||||
'new_item' => __( 'New League Table', 'sportspress' ),
|
||||
'view_item' => __( 'View League Table', 'sportspress' ),
|
||||
'search_items' => __( 'Search League Tables', 'sportspress' ),
|
||||
'not_found' => __( 'No league tables found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No league tables found in trash.', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'League Tables', 'sportspress' ),
|
||||
@@ -70,7 +70,7 @@ function sportspress_table_team_meta( $post, $test ) {
|
||||
'values' => 'term_id'
|
||||
);
|
||||
if ( ! sportspress_dropdown_taxonomies( $args ) ):
|
||||
sportspress_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New League', 'sportspress' ) );
|
||||
sportspress_taxonomy_adder( 'sp_league', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
@@ -84,14 +84,14 @@ function sportspress_table_team_meta( $post, $test ) {
|
||||
'values' => 'term_id'
|
||||
);
|
||||
if ( ! sportspress_dropdown_taxonomies( $args ) ):
|
||||
sportspress_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New Season', 'sportspress' ) );
|
||||
sportspress_taxonomy_adder( 'sp_season', 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
<p><strong><?php _e( 'Teams', 'sportspress' ); ?></strong></p>
|
||||
<?php
|
||||
sportspress_post_checklist( $post->ID, 'sp_team', 'block', 'sp_season' );
|
||||
sportspress_post_adder( 'sp_team', __( 'Add New Team', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_team', __( 'Add New', 'sportspress' ) );
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@@ -3,14 +3,14 @@ function sportspress_team_post_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Teams', 'sportspress' ),
|
||||
'singular_name' => __( 'Team', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Team', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Team', 'sportspress' ),
|
||||
'new_item' => __( 'New Team', 'sportspress' ),
|
||||
'view_item' => __( 'View Team', 'sportspress' ),
|
||||
'search_items' => __( 'Search Teams', 'sportspress' ),
|
||||
'not_found' => __( 'No teams found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No teams found in trash.', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent Team:', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'new_item' => __( 'New', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent:', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Teams', 'sportspress' ),
|
||||
|
||||
@@ -17,22 +17,30 @@ $data = get_posts( $args );
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php $i = 0; foreach ( $data as $row ): ?>
|
||||
<tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
|
||||
<td class="row-title"><?php echo $row->post_title; ?></td>
|
||||
<td><?php echo $row->post_name; ?>for / <?php echo $row->post_name; ?>against</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="2"><a href="<?php echo admin_url( 'edit.php?post_type=sp_result' ); ?>"><?php _e( 'Edit Results', 'sportspress' ); ?></a></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<div class="alignleft actions">
|
||||
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_result' ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></a>
|
||||
<a class="button" id="doaction2" href="<?php echo admin_url( 'post-new.php?post_type=sp_result' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
</div>
|
||||
<br class="clear">
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$args = array(
|
||||
@@ -48,19 +56,27 @@ $data = get_posts( $args );
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php $i = 0; foreach ( $data as $row ): ?>
|
||||
<tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
|
||||
<td class="row-title"><?php echo $row->post_title; ?></td>
|
||||
<td><?php echo $row->post_name; ?></td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="2"><a href="<?php echo admin_url( 'edit.php?post_type=sp_outcome' ); ?>"><?php _e( 'Edit Outcomes', 'sportspress' ); ?></a></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<div class="alignleft actions">
|
||||
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_outcome' ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></a>
|
||||
<a class="button" id="doaction2" href="<?php echo admin_url( 'post-new.php?post_type=sp_outcome' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
</div>
|
||||
<br class="clear">
|
||||
</div>
|
||||
@@ -12,11 +12,18 @@ $data = get_posts( $args );
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Positions', 'sportspress' ); ?></th>
|
||||
<th> </th>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Positions', 'sportspress' ); ?></th>
|
||||
<th scope="col"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Positions', 'sportspress' ); ?></th>
|
||||
<th scope="col"> </th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php $i = 0; foreach ( $data as $row ): ?>
|
||||
<tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
|
||||
<td class="row-title"><?php echo $row->post_title; ?></td>
|
||||
@@ -24,12 +31,14 @@ $data = get_posts( $args );
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="4"><a href="<?php echo admin_url( 'edit.php?post_type=sp_metric' ); ?>"><?php _e( 'Edit Metrics', 'sportspress' ); ?></a></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<div class="alignleft actions">
|
||||
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_metric' ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></a>
|
||||
<a class="button" id="doaction2" href="<?php echo admin_url( 'post-new.php?post_type=sp_metric' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
</div>
|
||||
<br class="clear">
|
||||
</div>
|
||||
<?php
|
||||
$args = array(
|
||||
'post_type' => 'sp_statistic',
|
||||
@@ -44,11 +53,18 @@ $data = get_posts( $args );
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Positions', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Calculate', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Positions', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Calculate', 'sportspress' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Positions', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Calculate', 'sportspress' ); ?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php $i = 0; foreach ( $data as $row ): ?>
|
||||
<tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
|
||||
<td class="row-title"><?php echo $row->post_title; ?></td>
|
||||
@@ -56,9 +72,11 @@ $data = get_posts( $args );
|
||||
<td><?php echo sportspress_get_post_calculate( $row->ID ); ?></td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="4"><a href="<?php echo admin_url( 'edit.php?post_type=sp_statistic' ); ?>"><?php _e( 'Edit Statistics', 'sportspress' ); ?></a></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<div class="alignleft actions">
|
||||
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_statistic' ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></a>
|
||||
<a class="button" id="doaction2" href="<?php echo admin_url( 'post-new.php?post_type=sp_statistic' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
</div>
|
||||
<br class="clear">
|
||||
</div>
|
||||
@@ -12,13 +12,22 @@ $data = get_posts( $args );
|
||||
<table class="widefat sp-admin-config-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Rounding', 'sportspress' ); ?></th>
|
||||
<th><?php _e( 'Sort Order', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Rounding', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Sort Order', 'sportspress' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col"><?php _e( 'Label', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Key', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Equation', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Rounding', 'sportspress' ); ?></th>
|
||||
<th scope="col"><?php _e( 'Sort Order', 'sportspress' ); ?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php $i = 0; foreach ( $data as $row ): ?>
|
||||
<tr<?php if ( $i % 2 == 0 ) echo ' class="alternate"'; ?>>
|
||||
<td class="row-title"><?php echo $row->post_title; ?></td>
|
||||
@@ -28,9 +37,11 @@ $data = get_posts( $args );
|
||||
<td><?php echo sportspress_get_post_order( $row->ID ); ?></td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="5"><a href="<?php echo admin_url( 'edit.php?post_type=sp_column' ); ?>"><?php _e( 'Edit Columns', 'sportspress' ); ?></a></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</table>
|
||||
<div class="tablenav bottom">
|
||||
<div class="alignleft actions">
|
||||
<a class="button" id="doaction" href="<?php echo admin_url( 'edit.php?post_type=sp_column' ); ?>"><?php _e( 'Edit', 'sportspress' ); ?></a>
|
||||
<a class="button" id="doaction2" href="<?php echo admin_url( 'post-new.php?post_type=sp_column' ); ?>"><?php _e( 'Add New', 'sportspress' ); ?></a>
|
||||
</div>
|
||||
<br class="clear">
|
||||
</div>
|
||||
@@ -3,16 +3,16 @@ function sportspress_league_term_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Leagues', 'sportspress' ),
|
||||
'singular_name' => __( 'League', 'sportspress' ),
|
||||
'all_items' => __( 'All Leagues', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit League', 'sportspress' ),
|
||||
'view_item' => __( 'View League', 'sportspress' ),
|
||||
'update_item' => __( 'Update League', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New League', 'sportspress' ),
|
||||
'new_item_name' => __( 'New League Name', 'sportspress' ),
|
||||
'parent_item' => __( 'Parent League', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent League:', 'sportspress' ),
|
||||
'search_items' => __( 'Search Leagues', 'sportspress' ),
|
||||
'not_found' => __( 'No leagues found.', 'sportspress' ),
|
||||
'all_items' => __( 'All', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'update_item' => __( 'Update', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'new_item_name' => __( 'Name', 'sportspress' ),
|
||||
'parent_item' => __( 'Parent', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent:', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Leagues', 'sportspress' ),
|
||||
|
||||
@@ -3,16 +3,16 @@ function sportspress_position_term_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Positions', 'sportspress' ),
|
||||
'singular_name' => __( 'Position', 'sportspress' ),
|
||||
'all_items' => __( 'All Positions', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Position', 'sportspress' ),
|
||||
'view_item' => __( 'View Position', 'sportspress' ),
|
||||
'update_item' => __( 'Update Position', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Position', 'sportspress' ),
|
||||
'new_item_name' => __( 'New Position Name', 'sportspress' ),
|
||||
'parent_item' => __( 'Parent Position', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent Position:', 'sportspress' ),
|
||||
'search_items' => __( 'Search Positions', 'sportspress' ),
|
||||
'not_found' => __( 'No positions found.', 'sportspress' ),
|
||||
'all_items' => __( 'All', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'update_item' => __( 'Update', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'new_item_name' => __( 'Name', 'sportspress' ),
|
||||
'parent_item' => __( 'Parent', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent:', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Positions', 'sportspress' ),
|
||||
|
||||
@@ -3,16 +3,16 @@ function sportspress_season_term_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Seasons', 'sportspress' ),
|
||||
'singular_name' => __( 'Season', 'sportspress' ),
|
||||
'all_items' => __( 'All Seasons', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Season', 'sportspress' ),
|
||||
'view_item' => __( 'View Season', 'sportspress' ),
|
||||
'update_item' => __( 'Update Season', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Season', 'sportspress' ),
|
||||
'new_item_name' => __( 'New Season Name', 'sportspress' ),
|
||||
'parent_item' => __( 'Parent Season', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent Season:', 'sportspress' ),
|
||||
'search_items' => __( 'Search Seasons', 'sportspress' ),
|
||||
'not_found' => __( 'No seasons found.', 'sportspress' ),
|
||||
'all_items' => __( 'All', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'update_item' => __( 'Update', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'new_item_name' => __( 'Name', 'sportspress' ),
|
||||
'parent_item' => __( 'Parent', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent:', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Seasons', 'sportspress' ),
|
||||
|
||||
@@ -3,16 +3,16 @@ function sportspress_venue_term_init() {
|
||||
$labels = array(
|
||||
'name' => __( 'Venues', 'sportspress' ),
|
||||
'singular_name' => __( 'Venue', 'sportspress' ),
|
||||
'all_items' => __( 'All Venues', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit Venue', 'sportspress' ),
|
||||
'view_item' => __( 'View Venue', 'sportspress' ),
|
||||
'update_item' => __( 'Update Venue', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New Venue', 'sportspress' ),
|
||||
'new_item_name' => __( 'New Venue Name', 'sportspress' ),
|
||||
'parent_item' => __( 'Parent Venue', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent Venue:', 'sportspress' ),
|
||||
'search_items' => __( 'Search Venues', 'sportspress' ),
|
||||
'not_found' => __( 'No venues found.', 'sportspress' ),
|
||||
'all_items' => __( 'All', 'sportspress' ),
|
||||
'edit_item' => __( 'Edit', 'sportspress' ),
|
||||
'view_item' => __( 'View', 'sportspress' ),
|
||||
'update_item' => __( 'Update', 'sportspress' ),
|
||||
'add_new_item' => __( 'Add New', 'sportspress' ),
|
||||
'new_item_name' => __( 'Name', 'sportspress' ),
|
||||
'parent_item' => __( 'Parent', 'sportspress' ),
|
||||
'parent_item_colon' => __( 'Parent:', 'sportspress' ),
|
||||
'search_items' => __( 'Search', 'sportspress' ),
|
||||
'not_found' => __( 'No results found.', 'sportspress' ),
|
||||
);
|
||||
$args = array(
|
||||
'label' => __( 'Venues', 'sportspress' ),
|
||||
|
||||
@@ -38,7 +38,7 @@ class SportsPress_Widget_League_Table extends WP_Widget {
|
||||
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'sportspress' ); ?></label>
|
||||
<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
|
||||
|
||||
<p><label for="<?php echo $this->get_field_id('id'); ?>"><?php _e( 'Select League Table:', 'sportspress' ); ?></label>
|
||||
<p><label for="<?php echo $this->get_field_id('id'); ?>"><?php printf( __( 'Select %s:', 'sportspress' ), __( 'League Table', 'sportspress' ) ); ?></label>
|
||||
<?php
|
||||
$args = array(
|
||||
'post_type' => 'sp_table',
|
||||
@@ -49,7 +49,7 @@ class SportsPress_Widget_League_Table extends WP_Widget {
|
||||
'class' => 'widefat',
|
||||
);
|
||||
if ( ! sportspress_dropdown_pages( $args ) ):
|
||||
sportspress_post_adder( 'sp_table', __( 'Add New League Table', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_table', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
|
||||
@@ -44,7 +44,7 @@ class SportsPress_Widget_Player_list extends WP_Widget {
|
||||
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'sportspress' ); ?></label>
|
||||
<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
|
||||
|
||||
<p><label for="<?php echo $this->get_field_id('id'); ?>"><?php _e( 'Select Player List:', 'sportspress' ); ?></label>
|
||||
<p><label for="<?php echo $this->get_field_id('id'); ?>"><?php printf( __( 'Select %s:', 'sportspress' ), __( 'Player List', 'sportspress' ) ); ?></label>
|
||||
<?php
|
||||
$args = array(
|
||||
'post_type' => 'sp_list',
|
||||
@@ -55,7 +55,7 @@ class SportsPress_Widget_Player_list extends WP_Widget {
|
||||
'class' => 'widefat',
|
||||
);
|
||||
if ( ! sportspress_dropdown_pages( $args ) ):
|
||||
sportspress_post_adder( 'sp_list', __( 'Add New Player List', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_list', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
@@ -98,7 +98,7 @@ class SportsPress_Widget_Player_list extends WP_Widget {
|
||||
'class' => 'sp-select-orderby widefat',
|
||||
);
|
||||
if ( ! sportspress_dropdown_pages( $args ) ):
|
||||
sportspress_post_adder( 'sp_list', __( 'Add New Player List', 'sportspress' ) );
|
||||
sportspress_post_adder( 'sp_list', __( 'Add New', 'sportspress' ) );
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user