forked from UCSCLibrary/SimpleVocabPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_form.php
93 lines (84 loc) · 4.09 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
$simple_vocab_plus_files = get_option('simple_vocab_plus_files');
$simple_vocab_plus_collections = get_option('simple_vocab_plus_collections');
$simple_vocab_plus_exhibits = get_option('simple_vocab_plus_exhibits');
$simple_vocab_plus_fields_highlight = get_option('simple_vocab_plus_fields_highlight');
$simple_vocab_plus_fields_description = get_option('simple_vocab_plus_fields_description');
$simple_vocab_plus_values_compare = get_option('simple_vocab_plus_values_compare');
$view = get_view();
?>
<h2><?php echo __('Application scope'); ?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('simple_vocab_plus_collections', __('Apply to Collections')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('If checked, the plugin will apply to Collections metadata too (by default, this plugin only applies to Items metadata).'); ?>
</p>
<?php echo $view->formCheckbox('simple_vocab_plus_collections', $simple_vocab_plus_collections, null, array('1', '0')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('simple_vocab_plus_files', __('Apply to Files')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('If checked, the plugin will apply to Files metadata too (by default, this plugin only applies to Items metadata).'); ?>
</p>
<?php echo $view->formCheckbox('simple_vocab_plus_files', $simple_vocab_plus_files, null, array('1', '0')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('simple_vocab_plus_exhibits', __('Apply to Exhibits')); ?>
</div>
<div class="inputs five columns omega">
<?php if (plugin_is_active('ExhibitBuilder')): ?>
<p class="explanation">
<?php echo __('If checked, the plugin will apply to Exhibits metadata too (by default, this plugin only applies to Items metadata).'); ?>
</p>
<?php echo $view->formCheckbox('simple_vocab_plus_exhibits', $simple_vocab_plus_exhibits, null, array('1', '0')); ?>
<?php else: ?>
<p class="explanation">
<?php echo __('The %s plugin is not installed or active. Install and activate the plugin in order to be able to configure notifications for new Exhibits.', '<a href="https://omeka.org/classic/plugins/ExhibitBuilder/">Exhibit Builder</a>'); ?>
</p>
<?php endif ?>
</div>
</div>
<h2><?php echo __('Alerts'); ?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('simple_vocab_plus_fields_highlight', __('Highlight autosuggest fields')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('Color hex code (e.g.: #ff0000) to highlight the fields that have autosuggest feature applied (blank means no highlight).'); ?>
</p>
<?php echo $view->formText('simple_vocab_plus_fields_highlight', $simple_vocab_plus_fields_highlight, array('title'=>__('pound sign (#) followed by six hex values'),'pattern'=>'^#[0-9a-fA-F]{6}$')); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('simple_vocab_plus_fields_description', __('Add autosuggest reminder')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('Adds a notice to the description of fields that have autosuggest feature applied.'); ?>
</p>
<?php echo $view->formCheckbox('simple_vocab_plus_fields_description', $simple_vocab_plus_fields_description, null, array('1', '0')); ?>
</div>
</div>
<h2><?php echo __('Checks'); ?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('simple_vocab_plus_values_compare', __('Compare element values')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('When examining an element, compare the recorded values with the vocabulary\'s terms.'); ?>
</p>
<?php echo $view->formCheckbox('simple_vocab_plus_values_compare', $simple_vocab_plus_values_compare, null, array('1', '0')); ?>
</div>
</div>