{* testing, remove test_ from var names *}
{assign var=test_latest_version_available value="2.0"}
{assign var=test_piwikUrl value='http://demo.piwik.org/'}

<span id="header_message" class="{if $piwikUrl == 'http://demo.piwik.org/' || !$latest_version_available}header_info{else}header_alert{/if}">
<span class="header_short">
	{if $piwikUrl == 'http://demo.piwik.org/'}
		{'General_YouAreViewingDemoShortMessage'|translate}
	{else}
		{'General_AboutPiwikX'|translate:$piwik_version}
	{/if}
</span>

<span class="header_full">
	{if $piwikUrl == 'http://demo.piwik.org/'}
		{'General_YouAreViewingDemoShortMessage'|translate}<br/>
		{'General_DownloadFullVersion'|translate:"<a href='http://piwik.org/'>":"</a>":"<a href='http://piwik.org'>piwik.org</a>"}
	{else}
		{'General_PiwikIsACollaborativeProjectYouCanContributeAndDonate'|translate:"<a href='?module=Proxy&action=redirect&url=http://piwik.org' target='_blank'>":"$piwik_version</a>":"<br />":"<a target='_blank' href='?module=Proxy&action=redirect&url=http://piwik.org/contribute/'>":"</a>":'<br/>':"<a href='http://piwik.org/donate/' target='_blank'><strong><em>":"</em></strong></a>"}
	{/if}
	{if !empty($hasSomeAdminAccess)}
	<br/>
	<div id="updateCheckLinkContainer">
		<span class='loadingPiwik' style="display:none"><img src='./themes/default/images/loading-blue.gif'/></span>
		<img src="themes/default/images/reload.png"/>
		<a href="#" id="checkForUpdates"><em>{'CoreHome_CheckForUpdates'|translate}</em></a>
	</div>
	{/if}
</span>
</span>
