69 lines
3.1 KiB
PHP
69 lines
3.1 KiB
PHP
<?php
|
|
$sportspress_texts = array(
|
|
'sp_team' => array(
|
|
'Enter title here' => __( 'Team', 'sportspress' ),
|
|
'Set featured image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
|
|
'Set Featured Image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
|
|
'Parent' => sprintf( __( 'Parent %s', 'sportspress' ), __( 'Team', 'sportspress' ) ),
|
|
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Logo', 'sportspress' ) )
|
|
),
|
|
'sp_event' => array(
|
|
'Enter title here' => '',
|
|
'Scheduled for: <b>%1$s</b>' => __( 'Kick-off', 'sportspress' ) . ': <b>%1$s</b>',
|
|
'Published on: <b>%1$s</b>' => __( 'Kick-off', 'sportspress' ) . ': <b>%1$s</b>',
|
|
'Publish <b>immediately</b>' => __( 'Kick-off', 'sportspress' ) . ': <b>%1$s</b>'
|
|
),
|
|
'sp_player' => array(
|
|
'Enter title here' => __( 'Name', 'sportspress' ),
|
|
'Set featured image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
|
'Set Featured Image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
|
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
|
'Scheduled for: <b>%1$s</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>',
|
|
'Published on: <b>%1$s</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>',
|
|
'Publish <b>immediately</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>'
|
|
),
|
|
'sp_staff' => array(
|
|
'Enter title here' => __( 'Name', 'sportspress' ),
|
|
'Set featured image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
|
'Set Featured Image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
|
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
|
'Scheduled for: <b>%1$s</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>',
|
|
'Published on: <b>%1$s</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>',
|
|
'Publish <b>immediately</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>'
|
|
),
|
|
'sp_table' => array(
|
|
'Enter title here' => ''
|
|
)
|
|
);
|
|
|
|
$sportspress_thumbnail_texts = array(
|
|
'sp_team' => array(
|
|
'Set featured image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
|
|
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Logo', 'sportspress' ) )
|
|
),
|
|
'sp_player' => array(
|
|
'Set featured image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
|
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) )
|
|
),
|
|
'sp_staff' => array(
|
|
'Set featured image' => sprintf( __( 'Add %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
|
|
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) )
|
|
)
|
|
);
|
|
|
|
$sportspress_options = array(
|
|
'settings' => array(
|
|
'sp_event_team_count' => 2,
|
|
'sp_team_stats_columns' => '',
|
|
'sp_event_stats_columns' => '',
|
|
'sp_player_stats_columns' => ''
|
|
)
|
|
);
|
|
|
|
foreach( $sportspress_options as $optiongroupkey => $optiongroup ) {
|
|
foreach( $optiongroup as $key => $value ) {
|
|
//if ( get_option( $key ) === false )
|
|
update_option( $key, $value );
|
|
}
|
|
}
|
|
?>
|