diff --git a/admin/hooks/current-screen.php b/admin/hooks/current-screen.php deleted file mode 100644 index aa3a64e1..00000000 --- a/admin/hooks/current-screen.php +++ /dev/null @@ -1,7 +0,0 @@ -id == 'dashboard' ) - include_once( dirname( SP_PLUGIN_FILE ) . '/admin/tools/dashboard.php' ); -} -add_action( 'current_screen', 'sportspress_current_screen' ); diff --git a/admin/terms/venue.php b/admin/terms/venue.php deleted file mode 100644 index a825e989..00000000 --- a/admin/terms/venue.php +++ /dev/null @@ -1,78 +0,0 @@ -term_id; - $term_meta = get_option( "taxonomy_$t_id" ); ?> - - - - -

- - - - - - - - - - - - - - - 'id', - 'order' => 'DESC', - 'hide_empty' => false, - 'number' => 1, - ); - - // Get latitude and longitude from the last added venue - $terms = get_terms( 'sp_venue', $args ); - if ( $terms && array_key_exists( 0, $terms) && is_object( reset( $terms ) ) ): - $term = reset( $terms ); - $t_id = $term->term_id; - $term_meta = get_option( "taxonomy_$t_id" ); - $latitude = sportspress_array_value( $term_meta, 'sp_latitude', '40.7324319' ); - $longitude = sportspress_array_value( $term_meta, 'sp_longitude', '-73.82480799999996' ); - else: - $latitude = '40.7324319'; - $longitude = '-73.82480799999996'; - endif; - - ?> - -
- - - - -

-
- -post_date ); - $interval = date_diff( $now, $date ); - - $count = wp_count_posts( 'sp_event' ); - $scheduled_count = $count->future; - $published_count = $count->publish; - ?> - - 'id', + 'order' => 'DESC', + 'hide_empty' => false, + 'number' => 1, + ); + + // Get latitude and longitude from the last added venue + $terms = get_terms( 'sp_venue', $args ); + if ( $terms && array_key_exists( 0, $terms) && is_object( reset( $terms ) ) ): + $term = reset( $terms ); + $t_id = $term->term_id; + $term_meta = get_option( "taxonomy_$t_id" ); + $latitude = sportspress_array_value( $term_meta, 'sp_latitude', '40.7324319' ); + $longitude = sportspress_array_value( $term_meta, 'sp_longitude', '-73.82480799999996' ); + else: + $latitude = '40.7324319'; + $longitude = '-73.82480799999996'; + endif; + ?> +
+ + + + +

+
+ term_id; + $term_meta = get_option( "taxonomy_$t_id" ); ?> + + + + +

+ + + + + + + + + + + + + + +