mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Allow possibility to disable user notification when publishing
This commit is contained in:
@@ -279,6 +279,12 @@ return call_user_func_array(function(Application $app) {
|
||||
'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',
|
||||
|
@@ -39,8 +39,10 @@
|
||||
{% set title = publishing.basket().getName() %}
|
||||
{% set desc = publishing.basket().getDescription() %}
|
||||
{% endif %}
|
||||
{% if app["phraseanet.registry"].get("GV_enable_feed_notification") %}
|
||||
<input class="required_text checkbox" type="checkbox" name="notify" id="feed_add_notify" value="1" />
|
||||
<label for="feed_add_notify">{% trans 'Notify users about this publication' %}</label><br/>
|
||||
{% endif %}
|
||||
<label for="feed_add_title">{% trans 'publication : titre' %}</label>
|
||||
<input class="required_text" type="text" name="title" id="feed_add_title" value="{{title}}" />
|
||||
<label for="feed_add_subtitle">{% trans 'publication : sous titre' %}</label>
|
||||
|
Reference in New Issue
Block a user