Refactored a div class tag to be more general.
Added site style to the secure pages. Renamed LoginController to SecureLoginController.
This commit is contained in:
16
lib/View.php
16
lib/View.php
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once "prelude.inc.php";
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
@@ -10,19 +11,18 @@ class View
|
||||
{
|
||||
|
||||
public function __construct() {
|
||||
$this->addNav("Home", "./");
|
||||
$this->addNav("Progress", "./");
|
||||
$this->addNav("Meet The Team", "./about.php");
|
||||
$this->addNav("Home", ROOT);
|
||||
$this->addNav("Meet The Team", ROOT . "about.php");
|
||||
$this->addNav("Secure", ROOT ."secure");
|
||||
$this->addNav("Course Site", "https://cse.msu.edu/~cse435/");
|
||||
$this->addNav("Secure", "./secure");
|
||||
}
|
||||
|
||||
public function head(){
|
||||
|
||||
$root = ROOT;
|
||||
$html = <<<HTML
|
||||
<meta charset="utf-8">
|
||||
<meta charset="UTF-8">
|
||||
<title>$this->title</title>
|
||||
<link href="./style/default.css" rel="stylesheet" type="text/css">
|
||||
<link href="{$root}style/default.css" rel="stylesheet" type="text/css">
|
||||
HTML;
|
||||
|
||||
return $html;
|
||||
@@ -80,6 +80,6 @@ HTML;
|
||||
}
|
||||
|
||||
private $links = array();
|
||||
private $title = "Not Set!";
|
||||
protected $title = "Not Set!";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user