blast007  committed cfa9472

Write out the page heading in the header template.

  • Participants
  • Parent commits 49a530e

Comments (0)

Files changed (7)

File application/controllers/main.controller.php

 class Main_Controller extends Controller {
   function action_index() {
     $this->view->section = 'home';
+    $this->view->title = "Home";

File application/views/credits.tpl.php

 <?php $this->display('header'); ?>
-    <h1>Credits</h1>
     <div>This website uses various third-party resources. These are documented here.</div>

File application/views/downloads.tpl.php

 <?php $this->display('header'); ?>
-    <h1>Downloads</h1>
     <a href="" class="download">
       <?php HTML::image('resources/images/download/windows.png', Array('width' => 128, 'height' => 128)); ?>
       <span class="os">Windows</span>

File application/views/header.tpl.php

 <html lang="en-us">
   <meta charset="utf-8" />
-  <title>BZFlag<?php if ($this->title): ?> - <?php echo $this->title; ?><?php endif; ?></title>
+  <title>BZFlag - <?php echo $this->title; ?></title>
   <?php HTML::link('css', ',400italic,700,700italic'); ?>
   <?php HTML::link('css', 'resources/css/style.css'); ?>
 <?php if ($this->section == 'home'): ?>
 <?php endif; ?>
   <div id="content"<?php if ($this->section): ?> class="<?php echo $this->section; ?>"<?php endif; ?>>
     <div id="logo"></div>
+    <h1><?php echo $this->title; ?></h1>

File application/views/help.tpl.php

 <?php $this->display('header'); ?>
-    <h1>Help</h1>
       There are lots of ways to get help with BZFlag! Many of these are also useful if you want to help contribute to the game in some way.

File application/views/home.tpl.php

 <?php $this->display('header'); ?>
-    <h1>Home</h1>
     <div>BZFlag is a free online multiplayer 3D tank battle game. The name originates from "Battle Zone Capture The Flag". It runs on Windows, Mac OSX, Linux, BSD, and other platforms. It was one of the most popular games ever on Silicon Graphics machines and continues to be developed and improved to this day.</div>
     <h2>About the project</h2>
       Found a bug, a missing feature, or just something you thing should be improved? Get involved and help make BZFlag even better! Because we are open-source, everyone can help contribute to the game. You don't even necessarily have to be a programmer to help out. You could work on writing/improving <a href="">wiki</a> pages, write documentation, etc. Check out the <?php HTML::anchor('help', 'help'); ?> page for more information!
 <?php $this->display('footer'); ?>

File application/views/media.tpl.php

 <?php $this->display('header'); ?>
-    <h1>Media</h1>
     <h2>BZFlag 2.4.x Screenshots</h2>
     <div class="screenshots">