diff --git a/includes/admin/class-sp-admin-sports.php b/includes/admin/class-sp-admin-sports.php index 3abef537..8b737c0f 100644 --- a/includes/admin/class-sp-admin-sports.php +++ b/includes/admin/class-sp-admin-sports.php @@ -261,6 +261,7 @@ class SP_Admin_Sports { __( 'Australian Rules Football', 'sportspress' ); __( 'Handball', 'sportspress' ); __( 'Ice Hockey', 'sportspress' ); + __( 'Lacrosse', 'sportspress' ); __( 'Netball', 'sportspress' ); __( 'Rugby League', 'sportspress' ); __( 'Rugby Union', 'sportspress' ); diff --git a/includes/admin/class-sp-admin-welcome.php b/includes/admin/class-sp-admin-welcome.php index a5e1e40f..b770fe29 100644 --- a/includes/admin/class-sp-admin-welcome.php +++ b/includes/admin/class-sp-admin-welcome.php @@ -335,6 +335,7 @@ class SP_Admin_Welcome { 'Oscar Wong', + __( 'Lacrosse', 'sportspress' ) => 'Jamie', ); ?>
diff --git a/presets/lacrosse.json b/presets/lacrosse.json new file mode 100644 index 00000000..bc9935bc --- /dev/null +++ b/presets/lacrosse.json @@ -0,0 +1,49 @@ +{ + "name": "Lacrosse", + "positions": [ + "Goalie", + "Defense", + "Midfield", + "Attack" + ], + "outcomes": [ + { "name" : "Win", "condition" : ">" }, + { "name" : "Loss", "condition" : "<" }, + { "name" : "Tie", "condition" : "=" }, + "Overtime" + ], + "results": [ + { "name" : "1", "description" : "1st quarter goals" }, + { "name" : "2", "description" : "2nd quarter goals" }, + { "name" : "3", "description" : "3rd quarter goals" }, + { "name" : "4", "description" : "4th quarter goals" }, + { "name" : "OT", "id" : "ot", "description" : "Overtime goals" }, + { "name" : "T", "id" : "goals", "description" : "Total goals", "primary" : 1 } + ], + "performance": [ + "Goals", + "Assists", + "Shots", + { "name" : "SoG", "description" : "Shots on goal" }, + "Penalties" + ], + "columns": [ + { "name" : "P", "equation" : "$eventsplayed", "description" : "Games played" }, + { "name" : "W", "equation" : "$win", "description" : "Wins" }, + { "name" : "L", "equation" : "$loss", "description" : "Losses" }, + { "name" : "T", "equation" : "$tie", "description" : "Ties" }, + { "name" : "F", "equation" : "$goalsfor", "priority" : 3, "description" : "Goals for" }, + { "name" : "A", "equation" : "$goalsagainst", "description" : "Goals against" }, + { "name" : "+/-", "equation" : "$goalsfor - $goalsagainst", "priority" : 2, "description" : "Goal difference" }, + { "name" : "Pts", "equation" : "$win * 2 + $tie", "priority" : 1, "description" : "Team points" } + ], + "metrics": [ + "Height", + "Weight" + ], + "statistics": [ + { "name" : "Games", "equation" : "$eventsplayed", "description" : "Games played" }, + { "name" : "Shooting %", "equation" : "$goals / $shots", "precision" : 1, "description" : "Shooting percentage" }, + { "name" : "SoG %", "equation" : "$sog / $shots", "precision" : 1, "description" : "Shots on goal percentage" } + ] +} \ No newline at end of file