Us_Page.php 828 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. require_once($path["page"] . "Page.php");
  3. /**
  4. * Us page model.
  5. */
  6. class Us_Page extends Page{
  7. /**
  8. * Constructor.
  9. *
  10. * Retrieves the data and initializes the variables.
  11. *
  12. * @param db Connection to the database.
  13. * @param lang Lowercase, two-letter language code.
  14. */
  15. public function __construct($db, $lang){
  16. global $path;
  17. global $base_url;
  18. parent:: __construct($db, $lang);
  19. $this->template = $path["template"] . "us.php";
  20. $this->title = $this->string["section_us"] . " - " . $data["name"];
  21. $this->description = $this->string["section_us"] . " - " . $data["name"];
  22. $this->canonical = $base_url . "/" . $url->us . "/"";
  23. }
  24. }
  25. ?>