1. PublicWhip
  2. Untitled project
  3. PublicWhip v1

Branches

templating

View source
templating
  • Contributors
    1. Loading...
Author Commit Message Date Builds
18 commits behind master.
Paul Waring
Add user account navigation bar/login links. This is similar to the account_navbar() function, but utilising templates instead of building a HTML string in PHP.
Paul Waring
Extract user and request data and assign to template when using HTML. This allows us to have template checks such as: {% if user.logged_in %} <!-- Display user bar --> {% else %} <!-- Display login link --> {% endif %}
Paul Waring
Tidying up base template 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.
Paul Waring
Change template directory constant to HTML directory.
Paul Waring
Initial templating system (just one page for now). 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…