{** * lib/pkp/templates/frontend/components/header.tpl * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @brief Common frontend site header. * * @uses $isFullWidth bool Should this page be displayed without sidebars? This * represents a page-level override, and doesn't indicate whether or not * sidebars have been configured for thesite. *} {strip} {* Determine whether a logo or title string is being displayed *} {assign var="showingLogo" value=true} {if $displayPageHeaderTitle && !$displayPageHeaderLogo && is_string($displayPageHeaderTitle)} {assign var="showingLogo" value=false} {/if} {/strip} {if !$pageTitleTranslated}{capture assign="pageTitleTranslated"}{translate key=$pageTitle}{/capture}{/if} {include file="frontend/components/headerHead.tpl"}
{translate key="navigation.skip.main"} {translate key="navigation.skip.nav"} {translate key="navigation.skip.footer"}
{* Header *}
{* Logo or site title. Only use

heading on the homepage. Otherwise that should go to the page title. *} {if $requestedOp == 'index'}

{else}
{/if} {capture assign="homeUrl"} {if $currentContext && $multipleContexts} {url page="index" router=$smarty.const.ROUTE_PAGE} {else} {url context="index" router=$smarty.const.ROUTE_PAGE} {/if} {/capture} {if $displayPageHeaderLogo && is_array($displayPageHeaderLogo)} {elseif $displayPageHeaderTitle && !$displayPageHeaderLogo && is_string($displayPageHeaderTitle)} {$displayPageHeaderTitle} {elseif $displayPageHeaderTitle && !$displayPageHeaderLogo && is_array($displayPageHeaderTitle)} {$displayPageHeaderTitle.altText|escape} {else} {$applicationName|escape} {/if} {if $requestedOp == 'index'}

{else}
{/if}
{* Primary site navigation *} {capture assign="primaryMenu"} {load_menu name="primary" id="navigationPrimary" ulClass="pkp_navigation_primary"} {/capture} {if !empty(trim($primaryMenu)) || $currentContext}
{* Primary navigation menu for current application *} {$primaryMenu} {if $currentContext} {* Search form *} {include file="frontend/components/searchForm_simple.tpl"} {/if}
{/if}
{load_menu name="user" id="navigationUser" ulClass="pkp_navigation_user" liClass="profile"}
{* Wrapper for page content and sidebars *} {if $isFullWidth} {assign var=hasSidebar value=0} {/if}