add a home link and hide close this window link in popuphelp if the page is not opened through javascript

git-svn-id: http://piwigo.org/svn/trunk@29601 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2014-09-17 18:43:20 +00:00
parent 0719b52874
commit 594a946b47
+8 -2
View File
@@ -5,15 +5,21 @@
<span class="pwg-icon pwg-icon-close">&nbsp;</span><span class="pwg-button-text">exit</span>
</a></li>
</ul>
<h2>{$PAGE_TITLE}</h2>
<h2><span id="homeLink"><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}</span>{$PAGE_TITLE}</h2>
</div>
{$HELP_CONTENT}
<p>
<p id="closeLink" style="display:none">
<a href="#" onclick="window.close();">{'Close this window'|@translate}</a>
</p>
{footer_script require='jquery'}
if (window.opener || window.name) {
jQuery("#closeLink").show();
jQuery("#homeLink").hide();
}
{/footer_script}
</div> <!-- content -->