aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/intro.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-05-31 19:46:59 +0000
committerplegall <plg@piwigo.org>2009-05-31 19:46:59 +0000
commit654ce203d3290c524adb797208d4e3037c0f5407 (patch)
tree8131f916430b69f9aa6d3ec272d4d26c3b484857 /admin/template/goto/intro.tpl
parent01dc8c2677f7a827f8e497e1bfed96932c1586bc (diff)
merge r3381 from branch 2.0 to trunk
feature 1020 added: ability to subscribe to Piwigo Announcement Newsletter from Piwigo itself. Admins can perform this action at the end of installation or on administration panel index. git-svn-id: http://piwigo.org/svn/trunk@3382 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/template/goto/intro.tpl')
-rw-r--r--admin/template/goto/intro.tpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/admin/template/goto/intro.tpl b/admin/template/goto/intro.tpl
index 3b41539f6..e00b0d08d 100644
--- a/admin/template/goto/intro.tpl
+++ b/admin/template/goto/intro.tpl
@@ -1,3 +1,16 @@
+{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
+{known_script id="jquery.dimensions" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.dimensions.packed.js"}
+{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
+
+<script type="text/javascript">
+jQuery().ready(function(){ldelim}
+ jQuery('.cluetip').cluetip({ldelim}
+ width: 300,
+ splitTitle: '|'
+ });
+});
+</script>
+
<h2>{'title_default'|@translate}</h2>
<dl style="padding-top: 30px;">
<dt>{'Piwigo version'|@translate}</dt>
@@ -6,6 +19,9 @@
<li><a href="{$PHPWG_URL}" onclick="window.open(this.href, '');
return false;">Piwigo</a> {$PWG_VERSION}</li>
<li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li>
+{if isset($SUBSCRIBE_BASE_URL)}
+ <li><a href="{$SUBSCRIBE_BASE_URL}{$EMAIL}" onclick="window.open(this.href); return false;" class="cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Subscribe to Piwigo Announcements Newsletter'|@translate|htmlspecialchars|nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate|@sprintf:$EMAIL}</a></li>
+{/if}
</ul>
</dd>