Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Page
- {
- public $meta = array('title' => '',
- 'description' => ''
- );
- public $content = "";
- public $extra = "";
- public function Display()
- {
- echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
- \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
- <html xmlns=\"http://www.w3.org/1999/xhtml\">
- <head>
- <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
- <meta name=\"title\" content=\"".$this->meta['title']."\" />
- <meta name=\"description\" content=\"".$this->meta['description']."\" />
- <title>".$this->meta['title']."</title>
- <link rel=\"stylesheet\" type=\"text/css\" href=\"/main.css\" />
- <link href=\"http://fonts.googleapis.com/css?family=Istok+Web\" rel=\"stylesheet\" type=\"text/css\" />
- </head>
- <body>
- <!--[if lte IE 8]>
- <div id=\"ie-message\">
- You're using an oudated version of Internet Explorer. Update it to IE9 or download another browser.
- </div>
- <![endif]-->
- <div id=\"container\">
- <div id=\"menu\">
- <ul>
- <li><a href=\"/\">Home</a></li>
- <li><a href=\"/projects\">Projects</a></li>
- <li style=\"border-bottom:1px dotted #BFBFBF \"><a href=\"/contact\">Contact</a></li>
- <li><a href=\"\">Stuff</a></li>
- <li><a href=\"\">Stuff</a></li>
- </ul>
- </div>
- <div id=\"content\">"
- .$this->content;
- if (isset($this->extra)) {
- echo "<table id=\"tab\">";
- while (list($counter) = each($this->$extra)) {
- for ($i=0;$i<3;$i++) {
- echo "<tr class=\"tl\">";
- echo "<td>$counter[$i]</td>";
- echo "</tr>";
- }
- }
- }
- echo "
- <br /><br />
- </div>
- </div>
- </body>
- </html>";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement