Remove closing PHP tags
This commit is contained in:
@@ -29,4 +29,3 @@ function sp_admin_menu( $position ) {
|
||||
unset( $submenu['edit.php?post_type=sp_staff'][15] );
|
||||
}
|
||||
add_action( 'admin_menu', 'sp_admin_menu' );
|
||||
?>
|
||||
@@ -3,4 +3,3 @@ function sp_after_theme_setup() {
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
}
|
||||
add_action( 'after_theme_setup', 'sp_after_theme_setup' );
|
||||
?>
|
||||
@@ -3,4 +3,3 @@ function sp_manage_posts_columns() {
|
||||
sp_highlight_admin_menu();
|
||||
}
|
||||
add_action( 'manage_posts_columns', 'sp_manage_posts_columns' );
|
||||
?>
|
||||
@@ -83,4 +83,3 @@ function sp_manage_posts_custom_column( $column, $post_id ) {
|
||||
}
|
||||
add_action( 'manage_posts_custom_column', 'sp_manage_posts_custom_column', 10, 2 );
|
||||
add_action( 'manage_pages_custom_column', 'sp_manage_posts_custom_column', 10, 2 );
|
||||
?>
|
||||
@@ -4,4 +4,3 @@ function sp_plugins_loaded() {
|
||||
add_image_size( 'sp_icon', 32, 32, false );
|
||||
}
|
||||
add_action( 'plugins_loaded', 'sp_plugins_loaded' );
|
||||
?>
|
||||
@@ -12,4 +12,3 @@ function sp_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $at
|
||||
return $html;
|
||||
}
|
||||
add_filter( 'post_thumbnail_html', 'sp_post_thumbnail_html', 10, 5 );
|
||||
?>
|
||||
@@ -34,4 +34,3 @@ function sp_restrict_manage_posts() {
|
||||
endif;
|
||||
}
|
||||
add_action( 'restrict_manage_posts', 'sp_restrict_manage_posts' );
|
||||
?>
|
||||
@@ -134,4 +134,3 @@ function sp_save_post( $post_id ) {
|
||||
endswitch;
|
||||
}
|
||||
add_action( 'save_post', 'sp_save_post' );
|
||||
?>
|
||||
@@ -24,4 +24,3 @@ function sp_admin_post_thumbnail_html( $translated_text, $post_id ) {
|
||||
return $translated_text;
|
||||
}
|
||||
add_filter( 'admin_post_thumbnail_html', 'sp_admin_post_thumbnail_html', 10, 2 );
|
||||
?>
|
||||
@@ -41,4 +41,3 @@ function sp_gettext( $translated_text, $untranslated_text, $domain ) {
|
||||
return $translated_text;
|
||||
}
|
||||
add_filter( 'gettext', 'sp_gettext', 20, 3 );
|
||||
?>
|
||||
@@ -13,4 +13,3 @@ function sp_pre_get_posts( $wp_query ) {
|
||||
endif;
|
||||
}
|
||||
add_filter('pre_get_posts', 'sp_pre_get_posts');
|
||||
?>
|
||||
@@ -23,4 +23,3 @@ function sp_sanitize_title( $title ) {
|
||||
return $title;
|
||||
}
|
||||
add_filter( 'sanitize_title', 'sp_sanitize_title' );
|
||||
?>
|
||||
@@ -21,4 +21,3 @@ function sportspress_the_content( $content ) {
|
||||
return $content;
|
||||
}
|
||||
add_filter('the_content', 'sportspress_the_content');
|
||||
?>
|
||||
@@ -17,4 +17,3 @@ function sp_insert_post_data( $data, $postarr ) {
|
||||
return $data;
|
||||
}
|
||||
add_filter( 'wp_insert_post_data' , 'sp_insert_post_data' , '99', 2 );
|
||||
?>
|
||||
@@ -95,4 +95,3 @@ function sp_column_details_meta( $post ) {
|
||||
<?php
|
||||
sp_nonce();
|
||||
}
|
||||
?>
|
||||
@@ -153,4 +153,3 @@ function sp_event_edit_sortable_columns( $columns ) {
|
||||
return $columns;
|
||||
}
|
||||
add_filter( 'manage_edit-sp_event_sortable_columns', 'sp_event_edit_sortable_columns' );
|
||||
?>
|
||||
@@ -83,4 +83,3 @@ function sp_list_stats_meta( $post ) {
|
||||
sp_player_table( $columns, $data, $placeholders );
|
||||
sp_nonce();
|
||||
}
|
||||
?>
|
||||
@@ -42,4 +42,3 @@ function sp_outcome_details_meta( $post ) {
|
||||
<?php
|
||||
sp_nonce();
|
||||
}
|
||||
?>
|
||||
@@ -228,4 +228,3 @@ function sp_player_details_meta( $post ) {
|
||||
endforeach;
|
||||
sp_nonce();
|
||||
}
|
||||
?>
|
||||
@@ -54,4 +54,3 @@ function sp_result_details_meta( $post ) {
|
||||
<?php
|
||||
sp_nonce();
|
||||
}
|
||||
?>
|
||||
@@ -8,4 +8,3 @@ function sp_separator_cpt_init() {
|
||||
register_post_type( 'sp_separator', $args );
|
||||
}
|
||||
add_action( 'init', 'sp_separator_cpt_init' );
|
||||
?>
|
||||
@@ -48,4 +48,3 @@ function sp_staff_edit_columns() {
|
||||
return $columns;
|
||||
}
|
||||
add_filter( 'manage_edit-sp_staff_columns', 'sp_staff_edit_columns' );
|
||||
?>
|
||||
@@ -95,4 +95,3 @@ function sp_statistic_equation_meta( $post ) {
|
||||
<?php
|
||||
sp_nonce();
|
||||
}
|
||||
?>
|
||||
@@ -72,4 +72,3 @@ function sp_table_columns_meta( $post ) {
|
||||
|
||||
sp_nonce();
|
||||
}
|
||||
?>
|
||||
@@ -175,4 +175,3 @@ function sp_team_columns_meta( $post ) {
|
||||
sp_team_columns_table( $columns, $data, $placeholders );
|
||||
sp_nonce();
|
||||
}
|
||||
?>
|
||||
@@ -176,4 +176,4 @@ $sportspress_sports['baseball'] = array(
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -84,4 +84,4 @@ $sportspress_sports['basketball'] = array(
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -68,4 +68,4 @@ $sportspress_sports['cricket'] = array(
|
||||
'sp_outcome' => array(
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -59,4 +59,4 @@ $sportspress_sports['football'] = array(
|
||||
'sp_outcome' => array(
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -73,4 +73,4 @@ $sportspress_sports['footy'] = array(
|
||||
'sp_outcome' => array(
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -66,4 +66,4 @@ $sportspress_sports['gaming'] = array(
|
||||
'sp_outcome' => array(
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -52,4 +52,4 @@ $sportspress_sports['golf'] = array(
|
||||
'sp_outcome' => array(
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -85,4 +85,4 @@ $sportspress_sports['hockey'] = array(
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -54,4 +54,4 @@ $sportspress_sports['racing'] = array(
|
||||
'sp_outcome' => array(
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -82,4 +82,4 @@ $sportspress_sports['rugby'] = array(
|
||||
'sp_outcome' => array(
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -179,4 +179,4 @@ $sportspress_sports['soccer'] = array(
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
<h3 class="title"><?php _e( 'General Settings', 'sportspress' ); ?></h3>
|
||||
<?php
|
||||
|
||||
settings_fields( 'sportspress_general' );
|
||||
do_settings_sections( 'sportspress_general' );
|
||||
submit_button();
|
||||
|
||||
?>
|
||||
@@ -166,5 +166,3 @@ function sportspress_event_stats_callback() {
|
||||
function sportspress_player_stats_callback() {
|
||||
sportspress_render_option_field( 'sportspress_stats', 'player', 'textarea' );
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -16,4 +16,3 @@ function sp_position_term_init() {
|
||||
register_taxonomy_for_object_type( 'sp_position', 'sp_player' );
|
||||
}
|
||||
add_action( 'init', 'sp_position_term_init' );
|
||||
?>
|
||||
@@ -19,4 +19,3 @@ function sp_season_term_init() {
|
||||
register_taxonomy_for_object_type( 'sp_season', 'sp_staff' );
|
||||
}
|
||||
add_action( 'init', 'sp_season_term_init' );
|
||||
?>
|
||||
@@ -1526,4 +1526,3 @@ if ( !function_exists( 'sp_highlight_admin_menu' ) ) {
|
||||
$submenu_file = 'sportspress';
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -38,4 +38,3 @@ __( 'Integer', 'sportspress' );
|
||||
__( 'Decimal', 'sportspress' );
|
||||
__( 'Time', 'sportspress' );
|
||||
__( 'Custom Field', 'sportspress' );
|
||||
?>
|
||||
@@ -158,4 +158,3 @@ function sp_admin_head_edit() {
|
||||
}
|
||||
add_action( 'admin_head-edit.php', 'sp_admin_head_edit', 10, 2 );
|
||||
add_action( 'admin_head-post.php', 'sp_admin_head_edit', 10, 2 );
|
||||
?>
|
||||
@@ -8,7 +8,7 @@ Plugin URI: http://themeboy.com/sportspress
|
||||
Description: Manage your club and its players, staff, events, league tables, and player lists.
|
||||
Version: 0.1.3
|
||||
Author: ThemeBoy
|
||||
Author URI: http://themeboy.com
|
||||
Author URI: http://themeboy.com/
|
||||
License: GPLv3
|
||||
*/
|
||||
|
||||
@@ -102,4 +102,3 @@ function sp_admin_enqueue_scripts() {
|
||||
wp_enqueue_script( 'sportspress-admin', SPORTSPRESS_PLUGIN_URL .'/assets/js/admin.js', array( 'jquery' ), time(), true );
|
||||
}
|
||||
add_action( 'admin_enqueue_scripts', 'sp_admin_enqueue_scripts' );
|
||||
?>
|
||||
Reference in New Issue
Block a user