Changes between Version 1 and Version 2 of WebTemplateProposal


Ignore:
Timestamp:
Sep 7, 2011, 11:05:42 PM (13 years ago)
Author:
Christian Beer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebTemplateProposal

    v1 v2  
    11= Proposal for a new general website template =
     2
     3{{{
     4#!html
     5<h3 style="text-align: left; color: red">This proposal is in active development, nothing is integrated into BOINC yet!</h3>
     6}}}
    27
    38The current design of the BOINC web pages is a mixture of PHP with HTML that is grown over the years. The tight integration of PHP functions in HTML output makes it very difficult to maintain or change the layout of the individual project site. This proposal aims to separate PHP (application code) from HTML (presentation code) and provide an easy way (for a web designer) to give each project a unique look and feel. The tools described below are still under investigation if and how they could be implemented into BOINC source code.
     
    914
    1015All tools can be updated separately after implementing into BOINC source code.
     16
     17Problems to avoid:
     18 * make internationalization work with caching (different approaches possible: [http://smarty.incutio.com/?page=SmartyGettext Smarty gettext], [http://smarty.incutio.com/?page=SmartyMultilanguageSupport MultiLanguage support])
     19 * allow project specific template enhancements or replacement without tampering the standard templates
     20
     21What using Smarty means:
     22 * No HTML-Tags in any .php or .inc files needed (read: allowed)
     23 * Output of .php must be assigned to Smarty-variables that are then replaced in the template files
     24 * Ouptut of lists must be assigned to arrays that can then be iterated by Smarty within the template (Sample follows)
     25
     26Steps to migrate to Smarty:
     27 1. develop a directory structure to separate PHP files, Smarty files, Template files (including Stylesheets) and Image files
     28 1. document available Smarty functions/modifiers to be used in templates, best practice for using Smarty within PHP files
     29 1. develop templates based on Grid system for all public visible files (TODO: find a way to test Templates with Smarty but without BOINC server)
     30 1. implement new directory structure, Smarty and templates into BOINC source
     31 1. change PHP files to use Smarty templates