aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 -->