{** * lib/pkp/templates/frontend/components/header.tpl * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. 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 !$displayPageHeaderLogo} {assign var="showingLogo" value=false} {/if} {/strip} {if !$pageTitleTranslated}{capture assign="pageTitleTranslated"}{translate key=$pageTitle}{/capture}{/if} {include file="frontend/components/headerHead.tpl"}
{* Header *}
{* Skip to content nav links *} {include file="frontend/components/skipLinks.tpl"}
{if !$requestedPage || $requestedPage === 'index'}

{if $currentContext} {$displayPageHeaderTitle|escape} {else} {$siteTitle|escape} {/if}

{/if}
{capture assign="homeUrl"} {url page="index" router=\PKP\core\PKPApplication::ROUTE_PAGE} {/capture} {if $displayPageHeaderLogo} {elseif $displayPageHeaderTitle} {$displayPageHeaderTitle|escape} {else} {$applicationName|escape} {/if}
{capture assign="primaryMenu"} {load_menu name="primary" id="navigationPrimary" ulClass="pkp_navigation_primary"} {/capture}
{* Primary navigation menu for current application *} {$primaryMenu} {* Search form *} {if $currentContext && $requestedPage !== 'search'}
{translate key="common.search"}
{/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}