aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-06-22 11:41:47 +0000
committermistic100 <mistic@piwigo.org>2014-06-22 11:41:47 +0000
commitb4b17975304e776518bb2f456f8000cef6bd60e9 (patch)
treeb0538fc2463bb7a5e3ff6f6e32ad81a729e28018 /admin
parentf77f3698fe1501ba0a3b94c3a2cfe4d728f2b45b (diff)
feature 3095: add "comments_enable_website" param + GUI
git-svn-id: http://piwigo.org/svn/trunk@28764 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/configuration.php1
-rw-r--r--admin/themes/default/template/configuration.tpl7
2 files changed, 8 insertions, 0 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index f1b943cfd..9d34fbbf1 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -76,6 +76,7 @@ $comments_checkboxes = array(
'email_admin_on_comment_deletion',
'comments_author_mandatory',
'comments_email_mandatory',
+ 'comments_enable_website',
);
$display_checkboxes = array(
diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl
index d3309e8a7..ea2f8ec86 100644
--- a/admin/themes/default/template/configuration.tpl
+++ b/admin/themes/default/template/configuration.tpl
@@ -274,6 +274,13 @@ jQuery("input[name='mail_theme']").change(function() {
<li>
<label>
+ <input type="checkbox" name="comments_enable_website" {if ($comments.comments_enable_website)}checked="checked"{/if}>
+ {'Allow users to add a link to their website'|translate}
+ </label>
+ </li>
+
+ <li>
+ <label>
<input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}>
{'Allow users to edit their own comments'|@translate}
</label>