Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: templating
Commits on Jun 26, 2011
  1. Paul Waring

    Add user account navigation bar/login links.

    pwaring authored
    This is similar to the account_navbar() function, but utilising templates instead of building a HTML string in PHP.
  2. Paul Waring

    Extract user and request data and assign to template when using HTML.

    pwaring authored
    This allows us to have template checks such as:
    
    {% if user.logged_in %}
      <!-- Display user bar -->
    {% else %}
      <!-- Display login link -->
    {% endif %}
  3. Paul Waring

    Tidying up base template

    pwaring authored
    1. Use colour_scheme variable to decide which CSS file to load (default, scotland or lords).
    
    2. Add in favicon tags.
    
    3. Remove 'X days to close' banner as the deadline will pass soon and there is little point in adding support for it in the templating system.
Commits on Jun 20, 2011
  1. Paul Waring
  2. Paul Waring

    Initial templating system (just one page for now).

    pwaring authored
    1. Import Twig library.
    2. New PW_Template classes to wrap around Twig and set up defaults.
    3. All header/footer HTML moved into base layout (base.html).
    4. Colour schemes moved into CSS>
    5. CSS for Lords and Scotland given more obvious names ('lords.css' instead of 'red.css') and all CSS kept in one directory.
    
    Still need to sort out displaying account menu and secondary links, as well as staging site banner.
Commits on Jun 18, 2011
  1. Paul Waring
  2. Francis Irving

    Fix spelling mistake

    frabcus authored
Commits on Jun 16, 2011
  1. Paul Waring
  2. Paul Waring
  3. Paul Waring
Commits on Jun 15, 2011
  1. Francis Irving
  2. Thoughts/todo on code rewrite

    Paul Waring authored
  3. Removing create table SQL

    Paul Waring authored
    Remove create table SQL as this is included in ../loader/create.sql and the code is commented out anyway.
  4. Adding braces to make code clearer

    Paul Waring authored
    These are not required but make it more obvious as to which statements fall within a block.
  5. Change hidden hash variable into constant

    Paul Waring authored
    By changing the hash variable into a constant:
    
    1. We can get rid of some of the global definitions (constants are global regardless).
    
    2. We avoid anyone accidentally changing the value elsewhere in the code.
    
    3. We can use defined() to check whether the value has been set, because !$var will be true when $var = ''.
Commits on Jun 13, 2011
  1. Update link to forum post

    publicwhip authored
Commits on Jun 12, 2011
  1. split is now explode in new PHP

    publicwhip authored
  2. Registration changes for PHP update

    publicwhip authored
Commits on May 10, 2011
  1. new version of PHP

    publicwhip authored
  2. ereg deprecated

    publicwhip authored
  3. split is now explode

    publicwhip authored
  4. Typo

    publicwhip authored
Commits on May 9, 2011
  1. Update for new laptop

    frabcus authored
Commits on Apr 11, 2011
  1. Link to reason for date

    publicwhip authored
  2. Show time

    publicwhip authored
  3. Deadline

    publicwhip authored
Commits on Mar 22, 2011
  1. Round to 2 decimal places

    publicwhip authored
Commits on Mar 20, 2011
  1. Stuff found on live

    publicwhip authored
Commits on Dec 11, 2010
  1. fix spelling of frought

    publicwhip authored
Commits on Sep 23, 2010
Commits on Sep 21, 2010
  1. Remove debugging.

    publicwhip authored
  2. Remove loading SP motinos print statements

    publicwhip authored
  3. Remove errors for short sections

    publicwhip authored
Commits on Sep 20, 2010
  1. Avoid concatentation

    publicwhip authored
Something went wrong with that request. Please try again.