-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.php
237 lines (236 loc) · 11.1 KB
/
options.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<div class="wrap">
<h2><?php _e( 'Easy Smooth Scroll Links Setting', 'easy-smooth-scroll-links' ); ?></h2>
<ul>
<li>
<a href="https://wordpress.org/support/plugin/easy-smooth-scroll-links/reviews/#new-post" target="_blank"
rel="noopener">Reviews keep this plugin free. Please leave a review! Thank you 👍
</a>
</li>
<li>
<a href="https://wordpress.org/support/plugin/easy-smooth-scroll-links" target="_blank"
rel="noopener"><?php _e( 'Support Forum on WordPress.org', 'easy-smooth-scroll-links' ); ?>
</a>
</li>
</ul>
<form action="options.php" method="post" id="<?php echo $plugin_id; ?>_options_form"
name="<?php echo $plugin_id; ?>_options_form">
<?php settings_fields( $plugin_id . '_options' ); ?>
<table>
<tbody>
<tr>
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
<label for="essl_speed">
<p><?php _e( 'Scroll Speed ( smaller number, faster, default is 900 )', 'easy-smooth-scroll-links' ); ?>
</p>
<p>
<input size="10" id="speed" type="text" name="essl_speed"
value="<?php echo esc_attr( get_option( 'essl_speed' ) ); ?>"/>
</p>
</label>
</td>
</tr>
<tr>
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
<label for="essl_offset">
<p><?php _e( 'Offset ( default is 20 )', 'easy-smooth-scroll-links' ); ?>
</p>
<p>
<input size="10" id="offset" type="text" name="essl_offset"
value="<?php echo esc_attr( get_option( 'essl_offset' ) ); ?>"/>
</p>
</label>
</td>
</tr>
<tr>
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
<label for="essl_easing">
<p><?php _e( 'Scrolling Animation Effects ( default is easeInQuint ) ', 'easy-smooth-scroll-links' ); ?>
</p>
<p>
<select name="essl_easing">
<option disabled="disabled"><?php _e( 'Choose an Animation Effects', 'easy-smooth-scroll-links' ); ?>
</option>
<option name="essl_easing" value="easeInBounce"
<?php echo ( get_option( 'essl_easing' ) == "easeInBounce" ) ? 'selected="selected"' : ''; ?>>
easeInBounce
</option>
<option name="essl_easing" value="easeOutBounce"
<?php echo ( get_option( 'essl_easing' ) == "easeOutBounce" ) ? 'selected="selected"' : ''; ?>>
easeOutBounce
</option>
<option name="essl_easing" value="easeInOutBounce"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutBounce" ) ? 'selected="selected"' : ''; ?>>
easeInOutBounce
</option>
<option name="essl_easing" value="easeInElastic"
<?php echo ( get_option( 'essl_easing' ) == "easeInElastic" ) ? 'selected="selected"' : ''; ?>>
easeInElastic
</option>
<option name="essl_easing" value="easeOutElastic"
<?php echo ( get_option( 'essl_easing' ) == "easeOutElastic" ) ? 'selected="selected"' : ''; ?>>
easeOutElastic
</option>
<option name="essl_easing" value="easeInOutElastic"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutElastic" ) ? 'selected="selected"' : ''; ?>>
easeInOutElastic
</option>
<option name="essl_easing" value="easeInCirc"
<?php echo ( get_option( 'essl_easing' ) == "easeInCirc" ) ? 'selected="selected"' : ''; ?>>easeInCirc
</option>
<option name="essl_easing" value="easeOutCirc"
<?php echo ( get_option( 'essl_easing' ) == "easeOutCirc" ) ? 'selected="selected"' : ''; ?>>
easeOutCirc
</option>
<option name="essl_easing" value="easeInOutCirc"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutCirc" ) ? 'selected="selected"' : ''; ?>>
easeInOutCirc
</option>
<option name="essl_easing" value="easeInBack"
<?php echo ( get_option( 'essl_easing' ) == "easeInBack" ) ? 'selected="selected"' : ''; ?>>easeInBack
</option>
<option name="essl_easing" value="easeOutBack"
<?php echo ( get_option( 'essl_easing' ) == "easeOutBack" ) ? 'selected="selected"' : ''; ?>>
easeOutBack
</option>
<option name="essl_easing" value="easeInOutBack"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutBack" ) ? 'selected="selected"' : ''; ?>>
easeInOutBack
</option>
<option name="essl_easing" value="easeInQuint"
<?php echo ( get_option( 'essl_easing' ) == "easeInQuint" ) ? 'selected="selected"' : ''; ?>>
easeInQuint
</option>
<option name="essl_easing" value="easeOutQuint"
<?php echo ( get_option( 'essl_easing' ) == "easeOutQuint" ) ? 'selected="selected"' : ''; ?>>
easeOutQuint
</option>
<option name="essl_easing" value="easeInOutQuint"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutQuint" ) ? 'selected="selected"' : ''; ?>>
easeInOutQuint
</option>
<option name="essl_easing" value="easeInExpo"
<?php echo ( get_option( 'essl_easing' ) == "easeInExpo" ) ? 'selected="selected"' : ''; ?>>easeInExpo
</option>
<option name="essl_easing" value="easeOutExpo"
<?php echo ( get_option( 'essl_easing' ) == "easeOutExpo" ) ? 'selected="selected"' : ''; ?>>
easeOutExpo
</option>
<option name="essl_easing" value="easeInOutExpo"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutExpo" ) ? 'selected="selected"' : ''; ?>>
easeInOutExpo
</option>
<option name="essl_easing" value="easeInCubic"
<?php echo ( get_option( 'essl_easing' ) == "easeInCubic" ) ? 'selected="selected"' : ''; ?>>
easeInCubic
</option>
<option name="essl_easing" value="easeOutCubic"
<?php echo ( get_option( 'essl_easing' ) == "easeOutCubic" ) ? 'selected="selected"' : ''; ?>>
easeOutCubic
</option>
<option name="essl_easing" value="easeInOutCubic"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutCubic" ) ? 'selected="selected"' : ''; ?>>
easeInOutCubic
</option>
<option name="essl_easing" value="easeInQuart"
<?php echo ( get_option( 'essl_easing' ) == "easeInQuart" ) ? 'selected="selected"' : ''; ?>>
easeInQuart
</option>
<option name="essl_easing" value="easeOutQuart"
<?php echo ( get_option( 'essl_easing' ) == "easeOutQuart" ) ? 'selected="selected"' : ''; ?>>
easeOutQuart
</option>
<option name="essl_easing" value="easeInOutQuart"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutQuart" ) ? 'selected="selected"' : ''; ?>>
easeInOutQuart
</option>
<option name="essl_easing" value="easeInSine"
<?php echo ( get_option( 'essl_easing' ) == "easeInSine" ) ? 'selected="selected"' : ''; ?>>easeInSine
</option>
<option name="essl_easing" value="easeOutSine"
<?php echo ( get_option( 'essl_easing' ) == "easeOutSine" ) ? 'selected="selected"' : ''; ?>>
easeOutSine
</option>
<option name="essl_easing" value="easeInOutSine"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutSine" ) ? 'selected="selected"' : ''; ?>>
easeInOutSine
</option>
<option name="essl_easing" value="easeInQuad"
<?php echo ( get_option( 'essl_easing' ) == "easeInQuad" ) ? 'selected="selected"' : ''; ?>>easeInQuad
</option>
<option name="essl_easing" value="easeOutQuad"
<?php echo ( get_option( 'essl_easing' ) == "easeOutQuad" ) ? 'selected="selected"' : ''; ?>>
easeOutQuad
</option>
<option name="essl_easing" value="easeInOutQuad"
<?php echo ( get_option( 'essl_easing' ) == "easeInOutQuad" ) ? 'selected="selected"' : ''; ?>>
easeInOutQuad
</option>
</select>
</p>
</label>
</td>
</tr>
<tr>
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
<label for="essl_exclude_begin">
<p><?php _e( 'Exclude Anchors Beginning With ( default is #tab #quicktab #pane ) ', 'easy-smooth-scroll-links' ); ?>
</p>
<input id="essl_exclude_begin_1" type="text" name="essl_exclude_begin_1" placeholder="#beginwith1"
value="<?php echo esc_attr( get_option( 'essl_exclude_begin_1' ) ); ?>"/>
<input id="essl_exclude_begin_2" type="text" name="essl_exclude_begin_2" placeholder="#beginwith2"
value="<?php echo esc_attr( get_option( 'essl_exclude_begin_2' ) ); ?>"/>
<input id="essl_exclude_begin_3" type="text" name="essl_exclude_begin_3" placeholder="#beginwith3"
value="<?php echo esc_attr( get_option( 'essl_exclude_begin_3' ) ); ?>"/>
<input id="essl_exclude_begin_4" type="text" name="essl_exclude_begin_4" placeholder="#beginwith4"
value="<?php echo esc_attr( get_option( 'essl_exclude_begin_4' ) ); ?>"/>
<input id="essl_exclude_begin_5" type="text" name="essl_exclude_begin_5" placeholder="#beginwith5"
value="<?php echo esc_attr( get_option( 'essl_exclude_begin_5' ) ); ?>"/>
</p>
</label>
</td>
</tr>
<tr>
<td style="padding:5px;font-family:Verdana, Geneva, sans-serif;color:#666;">
<label for="essl_offset">
<p><?php _e( 'Exclude Anchors Exactly Match', 'easy-smooth-scroll-links' ); ?>
</p>
<p>
<input id="offset" type="text" name="essl_exclude_match_1" placeholder="#exactmatch1"
value="<?php echo esc_attr( get_option( 'essl_exclude_match_1' ) ); ?>"/>
<input id="offset" type="text" name="essl_exclude_match_2" placeholder="#exactmatch2"
value="<?php echo esc_attr( get_option( 'essl_exclude_match_2' ) ); ?>"/>
<input id="offset" type="text" name="essl_exclude_match_3" placeholder="#exactmatch3"
value="<?php echo esc_attr( get_option( 'essl_exclude_match_3' ) ); ?>"/>
<input id="offset" type="text" name="essl_exclude_match_4" placeholder="#exactmatch4"
value="<?php echo esc_attr( get_option( 'essl_exclude_match_4' ) ); ?>"/>
<input id="offset" type="text" name="essl_exclude_match_5" placeholder="#exactmatch5"
value="<?php echo esc_attr( get_option( 'essl_exclude_match_5' ) ); ?>"/>
</p>
</label>
</td>
</tr>
<tr>
<td style="padding:25px;font-family:Verdana, Geneva, sans-serif;color:#666;">
<label>
<strong><?php _e( 'Enable Scrolling from One Page to Another ?', 'easy-smooth-scroll-links' ); ?>
</strong>
</label>
<input type="checkbox" name="enable_essl_aggressive" value="1"
<?php checked( 1, get_option( 'enable_essl_aggressive' ) ); ?> />
<br>
<strong><?php _e( 'Warning', 'easy-smooth-scroll-links' ); ?>
</strong>:<?php _e( ' This feature is experimental, might cause conflict with some slider plugins, or blank pages.', 'easy-smooth-scroll-links' ); ?>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>
<p class="alignleft"><input type="submit" name="submit" value="Save Settings" class="button button-primary"
onClick="return empty()"></p>
</th>
</tr>
</tfoot>
</table>
</form>
</div>