mirror of
https://github.com/flextype/flextype.git
synced 2025-08-24 05:43:10 +02:00
feat(admin-plugin): add support for #351
This commit is contained in:
@@ -135,6 +135,7 @@ class SettingsController extends Controller
|
||||
Arr::set($data, 'slugify.trim', ($data['slugify']['trim'] === '1'));
|
||||
Arr::set($data, 'slugify.lowercase', ($data['slugify']['lowercase'] === '1'));
|
||||
Arr::set($data, 'cache.lifetime', (int) $data['cache']['lifetime']);
|
||||
Arr::set($data, 'twig.extensions', explode(',', $data['twig']['extensions']));
|
||||
Arr::set($data, 'entries.media.upload_images_quality', (int) $data['entries']['media']['upload_images_quality']);
|
||||
Arr::set($data, 'entries.media.upload_images_width', (int) $data['entries']['media']['upload_images_width']);
|
||||
Arr::set($data, 'entries.media.upload_images_height', (int) $data['entries']['media']['upload_images_height']);
|
||||
|
@@ -321,6 +321,8 @@ admin_help_text_for_api_calls_limit_label: "Limits for API Calls. Leave 0 for un
|
||||
admin_error_api_calls_empty_input: "API Calls limit has to be an numeric value."
|
||||
admin_help_text_for_api_token_icon: "API Token valid :link icon class."
|
||||
admin_state: "State"
|
||||
admin_help_text_for_settings_twig_extensions_label: "Twig Extension to load."
|
||||
admin_twig_extensions: "Twig extensions"
|
||||
admin_message_delivery_api_token_updated: "Delivery token updated."
|
||||
admin_message_delivery_api_token_was_not_updated: "Delivery token was not updated."
|
||||
admin_message_delivery_api_token_created: "Delivery token created."
|
||||
|
@@ -234,6 +234,13 @@
|
||||
<small class="form-text text-muted">{{ tr('admin_help_text_for_settings_twig_templating_charset_label') }}</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label for="twig[extensions]">{{ tr('admin_twig_extensions') }}</label>
|
||||
<input id="systemSettingsTwigExtensions" name="twig[extensions]" class="form-control" data-role="tagsinput" value="{{ registry.settings.twig.extensions|join(',') }}" required="required">
|
||||
<small class="form-text text-muted">{{ tr('admin_help_text_for_settings_twig_extensions_label') }}</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user