-
Notifications
You must be signed in to change notification settings - Fork 2
/
config-form.php
42 lines (39 loc) · 1.91 KB
/
config-form.php
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
<?php global $base_url; ?>
<style type="text/css">
input[type="url"] {width: 100%;}
</style>
<div>
<h3><?php echo __('Instructions'); ?></h3>
<p>No trailing "/".</p>
<p>The {<strong><?php echo __('Production IIIF Server');?></strong>} value you enter below means an Omeka file can be served from both of these URLs:<p>
<ul>
<li><?php echo str_replace('/admin', '', $base_url); ?>/files/original/{OMEKA_FILENAME}</li>
<li>{<strong><?php echo __('Production IIIF Server');?></strong>}/{OMEKA_FILENAME}/full/full/0/default.jpg</li>
</ul>
</div>
<div class="field">
<div class="two columns alpha">
<label for="mirador_iiif_server_prod"><?php echo __('Production IIIF Server');?></label>
</div>
<div class="inputs five columns omega">
<input type="url" name="mirador_iiif_server_prod" value="<?php echo get_option("mirador_iiif_server_prod"); ?>" />
</div>
</div>
<div class="field">
<div class="two columns alpha">
<label for="mirador_iiif_server_test"><?php echo __('Test IIIF Server');?></label>
</div>
<div class="inputs five columns omega">
<input type="url" name="mirador_iiif_server_test" value="<?php echo get_option("mirador_iiif_server_test"); ?>" />
<p><?php echo __('This endpoint will be used if your Omeka enviroment is not set to "production"'); ?></p>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<label for="mirador_search"><?php echo __('Allow Searching files in an item');?></label>
</div>
<div class="inputs five columns omega">
<input type="checkbox" name="mirador_search" value="1" <?php if (get_option('mirador_search')) echo 'checked="checked"'; ?>/>
<p><?php echo __('Check this box if you want to provide a search box within the image viewer that will search the metadata for all the files of an item.');?></p>
</div>
</div>