aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-09-17 18:43:20 +0000
committerrvelices <rv-github@modusoptimus.com>2014-09-17 18:43:20 +0000
commit594a946b473ea0966a033d70b53cd79931481a13 (patch)
tree3ac29fdda860a52fc9ea835cc8cdfaa9627a57fd /themes/default
parent0719b52874063cc4e757ddc33e0034253121759c (diff)
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
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/template/popuphelp.tpl10
1 files changed, 8 insertions, 2 deletions
diff --git a/themes/default/template/popuphelp.tpl b/themes/default/template/popuphelp.tpl
index 0b1ec9cbc..5fd61a44d 100644
--- a/themes/default/template/popuphelp.tpl
+++ b/themes/default/template/popuphelp.tpl
@@ -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 -->