aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-07-05 20:29:55 +0200
committerArthurHoaro <arthur@hoa.ro>2018-07-05 20:34:22 +0200
commitb302b3c584b84f22f0e6f187b072180ecbacdfab (patch)
tree297f72d8fcf6d158ebbb8198dee4e35a30ab0d7e /tpl
parentfcba541e2f12c85ac56c6915ba1319fbdd3e6962 (diff)
downloadShaarli-b302b3c584b84f22f0e6f187b072180ecbacdfab.tar.gz
Shaarli-b302b3c584b84f22f0e6f187b072180ecbacdfab.tar.zst
Shaarli-b302b3c584b84f22f0e6f187b072180ecbacdfab.zip
Thumbnails: add a common mode to only retrieve thumbs from popular media websites
Diffstat (limited to 'tpl')
-rw-r--r--tpl/default/configure.html13
-rw-r--r--tpl/vintage/configure.html13
2 files changed, 22 insertions, 4 deletions
diff --git a/tpl/default/configure.html b/tpl/default/configure.html
index dca9503b..9711d151 100644
--- a/tpl/default/configure.html
+++ b/tpl/default/configure.html
@@ -259,8 +259,17 @@
259 </div> 259 </div>
260 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}"> 260 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
261 <div class="form-input"> 261 <div class="form-input">
262 <input type="checkbox" name="enableThumbnails" id="enableThumbnails" 262 <select name="enableThumbnails" id="enableThumbnails" class="align">
263 {if="$thumbnails_enabled"}checked{/if} {if="!$gd_enabled"}disabled{/if} /> 263 <option value="all" {if="$thumbnails_mode=='all'"}selected{/if}>
264 {'All'|t}
265 </option>
266 <option value="common" {if="$thumbnails_mode=='common'"}selected{/if}>
267 {'Only common media hosts'|t}
268 </option>
269 <option value="none" {if="$thumbnails_mode=='none'"}selected{/if}>
270 {'None'|t}
271 </option>
272 </select>
264 </div> 273 </div>
265 </div> 274 </div>
266 </div> 275 </div>
diff --git a/tpl/vintage/configure.html b/tpl/vintage/configure.html
index fc3a563b..9466c235 100644
--- a/tpl/vintage/configure.html
+++ b/tpl/vintage/configure.html
@@ -131,8 +131,17 @@
131 <tr> 131 <tr>
132 <td valign="top"><b>Enable thumbnails</b></td> 132 <td valign="top"><b>Enable thumbnails</b></td>
133 <td> 133 <td>
134 <input type="checkbox" name="enableThumbnails" id="enableThumbnails" 134 <select name="enableThumbnails" id="enableThumbnails" class="align">
135 {if="$thumbnails_enabled"}checked{/if} {if="!$gd_enabled"}disabled{/if}> 135 <option value="all" {if="$thumbnails_mode=='all'"}selected{/if}>
136 {'All'|t}
137 </option>
138 <option value="common" {if="$thumbnails_mode=='common'"}selected{/if}>
139 {'Only common media hosts'|t}
140 </option>
141 <option value="none" {if="$thumbnails_mode=='none'"}selected{/if}>
142 {'None'|t}
143 </option>
144 </select>
136 <label for="enableThumbnails"> 145 <label for="enableThumbnails">
137 {if="! $gd_enabled"} 146 {if="! $gd_enabled"}
138 {'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t} 147 {'You need to enable the extension <code>php-gd</code> to use thumbnails.'|t}