From 29972fc9d9fbee74751a0026182755693f5ccc3f Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Thu, 7 Aug 2014 12:24:48 +0200 Subject: [PATCH] Allow possibility to disable user notification when publishing --- lib/conf.d/_GV_template.inc | 10 ++++++++-- templates/web/prod/actions/publish/publish.html.twig | 6 ++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/conf.d/_GV_template.inc b/lib/conf.d/_GV_template.inc index d79333077f..611b354ab5 100644 --- a/lib/conf.d/_GV_template.inc +++ b/lib/conf.d/_GV_template.inc @@ -269,16 +269,22 @@ return call_user_func_array(function(Application $app) { 'type' => \registry::TYPE_BOOLEAN, 'name' => 'GV_enable_push_authentication', 'comment' => _('Enable Forcing authentication to see push content'), - 'help' => _('Adds an option to the push form submission to restrict push recipient(s) to Phraseanet users only.'), + 'help' => _('Adds an option to the push form submission to restrict push recipient(s) to Phraseanet users only.'), 'default' => false ), array( 'type' => \registry::TYPE_BOOLEAN, 'name' => 'GV_force_push_authentication', 'comment' => _('Set force authentication option to see push content as mandatory'), - 'help' => _('Disallow the possibility for the end user to disable push authentication'), + 'help' => _('Disallow the possibility for the end user to disable push authentication'), 'default' => false ), + array( + 'type' => \registry::TYPE_BOOLEAN, + 'name' => 'GV_enable_feed_notification', + 'comment' => _('Enable possibility to notify users when publishing a new feed entry'), + 'default' => true + ), array( 'type' => \registry::TYPE_STRING, 'name' => 'GV_adminMail', diff --git a/templates/web/prod/actions/publish/publish.html.twig b/templates/web/prod/actions/publish/publish.html.twig index 7be51c9c15..2f7374d796 100644 --- a/templates/web/prod/actions/publish/publish.html.twig +++ b/templates/web/prod/actions/publish/publish.html.twig @@ -39,8 +39,10 @@ {% set title = publishing.basket().getName() %} {% set desc = publishing.basket().getDescription() %} {% endif %} - -
+ {% if app["phraseanet.registry"].get("GV_enable_feed_notification") %} + +
+ {% endif %}