function OnPrePageLoad() { # set up page $this->SetOpenGraphType("sports_league"); $this->SetPageTitle("League table for the " . $this->season->GetCompetitionName()); require_once "search/competition-search-adapter.class.php"; $adapter = new CompetitionSearchAdapter($this->competition); $this->SetPageDescription($adapter->GetSearchDescription()); $this->SetContentConstraint(StoolballPage::ConstrainBox()); $this->SetContentCssClass("season-table"); }
function OnPrePageLoad() { $this->SetOpenGraphType("sports_league"); $this->SetPageTitle($this->season->GetCompetitionName()); require_once "search/competition-search-adapter.class.php"; $adapter = new CompetitionSearchAdapter($this->competition); $this->SetPageDescription($adapter->GetSearchDescription()); $this->SetContentConstraint(StoolballPage::ConstrainColumns()); }