diff --git a/includes/admin/settings/class-sp-settings-teams.php b/includes/admin/settings/class-sp-settings-teams.php index 2c17ebab..6cfad698 100644 --- a/includes/admin/settings/class-sp-settings-teams.php +++ b/includes/admin/settings/class-sp-settings-teams.php @@ -48,6 +48,14 @@ class SP_Settings_Teams extends SP_Settings_Page { 'type' => 'checkbox', ), + array( + 'title' => __( 'Visit Site', 'sportspress' ), + 'desc' => __( 'Open link in a new window/tab', 'sportspress' ), + 'id' => 'sportspress_team_site_target_blank', + 'default' => 'no', + 'type' => 'checkbox', + ), + array( 'type' => 'sectionend', 'id' => 'team_options' ), array( 'title' => __( 'League Tables', 'sportspress' ), 'type' => 'title', 'id' => 'table_options' ), diff --git a/templates/team-link.php b/templates/team-link.php index 0e11c44a..e4c138d6 100644 --- a/templates/team-link.php +++ b/templates/team-link.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 1.1 + * @version 1.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly @@ -17,7 +17,7 @@ $url = get_post_meta( $id, 'sp_url', true ); if ( empty( $url ) ) return false; ?> -