Home_Page.php 943 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. require_once($path["page"] . "Page.php");
  3. /**
  4. * Home page model.
  5. */
  6. class Home_Page extends Page{
  7. private $max_projects = 3;
  8. /**
  9. * Constructor.
  10. *
  11. * Retrieves the data and initializes the variables.
  12. *
  13. * @param SQLite3 $db Connection to the database.
  14. * @param string $lang Lowercase, two-letter language code.
  15. */
  16. public function __construct($db){
  17. global $path;
  18. global $root;
  19. parent::__construct($db);
  20. $this->view = $path["view"] . "home.php";
  21. $this->title = "SWDB";
  22. $this->name = "";
  23. $this->description = "";
  24. $this->favicon = $path["img"]["layout"] . "logo/logo.svg";
  25. $this->icon = $path["img"]["layout"] . "logo/logo.svg";
  26. $this->canonical = $root;
  27. $this->author = $root;
  28. }
  29. }
  30. ?>