Team Results => Event Results
This commit is contained in:
@@ -24,7 +24,7 @@ class SP_Meta_Box_Event_Shortcode {
|
|||||||
<?php _e( 'Copy this code and paste it into your post, page or text widget content.', 'sportspress' ); ?>
|
<?php _e( 'Copy this code and paste it into your post, page or text widget content.', 'sportspress' ); ?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<strong><?php _e( 'Team Results', 'sportspress' ); ?></strong>
|
<strong><?php _e( 'Event Results', 'sportspress' ); ?></strong>
|
||||||
</p>
|
</p>
|
||||||
<p><input type="text" value="[event_results <?php echo $post->ID; ?>]" readonly="readonly" class="code widefat"></p>
|
<p><input type="text" value="[event_results <?php echo $post->ID; ?>]" readonly="readonly" class="code widefat"></p>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ class SP_Settings_Status extends SP_Settings_Page {
|
|||||||
?></td>
|
?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php _e( 'Team Results', 'sportspress' ); ?>:</td>
|
<td><?php _e( 'Event Results', 'sportspress' ); ?>:</td>
|
||||||
<td><?php
|
<td><?php
|
||||||
$display_posts = array();
|
$display_posts = array();
|
||||||
$posts = get_posts( array( 'post_type' => 'sp_result', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) );
|
$posts = get_posts( array( 'post_type' => 'sp_result', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) );
|
||||||
|
|||||||
@@ -55,7 +55,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php if ( 'team' == get_option( 'sportspress_mode', 'team' ) ) { ?>
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
@@ -72,11 +71,11 @@
|
|||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<?php _e( 'Team Results', 'sportspress' ) ?>
|
<?php _e( 'Event Results', 'sportspress' ) ?>
|
||||||
<p class="description"><?php _e( 'Used for events.', 'sportspress' ); ?></p>
|
<p class="description"><?php _e( 'Used for events.', 'sportspress' ); ?></p>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<legend class="screen-reader-text"><span><?php _e( 'Team Results', 'sportspress' ) ?></span></legend>
|
<legend class="screen-reader-text"><span><?php _e( 'Event Results', 'sportspress' ) ?></span></legend>
|
||||||
<form>
|
<form>
|
||||||
<?php wp_nonce_field( 'sp-save-primary-result', 'sp-config-nonce', false ); ?>
|
<?php wp_nonce_field( 'sp-save-primary-result', 'sp-config-nonce', false ); ?>
|
||||||
<table class="widefat sp-admin-config-table">
|
<table class="widefat sp-admin-config-table">
|
||||||
@@ -129,7 +128,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php } ?>
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
@@ -181,7 +179,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php if ( 'team' == get_option( 'sportspress_mode', 'team' ) ) { ?>
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
@@ -238,7 +235,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php } ?>
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -234,7 +234,7 @@
|
|||||||
?></td>
|
?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php _e( 'Team Results', 'sportspress' ); ?>:</td>
|
<td><?php _e( 'Event Results', 'sportspress' ); ?>:</td>
|
||||||
<td><?php
|
<td><?php
|
||||||
$display_posts = array();
|
$display_posts = array();
|
||||||
$posts = get_posts( array( 'post_type' => 'sp_result', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) );
|
$posts = get_posts( array( 'post_type' => 'sp_result', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) );
|
||||||
|
|||||||
@@ -1154,6 +1154,7 @@ function sp_get_text_options() {
|
|||||||
__( 'Date', 'sportspress' ),
|
__( 'Date', 'sportspress' ),
|
||||||
__( 'Details', 'sportspress' ),
|
__( 'Details', 'sportspress' ),
|
||||||
__( 'Event', 'sportspress' ),
|
__( 'Event', 'sportspress' ),
|
||||||
|
__( 'Event Results', 'sportspress' ),
|
||||||
__( 'Competition', 'sportspress' ),
|
__( 'Competition', 'sportspress' ),
|
||||||
__( 'Nationality', 'sportspress' ),
|
__( 'Nationality', 'sportspress' ),
|
||||||
__( 'Outcome', 'sportspress' ),
|
__( 'Outcome', 'sportspress' ),
|
||||||
@@ -1165,7 +1166,6 @@ function sp_get_text_options() {
|
|||||||
__( 'Preview', 'sportspress' ),
|
__( 'Preview', 'sportspress' ),
|
||||||
__( 'Rank', 'sportspress' ),
|
__( 'Rank', 'sportspress' ),
|
||||||
__( 'Recap', 'sportspress' ),
|
__( 'Recap', 'sportspress' ),
|
||||||
__( 'Team Results', 'sportspress' ),
|
|
||||||
__( 'Season', 'sportspress' ),
|
__( 'Season', 'sportspress' ),
|
||||||
__( 'Staff', 'sportspress' ),
|
__( 'Staff', 'sportspress' ),
|
||||||
__( 'Substitutes', 'sportspress' ),
|
__( 'Substitutes', 'sportspress' ),
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ if ( empty( $table_rows ) ):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
$output .= '<h4 class="sp-table-caption">' . __( 'Team Results', 'sportspress' ) . '</h4>';
|
$output .= '<h4 class="sp-table-caption">' . __( 'Event Results', 'sportspress' ) . '</h4>';
|
||||||
|
|
||||||
$output .= '<div class="sp-table-wrapper">' .
|
$output .= '<div class="sp-table-wrapper">' .
|
||||||
'<table class="sp-event-results sp-data-table' . ( $responsive ? ' sp-responsive-table' : '' ) . ( $scrollable ? ' sp-scrollable-table' : '' ) . '"><thead>' .
|
'<table class="sp-event-results sp-data-table' . ( $responsive ? ' sp-responsive-table' : '' ) . ( $scrollable ? ' sp-scrollable-table' : '' ) . '"><thead>' .
|
||||||
|
|||||||
Reference in New Issue
Block a user