aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto
diff options
context:
space:
mode:
Diffstat (limited to 'admin/template/goto')
-rw-r--r--admin/template/goto/install.tpl15
-rw-r--r--admin/template/goto/intro.tpl16
2 files changed, 28 insertions, 3 deletions
diff --git a/admin/template/goto/install.tpl b/admin/template/goto/install.tpl
index e5b28e6e6..daf68bd71 100644
--- a/admin/template/goto/install.tpl
+++ b/admin/template/goto/install.tpl
@@ -147,9 +147,18 @@ TD {
</form>
{else}
<p>
- <br>
- <input type="button" name="index" value="{'home'|@translate}" onClick="document.location = 'index.php';">
- <input type="button" name="identification" value="{'Identification'|@translate}" onClick="document.location = 'identification.php';">
+ <br />
+ <input type="button" name="identification" value="{'Identification'|@translate}" onClick="window.open('identification.php');"/>
+</p>
+
+<div class="infos">
+ <ul>
+ <li>{'Subscribe to Piwigo Announcements Newsletter'|@translate}</li>
+ </ul>
+</div>
+
+<p>
+ <input type="button" name="subscribe" value="{'Subscribe %s'|@translate|@sprintf:$F_ADMIN_EMAIL}" onClick="window.open('{$SUBSCRIBE_BASE_URL}{$F_ADMIN_EMAIL}');"/>
</p>
{/if}
</div> {* content *}
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>