4 * Copyright (c) 2003-2008 John Willinsky
\r
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
\r
9 * $Id: site.tpl,v 1.5 2009/03/18 05:36:25 asmecher Exp $
\r
13 {assign var="pageTitleTranslated" value=$siteTitle}
\r
15 {include file="common/header.tpl"}
\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
38 <h3>{$press->getLocalizedName()|escape}</h3>
\r
39 {if $press->getDescription()}
\r
40 <p>{$press->getDescription()|nl2br}</p>
\r
43 <p><a href="{url press=$press->getPath()}" class="action">{translate key="site.pressView"}</a></p>
\r
44 <!--REGISTER | NEW RELEASES perhaps -->
\r
47 {include file="common/footer.tpl"}
\r