Documentation

The codex has been updated for Sports Bench 2.0 which is slated for an early September release. This is to help those who have made their own customizations get ready for the 2.0 release which will be radically different from a code perspective. Learn more about the changes you can expect with the code in Sports Bench 2.0.

Display::border_top_colors( $team_one_id, $team_two_id = null, $div = null )

Adds in top border colors for a div based on the entered teams.

Parameters

  • int $team_one_id — The ID for the first team.
  • int|null $team_two_id — The ID for the second team.
  • int|null $div — The ID of the div the border is for.

Returns

  • string — Styling for the top border of the div.

Since: 2.0

Source

  • /includes/classes/base/class-display.php — 92