Concatenante delimiter example when more than 3
This commit is contained in:
@@ -393,7 +393,11 @@ class SP_Settings_Events extends SP_Settings_Page {
|
|||||||
public function delimiter_setting() {
|
public function delimiter_setting() {
|
||||||
$selection = get_option( 'sportspress_event_teams_delimiter', 'vs' );
|
$selection = get_option( 'sportspress_event_teams_delimiter', 'vs' );
|
||||||
$limit = get_option( 'sportspress_event_teams', 2 );
|
$limit = get_option( 'sportspress_event_teams', 2 );
|
||||||
|
if ( 3 >= $limit ) {
|
||||||
$example = str_repeat( __( 'Team', 'sportspress' ) . ' %1$s ', $limit );
|
$example = str_repeat( __( 'Team', 'sportspress' ) . ' %1$s ', $limit );
|
||||||
|
} else {
|
||||||
|
$example = str_repeat( __( 'Team', 'sportspress' ) . ' %1$s ', 3 ) . '…';
|
||||||
|
}
|
||||||
$example = rtrim( $example, ' %1$s ' );
|
$example = rtrim( $example, ' %1$s ' );
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
|
|||||||
Reference in New Issue
Block a user