baseline
[omp.pkp.sfu.ca.git] / templates / index / site.tpl
blobbe098baf2e832784064d74dcb9d15be3a9365ea2
1 {**\r
2  * site.tpl\r
3  *\r
4  * Copyright (c) 2003-2008 John Willinsky\r
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.\r
6  *\r
7  * Site index.\r
8  *\r
9  * $Id: site.tpl,v 1.5 2009/03/18 05:36:25 asmecher Exp $\r
10  *}\r
11 {strip}\r
12 {if $siteTitle}\r
13         {assign var="pageTitleTranslated" value=$siteTitle}\r
14 {/if}\r
15 {include file="common/header.tpl"}\r
16 {/strip}\r
18 <br />\r
20 {if $intro}{$intro|nl2br}{/if}\r
22 {iterate from=presses item=press}\r
24         {assign var="displayHomePageImage" value=$press->getLocalizedSetting('homepageImage')}\r
25         {assign var="displayHomePageLogo" value=$press->getPressPageHeaderLogo(true)}\r
26         {assign var="displayPageHeaderLogo" value=$press->getPressPageHeaderLogo()}\r
28         <div style="clear:left;">\r
29         {if $displayHomePageImage && is_array($displayHomePageImage)}\r
30                 <div class="homepageImage"><a href="{url press=$press->getPath()}" class="action"><img src="{$pressFilesPath}{$press->getId()}/{$displayHomePageImage.uploadName|escape:"url"}" {if $displayPageHeaderLogo.altText != ''}alt="{$displayPageHeaderLogo.altText|escape}"{else}alt="{translate key="common.pageHeaderLogo.altText"}"{/if} /></a></div>\r
31         {elseif $displayHomePageLogo && is_array($displayHomePageLogo)}\r
32                 <div class="homepageImage"><a href="{url press=$press->getPath()}" class="action"><img src="{$pressFilesPath}{$press->getId()}/{$displayHomePageLogo.uploadName|escape:"url"}" {if $displayPageHeaderLogo.altText != ''}alt="{$displayPageHeaderLogo.altText|escape}"{else}alt="{translate key="common.pageHeaderLogo.altText"}"{/if} /></a></div>\r
33         {elseif $displayPageHeaderLogo && is_array($displayPageHeaderLogo)}\r
34                 <div class="homepageImage"><a href="{url press=$press->getPath()}" class="action"><img src="{$pressFilesPath}{$press->getId()}/{$displayPageHeaderLogo.uploadName|escape:"url"}" {if $displayPageHeaderLogo.altText != ''}alt="{$displayPageHeaderLogo.altText|escape}"{else}alt="{translate key="common.pageHeaderLogo.altText"}"{/if} /></a></div>\r
35         {/if}\r
36         </div>\r
38         <h3>{$press->getLocalizedName()|escape}</h3>\r
39         {if $press->getDescription()}\r
40                 <p>{$press->getDescription()|nl2br}</p>\r
41         {/if}\r
43         <p><a href="{url press=$press->getPath()}" class="action">{translate key="site.pressView"}</a></p>\r
44         <!--REGISTER | NEW RELEASES perhaps -->\r
45 {/iterate}\r
47 {include file="common/footer.tpl"}\r