diff options
| author | 2024-09-21 12:34:38 +0400 | |
|---|---|---|
| committer | 2024-09-21 10:34:38 +0200 | |
| commit | e9398f3f8cb703ec68422509ff50c97beae83c4d (patch) | |
| tree | b81d85729cd7f70081a2ef252e4d1ca8ba6aac6f /app/views/helpers/feed/update.phtml | |
| parent | e165cf6b4394118613d2eff36fc0a06c2c661641 (diff) | |
Add HTTP Headers option (#6820)
* Add new strings to lang files
* Add HTTP headers field to feed forms
* A few improvements
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/helpers/feed/update.phtml')
| -rw-r--r-- | app/views/helpers/feed/update.phtml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index 7f0be0f0c..5a08d1a3e 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -749,6 +749,14 @@ </div> <div class="form-group"> + <label class="group-name" for="http_headers"><?= _t('sub.feed.http_headers') ?></label> + <div class="group-controls"> + <textarea class="valid-json" id="http_headers" name="http_headers" rows="3" cols="64" spellcheck="false"><?= !empty($this->feed->attributeArray('curl_params')) ? implode(PHP_EOL, $this->feed->attributeArray('curl_params')[CURLOPT_HTTPHEADER]) : '' ?></textarea> + <p class="help"><?= _i('help') ?> <?= _t('sub.feed.http_headers_help') ?></p> + </div> + </div> + + <div class="form-group"> <div class="group-controls"> <label class="checkbox" for="clear_cache"> <input type="checkbox" name="clear_cache" id="clear_cache" value="1"<?= $this->feed->attributeBoolean('clear_cache') ? ' checked="checked"' : '' ?> /> |
