mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
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:
@@ -5,15 +5,21 @@
|
||||
<span class="pwg-icon pwg-icon-close"> </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 -->
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user