From efa051e749b653f7d028f6fe4e047efdeb061175 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 28 Jan 2015 13:58:54 +1100 Subject: [PATCH] Team Results => Event Results --- .../class-sp-meta-box-event-shortcode.php | 2 +- .../settings/class-sp-settings-status.php | 2 +- includes/admin/views/html-admin-config.php | 258 +++++++++--------- .../admin/views/html-admin-page-status.php | 2 +- includes/sp-core-functions.php | 2 +- templates/event-results.php | 2 +- 6 files changed, 132 insertions(+), 136 deletions(-) diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php index 51e3a462..b0c8837a 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-shortcode.php @@ -24,7 +24,7 @@ class SP_Meta_Box_Event_Shortcode {

- +

diff --git a/includes/admin/settings/class-sp-settings-status.php b/includes/admin/settings/class-sp-settings-status.php index 70f6c4da..79832ab2 100644 --- a/includes/admin/settings/class-sp-settings-status.php +++ b/includes/admin/settings/class-sp-settings-status.php @@ -270,7 +270,7 @@ class SP_Settings_Status extends SP_Settings_Page { ?> - : + : 'sp_result', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); diff --git a/includes/admin/views/html-admin-config.php b/includes/admin/views/html-admin-config.php index 5677f690..97458a09 100644 --- a/includes/admin/views/html-admin-config.php +++ b/includes/admin/views/html-admin-config.php @@ -55,81 +55,79 @@ - - - - + + 'sp_result', - 'numberposts' => -1, - 'posts_per_page' => -1, - 'orderby' => 'menu_order', - 'order' => 'ASC' - ); - $data = get_posts( $args ); - ?> - - - + + + + + + + > + + + + + + + + + + + +
- -

-
- -
- - - - - - - - - - - - - - - - - - - > - - - - - - - - - + $args = array( + 'post_type' => 'sp_result', + 'numberposts' => -1, + 'posts_per_page' => -1, + 'orderby' => 'menu_order', + 'order' => 'ASC' + ); + $data = get_posts( $args ); + ?> + + + - - -
>
post_name ); ?>>post_name; ?>for, post_name; ?>against

post_excerpt; ?>

+ +

+
+ + + + + + + + + + + - -
- -
- - -
-
-
- + +
>
post_name ); ?>>post_name; ?>for, post_name; ?>against

post_excerpt; ?>

+ +

+ + +
+
+ + + +
- - - - 'sp_column', - 'numberposts' => -1, - 'posts_per_page' => -1, - 'orderby' => 'menu_order', - 'order' => 'ASC' - ); - $data = get_posts( $args ); - ?> - - - - - -
- -

-
- - - - - - - - - - - - - - > - - - - - - - - - - - - - -
post_title; ?>post_name; ?>ID ); ?>ID ); ?>ID ); ?>

post_excerpt; ?>

-
- - -
-
- -
- + + + 'sp_column', + 'numberposts' => -1, + 'posts_per_page' => -1, + 'orderby' => 'menu_order', + 'order' => 'ASC' + ); + $data = get_posts( $args ); + ?> + + + + + +
+ +

+
+ + + + + + + + + + + + + + > + + + + + + + + + + + + + +
post_title; ?>post_name; ?>ID ); ?>ID ); ?>ID ); ?>

post_excerpt; ?>

+
+ + +
+
+ +
- +
:: 'sp_result', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index 8fe3b6d9..e9dfcf37 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -1154,6 +1154,7 @@ function sp_get_text_options() { __( 'Date', 'sportspress' ), __( 'Details', 'sportspress' ), __( 'Event', 'sportspress' ), + __( 'Event Results', 'sportspress' ), __( 'Competition', 'sportspress' ), __( 'Nationality', 'sportspress' ), __( 'Outcome', 'sportspress' ), @@ -1165,7 +1166,6 @@ function sp_get_text_options() { __( 'Preview', 'sportspress' ), __( 'Rank', 'sportspress' ), __( 'Recap', 'sportspress' ), - __( 'Team Results', 'sportspress' ), __( 'Season', 'sportspress' ), __( 'Staff', 'sportspress' ), __( 'Substitutes', 'sportspress' ), diff --git a/templates/event-results.php b/templates/event-results.php index 2773d15e..bab12ca8 100644 --- a/templates/event-results.php +++ b/templates/event-results.php @@ -96,7 +96,7 @@ if ( empty( $table_rows ) ): else: - $output .= '

' . __( 'Team Results', 'sportspress' ) . '

'; + $output .= '

' . __( 'Event Results', 'sportspress' ) . '

'; $output .= '
' . '' .