Escape outputs
This commit is contained in:
@@ -24,7 +24,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'events';
|
||||
$this->label = __( 'Events', 'sportspress' );
|
||||
$this->label = esc_attr__( 'Events', 'sportspress' );
|
||||
$this->template = 'event';
|
||||
|
||||
add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
||||
@@ -45,7 +45,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
$settings = array_merge(
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Event Options', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Event Options', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'event_options',
|
||||
@@ -56,8 +56,8 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
array_merge(
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Link', 'sportspress' ),
|
||||
'desc' => __( 'Link events', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Link', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Link events', 'sportspress' ),
|
||||
'id' => 'sportspress_link_events',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -71,8 +71,8 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
array( 'type' => 'event_tabs' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Details', 'sportspress' ),
|
||||
'desc' => __( 'Date', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Details', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Date', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_date',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -80,7 +80,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Time', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Time', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_time',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -88,7 +88,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Match Day', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Match Day', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_day',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -96,7 +96,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Full Time', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Full Time', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_full_time',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -106,23 +106,23 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Default mode', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Default mode', 'sportspress' ),
|
||||
'id' => 'sportspress_mode',
|
||||
'default' => 'team',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'team' => __( 'Team vs team', 'sportspress' ),
|
||||
'player' => __( 'Player vs player', 'sportspress' ),
|
||||
'team' => esc_attr__( 'Team vs team', 'sportspress' ),
|
||||
'player' => esc_attr__( 'Player vs player', 'sportspress' ),
|
||||
),
|
||||
'desc_tip' => _x( 'Who competes in events?', 'mode setting description', 'sportspress' ),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Limit', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Limit', 'sportspress' ),
|
||||
'id' => 'sportspress_event_teams',
|
||||
'class' => 'small-text',
|
||||
'default' => '2',
|
||||
'desc' => __( 'teams', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'teams', 'sportspress' ),
|
||||
'type' => 'number',
|
||||
'custom_attributes' => array(
|
||||
'min' => 0,
|
||||
@@ -133,8 +133,8 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
array( 'type' => 'delimiter' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Teams', 'sportspress' ),
|
||||
'desc' => __( 'Filter by league', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Teams', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Filter by league', 'sportspress' ),
|
||||
'id' => 'sportspress_event_filter_teams_by_league',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -142,7 +142,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Filter by season', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Filter by season', 'sportspress' ),
|
||||
'id' => 'sportspress_event_filter_teams_by_season',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -150,11 +150,11 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Full Time', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Full Time', 'sportspress' ),
|
||||
'id' => 'sportspress_event_minutes',
|
||||
'class' => 'small-text',
|
||||
'default' => '90',
|
||||
'desc' => __( 'mins', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'mins', 'sportspress' ),
|
||||
'type' => 'number',
|
||||
'custom_attributes' => array(
|
||||
'min' => 0,
|
||||
@@ -163,8 +163,8 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Comments', 'sportspress' ),
|
||||
'desc' => __( 'Allow people to post comments on new articles', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Comments', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Allow people to post comments on new articles', 'sportspress' ),
|
||||
'id' => 'sportspress_event_comment_status',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -180,7 +180,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Venues', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Venues', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'venue_options',
|
||||
@@ -190,34 +190,34 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
'sportspress_venue_options',
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Link', 'sportspress' ),
|
||||
'desc' => __( 'Link venues', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Link', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Link venues', 'sportspress' ),
|
||||
'id' => 'sportspress_link_venues',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Venue Map', 'sportspress' ),
|
||||
'desc' => __( 'Display venue map', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Venue Map', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Display venue map', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_maps',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Type', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Type', 'sportspress' ),
|
||||
'id' => 'sportspress_map_type',
|
||||
'default' => 'ROADMAP',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'ROADMAP' => __( 'Default', 'sportspress' ),
|
||||
'SATELLITE' => __( 'Satellite', 'sportspress' ),
|
||||
'ROADMAP' => esc_attr__( 'Default', 'sportspress' ),
|
||||
'SATELLITE' => esc_attr__( 'Satellite', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Zoom', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Zoom', 'sportspress' ),
|
||||
'id' => 'sportspress_map_zoom',
|
||||
'class' => 'small-text',
|
||||
'default' => '15',
|
||||
@@ -239,7 +239,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Teams', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Teams', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'event_logo_options',
|
||||
@@ -249,27 +249,27 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
'sportspress_event_logo_options',
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Order', 'sportspress' ),
|
||||
'desc' => __( 'Reverse order', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Order', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Reverse order', 'sportspress' ),
|
||||
'id' => 'sportspress_event_reverse_teams',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Layout', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Layout', 'sportspress' ),
|
||||
'id' => 'sportspress_event_logos_format',
|
||||
'default' => 'inline',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'inline' => __( 'Inline', 'sportspress' ),
|
||||
'block' => __( 'Block', 'sportspress' ),
|
||||
'inline' => esc_attr__( 'Inline', 'sportspress' ),
|
||||
'block' => esc_attr__( 'Block', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Display', 'sportspress' ),
|
||||
'desc' => __( 'Name', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Display', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Name', 'sportspress' ),
|
||||
'id' => 'sportspress_event_logos_show_team_names',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -277,7 +277,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Time', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Time', 'sportspress' ),
|
||||
'id' => 'sportspress_event_logos_show_time',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -285,7 +285,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Results', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Results', 'sportspress' ),
|
||||
'id' => 'sportspress_event_logos_show_results',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -301,7 +301,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Players', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Players', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'eventplayer_options',
|
||||
@@ -311,13 +311,13 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
'sportspress_eventplayer_options',
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Order', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Order', 'sportspress' ),
|
||||
'id' => 'sportspress_event_player_sort',
|
||||
'default' => 'jersey',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'jersey' => __( 'Jersey (e.g. "33. John Doe")', 'sportspress' ),
|
||||
'name' => __( 'Name (e.g. "John Doe (33)")', 'sportspress' ),
|
||||
'jersey' => esc_attr__( 'Jersey (e.g. "33. John Doe")', 'sportspress' ),
|
||||
'name' => esc_attr__( 'Name (e.g. "John Doe (33)")', 'sportspress' ),
|
||||
),
|
||||
'desc_tip' => 'When editing an event, this determines how the checklist of players are sorted in the Teams metabox. This does not affect the Box Score section.',
|
||||
),
|
||||
@@ -332,7 +332,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Event Results', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Event Results', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'result_options',
|
||||
@@ -342,19 +342,19 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
'sportspress_result_options',
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Columns', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Columns', 'sportspress' ),
|
||||
'id' => 'sportspress_event_result_columns',
|
||||
'default' => 'auto',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'auto' => __( 'Auto', 'sportspress' ),
|
||||
'manual' => __( 'Manual', 'sportspress' ),
|
||||
'auto' => esc_attr__( 'Auto', 'sportspress' ),
|
||||
'manual' => esc_attr__( 'Manual', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Outcome', 'sportspress' ),
|
||||
'desc' => __( 'Display outcome', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Outcome', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Display outcome', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_outcome',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -369,7 +369,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Box Score', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Box Score', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'performance_options',
|
||||
@@ -380,8 +380,8 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
array_merge(
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Rows', 'sportspress' ),
|
||||
'desc' => __( 'Staff', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Rows', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Staff', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_staff',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -389,7 +389,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Players', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Players', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_players',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -397,7 +397,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Total', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Total', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_total',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -405,29 +405,29 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Columns', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Columns', 'sportspress' ),
|
||||
'id' => 'sportspress_event_performance_columns',
|
||||
'default' => 'auto',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'auto' => __( 'Auto', 'sportspress' ),
|
||||
'manual' => __( 'Manual', 'sportspress' ),
|
||||
'auto' => esc_attr__( 'Auto', 'sportspress' ),
|
||||
'manual' => esc_attr__( 'Manual', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Mode', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Mode', 'sportspress' ),
|
||||
'id' => 'sportspress_event_performance_mode',
|
||||
'default' => 'values',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'values' => __( 'Values', 'sportspress' ),
|
||||
'icons' => __( 'Icons', 'sportspress' ),
|
||||
'values' => esc_attr__( 'Values', 'sportspress' ),
|
||||
'icons' => esc_attr__( 'Icons', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Awards', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Awards', 'sportspress' ),
|
||||
'id' => 'sportspress_event_performance_stars_type',
|
||||
'default' => 0,
|
||||
'type' => 'radio',
|
||||
@@ -440,8 +440,8 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Positions', 'sportspress' ),
|
||||
'desc' => __( 'Top-level only', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Positions', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Top-level only', 'sportspress' ),
|
||||
'id' => 'sportspress_event_hide_child_positions',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -451,8 +451,8 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
'sportspress_event_performance_display_options',
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Display', 'sportspress' ),
|
||||
'desc' => __( 'Squad Number', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Display', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Squad Number', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_player_numbers',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -460,7 +460,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Position', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Position', 'sportspress' ),
|
||||
'id' => 'sportspress_event_show_position',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -468,7 +468,7 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Minutes', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Minutes', 'sportspress' ),
|
||||
'id' => 'sportspress_event_performance_show_minutes',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -478,25 +478,25 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Performance', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Performance', 'sportspress' ),
|
||||
'id' => 'sportspress_event_performance_sections',
|
||||
'default' => -1,
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
-1 => __( 'Combined', 'sportspress' ),
|
||||
0 => __( 'Offense', 'sportspress' ) . ' → ' . __( 'Defense', 'sportspress' ),
|
||||
1 => __( 'Defense', 'sportspress' ) . ' → ' . __( 'Offense', 'sportspress' ),
|
||||
-1 => esc_attr__( 'Combined', 'sportspress' ),
|
||||
0 => esc_attr__( 'Offense', 'sportspress' ) . ' → ' . esc_attr__( 'Defense', 'sportspress' ),
|
||||
1 => esc_attr__( 'Defense', 'sportspress' ) . ' → ' . esc_attr__( 'Offense', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Total', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Total', 'sportspress' ),
|
||||
'id' => 'sportspress_event_total_performance',
|
||||
'default' => 'all',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'all' => __( 'All', 'sportspress' ),
|
||||
'primary' => __( 'Primary', 'sportspress' ),
|
||||
'all' => esc_attr__( 'All', 'sportspress' ),
|
||||
'primary' => esc_attr__( 'Primary', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -537,9 +537,9 @@ if ( ! class_exists( 'SP_Settings_Events' ) ) :
|
||||
$limit = 2;
|
||||
}
|
||||
if ( 3 >= $limit ) {
|
||||
$example = str_repeat( __( 'Team', 'sportspress' ) . ' %1$s ', $limit );
|
||||
$example = str_repeat( esc_attr__( 'Team', 'sportspress' ) . ' %1$s ', $limit );
|
||||
} else {
|
||||
$example = str_repeat( __( 'Team', 'sportspress' ) . ' %1$s ', 3 ) . '…';
|
||||
$example = str_repeat( esc_attr__( 'Team', 'sportspress' ) . ' %1$s ', 3 ) . '…';
|
||||
}
|
||||
$example = rtrim( $example, ' %1$s ' );
|
||||
?>
|
||||
|
||||
@@ -24,7 +24,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'general';
|
||||
$this->label = __( 'General', 'sportspress' );
|
||||
$this->label = esc_attr__( 'General', 'sportspress' );
|
||||
|
||||
add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
||||
add_action( 'sportspress_settings_' . $this->id, array( $this, 'output' ) );
|
||||
@@ -42,7 +42,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
|
||||
$presets = SP_Admin_Sports::get_preset_options();
|
||||
|
||||
$leagues = array( '' => __( '— Select —', 'sportspress' ) );
|
||||
$leagues = array( '' => esc_attr__( '— Select —', 'sportspress' ) );
|
||||
|
||||
$terms = get_terms(
|
||||
array(
|
||||
@@ -57,7 +57,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
}
|
||||
}
|
||||
|
||||
$seasons = array( '' => __( '— Select —', 'sportspress' ) );
|
||||
$seasons = array( '' => esc_attr__( '— Select —', 'sportspress' ) );
|
||||
|
||||
$terms = get_terms(
|
||||
array(
|
||||
@@ -75,7 +75,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
$settings = array_merge(
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'General Options', 'sportspress' ),
|
||||
'title' => esc_attr__( 'General Options', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'general_options',
|
||||
@@ -87,7 +87,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
array( 'type' => 'timezone' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Sport', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Sport', 'sportspress' ),
|
||||
'id' => 'sportspress_sport',
|
||||
'default' => 'none',
|
||||
'type' => 'sport',
|
||||
@@ -95,7 +95,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Main League', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Main League', 'sportspress' ),
|
||||
'id' => 'sportspress_league',
|
||||
'default' => null,
|
||||
'type' => 'select',
|
||||
@@ -103,7 +103,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Current Season', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Current Season', 'sportspress' ),
|
||||
'id' => 'sportspress_season',
|
||||
'default' => null,
|
||||
'type' => 'select',
|
||||
@@ -117,7 +117,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
'id' => 'general_options',
|
||||
),
|
||||
array(
|
||||
'title' => __( 'Styles and Scripts', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Styles and Scripts', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'script_styling_options',
|
||||
@@ -134,24 +134,24 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
$options,
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Align', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Align', 'sportspress' ),
|
||||
'id' => 'sportspress_table_text_align',
|
||||
'default' => 'default',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'default' => __( 'Default', 'sportspress' ),
|
||||
'left' => __( 'Left', 'sportspress' ),
|
||||
'center' => __( 'Center', 'sportspress' ),
|
||||
'right' => __( 'Right', 'sportspress' ),
|
||||
'default' => esc_attr__( 'Default', 'sportspress' ),
|
||||
'left' => esc_attr__( 'Left', 'sportspress' ),
|
||||
'center' => esc_attr__( 'Center', 'sportspress' ),
|
||||
'right' => esc_attr__( 'Right', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Padding', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Padding', 'sportspress' ),
|
||||
'id' => 'sportspress_table_padding',
|
||||
'class' => 'small-text',
|
||||
'default' => null,
|
||||
'placeholder' => __( 'Auto', 'sportspress' ),
|
||||
'placeholder' => esc_attr__( 'Auto', 'sportspress' ),
|
||||
'desc' => 'px',
|
||||
'type' => 'number',
|
||||
'custom_attributes' => array(
|
||||
@@ -166,7 +166,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
$options,
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Custom CSS', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Custom CSS', 'sportspress' ),
|
||||
'id' => 'sportspress_custom_css',
|
||||
'css' => 'width:100%; height: 130px;',
|
||||
'type' => 'textarea',
|
||||
@@ -176,29 +176,29 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
'sportspress_general_script_options',
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Scripts', 'sportspress' ),
|
||||
'desc' => __( 'Live countdowns', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Scripts', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Live countdowns', 'sportspress' ),
|
||||
'id' => 'sportspress_enable_live_countdowns',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
'checkboxgroup' => 'start',
|
||||
'desc_tip' => __( 'This will enable a script allowing the countdowns to be animated.', 'sportspress' ),
|
||||
'desc_tip' => esc_attr__( 'This will enable a script allowing the countdowns to be animated.', 'sportspress' ),
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Shortcode menu', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Shortcode menu', 'sportspress' ),
|
||||
'id' => 'sportspress_rich_editing',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
'checkboxgroup' => 'end',
|
||||
'desc_tip' => __( 'This will enable a shortcode menu to be displayed in the visual editor.', 'sportspress' ),
|
||||
'desc_tip' => esc_attr__( 'This will enable a shortcode menu to be displayed in the visual editor.', 'sportspress' ),
|
||||
),
|
||||
)
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Tables', 'sportspress' ),
|
||||
'desc' => __( 'Responsive', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Tables', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Responsive', 'sportspress' ),
|
||||
'id' => 'sportspress_enable_responsive_tables',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -206,7 +206,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Scrollable', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Scrollable', 'sportspress' ),
|
||||
'id' => 'sportspress_enable_scrollable_tables',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -214,7 +214,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Sortable', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Sortable', 'sportspress' ),
|
||||
'id' => 'sportspress_enable_sortable_tables',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -222,23 +222,23 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Widgets', 'sportspress' ),
|
||||
'desc' => __( 'Unique', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Widgets', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Unique', 'sportspress' ),
|
||||
'id' => 'sportspress_widget_unique',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
'desc_tip' => __( 'Hide widget when same as content.', 'sportspress' ),
|
||||
'desc_tip' => esc_attr__( 'Hide widget when same as content.', 'sportspress' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
if ( apply_filters( 'sportspress_enable_header', false ) ) {
|
||||
$options[] = array(
|
||||
'title' => __( 'Header Offset', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Header Offset', 'sportspress' ),
|
||||
'id' => 'sportspress_header_offset',
|
||||
'class' => 'small-text',
|
||||
'default' => null,
|
||||
'placeholder' => __( 'Auto', 'sportspress' ),
|
||||
'placeholder' => esc_attr__( 'Auto', 'sportspress' ),
|
||||
'desc' => 'px',
|
||||
'type' => 'number',
|
||||
'custom_attributes' => array(
|
||||
@@ -442,11 +442,11 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
}
|
||||
|
||||
// Show inputs
|
||||
$this->color_picker( __( 'Primary', 'sportspress' ), 'sportspress_frontend_css_primary', $colors['primary'] );
|
||||
$this->color_picker( __( 'Background', 'sportspress' ), 'sportspress_frontend_css_background', $colors['background'] );
|
||||
$this->color_picker( __( 'Text', 'sportspress' ), 'sportspress_frontend_css_text', $colors['text'] );
|
||||
$this->color_picker( __( 'Heading', 'sportspress' ), 'sportspress_frontend_css_heading', $colors['heading'] );
|
||||
$this->color_picker( __( 'Link', 'sportspress' ), 'sportspress_frontend_css_link', $colors['link'] );
|
||||
$this->color_picker( esc_attr__( 'Primary', 'sportspress' ), 'sportspress_frontend_css_primary', $colors['primary'] );
|
||||
$this->color_picker( esc_attr__( 'Background', 'sportspress' ), 'sportspress_frontend_css_background', $colors['background'] );
|
||||
$this->color_picker( esc_attr__( 'Text', 'sportspress' ), 'sportspress_frontend_css_text', $colors['text'] );
|
||||
$this->color_picker( esc_attr__( 'Heading', 'sportspress' ), 'sportspress_frontend_css_heading', $colors['heading'] );
|
||||
$this->color_picker( esc_attr__( 'Link', 'sportspress' ), 'sportspress_frontend_css_link', $colors['link'] );
|
||||
|
||||
if ( ( $styles = SP_Frontend_Scripts::get_styles() ) && array_key_exists( 'sportspress-general', $styles ) ) :
|
||||
?>
|
||||
|
||||
@@ -29,7 +29,7 @@ if ( ! class_exists( 'SP_Settings_Licenses' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'licenses';
|
||||
$this->label = __( 'Licenses', 'sportspress' );
|
||||
$this->label = esc_attr__( 'Licenses', 'sportspress' );
|
||||
|
||||
$this->licenses = apply_filters(
|
||||
'sportspress_licenses',
|
||||
@@ -159,7 +159,7 @@ if ( ! class_exists( 'SP_Settings_Licenses' ) ) :
|
||||
|
||||
// Make sure the response came back okay
|
||||
if ( is_wp_error( $response ) ) {
|
||||
SP_Admin_Settings::add_error( __( 'Sorry, there has been an error.', 'sportspress' ) );
|
||||
SP_Admin_Settings::add_error( esc_attr__( 'Sorry, there has been an error.', 'sportspress' ) );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -172,9 +172,9 @@ if ( ! class_exists( 'SP_Settings_Licenses' ) ) :
|
||||
// Update License or display error
|
||||
if ( 'valid' == $license_data->license ) {
|
||||
update_site_option( 'sportspress_' . $id . '_license_key', $license );
|
||||
SP_Admin_Settings::add_override( __( 'License activated.', 'sportspress' ) );
|
||||
SP_Admin_Settings::add_override( esc_attr__( 'License activated.', 'sportspress' ) );
|
||||
} else {
|
||||
SP_Admin_Settings::add_error( __( 'License invalid.', 'sportspress' ) );
|
||||
SP_Admin_Settings::add_error( esc_attr__( 'License invalid.', 'sportspress' ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ if ( ! class_exists( 'SP_Settings_Licenses' ) ) :
|
||||
|
||||
// make sure the response came back okay
|
||||
if ( is_wp_error( $response ) ) {
|
||||
SP_Admin_Settings::add_error( __( 'Sorry, there has been an error.', 'sportspress' ) );
|
||||
SP_Admin_Settings::add_error( esc_attr__( 'Sorry, there has been an error.', 'sportspress' ) );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -224,9 +224,9 @@ if ( ! class_exists( 'SP_Settings_Licenses' ) ) :
|
||||
// $license_data->license will be either "deactivated" or "failed"
|
||||
if ( $license_data->license == 'deactivated' ) {
|
||||
delete_site_option( 'sportspress_' . $id . '_license_status' );
|
||||
SP_Admin_Settings::add_override( __( 'License deactivated.', 'sportspress' ) );
|
||||
SP_Admin_Settings::add_override( esc_attr__( 'License deactivated.', 'sportspress' ) );
|
||||
} else {
|
||||
SP_Admin_Settings::add_error( __( 'Sorry, there has been an error.', 'sportspress' ) );
|
||||
SP_Admin_Settings::add_error( esc_attr__( 'Sorry, there has been an error.', 'sportspress' ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,17 +29,17 @@ if ( ! class_exists( 'SP_Settings_Modules' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'modules';
|
||||
$this->label = __( 'Modules', 'sportspress' );
|
||||
$this->label = esc_attr__( 'Modules', 'sportspress' );
|
||||
|
||||
$this->sections = apply_filters(
|
||||
'sportspress_module_sections',
|
||||
array(
|
||||
'general' => __( 'General', 'sportspress' ),
|
||||
'event' => __( 'Events', 'sportspress' ),
|
||||
'team' => __( 'Teams', 'sportspress' ),
|
||||
'player_staff' => __( 'Players', 'sportspress' ) . ' & ' . __( 'Staff', 'sportspress' ),
|
||||
'admin' => __( 'Dashboard', 'sportspress' ),
|
||||
'other' => __( 'Other', 'sportspress' ),
|
||||
'general' => esc_attr__( 'General', 'sportspress' ),
|
||||
'event' => esc_attr__( 'Events', 'sportspress' ),
|
||||
'team' => esc_attr__( 'Teams', 'sportspress' ),
|
||||
'player_staff' => esc_attr__( 'Players', 'sportspress' ) . ' & ' . esc_attr__( 'Staff', 'sportspress' ),
|
||||
'admin' => esc_attr__( 'Dashboard', 'sportspress' ),
|
||||
'other' => esc_attr__( 'Other', 'sportspress' ),
|
||||
)
|
||||
);
|
||||
|
||||
@@ -143,46 +143,46 @@ if ( ! class_exists( 'SP_Settings_Modules' ) ) :
|
||||
$categories = array(
|
||||
'documentation' => array(
|
||||
'icon' => 'sp-icon-book',
|
||||
'label' => __( 'Documentation', 'sportspress' ),
|
||||
'label' => esc_attr__( 'Documentation', 'sportspress' ),
|
||||
'links' => array(
|
||||
'http://tboy.co/installation' => __( 'Getting Started', 'sportspress' ),
|
||||
'http://tboy.co/manuals' => __( 'Manuals', 'sportspress' ),
|
||||
'http://tboy.co/videos' => __( 'Videos', 'sportspress' ),
|
||||
'http://tboy.co/installation' => esc_attr__( 'Getting Started', 'sportspress' ),
|
||||
'http://tboy.co/manuals' => esc_attr__( 'Manuals', 'sportspress' ),
|
||||
'http://tboy.co/videos' => esc_attr__( 'Videos', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
'help' => array(
|
||||
'icon' => 'dashicons dashicons-heart',
|
||||
'label' => __( 'Help', 'sportspress' ),
|
||||
'label' => esc_attr__( 'Help', 'sportspress' ),
|
||||
'links' => array(
|
||||
'http://tboy.co/forums' => __( 'Support Forums', 'sportspress' ),
|
||||
'http://tboy.co/ideas' => __( 'Feature Requests', 'sportspress' ),
|
||||
'http://tboy.co/forums' => esc_attr__( 'Support Forums', 'sportspress' ),
|
||||
'http://tboy.co/ideas' => esc_attr__( 'Feature Requests', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
'social' => array(
|
||||
'icon' => 'dashicons dashicons-share',
|
||||
'label' => __( 'Connect', 'sportspress' ),
|
||||
'label' => esc_attr__( 'Connect', 'sportspress' ),
|
||||
'links' => array(
|
||||
'http://tboy.co/twitter' => __( 'Twitter', 'sportspress' ),
|
||||
'http://tboy.co/facebook' => __( 'Facebook', 'sportspress' ),
|
||||
'http://tboy.co/youtube' => __( 'YouTube', 'sportspress' ),
|
||||
'http://tboy.co/gplus' => __( 'Google+', 'sportspress' ),
|
||||
'http://tboy.co/twitter' => esc_attr__( 'Twitter', 'sportspress' ),
|
||||
'http://tboy.co/facebook' => esc_attr__( 'Facebook', 'sportspress' ),
|
||||
'http://tboy.co/youtube' => esc_attr__( 'YouTube', 'sportspress' ),
|
||||
'http://tboy.co/gplus' => esc_attr__( 'Google+', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
'developers' => array(
|
||||
'icon' => 'dashicons dashicons-editor-code',
|
||||
'label' => __( 'Developers', 'sportspress' ),
|
||||
'label' => esc_attr__( 'Developers', 'sportspress' ),
|
||||
'links' => array(
|
||||
'http://tboy.co/developers' => __( 'Reference', 'sportspress' ),
|
||||
'http://tboy.co/slack' => __( 'Slack', 'sportspress' ),
|
||||
'http://tboy.co/github' => __( 'GitHub', 'sportspress' ),
|
||||
'http://tboy.co/developers' => esc_attr__( 'Reference', 'sportspress' ),
|
||||
'http://tboy.co/slack' => esc_attr__( 'Slack', 'sportspress' ),
|
||||
'http://tboy.co/github' => esc_attr__( 'GitHub', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
if ( class_exists( 'SportsPress_Pro' ) ) {
|
||||
$categories['help']['links']['http://support.themeboy.com/'] = __( 'Premium Support', 'sportspress' );
|
||||
$categories['help']['links']['http://support.themeboy.com/'] = esc_attr__( 'Premium Support', 'sportspress' );
|
||||
} else {
|
||||
$categories['help']['links'][ apply_filters( 'sportspress_pro_url', 'http://tboy.co/pro' ) ] = '<span class="sp-desc-tip" title="' . __( 'Upgrade to Pro', 'sportspress' ) . '">' . __( 'Premium Support', 'sportspress' ) . '</span>';
|
||||
$categories['help']['links'][ apply_filters( 'sportspress_pro_url', 'http://tboy.co/pro' ) ] = '<span class="sp-desc-tip" title="' . esc_attr__( 'Upgrade to Pro', 'sportspress' ) . '">' . esc_attr__( 'Premium Support', 'sportspress' ) . '</span>';
|
||||
}
|
||||
|
||||
$categories = apply_filters( 'sportspress_modules_welcome_links', $categories );
|
||||
@@ -218,7 +218,7 @@ if ( ! class_exists( 'SP_Settings_Modules' ) ) :
|
||||
<table class="sp-modules-table widefat" cellspacing="0">
|
||||
<thead>
|
||||
<tr><th>
|
||||
<?php echo esc_html( sp_array_value( $this->sections, $section, __( 'Modules', 'sportspress' ) ) ); ?>
|
||||
<?php echo esc_html( sp_array_value( $this->sections, $section, esc_attr__( 'Modules', 'sportspress' ) ) ); ?>
|
||||
</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -226,7 +226,7 @@ if ( ! class_exists( 'SP_Settings_Modules' ) ) :
|
||||
<?php if ( isset( $module['class'] ) && ! class_exists( $module['class'] ) ) { ?>
|
||||
<tr class="sp-module-unavailable"><td>
|
||||
<input type="checkbox" disabled="disabled">
|
||||
<span class="sp-desc-tip" title="<?php echo esc_attr( sp_array_value( $module, 'tip', __( 'Upgrade to Pro', 'sportspress' ) ) ); ?>">
|
||||
<span class="sp-desc-tip" title="<?php echo esc_attr( sp_array_value( $module, 'tip', esc_attr__( 'Upgrade to Pro', 'sportspress' ) ) ); ?>">
|
||||
<i class="<?php echo esc_attr( sp_array_value( $module, 'icon', 'dashicons dashicons-admin-generic' ) ); ?>"></i>
|
||||
<?php echo esc_html( sp_array_value( $module, 'label', $id ) ); ?>
|
||||
</span>
|
||||
@@ -234,7 +234,7 @@ if ( ! class_exists( 'SP_Settings_Modules' ) ) :
|
||||
<span class="sp-desc">
|
||||
<?php echo wp_kses_post( $module['desc'] ); ?>
|
||||
<?php if ( array_key_exists( 'link', $module ) ) { ?>
|
||||
<a href="<?php echo esc_url( apply_filters( 'sportspress_pro_url', $module['link'] ) ); ?>" target="_blank"><?php echo esc_html( sp_array_value( $module, 'action', __( 'Learn more', 'sportspress' ) ) ); ?></a>
|
||||
<a href="<?php echo esc_url( apply_filters( 'sportspress_pro_url', $module['link'] ) ); ?>" target="_blank"><?php echo esc_html( sp_array_value( $module, 'action', esc_attr__( 'Learn more', 'sportspress' ) ) ); ?></a>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
|
||||
@@ -24,7 +24,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'players';
|
||||
$this->label = __( 'Players', 'sportspress' );
|
||||
$this->label = esc_attr__( 'Players', 'sportspress' );
|
||||
$this->template = 'player';
|
||||
|
||||
add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
||||
@@ -44,7 +44,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
$settings = array_merge(
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Player Options', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Player Options', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'player_options',
|
||||
@@ -58,16 +58,16 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
array( 'type' => 'player_tabs' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Link', 'sportspress' ),
|
||||
'desc' => __( 'Link players', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Link', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Link players', 'sportspress' ),
|
||||
'id' => 'sportspress_link_players',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Details', 'sportspress' ),
|
||||
'desc' => __( 'Squad Number', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Details', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Squad Number', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_number',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -75,7 +75,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Name', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Name', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_name',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -83,7 +83,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Nationality', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Nationality', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_nationality',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -91,7 +91,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Position', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Position', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_positions',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -99,7 +99,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Current Team', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Current Team', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_current_teams',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -107,7 +107,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Past Teams', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Past Teams', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_past_teams',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -115,7 +115,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Leagues', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Leagues', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_leagues',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -123,7 +123,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Seasons', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Seasons', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_seasons',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -131,8 +131,8 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Nationality', 'sportspress' ),
|
||||
'desc' => __( 'Display national flags', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Nationality', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Display national flags', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_flags',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -147,49 +147,49 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Statistics', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Statistics', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'player_statistic_options',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Columns', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Columns', 'sportspress' ),
|
||||
'id' => 'sportspress_player_columns',
|
||||
'default' => 'auto',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'auto' => __( 'Auto', 'sportspress' ),
|
||||
'manual' => __( 'Manual', 'sportspress' ),
|
||||
'auto' => esc_attr__( 'Auto', 'sportspress' ),
|
||||
'manual' => esc_attr__( 'Manual', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Mode', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Mode', 'sportspress' ),
|
||||
'id' => 'sportspress_player_statistics_mode',
|
||||
'default' => 'values',
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
'values' => __( 'Values', 'sportspress' ),
|
||||
'icons' => __( 'Icons', 'sportspress' ),
|
||||
'values' => esc_attr__( 'Values', 'sportspress' ),
|
||||
'icons' => esc_attr__( 'Icons', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Categories', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Categories', 'sportspress' ),
|
||||
'id' => 'sportspress_player_performance_sections',
|
||||
'default' => -1,
|
||||
'type' => 'radio',
|
||||
'options' => array(
|
||||
-1 => __( 'Combined', 'sportspress' ),
|
||||
0 => __( 'Offense', 'sportspress' ) . ' → ' . __( 'Defense', 'sportspress' ),
|
||||
1 => __( 'Defense', 'sportspress' ) . ' → ' . __( 'Offense', 'sportspress' ),
|
||||
-1 => esc_attr__( 'Combined', 'sportspress' ),
|
||||
0 => esc_attr__( 'Offense', 'sportspress' ) . ' → ' . esc_attr__( 'Defense', 'sportspress' ),
|
||||
1 => esc_attr__( 'Defense', 'sportspress' ) . ' → ' . esc_attr__( 'Offense', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Display', 'sportspress' ),
|
||||
'desc' => __( 'Total', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Display', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Total', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_total',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
@@ -197,7 +197,7 @@ if ( ! class_exists( 'SP_Settings_Players' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Career Total', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Career Total', 'sportspress' ),
|
||||
'id' => 'sportspress_player_show_career_total',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
|
||||
@@ -24,7 +24,7 @@ if ( ! class_exists( 'SP_Settings_Staff' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'staff';
|
||||
$this->label = __( 'Staff', 'sportspress' );
|
||||
$this->label = esc_attr__( 'Staff', 'sportspress' );
|
||||
$this->template = 'staff';
|
||||
|
||||
add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
||||
@@ -46,7 +46,7 @@ if ( ! class_exists( 'SP_Settings_Staff' ) ) :
|
||||
array_merge(
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Staff Options', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Staff Options', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'staff_options',
|
||||
@@ -60,16 +60,16 @@ if ( ! class_exists( 'SP_Settings_Staff' ) ) :
|
||||
array( 'type' => 'staff_tabs' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Link', 'sportspress' ),
|
||||
'desc' => __( 'Link staff', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Link', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Link staff', 'sportspress' ),
|
||||
'id' => 'sportspress_link_staff',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Details', 'sportspress' ),
|
||||
'desc' => __( 'Nationality', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Details', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Nationality', 'sportspress' ),
|
||||
'id' => 'sportspress_staff_show_nationality',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -77,7 +77,7 @@ if ( ! class_exists( 'SP_Settings_Staff' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Current Team', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Current Team', 'sportspress' ),
|
||||
'id' => 'sportspress_staff_show_current_teams',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -85,7 +85,7 @@ if ( ! class_exists( 'SP_Settings_Staff' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Past Teams', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Past Teams', 'sportspress' ),
|
||||
'id' => 'sportspress_staff_show_past_teams',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
@@ -93,8 +93,8 @@ if ( ! class_exists( 'SP_Settings_Staff' ) ) :
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Nationality', 'sportspress' ),
|
||||
'desc' => __( 'Display national flags', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Nationality', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Display national flags', 'sportspress' ),
|
||||
'id' => 'sportspress_staff_show_flags',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
|
||||
@@ -24,7 +24,7 @@ if ( ! class_exists( 'SP_Settings_Status' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'status';
|
||||
$this->label = __( 'System Status', 'sportspress' );
|
||||
$this->label = esc_attr__( 'System Status', 'sportspress' );
|
||||
|
||||
if ( defined( 'WP_DEBUG' ) && true === WP_DEBUG && current_user_can( 'manage_options' ) ) {
|
||||
add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 99 );
|
||||
@@ -105,7 +105,7 @@ if ( ! class_exists( 'SP_Settings_Status' ) ) :
|
||||
$memory = sp_let_to_num( WP_MEMORY_LIMIT );
|
||||
|
||||
if ( $memory < 67108864 ) {
|
||||
echo '<mark class="error">' . sprintf( esc_html__( '%1$s - We recommend setting memory to at least 64MB. See: <a href="%2$s">Increasing memory allocated to PHP</a>', 'sportspress' ), esc_html( size_format( $memory ) ), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP' ) . '</mark>';
|
||||
echo '<mark class="error">' . wp_kses_post( sprintf( esc_attr__( '%1$s - We recommend setting memory to at least 64MB. See: <a href="%2$s">Increasing memory allocated to PHP</a>', 'sportspress' ), esc_html( size_format( $memory ) ), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP' ) ) . '</mark>';
|
||||
} else {
|
||||
echo '<mark class="yes">' . esc_html( size_format( $memory ) ) . '</mark>';
|
||||
}
|
||||
@@ -164,9 +164,9 @@ if ( ! class_exists( 'SP_Settings_Status' ) ) :
|
||||
<?php
|
||||
$default_timezone = date_default_timezone_get();
|
||||
if ( 'UTC' !== $default_timezone ) {
|
||||
echo '<mark class="error">' . sprintf( esc_html__( 'Default timezone is %s - it should be UTC', 'sportspress' ), $default_timezone ) . '</mark>';
|
||||
echo '<mark class="error">' . sprintf( esc_html__( 'Default timezone is %s - it should be UTC', 'sportspress' ), esc_attr( $default_timezone ) ) . '</mark>';
|
||||
} else {
|
||||
echo '<mark class="yes">' . sprintf( esc_html__( 'Default timezone is %s', 'sportspress' ), $default_timezone ) . '</mark>';
|
||||
echo '<mark class="yes">' . sprintf( esc_html__( 'Default timezone is %s', 'sportspress' ), esc_attr( $default_timezone ) ) . '</mark>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@@ -175,28 +175,28 @@ if ( ! class_exists( 'SP_Settings_Status' ) ) :
|
||||
$posting = array();
|
||||
|
||||
// fsockopen/cURL
|
||||
$posting['fsockopen_curl']['name'] = __( 'fsockopen/cURL', 'sportspress' );
|
||||
$posting['fsockopen_curl']['name'] = esc_attr__( 'fsockopen/cURL', 'sportspress' );
|
||||
if ( function_exists( 'fsockopen' ) || function_exists( 'curl_init' ) ) {
|
||||
if ( function_exists( 'fsockopen' ) && function_exists( 'curl_init' ) ) {
|
||||
$posting['fsockopen_curl']['note'] = __( 'Your server has fsockopen and cURL enabled.', 'sportspress' );
|
||||
$posting['fsockopen_curl']['note'] = esc_attr__( 'Your server has fsockopen and cURL enabled.', 'sportspress' );
|
||||
} elseif ( function_exists( 'fsockopen' ) ) {
|
||||
$posting['fsockopen_curl']['note'] = __( 'Your server has fsockopen enabled, cURL is disabled.', 'sportspress' );
|
||||
$posting['fsockopen_curl']['note'] = esc_attr__( 'Your server has fsockopen enabled, cURL is disabled.', 'sportspress' );
|
||||
} else {
|
||||
$posting['fsockopen_curl']['note'] = __( 'Your server has cURL enabled, fsockopen is disabled.', 'sportspress' );
|
||||
$posting['fsockopen_curl']['note'] = esc_attr__( 'Your server has cURL enabled, fsockopen is disabled.', 'sportspress' );
|
||||
}
|
||||
$posting['fsockopen_curl']['success'] = true;
|
||||
} else {
|
||||
$posting['fsockopen_curl']['note'] = __( 'Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'sportspress' ) . '</mark>';
|
||||
$posting['fsockopen_curl']['note'] = esc_attr__( 'Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'sportspress' ) . '</mark>';
|
||||
$posting['fsockopen_curl']['success'] = false;
|
||||
}
|
||||
|
||||
// SOAP
|
||||
$posting['soap_client']['name'] = __( 'SOAP Client', 'sportspress' );
|
||||
$posting['soap_client']['name'] = esc_attr__( 'SOAP Client', 'sportspress' );
|
||||
if ( class_exists( 'SoapClient' ) ) {
|
||||
$posting['soap_client']['note'] = __( 'Your server has the SOAP Client class enabled.', 'sportspress' );
|
||||
$posting['soap_client']['note'] = esc_attr__( 'Your server has the SOAP Client class enabled.', 'sportspress' );
|
||||
$posting['soap_client']['success'] = true;
|
||||
} else {
|
||||
$posting['soap_client']['note'] = sprintf( __( 'Your server does not have the <a href="%s">SOAP Client</a> class enabled - some gateway plugins which use SOAP may not work as expected.', 'sportspress' ), 'http://php.net/manual/en/class.soapclient.php' ) . '</mark>';
|
||||
$posting['soap_client']['note'] = sprintf( esc_attr__( 'Your server does not have the <a href="%s">SOAP Client</a> class enabled - some gateway plugins which use SOAP may not work as expected.', 'sportspress' ), 'http://php.net/manual/en/class.soapclient.php' ) . '</mark>';
|
||||
$posting['soap_client']['success'] = false;
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ if ( ! class_exists( 'SP_Settings_Status' ) ) :
|
||||
// link the plugin name to the plugin url if available
|
||||
$plugin_name = $plugin_data['Name'];
|
||||
if ( ! empty( $plugin_data['PluginURI'] ) ) {
|
||||
$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . __( 'Visit plugin homepage', 'sportspress' ) . '">' . $plugin_name . '</a>';
|
||||
$plugin_name = '<a href="' . esc_url( $plugin_data['PluginURI'] ) . '" title="' . esc_attr__( 'Visit plugin homepage', 'sportspress' ) . '">' . $plugin_name . '</a>';
|
||||
}
|
||||
|
||||
if ( strstr( $dirname, 'sportspress' ) ) {
|
||||
@@ -277,11 +277,11 @@ if ( ! class_exists( 'SP_Settings_Status' ) ) :
|
||||
}
|
||||
|
||||
if ( ! empty( $version_data['version'] ) && version_compare( $version_data['version'], $plugin_data['Version'], '>' ) ) {
|
||||
$version_string = ' – <strong style="color:red;">' . $version_data['version'] . ' ' . __( 'is available', 'sportspress' ) . '</strong>';
|
||||
$version_string = ' – <strong style="color:red;">' . $version_data['version'] . ' ' . esc_attr__( 'is available', 'sportspress' ) . '</strong>';
|
||||
}
|
||||
}
|
||||
|
||||
$sp_plugins[] = $plugin_name . ' ' . __( 'by', 'sportspress' ) . ' ' . $plugin_data['Author'] . ' ' . __( 'version', 'sportspress' ) . ' ' . $plugin_data['Version'] . $version_string;
|
||||
$sp_plugins[] = $plugin_name . ' ' . esc_attr__( 'by', 'sportspress' ) . ' ' . $plugin_data['Author'] . ' ' . esc_attr__( 'version', 'sportspress' ) . ' ' . $plugin_data['Version'] . $version_string;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -306,7 +306,7 @@ if ( ! class_exists( 'SP_Settings_Status' ) ) :
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php esc_html_e( 'Sport', 'sportspress' ); ?>:</td>
|
||||
<td><?php echo get_option( 'sportspress_sport', __( 'None', 'sportspress' ) ); ?></td>
|
||||
<td><?php echo esc_attr( get_option( 'sportspress_sport', __( 'None', 'sportspress' ) ) ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php esc_html_e( 'Event Outcomes', 'sportspress' ); ?>:</td>
|
||||
@@ -636,7 +636,7 @@ if ( ! class_exists( 'SP_Settings_Status' ) ) :
|
||||
$theme_version = $status->get_file_version( $theme_file );
|
||||
|
||||
if ( $core_version && ( empty( $theme_version ) || version_compare( $theme_version, $core_version, '<' ) ) ) {
|
||||
$found_files[ $plugin_name ][] = sprintf( __( '<code>%1$s</code> version <strong style="color:red">%2$s</strong> is out of date. The core version is %3$s', 'sportspress' ), basename( $theme_file ), $theme_version ? $theme_version : '-', $core_version );
|
||||
$found_files[ $plugin_name ][] = sprintf( esc_attr__( '<code>%1$s</code> version <strong style="color:red">%2$s</strong> is out of date. The core version is %3$s', 'sportspress' ), basename( $theme_file ), $theme_version ? $theme_version : '-', $core_version );
|
||||
} else {
|
||||
$found_files[ $plugin_name ][] = sprintf( '<code>%s</code>', basename( $theme_file ) );
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ if ( ! class_exists( 'SP_Settings_Teams' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'teams';
|
||||
$this->label = __( 'Teams', 'sportspress' );
|
||||
$this->label = esc_attr__( 'Teams', 'sportspress' );
|
||||
$this->template = 'team';
|
||||
|
||||
add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
||||
@@ -44,7 +44,7 @@ if ( ! class_exists( 'SP_Settings_Teams' ) ) :
|
||||
$settings = array_merge(
|
||||
array(
|
||||
array(
|
||||
'title' => __( 'Team Options', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Team Options', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'team_options',
|
||||
@@ -58,40 +58,40 @@ if ( ! class_exists( 'SP_Settings_Teams' ) ) :
|
||||
array( 'type' => 'team_tabs' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Staff', 'sportspress' ),
|
||||
'desc' => __( 'Link staff', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Staff', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Link staff', 'sportspress' ),
|
||||
'id' => 'sportspress_team_link_staff',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Link', 'sportspress' ),
|
||||
'desc' => __( 'Link teams', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Link', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Link teams', 'sportspress' ),
|
||||
'id' => 'sportspress_link_teams',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Venue', 'sportspress' ),
|
||||
'desc' => __( 'Link venues', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Venue', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Link venues', 'sportspress' ),
|
||||
'id' => 'sportspress_team_link_venues',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Visit Site', 'sportspress' ),
|
||||
'desc' => __( 'Open link in a new window/tab', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Visit Site', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Open link in a new window/tab', 'sportspress' ),
|
||||
'id' => 'sportspress_team_site_target_blank',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Comments', 'sportspress' ),
|
||||
'desc' => __( 'Allow people to post comments on Team page', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Comments', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'Allow people to post comments on Team page', 'sportspress' ),
|
||||
'id' => 'sportspress_team_comment_status',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
|
||||
@@ -24,7 +24,7 @@ if ( ! class_exists( 'SP_Settings_Text' ) ) :
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->id = 'text';
|
||||
$this->label = __( 'Text', 'sportspress' );
|
||||
$this->label = esc_attr__( 'Text', 'sportspress' );
|
||||
|
||||
add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
||||
add_action( 'sportspress_settings_' . $this->id, array( $this, 'output' ) );
|
||||
@@ -40,9 +40,9 @@ if ( ! class_exists( 'SP_Settings_Text' ) ) :
|
||||
|
||||
$settings = array(
|
||||
array(
|
||||
'title' => __( 'Text', 'sportspress' ),
|
||||
'title' => esc_attr__( 'Text', 'sportspress' ),
|
||||
'type' => 'title',
|
||||
'desc' => __( 'The following options affect how words are displayed on the frontend.', 'sportspress' ),
|
||||
'desc' => esc_attr__( 'The following options affect how words are displayed on the frontend.', 'sportspress' ),
|
||||
'id' => 'text_options',
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user