diff --git a/settingstemplate b/settingstemplate index 430cdd432b20465904cb19a6160c91eba35774a8..8764ac83cea35210944200816b35989c835d5d77 100644 --- a/settingstemplate +++ b/settingstemplate @@ -1,4 +1,12 @@ <?php +// Name of the website +define('SUCS_SITENAME', 'SUCS'); + +// Disclaimer/Copyright notice +define('SUCS_FOOTERMSG', 'SUCSsite - created by members of <a href="http://sucs.org/">SUCS</a>'); +// ...in Welsh +define('SUCS_FOOTERMSG_cy', 'SUCSsite - creu gan ymaelodau <a href="http://sucs.org/">CGPA</a>'); + // root directory for website - *with* trailing / define('SUCS_BASEDIR', '$BASEDIR/'); diff --git a/templates/foot.cy.tpl b/templates/foot.cy.tpl index 5d1fd80c95d602d8beeea46c4ef765a3b41af2d0..29c2f5d0b03087ef62ef491430294fb8cf10403b 100644 --- a/templates/foot.cy.tpl +++ b/templates/foot.cy.tpl @@ -13,9 +13,7 @@ <div class="cornerBottomLeft"> <div class="cornerBottomRight"> - <p> - Cynnalwyd y safle hwn a cynllunwyd gan CGPA. Mae personau perthnasol sy biau y barnau rhain nid y gymdeithas. - </p> + <p>{$smarty.const.SUCS_FOOTERMSG_cy}</p> </div> </div> </div> diff --git a/templates/foot.tpl b/templates/foot.tpl index 80574659c6e6e3e450af8c1b5643e19cb51f8607..2f51fd37df026cc916d60cc61eb0e0c950aea686 100644 --- a/templates/foot.tpl +++ b/templates/foot.tpl @@ -17,7 +17,7 @@ <div id="footer"> <div class="cornerBottomLeft"> <div class="cornerBottomRight"> - <p>Site designed and maintained by SUCS. All opinions expressed are those of the relevant individual and not of the society.</p> + <p>{$smarty.const.SUCS_FOOTERMSG}</p> {if isset($totaltime)}<p>Script executed in {$totaltime} seconds</p>{/if} </div> </div> diff --git a/templates/head.tpl b/templates/head.tpl index 2f8ed490f80dc36928557711abe89cea4026e391..2b0caf0662776531dd67830e15576796418c7168 100644 --- a/templates/head.tpl +++ b/templates/head.tpl @@ -3,7 +3,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$language.code}"> <head> - <title>{$title} - SUCS</title> + <title>{$title} - {$smarty.const.SUCS_SITENAME}</title> <link rel="SHORTCUT ICON" href="/favicon.ico" /> <script type="text/javascript" src="/js/cb.js"></script> diff --git a/templates/search.cy.tpl b/templates/search.cy.tpl index d174d04cdef4736f7682660871b77ec2c44dc4f7..c300e2ff979f6d8bc913015877d161c35f8d334d 100644 --- a/templates/search.cy.tpl +++ b/templates/search.cy.tpl @@ -9,9 +9,9 @@ <input class="submit" type="submit" name="sa" value="Chwilio" /> </div> - <input type="hidden" name="cof" value="S:http://sucs.org;AH:left;LH:76;L:http://beta.sucs.org/images/sucslogo-halo.png;LW:170;AWFID:624aceb6f2753532;" /> - <input type="hidden" name="domains" value="sucs.org" /> - <input type="hidden" name="sitesearch" value="sucs.org" /> + <input type="hidden" name="cof" value="S:http://{$smarty.const.SUCS_BASEURL};AH:left;LH:76;L:http://{$smarty.const.SUCS_PREFERRED_HOSTNAME}{$smarty.const.SUCS_BASEURL}/images/sucslogo-halo.png;LW:170;AWFID:624aceb6f2753532;" /> + <input type="hidden" name="domains" value="{$smarty.const.SUCS_BASEURL}" /> + <input type="hidden" name="sitesearch" value="{$smarty.const.SUCS_BASEURL}" /> </div> </form> <div class="clear"> </div> diff --git a/templates/search.tpl b/templates/search.tpl index 308d379c05cc89ea5e183fb93505d8671f48fa38..2620140321eeae939d4ee05fb70acde0246011c0 100644 --- a/templates/search.tpl +++ b/templates/search.tpl @@ -1,5 +1,5 @@ <div class="cbb"> - <h3>Search SUCS</h3> + <h3>Search {$smarty.const.SUCS_SITENAME}</h3> <form method="get" action="http://www.google.co.uk/custom"> <div id="search"> <input type="text" class="text" name="q" maxlength="255" value="" /><br /> @@ -9,9 +9,9 @@ <input class="submit" type="submit" name="sa" value="Search" /> </div> - <input type="hidden" name="cof" value="S:http://sucs.org;AH:left;LH:76;L:http://beta.sucs.org/images/sucslogo-halo.png;LW:170;AWFID:624aceb6f2753532;" /> - <input type="hidden" name="domains" value="sucs.org" /> - <input type="hidden" name="sitesearch" value="sucs.org" /> + <input type="hidden" name="cof" value="S:http://{$smarty.const.SUCS_PREFERRED_HOSTNAME};AH:left;LH:76;L:http://{$smarty.const.SUCS_PREFERRED_HOSTNAME}{$smarty.const.SUCS_BASEURL}/images/sucslogo-halo.png;LW:170;AWFID:624aceb6f2753532;" /> + <input type="hidden" name="domains" value="{$smarty.const.SUCS_PREFERRED_HOSTNAME}" /> + <input type="hidden" name="sitesearch" value="{$smarty.const.SUCS_PREFERRED_HOSTNAME}" /> </div> </form>