-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_form.php
193 lines (167 loc) · 7.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<?php echo js_tag('vendor/tinymce/tinymce.min'); ?>
<script type="text/javascript">
jQuery(window).load(function () {
Omeka.wysiwyg({
mode: 'specific_textareas',
editor_selector: 'html-editor'
});
});
</script>
<?php
$cart_page_title = get_option('simple_cart_page_title');
$cart_page_instructions = get_option('simple_cart_page_instructions');
$cart_page_instructions_two = get_option('simple_cart_page_instructions_two');
$cart_page_show_request = get_option('simple_cart_page_show_request');
$cart_page_show_button_text = get_option('simple_cart_page_show_button_text');
$cart_page_show_agreement = get_option('simple_cart_page_show_agreement');
$cart_page_clickthru_agreement = get_option('simple_cart_page_clickthru_agreement');
$add_to_main_navigation = get_option('simple_cart_add_to_main_navigation');
$cart_page_accept_terms_button_text = get_option('simple_cart_page_accept_terms_button_text');
$cart_page_decline_terms_button_text = get_option('simple_cart_page_decline_terms_button_text');
$cart_page_proceed_button_text = get_option('simple_cart_page_proceed_button_text');
$cart_page_cbrowse_link_text = get_option('simple_cart_page_cbrowse_link_text');
$cart_page_creturn_link_text = get_option('simple_cart_page_creturn_link_text');
$cart_page_hterms_link_text = get_option('simple_cart_page_hterms_link_text');
$cart_page_hrequest_link_text = get_option('simple_cart_page_hrequest_link_text');
$view = get_view();
?>
<div class="field">
<?php echo $view->formLabel('cart_page_title', 'Cart Page Title'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_title', $cart_page_title, array('class' => 'textinput')); ?>
<p class="explanation">
The title of the cart page (not HTML).
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('add_to_main_navigation', 'Add to Main Navigation'); ?>
<div class="inputs">
<?php echo $view->formCheckbox('add_to_main_navigation', $add_to_main_navigation, null, array('1', '0')); ?>
<p class="explanation">
If checked, add a link to the cart to the main site
navigation.
</p>
</div>
</div>
<h2>Interview Show Page Config</h2>
<div class="field">
<?php echo $view->formLabel('cart_page_show_button_text', 'Button Text for Cart Request Page'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_show_button_text', $cart_page_show_button_text, array('class' => 'textinput')); ?>
<p class="explanation">
Text for request button (not HTML).
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_show_request', 'Request for Cart Page'); ?>
<div class="inputs">
<?php echo $view->formTextarea('cart_page_show_request', $cart_page_show_request, array('rows' => '10', 'cols' => '60', 'class' => array('textinput', 'html-editor'))); ?>
<p class="explanation">
Request text for interview show page, before the request button.
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_show_agreement', 'Agreement for Cart Page'); ?>
<div class="inputs">
<?php echo $view->formTextarea('cart_page_show_agreement', $cart_page_agreement, array('rows' => '50', 'cols' => '60', 'class' => array('textinput', 'html-editor'))); ?>
<p class="explanation">
Agreement text for interview show page, after the request button.
</p>
</div>
</div>
<h2>Initial View Cart Page Config</h2>
<div class="field">
<?php echo $view->formLabel('cart_page_proceed_button_text', 'Button Text for Proceed to Cart'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_proceed_button_text', $cart_page_proceed_button_text, array('class' => 'textinput')); ?>
<p class="explanation">
Text for proceed to cart button (not HTML).
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_cbrowse_link_text', 'Link Text for Continue to Browse'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_cbrowse_link_text', $cart_page_cbrowse_link_text, array('class' => 'textinput')); ?>
<p class="explanation">
Text for link to continue browsing (not HTML).
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_instructions', 'Introduction for Cart Page'); ?>
<div class="inputs">
<?php echo $view->formTextarea('cart_page_instructions', $cart_page_instructions, array('rows' => '50', 'cols' => '60', 'class' => array('textinput', 'html-editor'))); ?>
<p class="explanation">
View Cart Page introduction text.
</p>
</div>
</div>
<h2>Usage Terms/Conditions Page Config</h2>
<div class="field">
<?php echo $view->formLabel('cart_page_hterms_link_text', 'Heading Text for Cart Terms Page'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_hterms_link_text', $cart_page_hterms_link_text, array('class' => 'textinput')); ?>
<p class="explanation">
Text for request sub-page terms heading (not HTML).
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_accept_terms_button_text', 'Button Text for Accept Terms'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_accept_terms_button_text', $cart_page_accept_terms_button_text, array('class' => 'textinput')); ?>
<p class="explanation">
Text for accept terms button (not HTML).
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_decline_terms_button_text', 'Button Text for Decline Terms'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_decline_terms_button_text', $cart_page_decline_terms_button_text, array('class' => 'textinput')); ?>
<p class="explanation">
Text for decline terms button (not HTML).
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_clickthru_agreement', 'Agreement for Clickthru Page'); ?>
<div class="inputs">
<?php echo $view->formTextarea('cart_page_clickthru_agreement', $cart_page_clickthru_agreement, array('rows' => '50', 'cols' => '60', 'class' => array('textinput', 'html-editor'))); ?>
<p class="explanation">
Clickthru agreement text for requests page.
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_creturn_link_text', 'Link Text for Cart Request Page Return to Cart'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_creturn_link_text', $cart_page_creturn_link_text, array('class' => 'textinput')); ?>
<p class="explanation">
Text for link to return to cart (not HTML).
</p>
</div>
</div>
<h2>View Cart Request Page Config</h2>
<div class="field">
<?php echo $view->formLabel('cart_page_hrequest_link_text', 'Heading Text for Cart Request Sub Page'); ?>
<div class="inputs">
<?php echo $view->formText('cart_page_hrequest_link_text', $cart_page_hrequest_link_text, array('class' => 'textinput')); ?>
<p class="explanation">
Text for request sub-page heading (not HTML).
</p>
</div>
</div>
<div class="field">
<?php echo $view->formLabel('cart_page_instructions_two', 'Introduction for Request Cart Sub Page'); ?>
<div class="inputs">
<?php echo $view->formTextarea('cart_page_instructions_two', $cart_page_instructions_two, array('rows' => '50', 'cols' => '60', 'class' => array('textinput', 'html-editor'))); ?>
<p class="explanation">
View Cart Sub Page introduction text.
</p>
</div>
</div>