From 594a946b473ea0966a033d70b53cd79931481a13 Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 17 Sep 2014 18:43:20 +0000 Subject: 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 --- themes/default/template/popuphelp.tpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'themes') 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 @@  exit -

{$PAGE_TITLE}

+

{'Home'|@translate}{$LEVEL_SEPARATOR}{$PAGE_TITLE}

{$HELP_CONTENT} -

+

+{footer_script require='jquery'} +if (window.opener || window.name) { + jQuery("#closeLink").show(); + jQuery("#homeLink").hide(); +} +{/footer_script} -- cgit v1.2.3