options =& $sportspress_options; add_action( 'admin_init', array( $this, 'page_init' ), 1 ); } function page_init() { register_setting( 'sportspress_teams', 'sportspress', 'sportspress_options_validate' ); add_settings_section( 'table', __( 'League Tables', 'sportspress' ), '', 'sportspress_teams' ); add_settings_field( 'table', __( 'Table', 'sportspress' ), array( $this, 'table_callback' ), 'sportspress_teams', 'table' ); add_settings_field( 'columns', __( 'Columns', 'sportspress' ), array( $this, 'columns_callback' ), 'sportspress_teams', 'table' ); } function table_callback() { $responsive = sportspress_array_value( $this->options, 'league_table_responsive', true ); $sortable = sportspress_array_value( $this->options, 'league_table_sortable', true ); $show_team_logo = sportspress_array_value( $this->options, 'league_table_show_team_logo', false ); $link_posts = sportspress_array_value( $this->options, 'league_table_link_posts', false ); ?>
'sp_column', 'numberposts' => -1, 'posts_per_page' => -1, 'orderby' => 'menu_order', 'order' => 'ASC' ); $data = get_posts( $args ); ?>
>
post_title; ?> post_name; ?> ID, $row->post_name ); ?> ID ); ?> ID ); ?>