forked from Victrid/freshrss-image-cache-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.phtml
71 lines (71 loc) · 4.05 KB
/
configure.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<form action="<?php echo _url('extension', 'configure', 'e', urlencode($this->getName())); ?>" method="post">
<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
<h3>Display cached settings</h3>
<div class="form-group">
<label class="group-name" for="image_cache_url"><?php echo _t('ext.imagecache.cache_url'); ?></label>
<div class="group-controls">
<input type="url" name="image_cache_url" id="image_cache_url" value="<?php echo $this->settings->getImageCacheUrl(); ?>">
</div>
</div>
<div class="form-group">
<label class="group-name" for="image_recache_url"><?php echo _t('ext.imagecache.image_recache_url'); ?></label>
<div class="group-controls">
<input type="text" name="image_recache_url" id="image_recache_url" value="<?php echo $this->settings->getImageRecacheUrl(); ?>">
</div>
</div>
<div class="form-group">
<label class="group-name" for="image_cache_disabled_url"><?php echo _t('ext.imagecache.cache_disabled_url'); ?></label>
<div class="group-controls">
<input type="text" name="image_cache_disabled_url" id="image_cache_disabled_url" value="<?php echo $this->settings->getImageDisabledUrl(); ?>">
</div>
</div>
<div class="form-group">
<label class="group-name" for="video_default_volume"><?php echo _t('ext.imagecache.video_default_volume'); ?></label>
<div class="group-controls">
<input type="number" step="0.01" min="0" max="1" name="video_default_volume" id="video_default_volume" value="<?php echo $this->settings->getVideoDefaultVolume(); ?>">
</div>
</div>
<div class="form-group">
<label class="group-name" for="upload_retry_count"><?php echo _t('ext.imagecache.upload_retry_count'); ?></label>
<div class="group-controls">
<input type="number" step="1" min="0" max="100" name="upload_retry_count" id="upload_retry_count" value="<?php echo $this->settings->getUploadRetryCount(); ?>">
</div>
</div>
<div class="form-group">
<label class="group-name" for="upload_retry_delay"><?php echo _t('ext.imagecache.upload_retry_delay'); ?></label>
<div class="group-controls">
<input type="number" step="1" min="0" max="300" name="upload_retry_count" id="upload_retry_delay" value="<?php echo $this->settings->getUploadRetryDelay(); ?>">
</div>
</div>
<div class="form-group">
<label class="group-name" for="max_cache_elements"><?php echo _t('ext.imagecache.max_cache_elements'); ?></label>
<div class="group-controls">
<input type="number" step="1" min="1" max="999999" name="max_cache_elements" id="max_cache_elements" value="<?php echo $this->settings->getMaxCacheElements(); ?>">
</div>
</div>
<h3>Cache host settings</h3>
<div class="form-group">
<label class="group-name" for="image_cache_post_url"><?php echo _t('ext.imagecache.post_url'); ?></label>
<div class="group-controls">
<input type="url" name="image_cache_post_url" id="image_cache_post_url" value="<?php echo $this->settings->getImageCachePostUrl(); ?>">
</div>
</div>
<div class="form-group">
<label class="group-name" for="image_cache_access_token"><?php echo _t('ext.imagecache.access_token'); ?></label>
<div class="group-controls">
<input type="text" name="image_cache_access_token" id="image_cache_access_token" value="<?php echo $this->settings->getImageCacheAccessToken(); ?>">
</div>
</div>
<div class="form-group">
<label class="group-name" for="image_cache_remove_wrong_tag"><?php echo _t('ext.imagecache.remove_wrong_tag'); ?></label>
<div class="group-controls">
<input type="text" name="image_cache_remove_wrong_tag" id="image_cache_remove_wrong_tag" value="<?php echo $this->settings->isRemoveWrongTag(); ?>">
</div>
</div>
<div class="form-group form-actions">
<div class="group-controls">
<button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
<button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
</div>
</div>
</form>