forked from omeka/plugin-Geolocation
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig_form.php
More file actions
73 lines (65 loc) · 3.72 KB
/
config_form.php
File metadata and controls
73 lines (65 loc) · 3.72 KB
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
72
73
<div class="field">
<label for="per_page">Number of Locations Per Page:</label>
<div class="inputs">
<input type="text" class="textinput" name="per_page" size="4" value="<?php echo get_option('geolocation_per_page'); ?>" id="per_page" />
<p class="explanation">The number of locations displayed per page when browsing the map. (Maximum is <?php echo GEOLOCATION_MAX_LOCATIONS_PER_PAGE; ?>).</p>
</div>
</div>
<div class="field">
<label for="default_latitude">Default Latitude</label>
<div class="inputs">
<input type="text" class="textinput" name="default_latitude" size="8" value="<?php echo get_option('geolocation_default_latitude'); ?>" id="default_latitude" />
<p class="explanation">Latitude of the map's initial center point, in degrees. Must be between -90 and 90.</p>
</div>
</div>
<div class="field">
<label for="default_longitude">Default Longitude</label>
<div class="inputs">
<input type="text" class="textinput" name="default_longitude" size="8" value="<?php echo get_option('geolocation_default_longitude'); ?>" id="default_longitude" />
<p class="explanation">Longitude of the map's initial center point, in degrees. Must be between -180 and 180.</p>
</div>
</div>
<div class="field">
<label for="default_zoomlevel">Default Zoom Level</label>
<div class="inputs">
<input type="text" class="textinput" name="default_zoomlevel" size="4" value="<?php echo get_option('geolocation_default_zoom_level'); ?>" id="default_zoomlevel" />
<p class="explanation">An integer greater than or equal to 0, where 0 represents the most zoomed out scale.</p>
</div>
</div>
<div class="field">
<label for="item_map_width">Width for Item Map</label>
<div class="inputs">
<input type="text" class="textinput" name="item_map_width" size="8" value="<?php echo get_option('geolocation_item_map_width'); ?>" id="item_map_width" />
<p class="explanation">The width of the map displayed on your items/show page. If left blank, the default width of 100% will be used.</p>
</div>
</div>
<div class="field">
<label for="item_map_height">Height for Item Map</label>
<div class="inputs">
<input type="text" class="textinput" name="item_map_height" size="8" value="<?php echo get_option('geolocation_item_map_height'); ?>" id="item_map_height" />
<p class="explanation">The height of the map displayed on your items/show page. If left blank, the default height of 300px will be used.</p>
</div>
</div>
<div class="field">
<label for="geolocation_gmaps_key">Google key</label>
<div class="inputs">
<input type="text" class="textinput" name="geolocation_gmaps_key" size="25" value="<?php echo get_option('geolocation_gmaps_key'); ?>" id="geolocation_gmaps_key" />
<p class="explanation">The google key for auto completion of search. No autocomplete when left empty.</p>
</div>
</div>
<div class="field">
<label for="geolocation_link_to_nav">Add Link to Map on Items/Browse Navigation</label>
<div class="inputs">
<?php echo __v()->formCheckbox('geolocation_link_to_nav', true,
array('checked'=>(boolean)get_option('geolocation_link_to_nav'))); ?>
<p class="explanation">Add a link to the items map on all the items/browse pages.</p>
</div>
</div>
<div class="field">
<label for="geolocation_add_map_to_contribution_form">Add Map To Contribution Form</label>
<div class="inputs">
<?php echo __v()->formCheckbox('geolocation_add_map_to_contribution_form', true,
array('checked'=>(boolean)get_option('geolocation_add_map_to_contribution_form'))); ?>
<p class="explanation">If the Contribution plugin is installed and activated, Geolocation will add a geolocation map field to the contribution form to associate a location to a contributed item.</p>
</div>
</div>