Weaver Xtreme Theme Support - Version 4.4

Version Description

  • Update: compatibility with Weaver Xtreme V 4.4
  • Added: Wrapper Align, Left/Right Padding in % for Align Wide and Align Full
  • Added: 'Clear One-Step Layout Settings'
Download this release

Release Info

Developer wpweaver
Plugin Icon 128x128 Weaver Xtreme Theme Support
Version 4.4
Comparing to
See all releases

Code changes from version 4.0.5 to 4.4

admin/add-weaverx-sapi-options.php CHANGED
@@ -61,5 +61,3 @@ function weaverx_ts_weaverx_admin_saverestore() {
61
 
62
  } // END IF CAN EDIT POSTS ---------------------------------------------------------------------
63
 
64
-
65
- ?>
61
 
62
  } // END IF CAN EDIT POSTS ---------------------------------------------------------------------
63
 
 
 
admin/admin-advancedopts.php CHANGED
@@ -422,4 +422,4 @@ It will be saved in the both \'.wxt\' and \'.wxb\' settings files.', 'weaver-xtr
422
  do_action('weaverxplus_admin','admin_options');
423
 
424
  }
425
- ?>
422
  do_action('weaverxplus_admin','admin_options');
423
 
424
  }
425
+
admin/admin-lib-ts-2.php CHANGED
@@ -1,244 +1,258 @@
1
  <?php
2
- if ( !defined('ABSPATH')) exit; // Exit if accessed directly
 
 
3
 
4
 
5
- function weaverx_form_textarea($value,$media = false) {
6
- $twide = ($value['type'] == 'text') ? '60' : '140';
7
- $rows = ( isset($value['val'] ) ) ? $value['val'] : 1;
8
- $place = ( isset($value['placeholder'] ) ) ? $value['placeholder'] : ' ';
9
- if ( $rows < 1 )
10
  $rows = 1;
11
- ?>
12
- <tr>
13
- <th scope="row" align="right"><?php weaverx_echo_name($value); ?>:&nbsp;</th>
14
- <td colspan=2>
15
- <?php weaverx_textarea(weaverx_getopt($value['id']), $value['id'], $rows , $place, 'width:350px;', $class='wvrx-edit'); ?>
16
- <?php
17
- if ($media) {
18
- weaverx_media_lib_button($value['id']);
19
  }
20
- ?>
21
- &nbsp;<small><?php echo $value['info']; ?></small>
22
- </td>
 
 
 
 
 
 
 
 
 
23
 
24
  </tr>
25
- <?php
26
  }
27
 
28
- function weaverx_form_text($value,$media=false) {
29
- $twide = ($value['type'] == 'text') ? '60' : '160';
30
- ?>
31
  <tr>
32
- <th scope="row" align="right"><?php weaverx_echo_name($value); ?>:&nbsp;</th>
33
- <td>
34
- <input name="<?php weaverx_sapi_main_name($value['id']); ?>" id="<?php echo $value['id']; ?>" type="text" style="width:<?php echo $twide;?>px;" class="regular-text" value="<?php echo esc_textarea(weaverx_getopt( $value['id'] )); ?>" />
35
- <?php
36
- if ($media) {
37
- weaverx_media_lib_button($value['id']);
38
- }
39
- ?>
40
- </td>
41
- <?php weaverx_form_info($value);
42
- ?>
43
  </tr>
44
- <?php
45
  }
46
 
47
- function weaverx_form_val($value, $unit = '') {
48
- ?>
49
  <tr>
50
- <th scope="row" align="right"><?php weaverx_echo_name($value); ?>:&nbsp;</th>
51
- <td>
52
- <input name="<?php weaverx_sapi_main_name($value['id']); ?>" id="<?php echo $value['id']; ?>" type="text" style="width:50px;" class="regular-text" value="<?php echo esc_textarea(weaverx_getopt( $value['id'] )); ?>" /> <?php echo $unit; ?>
53
- </td>
54
- <?php weaverx_form_info($value);
55
- ?>
56
  </tr>
57
- <?php
58
  }
59
 
60
- function weaverx_form_text_xy($value,$x='X', $y='Y', $units='px') {
61
  $xid = $value['id'] . '_' . $x;
62
  $yid = $value['id'] . '_' . $y;
63
- $colon = ($value['name']) ? ':' : '';
64
- ?>
65
  <tr>
66
- <th scope="row" align="right"><?php weaverx_echo_name($value); echo $colon;?>&nbsp;</th>
67
- <td>
68
- <?php echo '<span class="rtl-break">' . $x;?>:<input name="<?php weaverx_sapi_main_name($xid); ?>" id="<?php echo $xid; ?>" type="text" style="width:40px;" class="regular-text" value="<?php weaverx_esc_textarea(weaverx_getopt( $xid )); ?>" /> <?php echo $units; ?></span>
69
- &nbsp;<?php echo '<span class="rtl-break">' . $y;?>:<input name="<?php weaverx_sapi_main_name($yid); ?>" id="<?php echo $yid; ?>" type="text" style="width:40px;" class="regular-text" value="<?php weaverx_esc_textarea(weaverx_getopt( $yid )); ?>" /> <?php echo $units; ?></span>
70
- </td>
71
- <?php weaverx_form_info($value);
72
- ?>
 
 
 
 
73
  </tr>
74
- <?php
75
  }
76
 
77
- function weaverx_form_checkbox($value) {
78
- ?>
79
  <tr>
80
- <th scope="row" align="right"><?php weaverx_echo_name($value); ?>:&nbsp;</th>
81
- <td>
82
- <input type="checkbox" name="<?php weaverx_sapi_main_name($value['id']); ?>" id="<?php echo $value['id']; ?>"
83
- <?php checked(weaverx_getopt_checked( $value['id'] )); ?> >
84
- </td>
85
- <?php weaverx_form_info($value);
86
- ?>
87
  </tr>
88
- <?php
89
  }
90
 
91
  function weaverx_form_radio( $value ) {
92
- ?>
93
 
94
  <tr>
95
- <th scope="row" align="right"><?php weaverx_echo_name($value); ?>:&nbsp;</th>
96
- <td colspan="2">
97
-
98
- <?php
99
- $cur_val = weaverx_getopt_default( $value['id'], 'black' );
100
- foreach ($value['value'] as $option) {
101
- $desc = $option['val'];
102
- if ( $desc == 'none' ) {
103
- $desc = "None";
104
- } else {
105
- $icon = weaverx_relative_url('assets/css/icons/search-' . $desc . '.png');
106
- $desc = '<img style="background-color:#ccc;height:24px; width:24px;" src="' . $icon . '" />';
107
- }
108
- ?>
109
- <input type="radio" name="<?php weaverx_sapi_main_name($value['id']); ?>" value="<?php echo $option['val']; ?>"
110
- <?php checked($cur_val,$option['val']); ?> > <?php echo $desc; ?>&nbsp;
111
- <?php } ?>
112
- <?php echo '<br /><small style="margin-left:5%;">' . $value['info'] . '</small>'; ?>
113
- </td>
114
  </tr>
115
- <?php
116
  }
117
 
118
 
119
  function weaverx_form_select_id( $value, $show_row = true ) {
120
  if ( $show_row ) { ?>
121
 
122
- <tr>
123
- <th scope="row" align="right"><?php weaverx_echo_name($value); ?>:&nbsp;</th>
124
- <td>
125
  <?php } ?>
126
 
127
- <select name="<?php weaverx_sapi_main_name($value['id']); ?>" id="<?php echo $value['id']; ?>">
128
- <?php
129
- foreach ($value['value'] as $option) {
130
- ?>
131
- <option value="<?php echo $option['val'] ?>" <?php selected( (weaverx_getopt( $value['id'] ) == $option['val']));?>><?php echo $option['desc']; ?></option>
132
- <?php } ?>
 
133
  </select>
134
  <?php if ( $show_row ) { ?>
135
- </td>
136
- <?php weaverx_form_info($value); ?>
137
- </tr>
138
  <?php }
139
  }
140
 
141
- function weaverx_form_select_alt_theme($value) {
142
 
143
- if ( function_exists( 'weaverx_pp_get_alt_themes' ) ) // backward compatibility for Weaver Xtreme 3
 
144
  $themes = weaverx_pp_get_alt_themes();
145
- else
146
  $themes = array();
 
147
  $list = array();
148
- $list[] = array( 'val' => '', 'desc' => '');
149
  foreach ( $themes as $subtheme ) {
150
- $list[] = array( 'val' => $subtheme, 'desc' => $subtheme);
151
  }
152
 
153
 
154
  $value['value'] = $list;
155
- weaverx_form_select_id($value);
156
  }
157
 
158
- function weaverx_form_select_layout($value) {
159
- $list = array(array('val' => 'default', 'desc' => __('Use Default', 'weaver-xtreme' /*adm*/) ),
160
- array('val' => 'right', 'desc' => __('Sidebars on Right', 'weaver-xtreme' /*adm*/) ),
161
- array('val' => 'right-top', 'desc' => __('Sidebars on Right (stack top)', 'weaver-xtreme' /*adm*/) ),
162
- array('val' => 'left', 'desc' => __('Sidebars on Left', 'weaver-xtreme' /*adm*/) ),
163
- array('val' => 'left-top', 'desc' => __(' Sidebars on Left (stack top)', 'weaver-xtreme' /*adm*/) ),
164
- array('val' => 'split', 'desc' => __('Split - Sidebars on Right and Left', 'weaver-xtreme' /*adm*/) ),
165
- array('val' => 'split-top', 'desc' => __('Split (stack top)', 'weaver-xtreme' /*adm*/) ),
166
- array('val' => 'one-column', 'desc' => __('No sidebars, content only', 'weaver-xtreme' /*adm*/) )
 
167
  );
168
 
169
 
170
  $value['value'] = $list;
171
- weaverx_form_select_id($value);
172
  }
173
 
174
 
175
- function weaverx_form_link($value) {
176
  $id = $value['id'];
177
 
178
- $link = array ('name' => $value['name'] , 'id' => $id.'_color', 'type' => 'ctext', 'info' => $value['info']);
179
- $hover = array ('name' => '<small>' . __('Hover', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => $id.'_hover_color', 'type' => 'ctext', 'info' => __('Hover Color', 'weaver-xtreme' /*adm*/));
180
 
181
- weaverx_form_ctext($link);
182
  $id_strong = $id . '_strong';
183
  $id_em = $id . '_em';
184
  $id_u = $id . '_u';
185
- $id_uh = $id. '_u_h';
186
- ?>
187
- <tr><td><small style="float:right;"><?php _e('Link Attributes:', 'weaver-xtreme' /*adm*/); ?></small></td><td colspan="2">
 
188
 
189
- <small style="margin-left:5em;"><strong><?php _e('Bold', 'weaver-xtreme' /*adm*/); ?></strong></small>
190
 
191
- <?php weaverx_form_font_bold_italic(array('id' => $id_strong)); ?>
192
 
193
- &nbsp;<small><em><?php _e('Italic', 'weaver-xtreme' /*adm*/); ?></em></small>
194
- <?php weaverx_form_font_bold_italic(array('id' => $id_em)); ?>
195
 
196
- &nbsp;<small><u><?php _e('Link Underline', 'weaver-xtreme' /*adm*/); ?></u></small>
197
- <input type="checkbox" name="<?php weaverx_sapi_main_name($id_u); ?>" id="<?php echo $id_u; ?>"
198
- <?php checked(weaverx_getopt_checked( $id_u )); ?> >
199
 
200
- &nbsp;|&nbsp;&nbsp;<small><u><?php _e('Hover Underline', 'weaver-xtreme' /*adm*/); ?></u></small>
201
- <input type="checkbox" name="<?php weaverx_sapi_main_name($id_uh); ?>" id="<?php echo $id_uh; ?>"
202
- <?php checked(weaverx_getopt_checked( $id_uh )); ?> >
203
 
204
- <?php
205
- weaverx_form_ctext($hover, true);
206
- ?>
207
 
208
- <?php
209
  echo '</td></tr>';
210
  }
211
 
212
 
213
- function weaverx_form_break($value) {
214
- $lim = isset( $value['value'] ) ? $value['value'] : 1 ;
215
- $label = isset( $value['name'] ) ? "<em style='color:blue;'><strong>{$value['name']}</strong></em>" : '&nbsp;' ;
216
- for ( $n = 1 ; $n <= $lim ; ++$n ) {
217
  echo "<tr><td style='text-align:right;'>{$label}</td></tr>";
218
  $label = '&nbsp;';
219
  }
220
  }
221
 
222
- function weaverx_form_note($value) {
223
- ?>
224
  <tr>
225
- <th scope="row" align="right">&nbsp;</th>
226
- <td style="float:right;font-weight:bold;"><?php weaverx_echo_name($value); ?>&nbsp;
227
- <?php
228
- weaverx_form_help($value);
229
- ?>
230
  </td>
231
- <?php
232
- weaverx_form_info($value);
233
- ?>
234
  </tr>
235
- <?php
236
  }
237
 
238
 
239
- function weaverx_form_info($value) {
240
- if ($value['info'] != '') {
241
- echo('<td style="padding-left: 10px"><small>'); echo $value['info']; echo("</small></td>");
 
 
242
  }
243
  }
244
 
@@ -254,124 +268,209 @@ function weaverx_form_widget_area( $value, $submit = false ) {
254
 
255
  // defaults - these are determined by the =Padding section of style-weaverx.css
256
  $default_tb = array(
257
- 'infobar' => '5px', 'content' => 'T:4px, B:8px', 'footer' => '8px',
258
- 'footer_sb' => '8px', 'primary' => '8px',
259
- 'secondary' => '8px', 'extra' => '8px', 'top' => '8px', 'bottom' => '8px'
 
 
 
 
 
 
260
  );
261
 
262
  $default_lr = array(
263
- 'infobar' => '5px', 'content' => '2%', 'post' => '0', 'footer' => '8px',
264
- 'footer_sb' => '8px', 'primary' => '8px',
265
- 'secondary' => '8px', 'extra' => '8px', 'top' => '8px', 'bottom' => '8px'
 
 
 
 
 
 
 
266
  );
267
 
268
  $default_margins = array(
269
- 'infobar' => '5px', 'content' => 'T:0, B:0', 'footer' => 'T:0, B:0',
270
- 'footer_sb' => 'T:0, B:10', 'primary' => 'T:0, B:10', 'widget' => '0, Auto - First: T:0, Last: B:0',
271
- 'secondary' => 'T:0, B:10', 'extra' => 'T:0, B:10', 'top' => 'T:10, B:10', 'bottom' => 'T:10, B:10',
272
- 'wrapper' => 'T:0, B:0', 'post' => 'T:0, B:15',
 
 
 
 
 
 
 
 
273
  );
274
 
275
  $id = $value['id'];
276
 
277
- $def_tb = '0'; $def_lr = '0' ; $def_marg = '0';
278
- if ( isset( $default_tb[$id] ) ) $def_tb = $default_tb[$id];
279
- if ( isset( $default_lr[$id] ) ) $def_lr = $default_lr[$id];
280
- if ( isset( $default_margins[$id] ) ) $def_marg = $default_margins[$id];
 
 
 
 
 
 
 
 
281
 
282
- $use_percent = array('content', 'post');
283
 
284
  //echo '<table><tr><td>';
285
  $name = $value['name'];
286
 
287
 
288
- $lr_type = ( in_array($id, $use_percent) ) ? 'text_lr_percent' : 'text_lr';
289
 
290
 
291
- $opts = array (
292
-
293
- array( 'name' => $name, 'id' => '-welcome-widgets-menus', 'type' => 'header_area',
294
- 'info' => $value['info']),
295
-
296
- array( 'name' => $name, 'id' => $id, 'type' => 'titles_area',
297
- 'info' => $name ),
298
-
299
- array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span>' . __('Padding', 'weaver-xtreme' /*adm*/) ,
300
- 'id' => $id . '_padding', 'type' => 'text_tb',
301
- 'info' => '<em>' . $name . '</em>' . __(': Top/Bottom Inner padding [Default: ', 'weaver-xtreme') . $def_tb . ']' ),
302
-
303
- array( 'name' => '', 'id' => $id . '_padding', 'type' => $lr_type,
304
- 'info' => '<em>' . $name . '</em>' . __(': Left/Right Inner padding [Default: ', 'weaver-xtreme') . $def_lr . ']' ),
305
 
306
- array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span>' . __('Top/Bottom Margins', 'weaver-xtreme'),
307
- 'id' => $id . '_margin', 'type' => 'text_tb',
308
- 'info' => '<em>' . $name . '</em>' . __(': Top/Bottom margins. <em>Side margins auto-generated.</em> [Default: ', 'weaver-xtreme') . $def_marg . ']' )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
 
310
  );
311
 
312
- weaverx_form_show_options($opts, false, false);
313
 
314
 
315
  $no_lr_margins = array( // areas that can't allow left-right margin or width specifications
316
- 'primary', 'secondary', 'content', 'post', 'widget'
 
 
 
 
317
  );
318
  $no_widgets = array( // areas that don't have widgets
319
- 'widget', 'content', 'post', 'wrapper', 'container', 'header', 'header_html', 'footer_html', 'footer', 'infobar'
 
 
 
 
 
 
 
 
 
320
  );
321
 
322
  $no_hide = array(
323
- 'wrapper', 'container', 'content','widget', 'post'
 
 
 
 
324
  );
325
 
326
  $default_auto = array(
327
- 'top', 'bottom', 'footer_sb', 'header_sb'
 
 
 
328
  );
329
 
330
 
331
- if ( in_array( $id, $no_lr_margins )) {
332
- if ( $id != 'widget') {
333
- weaverx_form_checkbox(array(
334
- 'name' => '<span class="i-left dashicons dashicons-align-none"></span>' . __('Add Side Margin(s)', 'weaver-xtreme' /*adm*/),
335
- 'id' => $id . '_smartmargin',
336
  'type' => '',
337
  'info' => '<em>' . $name . '</em>' .
338
- __(': Automatically add left/right "smart" margins for separation of areas (sidebar/content).', 'weaver-xtreme' /*adm*/) ));
 
339
  }
340
 
341
- weaverx_form_note(array('name' => '<strong>' . __('Width', 'weaver-xtreme' /*adm*/) . '</strong>',
342
- 'info' => __('The width of this area is automatically determined by the enclosing area', 'weaver-xtreme' /*adm*/)));
343
- } else if ( $id != 'wrapper' ) {
 
 
344
 
345
- if ( in_array($id, $default_auto)) {
346
  weaverx_form_val( array(
347
- 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __('Width', 'weaver-xtreme' /*adm*/),
348
- 'id' => $id . '_width_int', 'type' => '',
349
- 'info' => '<em>' . $name . '</em>' . __(': Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Center align. Use 0 to force auto width. (Default if blank: auto)', 'weaver-xtreme' /*adm*/),
350
- 'value' => array() ), '%' );
 
 
351
  } else {
352
  weaverx_form_val( array(
353
- 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __('Width', 'weaver-xtreme' /*adm*/),
354
- 'id' => $id . '_width_int', 'type' => '',
355
- 'info' => '<em>' . $name . '</em>' . __(': Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Center align. Use 0 to force auto width. (Default if blank: 100%)', 'weaver-xtreme' /*adm*/),
356
- 'value' => array() ), '%' );
 
 
357
 
358
  }
359
 
360
- weaverx_form_align(array(
361
- 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Align Area', 'weaver-xtreme' /*adm*/) . '</small>',
362
- 'id' => $id . '_align',
363
- 'type' => '',
364
- 'info' => '<em>' . $name . '</em>' . __(': How to align this area (Default: Left Align)', 'weaver-xtreme' /*adm*/) )
365
-
366
  );
367
 
368
- if ($id == 'header_html' || $id == 'footer_html') {
369
- weaverx_form_checkbox(array(
370
- 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Center Content', 'weaver-xtreme' /*adm*/) . '</small>',
371
- 'id' => $id . '_center_content',
 
 
 
 
 
 
 
 
 
 
372
  'type' => '',
373
  'info' => '<em>' . $name . '</em>' .
374
- __(': Center Content within HTML Area content within the area.', 'weaver-xtreme' /*adm*/) ));
 
375
  }
376
 
377
  }
@@ -379,274 +478,408 @@ function weaverx_form_widget_area( $value, $submit = false ) {
379
 
380
  if ( $id == 'wrapper' ) { // setting #wrapper sets theme width.
381
 
382
- $info = __('<em>Change Theme Width.</em> Standard width is 1100px. Use the options on the "Full Width" tab for full width designs, but leave this value set. Widths less than 768px may give unexpected results on mobile devices. Weaver Xtreme can not create a fixed-width site.', 'weaver-xtreme' /*adm*/);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
 
384
  weaverx_form_val( array(
385
- 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><em style="color:red;">' . __('Theme Width', 'weaver-xtreme' /*adm*/) . '</em>',
386
- 'id' => 'theme_width_int', 'type' => '',
387
- 'info' => $info,
388
- 'value' => array() ), 'px' );
 
 
389
  }
390
 
391
- if ( in_array( $id, array( 'container', 'header', 'footer') ) ) {
392
  $opts_max = array(
393
- array(
394
- 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('Max Width', 'weaver-xtreme' /*adm*/) . '</small>',
395
- 'id' => $id . '_max_width_int', 'type' => '+val_px',
396
- 'info' => '<em>' . $name . '</em>' . __(': Set Max Width of Area for Desktop View. Advanced Option. (&starf;Plus)', 'weaver-xtreme' /*adm*/),
397
- 'value' => array() ),
 
 
398
  );
399
 
400
- weaverx_form_show_options($opts_max, false, false);
401
  }
402
 
403
 
404
- if ( ! in_array( $id, $no_widgets) ) {
405
 
406
  $opts02 = array(
407
- array('name' => '<span class="i-left" style="font-size:120%;">&nbsp;&#9783;</span>' . __('Columns', 'weaver-xtreme' /*adm*/),
408
- 'id' => $id . '_cols_int', 'type' => 'val_num',
409
- 'info' => '<em>' . $name . '</em>' . __(': Equal width columns of widgets (Default: 1; max: 8)', 'weaver-xtreme' /*adm*/) ),
410
-
411
- array('name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('No Smart Widget Margins', 'weaver-xtreme' /*adm*/) . '</small>',
412
- 'id' => $id . '_no_widget_margins', 'type' => 'checkbox',
413
- 'info' => '<em>' . $name . '</em>' . __(': Do not use "smart margins" between widgets on rows.', 'weaver-xtreme' /*adm*/) ),
414
-
415
- array('name' => '<span class="i-left" style="font-size:140%;">&nbsp;=</span><small>' . __('Equal Height Widget Rows', 'weaver-xtreme' /*adm*/) . '</small>',
416
- 'id' => $id . '_eq_widgets', 'type' => '+checkbox',
417
- 'info' => '<em>' . $name . '</em>' . __(': Make widgets equal height rows if &gt; 1 column (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
 
 
 
 
 
 
 
 
 
418
 
419
  );
420
 
421
- weaverx_form_show_options($opts02, false, false);
422
-
423
-
424
- $custom_widths = array( 'header_sb', 'footer_sb', 'primary', 'secondary', 'top', 'bottom');
425
- if ( in_array( $id, $custom_widths) ) { /* if ( $id == 'header_sb' || $id == 'footer_sb' ) { */ ?>
426
- <tr><th scope="row" align="right"><span class="i-left" style="font-size:120%;">&nbsp;&#9783;</span><small><?php _e('Custom Widget Widths:', 'weaver-xtreme' /*adm*/); ?></small></th><td colspan="2" style="padding-left:20px;">
427
- <small><?php _e('You can optionally specify widget widths, including for specific devices. Please read the help entry!', 'weaver-xtreme' /*adm*/); ?>
428
- <?php weaverx_help_link('help.html#CustomWidgetWidth',__('Help on Custom Widget Widths', 'weaver-xtreme' /*adm*/)); ?>
429
- <?php _e('(&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/); ?></small></td>
430
- </tr>
431
- <?php
432
- $opts2 = array(
433
- array('name' => '<span class="i-left dashicons dashicons-desktop"></span><small>' . __('Desktop', 'weaver-xtreme' /*adm*/) . '</small>',
434
- 'id' => '_' . $id . '_lw_cols_list', 'type' => '+textarea',
435
- 'placeholder' => __('25,25,50; 60,40; - for example', 'weaver-xtreme' /*adm*/),
436
- 'info' => __('List of widths separated by comma. Use semi-colon (;) for end of each row. (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/)),
437
- array('name' => '<span class="i-left dashicons dashicons-tablet"></span><small>' . __('Small Tablet', 'weaver-xtreme' /*adm*/) . '</small>',
438
- 'id' => '_' . $id . '_mw_cols_list', 'type' => '+textarea',
439
- 'info' => __('List of widget widths. (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/)),
440
- array('name' => '<span class="i-left dashicons dashicons-smartphone"></span><small>' . __('Phone', 'weaver-xtreme' /*adm*/) . '</small>',
441
- 'id' => '_' . $id . '_sw_cols_list', 'type' => '+textarea',
442
- 'info' => __('List of widget widths. (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/)),
443
- );
444
-
445
- weaverx_form_show_options($opts2, false, false);
 
 
 
 
 
 
 
 
 
 
 
446
  }
447
  }
448
 
449
- $opts3 = array (
450
- array( 'name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __('Add Border', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => $id . '_border', 'type' => 'checkbox',
451
- 'info' => '<em>' . $name . '</em>' . __(': Add the "standard" border (as set on Custom tab)', 'weaver-xtreme' /*adm*/)),
452
- array( 'name' => '<span class="i-left dashicons dashicons-admin-page"></span><small>' . __('Shadow', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => $id .'_shadow', 'type' => 'shadows',
453
- 'info' => '<em>' . $name . '</em>' . __(': Wrap Area with Shadow.', 'weaver-xtreme' /*adm*/)),
454
- array( 'name' => '<span class="i-left dashicons dashicons-marker"></span><small>' . __('Rounded Corners', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => $id .'_rounded', 'type' => 'rounded',
455
- 'info' => '<em>' . $name . '</em>' . __(': Rounded corners. Needs bg color or borders to show. <em>You might need to set overlapping corners for parent/child areas also!</em>', 'weaver-xtreme' /*adm*/) )
 
 
 
 
 
 
 
 
 
 
 
 
456
  );
457
 
458
 
 
459
 
460
- weaverx_form_show_options($opts3, false, false);
461
-
462
- if ( ! in_array( $id, $no_hide) ) {
463
- weaverx_form_select_hide(array(
464
- 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Area', 'weaver-xtreme' /*adm*/) . '</small>',
465
- 'id' => $id .'_hide',
466
- 'info' => '<em>' . $name . '</em>' . __(': Hide area on different display devices', 'weaver-xtreme' /*adm*/),
467
- 'value' => '' ) );
468
  }
469
 
470
  // class names
471
- $opts4 = array (
472
- array( 'name' => '<span class="i-left">{ }</span> <small>' . __('Add Classes', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => $id . '_add_class', 'type' => '+widetext',
473
- 'info' => '<em>' . $name . '</em>' . __(': Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme' /*adm*/)
474
- )
 
 
 
475
  );
476
 
477
- weaverx_form_show_options($opts4, false, false);
478
 
479
- if ( $submit )
480
- weaverx_form_submit('');
 
481
  //echo '</td></tr></table>';
482
 
483
  }
484
 
485
 
486
-
487
-
488
-
489
  function weaverx_form_menu_opts( $value, $submit = false ) {
490
  // build the rows for area
491
  $wp_logo = weaverx_get_wp_custom_logo_url();
492
 
493
 
494
- if ($wp_logo)
495
  $wp_logo_html = "<img src='{$wp_logo}' style='max-height:16px;margin-left:10px;' />";
496
- else
497
- $wp_logo_html = __('Not set', 'weaver-xtreme');
 
498
 
499
  //echo '<table><tr><td>';
500
  $name = $value['name'];
501
  $id = $value['id'];
502
 
503
 
504
-
505
- $opts = array (
506
- array( 'name' => $name, 'id' => '-menu', 'type' => 'header_area',
507
- 'info' => $value['info']),
508
- array( 'name' => __('Menu Bar Layout', 'weaver-xtreme'), 'type' => 'break'),
509
-
510
- array ('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span>' . __('Align Menu', 'weaver-xtreme' /*adm*/),
511
- 'id' => $id . '_align', 'type' => 'select_id',
512
- 'info' => __('Align this menu on desktop view. Mobile, accordion, and vertical menus always left aligned.', 'weaver-xtreme' /*adm*/),
 
 
 
 
 
513
  'value' => array(
514
- array('val' => 'left', 'desc' => 'Left'),
515
- array('val' => 'center', 'desc' => 'Center'),
516
- array('val' => 'right', 'desc' => 'Right'),
517
- array('val' => 'alignwide', 'desc' => __('Align Wide', 'weaver-xtreme' /*adm*/) ),
518
- array('val' => 'alignwide left', 'desc' => __('Align Wide, Items Left', 'weaver-xtreme' /*adm*/) ),
519
- array('val' => 'alignwide center', 'desc' => __('Align Wide, Items Center', 'weaver-xtreme' /*adm*/) ),
520
- array('val' => 'alignwide right', 'desc' => __('Align Wide, Items Right', 'weaver-xtreme' /*adm*/) ),
521
- array('val' => 'alignfull', 'desc' => __('Align Full', 'weaver-xtreme' /*adm*/) ),
522
- array('val' => 'alignfull left', 'desc' => __('Align Full, Items Left', 'weaver-xtreme' /*adm*/) ),
523
- array('val' => 'alignfull center', 'desc' => __('Align Full, Items Center', 'weaver-xtreme' /*adm*/) ),
524
- array('val' => 'alignfull right', 'desc' => __('Align Full, Items Right', 'weaver-xtreme' /*adm*/) )
525
- )),
526
-
527
- array( 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Menu', 'weaver-xtreme' /*adm*/) . '</small>',
528
- 'id' => $id .'_hide', 'type' => 'select_hide',
529
- 'info' => '<em>' . $name . '</em>' . __(': Hide menu on different display devices', 'weaver-xtreme' /*adm*/) ),
 
 
 
 
530
 
531
  );
532
 
533
  if ( $id != 'm_extra' ) {
534
- $opts[] = array( 'name' => '<span class="i-left dashicons dashicons-editor-kitchensink"></span>' . __('Fixed-Top Menu', 'weaver-xtreme' /*adm*/),
535
- 'id' => $id . '_fixedtop', 'type' => 'fixedtop',
536
- 'info' => '<em>' . $name . '</em>' . __(': Fix menu to top of page. Note: the "Fix to Top on Scroll" does not play well with other "Fixed-Top" areas. Use the <em>Expand/Extend BG Attributes</em> on the Full Width tab to make a full width menu.', 'weaver-xtreme' /*adm*/));
 
 
 
537
 
538
  }
539
 
540
  if ( $id == 'm_primary' ) {
541
  $opts[] = array(
542
- 'name' => '<small>' . __('Move Primary Menu to Top', 'weaver-xtreme' /*adm*/) . '</small>',
543
- 'id' => $id . '_move', 'type' => 'checkbox',
544
- 'info' => '<em>' . $name . '</em>' . __(': Move Primary Menu at Top of Header Area (Default: Bottom)', 'weaver-xtreme' /*adm*/),
545
- 'value' => '' );
 
 
546
 
547
 
548
- $opts[] = array('name' => '<span class="i-left dashicons dashicons-heart"></span><small>' . __('Add Site Logo to Left', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'm_primary_logo_left', 'type' => 'checkbox',
549
- 'info' => __('Add the Site Logo to the primary menu. Add custom CSS for <em>.custom-logo-on-menu</em> to style. (Use Customize &rarr; General Options &rarr; Site Identity to set Site Logo.) Logo: ', 'weaver-xtreme' /*adm*/) . $wp_logo_html);
 
 
 
 
550
 
551
- $opts[] = array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Height of Logo on Menu', 'weaver-xtreme' /*adm*/) . '</small>',
552
- 'id' => 'm_primary_logo_height_dec', 'type' => 'val_em',
553
- 'info' => __('Set height of Logo on Menu. Will interact with padding. (Default: 2.0em, the standard Menu Bar height.)', 'weaver-xtreme' /*adm*/) );
 
 
 
554
 
555
- $opts[] = array('name' => '<small>' . __('Logo Links to Home', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'm_primary_logo_home_link', 'type' => 'checkbox',
556
- 'info' => __('Add a link to home page to logo on menu bar.', 'weaver-xtreme' /*adm*/));
 
 
 
 
557
 
558
- $opts[] = array('name' => '<small>' . __('Add Site Title to Left', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'm_primary_site_title_left', 'type' => 'checkbox',
559
- 'info' => __('Add Site Title to primary menu left, with link to home page. (Uses Header Title font family, bold, and italic settings. Custom style with .site-title-on-menu.', 'weaver-xtreme' /*adm*/));
 
 
 
 
560
 
561
- $opts[] = array('name' => '<small>' . __("Add Search to Right", 'weaver-xtreme' /*adm*/) . '</small>',
562
- 'id' => 'm_primary_search', 'type' => '+checkbox',
563
- 'info' => __('Add slide open search icon to right end of primary menu. (&starf;Plus)', 'weaver-xtreme' /*adm*/) );
 
 
 
564
 
565
- $opts[] = array('name' => '<small>' . __('No Home Menu Item', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'menu_nohome', 'type' => 'checkbox',
566
- 'info' => __('Don\'t automatically add Home menu item for home page (as defined in Settings->Reading)', 'weaver-xtreme' /*adm*/));
 
 
 
 
567
 
568
 
569
  } elseif ( $id == 'm_secondary' ) {
570
  $opts[] = array(
571
- 'name' => '<small>' . __('Move Secondary Menu to Bottom', 'weaver-xtreme' /*adm*/) . '</small>',
572
- 'id' => $id . '_move', 'type' => 'checkbox',
573
- 'info' => '<em>' . $name . '</em>' . __(': Move Secondary Menu at Bottom of Header Area (Default: Top)', 'weaver-xtreme' /*adm*/),
574
- 'value' => '' );
 
 
575
  }
576
 
577
- weaverx_form_show_options($opts, false, false);
578
-
579
-
580
 
581
 
582
  $opts = array(
583
 
584
- array( 'name' => __('Menu Bar Colors', 'weaver-xtreme'), 'type' => 'break','value' => 1),
585
-
586
- array( 'name' => __('Menu Bar', 'weaver-xtreme' /*adm*/),
587
- 'id' => $id, 'type' => 'titles_menu', // includes color, font size, font family
588
- 'info' => __('Entire Menu Bar', 'weaver-xtreme' /*adm*/) ),
589
-
590
- array( 'name' => __('Item BG', 'weaver-xtreme' /*adm*/),
591
- 'id' => $id . '_link_bgcolor', 'type' => 'ctext',
592
- 'info' => '<em>' . $name . '</em>' . __(': Background Color for Menu Bar Items (links)', 'weaver-xtreme' /*adm*/) ),
593
-
594
- array( 'name' => '<small>' . __('Dividers between menu items', 'weaver-xtreme' /*adm*/) . '</small>',
595
- 'id' => $id . '_dividers_color', 'type' => '+color',
596
- 'info' => '<em>' . $name . '</em>' . __(': Add colored dividers between menu items. Leave blank for none. (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
597
-
598
- array( 'name' => '<small>' . __('Hover BG', 'weaver-xtreme' /*adm*/) . '</small>',
599
- 'id' => $id . '_hover_bgcolor', 'type' => 'ctext',
600
- 'info' => '<em>' . $name . '</em>' . __(': Hover BG Color (Default: rgba(255,255,255,0.15))', 'weaver-xtreme' /*adm*/) ),
601
- array( 'name' => '<small>' . __('Hover Text Color', 'weaver-xtreme' /*adm*/) . '</small>',
602
- 'id' => $id . '_hover_color', 'type' => 'color',
603
- 'info' => '<em>' . $name . '</em>' . __(': Hover Text Color', 'weaver-xtreme' /*adm*/) ),
604
-
605
-
606
- array( 'name' => '<small>' . __('<em>Mobile</em> Open Submenu Arrow BG -<br /><em>Not used by SmarMenus</em>', 'weaver-xtreme' /*adm*/) . '</small>',
607
- 'id' => $id . '_clickable_bgcolor', 'type' => 'ctext',
608
- 'info' => '<em>' . $name . '</em>' . __(': Clickable mobile open submenu arrow BG. Contrasting BG color required for proper user interface. <em>Not used by SmartMenus</em>. (Default: rgba(255,255,255,0.2))', 'weaver-xtreme' /*adm*/) ),
609
-
610
-
611
-
612
- array( 'name' => __('Submenu BG', 'weaver-xtreme' /*adm*/),
613
- 'id' => $id . '_sub_bgcolor', 'type' => 'ctext',
614
- 'info' => '<em>' . $name . '</em>' . __(': Background Color for submenus', 'weaver-xtreme' /*adm*/) ),
615
- array( 'name' => '<small>' . __('Submenu Text Color', 'weaver-xtreme' /*adm*/) . '</small>',
616
- 'id' => $id . '_sub_color', 'type' => 'ctext',
617
- 'info' => '<em>' . $name . '</em>' . __(': Text Color for submenus', 'weaver-xtreme' /*adm*/) ),
618
-
619
- array( 'name' => '<small>' . __('Submenu Hover BG', 'weaver-xtreme' /*adm*/) . '</small>',
620
- 'id' => $id . '_sub_hover_bgcolor', 'type' => 'ctext',
621
- 'info' => '<em>' . $name . '</em>' . __(': Submenu Hover BG Color (Default: Inherit Top Level)', 'weaver-xtreme' /*adm*/) ),
622
- array( 'name' => '<small>' . __('Submenu Hover Text Color', 'weaver-xtreme' /*adm*/) . '</small>',
623
- 'id' => $id . '_sub_hover_color', 'type' => 'color',
624
- 'info' => '<em>' . $name . '</em>' . __(': Submenu Hover Text Color (Default: Inherit Top Level)', 'weaver-xtreme' /*adm*/) ),
625
-
626
- array( 'name' => __('Menu Bar Style', 'weaver-xtreme'), 'type' => 'break'),
627
-
628
- array( 'name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __('Add Border', 'weaver-xtreme' /*adm*/) . '</small>',
629
- 'id' => $id . '_border', 'type' => 'checkbox',
630
- 'info' => '<em>' . $name . '</em>' . ': Add the "standard" border (as set on Custom tab)' ),
631
-
632
- array( 'name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __('Add Border to Submenus', 'weaver-xtreme' /*adm*/) . '</small>',
633
- 'id' => $id . '_sub_border', 'type' => 'checkbox',
634
- 'info' => '<em>' . $name . '</em>' . ': Add the "standard" border to Submenus' ),
635
-
636
- array( 'name' => '<span class="i-left dashicons dashicons-admin-page"></span><small>' . __('Shadow', 'weaver-xtreme' /*adm*/) . '</small>',
637
- 'id' => $id .'_shadow', 'type' => 'shadows',
638
- 'info' => '<em>' . $name . '</em>' . __(': Wrap Menu Bar with Shadow.', 'weaver-xtreme' /*adm*/) ),
639
- array( 'name' => '<span class="i-left dashicons dashicons-marker"></span><small>' . __('Rounded Corners', 'weaver-xtreme' /*adm*/) . '</small>',
640
- 'id' => $id .'_rounded', 'type' => 'rounded',
641
- 'info' => '<em>' . $name . '</em>' . __(': Add rounded corners to menu. <em>You might need to set overlapping corners Header/Wrapper areas also!</em>', 'weaver-xtreme' /*adm*/) ),
642
- array( 'name' => '<span class="i-left dashicons dashicons-marker"></span><small>' . __('Rounded Submenu Corners', 'weaver-xtreme' /*adm*/) . '</small>',
643
- 'id' => $id . '_sub_rounded', 'type' => 'checkbox',
644
- 'info' => '<em>' . $name . '</em>' . ': Add rounded corners to Submenus' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
645
 
646
  );
647
 
648
- weaverx_form_show_options($opts, false, false);
649
-
650
 
651
 
652
  if ( $id == 'm_primary' ) {
@@ -661,80 +894,117 @@ function weaverx_form_menu_opts( $value, $submit = false ) {
661
 
662
  $opts2 = array(
663
 
664
- array( 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Arrows', 'weaver-xtreme' /*adm*/) . '</small>',
665
- 'id' => $id . '_hide_arrows', 'type' => 'checkbox',
666
- 'info' => '<em>' . $name . '</em>' . __(': Hide Arrows on Desktop Menu', 'weaver-xtreme' /*adm*/)),
667
- array( 'name' => '<span class="i-left">{ }</span> <small>' . __('Add Classes','weaver-xtreme' /*adm*/) . '</small>',
668
- 'id' => $id . '_add_class', 'type' => '+widetext',
669
- 'info' => '<em>' . $name . '</em>' . __(': Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
670
-
671
- array( 'name' => __('Menu Bar Spacing', 'weaver-xtreme'), 'type' => 'break'),
672
-
673
- array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Menu Top Margin', 'weaver-xtreme' /*adm*/) . '</small>',
674
- 'id' => $id .'_top_margin_dec', 'type' => 'val_px',
675
- 'info' => '<em>' . $name . '</em>' . __(': Top margin for menu bar.', 'weaver-xtreme' /*adm*/) ),
676
- array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Menu Bottom Margin', 'weaver-xtreme' /*adm*/) . '</small>',
677
- 'id' => $id .'_bottom_margin_dec', 'type' => 'val_px',
678
- 'info' => '<em>' . $name . '</em>' . __(': Bottom margin for menu bar.', 'weaver-xtreme' /*adm*/) ),
679
-
680
- array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Desktop Item Vertical Padding', 'weaver-xtreme' /*adm*/) . '</small>',
681
- 'id' => $id .'_menu_pad_dec', 'type' => 'val_em',
682
- 'info' => '<em>' . $name . '</em>' . __(': Add vertical padding to Desktop menu bar items and submenus. This option is NOT RECOMMENDED as it does not work with Left and Right HTML areas. (Default: 0.6em)', 'weaver-xtreme' /*adm*/) ),
683
-
684
- array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Desktop Menu Bar Padding', 'weaver-xtreme' /*adm*/) . '</small>',
685
- 'id' => $id .'_menu_bar_pad_dec', 'type' => 'val_em',
686
- 'info' => '<em>' . $name . '</em>' . __(': Add padding to menu bar top and bottom for Desktop devices. (Default: 0 em)', 'weaver-xtreme' /*adm*/) ),
687
-
688
-
689
-
690
- array( 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('Desktop Menu Spacing. (not on Smart Menus)', 'weaver-xtreme' /*adm*/) . '</small>',
691
- 'id' => $id .'_right_padding_dec' , 'type' => 'val_em',
692
- 'info' => '<em>' . $name . '</em>' . __(': Add space between desktop menu bar items (Use value &gt; 1.0)', 'weaver-xtreme' /*adm*/) ),
693
-
694
- array( 'name' => __('Menu Bar Left/Right HTML', 'weaver-xtreme'), 'type' => 'break'),
695
-
696
-
697
- array('name' => '<span class="i-left dashicons dashicons-editor-code"></span><small>' . __('Left HTML', 'weaver-xtreme' /*adm*/) . '</small>',
698
- 'id' => $id . '_html_left', 'type' => '+textarea',
699
- 'placeholder' => __('Any HTML, including shortcodes.', 'weaver-xtreme' /*adm*/),
700
- 'info' => __('Add HTML Left (Works best with Centered Menu)(&starf;Plus)', 'weaver-xtreme' /*adm*/)),
701
- array( 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Area', 'weaver-xtreme' /*adm*/) . '</small>',
702
- 'id' => $id .'_hide_left', 'type' => '+select_hide',
703
- 'info' => '<em>' . $name . '</em>' . __(': Hide Left HTML', 'weaver-xtreme' /*adm*/) ),
704
-
705
-
706
- array('name' => '<span class="i-left dashicons dashicons-editor-code"></span><small>' . __('Right HTML', 'weaver-xtreme' /*adm*/) . '</small>',
707
- 'id' => $id . '_html_right', 'type' => $right_text,
708
- 'placeholder' => __('Any HTML, including shortcodes.', 'weaver-xtreme' /*adm*/),
709
- 'info' => __('Add HTML to Menu on Right (Works best with Centered Menu)', 'weaver-xtreme' /*adm*/) . $right_plus),
710
-
711
-
712
- array( 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Area', 'weaver-xtreme' /*adm*/) . '</small>',
713
- 'id' => $id .'_hide_right', 'type' => $right_hide,
714
- 'info' => '<em>' . $name . '</em>' . __(': Hide Right HTML', 'weaver-xtreme' /*adm*/) ),
715
-
716
-
717
- array( 'name' => '<small>' . __('HTML: Text Color', 'weaver-xtreme' /*adm*/) . '</small>',
718
- 'id' => $id .'_html_color', 'type' => 'ctext',
719
- 'info' => '<em>' . $name . '</em>' . __(': Text Color for Left/Right Menu Bar HTML', 'weaver-xtreme' /*adm*/) ),
720
- array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('HTML: Top Margin', 'weaver-xtreme' /*adm*/) . '</small>',
721
- 'id' => $id .'_html_margin_dec', 'type' => 'val_em',
722
- 'info' => '<em>' . $name . '</em>' . __(': Margin above Added Menu HTML (Used to adjust for Desktop menu. Negative values can help.)', 'weaver-xtreme' /*adm*/) )
723
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
724
 
725
 
726
  );
727
 
728
- weaverx_form_show_options($opts2, false, false);
729
 
730
 
731
- if ( $submit )
732
- weaverx_form_submit('');
 
733
  }
734
 
735
 
736
-
737
- function weaverx_form_text_props( $value, $type = 'titles') {
738
  // display text properties for an area or title
739
 
740
  $id = $value['id'];
@@ -752,12 +1022,12 @@ function weaverx_form_text_props( $value, $type = 'titles') {
752
 
753
  // COLOR BG & COLOR BOX
754
 
755
- if ($id == 'wrapper') {
756
  echo '<tr><td></td><td colspan="2"><p>';
757
- _e('<strong>Important note:</strong> The Wrapper Area provides default
758
  <em>background color, text color, and text font properties</em>
759
  for most other areas, including Header, Container, Content, Widgets, and more.',
760
- 'weaver-xtreme' /*adm*/);
761
  echo "</p></td></tr>\n";
762
  }
763
 
@@ -765,274 +1035,308 @@ for most other areas, including Header, Container, Content, Widgets, and more.',
765
 
766
  weaverx_form_ctext( array(
767
  'name' => $name . ' BG',
768
- 'id' => $id_colorbg,
769
- 'info' => '<em>' . $info . __(':</em> Background Color (use CSS+ to specify custom CSS for area)', 'weaver-xtreme' /*adm*/)));
 
770
 
771
 
772
- if ( $type == 'menu' || $id == 'post_title' )
773
  weaverx_form_ctext( array(
774
- 'name' => $name . ' ' . __('Text Color', 'weaver-xtreme' /*adm*/),
775
- 'id' => $id_color,
776
- 'info' => '<em>' . $info . __(':</em> Text properties', 'weaver-xtreme' /*adm*/)));
777
- else
 
778
  weaverx_form_color( array(
779
- 'name' => $name . ' ' . __('Text Color', 'weaver-xtreme' /*adm*/),
780
- 'id' => $id_color,
781
- 'info' => '<em>' . $info . __(':</em> Text properties', 'weaver-xtreme' /*adm*/)));
 
 
782
 
783
  // FONT PROPERTIES
784
- ?>
785
  <tr>
786
- <th scope="row" align="right"><span class="i-left font-bold font-italic"><span style="font-size:16px;">a</span><span style="font-size:14px;">b</span><span style="font-size:12px;">c</span></span><small>
787
- <?php echo ($type == 'titles') ? __('Title', 'weaver-xtreme' /*adm*/) : __('Text', 'weaver-xtreme' /*adm*/);?>
788
- <?php _e('Font properties:', 'weaver-xtreme' /*adm*/); ?></small>&nbsp;</th>
789
- <td colspan="2">
790
- <?php
791
- if ( $type != 'content') {
792
- echo '&nbsp;<span class="rtl-break"><small><em>Size:</em></small>'; weaverx_form_select_font_size(array('id' => $id_size), false); echo '</span>';
793
- }
794
- echo '&nbsp;<span class="rtl-break"><small><em>Family:</em></small>'; weaverx_form_select_font_family(array('id' => $id_family), false); echo '</span>'; ?>
795
-
796
- <?php if ( $type == 'titles' ) { ?>
797
- &nbsp;<span class="rtl-break"><small><?php _e('Normal Weight', 'weaver-xtreme' /*adm*/); ?></small>
798
- <input type="checkbox" name="<?php weaverx_sapi_main_name($id_normal); ?>" id="<?php echo $id_normal; ?>"
799
- <?php checked(weaverx_getopt_checked( $id_normal )); ?> ></span>
800
-
801
- <?php } else { ?>
802
- &nbsp;<span class="rtl-break"><small><strong><?php _e('Bold', 'weaver-xtreme' /*adm*/); ?></strong></small>
 
 
 
 
 
803
  <?php
804
- weaverx_form_font_bold_italic(array('id' => $id_bold));
805
 
806
  /* <input type="checkbox" name="<?php weaverx_sapi_main_name($id_bold); ?>" id="<?php echo $id_bold; ?>"
807
  <?php checked(weaverx_getopt_checked( $id_bold )); ?> >
808
  */
809
  ?>
810
  </span>
811
- <?php } ?>
812
- &nbsp;<span class="rtl-break">
813
- <small><em><?php _e('Italic', 'weaver-xtreme' /*adm*/); ?></em></small>
814
  <?php
815
- weaverx_form_font_bold_italic(array('id' => $id_italic));
816
  /* <input type="checkbox" name="<?php weaverx_sapi_main_name($id_italic); ?>" id="<?php echo $id_italic; ?>"
817
  /<?php checked(weaverx_getopt_checked( $id_italic )); ?> >
818
  */
819
  ?>
820
  </span>
821
- <?php if ( apply_filters('weaverx_xtra_type', '+plus_fonts' ) == 'inactive' )
822
- echo '<small>&nbsp;&nbsp; ' . __('(Add new fonts with <em>Weaver Xtreme Plus</em>)', 'weaver-xtreme' /*adm*/) . '</small>';
823
- else
824
- echo '<small>&nbsp;&nbsp; ' . __('(Add new fonts from Custom &amp; Fonts tab.)', 'weaver-xtreme' /*adm*/) . '</small>';?>
825
- </td>
 
826
  </tr>
827
- <?php
828
 
829
  }
830
 
831
  function weaverx_from_fi_location( $value, $is_post = false ) {
832
  $value['value'] = array(
833
- array('val' => 'content-top', 'desc' => __('With Content - top', 'weaver-xtreme' /*adm*/) ),
834
- array('val' => 'content-bottom', 'desc' => __('With Content - bottom', 'weaver-xtreme' /*adm*/) ),
835
- array('val' => 'title-before', 'desc' => __('With Title', 'weaver-xtreme' /*adm*/) ),
836
- array('val' => 'title-banner' , 'desc' => __('Banner above Title', 'weaver-xtreme') ),
837
- array('val' => 'header-image', 'desc' => $is_post ? __('Hide on Blog View', 'weaver-xtreme' /*adm*/) :
838
- __('Header Image Replacement', 'weaver-xtreme' /*adm*/) ),
839
- array('val' => 'post-before', 'desc' => __('Beside Page/Post, no wrap', 'weaver-xtreme' /*adm*/) ),
840
-
841
- array('val' => 'post-bg', 'desc' => __('As BG Image, Tile', 'weaver-xtreme' /*adm*/) ),
842
- array('val' => 'post-bg-cover', 'desc' => __('As BG Image, Cover', 'weaver-xtreme' /*adm*/) ),
843
- array('val' => 'post-bg-parallax', 'desc' => __('As BG Image, Parallax', 'weaver-xtreme' /*adm*/) ),
844
- array('val' => 'post-bg-parallax-full', 'desc' => __('As BG Image, Parallax Full', 'weaver-xtreme' /*adm*/) ),
 
 
 
845
  );
846
 
847
- weaverx_form_select_id($value);
848
  }
849
 
850
 
851
  function weaverx_form_align( $value ) {
852
- $value['value'] = array(
853
- array('val' => 'float-left', 'desc' => __('Align Left', 'weaver-xtreme' /*adm*/) ),
854
- array('val' => 'align-center', 'desc' => __('Center', 'weaver-xtreme' /*adm*/) ),
855
- array('val' => 'float-right', 'desc' => __('Align Right', 'weaver-xtreme' /*adm*/) ),
856
- array('val' => 'alignnone', 'desc' => __('No Alignment', 'weaver-xtreme' /*adm*/) ),
857
- array('val' => 'alignwide', 'desc' => __('Align Wide', 'weaver-xtreme' /*adm*/) ),
858
- array('val' => 'alignfull', 'desc' => __('Align Full', 'weaver-xtreme' /*adm*/) ),
859
- );
 
 
 
 
 
 
 
 
 
 
 
860
 
861
- weaverx_form_select_id($value);
862
  }
863
 
864
  function weaverx_form_align_standard( $value ) {
865
  $value['value'] = array(
866
- array('val' => 'float-left', 'desc' => __('Align Left', 'weaver-xtreme' /*adm*/) ),
867
- array('val' => 'align-center', 'desc' => __('Center', 'weaver-xtreme' /*adm*/) ),
868
- array('val' => 'float-right', 'desc' => __('Align Right', 'weaver-xtreme' /*adm*/) ),
869
- array('val' => 'alignnone', 'desc' => __('No Alignment', 'weaver-xtreme' /*adm*/) ),
870
  );
871
 
872
- weaverx_form_select_id($value);
873
  }
874
 
875
  function weaverx_form_fixedtop( $value ) {
876
  $value['value'] = array(
877
- array('val' => 'none', 'desc' => __('Standard Position : Not Fixed', 'weaver-xtreme' /*adm*/) ),
878
- array('val' => 'fixed-top', 'desc' => __('Fixed to Top', 'weaver-xtreme' /*adm*/) ),
879
- array('val' => 'scroll-fix', 'desc' => __('Fix to Top on Scroll', 'weaver-xtreme' /*adm*/) )
880
  );
881
 
882
- weaverx_form_select_id($value);
883
  }
884
 
885
  function weaverx_form_fi_align( $value ) {
886
  $value['value'] = array(
887
- array('val' => 'fi-alignleft', 'desc' => __('Align Left', 'weaver-xtreme' /*adm*/) ),
888
- array('val' => 'fi-aligncenter', 'desc' => __('Center', 'weaver-xtreme' /*adm*/) ),
889
- array('val' => 'fi-alignright', 'desc' => __('Align Right', 'weaver-xtreme' /*adm*/) ),
890
- array('val' => 'fi-alignnone', 'desc' => __('No Align', 'weaver-xtreme' /*adm*/) )
891
  );
892
 
893
- weaverx_form_select_id($value);
894
  }
895
 
896
- function weaverx_form_select_hide($value) {
897
- $value['value'] = array(array('val' => 'hide-none', 'desc' => __('Do Not Hide', 'weaver-xtreme' /*adm*/) ),
898
- array('val' => 's-hide', 'desc' => __('Hide: Phones', 'weaver-xtreme' /*adm*/) ),
899
- array('val' => 'm-hide', 'desc' => __('Hide: Small Tablets', 'weaver-xtreme' /*adm*/) ),
900
- array('val' => 'm-hide s-hide', 'desc' => __('Hide: Phones+Tablets', 'weaver-xtreme' /*adm*/) ),
901
- array('val' => 'l-hide', 'desc' => __('Hide: Desktop', 'weaver-xtreme' /*adm*/) ),
902
- array('val' => 'l-hide m-hide', 'desc' => __('Hide: Desktop+Tablets', 'weaver-xtreme' /*adm*/) ),
903
- array('val' => 'hide', 'desc' => __('Hide on All Devices', 'weaver-xtreme' /*adm*/) )
 
904
  );
905
 
906
- weaverx_form_select_id($value);
907
  }
908
 
909
  function weaverx_form_select_font_size( $value, $show_row = true ) {
910
- $value['value'] = array(array('val' => 'default', 'desc' => __('Inherit', 'weaver-xtreme' /*adm*/) ),
911
- array('val' => 'm-font-size', 'desc' => __('Medium Font', 'weaver-xtreme' /*adm*/) ),
912
- array('val' => 'xxs-font-size', 'desc' => __('XX-Small Font', 'weaver-xtreme' /*adm*/) ),
913
- array('val' => 'xs-font-size', 'desc' => __('X-Small Font', 'weaver-xtreme' /*adm*/) ),
914
- array('val' => 's-font-size', 'desc' => __('Small Font', 'weaver-xtreme' /*adm*/) ),
915
- array('val' => 'l-font-size', 'desc' => __('Large Font', 'weaver-xtreme' /*adm*/) ),
916
- array('val' => 'xl-font-size', 'desc' => __('X-Large Font', 'weaver-xtreme' /*adm*/) ),
917
- array('val' => 'xxl-font-size', 'desc' => __('XX-Large Font', 'weaver-xtreme' /*adm*/) ),
918
- array('val' => 'customA-font-size', 'desc' => __('Custom Size A', 'weaver-xtreme' /*adm*/) ),
919
- array('val' => 'customB-font-size', 'desc' => __('Custom Size B', 'weaver-xtreme' /*adm*/) )
 
920
  );
921
- $value['value'] = apply_filters('weaverx_add_font_size', $value['value']);
922
- weaverx_form_select_id( $value, $show_row);
923
  }
924
 
925
 
926
  function weaverx_form_select_font_family( $value, $show_row = true ) {
927
- $value['value'] = array(array('val' => 'default', 'desc' => __('Inherit', 'weaver-xtreme' /*adm*/) ),
928
- array('val' => 'sans-serif', 'desc' => __('Arial (Sans Serif)', 'weaver-xtreme' /*adm*/) ),
929
- array('val' => 'arialBlack', 'desc' => __('Arial Black', 'weaver-xtreme' /*adm*/) ),
930
- array('val' => 'arialNarrow', 'desc' => __('Arial Narrow', 'weaver-xtreme' /*adm*/) ),
931
- array('val' => 'lucidaSans', 'desc' => __('Lucida Sans', 'weaver-xtreme' /*adm*/) ),
932
- array('val' => 'trebuchetMS', 'desc' => __('Trebuchet MS', 'weaver-xtreme' /*adm*/) ),
933
- array('val' => 'verdana', 'desc' => __('Verdana', 'weaver-xtreme' /*adm*/) ),
934
-
935
- array('val' => 'serif', 'desc' => __('Times (Serif)', 'weaver-xtreme' /*adm*/) ),
936
- array('val' => 'cambria', 'desc' => __('Cambria', 'weaver-xtreme' /*adm*/) ),
937
- array('val' => 'garamond', 'desc' => __('Garamond', 'weaver-xtreme' /*adm*/) ),
938
- array('val' => 'georgia', 'desc' => __('Georgia', 'weaver-xtreme' /*adm*/) ),
939
- array('val' => 'lucidaBright', 'desc' => __('Lucida Bright', 'weaver-xtreme' /*adm*/) ),
940
- array('val' => 'palatino', 'desc' => __('Palatino', 'weaver-xtreme' /*adm*/) ),
941
-
942
- array('val' => 'monospace', 'desc' => __('Courier (Monospace)', 'weaver-xtreme' /*adm*/) ),
943
- array('val' => 'consolas', 'desc' => __('Consolas', 'weaver-xtreme' /*adm*/) ),
944
-
945
- array('val' => 'papyrus', 'desc' => __('Papyrus', 'weaver-xtreme' /*adm*/) ),
946
- array('val' => 'comicSans', 'desc' => __('Comic Sans MS', 'weaver-xtreme' /*adm*/) )
 
947
  );
948
- $value['value'] = apply_filters('weaverx_add_font_family', $value['value']);
949
- ?>
950
- <select name="<?php weaverx_sapi_main_name($value['id']); ?>" id="<?php echo $value['id']; ?>">
951
- <?php
952
- foreach ($value['value'] as $option) {
953
  ?>
954
- <option class="font-<?php echo $option['val'];?>" value="<?php echo $option['val'] ?>"<?php selected( (weaverx_getopt( $value['id'] ) == $option['val']));?>><?php echo $option['desc']; ?></option>
955
- <?php } ?>
 
 
 
 
956
  </select>
957
- <?php
958
  }
959
 
960
- function weaverx_form_rounded($value) {
961
- $value['value'] = array(array('val' => 'none', 'desc' => __('None', 'weaver-xtreme' /*adm*/) ),
962
- array('val' => '-all', 'desc' => __('All Corners', 'weaver-xtreme' /*adm*/) ),
963
- array('val' => '-left', 'desc' => __('Left Corners', 'weaver-xtreme' /*adm*/) ),
964
- array('val' => '-right', 'desc' => __('Right Corners', 'weaver-xtreme' /*adm*/) ),
965
- array('val' => '-top', 'desc' => __('Top Corners', 'weaver-xtreme' /*adm*/) ),
966
- array('val' => '-bottom', 'desc' => __('Bottom Corners', 'weaver-xtreme' /*adm*/) ),
 
967
  );
968
 
969
- weaverx_form_select_id($value);
970
  }
971
 
972
- function weaverx_form_font_bold_italic($value) {
973
- $value['value'] = array(array('val' => '', 'desc' => __('Inherit', 'weaver-xtreme' /*adm*/) ),
974
- array('val' => 'on', 'desc' => __('On', 'weaver-xtreme' /*adm*/) ),
975
- array('val' => 'off', 'desc' => __('Off', 'weaver-xtreme' /*adm*/) )
 
976
  );
977
 
978
- weaverx_form_select_id($value, false);
979
  }
980
 
981
- function weaverx_form_shadows($value) {
982
- $value['value'] = array(array('val' => '-0', 'desc' => __('No Shadow', 'weaver-xtreme' /*adm*/) ), // as in .shadow-0
983
- array('val' => '-1', 'desc' => __('All Sides, 1px', 'weaver-xtreme' /*adm*/) ),
984
- array('val' => '-2', 'desc' => __('All Sides, 2px', 'weaver-xtreme' /*adm*/) ),
985
- array('val' => '-3', 'desc' => __('All Sides, 3px', 'weaver-xtreme' /*adm*/) ),
986
- array('val' => '-4', 'desc' => __('All Sides, 4px', 'weaver-xtreme' /*adm*/) ),
987
- array('val' => '-rb', 'desc' => __('Right + Bottom', 'weaver-xtreme' /*adm*/) ),
988
- array('val' => '-lb', 'desc' => __('Left + Bottom', 'weaver-xtreme' /*adm*/) ),
989
- array('val' => '-tr', 'desc' => __('Top + Right', 'weaver-xtreme' /*adm*/) ),
990
- array('val' => '-tl', 'desc' => __('Top + Left', 'weaver-xtreme' /*adm*/) ),
991
- array('val' => '-custom', 'desc' => __('Custom Shadow', 'weaver-xtreme' /*adm*/) )
 
992
  );
993
- $value['value'] = apply_filters('weaverx_add_shadows', $value['value']);
994
 
995
- weaverx_form_select_id($value);
996
  }
997
 
998
  // custom forms
999
 
1000
- function weaverx_custom_css( $value='' ) {
1001
 
1002
- $css = weaverx_getopt('add_css');
1003
 
1004
- if (isset($value['id']))
1005
  $icon = $value['id'];
1006
- if ( !isset($icon) || !$icon )
 
1007
  $icon = ' ';
 
1008
 
1009
  $dash = '';
1010
  if ( $icon[0] == '-' ) { // add a leading icon
1011
- $dash = '<span style="padding:.2em;" class="dashicons dashicons-' . substr( $icon, 1) . '"></span>';
1012
  }
1013
- ?>
1014
- <tr class="atw-row-header"><td colspan="3">
1015
- <a id="custom-css-rules"></a>
1016
- <span style="color:black;padding:.2em;" class="dashicons dashicons-screenoptions"></span>
1017
- <span style="font-weight:bold; font-size: larger;"><em>
1018
- <?php _e('Custom CSS Rules', 'weaver-xtreme' /*adm*/); ?> <?php weaverx_help_link('help.html#CustomCSS', __('Custom CSS Rules', 'weaver-xtreme' /*adm*/));?></em></span>
1019
- </td></tr>
1020
- <tr><td colspan="3">
1021
-
1022
- <!-- ======== -->
1023
- <p>
1024
- <?php _e('Rules you add here will be the <em>last</em> CSS Rules included by Weaver Xtreme, and thus override all other Weaver Xtreme generated CSS rules.
 
 
 
1025
  Specify complete CSS rules, but don\'t add the &lt;style&gt; HTML element. You can prefix your selectors with <code>.is-desktop, .is-mobile, .is-smalltablet, or .is-phone</code>
1026
  to create rules for specific devices.
1027
  <strong>NOTE:</strong> Because Weaver Xtreme uses classes on many of its elements, you may to need to use
1028
  <em>!important</em> with your rules to force the style override.
1029
- It is possible that other plugins might generate CSS that comes after these rules.', 'weaver-xtreme' /*adm*/); ?>
1030
- </p>
1031
- <?php weaverx_textarea(weaverx_getopt('add_css'), 'add_css', 12, '' , 'width:95%;', 'wvrx-edit wvrx-edit-dir'); ?>
1032
 
1033
- </td></tr>
1034
- <?php
 
1035
  }
1036
 
1037
-
1038
- ?>
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ } // Exit if accessed directly
5
 
6
 
7
+ function weaverx_form_textarea( $value, $media = false ) {
8
+ $twide = ( $value['type'] == 'text' ) ? '60' : '140';
9
+ $rows = ( isset( $value['val'] ) ) ? $value['val'] : 1;
10
+ $place = ( isset( $value['placeholder'] ) ) ? $value['placeholder'] : ' ';
11
+ if ( $rows < 1 ) {
12
  $rows = 1;
 
 
 
 
 
 
 
 
13
  }
14
+ ?>
15
+ <tr>
16
+ <th scope="row" align="right"><?php weaverx_echo_name( $value ); ?>:&nbsp;</th>
17
+ <td colspan=2>
18
+ <?php weaverx_textarea( weaverx_getopt( $value['id'] ), $value['id'], $rows, $place, 'width:350px;', $class = 'wvrx-edit' ); ?>
19
+ <?php
20
+ if ( $media ) {
21
+ weaverx_media_lib_button( $value['id'] );
22
+ }
23
+ ?>
24
+ &nbsp;<small><?php echo $value['info']; ?></small>
25
+ </td>
26
 
27
  </tr>
28
+ <?php
29
  }
30
 
31
+ function weaverx_form_text( $value, $media = false ) {
32
+ $twide = ( $value['type'] == 'text' ) ? '60' : '160';
33
+ ?>
34
  <tr>
35
+ <th scope="row" align="right"><?php weaverx_echo_name( $value ); ?>:&nbsp;</th>
36
+ <td>
37
+ <input name="<?php weaverx_sapi_main_name( $value['id'] ); ?>" id="<?php echo $value['id']; ?>" type="text" style="width:<?php echo $twide; ?>px;" class="regular-text" value="<?php echo esc_textarea( weaverx_getopt( $value['id'] ) ); ?>"/>
38
+ <?php
39
+ if ( $media ) {
40
+ weaverx_media_lib_button( $value['id'] );
41
+ }
42
+ ?>
43
+ </td>
44
+ <?php weaverx_form_info( $value );
45
+ ?>
46
  </tr>
47
+ <?php
48
  }
49
 
50
+ function weaverx_form_val( $value, $unit = '' ) {
51
+ ?>
52
  <tr>
53
+ <th scope="row" align="right"><?php weaverx_echo_name( $value ); ?>:&nbsp;</th>
54
+ <td>
55
+ <input name="<?php weaverx_sapi_main_name( $value['id'] ); ?>" id="<?php echo $value['id']; ?>" type="text" style="width:50px;" class="regular-text" value="<?php echo esc_textarea( weaverx_getopt( $value['id'] ) ); ?>"/> <?php echo $unit; ?>
56
+ </td>
57
+ <?php weaverx_form_info( $value );
58
+ ?>
59
  </tr>
60
+ <?php
61
  }
62
 
63
+ function weaverx_form_text_xy( $value, $x = 'X', $y = 'Y', $units = 'px' ) {
64
  $xid = $value['id'] . '_' . $x;
65
  $yid = $value['id'] . '_' . $y;
66
+ $colon = ( $value['name'] ) ? ':' : '';
67
+ ?>
68
  <tr>
69
+ <th scope="row" align="right"><?php weaverx_echo_name( $value );
70
+ echo $colon; ?>&nbsp;
71
+ </th>
72
+ <td>
73
+ <?php echo '<span class="rtl-break">' . $x; ?>
74
+ :<input name="<?php weaverx_sapi_main_name( $xid ); ?>" id="<?php echo $xid; ?>" type="text" style="width:40px;" class="regular-text" value="<?php weaverx_esc_textarea( weaverx_getopt( $xid ) ); ?>"/> <?php echo $units; ?></span>
75
+ &nbsp;<?php echo '<span class="rtl-break">' . $y; ?>
76
+ :<input name="<?php weaverx_sapi_main_name( $yid ); ?>" id="<?php echo $yid; ?>" type="text" style="width:40px;" class="regular-text" value="<?php weaverx_esc_textarea( weaverx_getopt( $yid ) ); ?>"/> <?php echo $units; ?></span>
77
+ </td>
78
+ <?php weaverx_form_info( $value );
79
+ ?>
80
  </tr>
81
+ <?php
82
  }
83
 
84
+ function weaverx_form_checkbox( $value ) {
85
+ ?>
86
  <tr>
87
+ <th scope="row" align="right"><?php weaverx_echo_name( $value ); ?>:&nbsp;</th>
88
+ <td>
89
+ <input type="checkbox" name="<?php weaverx_sapi_main_name( $value['id'] ); ?>" id="<?php echo $value['id']; ?>"
90
+ <?php checked( weaverx_getopt_checked( $value['id'] ) ); ?> >
91
+ </td>
92
+ <?php weaverx_form_info( $value );
93
+ ?>
94
  </tr>
95
+ <?php
96
  }
97
 
98
  function weaverx_form_radio( $value ) {
99
+ ?>
100
 
101
  <tr>
102
+ <th scope="row" align="right"><?php weaverx_echo_name( $value ); ?>:&nbsp;</th>
103
+ <td colspan="2">
104
+
105
+ <?php
106
+ $cur_val = weaverx_getopt_default( $value['id'], 'black' );
107
+ foreach ( $value['value'] as $option ) {
108
+ $desc = $option['val'];
109
+ if ( $desc == 'none' ) {
110
+ $desc = "None";
111
+ } else {
112
+ $icon = weaverx_relative_url( 'assets/css/icons/search-' . $desc . '.png' );
113
+ $desc = '<img style="background-color:#ccc;height:24px; width:24px;" src="' . $icon . '" />';
114
+ }
115
+ ?>
116
+ <input type="radio" name="<?php weaverx_sapi_main_name( $value['id'] ); ?>" value="<?php echo $option['val']; ?>"
117
+ <?php checked( $cur_val, $option['val'] ); ?> > <?php echo $desc; ?>&nbsp;
118
+ <?php } ?>
119
+ <?php echo '<br /><small style="margin-left:5%;">' . $value['info'] . '</small>'; ?>
120
+ </td>
121
  </tr>
122
+ <?php
123
  }
124
 
125
 
126
  function weaverx_form_select_id( $value, $show_row = true ) {
127
  if ( $show_row ) { ?>
128
 
129
+ <tr>
130
+ <th scope="row" align="right"><?php weaverx_echo_name( $value ); ?>:&nbsp;</th>
131
+ <td>
132
  <?php } ?>
133
 
134
+ <select name="<?php weaverx_sapi_main_name( $value['id'] ); ?>" id="<?php echo $value['id']; ?>">
135
+ <?php
136
+ foreach ( $value['value'] as $option ) {
137
+
138
+ ?>
139
+ <option value="<?php echo $option['val'] ?>" <?php selected( ( weaverx_getopt( $value['id'] ) == $option['val'] ) ); ?>><?php echo $option['desc']; ?></option>
140
+ <?php } ?>
141
  </select>
142
  <?php if ( $show_row ) { ?>
143
+ </td>
144
+ <?php weaverx_form_info( $value ); ?>
145
+ </tr>
146
  <?php }
147
  }
148
 
149
+ function weaverx_form_select_alt_theme( $value ) {
150
 
151
+ if ( function_exists( 'weaverx_pp_get_alt_themes' ) ) // backward compatibility for Weaver Xtreme 3
152
+ {
153
  $themes = weaverx_pp_get_alt_themes();
154
+ } else {
155
  $themes = array();
156
+ }
157
  $list = array();
158
+ $list[] = array( 'val' => '', 'desc' => '' );
159
  foreach ( $themes as $subtheme ) {
160
+ $list[] = array( 'val' => $subtheme, 'desc' => $subtheme );
161
  }
162
 
163
 
164
  $value['value'] = $list;
165
+ weaverx_form_select_id( $value );
166
  }
167
 
168
+ function weaverx_form_select_layout( $value ) {
169
+ $list = array(
170
+ array( 'val' => 'default', 'desc' => __( 'Use Default', 'weaver-xtreme' /*adm*/ ) ),
171
+ array( 'val' => 'right', 'desc' => __( 'Sidebars on Right', 'weaver-xtreme' /*adm*/ ) ),
172
+ array( 'val' => 'right-top', 'desc' => __( 'Sidebars on Right (stack top)', 'weaver-xtreme' /*adm*/ ) ),
173
+ array( 'val' => 'left', 'desc' => __( 'Sidebars on Left', 'weaver-xtreme' /*adm*/ ) ),
174
+ array( 'val' => 'left-top', 'desc' => __( ' Sidebars on Left (stack top)', 'weaver-xtreme' /*adm*/ ) ),
175
+ array( 'val' => 'split', 'desc' => __( 'Split - Sidebars on Right and Left', 'weaver-xtreme' /*adm*/ ) ),
176
+ array( 'val' => 'split-top', 'desc' => __( 'Split (stack top)', 'weaver-xtreme' /*adm*/ ) ),
177
+ array( 'val' => 'one-column', 'desc' => __( 'No sidebars, content only', 'weaver-xtreme' /*adm*/ ) ),
178
  );
179
 
180
 
181
  $value['value'] = $list;
182
+ weaverx_form_select_id( $value );
183
  }
184
 
185
 
186
+ function weaverx_form_link( $value ) {
187
  $id = $value['id'];
188
 
189
+ $link = array( 'name' => $value['name'], 'id' => $id . '_color', 'type' => 'ctext', 'info' => $value['info'] );
190
+ $hover = array( 'name' => '<small>' . __( 'Hover', 'weaver-xtreme' /*adm*/ ) . '</small>', 'id' => $id . '_hover_color', 'type' => 'ctext', 'info' => __( 'Hover Color', 'weaver-xtreme' /*adm*/ ) );
191
 
192
+ weaverx_form_ctext( $link );
193
  $id_strong = $id . '_strong';
194
  $id_em = $id . '_em';
195
  $id_u = $id . '_u';
196
+ $id_uh = $id . '_u_h';
197
+ ?>
198
+ <tr>
199
+ <td><small style="float:right;"><?php _e( 'Link Attributes:', 'weaver-xtreme' /*adm*/ ); ?></small></td><td colspan="2">
200
 
201
+ <small style="margin-left:5em;"><strong><?php _e( 'Bold', 'weaver-xtreme' /*adm*/ ); ?></strong></small>
202
 
203
+ <?php weaverx_form_font_bold_italic( array( 'id' => $id_strong ) ); ?>
204
 
205
+ &nbsp;<small><em><?php _e( 'Italic', 'weaver-xtreme' /*adm*/ ); ?></em></small>
206
+ <?php weaverx_form_font_bold_italic( array( 'id' => $id_em ) ); ?>
207
 
208
+ &nbsp;<small><u><?php _e( 'Link Underline', 'weaver-xtreme' /*adm*/ ); ?></u></small>
209
+ <input type="checkbox" name="<?php weaverx_sapi_main_name( $id_u ); ?>" id="<?php echo $id_u; ?>"
210
+ <?php checked( weaverx_getopt_checked( $id_u ) ); ?> >
211
 
212
+ &nbsp;|&nbsp;&nbsp;<small><u><?php _e( 'Hover Underline', 'weaver-xtreme' /*adm*/ ); ?></u></small>
213
+ <input type="checkbox" name="<?php weaverx_sapi_main_name( $id_uh ); ?>" id="<?php echo $id_uh; ?>"
214
+ <?php checked( weaverx_getopt_checked( $id_uh ) ); ?> >
215
 
216
+ <?php
217
+ weaverx_form_ctext( $hover, true );
218
+ ?>
219
 
220
+ <?php
221
  echo '</td></tr>';
222
  }
223
 
224
 
225
+ function weaverx_form_break( $value ) {
226
+ $lim = isset( $value['value'] ) ? $value['value'] : 1;
227
+ $label = isset( $value['name'] ) ? "<em style='color:blue;'><strong>{$value['name']}</strong></em>" : '&nbsp;';
228
+ for ( $n = 1; $n <= $lim; ++ $n ) {
229
  echo "<tr><td style='text-align:right;'>{$label}</td></tr>";
230
  $label = '&nbsp;';
231
  }
232
  }
233
 
234
+ function weaverx_form_note( $value ) {
235
+ ?>
236
  <tr>
237
+ <th scope="row" align="right">&nbsp;</th>
238
+ <td style="float:right;font-weight:bold;"><?php weaverx_echo_name( $value ); ?>&nbsp;
239
+ <?php
240
+ weaverx_form_help( $value );
241
+ ?>
242
  </td>
243
+ <?php
244
+ weaverx_form_info( $value );
245
+ ?>
246
  </tr>
247
+ <?php
248
  }
249
 
250
 
251
+ function weaverx_form_info( $value ) {
252
+ if ( $value['info'] != '' ) {
253
+ echo( '<td style="padding-left: 10px"><small>' );
254
+ echo $value['info'];
255
+ echo( "</small></td>" );
256
  }
257
  }
258
 
268
 
269
  // defaults - these are determined by the =Padding section of style-weaverx.css
270
  $default_tb = array(
271
+ 'infobar' => '5px',
272
+ 'content' => 'T:4px, B:8px',
273
+ 'footer' => '8px',
274
+ 'footer_sb' => '8px',
275
+ 'primary' => '8px',
276
+ 'secondary' => '8px',
277
+ 'extra' => '8px',
278
+ 'top' => '8px',
279
+ 'bottom' => '8px',
280
  );
281
 
282
  $default_lr = array(
283
+ 'infobar' => '5px',
284
+ 'content' => '2%',
285
+ 'post' => '0',
286
+ 'footer' => '8px',
287
+ 'footer_sb' => '8px',
288
+ 'primary' => '8px',
289
+ 'secondary' => '8px',
290
+ 'extra' => '8px',
291
+ 'top' => '8px',
292
+ 'bottom' => '8px',
293
  );
294
 
295
  $default_margins = array(
296
+ 'infobar' => '5px',
297
+ 'content' => 'T:0, B:0',
298
+ 'footer' => 'T:0, B:0',
299
+ 'footer_sb' => 'T:0, B:10',
300
+ 'primary' => 'T:0, B:10',
301
+ 'widget' => '0, Auto - First: T:0, Last: B:0',
302
+ 'secondary' => 'T:0, B:10',
303
+ 'extra' => 'T:0, B:10',
304
+ 'top' => 'T:10, B:10',
305
+ 'bottom' => 'T:10, B:10',
306
+ 'wrapper' => 'T:0, B:0',
307
+ 'post' => 'T:0, B:15',
308
  );
309
 
310
  $id = $value['id'];
311
 
312
+ $def_tb = '0';
313
+ $def_lr = '0';
314
+ $def_marg = '0';
315
+ if ( isset( $default_tb[ $id ] ) ) {
316
+ $def_tb = $default_tb[ $id ];
317
+ }
318
+ if ( isset( $default_lr[ $id ] ) ) {
319
+ $def_lr = $default_lr[ $id ];
320
+ }
321
+ if ( isset( $default_margins[ $id ] ) ) {
322
+ $def_marg = $default_margins[ $id ];
323
+ }
324
 
325
+ $use_percent = array( 'content', 'post' );
326
 
327
  //echo '<table><tr><td>';
328
  $name = $value['name'];
329
 
330
 
331
+ $lr_type = ( in_array( $id, $use_percent ) ) ? 'text_lr_percent' : 'text_lr';
332
 
333
 
334
+ $opts = array(
 
 
 
 
 
 
 
 
 
 
 
 
 
335
 
336
+ array(
337
+ 'name' => $name,
338
+ 'id' => '-welcome-widgets-menus',
339
+ 'type' => 'header_area',
340
+ 'info' => $value['info'],
341
+ ),
342
+
343
+ array(
344
+ 'name' => $name,
345
+ 'id' => $id,
346
+ 'type' => 'titles_area',
347
+ 'info' => $name,
348
+ ),
349
+
350
+ array(
351
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span>' . __( 'Padding', 'weaver-xtreme' /*adm*/ ),
352
+ 'id' => $id . '_padding',
353
+ 'type' => 'text_tb',
354
+ 'info' => '<em>' . $name . '</em>' . __( ': Top/Bottom Inner padding [Default: ', 'weaver-xtreme' ) . $def_tb . ']',
355
+ ),
356
+
357
+ array(
358
+ 'name' => '',
359
+ 'id' => $id . '_padding',
360
+ 'type' => $lr_type,
361
+ 'info' => '<em>' . $name . '</em>' . __( ': Left/Right Inner padding [Default: ', 'weaver-xtreme' ) . $def_lr . ']',
362
+ ),
363
+
364
+ array(
365
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span>' . __( 'Top/Bottom Margins', 'weaver-xtreme' ),
366
+ 'id' => $id . '_margin',
367
+ 'type' => 'text_tb',
368
+ 'info' => '<em>' . $name . '</em>' . __( ': Top/Bottom margins. <em>Side margins auto-generated.</em> [Default: ', 'weaver-xtreme' ) . $def_marg . ']',
369
+ ),
370
 
371
  );
372
 
373
+ weaverx_form_show_options( $opts, false, false );
374
 
375
 
376
  $no_lr_margins = array( // areas that can't allow left-right margin or width specifications
377
+ 'primary',
378
+ 'secondary',
379
+ 'content',
380
+ 'post',
381
+ 'widget',
382
  );
383
  $no_widgets = array( // areas that don't have widgets
384
+ 'widget',
385
+ 'content',
386
+ 'post',
387
+ 'wrapper',
388
+ 'container',
389
+ 'header',
390
+ 'header_html',
391
+ 'footer_html',
392
+ 'footer',
393
+ 'infobar',
394
  );
395
 
396
  $no_hide = array(
397
+ 'wrapper',
398
+ 'container',
399
+ 'content',
400
+ 'widget',
401
+ 'post',
402
  );
403
 
404
  $default_auto = array(
405
+ 'top',
406
+ 'bottom',
407
+ 'footer_sb',
408
+ 'header_sb',
409
  );
410
 
411
 
412
+ if ( in_array( $id, $no_lr_margins ) ) {
413
+ if ( $id != 'widget' ) {
414
+ weaverx_form_checkbox( array(
415
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span>' . __( 'Add Side Margin(s)', 'weaver-xtreme' /*adm*/ ),
416
+ 'id' => $id . '_smartmargin',
417
  'type' => '',
418
  'info' => '<em>' . $name . '</em>' .
419
+ __( ': Automatically add left/right "smart" margins for separation of areas (sidebar/content).', 'weaver-xtreme' /*adm*/ ),
420
+ ) );
421
  }
422
 
423
+ weaverx_form_note( array(
424
+ 'name' => '<strong>' . __( 'Width', 'weaver-xtreme' /*adm*/ ) . '</strong>',
425
+ 'info' => __( 'The width of this area is automatically determined by the enclosing area', 'weaver-xtreme' /*adm*/ ),
426
+ ) );
427
+ } elseif ( $id != 'wrapper' ) {
428
 
429
+ if ( in_array( $id, $default_auto ) ) {
430
  weaverx_form_val( array(
431
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __( 'Width', 'weaver-xtreme' /*adm*/ ),
432
+ 'id' => $id . '_width_int',
433
+ 'type' => '',
434
+ 'info' => '<em>' . $name . '</em>' . __( ': Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Center align. Use 0 to force auto width. (Default if blank: auto)', 'weaver-xtreme' /*adm*/ ),
435
+ 'value' => array(),
436
+ ), '%' );
437
  } else {
438
  weaverx_form_val( array(
439
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __( 'Width', 'weaver-xtreme' /*adm*/ ),
440
+ 'id' => $id . '_width_int',
441
+ 'type' => '',
442
+ 'info' => '<em>' . $name . '</em>' . __( ': Width of Area in % of enclosing area on desktop and small tablet. Hint: use with Center align. Use 0 to force auto width. (Default if blank: 100%)', 'weaver-xtreme' /*adm*/ ),
443
+ 'value' => array(),
444
+ ), '%' );
445
 
446
  }
447
 
448
+ weaverx_form_align( array(
449
+ 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __( 'Align Area', 'weaver-xtreme' /*adm*/ ) . '</small>',
450
+ 'id' => $id . '_align',
451
+ 'type' => '',
452
+ 'info' => '<em>' . $name . '</em>' . __( ': How to align this area (Default: Center)', 'weaver-xtreme'),
453
+ )
454
  );
455
 
456
+ if ( in_array( $id, array( 'container', 'header', 'footer' ) ) ) {
457
+ weaverx_form_val( array(
458
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __( 'Left/Right Padding', 'weaver-xtreme' /*adm*/ ),
459
+ 'id' => $id . '_padding_LRp',
460
+ 'type' => '',
461
+ 'info' => '<em>' . $name . '</em>' . __( ': Left/Right Padding in %. Value used only with Full and Wide Align, and overrides Left/Right padding in px options.', 'weaver-xtreme' /*adm*/ ),
462
+ 'value' => array(),
463
+ ), '%' );
464
+ }
465
+
466
+ if ( $id == 'header_html' || $id == 'footer_html' ) {
467
+ weaverx_form_checkbox( array(
468
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'Center Content', 'weaver-xtreme' /*adm*/ ) . '</small>',
469
+ 'id' => $id . '_center_content',
470
  'type' => '',
471
  'info' => '<em>' . $name . '</em>' .
472
+ __( ': Center Content within HTML Area content within the area.', 'weaver-xtreme' /*adm*/ ),
473
+ ) );
474
  }
475
 
476
  }
478
 
479
  if ( $id == 'wrapper' ) { // setting #wrapper sets theme width.
480
 
481
+ weaverx_form_align( array(
482
+ 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __( 'Align Area', 'weaver-xtreme' /*adm*/ ) . '</small>',
483
+ 'id' => $id . '_align',
484
+ 'type' => '',
485
+ 'info' => '<em>' . $name . '</em>' . __( ': How to align this area (Default: Center)', 'weaver-xtreme' /*adm*/ ),
486
+ )
487
+
488
+ );
489
+
490
+ weaverx_form_val( array(
491
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span> ' . __( 'Left/Right Padding', 'weaver-xtreme' /*adm*/ ),
492
+ 'id' => $id . '_padding_LRp',
493
+ 'type' => '',
494
+ 'info' => '<em>' . $name . '</em>' . __( ': Left/Right Padding in %. Value used only with Full and Wide Align, and overrides Left/Right padding in px options.', 'weaver-xtreme' /*adm*/ ),
495
+ 'value' => array(),
496
+ ), '%' );
497
+
498
+ $info = __( '<em>Change Theme Width.</em> Standard width is 1100px. Use the options on the "Full Width" tab for full width designs, but leave this value set. Widths less than 768px may give unexpected results on mobile devices. Weaver Xtreme can not create a fixed-width site.', 'weaver-xtreme' /*adm*/ );
499
 
500
  weaverx_form_val( array(
501
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><em style="color:red;">' . __( 'Theme Width', 'weaver-xtreme' /*adm*/ ) . '</em>',
502
+ 'id' => 'theme_width_int',
503
+ 'type' => '',
504
+ 'info' => $info,
505
+ 'value' => array(),
506
+ ), 'px' );
507
  }
508
 
509
+ if ( in_array( $id, array( 'container', 'header', 'footer' ) ) ) {
510
  $opts_max = array(
511
+ array(
512
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'Max Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
513
+ 'id' => $id . '_max_width_int',
514
+ 'type' => '+val_px',
515
+ 'info' => '<em>' . $name . '</em>' . __( ': Set Max Width of Area for Desktop View. Advanced Option. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
516
+ 'value' => array(),
517
+ ),
518
  );
519
 
520
+ weaverx_form_show_options( $opts_max, false, false );
521
  }
522
 
523
 
524
+ if ( ! in_array( $id, $no_widgets ) ) {
525
 
526
  $opts02 = array(
527
+ array(
528
+ 'name' => '<span class="i-left" style="font-size:120%;">&nbsp;&#9783;</span>' . __( 'Columns', 'weaver-xtreme' /*adm*/ ),
529
+ 'id' => $id . '_cols_int',
530
+ 'type' => 'val_num',
531
+ 'info' => '<em>' . $name . '</em>' . __( ': Equal width columns of widgets (Default: 1; max: 8)', 'weaver-xtreme' /*adm*/ ),
532
+ ),
533
+
534
+ array(
535
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'No Smart Widget Margins', 'weaver-xtreme' /*adm*/ ) . '</small>',
536
+ 'id' => $id . '_no_widget_margins',
537
+ 'type' => 'checkbox',
538
+ 'info' => '<em>' . $name . '</em>' . __( ': Do not use "smart margins" between widgets on rows.', 'weaver-xtreme' /*adm*/ ),
539
+ ),
540
+
541
+ array(
542
+ 'name' => '<span class="i-left" style="font-size:140%;">&nbsp;=</span><small>' . __( 'Equal Height Widget Rows', 'weaver-xtreme' /*adm*/ ) . '</small>',
543
+ 'id' => $id . '_eq_widgets',
544
+ 'type' => '+checkbox',
545
+ 'info' => '<em>' . $name . '</em>' . __( ': Make widgets equal height rows if &gt; 1 column (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
546
+ ),
547
 
548
  );
549
 
550
+ weaverx_form_show_options( $opts02, false, false );
551
+
552
+
553
+ $custom_widths = array( 'header_sb', 'footer_sb', 'primary', 'secondary', 'top', 'bottom' );
554
+ if ( in_array( $id, $custom_widths ) ) { /* if ( $id == 'header_sb' || $id == 'footer_sb' ) { */ ?>
555
+ <tr>
556
+ <th scope="row" align="right"><span class="i-left" style="font-size:120%;">&nbsp;&#9783;</span><small><?php _e( 'Custom Widget Widths:', 'weaver-xtreme' /*adm*/ ); ?></small></th>
557
+ <td colspan="2" style="padding-left:20px;">
558
+ <small><?php _e( 'You can optionally specify widget widths, including for specific devices. Please read the help entry!', 'weaver-xtreme' /*adm*/ ); ?>
559
+ <?php weaverx_help_link( 'help.html#CustomWidgetWidth', __( 'Help on Custom Widget Widths', 'weaver-xtreme' /*adm*/ ) ); ?>
560
+ <?php _e( '(&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/ ); ?></small></td>
561
+ </tr>
562
+ <?php
563
+ $opts2 = array(
564
+ array(
565
+ 'name' => '<span class="i-left dashicons dashicons-desktop"></span><small>' . __( 'Desktop', 'weaver-xtreme' /*adm*/ ) . '</small>',
566
+ 'id' => '_' . $id . '_lw_cols_list',
567
+ 'type' => '+textarea',
568
+ 'placeholder' => __( '25,25,50; 60,40; - for example', 'weaver-xtreme' /*adm*/ ),
569
+ 'info' => __( 'List of widths separated by comma. Use semi-colon (;) for end of each row. (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/ ),
570
+ ),
571
+ array(
572
+ 'name' => '<span class="i-left dashicons dashicons-tablet"></span><small>' . __( 'Small Tablet', 'weaver-xtreme' /*adm*/ ) . '</small>',
573
+ 'id' => '_' . $id . '_mw_cols_list',
574
+ 'type' => '+textarea',
575
+ 'info' => __( 'List of widget widths. (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/ ),
576
+ ),
577
+ array(
578
+ 'name' => '<span class="i-left dashicons dashicons-smartphone"></span><small>' . __( 'Phone', 'weaver-xtreme' /*adm*/ ) . '</small>',
579
+ 'id' => '_' . $id . '_sw_cols_list',
580
+ 'type' => '+textarea',
581
+ 'info' => __( 'List of widget widths. (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/ ),
582
+ ),
583
+ );
584
+
585
+ weaverx_form_show_options( $opts2, false, false );
586
  }
587
  }
588
 
589
+ $opts3 = array(
590
+ array(
591
+ 'name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __( 'Add Border', 'weaver-xtreme' /*adm*/ ) . '</small>',
592
+ 'id' => $id . '_border',
593
+ 'type' => 'checkbox',
594
+ 'info' => '<em>' . $name . '</em>' . __( ': Add the "standard" border (as set on Custom tab)', 'weaver-xtreme' /*adm*/ ),
595
+ ),
596
+ array(
597
+ 'name' => '<span class="i-left dashicons dashicons-admin-page"></span><small>' . __( 'Shadow', 'weaver-xtreme' /*adm*/ ) . '</small>',
598
+ 'id' => $id . '_shadow',
599
+ 'type' => 'shadows',
600
+ 'info' => '<em>' . $name . '</em>' . __( ': Wrap Area with Shadow.', 'weaver-xtreme' /*adm*/ ),
601
+ ),
602
+ array(
603
+ 'name' => '<span class="i-left dashicons dashicons-marker"></span><small>' . __( 'Rounded Corners', 'weaver-xtreme' /*adm*/ ) . '</small>',
604
+ 'id' => $id . '_rounded',
605
+ 'type' => 'rounded',
606
+ 'info' => '<em>' . $name . '</em>' . __( ': Rounded corners. Needs bg color or borders to show. <em>You might need to set overlapping corners for parent/child areas also!</em>', 'weaver-xtreme' /*adm*/ ),
607
+ ),
608
  );
609
 
610
 
611
+ weaverx_form_show_options( $opts3, false, false );
612
 
613
+ if ( ! in_array( $id, $no_hide ) ) {
614
+ weaverx_form_select_hide( array(
615
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Area', 'weaver-xtreme' /*adm*/ ) . '</small>',
616
+ 'id' => $id . '_hide',
617
+ 'info' => '<em>' . $name . '</em>' . __( ': Hide area on different display devices', 'weaver-xtreme' /*adm*/ ),
618
+ 'value' => '',
619
+ ) );
 
620
  }
621
 
622
  // class names
623
+ $opts4 = array(
624
+ array(
625
+ 'name' => '<span class="i-left">{ }</span> <small>' . __( 'Add Classes', 'weaver-xtreme' /*adm*/ ) . '</small>',
626
+ 'id' => $id . '_add_class',
627
+ 'type' => '+widetext',
628
+ 'info' => '<em>' . $name . '</em>' . __( ': Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
629
+ ),
630
  );
631
 
632
+ weaverx_form_show_options( $opts4, false, false );
633
 
634
+ if ( $submit ) {
635
+ weaverx_form_submit( '' );
636
+ }
637
  //echo '</td></tr></table>';
638
 
639
  }
640
 
641
 
 
 
 
642
  function weaverx_form_menu_opts( $value, $submit = false ) {
643
  // build the rows for area
644
  $wp_logo = weaverx_get_wp_custom_logo_url();
645
 
646
 
647
+ if ( $wp_logo ) {
648
  $wp_logo_html = "<img src='{$wp_logo}' style='max-height:16px;margin-left:10px;' />";
649
+ } else {
650
+ $wp_logo_html = __( 'Not set', 'weaver-xtreme' );
651
+ }
652
 
653
  //echo '<table><tr><td>';
654
  $name = $value['name'];
655
  $id = $value['id'];
656
 
657
 
658
+ $opts = array(
659
+ array(
660
+ 'name' => $name,
661
+ 'id' => '-menu',
662
+ 'type' => 'header_area',
663
+ 'info' => $value['info'],
664
+ ),
665
+ array( 'name' => __( 'Menu Bar Layout', 'weaver-xtreme' ), 'type' => 'break' ),
666
+
667
+ array(
668
+ 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span>' . __( 'Align Menu', 'weaver-xtreme' /*adm*/ ),
669
+ 'id' => $id . '_align',
670
+ 'type' => 'select_id',
671
+ 'info' => __( 'Align this menu on desktop view. Mobile, accordion, and vertical menus always left aligned.', 'weaver-xtreme' /*adm*/ ),
672
  'value' => array(
673
+ array( 'val' => 'left', 'desc' => 'Align Left' ),
674
+ array( 'val' => 'center', 'desc' => 'Center' ),
675
+ array( 'val' => 'right', 'desc' => 'Align Right' ),
676
+ array( 'val' => 'alignwide', 'desc' => __( 'Align Wide', 'weaver-xtreme' /*adm*/ ) ),
677
+ array( 'val' => 'alignwide left', 'desc' => __( 'Align Wide, Items Left', 'weaver-xtreme' /*adm*/ ) ),
678
+ array( 'val' => 'alignwide center', 'desc' => __( 'Align Wide, Items Center', 'weaver-xtreme' /*adm*/ ) ),
679
+ array( 'val' => 'alignwide right', 'desc' => __( 'Align Wide, Items Right', 'weaver-xtreme' /*adm*/ ) ),
680
+ array( 'val' => 'alignfull', 'desc' => __( 'Align Full', 'weaver-xtreme' /*adm*/ ) ),
681
+ array( 'val' => 'alignfull left', 'desc' => __( 'Align Full, Items Left', 'weaver-xtreme' /*adm*/ ) ),
682
+ array( 'val' => 'alignfull center', 'desc' => __( 'Align Full, Items Center', 'weaver-xtreme' /*adm*/ ) ),
683
+ array( 'val' => 'alignfull right', 'desc' => __( 'Align Full, Items Right', 'weaver-xtreme' /*adm*/ ) ),
684
+ ),
685
+ ),
686
+
687
+ array(
688
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Menu', 'weaver-xtreme' /*adm*/ ) . '</small>',
689
+ 'id' => $id . '_hide',
690
+ 'type' => 'select_hide',
691
+ 'info' => '<em>' . $name . '</em>' . __( ': Hide menu on different display devices', 'weaver-xtreme' /*adm*/ ),
692
+ ),
693
 
694
  );
695
 
696
  if ( $id != 'm_extra' ) {
697
+ $opts[] = array(
698
+ 'name' => '<span class="i-left dashicons dashicons-editor-kitchensink"></span>' . __( 'Fixed-Top Menu', 'weaver-xtreme' /*adm*/ ),
699
+ 'id' => $id . '_fixedtop',
700
+ 'type' => 'fixedtop',
701
+ 'info' => '<em>' . $name . '</em>' . __( ': Fix menu to top of page. Note: the "Fix to Top on Scroll" does not play well with other "Fixed-Top" areas. Use the <em>Expand/Extend BG Attributes</em> on the Full Width tab to make a full width menu.', 'weaver-xtreme' /*adm*/ ),
702
+ );
703
 
704
  }
705
 
706
  if ( $id == 'm_primary' ) {
707
  $opts[] = array(
708
+ 'name' => '<small>' . __( 'Move Primary Menu to Top', 'weaver-xtreme' /*adm*/ ) . '</small>',
709
+ 'id' => $id . '_move',
710
+ 'type' => 'checkbox',
711
+ 'info' => '<em>' . $name . '</em>' . __( ': Move Primary Menu at Top of Header Area (Default: Bottom)', 'weaver-xtreme' /*adm*/ ),
712
+ 'value' => '',
713
+ );
714
 
715
 
716
+ $opts[] = array(
717
+ 'name' => '<span class="i-left dashicons dashicons-heart"></span><small>' . __( 'Add Site Logo to Left', 'weaver-xtreme' /*adm*/ ) . '</small>',
718
+ 'id' => 'm_primary_logo_left',
719
+ 'type' => 'checkbox',
720
+ 'info' => __( 'Add the Site Logo to the primary menu. Add custom CSS for <em>.custom-logo-on-menu</em> to style. (Use Customize &rarr; General Options &rarr; Site Identity to set Site Logo.) Logo: ', 'weaver-xtreme' /*adm*/ ) . $wp_logo_html,
721
+ );
722
 
723
+ $opts[] = array(
724
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'Height of Logo on Menu', 'weaver-xtreme' /*adm*/ ) . '</small>',
725
+ 'id' => 'm_primary_logo_height_dec',
726
+ 'type' => 'val_em',
727
+ 'info' => __( 'Set height of Logo on Menu. Will interact with padding. (Default: 2.0em, the standard Menu Bar height.)', 'weaver-xtreme' /*adm*/ ),
728
+ );
729
 
730
+ $opts[] = array(
731
+ 'name' => '<small>' . __( 'Logo Links to Home', 'weaver-xtreme' /*adm*/ ) . '</small>',
732
+ 'id' => 'm_primary_logo_home_link',
733
+ 'type' => 'checkbox',
734
+ 'info' => __( 'Add a link to home page to logo on menu bar.', 'weaver-xtreme' /*adm*/ ),
735
+ );
736
 
737
+ $opts[] = array(
738
+ 'name' => '<small>' . __( 'Add Site Title to Left', 'weaver-xtreme' /*adm*/ ) . '</small>',
739
+ 'id' => 'm_primary_site_title_left',
740
+ 'type' => 'checkbox',
741
+ 'info' => __( 'Add Site Title to primary menu left, with link to home page. (Uses Header Title font family, bold, and italic settings. Custom style with .site-title-on-menu.', 'weaver-xtreme' /*adm*/ ),
742
+ );
743
 
744
+ $opts[] = array(
745
+ 'name' => '<small>' . __( "Add Search to Right", 'weaver-xtreme' /*adm*/ ) . '</small>',
746
+ 'id' => 'm_primary_search',
747
+ 'type' => '+checkbox',
748
+ 'info' => __( 'Add slide open search icon to right end of primary menu. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
749
+ );
750
 
751
+ $opts[] = array(
752
+ 'name' => '<small>' . __( 'No Home Menu Item', 'weaver-xtreme' /*adm*/ ) . '</small>',
753
+ 'id' => 'menu_nohome',
754
+ 'type' => 'checkbox',
755
+ 'info' => __( 'Don\'t automatically add Home menu item for home page (as defined in Settings->Reading)', 'weaver-xtreme' /*adm*/ ),
756
+ );
757
 
758
 
759
  } elseif ( $id == 'm_secondary' ) {
760
  $opts[] = array(
761
+ 'name' => '<small>' . __( 'Move Secondary Menu to Bottom', 'weaver-xtreme' /*adm*/ ) . '</small>',
762
+ 'id' => $id . '_move',
763
+ 'type' => 'checkbox',
764
+ 'info' => '<em>' . $name . '</em>' . __( ': Move Secondary Menu at Bottom of Header Area (Default: Top)', 'weaver-xtreme' /*adm*/ ),
765
+ 'value' => '',
766
+ );
767
  }
768
 
769
+ weaverx_form_show_options( $opts, false, false );
 
 
770
 
771
 
772
  $opts = array(
773
 
774
+ array( 'name' => __( 'Menu Bar Colors', 'weaver-xtreme' ), 'type' => 'break', 'value' => 1 ),
775
+
776
+ array(
777
+ 'name' => __( 'Menu Bar', 'weaver-xtreme' /*adm*/ ),
778
+ 'id' => $id,
779
+ 'type' => 'titles_menu', // includes color, font size, font family
780
+ 'info' => __( 'Entire Menu Bar', 'weaver-xtreme' /*adm*/ ),
781
+ ),
782
+
783
+ array(
784
+ 'name' => __( 'Item BG', 'weaver-xtreme' /*adm*/ ),
785
+ 'id' => $id . '_link_bgcolor',
786
+ 'type' => 'ctext',
787
+ 'info' => '<em>' . $name . '</em>' . __( ': Background Color for Menu Bar Items (links)', 'weaver-xtreme' /*adm*/ ),
788
+ ),
789
+
790
+ array(
791
+ 'name' => '<small>' . __( 'Dividers between menu items', 'weaver-xtreme' /*adm*/ ) . '</small>',
792
+ 'id' => $id . '_dividers_color',
793
+ 'type' => '+color',
794
+ 'info' => '<em>' . $name . '</em>' . __( ': Add colored dividers between menu items. Leave blank for none. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
795
+ ),
796
+
797
+ array(
798
+ 'name' => '<small>' . __( 'Hover BG', 'weaver-xtreme' /*adm*/ ) . '</small>',
799
+ 'id' => $id . '_hover_bgcolor',
800
+ 'type' => 'ctext',
801
+ 'info' => '<em>' . $name . '</em>' . __( ': Hover BG Color (Default: rgba(255,255,255,0.15))', 'weaver-xtreme' /*adm*/ ),
802
+ ),
803
+ array(
804
+ 'name' => '<small>' . __( 'Hover Text Color', 'weaver-xtreme' /*adm*/ ) . '</small>',
805
+ 'id' => $id . '_hover_color',
806
+ 'type' => 'color',
807
+ 'info' => '<em>' . $name . '</em>' . __( ': Hover Text Color', 'weaver-xtreme' /*adm*/ ),
808
+ ),
809
+
810
+
811
+ array(
812
+ 'name' => '<small>' . __( '<em>Mobile</em> Open Submenu Arrow BG -<br /><em>Not used by SmarMenus</em>', 'weaver-xtreme' /*adm*/ ) . '</small>',
813
+ 'id' => $id . '_clickable_bgcolor',
814
+ 'type' => 'ctext',
815
+ 'info' => '<em>' . $name . '</em>' . __( ': Clickable mobile open submenu arrow BG. Contrasting BG color required for proper user interface. <em>Not used by SmartMenus</em>. (Default: rgba(255,255,255,0.2))', 'weaver-xtreme' /*adm*/ ),
816
+ ),
817
+
818
+
819
+ array(
820
+ 'name' => __( 'Submenu BG', 'weaver-xtreme' /*adm*/ ),
821
+ 'id' => $id . '_sub_bgcolor',
822
+ 'type' => 'ctext',
823
+ 'info' => '<em>' . $name . '</em>' . __( ': Background Color for submenus', 'weaver-xtreme' /*adm*/ ),
824
+ ),
825
+ array(
826
+ 'name' => '<small>' . __( 'Submenu Text Color', 'weaver-xtreme' /*adm*/ ) . '</small>',
827
+ 'id' => $id . '_sub_color',
828
+ 'type' => 'ctext',
829
+ 'info' => '<em>' . $name . '</em>' . __( ': Text Color for submenus', 'weaver-xtreme' /*adm*/ ),
830
+ ),
831
+
832
+ array(
833
+ 'name' => '<small>' . __( 'Submenu Hover BG', 'weaver-xtreme' /*adm*/ ) . '</small>',
834
+ 'id' => $id . '_sub_hover_bgcolor',
835
+ 'type' => 'ctext',
836
+ 'info' => '<em>' . $name . '</em>' . __( ': Submenu Hover BG Color (Default: Inherit Top Level)', 'weaver-xtreme' /*adm*/ ),
837
+ ),
838
+ array(
839
+ 'name' => '<small>' . __( 'Submenu Hover Text Color', 'weaver-xtreme' /*adm*/ ) . '</small>',
840
+ 'id' => $id . '_sub_hover_color',
841
+ 'type' => 'color',
842
+ 'info' => '<em>' . $name . '</em>' . __( ': Submenu Hover Text Color (Default: Inherit Top Level)', 'weaver-xtreme' /*adm*/ ),
843
+ ),
844
+
845
+ array( 'name' => __( 'Menu Bar Style', 'weaver-xtreme' ), 'type' => 'break' ),
846
+
847
+ array(
848
+ 'name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __( 'Add Border', 'weaver-xtreme' /*adm*/ ) . '</small>',
849
+ 'id' => $id . '_border',
850
+ 'type' => 'checkbox',
851
+ 'info' => '<em>' . $name . '</em>' . ': Add the "standard" border (as set on Custom tab)',
852
+ ),
853
+
854
+ array(
855
+ 'name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __( 'Add Border to Submenus', 'weaver-xtreme' /*adm*/ ) . '</small>',
856
+ 'id' => $id . '_sub_border',
857
+ 'type' => 'checkbox',
858
+ 'info' => '<em>' . $name . '</em>' . ': Add the "standard" border to Submenus',
859
+ ),
860
+
861
+ array(
862
+ 'name' => '<span class="i-left dashicons dashicons-admin-page"></span><small>' . __( 'Shadow', 'weaver-xtreme' /*adm*/ ) . '</small>',
863
+ 'id' => $id . '_shadow',
864
+ 'type' => 'shadows',
865
+ 'info' => '<em>' . $name . '</em>' . __( ': Wrap Menu Bar with Shadow.', 'weaver-xtreme' /*adm*/ ),
866
+ ),
867
+ array(
868
+ 'name' => '<span class="i-left dashicons dashicons-marker"></span><small>' . __( 'Rounded Corners', 'weaver-xtreme' /*adm*/ ) . '</small>',
869
+ 'id' => $id . '_rounded',
870
+ 'type' => 'rounded',
871
+ 'info' => '<em>' . $name . '</em>' . __( ': Add rounded corners to menu. <em>You might need to set overlapping corners Header/Wrapper areas also!</em>', 'weaver-xtreme' /*adm*/ ),
872
+ ),
873
+ array(
874
+ 'name' => '<span class="i-left dashicons dashicons-marker"></span><small>' . __( 'Rounded Submenu Corners', 'weaver-xtreme' /*adm*/ ) . '</small>',
875
+ 'id' => $id . '_sub_rounded',
876
+ 'type' => 'checkbox',
877
+ 'info' => '<em>' . $name . '</em>' . ': Add rounded corners to Submenus',
878
+ ),
879
 
880
  );
881
 
882
+ weaverx_form_show_options( $opts, false, false );
 
883
 
884
 
885
  if ( $id == 'm_primary' ) {
894
 
895
  $opts2 = array(
896
 
897
+ array(
898
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Arrows', 'weaver-xtreme' /*adm*/ ) . '</small>',
899
+ 'id' => $id . '_hide_arrows',
900
+ 'type' => 'checkbox',
901
+ 'info' => '<em>' . $name . '</em>' . __( ': Hide Arrows on Desktop Menu', 'weaver-xtreme' /*adm*/ ),
902
+ ),
903
+ array(
904
+ 'name' => '<span class="i-left">{ }</span> <small>' . __( 'Add Classes', 'weaver-xtreme' /*adm*/ ) . '</small>',
905
+ 'id' => $id . '_add_class',
906
+ 'type' => '+widetext',
907
+ 'info' => '<em>' . $name . '</em>' . __( ': Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
908
+ ),
909
+
910
+ array( 'name' => __( 'Menu Bar Spacing', 'weaver-xtreme' ), 'type' => 'break' ),
911
+
912
+ array(
913
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'Menu Top Margin', 'weaver-xtreme' /*adm*/ ) . '</small>',
914
+ 'id' => $id . '_top_margin_dec',
915
+ 'type' => 'val_px',
916
+ 'info' => '<em>' . $name . '</em>' . __( ': Top margin for menu bar.', 'weaver-xtreme' /*adm*/ ),
917
+ ),
918
+ array(
919
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'Menu Bottom Margin', 'weaver-xtreme' /*adm*/ ) . '</small>',
920
+ 'id' => $id . '_bottom_margin_dec',
921
+ 'type' => 'val_px',
922
+ 'info' => '<em>' . $name . '</em>' . __( ': Bottom margin for menu bar.', 'weaver-xtreme' /*adm*/ ),
923
+ ),
924
+
925
+ array(
926
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'Desktop Item Vertical Padding', 'weaver-xtreme' /*adm*/ ) . '</small>',
927
+ 'id' => $id . '_menu_pad_dec',
928
+ 'type' => 'val_em',
929
+ 'info' => '<em>' . $name . '</em>' . __( ': Add vertical padding to Desktop menu bar items and submenus. This option is NOT RECOMMENDED as it does not work with Left and Right HTML areas. (Default: 0.6em)', 'weaver-xtreme' /*adm*/ ),
930
+ ),
931
+
932
+ array(
933
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'Desktop Menu Bar Padding', 'weaver-xtreme' /*adm*/ ) . '</small>',
934
+ 'id' => $id . '_menu_bar_pad_dec',
935
+ 'type' => 'val_em',
936
+ 'info' => '<em>' . $name . '</em>' . __( ': Add padding to menu bar top and bottom for Desktop devices. (Default: 0 em)', 'weaver-xtreme' /*adm*/ ),
937
+ ),
938
+
939
+
940
+ array(
941
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'Desktop Menu Spacing. (not on Smart Menus)', 'weaver-xtreme' /*adm*/ ) . '</small>',
942
+ 'id' => $id . '_right_padding_dec',
943
+ 'type' => 'val_em',
944
+ 'info' => '<em>' . $name . '</em>' . __( ': Add space between desktop menu bar items (Use value &gt; 1.0)', 'weaver-xtreme' /*adm*/ ),
945
+ ),
946
+
947
+ array( 'name' => __( 'Menu Bar Left/Right HTML', 'weaver-xtreme' ), 'type' => 'break' ),
948
+
949
+
950
+ array(
951
+ 'name' => '<span class="i-left dashicons dashicons-editor-code"></span><small>' . __( 'Left HTML', 'weaver-xtreme' /*adm*/ ) . '</small>',
952
+ 'id' => $id . '_html_left',
953
+ 'type' => '+textarea',
954
+ 'placeholder' => __( 'Any HTML, including shortcodes.', 'weaver-xtreme' /*adm*/ ),
955
+ 'info' => __( 'Add HTML Left (Works best with Centered Menu)(&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
956
+ ),
957
+ array(
958
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Area', 'weaver-xtreme' /*adm*/ ) . '</small>',
959
+ 'id' => $id . '_hide_left',
960
+ 'type' => '+select_hide',
961
+ 'info' => '<em>' . $name . '</em>' . __( ': Hide Left HTML', 'weaver-xtreme' /*adm*/ ),
962
+ ),
963
+
964
+
965
+ array(
966
+ 'name' => '<span class="i-left dashicons dashicons-editor-code"></span><small>' . __( 'Right HTML', 'weaver-xtreme' /*adm*/ ) . '</small>',
967
+ 'id' => $id . '_html_right',
968
+ 'type' => $right_text,
969
+ 'placeholder' => __( 'Any HTML, including shortcodes.', 'weaver-xtreme' /*adm*/ ),
970
+ 'info' => __( 'Add HTML to Menu on Right (Works best with Centered Menu)', 'weaver-xtreme' /*adm*/ ) . $right_plus,
971
+ ),
972
+
973
+
974
+ array(
975
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Area', 'weaver-xtreme' /*adm*/ ) . '</small>',
976
+ 'id' => $id . '_hide_right',
977
+ 'type' => $right_hide,
978
+ 'info' => '<em>' . $name . '</em>' . __( ': Hide Right HTML', 'weaver-xtreme' /*adm*/ ),
979
+ ),
980
+
981
+
982
+ array(
983
+ 'name' => '<small>' . __( 'HTML: Text Color', 'weaver-xtreme' /*adm*/ ) . '</small>',
984
+ 'id' => $id . '_html_color',
985
+ 'type' => 'ctext',
986
+ 'info' => '<em>' . $name . '</em>' . __( ': Text Color for Left/Right Menu Bar HTML', 'weaver-xtreme' /*adm*/ ),
987
+ ),
988
+ array(
989
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'HTML: Top Margin', 'weaver-xtreme' /*adm*/ ) . '</small>',
990
+ 'id' => $id . '_html_margin_dec',
991
+ 'type' => 'val_em',
992
+ 'info' => '<em>' . $name . '</em>' . __( ': Margin above Added Menu HTML (Used to adjust for Desktop menu. Negative values can help.)', 'weaver-xtreme' /*adm*/ ),
993
+ ),
994
 
995
 
996
  );
997
 
998
+ weaverx_form_show_options( $opts2, false, false );
999
 
1000
 
1001
+ if ( $submit ) {
1002
+ weaverx_form_submit( '' );
1003
+ }
1004
  }
1005
 
1006
 
1007
+ function weaverx_form_text_props( $value, $type = 'titles' ) {
 
1008
  // display text properties for an area or title
1009
 
1010
  $id = $value['id'];
1022
 
1023
  // COLOR BG & COLOR BOX
1024
 
1025
+ if ( $id == 'wrapper' ) {
1026
  echo '<tr><td></td><td colspan="2"><p>';
1027
+ _e( '<strong>Important note:</strong> The Wrapper Area provides default
1028
  <em>background color, text color, and text font properties</em>
1029
  for most other areas, including Header, Container, Content, Widgets, and more.',
1030
+ 'weaver-xtreme' /*adm*/ );
1031
  echo "</p></td></tr>\n";
1032
  }
1033
 
1035
 
1036
  weaverx_form_ctext( array(
1037
  'name' => $name . ' BG',
1038
+ 'id' => $id_colorbg,
1039
+ 'info' => '<em>' . $info . __( ':</em> Background Color (use CSS+ to specify custom CSS for area)', 'weaver-xtreme' /*adm*/ ),
1040
+ ) );
1041
 
1042
 
1043
+ if ( $type == 'menu' || $id == 'post_title' ) {
1044
  weaverx_form_ctext( array(
1045
+ 'name' => $name . ' ' . __( 'Text Color', 'weaver-xtreme' /*adm*/ ),
1046
+ 'id' => $id_color,
1047
+ 'info' => '<em>' . $info . __( ':</em> Text properties', 'weaver-xtreme' /*adm*/ ),
1048
+ ) );
1049
+ } else {
1050
  weaverx_form_color( array(
1051
+ 'name' => $name . ' ' . __( 'Text Color', 'weaver-xtreme' /*adm*/ ),
1052
+ 'id' => $id_color,
1053
+ 'info' => '<em>' . $info . __( ':</em> Text properties', 'weaver-xtreme' /*adm*/ ),
1054
+ ) );
1055
+ }
1056
 
1057
  // FONT PROPERTIES
1058
+ ?>
1059
  <tr>
1060
+ <th scope="row" align="right"><span class="i-left font-bold font-italic"><span style="font-size:16px;">a</span><span style="font-size:14px;">b</span><span style="font-size:12px;">c</span></span><small>
1061
+ <?php echo ( $type == 'titles' ) ? __( 'Title', 'weaver-xtreme' /*adm*/ ) : __( 'Text', 'weaver-xtreme' /*adm*/ ); ?>
1062
+ <?php _e( 'Font properties:', 'weaver-xtreme' /*adm*/ ); ?></small>&nbsp;
1063
+ </th>
1064
+ <td colspan="2">
1065
+ <?php
1066
+ if ( $type != 'content' ) {
1067
+ echo '&nbsp;<span class="rtl-break"><small><em>Size:</em></small>';
1068
+ weaverx_form_select_font_size( array( 'id' => $id_size ), false );
1069
+ echo '</span>';
1070
+ }
1071
+ echo '&nbsp;<span class="rtl-break"><small><em>Family:</em></small>';
1072
+ weaverx_form_select_font_family( array( 'id' => $id_family ), false );
1073
+ echo '</span>'; ?>
1074
+
1075
+ <?php if ( $type == 'titles' ) { ?>
1076
+ &nbsp;<span class="rtl-break"><small><?php _e( 'Normal Weight', 'weaver-xtreme' /*adm*/ ); ?></small>
1077
+ <input type="checkbox" name="<?php weaverx_sapi_main_name( $id_normal ); ?>" id="<?php echo $id_normal; ?>"
1078
+ <?php checked( weaverx_getopt_checked( $id_normal ) ); ?> ></span>
1079
+
1080
+ <?php } else { ?>
1081
+ &nbsp;<span class="rtl-break"><small><strong><?php _e( 'Bold', 'weaver-xtreme' /*adm*/ ); ?></strong></small>
1082
  <?php
1083
+ weaverx_form_font_bold_italic( array( 'id' => $id_bold ) );
1084
 
1085
  /* <input type="checkbox" name="<?php weaverx_sapi_main_name($id_bold); ?>" id="<?php echo $id_bold; ?>"
1086
  <?php checked(weaverx_getopt_checked( $id_bold )); ?> >
1087
  */
1088
  ?>
1089
  </span>
1090
+ <?php } ?>
1091
+ &nbsp;<span class="rtl-break">
1092
+ <small><em><?php _e( 'Italic', 'weaver-xtreme' /*adm*/ ); ?></em></small>
1093
  <?php
1094
+ weaverx_form_font_bold_italic( array( 'id' => $id_italic ) );
1095
  /* <input type="checkbox" name="<?php weaverx_sapi_main_name($id_italic); ?>" id="<?php echo $id_italic; ?>"
1096
  /<?php checked(weaverx_getopt_checked( $id_italic )); ?> >
1097
  */
1098
  ?>
1099
  </span>
1100
+ <?php if ( apply_filters( 'weaverx_xtra_type', '+plus_fonts' ) == 'inactive' ) {
1101
+ echo '<small>&nbsp;&nbsp; ' . __( '(Add new fonts with <em>Weaver Xtreme Plus</em>)', 'weaver-xtreme' /*adm*/ ) . '</small>';
1102
+ } else {
1103
+ echo '<small>&nbsp;&nbsp; ' . __( '(Add new fonts from Custom &amp; Fonts tab.)', 'weaver-xtreme' /*adm*/ ) . '</small>';
1104
+ } ?>
1105
+ </td>
1106
  </tr>
1107
+ <?php
1108
 
1109
  }
1110
 
1111
  function weaverx_from_fi_location( $value, $is_post = false ) {
1112
  $value['value'] = array(
1113
+ array( 'val' => 'content-top', 'desc' => __( 'With Content - top', 'weaver-xtreme' /*adm*/ ) ),
1114
+ array( 'val' => 'content-bottom', 'desc' => __( 'With Content - bottom', 'weaver-xtreme' /*adm*/ ) ),
1115
+ array( 'val' => 'title-before', 'desc' => __( 'With Title', 'weaver-xtreme' /*adm*/ ) ),
1116
+ array( 'val' => 'title-banner', 'desc' => __( 'Banner above Title', 'weaver-xtreme' ) ),
1117
+ array(
1118
+ 'val' => 'header-image',
1119
+ 'desc' => $is_post ? __( 'Hide on Blog View', 'weaver-xtreme' /*adm*/ ) :
1120
+ __( 'Header Image Replacement', 'weaver-xtreme' /*adm*/ ),
1121
+ ),
1122
+ array( 'val' => 'post-before', 'desc' => __( 'Before Page/Post, no wrap', 'weaver-xtreme' /*adm*/ ) ),
1123
+
1124
+ array( 'val' => 'post-bg', 'desc' => __( 'As BG Image, Tile', 'weaver-xtreme' /*adm*/ ) ),
1125
+ array( 'val' => 'post-bg-cover', 'desc' => __( 'As BG Image, Cover', 'weaver-xtreme' /*adm*/ ) ),
1126
+ array( 'val' => 'post-bg-parallax', 'desc' => __( 'As BG Image, Parallax', 'weaver-xtreme' /*adm*/ ) ),
1127
+ array( 'val' => 'post-bg-parallax-full', 'desc' => __( 'As BG Image, Parallax Full', 'weaver-xtreme' /*adm*/ ) ),
1128
  );
1129
 
1130
+ weaverx_form_select_id( $value );
1131
  }
1132
 
1133
 
1134
  function weaverx_form_align( $value ) {
1135
+ if ( $value['id'] == 'wrapper_align' ) {
1136
+ $value['value'] = array(
1137
+ array( 'val' => 'align-center', 'desc' => __( 'Center', 'weaver-xtreme' /*adm*/ ) ),
1138
+ array( 'val' => 'float-left', 'desc' => __( 'Align Left', 'weaver-xtreme' /*adm*/ ) ),
1139
+ array( 'val' => 'float-right', 'desc' => __( 'Align Right', 'weaver-xtreme' /*adm*/ ) ),
1140
+ array( 'val' => 'alignnone', 'desc' => __( 'No Alignment', 'weaver-xtreme' /*adm*/ ) ),
1141
+ array( 'val' => 'alignwide', 'desc' => __( 'Align Wide', 'weaver-xtreme' /*adm*/ ) ),
1142
+ array( 'val' => 'alignfull', 'desc' => __( 'Align Full', 'weaver-xtreme' /*adm*/ ) ),
1143
+ );
1144
+ } else {
1145
+ $value['value'] = array(
1146
+ array( 'val' => 'float-left', 'desc' => __( 'Align Left', 'weaver-xtreme' /*adm*/ ) ),
1147
+ array( 'val' => 'align-center', 'desc' => __( 'Center', 'weaver-xtreme' /*adm*/ ) ),
1148
+ array( 'val' => 'float-right', 'desc' => __( 'Align Right', 'weaver-xtreme' /*adm*/ ) ),
1149
+ array( 'val' => 'alignnone', 'desc' => __( 'No Alignment', 'weaver-xtreme' /*adm*/ ) ),
1150
+ array( 'val' => 'alignwide', 'desc' => __( 'Align Wide', 'weaver-xtreme' /*adm*/ ) ),
1151
+ array( 'val' => 'alignfull', 'desc' => __( 'Align Full', 'weaver-xtreme' /*adm*/ ) ),
1152
+ );
1153
+ }
1154
 
1155
+ weaverx_form_select_id( $value );
1156
  }
1157
 
1158
  function weaverx_form_align_standard( $value ) {
1159
  $value['value'] = array(
1160
+ array( 'val' => 'float-left', 'desc' => __( 'Align Left', 'weaver-xtreme' /*adm*/ ) ),
1161
+ array( 'val' => 'align-center', 'desc' => __( 'Center', 'weaver-xtreme' /*adm*/ ) ),
1162
+ array( 'val' => 'float-right', 'desc' => __( 'Align Right', 'weaver-xtreme' /*adm*/ ) ),
1163
+ array( 'val' => 'alignnone', 'desc' => __( 'No Alignment', 'weaver-xtreme' /*adm*/ ) ),
1164
  );
1165
 
1166
+ weaverx_form_select_id( $value );
1167
  }
1168
 
1169
  function weaverx_form_fixedtop( $value ) {
1170
  $value['value'] = array(
1171
+ array( 'val' => 'none', 'desc' => __( 'Standard Position : Not Fixed', 'weaver-xtreme' /*adm*/ ) ),
1172
+ array( 'val' => 'fixed-top', 'desc' => __( 'Fixed to Top', 'weaver-xtreme' /*adm*/ ) ),
1173
+ array( 'val' => 'scroll-fix', 'desc' => __( 'Fix to Top on Scroll', 'weaver-xtreme' /*adm*/ ) ),
1174
  );
1175
 
1176
+ weaverx_form_select_id( $value );
1177
  }
1178
 
1179
  function weaverx_form_fi_align( $value ) {
1180
  $value['value'] = array(
1181
+ array( 'val' => 'fi-alignleft', 'desc' => __( 'Align Left', 'weaver-xtreme' /*adm*/ ) ),
1182
+ array( 'val' => 'fi-aligncenter', 'desc' => __( 'Center', 'weaver-xtreme' /*adm*/ ) ),
1183
+ array( 'val' => 'fi-alignright', 'desc' => __( 'Align Right', 'weaver-xtreme' /*adm*/ ) ),
1184
+ array( 'val' => 'fi-alignnone', 'desc' => __( 'No Align', 'weaver-xtreme' /*adm*/ ) ),
1185
  );
1186
 
1187
+ weaverx_form_select_id( $value );
1188
  }
1189
 
1190
+ function weaverx_form_select_hide( $value ) {
1191
+ $value['value'] = array(
1192
+ array( 'val' => 'hide-none', 'desc' => __( 'Do Not Hide', 'weaver-xtreme' /*adm*/ ) ),
1193
+ array( 'val' => 's-hide', 'desc' => __( 'Hide: Phones', 'weaver-xtreme' /*adm*/ ) ),
1194
+ array( 'val' => 'm-hide', 'desc' => __( 'Hide: Small Tablets', 'weaver-xtreme' /*adm*/ ) ),
1195
+ array( 'val' => 'm-hide s-hide', 'desc' => __( 'Hide: Phones+Tablets', 'weaver-xtreme' /*adm*/ ) ),
1196
+ array( 'val' => 'l-hide', 'desc' => __( 'Hide: Desktop', 'weaver-xtreme' /*adm*/ ) ),
1197
+ array( 'val' => 'l-hide m-hide', 'desc' => __( 'Hide: Desktop+Tablets', 'weaver-xtreme' /*adm*/ ) ),
1198
+ array( 'val' => 'hide', 'desc' => __( 'Hide on All Devices', 'weaver-xtreme' /*adm*/ ) ),
1199
  );
1200
 
1201
+ weaverx_form_select_id( $value );
1202
  }
1203
 
1204
  function weaverx_form_select_font_size( $value, $show_row = true ) {
1205
+ $value['value'] = array(
1206
+ array( 'val' => 'default', 'desc' => __( 'Inherit', 'weaver-xtreme' /*adm*/ ) ),
1207
+ array( 'val' => 'm-font-size', 'desc' => __( 'Medium Font', 'weaver-xtreme' /*adm*/ ) ),
1208
+ array( 'val' => 'xxs-font-size', 'desc' => __( 'XX-Small Font', 'weaver-xtreme' /*adm*/ ) ),
1209
+ array( 'val' => 'xs-font-size', 'desc' => __( 'X-Small Font', 'weaver-xtreme' /*adm*/ ) ),
1210
+ array( 'val' => 's-font-size', 'desc' => __( 'Small Font', 'weaver-xtreme' /*adm*/ ) ),
1211
+ array( 'val' => 'l-font-size', 'desc' => __( 'Large Font', 'weaver-xtreme' /*adm*/ ) ),
1212
+ array( 'val' => 'xl-font-size', 'desc' => __( 'X-Large Font', 'weaver-xtreme' /*adm*/ ) ),
1213
+ array( 'val' => 'xxl-font-size', 'desc' => __( 'XX-Large Font', 'weaver-xtreme' /*adm*/ ) ),
1214
+ array( 'val' => 'customA-font-size', 'desc' => __( 'Custom Size A', 'weaver-xtreme' /*adm*/ ) ),
1215
+ array( 'val' => 'customB-font-size', 'desc' => __( 'Custom Size B', 'weaver-xtreme' /*adm*/ ) ),
1216
  );
1217
+ $value['value'] = apply_filters( 'weaverx_add_font_size', $value['value'] );
1218
+ weaverx_form_select_id( $value, $show_row );
1219
  }
1220
 
1221
 
1222
  function weaverx_form_select_font_family( $value, $show_row = true ) {
1223
+ $value['value'] = array(
1224
+ array( 'val' => 'default', 'desc' => __( 'Inherit', 'weaver-xtreme' /*adm*/ ) ),
1225
+ array( 'val' => 'sans-serif', 'desc' => __( 'Arial (Sans Serif)', 'weaver-xtreme' /*adm*/ ) ),
1226
+ array( 'val' => 'arialBlack', 'desc' => __( 'Arial Black', 'weaver-xtreme' /*adm*/ ) ),
1227
+ array( 'val' => 'arialNarrow', 'desc' => __( 'Arial Narrow', 'weaver-xtreme' /*adm*/ ) ),
1228
+ array( 'val' => 'lucidaSans', 'desc' => __( 'Lucida Sans', 'weaver-xtreme' /*adm*/ ) ),
1229
+ array( 'val' => 'trebuchetMS', 'desc' => __( 'Trebuchet MS', 'weaver-xtreme' /*adm*/ ) ),
1230
+ array( 'val' => 'verdana', 'desc' => __( 'Verdana', 'weaver-xtreme' /*adm*/ ) ),
1231
+
1232
+ array( 'val' => 'serif', 'desc' => __( 'Times (Serif)', 'weaver-xtreme' /*adm*/ ) ),
1233
+ array( 'val' => 'cambria', 'desc' => __( 'Cambria', 'weaver-xtreme' /*adm*/ ) ),
1234
+ array( 'val' => 'garamond', 'desc' => __( 'Garamond', 'weaver-xtreme' /*adm*/ ) ),
1235
+ array( 'val' => 'georgia', 'desc' => __( 'Georgia', 'weaver-xtreme' /*adm*/ ) ),
1236
+ array( 'val' => 'lucidaBright', 'desc' => __( 'Lucida Bright', 'weaver-xtreme' /*adm*/ ) ),
1237
+ array( 'val' => 'palatino', 'desc' => __( 'Palatino', 'weaver-xtreme' /*adm*/ ) ),
1238
+
1239
+ array( 'val' => 'monospace', 'desc' => __( 'Courier (Monospace)', 'weaver-xtreme' /*adm*/ ) ),
1240
+ array( 'val' => 'consolas', 'desc' => __( 'Consolas', 'weaver-xtreme' /*adm*/ ) ),
1241
+
1242
+ array( 'val' => 'papyrus', 'desc' => __( 'Papyrus', 'weaver-xtreme' /*adm*/ ) ),
1243
+ array( 'val' => 'comicSans', 'desc' => __( 'Comic Sans MS', 'weaver-xtreme' /*adm*/ ) ),
1244
  );
1245
+ $value['value'] = apply_filters( 'weaverx_add_font_family', $value['value'] );
 
 
 
 
1246
  ?>
1247
+ <select name="<?php weaverx_sapi_main_name( $value['id'] ); ?>" id="<?php echo $value['id']; ?>">
1248
+ <?php
1249
+ foreach ( $value['value'] as $option ) {
1250
+ ?>
1251
+ <option class="font-<?php echo $option['val']; ?>" value="<?php echo $option['val'] ?>"<?php selected( ( weaverx_getopt( $value['id'] ) == $option['val'] ) ); ?>><?php echo $option['desc']; ?></option>
1252
+ <?php } ?>
1253
  </select>
1254
+ <?php
1255
  }
1256
 
1257
+ function weaverx_form_rounded( $value ) {
1258
+ $value['value'] = array(
1259
+ array( 'val' => 'none', 'desc' => __( 'None', 'weaver-xtreme' /*adm*/ ) ),
1260
+ array( 'val' => '-all', 'desc' => __( 'All Corners', 'weaver-xtreme' /*adm*/ ) ),
1261
+ array( 'val' => '-left', 'desc' => __( 'Left Corners', 'weaver-xtreme' /*adm*/ ) ),
1262
+ array( 'val' => '-right', 'desc' => __( 'Right Corners', 'weaver-xtreme' /*adm*/ ) ),
1263
+ array( 'val' => '-top', 'desc' => __( 'Top Corners', 'weaver-xtreme' /*adm*/ ) ),
1264
+ array( 'val' => '-bottom', 'desc' => __( 'Bottom Corners', 'weaver-xtreme' /*adm*/ ) ),
1265
  );
1266
 
1267
+ weaverx_form_select_id( $value );
1268
  }
1269
 
1270
+ function weaverx_form_font_bold_italic( $value ) {
1271
+ $value['value'] = array(
1272
+ array( 'val' => '', 'desc' => __( 'Inherit', 'weaver-xtreme' /*adm*/ ) ),
1273
+ array( 'val' => 'on', 'desc' => __( 'On', 'weaver-xtreme' /*adm*/ ) ),
1274
+ array( 'val' => 'off', 'desc' => __( 'Off', 'weaver-xtreme' /*adm*/ ) ),
1275
  );
1276
 
1277
+ weaverx_form_select_id( $value, false );
1278
  }
1279
 
1280
+ function weaverx_form_shadows( $value ) {
1281
+ $value['value'] = array(
1282
+ array( 'val' => '-0', 'desc' => __( 'No Shadow', 'weaver-xtreme' /*adm*/ ) ), // as in .shadow-0
1283
+ array( 'val' => '-1', 'desc' => __( 'All Sides, 1px', 'weaver-xtreme' /*adm*/ ) ),
1284
+ array( 'val' => '-2', 'desc' => __( 'All Sides, 2px', 'weaver-xtreme' /*adm*/ ) ),
1285
+ array( 'val' => '-3', 'desc' => __( 'All Sides, 3px', 'weaver-xtreme' /*adm*/ ) ),
1286
+ array( 'val' => '-4', 'desc' => __( 'All Sides, 4px', 'weaver-xtreme' /*adm*/ ) ),
1287
+ array( 'val' => '-rb', 'desc' => __( 'Right + Bottom', 'weaver-xtreme' /*adm*/ ) ),
1288
+ array( 'val' => '-lb', 'desc' => __( 'Left + Bottom', 'weaver-xtreme' /*adm*/ ) ),
1289
+ array( 'val' => '-tr', 'desc' => __( 'Top + Right', 'weaver-xtreme' /*adm*/ ) ),
1290
+ array( 'val' => '-tl', 'desc' => __( 'Top + Left', 'weaver-xtreme' /*adm*/ ) ),
1291
+ array( 'val' => '-custom', 'desc' => __( 'Custom Shadow', 'weaver-xtreme' /*adm*/ ) ),
1292
  );
1293
+ $value['value'] = apply_filters( 'weaverx_add_shadows', $value['value'] );
1294
 
1295
+ weaverx_form_select_id( $value );
1296
  }
1297
 
1298
  // custom forms
1299
 
1300
+ function weaverx_custom_css( $value = '' ) {
1301
 
1302
+ $css = weaverx_getopt( 'add_css' );
1303
 
1304
+ if ( isset( $value['id'] ) ) {
1305
  $icon = $value['id'];
1306
+ }
1307
+ if ( ! isset( $icon ) || ! $icon ) {
1308
  $icon = ' ';
1309
+ }
1310
 
1311
  $dash = '';
1312
  if ( $icon[0] == '-' ) { // add a leading icon
1313
+ $dash = '<span style="padding:.2em;" class="dashicons dashicons-' . substr( $icon, 1 ) . '"></span>';
1314
  }
1315
+ ?>
1316
+ <tr class="atw-row-header">
1317
+ <td colspan="3">
1318
+ <a id="custom-css-rules"></a>
1319
+ <span style="color:black;padding:.2em;" class="dashicons dashicons-screenoptions"></span>
1320
+ <span style="font-weight:bold; font-size: larger;"><em>
1321
+ <?php _e( 'Custom CSS Rules', 'weaver-xtreme' /*adm*/ ); ?><?php weaverx_help_link( 'help.html#CustomCSS', __( 'Custom CSS Rules', 'weaver-xtreme' /*adm*/ ) ); ?></em></span>
1322
+ </td>
1323
+ </tr>
1324
+ <tr>
1325
+ <td colspan="3">
1326
+
1327
+ <!-- ======== -->
1328
+ <p>
1329
+ <?php _e( 'Rules you add here will be the <em>last</em> CSS Rules included by Weaver Xtreme, and thus override all other Weaver Xtreme generated CSS rules.
1330
  Specify complete CSS rules, but don\'t add the &lt;style&gt; HTML element. You can prefix your selectors with <code>.is-desktop, .is-mobile, .is-smalltablet, or .is-phone</code>
1331
  to create rules for specific devices.
1332
  <strong>NOTE:</strong> Because Weaver Xtreme uses classes on many of its elements, you may to need to use
1333
  <em>!important</em> with your rules to force the style override.
1334
+ It is possible that other plugins might generate CSS that comes after these rules.', 'weaver-xtreme' /*adm*/ ); ?>
1335
+ </p>
1336
+ <?php weaverx_textarea( weaverx_getopt( 'add_css' ), 'add_css', 12, '', 'width:95%;', 'wvrx-edit wvrx-edit-dir' ); ?>
1337
 
1338
+ </td>
1339
+ </tr>
1340
+ <?php
1341
  }
1342
 
 
 
admin/admin-lib-ts.php CHANGED
@@ -740,4 +740,3 @@ function weaverx_ex_set_current_to_serialized_values($contents) {
740
  return true;
741
  }
742
 
743
- ?>
740
  return true;
741
  }
742
 
 
admin/admin-mainopts.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
- if ( !defined('ABSPATH')) exit; // Exit if accessed directly
 
 
3
  /* Weaver Xtreme - admin Main Options
4
  *
5
  * __ added: 12/9/14
@@ -8,239 +10,344 @@ if ( !defined('ABSPATH')) exit; // Exit if accessed directly
8
 
9
  // ======================== Main Options > Top Level ========================
10
  function weaverx_admin_mainopts() {
11
- if (!function_exists('weaverx_get_wp_custom_logo_url')) {
12
- weaverx_alert(__(' **** WARNING! ****\r\n\r\nYou are using a new Version 3 of the Weaver Xtreme Theme Support Plugin with an older version of the Weaver Xtreme Theme. Please update to the latest Version 3 of the Weaver Xtreme Theme.\r\n\r\nTHIS VERSION DOES NOT WORK WITH OLD VERSIONS OF WEAVER XTREME!'));
13
  }
14
- ?>
15
- <div id="tabwrap_main" style="padding-left:4px;">
16
-
17
- <div id="tab-container-main" class='yetiisub'>
18
- <ul id="tab-container-main-nav" class='yetiisub'>
19
- <?php
20
- weaverx_elink('#asp_genappear' , __('Wrapping background colors, rounded corners, borders, fade, shadow', 'weaver-xtreme' /*adm*/), __('Wrapping Areas', 'weaver-xtreme' /*adm*/),'<li>','</li>');
21
- weaverx_elink('#asp_widgets' , __('Settings for Sidebars and Sidebar Layout', 'weaver-xtreme' /*adm*/), __('Sidebars &amp; Layout', 'weaver-xtreme' /*adm*/),'<li>', '</li>');
22
- weaverx_elink('#asp_full' , __('Settings to create full width sites', 'weaver-xtreme' /*adm*/), __('Full Width', 'weaver-xtreme' /*adm*/),'<li>', '</li>');
23
- weaverx_elink('#asp_headeropts' , __('Site Title/Tagline properties, Header Image', 'weaver-xtreme' /*adm*/), __('Header', 'weaver-xtreme' /*adm*/),'<li>', '</li>');
24
- weaverx_elink('#asp_menus' , __('Menu text and bg colors and other properties; Info Bar properties', 'weaver-xtreme' /*adm*/), __('Menus','weaver-xtreme' /*adm*/),'<li>', '</li>');
25
- weaverx_elink('#asp_content' , __('Text colors and bg, image borders, featured image, other properties related to all content', 'weaver-xtreme' /*adm*/), __('Content Areas', 'weaver-xtreme' /*adm*/),'<li>', '</li>');
26
- weaverx_elink('#asp_postspecific' , __('Properties related to posts: titles, meta info, navigation, excerpts, featured images, and more', 'weaver-xtreme' /*adm*/), __('Post Specifics', 'weaver-xtreme' /*adm*/),'<li>', '</li>');
27
- weaverx_elink('#asp_footer' , __('Footer options: bg color, borders, more. Site Copyright', 'weaver-xtreme' /*adm*/), __('Footer', 'weaver-xtreme' /*adm*/),'<li>', '</li>');
28
- weaverx_elink('#asp_custom' , __('Font settings &amp; Custom Settings', 'weaver-xtreme' /*adm*/), __('Fonts &amp; Custom', 'weaver-xtreme' /*adm*/),'<li>', '</li>');
29
- ?>
30
- </ul>
31
-
32
- <?php weaverx_tab_title(__('Main Options', 'weaver-xtreme' /*adm*/), 'help.html#MainOptions', __('Help for Main Options', 'weaver-xtreme' /*adm*/)); ?>
33
-
34
- <div id="asp_genappear" class="tab_mainopt" >
35
- <?php weaverx_mainopts_general(); ?>
36
- </div>
37
-
38
- <div id="asp_widgets" class="tab_mainopt" >
39
- <?php
40
- weaverx_mainopts_layout();
41
- weaverx_mainopts_widgets();
42
- ?>
43
- </div>
44
-
45
- <div id="asp_full" class="tab_mainopt" >
46
- <?php
47
- weaverx_mainopts_fullwidth();
48
  ?>
49
- </div>
50
-
51
- <div id="asp_headeropts" class="tab_mainopt" >
52
- <?php weaverx_mainopts_header(); ?>
53
- </div>
54
-
55
- <div id="asp_menus" class="tab_mainopt" >
56
- <?php weaverx_mainopts_menus(); ?>
57
- </div>
58
-
59
- <div id="asp_content" class="tab_mainopt" >
60
- <?php weaverx_mainopts_content(); ?>
61
- </div>
62
-
63
- <div id="asp_postspecific" class="tab_mainopt" >
64
- <?php weaverx_mainopts_posts(); ?>
65
- </div>
66
-
67
- <div id="asp_footer" class="tab_mainopt" >
68
- <?php weaverx_mainopts_footer(); ?>
69
- </div>
70
-
71
-
72
- <div id="asp_links" class="tab_mainopt" >
73
- <?php weaverx_mainopts_custom(); ?>
74
- </div>
75
-
76
- </div> <!-- #tab-container-main -->
77
- <?php weaverx_sapi_submit(); ?>
78
- </div> <!-- #tabwrap_main -->
79
- <script type="text/javascript">
80
- var tabberMainOpts = new Yetii({
81
- id: 'tab-container-main',
82
- tabclass: 'tab_mainopt',
83
- persist: true
84
- });
85
- </script>
86
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  }
88
 
89
  // ======================== Main Options > Wrapping Areas ========================
90
  function weaverx_mainopts_general() {
91
 
92
- $font_size = weaverx_getopt_default('site_fontsize_int', 16);
93
 
94
  $opts = array(
95
- array( 'type' => 'submit'),
96
- array('name' => __('Wrapping Areas', 'weaver-xtreme' /*adm*/), 'id' => '-admin-generic', 'type' => 'header',
97
- 'info' => __('Settings for wrapping areas','weaver-xtreme' /*adm*/),
98
- 'help' => 'help.html#GenApp'),
99
- array('name' => __('GLOBAL SETTINGS', 'weaver-xtreme' /*adm*/), 'type' => 'note',
100
- 'info' => __('These settings control site outer background and the standard link colors.', 'weaver-xtreme' /*adm*/)),
101
- array('name' => __('Outside BG', 'weaver-xtreme' /*adm*/), 'id' => 'body_bgcolor', 'type' => 'ctext',
102
- 'info' => __('Background color that wraps entire page. (&lt;body&gt;) Using <em>Appearance->Background</em> will override this value, or allow a background image instead.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
 
103
 
104
- array('name' => __('Fade Outside BG', 'weaver-xtreme' /*adm*/), 'id' => 'fadebody_bg', 'type' => 'checkbox',
105
- 'info' => __('Will fade the Outside BG color, darker at top to lighter at bottom.', 'weaver-xtreme' /*adm*/)),
106
- array('name' => __('Full Browser Height', 'weaver-xtreme' /*adm*/), 'id' => 'full_browser_height', 'type' => 'checkbox',
107
- 'info' => __('For short pages, add extra padding to bottom of content to force full browser height.', 'weaver-xtreme' /*adm*/)),
108
- array('name' => __('Standard Links', 'weaver-xtreme' /*adm*/), 'id' => 'link', 'type' => 'link',
109
- 'info' => __('Global default for link colors (not including menus and titles). Set Bold, Italic, and Underline by setting those options for specific areas rather than globally to have more control.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
- // array('name' => '#070' . __('No Auto-Underline Links', 'weaver-xtreme' /*adm*/), 'id' => 'mobile_nounderline', 'type' => 'checkbox',
112
- // 'info' => __('Underlined links are easier to use on most mobile devices. This will disable auto-underlined links.', 'weaver-xtreme' /*adm*/)),
113
 
114
- array('name' => __('Current Base Font Size:', 'weaver-xtreme' /*adm*/), 'type' => 'note',
115
- 'info' => '<span style="font-size:' . $font_size . 'px;">' . $font_size . __('px.', 'weaver-xtreme' /*adm*/) . '</span> ' . __('Change on Custom Tab', 'weaver-xtreme' /*adm*/)),
116
- array( 'type' => 'submit'),
 
 
 
117
 
118
 
119
- array('name' => __('Wrapper Area', 'weaver-xtreme' /*adm*/), 'id' => 'wrapper', 'type' => 'widget_area_submit',
120
- 'info' => __('Wrapper wraps entire site (CSS id: #wrapper). Colors and font settings will be the default values for all other areas.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
121
 
122
- array('name' => __('Container Area', 'weaver-xtreme' /*adm*/), 'id' => 'container', 'type' => 'widget_area_submit',
123
- 'info' => __('Container (#container div) wraps content and sidebars.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
124
 
125
  );
126
 
127
- ?>
128
 
129
- <div class="options-intro"><?php _e('<strong>Wrapping Areas:</strong>
130
  The options on this tab affect the overall site appearance.
131
  The main <strong>Wrapper Area</strong> wraps the entire site, and is used to specify default text and background colors, site width, font families, and more.
132
- With <em>Weaver Xtreme Plus</em>, you can also specify background images for various areas of your site.', 'weaver-xtreme' /*adm*/); ?>
133
- <div class="options-intro-menu"> <a href="#wrapping-areas"><?php _e('Wrapping Areas', 'weaver-xtreme' /*adm*/); ?></a> |
134
- <a href="#wrapper-area"><?php _e('Wrapper Area', 'weaver-xtreme' /*adm*/); ?></a> |
135
- <a href="#container-area"><?php _e('Container Area', 'weaver-xtreme' /*adm*/); ?></a> |
136
- <a href="#background-images"><?php _e('Background Image (X-Plus)', 'weaver-xtreme' /*adm*/); ?></a>
137
- </div>
138
- </div>
139
- <?php
140
- weaverx_form_show_options($opts);
141
- do_action('weaverxplus_admin','general_appearance');
142
  }
143
 
144
- function wvrx_ts_new_xp_opt($vers, $opt) {
145
  // don't support new xp opts in old xp
146
- if ( function_exists('weaverxplus_plugin_installed') && version_compare( WEAVER_XPLUS_VERSION, $vers, '>=') )
147
  return $opt;
148
- return array('name' => $opt['name'], 'info' => __('This option requires X-Plus Version greater or equal to ','weaver-xtreme') . $vers , 'type' => 'note' );
 
 
149
  }
150
 
151
  // ======================== Main Options > Custom ========================
152
 
153
  function weaverx_mainopts_custom() {
154
  $opts = array(
155
- array( 'type' => 'submit'),
156
- array('name' => __('Custom Options', 'weaver-xtreme' /*adm*/), 'id' => '-admin-generic', 'type' => 'header',
157
- 'info' => __('Set various global custom values.', 'weaver-xtreme' /*adm*/),
158
- 'help' => 'help.html#Custom'),
159
-
160
- array('name' => __('Various Custom Values', 'weaver-xtreme' /*adm*/), 'id' => '-admin-settings', 'type' => 'subheader',
161
- 'info' => __('Adjust various global settings', 'weaver-xtreme' /*adm*/)),
162
-
163
- array('name' => '<span class="i-left dashicons dashicons-align-none"></span>' . __('Smart Margin Width', 'weaver-xtreme' /*adm*/),
164
- 'id' => 'smart_margin_int', 'type' => '+val_percent',
165
- 'info' => __('Width used for smart column margins for Sidebars and Content Area. (Default: 1%) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
166
-
167
- array('name' => __('Border Color', 'weaver-xtreme' /*adm*/), 'id' => 'border_color', 'type' => 'color',
168
- 'info' => __('Global color of borders. (Default: #222)', 'weaver-xtreme' /*adm*/)),
169
- array('name' => '<small>' . __('Border Width', 'weaver-xtreme' /*adm*/) . '</small>' , 'id' => 'border_width_int', 'type' => 'val_px',
170
- 'info' => __('Global Width of borders. (Default: 1px)', 'weaver-xtreme' /*adm*/)),
171
- array('name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __('Border Style', 'weaver-xtreme' /*adm*/) . '</small>',
172
- 'id' => 'border_style', 'type' => '+select_id',
173
- 'info' => __('Style of borders - width needs to be > 1 for some styles to work correctly (&starf;Plus)', 'weaver-xtreme' /*adm*/),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  'value' => array(
175
- array('val' => 'solid', 'desc' => __('Solid', 'weaver-xtreme' /*adm*/) ),
176
- array('val' => 'dotted', 'desc' => __('Dotted', 'weaver-xtreme' /*adm*/) ),
177
- array('val' => 'dashed', 'desc' => __('Dashed', 'weaver-xtreme' /*adm*/) ),
178
- array('val' => 'double', 'desc' => __('Double', 'weaver-xtreme' /*adm*/) ),
179
- array('val' => 'groove', 'desc' => __('Groove', 'weaver-xtreme' /*adm*/) ),
180
- array('val' => 'ridge', 'desc' => __('Ridge', 'weaver-xtreme' /*adm*/) ),
181
- array('val' => 'inset', 'desc' => __('Inset', 'weaver-xtreme' /*adm*/) ),
182
- array('val' => 'outset', 'desc' => __('Outset', 'weaver-xtreme' /*adm*/) )
183
- )),
 
184
 
185
- array('name' => __('Corner Radius', 'weaver-xtreme' /*adm*/), 'id' => 'rounded_corners_radius', 'type' => '+val_px',
186
- 'info' => __('Controls how "round" corners are. Specify a value (5 to 15 look best) for corner radius. (Default: 8) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
187
 
188
- array('name' => __('Hide Menu/Link Tool Tips', 'weaver-xtreme' /*adm*/), 'id' => 'hide_tooltip', 'type' => '+checkbox',
189
- 'info' => __('Hide the tool tip pop up over all menus and links. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
190
 
191
 
192
- array('name' => __('Custom Shadow', 'weaver-xtreme' /*adm*/), 'id' => 'custom_shadow', 'type' => '+widetext',
193
- 'info' => __('Specify full <em>box-shadow</em> CSS rule, e.g., <em>{box-shadow: 0 0 3px 1px rgba(0,0,0,0.25);}</em> (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
194
 
195
- array( 'type' => 'submit'),
196
 
197
- array('name' => __('Custom CSS', 'weaver-xtreme' /*adm*/), 'id' => 'custom_css', 'type' => 'custom_css',
198
- 'info' => __('Create Custom CSS Rules', 'weaver-xtreme' /*adm*/)),
 
 
 
 
199
 
200
- array( 'type' => 'submit'),
201
 
202
 
203
- array('name' => __('Fonts', 'weaver-xtreme' /*adm*/), 'id' => '-editor-textcolor', 'type' => 'header',
204
- 'info' => __('Font Base Sizes', 'weaver-xtreme' /*adm*/),
205
- 'help' => 'font-demo.html'
 
 
 
206
  ),
207
 
208
- array('name' => __('Site Base Font Size', 'weaver-xtreme' /*adm*/), 'id' => 'site_fontsize_int', 'type' => 'val_px',
209
- 'info' => __('Base font size of standard text. This value determines the default medium font size. Note that visitors can change their browser\'s font size, so final font size can vary, as expected. (Default: 16px)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
210
 
211
- array('name' => __('Site Base Line Height', 'weaver-xtreme' /*adm*/), 'id' => 'site_line_height_dec', 'type' => '+val_num',
212
- 'info' => __('Set the Base line-height. Most other line heights based on this multiplier. (Default: 1.5 - no units) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
213
 
214
- array('name' => '<small>' . __('Site Base Font Size - Small Tablets', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'site_fontsize_tablet_int', 'type' => '+val_px',
215
- 'info' => __('Small Tablet base font size of standard text. (Default medium font size: 16px) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
216
- array('name' => '<small>' . __('Site Base Font Size - Phones', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'site_fontsize_phone_int', 'type' => '+val_px',
217
- 'info' => __('Phone base font size of standard text. (Default medium font size: 16px) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
218
 
219
- array('name' => __('Custom Font Size A', 'weaver-xtreme' /*adm*/), 'id' => 'custom_fontsize_a', 'type' => '+val_em',
220
- 'info' => __('Specify font size in em for Custom Size A (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
221
- array('name' => __('Custom Font Size B', 'weaver-xtreme' /*adm*/), 'id' => 'custom_fontsize_b', 'type' => '+val_em',
222
- 'info' => __('Specify font size in em for Custom Size B (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
223
 
224
- array('name' => '<small>' . __('Disable Google Font Integration', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'disable_google_fonts', 'type' => '+checkbox',
225
- 'info' => __('<strong>ADVANCED OPTION!</strong> <em>Be sure you understand the consequences of this option.</em> By disabling Google Font Integration, the Google Fonts definitions will <strong>not</strong> be loaded for your site. <strong style="color:red;font-weight:bold;">Please note:</strong> Any previously selected Google Font Families will revert to generic serif, sans, mono, and script fonts.', 'weaver-xtreme')),
 
 
 
 
226
 
227
- array( 'type' => 'submit')
228
 
229
  );
230
  ?>
231
- <div class="options-intro"><strong><?php _e('Custom &amp; Fonts:', 'weaver-xtreme' /*adm*/); ?> </strong>
232
- <?php _e('Set values for Custom options and Fonts: Smart Margin, Borders, Corners, Shadows, Custom CSS, and Fonts', 'weaver-xtreme' /*adm*/); ?>
233
- <br />
234
- <div class="options-intro-menu">
235
- <a href="#various-custom-values"><?php _e('Various Custom Values', 'weaver-xtreme' /*adm*/); ?></a> |
236
- <a href="#custom-css-rules"><?php _e('Custom CSS Rules', 'weaver-xtreme' /*adm*/); ?></a> |
237
- <a href="#fonts">Fonts</a>
238
- </div>
239
  </div>
240
- <?php
241
- weaverx_form_show_options($opts);
242
 
243
- do_action('weaverxplus_admin','fonts');
244
  }
245
 
246
  // ======================== Main Options > Full Width ========================
@@ -248,125 +355,167 @@ function weaverx_mainopts_custom() {
248
  function weaverx_mainopts_fullwidth() {
249
 
250
  $opts = array(
251
- array( 'type' => 'submit'),
252
- array('name' => __('Full Width Site', 'weaver-xtreme' /*adm*/), 'id' => '-editor-justify', 'type' => 'header',
253
- 'info' => __('Options to easily create full width site designs', 'weaver-xtreme' /*adm*/),
254
- 'help' => 'help.html#FullWidth'),
255
-
256
-
257
-
258
- array('name' => __('One-Step Site Layout', 'weaver-xtreme' /*adm*/), 'id' => 'site_layout', 'type' => 'select_id',
259
- 'info' => __('Easiest way to set overall site width layout. Settings other than Custom or blank <strong>automatically</strong> set and clear other Extend BG and Stretch Width Options. Use Custom to enable manual Custom Full Width Options. You can also use <em>Full</em> and <em>Wide Align</em> options for individual areas to enhance these one-step settings.', 'weaver-xtreme' /*adm*/),
260
- 'value' => array(
261
- array('val' => '', 'desc' => ''),
262
- array('val' => 'fullwidth', 'desc' => __('Full Width - Extends BG to full width', 'weaver-xtreme')),
263
- array('val' => 'stretched', 'desc' => __('Stretched - Expand to full width', 'weaver-xtreme')),
264
- //array('val' => 'boxed', 'desc'=> __('Boxed - Traditional layout', 'weaver-xtreme')),
265
- //array('val' => 'custom', 'desc' => __('Custom - Use Custom Width Options', 'weaver-xtreme'))
266
- array('val' => 'custom', 'desc' => __('Traditional - Use Traditional Width Options', 'weaver-xtreme'))
267
- ))
268
- );
269
 
270
 
271
- $opts[] = array('name' => __('Wide and Full Alignment', 'weaver-xtreme' /*adm*/), 'id' => '-admin-appearance3', 'type' => 'header_area',
272
- 'info' => __('Many wrapping areas and other items include Full and Wide alignment for a different way to get full or wide width.', 'weaver-xtreme' /*adm*/));
273
- $opts[] = array('name' => '<small>' . __('Align Full and Wide', 'weaver-xtreme' /*adm*/) . '</small>', 'type' => 'note',
274
- 'info' => __('Two new alignment classes, .alignwide and .alignfull are supported by Weaver Xtreme. Most options with the Align option include options for full and wide alignment. Using a width alignment option will extend the full item, including content, to the specified width.', 'weaver-xtreme' /*adm*/));
 
 
 
 
 
 
 
 
 
 
275
 
276
 
 
 
 
 
 
 
 
 
 
 
 
277
 
278
 
279
- $opts[] = array('name' => __('Extend BG Attributes to Full Width', 'weaver-xtreme' /*adm*/), 'id' => '-editor-code', 'type' => 'header_area',
280
- 'info' => __('The Extend BG Attributes options in this section <em>retain the original content width</em>, while <em>extending the area\'s Background attributes to full width</em>. These includes BG color, BG image, and borders, for example. IMPORTANT: Extend options override wide and full alignment options.', 'weaver-xtreme' /*adm*/));
 
 
 
 
281
 
282
 
283
- $extend = array (
284
- 'container' => array( __('Container Area Extend BG', 'weaver-xtreme'), __('Extend Container Area BG Attributes to full width.','weaver-xtreme' )),
285
- 'header' => array( __('Header Area Extend BG', 'weaver-xtreme'), __(' Extend Header Area BG Attributes to full width.','weaver-xtreme' )),
286
- 'header_sb' => array( __('Header Widget Area Extend BG', 'weaver-xtreme'), __('Extend Header Widget Area BG Attributes to full width.','weaver-xtreme' )),
287
- 'header_html' => array( __('Header HTML Area Extend BG', 'weaver-xtreme'), __('Extend Header HTML Area BG Attributes to full width.','weaver-xtreme' )),
288
- 'm_primary' => array( __('Primary Menu Extend BG', 'weaver-xtreme'), __('Extend Primary Menu BG Attributes to full width, keep menu items constrained to theme width.','weaver-xtreme' )),
289
- 'm_secondary' => array( __('Secondary Menu Extend BG', 'weaver-xtreme'), __('Extend Secondary Menu BG Attributes to full width, keep menu items constrained to theme width.','weaver-xtreme' )),
290
- 'infobar' => array( __('Info Bar Extend BG', 'weaver-xtreme'), __('Extend Info Bar BG Attributes to full width.','weaver-xtreme' )),
291
  //'content' => array( __('Content Area Fullwidth BG', 'weaver-xtreme'), __('Extend Content Area BG Attributes to full width.','weaver-xtreme' )),
292
- 'post' => array( __('Post Area Extend BG', 'weaver-xtreme'), __('Extend each Post Area BG Attributes to full width.','weaver-xtreme' )),
293
- 'footer' => array( __('Footer Area Extend BG', 'weaver-xtreme'), __('Extend Footer Area BG Attributes to full width.','weaver-xtreme' )),
294
- 'footer_sb' => array( __('Footer Widget Area Extend BG', 'weaver-xtreme'), __('Extend Footer Widget Area BG Attributes to full width.','weaver-xtreme' )),
295
- 'footer_html' => array( __('Footer HTML Area Extend BG', 'weaver-xtreme'), __('Extend Footer HTML Area BG Attributes to full width.','weaver-xtreme' )),
296
 
297
  );
298
 
299
- foreach ($extend as $id => $vals) {
300
  $type = 'checkbox';
301
- if ($id == 'm_extra')
302
  $type = '+checkbox';
303
- $opts[] = array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . $vals[0], 'id' => $id . '_extend_width', 'type' => $type,
304
- 'info' => $vals[1]);
 
 
 
 
 
305
  }
306
 
307
 
308
- $opts[] = array('name' => __('Stretch Areas (Expand)', 'weaver-xtreme' /*adm*/), 'id' => '-editor-expand', 'type' => 'header_area',
309
- 'info' => __('This section has options that let you stretch or expand selected content areas of your site to the full browser width. The content will be responsively displayed - and fully occupy the browser window.', 'weaver-xtreme' /*adm*/));
310
- $opts[] = array('name' => '<small>' . __('These Options OBSOLETE', 'weaver-xtreme' /*adm*/) . '</small>', 'type' => 'note',
311
- 'info' => __('Due to the added support for Wide and Full Alignment, the Stretch options are essentially obsolete, and may be removed in a future version of the theme. Please use the Full and Wide align options available for most of these Stretch items.', 'weaver-xtreme' /*adm*/));
 
 
 
 
 
 
 
312
 
313
- $opts[] = array('name' => '<span class="i-left dashicons dashicons-editor-expand"></span>' . __('Entire Site Full Width', 'weaver-xtreme' /*adm*/), 'id' => 'wrapper_fullwidth', 'type' => 'checkbox',
314
- 'info' => __('Checking this option will display the <strong>ENTIRE SITE</strong> in the full width of the browser. This option overrides the <em>Theme Width</em> option on the <em>Wrapping Areas : Wrapper Area</em> menu.', 'weaver-xtreme' /*adm*/));
 
 
 
 
315
 
316
 
317
- $stretch = array (
318
- 'header' => array( __('Header Area Stretch', 'weaver-xtreme'), __('Stretch Header Area to full width. This will include all other Header Area sub-areas as well.','weaver-xtreme' )),
319
- 'header-image' => array( __('Header Image Stretch', 'weaver-xtreme'), __('Stretch Header Image to full width.','weaver-xtreme' )),
320
- 'site_title' => array( __('Site Title/Tagline Stretch', 'weaver-xtreme'), __('This option includes the Site Title, Tagline, Search Button, and MiniMenu.','weaver-xtreme' )),
321
- 'header-widget-area' => array( __('Header Widget Area Stretch', 'weaver-xtreme'), __('Stretch Header Widget Area to full width.','weaver-xtreme' )),
322
- 'header-html' => array( __('Header HTML Area Stretch', 'weaver-xtreme'), __('Stretch Header HTML Area to full width.','weaver-xtreme' )),
323
- 'm_primary' => array( __('Primary Menu Stretch', 'weaver-xtreme'), __('Stretch Primary Menu to full width.','weaver-xtreme' )),
324
- 'm_secondary' => array( __('Secondary Menu Stretch', 'weaver-xtreme'), __('Stretch Secondary Menu to full width.','weaver-xtreme' )),
325
- 'container' => array( __('Container Area Stretch', 'weaver-xtreme'), __('Stretch Container Area to full width.','weaver-xtreme' )),
326
- 'infobar' => array( __('Info Bar Stretch', 'weaver-xtreme'), __('Stretch Info Bar to full width.','weaver-xtreme' )),
327
- 'post' => array( __('Post Area Stretch', 'weaver-xtreme'), __('Stretch Info Bar to full width.','weaver-xtreme' )),
328
- 'footer' => array( __('Footer Area Stretch', 'weaver-xtreme'), __('Checking this option will automatically include the other Footer Area Stretch options as well.','weaver-xtreme' )),
329
- 'footer_sb' => array( __('Footer Widget Area Stretch', 'weaver-xtreme'), __('Stretch Footer Widget Area to full width.','weaver-xtreme' )),
330
- 'footer_html' => array( __('Footer HTML Area Stretch', 'weaver-xtreme'), __('Stretch Footer HTML Area to full width.','weaver-xtreme' )),
331
- 'site-ig-wrap' => array( __('Footer Copyright Area Stretch', 'weaver-xtreme'), __('Stretch Footer Copyright Area to full width.','weaver-xtreme' )),
332
 
333
  );
334
 
335
- foreach ($stretch as $id => $vals) {
336
- $opts[] = array('name' => '<span class="i-left dashicons dashicons-editor-expand"></span>' . $vals[0], 'id' => 'expand_' . $id, 'type' => 'checkbox',
337
- 'info' => $vals[1]);
 
 
 
 
338
  }
339
 
340
 
341
- $opts[] = array('name' => __('Extend BG Color', 'weaver-xtreme' /*adm*/), 'id' => '-admin-appearance', 'type' => 'header_area',
342
- 'info' => __('These options, available with Weaver Xtreme Plus, allow you to stretch the BG color of various area to full width. This is different than the Extend BG Attributes in that only the color is extended, and that color can be different than the content. (&starf;Plus)', 'weaver-xtreme' /*adm*/));
343
-
 
 
 
344
 
345
 
346
- $extend = array (
347
 
348
- 'header' => array( __('Header Area Extend BG Color', 'weaver-xtreme'), __('Extend Header Area BG Color to full width.','weaver-xtreme' )),
349
- 'm_primary' => array( __('Primary Menu Extend BG', 'weaver-xtreme'), __('Extend Primary Menu BG Color to full width.','weaver-xtreme' )),
350
- 'm_secondary' => array( __('Secondary Menu Extend BG', 'weaver-xtreme'), __('Extend Secondary Menu BG Color to full width.','weaver-xtreme' )),
351
- 'm_extra' => array( __('Extra Menu Extend BG', 'weaver-xtreme'), __('Extend Extra Menu BG Color to full width.','weaver-xtreme' )),
352
- 'container' => array( __('Container Extend BG', 'weaver-xtreme'), __('Extend Container Area BG Color to full width.','weaver-xtreme' )),
353
- 'content' => array( __('Content Extend BG', 'weaver-xtreme'), __('Extend Content Area BG Color to full width.','weaver-xtreme' )),
354
- 'footer' => array( __('Footer Extend BG', 'weaver-xtreme'), __('Extend Footer Area BG Color to full width.','weaver-xtreme' )),
355
  );
356
 
357
- foreach ($extend as $id => $vals) {
358
- $opts[] = array('name' => $vals[0], 'id' => $id . '_extend_bgcolor', 'type' => '+color',
359
- 'info' => $vals[1] . ' (&starf;Plus)');
 
 
 
 
360
  }
361
 
362
 
363
- ?>
364
- <div class="options-intro">
365
- <?php _e('<strong>Full Width:</strong> Options to create full width sites.', 'weaver-xtreme' /*adm*/); ?><p>
366
- <?php _e('','weaver-xtreme'); ?>
367
- </p></div>
368
- <?php
369
- weaverx_form_show_options($opts);
370
 
371
 
372
  }
@@ -376,1270 +525,2085 @@ function weaverx_mainopts_header() {
376
 
377
  $wp_logo = weaverx_get_wp_custom_logo_url();
378
 
379
- if ($wp_logo)
380
  $wp_logo_html = "<img src='{$wp_logo}' style='max-height:16px;margin-left:10px;' />";
381
- else
382
- $wp_logo_html = __('Not set', 'weaver-xtreme');
 
383
 
384
 
385
  $opts = array(
386
- array( 'type' => 'submit'),
387
- array('name' => __('Header Options', 'weaver-xtreme' /*adm*/), 'id' => '-admin-generic', 'type' => 'header',
388
- 'info' => __('Options affecting site Header', 'weaver-xtreme' /*adm*/),
389
- 'help' => 'help.html#HeaderOpt'),
 
 
 
 
390
 
391
 
392
- array('name' => __('Header Area', 'weaver-xtreme' /*adm*/), 'id' => 'header', 'type' => 'widget_area',
393
- 'info' => __('The Header Area includes: menu bars, standard header image, title, tagline, header widget area, header HTML area', 'weaver-xtreme' /*adm*/)),
 
 
 
 
394
 
395
- array( 'name' => __('Header Other options', 'weaver-xtreme'), 'type' => 'break'),
396
 
397
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __('Hide Search on Header', 'weaver-xtreme' /*adm*/),
398
- 'id' => 'header_search_hide', 'type' => 'select_hide',
399
- 'info' => __('Selectively hide the Search Box Button on top right of header', 'weaver-xtreme' /*adm*/)),
400
- array('name' => '<small>' . __('Search Area Options:', 'weaver-xtreme' /*adm*/) . '</small>', 'type' => 'note',
401
- 'info' => __('Specify search icon, text and background colors Search section of Content Areas tab.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
402
 
403
- array( 'type' => 'submit'),
404
 
405
- array('name' => __('Header Image', 'weaver-xtreme' /*adm*/), 'id' => '-format-image', 'type' =>'subheader',
406
- 'info' => __('Settings related to standard header image (Set on Appearance&rarr;Header)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
407
 
408
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __('Hide Header Image', 'weaver-xtreme' /*adm*/),
409
- 'id' => 'hide_header_image', 'type' => 'select_hide',
410
- 'info' => __('Check to selectively hide standard header image', 'weaver-xtreme' /*adm*/)),
 
 
 
411
 
412
- array('name' => '<small>' . __('Suggested Header Image Height', 'weaver-xtreme' /*adm*/) . '</small>',
413
- 'id' => 'header_image_height_int', 'type' => 'val_px',
414
- 'info' => __('Change the suggested height of the Header Image. This only affects the clipping window on the Appearance:Header page. Header images will be responsively sized. If used with <em>Header Image Rendering</em>, this value will be used to set the minimum height of the BG image. (Default: 188px)', 'weaver-xtreme' /*adm*/)),
 
 
 
415
 
416
- wvrx_ts_new_xp_opt( '3.0', // >= 3.0
417
- array('name' => __('Header Image Rendering', 'weaver-xtreme' /*adm*/) . '</small>',
418
- 'id' => 'header_image_render', 'type' => '+select_id', //code
419
- 'info' => __('How to render header image: as img in header or as header area bg image. When rendered as a BG image, other options such as moving Title/Tagline or having image link to home page are not meaningful. (Default: &lt;img&gt; in header div) (&starf;Plus)', 'weaver-xtreme' /*adm*/),
420
- 'value' => array(
421
- array('val' => 'header-as-img', 'desc' => __('As img in header', 'weaver-xtreme' /*adm*/)),
422
- array('val' => 'header-as-bg', 'desc' => __('As static BG image', 'weaver-xtreme' /*adm*/)),
423
- array('val' => 'header-as-bg-responsive', 'desc' => __('As responsive BG image', 'weaver-xtreme' /*adm*/)),
424
- array('val' => 'header-as-bg-parallax', 'desc' => __('As parallax BG image', 'weaver-xtreme' /*adm*/))
 
 
 
 
 
 
 
 
 
 
 
 
425
 
426
- )) ),
427
 
428
- array('name' => '<small>' . __('Minimum Header Height', 'weaver-xtreme' /*adm*/) . '</small>',
429
- 'id' => 'header_min_height', 'type' => '+val_px',
430
- 'info' => __('Set Minimum Height for Header Area. Most useful used with Parallax Header BG Image. Adding Top Margin to Primary Menu bar can also add height. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
431
 
 
 
 
 
 
 
432
 
433
- array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Maximum Image Width', 'weaver-xtreme' /*adm*/) . '</small>',
434
- 'id' => 'header_image_max_width_dec', 'type' => '+val_percent',
435
- 'info' => __('Maximum width of Image (Default: 100%) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
436
 
437
- array('name' => '<small>' . __('Use Actual Image Size', 'weaver-xtreme' /*adm*/) . '</small>',
438
- 'id' => 'header_actual_size', 'type' => '+checkbox',
439
- 'info' => __('Check to use actual header image size. (Default: theme width) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
440
 
441
- array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Align Header Image', 'weaver-xtreme' /*adm*/) . '</small>',
442
- 'id' => 'header_image_align', 'type' => 'align',
443
- 'info' => __('How to align header image. Wide and Full do not apply to BG header image.', 'weaver-xtreme' /*adm*/)),
 
 
 
444
 
445
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Header Image Front Page', 'weaver-xtreme' /*adm*/) . '</small>',
446
- 'id' => 'hide_header_image_front', 'type' => 'checkbox',
447
- 'info' => __('Check to hide display of standard header image on front page only.', 'weaver-xtreme' /*adm*/)),
 
 
 
448
 
449
- array( 'name' => '<span class="i-left">{ }</span> <small>' . __('Add Classes', 'weaver-xtreme' /*adm*/) . '</small>',
450
- 'id' => 'header_image_add_class', 'type' => '+widetext',
451
- 'info' => '<em>' . __('Header Image', 'weaver-xtreme' /*adm*/) . '</em>' . __(': Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
 
 
452
 
453
- array('name' => '<small>' . __('Header Image Links to Site', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'link_site_image', 'type' => 'checkbox',
454
- 'info' => __('Check to add a link to site home page for Header Image. Note: If used with <em>Move Title/Tagline over Image</em>, parts of the header image will not be clickable.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
455
 
456
- array('name' => '<small>' . __('Alternate Header Images:', 'weaver-xtreme' /*adm*/) . '</small>', 'type' => 'note',
457
- 'info' => __('Specify alternate header images using the <em>Featured Image Location</em> options on the <em>Content Areas</em> tab for pages, or the <em>Post Specifics</em> tab for single post views.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
458
 
459
- array('name' => '<span class="i-left dashicons dashicons-editor-code"></span>' . __('Image HTML Replacement', 'weaver-xtreme' /*adm*/),
460
- 'id' => 'header_image_html_text', 'type' => 'textarea',
461
- 'placeholder' => __('Any HTML, including shortcodes', 'weaver-xtreme' /*adm*/),
462
- 'info' => __('Replace Header image with arbitrary HTML. Useful for slider shortcodes in place of image. FI as Header Image has priority over HTML replacement. Extreme Plus also supports this option on a Per Page/Post basis.', 'weaver-xtreme' /*adm*/), 'val' => 1 ),
 
 
 
 
 
 
 
 
 
 
 
463
 
464
- array('name' => '<small>' . __('Show On Home Page Only', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'header_image_html_home_only', 'type' => 'checkbox',
465
- 'info' => __('Check to use the Image HTML Replacement only on your Front/Home page.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
466
 
467
- wvrx_ts_new_xp_opt( '3.0', // >= 3.0
468
- array('name' => '<small>' . __('Also show BG Header Image', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'header_image_html_plus_bg', 'type' => '+checkbox',
469
- 'info' => __('If you have Image HTML Replacement defined - including Per Page/Post - and also have have set the standard Header Image to display as a BG image, then show <em>both</em> the BG image and the replacement HTML. (&starf;Plus)', 'weaver-xtreme' /*adm*/)) ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
470
 
471
 
 
 
 
 
 
 
472
 
473
- array('name' => __('Header Video', 'weaver-xtreme' /*adm*/), 'id' => '-format-video', 'type' =>'subheader',
474
- 'info' => __('Settings related to Header Video (Set on Appearance&rarr;Header or on the Customize&rarr;Images&rarr;Header Media menu.)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
475
 
476
- array('name' => __('Header Video Rendering', 'weaver-xtreme' /*adm*/) . '</small>',
477
- 'id' => 'header_video_render', 'type' => 'select_id', //code
478
- 'info' => __('How to render Header Video: as image substitute in header or as full browser background cover image will parallax effect. <em style="color:red;">Note that the Header Image options above do not apply to the Header Video media.</em>', 'weaver-xtreme' /*adm*/),
479
- 'value' => array(
480
- array('val' => 'has-header-video', 'desc' => __('As video in header only', 'weaver-xtreme' /*adm*/)),
481
- array('val' => 'has-header-video-cover', 'desc' => __('As full cover Parallax BG Video', 'weaver-xtreme' /*adm*/)),
482
- array('val' => 'has-header-video-none', 'desc' => __('Disable Header Video', 'weaver-xtreme' /*adm*/))
483
- )),
484
 
485
- array('name' => __('Header Video Aspect Ratio', 'weaver-xtreme' /*adm*/) . '</small>',
486
- 'id' => 'header_video_aspect', 'type' => 'select_id', //code
487
- 'info' => __('It is critical to select aspect ratio of your video. If you see letterboxing black bars, you have the wrong aspect ratio selected.' , 'weaver-xtreme' /*adm*/),
488
- 'value' => array(
489
- array('val' => '16:9', 'desc' => __('16:9 HDTV', 'weaver-xtreme' /*adm*/)),
490
- array('val' => '4:3', 'desc' => __('4:3 Std TV', 'weaver-xtreme' /*adm*/)),
491
- array('val' => '3:2', 'desc' => __('3:2 35mm Photo', 'weaver-xtreme' /*adm*/)),
492
- array('val' => '5:3', 'desc' => __('5:3 Alternate Photo', 'weaver-xtreme' /*adm*/)),
493
- array('val' => '64:27', 'desc' => __('2.37:1 Cinemascope', 'weaver-xtreme' /*adm*/)),
494
- array('val' => '37:20', 'desc' => __('1.85:1 VistaVision', 'weaver-xtreme' /*adm*/)),
495
- array('val' => '3:1', 'desc' => __('3:1 Banner', 'weaver-xtreme' /*adm*/)),
496
- array('val' => '4:1', 'desc' => __('4:1 Banner', 'weaver-xtreme' /*adm*/)),
497
- array('val' => '9:16', 'desc' => __('9:16 Vertical HD (Please avoid!)', 'weaver-xtreme' /*adm*/))
498
- )),
499
 
500
 
501
- array('name' => __('Custom Logo', 'weaver-xtreme' /*adm*/), 'id' => '-menu', 'type' =>'subheader',
502
- 'info' => __('The native WP Custom Logo, set on the Site Identity Customizer menu.', 'weaver-xtreme' /*adm*/)),
503
 
504
- array('name' => '<small>' . __('Replace Title with Site Logo', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'wplogo_for_title', 'type' => 'checkbox',
505
- 'info' => __('Replace the Site Title text with the WP Custom Logo Image. Logo: ', 'weaver-xtreme' /*adm*/) . $wp_logo_html),
506
 
507
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide WP Custom Logo', 'weaver-xtreme' /*adm*/) . '</small>',
508
- 'id' => 'hide_wp_site_logo', 'type' => 'select_hide',
509
- 'info' => __('Hide native WP Custom Site Logo in Header, by device. (This is not the Weaver Logo/HTML!)', 'weaver-xtreme' /*adm*/)),
 
 
 
510
 
511
- array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Logo for Title Height', 'weaver-xtreme' /*adm*/) . '</small>',
512
- 'id' => 'header_logo_height_dec', 'type' => 'val_px',
513
- 'info' => __('Set maximum height of Logo when used to replace Site Title. Default 0 uses the actual image size. This is the maximum height. If the actual image height is smaller, the smaller value is used.', 'weaver-xtreme' /*adm*/) ),
514
 
 
 
 
 
 
 
515
 
516
- array( 'type' => 'submit'),
 
 
 
 
 
517
 
 
 
 
 
 
 
518
 
519
- array('name' => __('Site Title/Tagline', 'weaver-xtreme' /*adm*/), 'id' => '-text', 'type' =>'subheader',
520
- 'info' => __('Settings related to the Site Title and Tagline (Tagline sometimes called Site Description)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
521
 
 
 
 
 
 
 
522
 
523
- array('name' => __('Site Title', 'weaver-xtreme' /*adm*/), 'id' => 'site_title', 'type' => 'titles',
524
- 'info' => __("The site's main title in the header (blog title)", 'weaver-xtreme' /*adm*/)),
 
 
 
 
525
 
526
- array('name' => '<span class="i-left font-bold" style="font-size:120%;">&#x21cc;</span><small>' . __('Title Position', 'weaver-xtreme' /*adm*/) . '</small>',
527
- 'id' => 'site_title_position_xy', 'type' => 'text_xy_percent',
528
- 'info' => __('Adjust left and top margins for Title. Decimal and negative values allowed. (Default: X: 7%, Y:0.25%)', 'weaver-xtreme' /*adm*/)),
529
 
530
- array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('Title Max Width', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'site_title_max_w', 'type' => 'val_percent',
531
- 'info' => __("Maximum width of title in header area (Default: 90%)", 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
532
 
533
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Site Title', 'weaver-xtreme' /*adm*/) . '</small>',
534
- 'id' => 'hide_site_title', 'type' => 'select_hide',
535
- 'info' => __('Hide Site Title (Uses "display:none;" : SEO friendly.)', 'weaver-xtreme' /*adm*/)),
 
 
 
536
 
537
- array('name' => __('Move Title/Tagline over Image', 'weaver-xtreme' /*adm*/), 'id' => 'title_over_image', 'type' => 'checkbox',
538
- 'info' => __('Move the Title, Tagline, Search, Logo/HTML and Mini-Menu over the Header Image. This can make a very attractive header,', 'weaver-xtreme' /*adm*/)),
 
 
 
 
539
 
540
- array('name' => __('Site Tagline', 'weaver-xtreme' /*adm*/), 'id' => 'tagline', 'type' => 'titles',
541
- 'info' => __("The site's tagline (blog description)", 'weaver-xtreme' /*adm*/)),
542
 
 
 
 
 
 
 
543
 
544
- array('name' => '<span class="i-left font-bold" style="font-size:120%;">&#x21cc;</span><small>' . __('Tagline Position', 'weaver-xtreme' /*adm*/) . '</small>',
545
- 'id' => 'tagline_xy', 'type' => 'text_xy_percent',
546
- 'info' => __('Adjust default left and top margins for Tagline. (Default: X: 10% Y:0%)', 'weaver-xtreme' /*adm*/)),
547
- array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('Tagline Max Width', 'weaver-xtreme' /*adm*/) . '</small>',
548
- 'id' => 'tagline_max_w', 'type' => 'val_percent',
549
- 'info' => __("Maximum width of Tagline in header area (Default: 90%)", 'weaver-xtreme' /*adm*/)),
550
 
551
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Site Tagline', 'weaver-xtreme' /*adm*/) . '</small>',
552
- 'id' => 'hide_site_tagline', 'type' => 'select_hide',
553
- 'info' => __('Hide Site Tagline (Uses "display:none;" : SEO friendly.)', 'weaver-xtreme' /*adm*/)),
 
 
 
554
 
555
- array('name' => __('Title/Tagline Area BG', 'weaver-xtreme' /*adm*/), 'id' => 'title_tagline_bgcolor', 'type' => 'ctext',
556
- 'info' => __('BG Color for the Title, Tagline, Search, Logo/HTML and Mini-Menu area.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
557
 
 
 
 
 
 
 
558
 
559
- array('name' => '<span class="i-left font-bold" style="font-size:120%;">&#x21cc;</span><small>' . __('Title/Tagline Padding', 'weaver-xtreme' /*adm*/) . '</small>',
560
- 'id' => 'title_tagline_xy', 'type' => 'text_tb',
561
- 'info' => __('Add Top/Bottom Padding to the Site Title/Tagline block. This option is especially useful if the Header Image is a BG image. (Default: 0,0)', 'weaver-xtreme' /*adm*/)),
562
 
 
563
 
564
 
565
- array('name' => '<span class="i-left dashicons dashicons-editor-code"></span><small>' . __('Weaver Site Logo/HTML', 'weaver-xtreme' /*adm*/) . '</small>',
566
- 'id' => '_site_logo', 'type' => '+textarea',
567
- 'info' => __('HTML for Site Title area. (example: &lt;img src="url" style="position:absolute;top:20px;left:20px;"&nbsp;/&gt; + Custom CSS: #site-logo{min-height:123px;} (This is not the WP Custom Logo!) (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
568
 
569
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Site Logo/HTML', 'weaver-xtreme' /*adm*/) . '</small>',
570
- 'id' => '_hide_site_logo', 'type' => '+select_hide',
571
- 'info' => __('Hide Weaver Site Logo/HTML by device. (This is not the WP Custom Logo!) (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/)),
 
 
 
572
 
573
- array( 'name' => '<span class="i-left">{ }</span> <small>' . __('Add Classes', 'weaver-xtreme' /*adm*/) . '</small>',
574
- 'id' => 'site_title_add_class', 'type' => '+widetext',
575
- 'info' => '<em>' . __('Title/Tagline', 'weaver-xtreme' /*adm*/) . '</em>' . __(': Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
576
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
577
 
 
 
 
 
 
 
578
 
579
- array( 'type' => 'submit'),
580
 
 
 
 
 
 
 
 
581
 
582
- array('name' => __('The Header Mini-Menu', 'weaver-xtreme' /*adm*/), 'id' => '-menu', 'type' =>'subheader',
583
- 'info' => __('Horizontal "Mini-Menu" displayed right-aligned of Site Tagline', 'weaver-xtreme' /*adm*/)),
584
- array('name' => __('Note:', 'weaver-xtreme' /*adm*/), 'type' => 'note',
585
- 'info' => __('The Header Mini-Menu options are on the Menu Tab.', 'weaver-xtreme' /*adm*/)),
586
 
587
- array('name' => __('Header Widget Area', 'weaver-xtreme' /*adm*/), 'id' => 'header_sb', 'type' => 'widget_area',
588
- 'info' => __('Horizontal Header Widget Area', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
589
 
590
- array( 'name' => __('Other Widget Area Options', 'weaver-xtreme'), 'type' => 'break'),
591
 
592
- array('name' => '<small>' . __('Header Widget Area Position', 'weaver-xtreme' /*adm*/) . '</small>',
593
- 'id' => 'header_sb_position', 'type' => '+select_id', //code
594
- 'info' => __('Change where Header Widget Area is displayed. (Default: Top) (&starf;Plus)', 'weaver-xtreme' /*adm*/),
595
- 'value' => array(
596
- array('val' => 'top', 'desc' => __('Top of Header', 'weaver-xtreme' /*adm*/)),
597
- array('val' => 'before_header', 'desc' => __('Before Header Image', 'weaver-xtreme' /*adm*/)),
598
- array('val' => 'after_header', 'desc' => __('After Header Image', 'weaver-xtreme' /*adm*/)),
599
- array('val' => 'after_html', 'desc' => __('After HTML Block', 'weaver-xtreme' /*adm*/)),
600
- array('val' => 'after_menu', 'desc' => __('After Lower Menu', 'weaver-xtreme' /*adm*/)),
601
- array('val' => 'pre_header', 'desc' => __('Pre-#header &lt;div&gt;', 'weaver-xtreme' /*adm*/)),
602
- array('val' => 'post_header', 'desc' => __('Post-#header &lt;div&gt;', 'weaver-xtreme' /*adm*/)),
603
- )),
604
 
605
- array('name' => '<span class="i-left dashicons dashicons-editor-kitchensink"></span>' . __('Fixed-Top Header Widget Area', 'weaver-xtreme' /*adm*/) ,
606
- 'id' => 'header_sb_fixedtop', 'type' => 'checkbox',
607
- 'info' => __('Fix the Header Widget Area to top of page. If primary/secondary menus also fixed-top, header widget area will always be after secondary and before primary. Use the <em>Expand/Extend BG Attributes</em> on the "Full Width" tab to make a full width Header Widget Area.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
 
608
 
609
- array( 'type' => 'submit'),
 
610
 
611
- array('name' => __('Header HTML', 'weaver-xtreme' /*adm*/), 'id' => 'header_html', 'type' => 'widget_area', __('Header Widget Area', 'weaver-xtreme' /*adm*/),
612
- 'info' => __('Add arbitrary HTML to Header Area (in &lt;div id="header-html"&gt;)', 'weaver-xtreme' /*adm*/)),
613
 
614
 
615
- array('name' => '<span class="i-left dashicons dashicons-editor-code"></span>' . __('Header HTML content', 'weaver-xtreme' /*adm*/),
616
- 'id' => 'header_html_text', 'type' => 'textarea',
617
- 'placeholder' => __('Any HTML, including shortcodes', 'weaver-xtreme' /*adm*/),
618
- 'info' => __('Add arbitrary HTML to Header Area (in &lt;div id="header-html"&gt;)', 'weaver-xtreme' /*adm*/), 'val' => 4 ),
 
 
 
 
 
619
 
620
- array( 'type' => 'submit'),
621
 
622
- array('name' => __('Note:', 'weaver-xtreme' /*adm*/), 'type' => 'note',
623
- 'info' => __('There are more standard WordPress Header options available on the Dashboard Appearance->Header panel.', 'weaver-xtreme' /*adm*/)),
624
- );
 
 
 
 
625
 
626
- ?>
627
- <div class="options-intro">
628
- <?php _e('<strong>Header:</strong> Options affecting the Header Area at the top of your site.', 'weaver-xtreme' /*adm*/); ?>
629
- <br />
630
- <div class="options-intro-menu"> <a href="#header-area"><?php _e('Header Area', 'weaver-xtreme' /*adm*/); ?></a> |
631
- <a href="#header-image"><?php _e('Header Image', 'weaver-xtreme' /*adm*/); ?></a> |
632
- <a href="#header-video"><?php _e('Header Video', 'weaver-xtreme' /*adm*/); ?></a> |
633
- <a href="#site-title-tagline"><?php _e('Site Title/Tagline', 'weaver-xtreme' /*adm*/); ?></a> |
634
- <a href="#header-widget-area"><?php _e('Header Widget Area', 'weaver-xtreme' /*adm*/); ?></a>|
635
- <a href="#header-html"><?php _e('Header HTML', 'weaver-xtreme' /*adm*/); ?></a>
636
- </div>
637
- </div>
638
- <?php
639
- weaverx_form_show_options($opts);
640
 
641
- do_action('weaverxplus_admin','header_opts');
642
- }
 
 
 
643
 
644
- // ======================== Main Options > Menus ========================
645
- function weaverx_mainopts_menus() {
646
 
 
 
 
 
 
 
647
 
648
- $opts = array(
649
- array( 'type' => 'submit'),
650
- array('name' => __('Menu &amp; Info Bars', 'weaver-xtreme' /*adm*/), 'id' => '-menu', 'type' => 'header',
651
- 'info' => __('Options affecting site Menus and the Info Bar', 'weaver-xtreme' /*adm*/),
652
- 'help' => 'help.html#MenuBar'),
653
 
 
 
 
 
 
 
654
 
655
- ##### SmartMenu
656
- array('name' => '<span class="i-left dashicons dashicons-menu"></span>' . __('Use SmartMenus', 'weaver-xtreme' /*adm*/),
657
- 'id' => 'use_smartmenus', 'type' => 'checkbox',
658
- 'info' => __('Use <em>SmartMenus</em> rather than default Weaver Xtreme Menus. <em>SmartMenus</em> provide enhanced menu support, including auto-visibility, and transition effects. This option is recommended. There are additional <em>Smart Menu</em> options available on the <em>Appearance &rarr; +Xtreme Plus</em> menu.', 'weaver-xtreme' /*adm*/)),
659
 
660
- array( 'name' => '<small>' . __('Menu Mobile/Desktop Switch Point', 'weaver-xtreme' /*adm*/) . '</small>',
661
- 'id' => 'mobile_alt_switch', 'type' => '+val_px',
662
- 'info' => __('<em>SmartMenus Only:</em> Set when menu bars switch from desktop to mobile. (Default: 767px. Hint: use 768 to force mobile menu on iPad portrait.) (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
663
 
664
- array('name' => __('Mega Menus:', 'weaver-xtreme' /*adm*/), 'type' => 'note',
665
- 'info' => __('Weaver Xtreme Plus allows you to define Mega Menu style dropdown menu items with arbitrary HTML content. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
666
 
667
 
668
- array('name' => __('Primary Menu Bar', 'weaver-xtreme' /*adm*/), 'id' => 'm_primary', 'type' => 'menu_opts',
669
- 'info' => __('Attributes for the Primary Menu Bar (Default Location: Bottom of Header)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
670
 
671
 
672
- // array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small> ' . __('Mobile Menu Trigger', 'weaver-xtreme' /*adm*/). '</small>',
673
- // 'id' => 'menu_primary_trigger_int', 'type' => 'val_px',
674
- // 'info' => __('Set trigger width where Primary Menu changes to/from Mobile Menu (Default: 768px, value must be &lt; 768)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
675
 
676
 
677
- array( 'type' => 'submit'),
 
 
 
 
 
 
 
 
 
 
 
 
 
678
 
679
- array('name' => __('Secondary Menu Bar', 'weaver-xtreme' /*adm*/), 'id' => 'm_secondary', 'type' => 'menu_opts',
680
- 'info' => __('Attributes for the Secondary Menu Bar (Default Location: Top of Header)', 'weaver-xtreme' /*adm*/)),
681
 
682
- // array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small> ' . __('Mobile Menu Trigger', 'weaver-xtreme' /*adm*/). '</small>',
683
- // 'id' => 'menu_secondary_trigger_int', 'type' => 'val_px',
684
- // 'info' => __('Set trigger width where Secondary Menu changes to/from Mobile Menu (Default: 768px, value must be &lt; 768)', 'weaver-xtreme' /*adm*/)),
 
 
 
685
 
686
 
687
- array( 'type' => 'submit'),
688
 
 
 
 
 
 
 
689
 
690
- array('name' => __('Options: All Menus', 'weaver-xtreme' /*adm*/), 'id' => '-forms', 'type' => 'subheader_alt',
691
- 'info' => __('Menu Bar enhancements and features', 'weaver-xtreme' /*adm*/)),
692
 
 
 
 
 
 
 
693
 
694
- array('name' => __('Current Page BG', 'weaver-xtreme' /*adm*/), 'id' => 'menubar_curpage_bgcolor', 'type' => 'ctext',
695
- 'info' => __('BG Color for the currently displayed page and its ancestors.', 'weaver-xtreme' /*adm*/)),
696
- array('name' => __('Current Page Text', 'weaver-xtreme' /*adm*/), 'id' => 'menubar_curpage_color', 'type' => 'color',
697
- 'info' => __('Color for the currently displayed page and its ancestors.', 'weaver-xtreme' /*adm*/)),
 
 
698
 
 
 
 
 
 
 
699
 
700
- array('name' => '<span class="i-left dashicons dashicons-editor-bold"></span><small>' . __('Bold Current Page', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'menubar_curpage_bold', 'type' => 'checkbox',
701
- 'info' => __('Bold Face Current Page and ancestors', 'weaver-xtreme' /*adm*/)),
702
- array('name' => '<span class="i-left dashicons dashicons-editor-italic"></span><small>' . __('Italic Current Page', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'menubar_curpage_em', 'type' => 'checkbox',
703
- 'info' => __('Italic Current Page and ancestors', 'weaver-xtreme' /*adm*/)),
704
- array('name' => '<small>' . __('Do Not Highlight Ancestors', 'weaver-xtreme' /*adm*/) . '</small>',
705
- 'id' => 'menubar_curpage_noancestors', 'type' => 'checkbox',
706
- 'info' => __('Highlight Current Page only - do not also highlight ancestor items', 'weaver-xtreme' /*adm*/)),
707
- array('name' => '<small>' . __('Retain Menu Bar Hover BG', 'weaver-xtreme' /*adm*/) . '</small>',
708
- 'id' => 'm_retain_hover', 'type' => 'checkbox',
709
- 'info' => __('Retain the menu bar hover BG color when sub-menus are opened.', 'weaver-xtreme' /*adm*/)),
710
 
711
 
712
- array('name' => '<small>' . __('Placeholder Hover Cursor', 'weaver-xtreme' /*adm*/) . '</small>',
713
- 'id' => 'placeholder_cursor', 'type' => 'select_id', //code
714
- 'info' => __('CSS cursor :hover attribute for placeholder menus (e.g., Custom Menus with URL==#). (Default: pointer)', 'weaver-xtreme' /*adm*/),
715
- 'value' => array(
716
- array('val' => 'pointer', 'desc' => __('Pointer (indicates link)', 'weaver-xtreme' /*adm*/)),
717
- array('val' => 'context-menu', 'desc' => __('Context Menu available', 'weaver-xtreme' /*adm*/)),
718
- array('val' => 'text', 'desc' => __('Text', 'weaver-xtreme' /*adm*/)),
719
- array('val' => 'none', 'desc' => __('No pointer', 'weaver-xtreme' /*adm*/)),
720
- array('val' => 'not-allowed', 'desc' => __('Action not allowed', 'weaver-xtreme' /*adm*/)),
721
- array('val' => 'default', 'desc' => __('The default cursor', 'weaver-xtreme' /*adm*/))
722
- )),
723
 
724
 
725
- array( 'name' => '<small>' . __('Mobile Menu "Hamburger" Label', 'weaver-xtreme' /*adm*/) . '</small>',
726
- 'id' => 'mobile_alt_label', 'type' => 'widetext',
727
- 'info' => __('Alternative label for the default mobile "Hamburger" icon. HTML allowed: &lt;span&gt; or &lt;img&gt; suggested.', 'weaver-xtreme' /*adm*/)),
 
 
 
728
 
729
 
730
- array( 'type' => 'submit'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
731
 
732
- array('name' => __('Header Mini-Menu', 'weaver-xtreme' /*adm*/), 'id' => '-menu', 'type' =>'subheader_alt',
733
- 'info' => __('Horizontal "Mini-Menu" displayed right-aligned of Site Tagline', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
 
734
 
 
 
 
 
 
 
 
 
 
 
 
 
 
735
 
736
- array('name' => __('Mini-Menu', 'weaver-xtreme' /*adm*/), 'id' => 'm_header_mini', 'type' => 'titles_text',
737
- 'info' => __('Color of Mini-Menu Link Items', 'weaver-xtreme' /*adm*/)),
738
 
739
- array('name' => '<small>' . __('Mini Menu Hover', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'm_header_mini_hover_color', 'type' => 'ctext',
740
- 'info' => __('Hover Color for Mini-Menu Links', 'weaver-xtreme' /*adm*/)),
741
 
742
- array('name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Mini Menu Top Margin', 'weaver-xtreme' /*adm*/) . '</small>',
743
- 'id' => 'm_header_mini_top_margin_dec', 'type' => 'val_em',
744
- 'info' => __('Top margin for Mini-Menu. Negative value moves it up. (Default: 0em)', 'weaver-xtreme' /*adm*/)),
745
 
746
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Mini Menu', 'weaver-xtreme' /*adm*/) . '</small>',
747
- 'id' => 'm_header_mini_hide', 'type' => 'select_hide',
748
- 'info' => __('Hide Mini Menu', 'weaver-xtreme' /*adm*/)),
749
 
 
 
 
 
 
 
 
 
 
 
 
 
750
 
751
- array( 'type' => 'submit'),
 
 
 
 
 
752
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
753
 
754
- array('name' => __('Info Bar', 'weaver-xtreme' /*adm*/), 'id' => 'infobar', 'type' => 'widget_area',
755
- 'info' => __('Info Bar : Breadcrumbs & Page Nav below primary menu', 'weaver-xtreme' /*adm*/)),
 
 
 
 
756
 
 
 
 
 
 
 
757
 
758
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __('Hide Breadcrumbs', 'weaver-xtreme' /*adm*/),
759
- 'id' => 'info_hide_breadcrumbs', 'type' => 'checkbox',
760
- 'info' => __('Do not display the Breadcrumbs', 'weaver-xtreme' /*adm*/)),
761
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __('Hide Page Navigation', 'weaver-xtreme' /*adm*/),
762
- 'id' => 'info_hide_pagenav', 'type' => 'checkbox',
763
- 'info' => __('Do not display the numbered Page navigation', 'weaver-xtreme' /*adm*/)),
764
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __('Show Search box', 'weaver-xtreme' /*adm*/),
765
- 'id' => 'info_search', 'type' => 'checkbox',
766
- 'info' => __('Include a Search box on the right', 'weaver-xtreme' /*adm*/)),
767
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __('Show Log In', 'weaver-xtreme' /*adm*/), 'id' => 'info_addlogin', 'type' => 'checkbox',
768
- 'info' => __('Include a simple Log In link on the right', 'weaver-xtreme' /*adm*/)),
769
 
770
- array('name' => __('Breadcrumb for Home', 'weaver-xtreme' /*adm*/), 'id' =>'info_home_label' , 'type' => 'widetext', //code - option done in code
771
- 'info' => __('This lets you change the breadcrumb label for your home page. (Default: Home)', 'weaver-xtreme' /*adm*/)),
772
- array('name' => __('Info Bar Links', 'weaver-xtreme' /*adm*/), 'id' => 'ibarlink', 'type' => 'link',
773
- 'info' => __('Color for links in Info Bar (uses Standard Link colors if left blank)', 'weaver-xtreme' /*adm*/))
774
- );
775
 
776
- ?>
777
- <div class="options-intro">
778
- <?php _e('<strong>Menus:</strong> Options to control how your menus look.', 'weaver-xtreme' /*adm*/); ?><br />
779
- <div class="options-intro-menu">
780
- <a href="#primary-menu-bar"><?php _e('Primary Menu Bar', 'weaver-xtreme' /*adm*/); ?></a> |
781
- <a href="#secondary-menu-bar"><?php _e('Secondary Menu Bar', 'weaver-xtreme' /*adm*/); ?></a> |
782
- <a href="#options-all-menus"><?php _e('Options: All Menus', 'weaver-xtreme' /*adm*/); ?></a> |
783
- <a href="#header-mini-menu"><?php _e('Header Mini-Menu', 'weaver-xtreme' /*adm*/); ?></a> |
784
- <a href="#info-bar"><?php _e('Info Bar', 'weaver-xtreme' /*adm*/); ?></a> |
785
- <a href="#extra-menu"><?php _e('Extra Menu (X-Plus)', 'weaver-xtreme' /*adm*/); ?></a>
786
- </div>
787
- </div>
788
- <?php
789
 
790
- $all_opts = apply_filters('weaverxplus_menu_inject', $opts);
 
 
 
 
 
791
 
792
- weaverx_form_show_options($all_opts);
 
 
 
 
 
793
 
794
- }
 
 
 
 
 
 
 
 
 
 
 
795
 
 
 
 
 
 
 
796
 
797
- // ======================== Main Options > Content Areas ========================
798
- function weaverx_mainopts_content() {
799
- $opts = array(
800
- array( 'type' => 'submit'),
801
- array('name' => __('Content Areas', 'weaver-xtreme' /*adm*/), 'id' => '-admin-page', 'type' => 'header',
802
- 'info' => __('Settings for the content areas (posts and pages)', 'weaver-xtreme' /*adm*/),
803
- 'toggle' => 'content-areas',
804
- 'help' => 'help.html#ContentAreas'),
805
-
806
- array('name' => __('Content Area', 'weaver-xtreme' /*adm*/), 'id' => 'content', 'type' => 'widget_area',
807
- 'info' => __('Area properties for page and post content', 'weaver-xtreme' /*adm*/)),
808
-
809
- array('name' => __('Page Title', 'weaver-xtreme' /*adm*/), 'id' => 'page_title', 'type' => 'titles',
810
- 'info' => __('Page titles, including pages, post single pages, and archive-like pages.', 'weaver-xtreme' /*adm*/)),
811
- array('name' => '<small>' . __('Bar under Title', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'page_title_underline_int', 'type' => 'val_px',
812
- 'info' => __('Enter size in px if you want a bar under page title. Leave blank or 0 for no bar.', 'weaver-xtreme' /*adm*/)),
813
- array('name' => '<small>' . __('Space Between Title and Content', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'space_after_title_dec', 'type' => 'val_em',
814
- 'info' => __('Space between Page or Post title and beginning of content (Default: 1.0em)', 'weaver-xtreme' /*adm*/)),
815
-
816
- array('name' => __('Archive Pages Title Text', 'weaver-xtreme' /*adm*/), 'id' => 'archive_title', 'type' => 'titles',
817
- 'info' => __('Archive-like page titles: archives, categories, tags, searches.', 'weaver-xtreme' /*adm*/)),
818
-
819
- array('name' => __('Content Links', 'weaver-xtreme' /*adm*/), 'id' => 'contentlink', 'type' => 'link',
820
- 'info' => __('Color for links in Content', 'weaver-xtreme' /*adm*/)),
821
-
822
- array('name' => __('Content Headings', 'weaver-xtreme' /*adm*/), 'id' => 'content_h', 'type' => '+titles',
823
- 'info' => __('Headings (&lt;h1&gt;-&lt;h6&gt;) in page and post content (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
824
-
825
- array( 'type' => 'submit'),
826
-
827
- array('name' => __('Text', 'weaver-xtreme' /*adm*/), 'id' => '-text', 'type'=>'subheader_alt',
828
- 'info' => __('Text related options', 'weaver-xtreme' /*adm*/)),
829
-
830
- array('name' => '<small>' . __('Space after paragraphs and lists', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'content_p_list_dec', 'type' => 'val_em',
831
- 'info' => __('Space after paragraphs and lists (Recommended: 1.5 em)', 'weaver-xtreme' /*adm*/)),
832
-
833
- array('name' => '<small>' . __('Page/Post Editor BG', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'editor_bgcolor', 'type' => 'ctext',
834
- 'info' => __('Alternative Background Color to use for Page/Post editor if you\'re using transparent or image backgrounds.','weaver-xtreme' /*adm*/)),
835
-
836
- array('name' => '<small>' . __('Input Area BG', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'input_bgcolor', 'type' => 'ctext',
837
- 'info' => __('Background color for text input (textareas) boxes.', 'weaver-xtreme' /*adm*/)),
838
- array('name' => '<small>' . __('Input Area Text', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'input_color', 'type' => 'color',
839
- 'info' => __('Text color for text input (textareas) boxes.', 'weaver-xtreme' /*adm*/)),
840
-
841
- array('name' => '<small>' . __('Auto Hyphenation', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'hyphenate', 'type' => 'checkbox',
842
- 'info' => __('Allow browsers to automatically hyphenate text for appearance.', 'weaver-xtreme' /*adm*/)),
843
-
844
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span>' . __('Columns', 'weaver-xtreme' /*adm*/), 'id' => 'page_cols', 'type' => 'select_id', //code
845
- 'info' => __('Automatically split all page content into columns using CSS column rules. Also can use Per Page option. (Always 1 column on IE&lt;=9.)', 'weaver-xtreme' /*adm*/),
846
- 'value' => array(
847
- array('val' => '1', 'desc' => __('1 Column', 'weaver-xtreme' /*adm*/)),
848
- array('val' => '2', 'desc' => __('2 Columns', 'weaver-xtreme' /*adm*/)),
849
- array('val' => '3', 'desc' => __('3 Columns', 'weaver-xtreme' /*adm*/)),
850
- array('val' => '4', 'desc' => __('4 Columns', 'weaver-xtreme' /*adm*/)))
851
- ),
852
-
853
-
854
- array('name' => __('Search Boxes', 'weaver-xtreme' /*adm*/), 'id' => '-search', 'type'=>'subheader_alt',
855
- 'info' => __('Search box related options', 'weaver-xtreme' /*adm*/)),
856
-
857
- array('name' => '<small>' . __('Search Input BG', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'search_bgcolor', 'type' => 'ctext',
858
- 'info' => __('Background color for all search input boxes.', 'weaver-xtreme' /*adm*/)),
859
- array('name' => '<small>' . __('Search Input Text', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'search_color', 'type' => 'color',
860
- 'info' => __('Text color for all search input boxes.', 'weaver-xtreme' /*adm*/)),
861
-
862
- array('name' => __('Search Icon Color:', 'weaver-xtreme' /*adm*/),
863
- 'info' => __('The Search Icon colored graphics used by previous versions of Weaver Xtreme have been discontinued. A text icon is now used. The color of the search icon is inherited from wrapping areas text color, including the header area and menu bar.', 'weaver-xtreme' /*adm*/),
864
- 'type' => 'note'),
865
-
866
-
867
- array( 'type' => 'submit'),
868
- array('name' => __('Images', 'weaver-xtreme' /*adm*/), 'id' => '-format-image', 'type'=>'subheader_alt',
869
- 'info' => __('Image related options', 'weaver-xtreme' /*adm*/)),
870
- array('name' => '<small>' . __('Image Border Color', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'media_lib_border_color', 'type' => 'ctext',
871
- 'info' => __('Border color for images in Container and Footer.', 'weaver-xtreme' /*adm*/)),
872
- array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('Image Border Width', 'weaver-xtreme' /*adm*/) . '</small>',
873
- 'id' => 'media_lib_border_int', 'type' => 'val_px',
874
- 'info' => __('Border width for images in Container and Footer. (Leave blank or set to 0 for no image borders.)', 'weaver-xtreme' /*adm*/)),
875
-
876
- array('name' => '<span class="i-left dashicons dashicons-admin-page"></span><small>' . __('Show Image Shadows', 'weaver-xtreme' /*adm*/) . '</small>',
877
- 'id' => 'show_img_shadows', 'type' => 'checkbox',
878
- 'info' => __('Add a shadow to images in Container and Footer. Add CSS+ to Border Color for custom shadow.', 'weaver-xtreme' /*adm*/)),
879
-
880
- array('name' => '<small>' . __('Restrict Borders to Media Library', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'restrict_img_border', 'type' => 'checkbox',
881
- 'info' => __('For Container and Footer, restrict border and shadows to images from Media Library. Manually entered &lt;img&gt; HTML without Media Library classes will not have borders.', 'weaver-xtreme' /*adm*/)),
882
-
883
- array('name' => '<small>' . __('Caption text color', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'caption_color', 'type' => 'ctext',
884
- 'info' => __('Color of captions - e.g., below media images.', 'weaver-xtreme' /*adm*/)),
885
-
886
- array('name' => __('Featured Image - Pages', 'weaver-xtreme' /*adm*/), 'id' => '-id', 'type'=>'subheader_alt',
887
- 'info' => __('Display of Page Featured Images', 'weaver-xtreme' /*adm*/)),
888
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __('Featured Image Location', 'weaver-xtreme' /*adm*/),
889
- 'id' => 'page_fi_location', 'type' => 'fi_location',
890
- 'info' => __('Where to display Featured Image for Pages','weaver-xtreme' /*adm*/)),
891
- array('name' => __('Full Width FI BG Image:', 'weaver-xtreme' /*adm*/),
892
- 'info' => __('To create full width Page BG images from the FI, check the <em>Container Area Extend BG Attributes</em> box on the <em>Full Width</em> tab.', 'weaver-xtreme' /*adm*/),
893
- 'type' => 'note'),
894
- array('name' => __('Parallax FI BG Image:', 'weaver-xtreme' /*adm*/),
895
- 'info' => __('It will usually be more useful to use the Per Page FI option to specify Parallax BG images.', 'weaver-xtreme' /*adm*/),
896
- 'type' => 'note'),
897
- array('name' => '<small>'. __('Page Content Height', 'weaver-xtreme' /*adm*/) . '</small>',
898
- 'id' => 'page_min_height', 'type' => '+val_px',
899
- 'info' => __('Minimum Height Page Content with Parallax BG. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
900
-
901
-
902
- array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Featured Image Alignment', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'page_fi_align', 'type' => 'fi_align',
903
- 'info' => __('How to align the Featured Image', 'weaver-xtreme' /*adm*/)),
904
-
905
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Featured Image on Pages', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'page_fi_hide', 'type' => 'select_hide',
906
- 'info' => __('Where to hide Featured Images on Pages (Posts have their own setting.)', 'weaver-xtreme' /*adm*/)),
907
-
908
- array ('name' => '<small>' . __('Page Featured Image Size', 'weaver-xtreme' /*adm*/) . '</small>',
909
- 'id' => 'page_fi_size', 'type' => 'select_id',
910
- 'info' => __('Media Library Image Size for Featured Image on pages. (Header uses full size).', 'weaver-xtreme' /*adm*/),
911
- 'value' => array(
912
- array('val' => 'thumbnail', 'desc' => __('Thumbnail (default)', 'weaver-xtreme' /*adm*/)),
913
- array('val' => 'medium', 'desc' => __('Medium', 'weaver-xtreme' /*adm*/)),
914
- array('val' => 'large', 'desc' => __('Large', 'weaver-xtreme' /*adm*/)),
915
- array('val' => 'full', 'desc' => __('Full', 'weaver-xtreme' /*adm*/)))
916
- ),
917
- array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('Featured Image Width, Pages', 'weaver-xtreme' /*adm*/) . '</small>',
918
- 'id' => 'page_fi_width', 'type' => '+val_percent',
919
- 'info' => __('Width of Featured Image on Pages. Max Width in %, overrides FI Size selection. (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
920
- array('name' => '<small>' . __("Don't add link to FI", 'weaver-xtreme' /*adm*/) . '</small>',
921
- 'id' => 'page_fi_nolink', 'type' => '+checkbox',
922
- 'info' => __('Do not add link to Featured Image. (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
923
-
924
-
925
-
926
- array('name' => __('Lists - &lt;HR&gt; - Tables', 'weaver-xtreme' /*adm*/), 'id' => '-list-view', 'type'=>'subheader_alt',
927
- 'info' => __('Other options related to content', 'weaver-xtreme' /*adm*/)),
928
- array ('name' => __('Content List Bullet', 'weaver-xtreme' /*adm*/),
929
- 'id' => 'contentlist_bullet', 'type' => 'select_id',
930
- 'info' => __('Bullet used for Unordered Lists in Content areas', 'weaver-xtreme' /*adm*/),
931
- 'value' => array(
932
- array('val' => 'disc', 'desc' => __('Filled Disc (default)', 'weaver-xtreme' /*adm*/)),
933
- array('val' => 'circle', 'desc' => __('Circle', 'weaver-xtreme' /*adm*/)),
934
- array('val' => 'square', 'desc' => __('Square', 'weaver-xtreme' /*adm*/)),
935
- array('val' => 'none', 'desc' => __('None', 'weaver-xtreme' /*adm*/)))
936
- ),
937
-
938
- array('name' => __('&lt;HR&gt; color', 'weaver-xtreme' /*adm*/), 'id' => 'hr_color', 'type' => 'ctext',
939
- 'info' => __('Color of horizontal (&lt;hr&gt;) lines in posts and pages.', 'weaver-xtreme' /*adm*/)),
940
-
941
- array ('name' => __('Table Style', 'weaver-xtreme' /*adm*/), 'id' => 'weaverx_tables', 'type' => 'select_id',
942
- 'info' => __('Style used for tables in content.', 'weaver-xtreme' /*adm*/),
943
- 'value' => array(
944
- array('val' => 'default', 'desc' => __('Theme Default', 'weaver-xtreme' /*adm*/)),
945
- array('val' => 'bold', 'desc' => __('Bold Headings', 'weaver-xtreme' /*adm*/)),
946
- array('val' => 'noborders', 'desc' => __('No Borders', 'weaver-xtreme' /*adm*/)),
947
- array('val' => 'fullwidth', 'desc' => __('Wide', 'weaver-xtreme' /*adm*/)),
948
- array('val' => 'wide', 'desc' => __('Wide 2', 'weaver-xtreme' /*adm*/)),
949
- array('val' => 'plain', 'desc' => __('Minimal', 'weaver-xtreme' /*adm*/)))
950
- ),
951
-
952
- array('name' => __('Comments', 'weaver-xtreme' /*adm*/), 'id' => '-admin-comments', 'type' => 'subheader',
953
- 'info' => __('Settings for displaying comments', 'weaver-xtreme' /*adm*/)),
954
- array('name' => __('Comment Headings', 'weaver-xtreme' /*adm*/), 'id' => 'comment_headings_color', 'type' => 'ctext',
955
- 'info' => __('Color for various headings in comment form', 'weaver-xtreme' /*adm*/)),
956
- array('name' => __('Comment Content BG', 'weaver-xtreme' /*adm*/), 'id' => 'comment_content_bgcolor', 'type' => 'ctext',
957
- 'info' => __('BG Color of Comment Content area', 'weaver-xtreme' /*adm*/)),
958
- array('name' => __('Comment Submit Button BG', 'weaver-xtreme' /*adm*/), 'id' => 'comment_submit_bgcolor', 'type' => 'ctext',
959
- 'info' => __('BG Color of "Post Comment" submit button', 'weaver-xtreme' /*adm*/)),
960
- array('name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __('Show Borders on Comments', 'weaver-xtreme' /*adm*/) . '</small>',
961
- 'id' => 'show_comment_borders', 'type' => 'checkbox',
962
- 'info' => __('Show Borders around comment sections - improves visual look of comments.', 'weaver-xtreme' /*adm*/)),
963
-
964
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Old Comments When Closed', 'weaver-xtreme' /*adm*/) . '</small>',
965
- 'id' => 'hide_old_comments', 'type' => '+checkbox',
966
- 'info' => __('Hide previous comments after closing comments for page or post. (Default: show old comments after closing.) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
967
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span>'. '<small>' . __('Show Allowed HTML', 'weaver-xtreme' /*adm*/) . '</small>',
968
- 'id' => 'form_allowed_tags', 'type' => '+checkbox',
969
- 'info' => __('Show the allowed HTML tags below comment input box (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
970
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><span class="dashicons dashicons-admin-comments"></span>' .
971
- '<small>' . __('Hide Comment Title Icon', 'weaver-xtreme' /*adm*/) . '</small>',
972
- 'id' => 'hide_comment_bubble', 'type' => '+checkbox',
973
- 'info' => __('Hide the comment icon before the Comments title (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
974
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Separator Above Comments', 'weaver-xtreme' /*adm*/) . '</small>',
975
- 'id' => 'hide_comment_hr', 'type' => '+checkbox',
976
- 'info' => __('Hide the (&lt;hr&gt;) separator line above the Comments area (&starf;Plus)', 'weaver-xtreme' /*adm*/))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
977
  );
978
 
979
- ?>
980
- <div class="options-intro">
981
- <?php _e('<strong>Content Areas:</strong> Includes options common to both <em>Pages</em> and <em>Posts</em>. Options for <strong>Text</strong>,
982
- <strong>Padding</strong>, <strong>Images</strong>, <strong>Lists &amp; Tables</strong>, and user <strong>Comments</strong>.', 'weaver-xtreme' /*adm*/); ?><br />
983
- <div class="options-intro-menu">
984
- <a href="#content-area"><?php _e('Content Area', 'weaver-xtreme' /*adm*/); ?></a> |
985
- <a href="#text"><?php _e('Text', 'weaver-xtreme' /*adm*/); ?></a> |
986
- <a href="#search-boxes"><?php _e('Search Boxes', 'weaver-xtreme' /*adm*/); ?></a> |
987
- <a href="#images"><?php _e('Images', 'weaver-xtreme' /*adm*/); ?></a> |
988
- <a href="#featured-image-pages"><?php _e('Featured Image - Pages', 'weaver-xtreme' /*adm*/); ?></a> |
989
- <a href="#lists-hr-tables"><?php _e('Lists - &lt;HR&gt; - Tables', 'weaver-xtreme' /*adm*/); ?></a> |
990
- <a href="#comments"><?php _e('Comments', 'weaver-xtreme' /*adm*/); ?></a>
991
- </div>
992
- </div>
993
- <?php
994
- weaverx_form_show_options($opts);
995
- do_action('weaverxplus_admin','content_areas');
996
- ?>
997
- <span style="color:green;"><b><?php _e('Hiding/Enabling Page and Post Comments', 'weaver-xtreme' /*adm*/); ?></b></span>
998
- <?php
999
- weaverx_help_link('help.html#LeavingComments',__('Help for Leaving Comments', 'weaver-xtreme' /*adm*/));
1000
- ?>
1001
- <p>
1002
- <?php _e('Controlling "Reply/Leave a Comment" visibility for pages and posts is <strong>not</strong> a theme function.
1003
  It is controlled by WordPress settings.
1004
- Please click the ? just above to see the help file entry!', 'weaver-xtreme' /*adm*/); ?>
1005
- </p>
1006
- <?php
1007
  }
1008
 
1009
  // ======================== Main Options > Post Specifics ========================
1010
  function weaverx_mainopts_posts() {
1011
  $opts = array(
1012
- array( 'type' => 'submit'),
1013
- array('name' => __('Post Specifics', 'weaver-xtreme' /*adm*/), 'id' => '-admin-post', 'type' => 'header',
1014
- 'info' => __('Settings affecting Posts', 'weaver-xtreme' /*adm*/),
1015
- 'help' => 'help.html#PPSpecifics'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1016
 
1017
- array('name' => __('Post Area', 'weaver-xtreme' /*adm*/), 'id' => 'post', 'type' => 'widget_area',
1018
- 'info' => __('Use these settings to override Content Area settings for Posts (blog entries).', 'weaver-xtreme' /*adm*/)),
1019
-
1020
- array('name' => __('Sticky Post BG', 'weaver-xtreme' /*adm*/), 'id' => 'stickypost_bgcolor', 'type' => 'ctext',
1021
- 'info' => __('BG color for sticky posts, author info. (Add {border:none;padding:0;} to CSS to make sticky posts same as regular posts.)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1022
 
1023
- array('name' => '<small>' . __('Reset Major Content Options', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'reset_content_opts', 'type' => 'checkbox',
1024
- 'info' => __('Clear wrapping Content Area bg, borders, padding, and top/bottom margins for views with posts. Allows more flexible post settings.', 'weaver-xtreme' /*adm*/)),
1025
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1026
 
1027
- array( 'type' => 'submit'),
1028
 
 
1029
 
1030
- array('name' => __('Post Title', 'weaver-xtreme' /*adm*/), 'id' => '-text', 'type' => 'subheader_alt',
1031
- 'info' => __('Options for the Post Title', 'weaver-xtreme' /*adm*/)),
1032
 
1033
- array('name' => __('Post Title', 'weaver-xtreme' /*adm*/), 'id' => 'post_title', 'type' => 'titles',
1034
- 'info' => __("Post title (Blog Views)", 'weaver-xtreme' /*adm*/)),
1035
-
1036
- array('name' => '<small>' . __('Bar under Post Titles', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'post_title_underline_int', 'type' => 'val_px',
1037
- 'info' => __('Enter size in px if you want a bar under page title. Leave blank or 0 for no bar.', 'weaver-xtreme' /*adm*/)),
1038
-
1039
- array('name' => '<small>' . __('Post Title Hover', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'post_title_hover_color', 'type' => 'ctext',
1040
- 'info' => __('Color if you want the Post Title to show alternate color for hover', 'weaver-xtreme' /*adm*/)),
1041
-
1042
- array('name' => '<small>' . __('Space After Post Title', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'post_title_bottom_margin_dec', 'type' => 'val_em',
1043
- 'info' => __('Space between Post Title and Post Info Line or content. (Default: 0.15em)', 'weaver-xtreme' /*adm*/)),
1044
-
1045
-
1046
- array('name' => '<span class="i-left dashicons dashicons-admin-comments"></span><small>' . __('Show Comment Bubble', 'weaver-xtreme' /*adm*/) . '</small>',
1047
- 'id' => 'show_post_bubble', 'type' => 'checkbox',
1048
- 'info' => __("Show comment bubble with link to comments on the post info line.", 'weaver-xtreme' /*adm*/)),
1049
-
1050
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide <em>Post Format</em> Icons', 'weaver-xtreme' /*adm*/) . '</small>',
1051
- 'id' => 'hide_post_format_icon', 'type' => '+checkbox',
1052
- 'info' => __('Hide the icons for posts with Post Format specified. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1053
-
1054
-
1055
-
1056
-
1057
- array('name' => __('Post Layout', 'weaver-xtreme' /*adm*/), 'id' => '-schedule', 'type' => 'subheader_alt',
1058
- 'info' => __('Layout of Posts', 'weaver-xtreme' /*adm*/)),
1059
-
1060
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span>' . __('Post Content Columns', 'weaver-xtreme' /*adm*/), 'id' => 'post_cols', 'type' => 'select_id', //code
1061
- 'info' => __('Automatically split all post content into columns for both blog and single page views. <em>This is post content only.</em> This is not the same as "Columns of Posts". (IE&lt;=9 will display 1 col.)', 'weaver-xtreme' /*adm*/),
1062
- 'value' => array(
1063
- array('val' => '1', 'desc' => __('1 Column', 'weaver-xtreme' /*adm*/)),
1064
- array('val' => '2', 'desc' => __('2 Columns', 'weaver-xtreme' /*adm*/)),
1065
- array('val' => '3', 'desc' => __('3 Columns', 'weaver-xtreme' /*adm*/)),
1066
- array('val' => '4', 'desc' => __('4 Columns', 'weaver-xtreme' /*adm*/)))
1067
- ),
1068
-
1069
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span>' . __('Columns of Posts', 'weaver-xtreme' /*adm*/), 'id' => 'blog_cols', 'type' => 'select_id', //code
1070
- 'info' => __('Display posts on blog page with this many columns. (You should adjust "Display posts on blog page with this many columns" on Settings:Reading to be a multiple of this value.)', 'weaver-xtreme' /*adm*/),
1071
- 'value' => array(
1072
- array('val' => '1', 'desc' => __('1 Column', 'weaver-xtreme' /*adm*/)),
1073
- array('val' => '2', 'desc' => __('2 Columns', 'weaver-xtreme' /*adm*/)),
1074
- array('val' => '3', 'desc' => __('3 Columns', 'weaver-xtreme' /*adm*/)))
1075
- ),
1076
-
1077
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span><small>' . __('Use Columns on Archive Pages', 'weaver-xtreme' /*adm*/) . '</small>' , 'id' => 'archive_cols', 'type' => 'checkbox', //code
1078
- 'info' => __('Display posts on archive-like pages using columns. (Archive, Author, Category, Tag)', 'weaver-xtreme' /*adm*/)
1079
- ),
1080
-
1081
- array('name' => '<small>' . __('First Post One Column', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'blog_first_one', 'type' => 'checkbox',
1082
- 'info' => __('Always display the first post in one column.', 'weaver-xtreme' /*adm*/)),
1083
- array('name' => '<small>' . __('Sticky Posts One Column', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'blog_sticky_one', 'type' => 'checkbox',
1084
- 'info' => __("Display opening Sticky Posts in one column. If First Post One Column also checked, then first non-sticky post will be one column.", 'weaver-xtreme' /*adm*/)),
1085
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span><small>' . __('Use <em>Masonry</em> for Posts', 'weaver-xtreme' /*adm*/) . '</small>',
1086
- 'id' => 'masonry_cols', 'type' => 'select_id', //code
1087
- 'info' => __('Use the <em>Masonry</em> blog layout option to show dynamically packed posts on blog and archive-like pages. Overrides "Columns of Posts" setting. <em>Not compatible with full width FI BG images.</em>', 'weaver-xtreme' /*adm*/),
1088
- 'value' => array(
1089
- array('val' => '0', 'desc' => ''),
1090
- array('val' => '2', 'desc' => __('2 Columns', 'weaver-xtreme' /*adm*/)),
1091
- array('val' => '3', 'desc' => __('3 Columns', 'weaver-xtreme' /*adm*/)),
1092
- array('val' => '4', 'desc' => __('4 Columns', 'weaver-xtreme' /*adm*/)),
1093
- array('val' => '5', 'desc' => __('5 Columns', 'weaver-xtreme' /*adm*/)))
1094
- ),
1095
-
1096
- array('name' => '<small>' . __('Compact <em>Post Format</em> Posts', 'weaver-xtreme' /*adm*/) . '</small>',
1097
- 'id' => 'compact_post_formats', 'type' => 'checkbox',
1098
- 'info' => __('Use compact layout for <em>Post Format</em> posts (Image, Gallery, Video, etc.). Useful for photo blogs and multi-column layouts. Looks great with <em>Masonry</em>.', 'weaver-xtreme' /*adm*/)),
1099
- array('name' => __('Photo Bloging', 'weaver-xtreme' /*adm*/),
1100
- 'info' => __('Read the Help entry for information on creating a Photo Blog page', 'weaver-xtreme' /*adm*/),
1101
- 'type' => 'note','help' => 'help.html#PhotoBlog'),
1102
-
1103
-
1104
- array( 'type' => 'submit'),
1105
-
1106
- array('name' => __('Excerpts / Full Posts', 'weaver-xtreme' /*adm*/), 'id' => '-exerpt-view', 'type' => 'subheader_alt',
1107
- 'info' => __('How to display posts in Blog / Archive Views', 'weaver-xtreme' /*adm*/)),
1108
- array('name' => __('Show Full Blog Posts', 'weaver-xtreme' /*adm*/), 'id' => 'fullpost_blog', 'type' => 'checkbox',
1109
- 'info' => __('Will display full blog post instead of excerpts on <em>blog pages</em>.', 'weaver-xtreme' /*adm*/)),
1110
- array('name' => '<small>' . __('Full Post for Archives', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'fullpost_archive', 'type' => 'checkbox',
1111
- 'info' => __('Display the full posts instead of excerpts on <em>special post pages</em>. (Archives, Categories, etc.) Does not override manually added &lt;--more--> breaks.', 'weaver-xtreme' /*adm*/)),
1112
- array('name' => '<small>' . __('Full Post for Searches', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'fullpost_search', 'type' => 'checkbox',
1113
- 'info' => __('Display the full posts instead of excerpts for Search results. Does not override manually added &lt;--more--> breaks.', 'weaver-xtreme' /*adm*/)),
1114
- array('name' => '<small>' . __('Full text for 1st <em>"n"</em> Posts', 'weaver-xtreme' /*adm*/) . '</small>',
1115
- 'id' => 'fullpost_first', 'type' => 'val_num',
1116
- 'info' => __('Display the full post for the first "n" posts on Blog pages. Does not override manually added &lt;--more--> breaks.', 'weaver-xtreme' /*adm*/)),
1117
- array('name' => '<small>' . __('Excerpt length', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'excerpt_length', 'type' => 'val_num',
1118
- 'info' => __('Change post excerpt length. (Default: 40 words)', 'weaver-xtreme' /*adm*/)),
1119
- array('name' => '<small>' . __('<em>Continue reading</em> Message', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'excerpt_more_msg', 'type' => 'widetext',
1120
- 'info' => __('Change default <em>Continue reading &rarr;</em> message for excerpts. Can include HTML (e.g., &lt;img>).', 'weaver-xtreme' /*adm*/)),
1121
- array('type' => 'endheader'),
1122
-
1123
-
1124
-
1125
-
1126
- array('name' => __('Post Navigation', 'weaver-xtreme' /*adm*/), 'id' => '-leftright', 'type' => 'subheader_alt',
1127
- 'info' => __('Navigation for moving between posts', 'weaver-xtreme' /*adm*/)),
1128
- array('name' => __('Blog Navigation Style', 'weaver-xtreme' /*adm*/), 'id' => 'nav_style', 'type' => 'select_id',
1129
- 'info' => __('Style of navigation links on blog pages: "Older/Newer posts", "Previous/Next Post", or by page numbers', 'weaver-xtreme' /*adm*/),
1130
- 'value' => array(
1131
- array('val' => 'old_new', 'desc' => __('Older/Newer', 'weaver-xtreme' /*adm*/)),
1132
- array('val' => 'prev_next', 'desc' => __('Previous/Next', 'weaver-xtreme' /*adm*/)),
1133
- array('val' => 'paged_left', 'desc' => __('Paged - Left', 'weaver-xtreme' /*adm*/)),
1134
- array('val' => 'paged_right', 'desc' => __('Paged - Right', 'weaver-xtreme' /*adm*/)))
1135
- ),
1136
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Top Links', 'weaver-xtreme' /*adm*/) . '</small>',
1137
- 'id' => 'nav_hide_above', 'type' => '+checkbox',
1138
- 'info' => __('Hide the blog navigation links at the top (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1139
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Bottom Links', 'weaver-xtreme' /*adm*/) . '</small>',
1140
- 'id' => 'nav_hide_below', 'type' => '+checkbox',
1141
- 'info' => __('Hide the blog navigation links at the bottom (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1142
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Show Top on First Page', 'weaver-xtreme' /*adm*/) . '</small>',
1143
- 'id' => 'nav_show_first', 'type' => '+checkbox',
1144
- 'info' => __('Show navigation at top even on the first page (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1145
-
1146
- array('name' => __('Single Page Navigation Style', 'weaver-xtreme' /*adm*/), 'id' => 'single_nav_style', 'type' => 'select_id',
1147
- 'info' => __('Style of navigation links on post Single pages: Previous/Next, by title, or none', 'weaver-xtreme' /*adm*/),
1148
- 'value' => array(
1149
- array('val' => 'title', 'desc' => __('Post Titles', 'weaver-xtreme' /*adm*/)),
1150
- array('val' => 'prev_next', 'desc' => __('Previous/Next', 'weaver-xtreme' /*adm*/)),
1151
- array('val' => 'hide', 'desc' => __('None - no display', 'weaver-xtreme' /*adm*/)))
1152
- ),
1153
- array('name' => '<small>' . __('Link to Same Categories', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'single_nav_link_cats', 'type' => '+checkbox',
1154
- 'info' => __('Single Page navigation links point to posts with same categories. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1155
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Top Links', 'weaver-xtreme' /*adm*/) . '</small>',
1156
- 'id' => 'single_nav_hide_above', 'type' => '+checkbox',
1157
- 'info' => __('Hide the single page navigation links at the top (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1158
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Bottom Links', 'weaver-xtreme' /*adm*/) . '</small>',
1159
- 'id' => 'single_nav_hide_below', 'type' => '+checkbox',
1160
- 'info' => __('Hide the single page navigation links at the bottom (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1161
-
1162
- array( 'type' => 'submit'),
1163
- array('name' => __('Post Meta Info Areas', 'weaver-xtreme' /*adm*/), 'id' => '-info', 'type' => 'subheader_alt',
1164
- 'info' => __('Top and Bottom Post Meta Information areas', 'weaver-xtreme' /*adm*/)),
1165
-
1166
- array('name' => __('Top Post Info', 'weaver-xtreme' /*adm*/), 'id' => 'post_info_top', 'type' => 'titles_text',
1167
- 'info' => __("Top Post info line", 'weaver-xtreme' /*adm*/)),
1168
-
1169
-
1170
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide top post info', 'weaver-xtreme' /*adm*/) . '</small>',
1171
- 'id' => 'post_info_hide_top', 'type' => 'checkbox', //code
1172
- 'info' => __('Hide entire top info line (posted on, by) of post.','weaver-xtreme' /*adm*/)),
1173
-
1174
- array('name' => __('Bottom Post Info', 'weaver-xtreme' /*adm*/), 'id' => 'post_info_bottom', 'type' => 'titles_text',
1175
- 'info' => __('The bottom post info line', 'weaver-xtreme' /*adm*/)),
1176
-
1177
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide bottom post info', 'weaver-xtreme' /*adm*/) . '</small>',
1178
- 'id' => 'post_info_hide_bottom', 'type' => 'checkbox', //code
1179
- 'info' => __('Hide entire bottom info line (posted in, comments) of post.', 'weaver-xtreme' /*adm*/)),
1180
-
1181
-
1182
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __('Show Author Avatar', 'weaver-xtreme' /*adm*/),
1183
- 'id' => 'show_post_avatar', 'type' => 'select_id', //code
1184
- 'info' => __('Show author avatar on the post info line (also can be set per post with post editor)', 'weaver-xtreme' /*adm*/),
1185
- 'value' => array(
1186
- array('val' => 'hide', 'desc' => __('Do Not Show', 'weaver-xtreme' /*adm*/)),
1187
- array('val' => 'start', 'desc' => __('Start of Info Line', 'weaver-xtreme' /*adm*/)),
1188
- array('val' => 'end', 'desc' => __('End of Info Line', 'weaver-xtreme' /*adm*/)))),
1189
-
1190
- array('name' => '<small>' . __('Avatar size', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'post_avatar_int', 'type' => 'val_px',
1191
- 'info' => __('Size of Avatar in px. (Default: 28px)', 'weaver-xtreme' /*adm*/)),
1192
-
1193
- array('name' => __('Use Icons in Post Info', 'weaver-xtreme' /*adm*/), 'id' => 'post_icons', 'type' => 'select_id',
1194
- 'info' => __('Use Icons instead of Text descriptions in Post Meta Info', 'weaver-xtreme' /*adm*/),
1195
- 'value' => array(
1196
- array('val' => 'text', 'desc' => __('Text Descriptions', 'weaver-xtreme' /*adm*/)),
1197
- array('val' => 'fonticons', 'desc' => __('Font Icons', 'weaver-xtreme' /*adm*/)),
1198
- array('val' => 'graphics', 'desc' => __('Graphic Icons', 'weaver-xtreme' /*adm*/)))
1199
- ),
1200
- array('name' => '<small>' . __('Font Icons Color', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'post_icons_color', 'type' => 'color',
1201
- 'info' => __('Color for Font Icons (Default: Post Info text color)', 'weaver-xtreme' /*adm*/)),
1202
-
1203
-
1204
- array('name' => '<span style="color:red">' . __('Note:', 'weaver-xtreme' /*adm*/) . '</span>',
1205
- 'type' => 'note', 'info' => __('Hiding any meta info item automatically uses Icons instead of text descriptions.', 'weaver-xtreme' /*adm*/)),
1206
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Post Date', 'weaver-xtreme' /*adm*/) . '</small>',
1207
- 'id' => 'post_hide_date', 'type' => 'checkbox',
1208
- 'info' => __('Hide the post date everywhere it is normally displayed.', 'weaver-xtreme' /*adm*/)),
1209
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Post Author', 'weaver-xtreme' /*adm*/) . '</small>',
1210
- 'id' => 'post_hide_author', 'type' => 'checkbox',
1211
- 'info' => __('Hide the post author everywhere it is normally displayed.', 'weaver-xtreme' /*adm*/)),
1212
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Post Categories', 'weaver-xtreme' /*adm*/) . '</small>',
1213
- 'id' => 'post_hide_categories', 'type' => 'checkbox',
1214
- 'info' => __('Hide the post categories wherever they are normally displayed.', 'weaver-xtreme' /*adm*/)),
1215
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Post Tags', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'post_hide_tags', 'type' => 'checkbox',
1216
- 'info' => __('Hide the post tags wherever they are normally displayed.','weaver-xtreme' /*adm*/)),
1217
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Permalink', 'weaver-xtreme' /*adm*/) . '</small>',
1218
- 'id' => 'hide_permalink', 'type' => 'checkbox',
1219
- 'info' => __('Hide the permalink.', 'weaver-xtreme' /*adm*/)),
1220
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Category if Only One', 'weaver-xtreme' /*adm*/) . '</small>',
1221
- 'id' => 'hide_singleton_category', 'type' => 'checkbox',
1222
- 'info' => __('If there is only one overall category defined (Uncategorized), don\'t show Category of post.', 'weaver-xtreme' /*adm*/)),
1223
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Author for Single Author Site', 'weaver-xtreme' /*adm*/) . '</small>',
1224
- 'id' => 'post_hide_single_author', 'type' => 'checkbox',
1225
- 'info' => __('Hide author information if site has only a single author.', 'weaver-xtreme' /*adm*/)),
1226
-
1227
- array('name' => __('Post Info Links', 'weaver-xtreme' /*adm*/), 'id' => 'ilink', 'type' => 'link',
1228
- 'info' => __('Links in post information top and bottom lines.', 'weaver-xtreme' /*adm*/)),
1229
-
1230
- array( 'type' => 'submit'),
1231
-
1232
-
1233
- array('name' => __('Featured Image - Posts', 'weaver-xtreme' /*adm*/), 'id' => '-id', 'type' => 'subheader_alt',
1234
- 'info' => __('Display of Post Featured Images', 'weaver-xtreme' /*adm*/)),
1235
-
1236
- array('name' => __('Full Width FI BG Image:', 'weaver-xtreme' /*adm*/), 'type' => 'note',
1237
- 'info' => __('To create full width Post BG images from the FI, check the <em>Post Area Extend BG Attributes</em> box at <em>Full Width</em> tab.', 'weaver-xtreme' /*adm*/)),
1238
-
1239
- array('name' => '<small>' . __("Don't add link to FI", 'weaver-xtreme' /*adm*/) . '</small>',
1240
- 'id' => 'post_fi_nolink', 'type' => '+checkbox',
1241
- 'info' => __('Do not add link to Featured Image for any post layout. (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
1242
-
1243
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __('FI Location - Full Post', 'weaver-xtreme' /*adm*/),
1244
- 'id' => 'post_full_fi_location', 'type' => 'fi_location_post',
1245
- 'info' => __('Where to display Featured Image for full blog posts.', 'weaver-xtreme' /*adm*/)),
1246
-
1247
- array('name' => '<small>'. __('Post Height - Blog View', 'weaver-xtreme' /*adm*/) . '</small>',
1248
- 'id' => 'post_blog_min_height', 'type' => '+val_px',
1249
- 'info' => __('Minimum Height of Post, full or excerpt, with Parallax BG in blog views. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1250
-
1251
- array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Full post', 'weaver-xtreme' /*adm*/) . '</small>',
1252
- 'id' => 'post_full_fi_align', 'type' => 'fi_align',
1253
- 'info' => __('Featured Image alignment','weaver-xtreme' /*adm*/)),
1254
-
1255
-
1256
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide FI - Full Posts', 'weaver-xtreme' /*adm*/) . '</small>',
1257
- 'id' => 'post_full_fi_hide', 'type' => 'select_hide',
1258
- 'info' => __('Hide Featured Images on full blog posts.', 'weaver-xtreme' /*adm*/)),
1259
- array ('name' => '<small>' . __('FI Size - Full Posts', 'weaver-xtreme' /*adm*/) . '</small>',
1260
- 'id' => 'post_full_fi_size', 'type' => 'select_id',
1261
- 'info' => __('Media Library Image Size for Featured Image on full posts.', 'weaver-xtreme' /*adm*/),
1262
- 'value' => array(
1263
- array('val' => 'thumbnail', 'desc' => __('Thumbnail (default)', 'weaver-xtreme' /*adm*/)),
1264
- array('val' => 'medium', 'desc' => __('Medium', 'weaver-xtreme' /*adm*/)),
1265
- array('val' => 'large', 'desc' => __('Large', 'weaver-xtreme' /*adm*/)),
1266
- array('val' => 'full', 'desc' => __('Full', 'weaver-xtreme' /*adm*/)))
1267
- ),
1268
- array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('FI Width, Full Posts', 'weaver-xtreme' /*adm*/) . '</small>',
1269
- 'id' => 'post_full_fi_width', 'type' => '+val_percent',
1270
- 'info' => __('Width of Featured Image on Full Posts. Max Width in %, overrides FI Size selection. (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
1271
-
1272
-
1273
-
1274
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>'. __('FI Location - Excerpts', 'weaver-xtreme' /*adm*/),
1275
- 'id' => 'post_excerpt_fi_location', 'type' => 'fi_location_post',
1276
- 'info' => __('Where to display Featured Image for posts displayed as excerpt.', 'weaver-xtreme' /*adm*/)),
1277
-
1278
- array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Excerpts', 'weaver-xtreme' /*adm*/) . '</small>',
1279
- 'id' => 'post_excerpt_fi_align', 'type' => 'fi_align',
1280
- 'info' => __('How to align the Featured Image', 'weaver-xtreme' /*adm*/)),
1281
-
1282
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide FI - Excerpts', 'weaver-xtreme' /*adm*/) . '</small>',
1283
- 'id' => 'post_excerpt_fi_hide', 'type' => 'select_hide',
1284
- 'info' => __('Where to hide Featured Images on full blog posts.', 'weaver-xtreme' /*adm*/)),
1285
- array ('name' => '<small>FI Size - Excerpts</small>',
1286
- 'id' => 'post_excerpt_fi_size', 'type' => 'select_id',
1287
- 'info' => __('Media Library Image Size for Featured Image on excerpts.', 'weaver-xtreme' /*adm*/),
1288
- 'value' => array(
1289
- array('val' => 'thumbnail', 'desc' => __('Thumbnail (default)', 'weaver-xtreme' /*adm*/)),
1290
- array('val' => 'medium', 'desc' => __('Medium', 'weaver-xtreme' /*adm*/)),
1291
- array('val' => 'large', 'desc' => __('Large', 'weaver-xtreme' /*adm*/)),
1292
- array('val' => 'full', 'desc' => __('Full', 'weaver-xtreme' /*adm*/)))
1293
- ),
1294
- array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('FI Width, Excerpts', 'weaver-xtreme' /*adm*/) . '</small>',
1295
- 'id' => 'post_excerpt_fi_width', 'type' => '+val_percent',
1296
- 'info' => __('Width of Featured Image on excerpts. Max Width in %, overrides FI Size selection. (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
1297
-
1298
-
1299
- array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __('FI Location - Single Page', 'weaver-xtreme' /*adm*/),
1300
- 'id' => 'post_fi_location', 'type' => 'fi_location',
1301
- 'info' => __('Where to display Featured Image for posts on single page view.', 'weaver-xtreme' /*adm*/)),
1302
-
1303
- array('name' => '<small>'. __('Post Height - Single Page', 'weaver-xtreme' /*adm*/) . '</small>',
1304
- 'id' => 'post_min_height', 'type' => '+val_px',
1305
- 'info' => __('Minimum Height of Post with Parallax BG in Single Page view. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1306
- array('name' => __('Parallax FI BG Image:', 'weaver-xtreme' /*adm*/),
1307
- 'info' => __('It will usually be more useful to use the Per Post FI option to specify Parallax BG images.', 'weaver-xtreme' /*adm*/),
1308
- 'type' => 'note'),
1309
-
1310
- array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Single Page', 'weaver-xtreme' /*adm*/) . '</small>',
1311
- 'id' => 'post_fi_align', 'type' => 'fi_align',
1312
- 'info' => __('How to align the Featured Image on Single Page View.', 'weaver-xtreme' /*adm*/)),
1313
-
1314
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide FI - Single Page', 'weaver-xtreme' /*adm*/) . '</small>',
1315
- 'id' => 'post_fi_hide', 'type' => 'select_hide',
1316
- 'info' => __('Where to hide Featured Images on single page view.', 'weaver-xtreme' /*adm*/)),
1317
- array ('name' => '<small>' . __('FI Size - Single Posts', 'weaver-xtreme' /*adm*/) . '</small>',
1318
- 'id' => 'post_fi_size', 'type' => 'select_id',
1319
- 'info' => __('Media Library Image Size for Featured Image on single page view.', 'weaver-xtreme' /*adm*/),
1320
- 'value' => array(
1321
- array('val' => 'thumbnail', 'desc' => __('Thumbnail (default)', 'weaver-xtreme' /*adm*/)),
1322
- array('val' => 'medium', 'desc' => __('Medium', 'weaver-xtreme' /*adm*/)),
1323
- array('val' => 'large', 'desc' => __('Large', 'weaver-xtreme' /*adm*/)),
1324
- array('val' => 'full', 'desc' => __('Full', 'weaver-xtreme' /*adm*/)))
1325
- ),
1326
- array('name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __('FI Width, Single Page', 'weaver-xtreme' /*adm*/) . '</small>',
1327
- 'id' => 'post_fi_width', 'type' => '+val_percent',
1328
- 'info' => __('Width of Featured Image on single page view. Max Width in %, overrides FI Size selection. (&starf;Plus)', 'weaver-xtreme' /*adm*/) ),
1329
-
1330
-
1331
-
1332
- array( 'type' => 'submit'),
1333
-
1334
-
1335
- array('name' => __('More Post Related Options', 'weaver-xtreme' /*adm*/), 'id' => '-forms', 'type' => 'subheader_alt',
1336
- 'info' => __('Other options related to post display, including single pages.', 'weaver-xtreme' /*adm*/)),
1337
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Show <em>Comments are closed.</em>', 'weaver-xtreme' /*adm*/) . '</small>',
1338
- 'id' => 'show_comments_closed', 'type' => 'checkbox',
1339
- 'info' => __('If comments are off, and no comments have been made, show the <em>Comments are closed.</em> message.', 'weaver-xtreme' /*adm*/) ),
1340
- array('name' => __('Author Info BG', 'weaver-xtreme' /*adm*/), 'id' => 'post_author_bgcolor', 'type' => 'ctext',
1341
- 'info' => __('Background color used for Author Bio.', 'weaver-xtreme' /*adm*/)),
1342
- array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Author Bio', 'weaver-xtreme' /*adm*/) . '</small>',
1343
- 'id' => 'hide_author_bio', 'type' => 'checkbox',
1344
- 'info' => __('Hide display of author bio box on Author Archive and Single Post page views.', 'weaver-xtreme' /*adm*/)),
1345
- array('name' => '<small>' . __('Allow comments for attachments', 'weaver-xtreme' /*adm*/) . '</small>',
1346
- 'id' => 'allow_attachment_comments', 'type' => 'checkbox',
1347
- 'info' => __('Allow visitors to leave comments for attachments (usually full size media image - only if comments allowed).', 'weaver-xtreme' /*adm*/))
1348
  );
1349
 
1350
- ?>
1351
- <div class="options-intro">
1352
- <?php _e('<strong>Post Specifics: </strong>
1353
  Options related to <strong>Posts</strong>, including <strong>Background</strong> color, <strong>Columns</strong> displayed
1354
  on blog pages, <strong>Title</strong> options, <strong>Navigation</strong> to earlier and later posts, the post
1355
- <strong>Info Lines</strong>, <strong>Excerpts</strong>, and <strong>Featured Image</strong> handling.', 'weaver-xtreme' /*adm*/); ?>
1356
- <br />
1357
- <div class="options-intro-menu">
1358
- <a href="#post-area"><?php _e('Post Area', 'weaver-xtreme' /*adm*/); ?></a> |
1359
- <a href="#post-title"><?php _e('Post Title', 'weaver-xtreme' /*adm*/);?></a> |
1360
- <a href="#post-layout"><?php _e('Post Layout', 'weaver-xtreme' /*adm*/);?></a> |
1361
- <a href="#excerpts-full-posts"><?php _e('Excerpts / Full Posts', 'weaver-xtreme' /*adm*/);?></a> |
1362
- <a href="#post-navigation"><?php _e('Post Navigation', 'weaver-xtreme' /*adm*/);?></a> |
1363
- <a href="#post-meta-info-areas"><?php _e('Post Meta Info Areas', 'weaver-xtreme' /*adm*/);?></a> |
1364
- <a href="#featured-image-posts"><?php _e('Featured Image - Posts', 'weaver-xtreme' /*adm*/); ?></a> |
1365
- <a href="#more-post-related-options"><?php _e('More Post Related Options', 'weaver-xtreme' /*adm*/); ?></a> |
1366
- <a href="#custom-post-info-lines"><?php _e('Custom Post Info Lines', 'weaver-xtreme' /*adm*/); ?></a>
1367
- </div>
1368
- </div>
1369
- <?php
1370
- weaverx_form_show_options($opts);
1371
- do_action('weaverxplus_admin','post_specifics');
1372
- ?>
1373
- <span style="color:green;"><b><?php _e('Hiding/Enabling Page and Post Comments', 'weaver-xtreme' /*adm*/); ?></b></span>
1374
- <?php
1375
- weaverx_help_link('help.html#LeavingComments',__('Help for Leaving Comments', 'weaver-xtreme' /*adm*/));
1376
- ?>
1377
- <p>
1378
- <?php _e('Controlling "Reply/Leave a Comment" visibility for pages and posts is <strong>not</strong> a theme function.
1379
  It is controlled by WordPress settings.
1380
  Please click the ? just above to see the help file entry!
1381
- (Additional options for comment <em>styling</em> are found on the Content Areas tab.)', 'weaver-xtreme' /*adm*/); ?>
1382
- </p>
1383
- <?php
1384
  }
1385
 
1386
 
1387
  // ======================== Main Options > Footer ========================
1388
  function weaverx_mainopts_footer() {
1389
  $opts = array(
1390
- array( 'type' => 'submit'),
1391
-
1392
- array('name' => __('Footer Options', 'weaver-xtreme' /*adm*/), 'id' => '-admin-generic', 'type' => 'header',
1393
- 'info' => __('Settings for the footer', 'weaver-xtreme' /*adm*/),
1394
- 'help' => 'help.html#FooterOpt'),
 
 
 
 
1395
 
1396
 
1397
- array('name' => __('Footer Area', 'weaver-xtreme' /*adm*/), 'id' => 'footer', 'type' => 'widget_area',
1398
- 'info' => __('Properties for the footer area.', 'weaver-xtreme' /*adm*/)),
1399
- array('name' => __('Footer Links', 'weaver-xtreme' /*adm*/), 'id' => 'footerlink', 'type' => 'link',
1400
- 'info' => __('Color for links in Footer (Uses Standard Link colors if left blank).', 'weaver-xtreme' /*adm*/)),
1401
- array( 'type' => 'submit'),
 
 
 
 
 
 
 
 
1402
 
1403
- array('name' => __('Footer Widget Area', 'weaver-xtreme' /*adm*/), 'id' => 'footer_sb', 'type' => 'widget_area_submit',
1404
- 'info' => __('Properties for the Footer Widget Area.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
1405
 
1406
- array('name' => __('Footer HTML', 'weaver-xtreme' /*adm*/), 'id' => 'footer_html', 'type' => 'widget_area',
1407
- 'info' => __('Add arbitrary HTML to Footer Area (in &lt;div id=\"footer-html\"&gt;)', 'weaver-xtreme' /*adm*/)),
 
 
 
 
1408
 
1409
- array('name' => '<span class="i-left dashicons dashicons-editor-code"></span>' . __('Footer HTML content', 'weaver-xtreme' /*adm*/),
1410
- 'id' => 'footer_html_text', 'type' => 'textarea',
1411
- 'placeholder' => __('Any HTML, including shortcodes.', 'weaver-xtreme' /*adm*/),
1412
- 'info' => __("Add arbitrary HTML", 'weaver-xtreme' /*adm*/), 'val' => 4),
1413
- array( 'type' => 'submit'),
 
 
 
 
1414
  );
1415
 
1416
- ?>
1417
- <div class="options-intro">
1418
- <?php _e('<strong>Footer: </strong> Options affecting the <strong>Footer</strong> area, including <strong>Background</strong>
1419
- color, <strong>Borders</strong>, and the <strong>Copyright</strong> message.', 'weaver-xtreme' /*adm*/); ?>
1420
- <br />
1421
- <div class="options-intro-menu">
1422
- <a href="#footer-area"><?php _e('Footer Area', 'weaver-xtreme' /*adm*/); ?></a> |
1423
- <a href="#footer-widget-area"><?php _e('Footer Widget Area', 'weaver-xtreme' /*adm*/); ?></a> |
1424
- <a href="#footer-html"><?php _e('Footer HTML', 'weaver-xtreme' /*adm*/); ?></a> |
1425
- <a href="#site-copyright"><?php _e('Site Copyright', 'weaver-xtreme' /*adm*/); ?></a>
1426
- </div>
1427
- </div>
1428
- <?php
1429
- weaverx_form_show_options($opts);
1430
- do_action('weaverxplus_admin','footer_opts');
1431
- ?>
1432
  <a id="site-copyright"></a>
1433
- <strong>&copy;</strong>&nbsp;<span style="color:blue;"><b><?php _e('Site Copyright', 'weaver-xtreme' /*adm*/); ?></b></span>
1434
- <br/>
1435
- <small>
1436
- <?php _e('If you fill this in, the default copyright notice in the footer will be replaced with the text here.
1437
  It will not automatically update from year to year.
1438
  Use &amp;copy; to display &copy;.
1439
  You can use other HTML as well.
1440
- Use <span class="style4">&amp;nbsp;</span> to hide the copyright notice. &diams;', 'weaver-xtreme' /*adm*/); ?>
1441
- </small>
1442
- <br />
1443
 
1444
  <span class="dashicons dashicons-editor-code"></span>
1445
- <?php weaverx_textarea(weaverx_getopt('copyright'), 'copyright', 1, ' ', 'width:85%;'); ?>
1446
  <br>
1447
- <label><span class="dashicons dashicons-visibility"></span> <?php _e('Hide Powered By tag:', 'weaver-xtreme' /*adm*/); ?>
1448
- <input type="checkbox" name="<?php weaverx_sapi_main_name('_hide_poweredby'); ?>" id="_hide_poweredby" <?php checked(weaverx_getopt_checked( '_hide_poweredby' )); ?> />
1449
- </label>
1450
- <small><?php _e('Check this to hide the "Proudly powered by" notice in the footer.', 'weaver-xtreme' /*adm*/); ?></small>
1451
- <br /><br />
1452
- <?php _e('You can add other content to the Footer from the Advanced Options:HTML Insertion tab.', 'weaver-xtreme' /*adm*/); ?>
1453
- <?php
1454
  }
1455
 
1456
  // ======================== Main Options > Widget Areas ========================
1457
  function weaverx_mainopts_widgets() {
1458
  $opts = array(
1459
- array( 'type' => 'submit'),
1460
- array('name' => __('Sidebar Options', 'weaver-xtreme' /*adm*/), 'id' => '-screenoptions', 'type' => 'header',
1461
- 'info' => __('Settings affecting main Sidebars and individual widgets', 'weaver-xtreme' /*adm*/),
1462
- 'help' => 'help.html#WidgetAreas'),
1463
-
1464
- array('name' => __('Individual Widgets', 'weaver-xtreme' /*adm*/), 'id' => 'widget', 'type' => 'widget_area',
1465
- 'info' => __('Properties for individual widgets (e.g., Text, Recent Posts, etc.)', 'weaver-xtreme' /*adm*/)),
 
1466
 
1467
- array('name' => __('Widget Title', 'weaver-xtreme' /*adm*/), 'id' => 'widget_title', 'type' => 'titles',
1468
- 'info' => __('Color for Widget Titles.', 'weaver-xtreme' /*adm*/)),
1469
- array('name' => __('Bar under Widget Titles', 'weaver-xtreme' /*adm*/), 'id' => 'widget_title_underline_int', 'type' => 'val_px',
1470
- 'info' => __('Enter size in px if you want a bar under Widget Titles. Leave blank or 0 for no bar.', 'weaver-xtreme' /*adm*/)),
 
 
1471
 
1472
- array ('name' => __('Widget List Bullet', 'weaver-xtreme' /*adm*/),
1473
- 'id' => 'widgetlist_bullet', 'type' => 'select_id',
1474
- 'info' => __('Bullet used for Unordered Lists in Widget areas.', 'weaver-xtreme' /*adm*/),
1475
- 'value' => array(
1476
- array('val' => 'disc', 'desc' => __('Filled Disc (default)', 'weaver-xtreme' /*adm*/)),
1477
- array('val' => 'circle', 'desc' => __('Circle', 'weaver-xtreme' /*adm*/)),
1478
- array('val' => 'square', 'desc' => __('Square', 'weaver-xtreme' /*adm*/)),
1479
- array('val' => 'none', 'desc' => __('None', 'weaver-xtreme' /*adm*/)))
1480
- ),
 
 
 
1481
 
1482
- array('name' => __('Widget Links', 'weaver-xtreme' /*adm*/), 'id' => 'wlink', 'type' => 'link',
1483
- 'info' => __('Color for links in widgets (uses Standard Link colors if left blank).', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
 
 
1484
 
1485
- array( 'type' => 'submit'),
 
 
 
 
 
1486
 
 
1487
 
1488
 
1489
- array('name' => __('Primary Widget Area', 'weaver-xtreme' /*adm*/), 'id' => 'primary', 'type' => 'widget_area_submit',
1490
- 'info' => __('Properties for the Primary (Upper/Left) Sidebar Widget Area.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
1491
 
1492
- array('name' => __('Secondary Widget Area', 'weaver-xtreme' /*adm*/), 'id' => 'secondary', 'type' => 'widget_area_submit',
1493
- 'info' => __('Properties for the Secondary (Lower/Right) Sidebar Widget Area.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
1494
 
1495
- array('name' => __('Top Widget Areas', 'weaver-xtreme' /*adm*/), 'id' => 'top', 'type' => 'widget_area_submit',
1496
- 'info' => __('Properties for all Top Widget areas (Sitewide, Pages, Blog, Archive).', 'weaver-xtreme' /*adm*/)),
 
 
 
 
1497
 
1498
 
1499
- array('name' => __('Bottom Widget Areas', 'weaver-xtreme' /*adm*/), 'id' => 'bottom', 'type' => 'widget_area',
1500
- 'info' => __('Properties for all Bottom Widget areas (Sitewide, Pages, Blog, Archive).', 'weaver-xtreme' /*adm*/)),
 
 
 
 
1501
 
1502
  );
1503
 
1504
- weaverx_form_show_options($opts);
1505
- ?>
1506
- <hr />
1507
  <span style="color:blue;"><b>Define Per Page Extra Widget Areas</b></span>
1508
- <?php
1509
- weaverx_help_link('help.html#PPWidgets','Help for Per Page Widget Areas');
1510
- ?>
1511
- <br/>
1512
- <small>
1513
- <?php _e('You may define extra widget areas that can then be used in the <em>Per Page</em> settings, or in the <em>Weaver Xtreme Plus</em> [widget_area] shortcode.
1514
  Enter a list of one or more widget area names separated by commas.
1515
  Your names should include only letters, numbers, or underscores - no spaces or other special characters.
1516
  The widgets areas will then appear on the Appearance->Widgets menus.
1517
- They can be included on individual pages by adding the name you define here to the "Weaver Xtreme Options For This Page" box on the Edit Page screen. (&diams;)', 'weaver-xtreme' /*adm*/); ?>
1518
- </small>
1519
- <br />
1520
- <?php weaverx_textarea(weaverx_getopt('_perpagewidgets'), '_perpagewidgets', 1, ' ', $style = 'width:60%;', $class='wvrx-edit'); ?>
1521
- <?php
1522
- do_action('weaverxplus_admin','widget_areas');
1523
  }
1524
 
1525
  // ======================== Main Options > Layout ========================
1526
  function weaverx_mainopts_layout() {
1527
- $opts = array( array( 'type' => 'submit'),
1528
- array('name' => __('Sidebar Layout', 'weaver-xtreme' /*adm*/), 'id' => '-welcome-widgets-menus', 'type' => 'header',
1529
- 'info' => __('Sidebar Layout for each type of page ("stack top" used for mobile view)', 'weaver-xtreme' /*adm*/),
1530
- 'help' => 'help.html#layout'),
1531
-
1532
- array('name' => __('Blog, Post, Page Default', 'weaver-xtreme' /*adm*/), 'id' => 'layout_default', 'type' => 'select_id',
1533
- 'info' => __('Select the default theme layout for blog, single post, attachments, and pages.', 'weaver-xtreme' /*adm*/),
1534
- 'value' => array(
1535
- array('val' => 'right', 'desc' => __('Sidebars on Right', 'weaver-xtreme' /*adm*/) ),
1536
- array('val' => 'right-top', 'desc' => __('Sidebars on Right (stack top)', 'weaver-xtreme' /*adm*/) ),
1537
- array('val' => 'left', 'desc' => __(' Sidebars on Left', 'weaver-xtreme' /*adm*/) ),
1538
- array('val' => 'left-top', 'desc' => __(' Sidebars on Left (stack top)', 'weaver-xtreme' /*adm*/) ),
1539
- array('val' => 'split', 'desc' => __('Split - Sidebars on Right and Left', 'weaver-xtreme' /*adm*/) ),
1540
- array('val' => 'split-top', 'desc' => __('Split (stack top)', 'weaver-xtreme' /*adm*/) ),
1541
- array('val' => 'one-column', 'desc' => __('No sidebars, content only', 'weaver-xtreme' /*adm*/) )
1542
- )),
1543
-
1544
- array('name' => __('Archive-like Default', 'weaver-xtreme' /*adm*/), 'id' => 'layout_default_archive', 'type' => 'select_id',
1545
- 'info' => __('Select the default theme layout for all other pages - archives, search, etc.', 'weaver-xtreme' /*adm*/),
1546
- 'value' => array(
1547
- array('val' => 'right', 'desc' => __('Sidebars on Right', 'weaver-xtreme' /*adm*/) ),
1548
- array('val' => 'right-top', 'desc' => __('Sidebars on Right (stack top)', 'weaver-xtreme' /*adm*/) ),
1549
- array('val' => 'left', 'desc' => __(' Sidebars on Left', 'weaver-xtreme' /*adm*/) ),
1550
- array('val' => 'left-top', 'desc' => __(' Sidebars on Left (stack top)', 'weaver-xtreme' /*adm*/) ),
1551
- array('val' => 'split', 'desc' => __('Split - Sidebars on Right and Left', 'weaver-xtreme' /*adm*/) ),
1552
- array('val' => 'split-top', 'desc' => __('Split (stack top)', 'weaver-xtreme' /*adm*/) ),
1553
- array('val' => 'one-column', 'desc' => __('No sidebars, content only', 'weaver-xtreme' /*adm*/) )
1554
- )),
1555
-
1556
- array('name' => __('Page', 'weaver-xtreme' /*adm*/), 'id' => 'layout_page', 'type' => 'select_layout',
1557
- 'info' => __('Layout for normal Pages on your site.', 'weaver-xtreme' /*adm*/),
1558
- 'value' => ''
1559
- ),
1560
- array('name' => __('Blog', 'weaver-xtreme' /*adm*/), 'id' => 'layout_blog', 'type' => 'select_layout',
1561
- 'info' => __('Layout for main blog page. Includes "Page with Posts" Page templates.', 'weaver-xtreme' /*adm*/),
1562
- 'value' => ''
1563
- ),
1564
- array('name' => __('Post Single Page', 'weaver-xtreme' /*adm*/), 'id' => 'layout_single', 'type' => 'select_layout',
1565
- 'info' => __('Layout for Posts displayed as a single page.', 'weaver-xtreme' /*adm*/),
1566
- 'value' => ''
1567
- ),
1568
-
1569
- array('name' => __('Attachments', 'weaver-xtreme' /*adm*/), 'id' => 'layout_image', 'type' => '+select_layout',
1570
- 'info' => __('Layout for attachment pages such as images. (&starf;Plus)', 'weaver-xtreme' /*adm*/),
1571
- 'value' => ''
1572
- ),
1573
-
1574
- array('name' => __('Date Archive', 'weaver-xtreme' /*adm*/), 'id' => 'layout_archive', 'type' => '+select_layout',
1575
- 'info' => __('Layout for archive by date pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/),
1576
- 'value' => ''
1577
- ),
1578
-
1579
- array('name' => __('Category Archive', 'weaver-xtreme' /*adm*/), 'id' => 'layout_category', 'type' => '+select_layout',
1580
- 'info' => __('Layout for category archive pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/),
1581
- 'value' => ''
1582
- ),
1583
- array('name' => __('Tags Archive', 'weaver-xtreme' /*adm*/), 'id' => 'layout_tag', 'type' => '+select_layout',
1584
- 'info' => __('Layout for tag archive pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/),
1585
- 'value' => ''
1586
- ),
1587
-
1588
- array('name' => __('Author Archive</small>', 'weaver-xtreme' /*adm*/), 'id' => 'layout_author', 'type' => '+select_layout',
1589
- 'info' => __('Layout for author archive pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/),
1590
- 'value' => ''
1591
- ),
1592
- array('name' => __('Search Results, 404</small>', 'weaver-xtreme' /*adm*/), 'id' => 'layout_search', 'type' => '+select_layout',
1593
- 'info' => __('Layout for search results and 404 pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/),
1594
- 'value' => ''
1595
- ),
1596
-
1597
- array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Left Sidebar Width', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'left_sb_width_int', 'type' => 'val_percent',
1598
- 'info' => __('Width for Left Sidebar (Default: 25%)', 'weaver-xtreme' /*adm*/),
1599
- 'value' => ''
1600
- ),
1601
- array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Right Sidebar Width', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'right_sb_width_int', 'type' => 'val_percent',
1602
- 'info' => __('Width for Right Sidebar (Default: 25%)', 'weaver-xtreme' /*adm*/),
1603
- 'value' => ''
1604
- ),
1605
- array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Split Left Sidebar Width', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'left_split_sb_width_int', 'type' => 'val_percent',
1606
- 'info' => __('Width for Split Sidebar, Left Side (Default: 25%)', 'weaver-xtreme' /*adm*/),
1607
- 'value' => ''
1608
- ),
1609
- array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Split Right Sidebar Width', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'right_split_sb_width_int', 'type' => 'val_percent',
1610
- 'info' => __('Width for Split Sidebar, Right Side (Default: 25%)', 'weaver-xtreme' /*adm*/),
1611
- 'value' => ''
1612
- ),
1613
- array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span> ' . __('Content Width:', 'weaver-xtreme' /*adm*/), 'type' => 'note',
1614
- 'info' => __('The width of content area automatically determined by sidebar layout and width', 'weaver-xtreme' /*adm*/)),
1615
-
1616
- array('name' => __('Flow color to bottom', 'weaver-xtreme' /*adm*/), 'id' => 'flow_color', 'type' => '+checkbox',
1617
- 'info' => __('If checked, Content and Sidebar bg colors will flow to bottom of the Container (that is, equal heights). You must provide background colors for the Content and Sidebars or the default bg color will be used. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1618
-
1619
- array('name' => __('Alt Page Themes', 'weaver-xtreme' /*adm*/), 'id' => '-editor-codex', 'type' => 'header_area',
1620
- 'info' => __('&starf; Weaver Xtreme Plus (V 3.1.1 or later) allows you to set Alternative Themes for the blog, single, and other archive-like pages.', 'weaver-xtreme' /*adm*/)),
1621
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1622
 
1623
 
1624
  );
1625
  ?>
1626
- <div class="options-intro">
1627
- <strong>Sidebars &amp; Layout: </strong>
1628
- <?php _e('Options affecting <strong>Sidebar Layout</strong> and the main <strong>Sidebar Areas</strong>.
1629
- This includes properties of individual <strong>Widgets</strong>, as well as properties of various <strong>Sidebars</strong>.', 'weaver-xtreme' /*adm*/); ?>
1630
- <br />
1631
- <div class="options-intro-menu">
1632
- <a href="#sidebar-layout"><?php _e('Sidebar Layout', 'weaver-xtreme' /*adm*/); ?></a> |
1633
- <a href="#individual-widgets"><?php _e('Individual Widgets', 'weaver-xtreme' /*adm*/); ?></a> |
1634
- <a href="#primary-widget-area"><?php _e('Primary Widget Area', 'weaver-xtreme' /*adm*/); ?></a> |
1635
- <a href="#secondary-widget-area"><?php _e('Secondary Widget Area', 'weaver-xtreme' /*adm*/); ?></a> |
1636
- <a href="#top-widget-areas"><?php _e('Top Widget Areas', 'weaver-xtreme' /*adm*/); ?></a> |
1637
- <a href="#bottom-widget-areas"><?php _e('Bottom Widget Areas', 'weaver-xtreme' /*adm*/); ?></a>
1638
- </div>
1639
- </div>
1640
- <?php
1641
 
1642
- weaverx_form_show_options($opts);
1643
- do_action('weaverxplus_admin','layout'); // add new layout option?
1644
  }
1645
- ?>
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ } // Exit if accessed directly
5
  /* Weaver Xtreme - admin Main Options
6
  *
7
  * __ added: 12/9/14
10
 
11
  // ======================== Main Options > Top Level ========================
12
  function weaverx_admin_mainopts() {
13
+ if ( ! function_exists( 'weaverx_get_wp_custom_logo_url' ) ) {
14
+ weaverx_alert( __( ' **** WARNING! ****\r\n\r\nYou are using a new Version 3 of the Weaver Xtreme Theme Support Plugin with an older version of the Weaver Xtreme Theme. Please update to the latest Version 3 of the Weaver Xtreme Theme.\r\n\r\nTHIS VERSION DOES NOT WORK WITH OLD VERSIONS OF WEAVER XTREME!' ) );
15
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ?>
17
+ <div id="tabwrap_main" style="padding-left:4px;">
18
+
19
+ <div id="tab-container-main" class='yetiisub'>
20
+ <ul id="tab-container-main-nav" class='yetiisub'>
21
+ <?php
22
+ weaverx_elink( '#asp_genappear', __( 'Wrapping background colors, rounded corners, borders, fade, shadow', 'weaver-xtreme' /*adm*/ ), __( 'Wrapping Areas', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
23
+ weaverx_elink( '#asp_widgets', __( 'Settings for Sidebars and Sidebar Layout', 'weaver-xtreme' /*adm*/ ), __( 'Sidebars &amp; Layout', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
24
+ weaverx_elink( '#asp_full', __( 'Settings to create full width sites', 'weaver-xtreme' /*adm*/ ), __( 'Full Width', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
25
+ weaverx_elink( '#asp_headeropts', __( 'Site Title/Tagline properties, Header Image', 'weaver-xtreme' /*adm*/ ), __( 'Header', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
26
+ weaverx_elink( '#asp_menus', __( 'Menu text and bg colors and other properties; Info Bar properties', 'weaver-xtreme' /*adm*/ ), __( 'Menus', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
27
+ weaverx_elink( '#asp_content', __( 'Text colors and bg, image borders, featured image, other properties related to all content', 'weaver-xtreme' /*adm*/ ), __( 'Content Areas', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
28
+ weaverx_elink( '#asp_postspecific', __( 'Properties related to posts: titles, meta info, navigation, excerpts, featured images, and more', 'weaver-xtreme' /*adm*/ ), __( 'Post Specifics', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
29
+ weaverx_elink( '#asp_footer', __( 'Footer options: bg color, borders, more. Site Copyright', 'weaver-xtreme' /*adm*/ ), __( 'Footer', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
30
+ weaverx_elink( '#asp_custom', __( 'Font settings &amp; Custom Settings', 'weaver-xtreme' /*adm*/ ), __( 'Fonts &amp; Custom', 'weaver-xtreme' /*adm*/ ), '<li>', '</li>' );
31
+ ?>
32
+ </ul>
33
+
34
+ <?php weaverx_tab_title( __( 'Main Options', 'weaver-xtreme' /*adm*/ ), 'help.html#MainOptions', __( 'Help for Main Options', 'weaver-xtreme' /*adm*/ ) ); ?>
35
+
36
+ <div id="asp_genappear" class="tab_mainopt">
37
+ <?php weaverx_mainopts_general(); ?>
38
+ </div>
39
+
40
+ <div id="asp_widgets" class="tab_mainopt">
41
+ <?php
42
+ weaverx_mainopts_layout();
43
+ weaverx_mainopts_widgets();
44
+ ?>
45
+ </div>
46
+
47
+ <div id="asp_full" class="tab_mainopt">
48
+ <?php
49
+ weaverx_mainopts_fullwidth();
50
+ ?>
51
+ </div>
52
+
53
+ <div id="asp_headeropts" class="tab_mainopt">
54
+ <?php weaverx_mainopts_header(); ?>
55
+ </div>
56
+
57
+ <div id="asp_menus" class="tab_mainopt">
58
+ <?php weaverx_mainopts_menus(); ?>
59
+ </div>
60
+
61
+ <div id="asp_content" class="tab_mainopt">
62
+ <?php weaverx_mainopts_content(); ?>
63
+ </div>
64
+
65
+ <div id="asp_postspecific" class="tab_mainopt">
66
+ <?php weaverx_mainopts_posts(); ?>
67
+ </div>
68
+
69
+ <div id="asp_footer" class="tab_mainopt">
70
+ <?php weaverx_mainopts_footer(); ?>
71
+ </div>
72
+
73
+
74
+ <div id="asp_links" class="tab_mainopt">
75
+ <?php weaverx_mainopts_custom(); ?>
76
+ </div>
77
+
78
+ </div> <!-- #tab-container-main -->
79
+ <?php weaverx_sapi_submit(); ?>
80
+ </div> <!-- #tabwrap_main -->
81
+ <script type="text/javascript">
82
+ var tabberMainOpts = new Yetii({
83
+ id: 'tab-container-main',
84
+ tabclass: 'tab_mainopt',
85
+ persist: true
86
+ });
87
+ </script>
88
+ <?php
89
  }
90
 
91
  // ======================== Main Options > Wrapping Areas ========================
92
  function weaverx_mainopts_general() {
93
 
94
+ $font_size = weaverx_getopt_default( 'site_fontsize_int', 16 );
95
 
96
  $opts = array(
97
+ array( 'type' => 'submit' ),
98
+ array(
99
+ 'name' => __( 'Wrapping Areas', 'weaver-xtreme' /*adm*/ ),
100
+ 'id' => '-admin-generic',
101
+ 'type' => 'header',
102
+ 'info' => __( 'Settings for wrapping areas', 'weaver-xtreme' /*adm*/ ),
103
+ 'help' => 'help.html#GenApp',
104
+ ),
105
+ array(
106
+ 'name' => __( 'GLOBAL SETTINGS', 'weaver-xtreme' /*adm*/ ),
107
+ 'type' => 'note',
108
+ 'info' => __( 'These settings control site outer background and the standard link colors.', 'weaver-xtreme' /*adm*/ ),
109
+ ),
110
+ array(
111
+ 'name' => __( 'Site Background Color', 'weaver-xtreme' /*adm*/ ),
112
+ 'id' => 'body_bgcolor',
113
+ 'type' => 'ctext',
114
+ 'info' => __( 'Background color for &lt;body&gt;, wraps entire page.', 'weaver-xtreme' /*adm*/ ),
115
+ ),
116
 
117
+ array(
118
+ 'name' => __( 'Fade Outside BG', 'weaver-xtreme' /*adm*/ ),
119
+ 'id' => 'fadebody_bg',
120
+ 'type' => 'checkbox',
121
+ 'info' => __( 'Will fade the Outside BG color, darker at top to lighter at bottom.', 'weaver-xtreme' /*adm*/ ),
122
+ ),
123
+ array(
124
+ 'name' => __( 'Full Browser Height', 'weaver-xtreme' /*adm*/ ),
125
+ 'id' => 'full_browser_height',
126
+ 'type' => 'checkbox',
127
+ 'info' => __( 'For short pages, add extra padding to bottom of content to force full browser height.', 'weaver-xtreme' /*adm*/ ),
128
+ ),
129
+ array(
130
+ 'name' => __( 'Standard Links', 'weaver-xtreme' /*adm*/ ),
131
+ 'id' => 'link',
132
+ 'type' => 'link',
133
+ 'info' => __( 'Global default for link typography ( not including menus and titles ). Set Bold, Italic, and Underline by setting those options for specific areas rather than globally to have more control.', 'weaver-xtreme' /*adm*/ ),
134
+ ),
135
 
136
+ // array('name' => '#070' . __('No Auto-Underline Links', 'weaver-xtreme' /*adm*/), 'id' => 'mobile_nounderline', 'type' => 'checkbox',
137
+ // 'info' => __('Underlined links are easier to use on most mobile devices. This will disable auto-underlined links.', 'weaver-xtreme' /*adm*/)),
138
 
139
+ array(
140
+ 'name' => __( 'Current Base Font Size:', 'weaver-xtreme' /*adm*/ ),
141
+ 'type' => 'note',
142
+ 'info' => '<span style="font-size:' . $font_size . 'px;">' . $font_size . __( 'px.', 'weaver-xtreme' /*adm*/ ) . '</span> ' . __( 'Change on Custom Tab', 'weaver-xtreme' /*adm*/ ),
143
+ ),
144
+ array( 'type' => 'submit' ),
145
 
146
 
147
+ array(
148
+ 'name' => __( 'Wrapper Area', 'weaver-xtreme' /*adm*/ ),
149
+ 'id' => 'wrapper',
150
+ 'type' => 'widget_area_submit',
151
+ 'info' => __( 'Wrapper wraps entire site (CSS id: #wrapper). Colors and font settings will be the default values for all other areas.', 'weaver-xtreme' /*adm*/ ),
152
+ ),
153
 
154
+ array(
155
+ 'name' => __( 'Container Area', 'weaver-xtreme' /*adm*/ ),
156
+ 'id' => 'container',
157
+ 'type' => 'widget_area_submit',
158
+ 'info' => __( 'Container (#container div) wraps content and sidebars.', 'weaver-xtreme' /*adm*/ ),
159
+ ),
160
 
161
  );
162
 
163
+ ?>
164
 
165
+ <div class="options-intro"><?php _e( '<strong>Wrapping Areas:</strong>
166
  The options on this tab affect the overall site appearance.
167
  The main <strong>Wrapper Area</strong> wraps the entire site, and is used to specify default text and background colors, site width, font families, and more.
168
+ With <em>Weaver Xtreme Plus</em>, you can also specify background images for various areas of your site.', 'weaver-xtreme' /*adm*/ ); ?>
169
+ <div class="options-intro-menu"><a href="#wrapping-areas"><?php _e( 'Wrapping Areas', 'weaver-xtreme' /*adm*/ ); ?></a> |
170
+ <a href="#wrapper-area"><?php _e( 'Wrapper Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
171
+ <a href="#container-area"><?php _e( 'Container Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
172
+ <a href="#background-images"><?php _e( 'Background Image (X-Plus)', 'weaver-xtreme' /*adm*/ ); ?></a>
173
+ </div>
174
+ </div>
175
+ <?php
176
+ weaverx_form_show_options( $opts );
177
+ do_action( 'weaverxplus_admin', 'general_appearance' );
178
  }
179
 
180
+ function wvrx_ts_new_xp_opt( $vers, $opt ) {
181
  // don't support new xp opts in old xp
182
+ if ( function_exists( 'weaverxplus_plugin_installed' ) && version_compare( WEAVER_XPLUS_VERSION, $vers, '>=' ) ) {
183
  return $opt;
184
+ }
185
+
186
+ return array( 'name' => $opt['name'], 'info' => __( 'This option requires X-Plus Version greater or equal to ', 'weaver-xtreme' ) . $vers, 'type' => 'note' );
187
  }
188
 
189
  // ======================== Main Options > Custom ========================
190
 
191
  function weaverx_mainopts_custom() {
192
  $opts = array(
193
+ array( 'type' => 'submit' ),
194
+ array(
195
+ 'name' => __( 'Custom Options', 'weaver-xtreme' /*adm*/ ),
196
+ 'id' => '-admin-generic',
197
+ 'type' => 'header',
198
+ 'info' => __( 'Set various global custom values.', 'weaver-xtreme' /*adm*/ ),
199
+ 'help' => 'help.html#Custom',
200
+ ),
201
+
202
+ array(
203
+ 'name' => __( 'Various Custom Values', 'weaver-xtreme' /*adm*/ ),
204
+ 'id' => '-admin-settings',
205
+ 'type' => 'subheader',
206
+ 'info' => __( 'Adjust various global settings', 'weaver-xtreme' /*adm*/ ),
207
+ ),
208
+
209
+ array(
210
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span>' . __( 'Smart Margin Width', 'weaver-xtreme' /*adm*/ ),
211
+ 'id' => 'smart_margin_int',
212
+ 'type' => '+val_percent',
213
+ 'info' => __( 'Width used for smart column margins for Sidebars and Content Area. (Default: 1%) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
214
+ ),
215
+
216
+ array(
217
+ 'name' => __( 'Border Color', 'weaver-xtreme' /*adm*/ ),
218
+ 'id' => 'border_color',
219
+ 'type' => 'color',
220
+ 'info' => __( 'Global color of borders. (Default: #222)', 'weaver-xtreme' /*adm*/ ),
221
+ ),
222
+ array(
223
+ 'name' => '<small>' . __( 'Border Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
224
+ 'id' => 'border_width_int',
225
+ 'type' => 'val_px',
226
+ 'info' => __( 'Global Width of borders. (Default: 1px)', 'weaver-xtreme' /*adm*/ ),
227
+ ),
228
+ array(
229
+ 'name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __( 'Border Style', 'weaver-xtreme' /*adm*/ ) . '</small>',
230
+ 'id' => 'border_style',
231
+ 'type' => '+select_id',
232
+ 'info' => __( 'Style of borders - width needs to be > 1 for some styles to work correctly (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
233
  'value' => array(
234
+ array( 'val' => 'solid', 'desc' => __( 'Solid', 'weaver-xtreme' /*adm*/ ) ),
235
+ array( 'val' => 'dotted', 'desc' => __( 'Dotted', 'weaver-xtreme' /*adm*/ ) ),
236
+ array( 'val' => 'dashed', 'desc' => __( 'Dashed', 'weaver-xtreme' /*adm*/ ) ),
237
+ array( 'val' => 'double', 'desc' => __( 'Double', 'weaver-xtreme' /*adm*/ ) ),
238
+ array( 'val' => 'groove', 'desc' => __( 'Groove', 'weaver-xtreme' /*adm*/ ) ),
239
+ array( 'val' => 'ridge', 'desc' => __( 'Ridge', 'weaver-xtreme' /*adm*/ ) ),
240
+ array( 'val' => 'inset', 'desc' => __( 'Inset', 'weaver-xtreme' /*adm*/ ) ),
241
+ array( 'val' => 'outset', 'desc' => __( 'Outset', 'weaver-xtreme' /*adm*/ ) ),
242
+ ),
243
+ ),
244
 
245
+ array(
246
+ 'name' => __( 'Corner Radius', 'weaver-xtreme' /*adm*/ ),
247
+ 'id' => 'rounded_corners_radius',
248
+ 'type' => '+val_px',
249
+ 'info' => __( 'Controls how "round" corners are. Specify a value (5 to 15 look best) for corner radius. (Default: 8) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
250
+ ),
251
 
252
+ array(
253
+ 'name' => __( 'Hide Menu/Link Tool Tips', 'weaver-xtreme' /*adm*/ ),
254
+ 'id' => 'hide_tooltip',
255
+ 'type' => '+checkbox',
256
+ 'info' => __( 'Hide the tool tip pop up over all menus and links. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
257
+ ),
258
 
259
 
260
+ array(
261
+ 'name' => __( 'Custom Shadow', 'weaver-xtreme' /*adm*/ ),
262
+ 'id' => 'custom_shadow',
263
+ 'type' => '+widetext',
264
+ 'info' => __( 'Specify full <em>box-shadow</em> CSS rule, e.g., <em>{box-shadow: 0 0 3px 1px rgba(0,0,0,0.25);}</em> (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
265
+ ),
266
 
267
+ array( 'type' => 'submit' ),
268
 
269
+ array(
270
+ 'name' => __( 'Custom CSS', 'weaver-xtreme' /*adm*/ ),
271
+ 'id' => 'custom_css',
272
+ 'type' => 'custom_css',
273
+ 'info' => __( 'Create Custom CSS Rules', 'weaver-xtreme' /*adm*/ ),
274
+ ),
275
 
276
+ array( 'type' => 'submit' ),
277
 
278
 
279
+ array(
280
+ 'name' => __( 'Fonts', 'weaver-xtreme' /*adm*/ ),
281
+ 'id' => '-editor-textcolor',
282
+ 'type' => 'header',
283
+ 'info' => __( 'Font Base Sizes', 'weaver-xtreme' /*adm*/ ),
284
+ 'help' => 'font-demo.html',
285
  ),
286
 
287
+ array(
288
+ 'name' => __( 'Site Base Font Size', 'weaver-xtreme' /*adm*/ ),
289
+ 'id' => 'site_fontsize_int',
290
+ 'type' => 'val_px',
291
+ 'info' => __( 'Base font size of standard text. This value determines the default medium font size. Note that visitors can change their browser\'s font size, so final font size can vary, as expected. (Default: 16px)', 'weaver-xtreme' /*adm*/ ),
292
+ ),
293
 
294
+ array(
295
+ 'name' => __( 'Site Base Line Height', 'weaver-xtreme' /*adm*/ ),
296
+ 'id' => 'site_line_height_dec',
297
+ 'type' => '+val_num',
298
+ 'info' => __( 'Set the Base line-height. Most other line heights based on this multiplier. (Default: 1.5 - no units) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
299
+ ),
300
 
301
+ array(
302
+ 'name' => '<small>' . __( 'Site Base Font Size - Small Tablets', 'weaver-xtreme' /*adm*/ ) . '</small>',
303
+ 'id' => 'site_fontsize_tablet_int',
304
+ 'type' => '+val_px',
305
+ 'info' => __( 'Small Tablet base font size of standard text. (Default medium font size: 16px) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
306
+ ),
307
+ array(
308
+ 'name' => '<small>' . __( 'Site Base Font Size - Phones', 'weaver-xtreme' /*adm*/ ) . '</small>',
309
+ 'id' => 'site_fontsize_phone_int',
310
+ 'type' => '+val_px',
311
+ 'info' => __( 'Phone base font size of standard text. (Default medium font size: 16px) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
312
+ ),
313
 
314
+ array(
315
+ 'name' => __( 'Custom Font Size A', 'weaver-xtreme' /*adm*/ ),
316
+ 'id' => 'custom_fontsize_a',
317
+ 'type' => '+val_em',
318
+ 'info' => __( 'Specify font size in em for Custom Size A (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
319
+ ),
320
+ array(
321
+ 'name' => __( 'Custom Font Size B', 'weaver-xtreme' /*adm*/ ),
322
+ 'id' => 'custom_fontsize_b',
323
+ 'type' => '+val_em',
324
+ 'info' => __( 'Specify font size in em for Custom Size B (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
325
+ ),
326
 
327
+ array(
328
+ 'name' => '<small>' . __( 'Disable Google Font Integration', 'weaver-xtreme' /*adm*/ ) . '</small>',
329
+ 'id' => 'disable_google_fonts',
330
+ 'type' => '+checkbox',
331
+ 'info' => __( '<strong>ADVANCED OPTION!</strong> <em>Be sure you understand the consequences of this option.</em> By disabling Google Font Integration, the Google Fonts definitions will <strong>not</strong> be loaded for your site. <strong style="color:red;font-weight:bold;">Please note:</strong> Any previously selected Google Font Families will revert to generic serif, sans, mono, and script fonts.', 'weaver-xtreme' ),
332
+ ),
333
 
334
+ array( 'type' => 'submit' ),
335
 
336
  );
337
  ?>
338
+ <div class="options-intro"><strong><?php _e( 'Custom &amp; Fonts:', 'weaver-xtreme' /*adm*/ ); ?> </strong>
339
+ <?php _e( 'Set values for Custom options and Fonts: Smart Margin, Borders, Corners, Shadows, Custom CSS, and Fonts', 'weaver-xtreme' /*adm*/ ); ?>
340
+ <br/>
341
+ <div class="options-intro-menu">
342
+ <a href="#various-custom-values"><?php _e( 'Various Custom Values', 'weaver-xtreme' /*adm*/ ); ?></a> |
343
+ <a href="#custom-css-rules"><?php _e( 'Custom CSS Rules', 'weaver-xtreme' /*adm*/ ); ?></a> |
344
+ <a href="#fonts">Fonts</a>
345
+ </div>
346
  </div>
347
+ <?php
348
+ weaverx_form_show_options( $opts );
349
 
350
+ do_action( 'weaverxplus_admin', 'fonts' );
351
  }
352
 
353
  // ======================== Main Options > Full Width ========================
355
  function weaverx_mainopts_fullwidth() {
356
 
357
  $opts = array(
358
+ array( 'type' => 'submit' ),
359
+ array(
360
+ 'name' => __( 'Full Width Site', 'weaver-xtreme' /*adm*/ ),
361
+ 'id' => '-editor-justify',
362
+ 'type' => 'header',
363
+ 'info' => __( 'Options to easily create full width site designs', 'weaver-xtreme' /*adm*/ ),
364
+ 'help' => 'help.html#FullWidth',
365
+ ),
 
 
 
 
 
 
 
 
 
 
366
 
367
 
368
+ array(
369
+ 'name' => __( 'One-Step Site Layout', 'weaver-xtreme' /*adm*/ ),
370
+ 'id' => 'site_layout',
371
+ 'type' => 'select_id',
372
+ 'info' => __( 'Easiest way to set overall site width layout. Settings other than Custom or blank <strong>automatically</strong> set and clear other Extend BG and Stretch Width Options. Use Custom to enable manual Custom Full Width Options. You can also use <em>Full</em> and <em>Wide Align</em> options for individual areas to enhance these one-step settings.', 'weaver-xtreme' /*adm*/ ),
373
+ 'value' => array(
374
+ array( 'val' => '', 'desc' => '' ),
375
+ array( 'val' => 'fullwidth', 'desc' => __( 'Full Width - Extends BG to full width', 'weaver-xtreme' ) ),
376
+ array( 'val' => 'stretched', 'desc' => __( 'Stretched - Expand to full width', 'weaver-xtreme' ) ),
377
+ array( 'val' => 'custom', 'desc' => __( 'Traditional - Use Traditional Width Options', 'weaver-xtreme' ) ),
378
+ array( 'val' => 'clear', 'desc' => __( 'Clear One-Step Layout Settings', 'weaver-xtreme' ) )
379
+ ),
380
+ ),
381
+ );
382
 
383
 
384
+ $opts[] = array(
385
+ 'name' => __( 'Wide and Full Alignment', 'weaver-xtreme' /*adm*/ ),
386
+ 'id' => '-admin-appearance3',
387
+ 'type' => 'header_area',
388
+ 'info' => __( 'Many wrapping areas and other items include Full and Wide alignment for a different way to get full or wide width.', 'weaver-xtreme' /*adm*/ ),
389
+ );
390
+ $opts[] = array(
391
+ 'name' => '<small>' . __( 'Align Full and Wide', 'weaver-xtreme' /*adm*/ ) . '</small>',
392
+ 'type' => 'note',
393
+ 'info' => __( 'Two new alignment classes, .alignwide and .alignfull are supported by Weaver Xtreme. Most options with the Align option include options for full and wide alignment. Using a width alignment option will extend the full item, including content, to the specified width.', 'weaver-xtreme' /*adm*/ ),
394
+ );
395
 
396
 
397
+ $opts[] = array(
398
+ 'name' => __( 'Extend BG Attributes to Full Width', 'weaver-xtreme' /*adm*/ ),
399
+ 'id' => '-editor-code',
400
+ 'type' => 'header_area',
401
+ 'info' => __( 'The Extend BG Attributes options in this section <em>retain the original content width</em>, while <em>extending the area\'s Background attributes to full width</em>. These includes BG color, BG image, and borders, for example. IMPORTANT: Extend options override wide and full alignment options.', 'weaver-xtreme' /*adm*/ ),
402
+ );
403
 
404
 
405
+ $extend = array(
406
+ 'container' => array( __( 'Container Area Extend BG', 'weaver-xtreme' ), __( 'Extend Container Area BG Attributes to full width.', 'weaver-xtreme' ) ),
407
+ 'header' => array( __( 'Header Area Extend BG', 'weaver-xtreme' ), __( ' Extend Header Area BG Attributes to full width.', 'weaver-xtreme' ) ),
408
+ 'header_sb' => array( __( 'Header Widget Area Extend BG', 'weaver-xtreme' ), __( 'Extend Header Widget Area BG Attributes to full width.', 'weaver-xtreme' ) ),
409
+ 'header_html' => array( __( 'Header HTML Area Extend BG', 'weaver-xtreme' ), __( 'Extend Header HTML Area BG Attributes to full width.', 'weaver-xtreme' ) ),
410
+ 'm_primary' => array( __( 'Primary Menu Extend BG', 'weaver-xtreme' ), __( 'Extend Primary Menu BG Attributes to full width, keep menu items constrained to theme width.', 'weaver-xtreme' ) ),
411
+ 'm_secondary' => array( __( 'Secondary Menu Extend BG', 'weaver-xtreme' ), __( 'Extend Secondary Menu BG Attributes to full width, keep menu items constrained to theme width.', 'weaver-xtreme' ) ),
412
+ 'infobar' => array( __( 'Info Bar Extend BG', 'weaver-xtreme' ), __( 'Extend Info Bar BG Attributes to full width.', 'weaver-xtreme' ) ),
413
  //'content' => array( __('Content Area Fullwidth BG', 'weaver-xtreme'), __('Extend Content Area BG Attributes to full width.','weaver-xtreme' )),
414
+ 'post' => array( __( 'Post Area Extend BG', 'weaver-xtreme' ), __( 'Extend each Post Area BG Attributes to full width.', 'weaver-xtreme' ) ),
415
+ 'footer' => array( __( 'Footer Area Extend BG', 'weaver-xtreme' ), __( 'Extend Footer Area BG Attributes to full width.', 'weaver-xtreme' ) ),
416
+ 'footer_sb' => array( __( 'Footer Widget Area Extend BG', 'weaver-xtreme' ), __( 'Extend Footer Widget Area BG Attributes to full width.', 'weaver-xtreme' ) ),
417
+ 'footer_html' => array( __( 'Footer HTML Area Extend BG', 'weaver-xtreme' ), __( 'Extend Footer HTML Area BG Attributes to full width.', 'weaver-xtreme' ) ),
418
 
419
  );
420
 
421
+ foreach ( $extend as $id => $vals ) {
422
  $type = 'checkbox';
423
+ if ( $id == 'm_extra' ) {
424
  $type = '+checkbox';
425
+ }
426
+ $opts[] = array(
427
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . $vals[0],
428
+ 'id' => $id . '_extend_width',
429
+ 'type' => $type,
430
+ 'info' => $vals[1],
431
+ );
432
  }
433
 
434
 
435
+ $opts[] = array(
436
+ 'name' => __( 'Stretch Areas (Expand)', 'weaver-xtreme' /*adm*/ ),
437
+ 'id' => '-editor-expand',
438
+ 'type' => 'header_area',
439
+ 'info' => __( 'This section has options that let you stretch or expand selected content areas of your site to the full browser width. The content will be responsively displayed - and fully occupy the browser window.', 'weaver-xtreme' /*adm*/ ),
440
+ );
441
+ $opts[] = array(
442
+ 'name' => '<small>' . __( 'These Options OBSOLETE', 'weaver-xtreme' /*adm*/ ) . '</small>',
443
+ 'type' => 'note',
444
+ 'info' => __( 'Due to the added support for Wide and Full Alignment, the Stretch options are essentially obsolete. Please use the Full and Wide align options available for most of these Stretch items.', 'weaver-xtreme' /*adm*/ ),
445
+ );
446
 
447
+ $opts[] = array(
448
+ 'name' => '<span class="i-left dashicons dashicons-editor-expand"></span>' . __( 'Entire Site Full Width', 'weaver-xtreme' /*adm*/ ),
449
+ 'id' => 'wrapper_fullwidth',
450
+ 'type' => 'checkbox',
451
+ 'info' => __( 'Checking this option will display the <strong>ENTIRE SITE</strong> in the full width of the browser. This option overrides the <em>Theme Width</em> option on the <em>Wrapping Areas : Wrapper Area</em> menu.', 'weaver-xtreme' /*adm*/ ),
452
+ );
453
 
454
 
455
+ $stretch = array(
456
+ 'header' => array( __( 'Header Area Stretch', 'weaver-xtreme' ), __( 'Stretch Header Area to full width. This will include all other Header Area sub-areas as well.', 'weaver-xtreme' ) ),
457
+ 'header-image' => array( __( 'Header Image Stretch', 'weaver-xtreme' ), __( 'Stretch Header Image to full width.', 'weaver-xtreme' ) ),
458
+ 'site_title' => array( __( 'Site Title/Tagline Stretch', 'weaver-xtreme' ), __( 'This option includes the Site Title, Tagline, Search Button, and MiniMenu.', 'weaver-xtreme' ) ),
459
+ 'header-widget-area' => array( __( 'Header Widget Area Stretch', 'weaver-xtreme' ), __( 'Stretch Header Widget Area to full width.', 'weaver-xtreme' ) ),
460
+ 'header-html' => array( __( 'Header HTML Area Stretch', 'weaver-xtreme' ), __( 'Stretch Header HTML Area to full width.', 'weaver-xtreme' ) ),
461
+ 'm_primary' => array( __( 'Primary Menu Stretch', 'weaver-xtreme' ), __( 'Stretch Primary Menu to full width.', 'weaver-xtreme' ) ),
462
+ 'm_secondary' => array( __( 'Secondary Menu Stretch', 'weaver-xtreme' ), __( 'Stretch Secondary Menu to full width.', 'weaver-xtreme' ) ),
463
+ 'container' => array( __( 'Container Area Stretch', 'weaver-xtreme' ), __( 'Stretch Container Area to full width.', 'weaver-xtreme' ) ),
464
+ 'infobar' => array( __( 'Info Bar Stretch', 'weaver-xtreme' ), __( 'Stretch Info Bar to full width.', 'weaver-xtreme' ) ),
465
+ 'post' => array( __( 'Post Area Stretch', 'weaver-xtreme' ), __( 'Stretch Info Bar to full width.', 'weaver-xtreme' ) ),
466
+ 'footer' => array( __( 'Footer Area Stretch', 'weaver-xtreme' ), __( 'Checking this option will automatically include the other Footer Area Stretch options as well.', 'weaver-xtreme' ) ),
467
+ 'footer_sb' => array( __( 'Footer Widget Area Stretch', 'weaver-xtreme' ), __( 'Stretch Footer Widget Area to full width.', 'weaver-xtreme' ) ),
468
+ 'footer_html' => array( __( 'Footer HTML Area Stretch', 'weaver-xtreme' ), __( 'Stretch Footer HTML Area to full width.', 'weaver-xtreme' ) ),
469
+ 'site-ig-wrap' => array( __( 'Footer Copyright Area Stretch', 'weaver-xtreme' ), __( 'Stretch Footer Copyright Area to full width.', 'weaver-xtreme' ) ),
470
 
471
  );
472
 
473
+ foreach ( $stretch as $id => $vals ) {
474
+ $opts[] = array(
475
+ 'name' => '<span class="i-left dashicons dashicons-editor-expand"></span>' . $vals[0],
476
+ 'id' => 'expand_' . $id,
477
+ 'type' => 'checkbox',
478
+ 'info' => $vals[1],
479
+ );
480
  }
481
 
482
 
483
+ $opts[] = array(
484
+ 'name' => __( 'Extend BG Color', 'weaver-xtreme' /*adm*/ ),
485
+ 'id' => '-admin-appearance',
486
+ 'type' => 'header_area',
487
+ 'info' => __( 'These options, available with Weaver Xtreme Plus, allow you to stretch the BG color of various area to full width. This is different than the Extend BG Attributes in that only the color is extended, and that color can be different than the content. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
488
+ );
489
 
490
 
491
+ $extend = array(
492
 
493
+ 'header' => array( __( 'Header Area Extend BG Color', 'weaver-xtreme' ), __( 'Extend Header Area BG Color to full width.', 'weaver-xtreme' ) ),
494
+ 'm_primary' => array( __( 'Primary Menu Extend BG', 'weaver-xtreme' ), __( 'Extend Primary Menu BG Color to full width.', 'weaver-xtreme' ) ),
495
+ 'm_secondary' => array( __( 'Secondary Menu Extend BG', 'weaver-xtreme' ), __( 'Extend Secondary Menu BG Color to full width.', 'weaver-xtreme' ) ),
496
+ 'm_extra' => array( __( 'Extra Menu Extend BG', 'weaver-xtreme' ), __( 'Extend Extra Menu BG Color to full width.', 'weaver-xtreme' ) ),
497
+ 'container' => array( __( 'Container Extend BG', 'weaver-xtreme' ), __( 'Extend Container Area BG Color to full width.', 'weaver-xtreme' ) ),
498
+ 'content' => array( __( 'Content Extend BG', 'weaver-xtreme' ), __( 'Extend Content Area BG Color to full width.', 'weaver-xtreme' ) ),
499
+ 'footer' => array( __( 'Footer Extend BG', 'weaver-xtreme' ), __( 'Extend Footer Area BG Color to full width.', 'weaver-xtreme' ) ),
500
  );
501
 
502
+ foreach ( $extend as $id => $vals ) {
503
+ $opts[] = array(
504
+ 'name' => $vals[0],
505
+ 'id' => $id . '_extend_bgcolor',
506
+ 'type' => '+color',
507
+ 'info' => $vals[1] . ' (&starf;Plus)',
508
+ );
509
  }
510
 
511
 
512
+ ?>
513
+ <div class="options-intro">
514
+ <?php _e( '<strong>Full Width:</strong> Options to create full width sites.', 'weaver-xtreme' /*adm*/ ); ?><p>
515
+ <?php _e( '<strong style="color:red;">IMPORTANT NOTE:</strong> A better way to create Full and Wide Sites is to use Align Full or Align Wide on the four major areas: Wrapper, Header, Container, and the Footer. The new Left/Right Padding in percent is available for responsive padding with these areas.', 'weaver-xtreme' ); ?>
516
+ </p></div>
517
+ <?php
518
+ weaverx_form_show_options( $opts );
519
 
520
 
521
  }
525
 
526
  $wp_logo = weaverx_get_wp_custom_logo_url();
527
 
528
+ if ( $wp_logo ) {
529
  $wp_logo_html = "<img src='{$wp_logo}' style='max-height:16px;margin-left:10px;' />";
530
+ } else {
531
+ $wp_logo_html = __( 'Not set', 'weaver-xtreme' );
532
+ }
533
 
534
 
535
  $opts = array(
536
+ array( 'type' => 'submit' ),
537
+ array(
538
+ 'name' => __( 'Header Options', 'weaver-xtreme' /*adm*/ ),
539
+ 'id' => '-admin-generic',
540
+ 'type' => 'header',
541
+ 'info' => __( 'Options affecting site Header', 'weaver-xtreme' /*adm*/ ),
542
+ 'help' => 'help.html#HeaderOpt',
543
+ ),
544
 
545
 
546
+ array(
547
+ 'name' => __( 'Header Area', 'weaver-xtreme' /*adm*/ ),
548
+ 'id' => 'header',
549
+ 'type' => 'widget_area',
550
+ 'info' => __( 'The Header Area includes: menu bars, standard header image, title, tagline, header widget area, header HTML area', 'weaver-xtreme' /*adm*/ ),
551
+ ),
552
 
553
+ array( 'name' => __( 'Header Other options', 'weaver-xtreme' ), 'type' => 'break' ),
554
 
555
+ array(
556
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __( 'Hide Search on Header', 'weaver-xtreme' /*adm*/ ),
557
+ 'id' => 'header_search_hide',
558
+ 'type' => 'select_hide',
559
+ 'info' => __( 'Selectively hide the Search Box Button on top right of header', 'weaver-xtreme' /*adm*/ ),
560
+ ),
561
+ array(
562
+ 'name' => '<small>' . __( 'Search Area Options:', 'weaver-xtreme' /*adm*/ ) . '</small>',
563
+ 'type' => 'note',
564
+ 'info' => __( 'Specify search icon, text and background colors Search section of Content Areas tab.', 'weaver-xtreme' /*adm*/ ),
565
+ ),
566
 
567
+ array( 'type' => 'submit' ),
568
 
569
+ array(
570
+ 'name' => __( 'Header Image', 'weaver-xtreme' /*adm*/ ),
571
+ 'id' => '-format-image',
572
+ 'type' => 'subheader',
573
+ 'info' => __( 'Settings related to standard header image (Set on Appearance&rarr;Header)', 'weaver-xtreme' /*adm*/ ),
574
+ ),
575
 
576
+ array(
577
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __( 'Hide Header Image', 'weaver-xtreme' /*adm*/ ),
578
+ 'id' => 'hide_header_image',
579
+ 'type' => 'select_hide',
580
+ 'info' => __( 'Check to selectively hide standard header image', 'weaver-xtreme' /*adm*/ ),
581
+ ),
582
 
583
+ array(
584
+ 'name' => '<small>' . __( 'Suggested Header Image Height', 'weaver-xtreme' /*adm*/ ) . '</small>',
585
+ 'id' => 'header_image_height_int',
586
+ 'type' => 'val_px',
587
+ 'info' => __( 'Change the suggested height of the Header Image. This only affects the clipping window on the Appearance:Header page. Header images will be responsively sized. If used with <em>Header Image Rendering</em>, this value will be used to set the minimum height of the BG image. (Default: 188px)', 'weaver-xtreme' /*adm*/ ),
588
+ ),
589
 
590
+ wvrx_ts_new_xp_opt( '3.0', // >= 3.0
591
+ array(
592
+ 'name' => __( 'Header Image Rendering', 'weaver-xtreme' /*adm*/ ) . '</small>',
593
+ 'id' => 'header_image_render',
594
+ 'type' => '+select_id', //code
595
+ 'info' => __( 'How to render header image: as img in header or as header area bg image. When rendered as a BG image, other options such as moving Title/Tagline or having image link to home page are not meaningful. (Default: &lt;img&gt; in header div) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
596
+ 'value' => array(
597
+ array( 'val' => 'header-as-img', 'desc' => __( 'As img in header', 'weaver-xtreme' /*adm*/ ) ),
598
+ array( 'val' => 'header-as-bg', 'desc' => __( 'As static BG image', 'weaver-xtreme' /*adm*/ ) ),
599
+ array( 'val' => 'header-as-bg-responsive', 'desc' => __( 'As responsive BG image', 'weaver-xtreme' /*adm*/ ) ),
600
+ array( 'val' => 'header-as-bg-parallax', 'desc' => __( 'As parallax BG image', 'weaver-xtreme' /*adm*/ ) ),
601
+
602
+ ),
603
+ ) ),
604
+
605
+ array(
606
+ 'name' => '<small>' . __( 'Minimum Header Height', 'weaver-xtreme' /*adm*/ ) . '</small>',
607
+ 'id' => 'header_min_height',
608
+ 'type' => '+val_px',
609
+ 'info' => __( 'Set Minimum Height for Header Area. Most useful used with Parallax Header BG Image. Adding Top Margin to Primary Menu bar can also add height. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
610
+ ),
611
 
 
612
 
613
+ array(
614
+ 'name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __( 'Maximum Image Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
615
+ 'id' => 'header_image_max_width_dec',
616
+ 'type' => '+val_percent',
617
+ 'info' => __( 'Maximum width of Image (Default: 100%) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
618
+ ),
619
 
620
+ array(
621
+ 'name' => '<small>' . __( 'Use Actual Image Size', 'weaver-xtreme' /*adm*/ ) . '</small>',
622
+ 'id' => 'header_actual_size',
623
+ 'type' => '+checkbox',
624
+ 'info' => __( 'Check to use actual header image size. (Default: theme width) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
625
+ ),
626
 
627
+ array(
628
+ 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __( 'Align Header Image', 'weaver-xtreme' /*adm*/ ) . '</small>',
629
+ 'id' => 'header_image_align',
630
+ 'type' => 'align',
631
+ 'info' => __( 'How to align header image. Wide and Full do not apply to BG header image.', 'weaver-xtreme' /*adm*/ ),
632
+ ),
633
 
634
+ array(
635
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Header Image Front Page', 'weaver-xtreme' /*adm*/ ) . '</small>',
636
+ 'id' => 'hide_header_image_front',
637
+ 'type' => 'checkbox',
638
+ 'info' => __( 'Check to hide display of standard header image on front page only.', 'weaver-xtreme' /*adm*/ ),
639
+ ),
640
 
641
+ array(
642
+ 'name' => '<span class="i-left">{ }</span> <small>' . __( 'Add Classes', 'weaver-xtreme' /*adm*/ ) . '</small>',
643
+ 'id' => 'header_image_add_class',
644
+ 'type' => '+widetext',
645
+ 'info' => '<em>' . __( 'Header Image', 'weaver-xtreme' /*adm*/ ) . '</em>' . __( ': Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
646
+ ),
647
 
648
+ array(
649
+ 'name' => '<small>' . __( 'Header Image Links to Site', 'weaver-xtreme' /*adm*/ ) . '</small>',
650
+ 'id' => 'link_site_image',
651
+ 'type' => 'checkbox',
652
+ 'info' => __( 'Check to add a link to site home page for Header Image. Note: If used with <em>Move Title/Tagline over Image</em>, parts of the header image will not be clickable.', 'weaver-xtreme' /*adm*/ ),
653
+ ),
654
 
655
+ array(
656
+ 'name' => '<small>' . __( 'Alternate Header Images:', 'weaver-xtreme' /*adm*/ ) . '</small>',
657
+ 'type' => 'note',
658
+ 'info' => __( 'Specify alternate header images using the <em>Featured Image Location</em> options on the <em>Content Areas</em> tab for pages, or the <em>Post Specifics</em> tab for single post views.', 'weaver-xtreme' /*adm*/ ),
659
+ ),
660
 
661
+ array(
662
+ 'name' => '<span class="i-left dashicons dashicons-editor-code"></span>' . __( 'Image HTML Replacement', 'weaver-xtreme' /*adm*/ ),
663
+ 'id' => 'header_image_html_text',
664
+ 'type' => 'textarea',
665
+ 'placeholder' => __( 'Any HTML, including shortcodes', 'weaver-xtreme' /*adm*/ ),
666
+ 'info' => __( 'Replace Header image with arbitrary HTML. Useful for slider shortcodes in place of image. FI as Header Image has priority over HTML replacement. Extreme Plus also supports this option on a Per Page/Post basis.', 'weaver-xtreme' /*adm*/ ),
667
+ 'val' => 1,
668
+ ),
669
 
670
+ array(
671
+ 'name' => '<small>' . __( 'Show On Home Page Only', 'weaver-xtreme' /*adm*/ ) . '</small>',
672
+ 'id' => 'header_image_html_home_only',
673
+ 'type' => 'checkbox',
674
+ 'info' => __( 'Check to use the Image HTML Replacement only on your Front/Home page.', 'weaver-xtreme' /*adm*/ ),
675
+ ),
676
 
677
+ wvrx_ts_new_xp_opt( '3.0', // >= 3.0
678
+ array(
679
+ 'name' => '<small>' . __( 'Also show BG Header Image', 'weaver-xtreme' /*adm*/ ) . '</small>',
680
+ 'id' => 'header_image_html_plus_bg',
681
+ 'type' => '+checkbox',
682
+ 'info' => __( 'If you have Image HTML Replacement defined - including Per Page/Post - and also have have set the standard Header Image to display as a BG image, then show <em>both</em> the BG image and the replacement HTML. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
683
+ ) ),
684
+
685
+
686
+ array(
687
+ 'name' => __( 'Header Video', 'weaver-xtreme' /*adm*/ ),
688
+ 'id' => '-format-video',
689
+ 'type' => 'subheader',
690
+ 'info' => __( 'Settings related to Header Video (Set on Appearance&rarr;Header or on the Customize&rarr;Images&rarr;Header Media menu.)', 'weaver-xtreme' /*adm*/ ),
691
+ ),
692
 
693
+ array(
694
+ 'name' => __( 'Header Video Rendering', 'weaver-xtreme' /*adm*/ ) . '</small>',
695
+ 'id' => 'header_video_render',
696
+ 'type' => 'select_id', //code
697
+ 'info' => __( 'How to render Header Video: as image substitute in header or as full browser background cover image will parallax effect. <em style="color:red;">Note that the Header Image options above do not apply to the Header Video media.</em>', 'weaver-xtreme' /*adm*/ ),
698
+ 'value' => array(
699
+ array( 'val' => 'has-header-video', 'desc' => __( 'As video in header only', 'weaver-xtreme' /*adm*/ ) ),
700
+ array( 'val' => 'has-header-video-cover', 'desc' => __( 'As full cover Parallax BG Video', 'weaver-xtreme' /*adm*/ ) ),
701
+ array( 'val' => 'has-header-video-none', 'desc' => __( 'Disable Header Video', 'weaver-xtreme' /*adm*/ ) ),
702
+ ),
703
+ ),
704
 
705
+ array(
706
+ 'name' => __( 'Header Video Aspect Ratio', 'weaver-xtreme' /*adm*/ ) . '</small>',
707
+ 'id' => 'header_video_aspect',
708
+ 'type' => 'select_id', //code
709
+ 'info' => __( 'It is critical to select aspect ratio of your video. If you see letterboxing black bars, you have the wrong aspect ratio selected.', 'weaver-xtreme' /*adm*/ ),
710
+ 'value' => array(
711
+ array( 'val' => '16:9', 'desc' => __( '16:9 HDTV', 'weaver-xtreme' /*adm*/ ) ),
712
+ array( 'val' => '4:3', 'desc' => __( '4:3 Std TV', 'weaver-xtreme' /*adm*/ ) ),
713
+ array( 'val' => '3:2', 'desc' => __( '3:2 35mm Photo', 'weaver-xtreme' /*adm*/ ) ),
714
+ array( 'val' => '5:3', 'desc' => __( '5:3 Alternate Photo', 'weaver-xtreme' /*adm*/ ) ),
715
+ array( 'val' => '64:27', 'desc' => __( '2.37:1 Cinemascope', 'weaver-xtreme' /*adm*/ ) ),
716
+ array( 'val' => '37:20', 'desc' => __( '1.85:1 VistaVision', 'weaver-xtreme' /*adm*/ ) ),
717
+ array( 'val' => '3:1', 'desc' => __( '3:1 Banner', 'weaver-xtreme' /*adm*/ ) ),
718
+ array( 'val' => '4:1', 'desc' => __( '4:1 Banner', 'weaver-xtreme' /*adm*/ ) ),
719
+ array( 'val' => '9:16', 'desc' => __( '9:16 Vertical HD (Please avoid!)', 'weaver-xtreme' /*adm*/ ) ),
720
+ ),
721
+ ),
722
 
723
 
724
+ array(
725
+ 'name' => __( 'Custom Logo', 'weaver-xtreme' /*adm*/ ),
726
+ 'id' => '-menu',
727
+ 'type' => 'subheader',
728
+ 'info' => __( 'The native WP Custom Logo, set on the Site Identity Customizer menu.', 'weaver-xtreme' /*adm*/ ),
729
+ ),
730
 
731
+ array(
732
+ 'name' => '<small>' . __( 'Replace Title with Site Logo', 'weaver-xtreme' /*adm*/ ) . '</small>',
733
+ 'id' => 'wplogo_for_title',
734
+ 'type' => 'checkbox',
735
+ 'info' => __( 'Replace the Site Title text with the WP Custom Logo Image. Logo: ', 'weaver-xtreme' /*adm*/ ) . $wp_logo_html,
736
+ ),
737
 
738
+ array(
739
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide WP Custom Logo', 'weaver-xtreme' /*adm*/ ) . '</small>',
740
+ 'id' => 'hide_wp_site_logo',
741
+ 'type' => 'select_hide',
742
+ 'info' => __( 'Hide native WP Custom Site Logo in Header, by device. (This is not the Weaver Logo/HTML!)', 'weaver-xtreme' /*adm*/ ),
743
+ ),
 
 
744
 
745
+ array(
746
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'Logo for Title Height', 'weaver-xtreme' /*adm*/ ) . '</small>',
747
+ 'id' => 'header_logo_height_dec',
748
+ 'type' => 'val_px',
749
+ 'info' => __( 'Set maximum height of Logo when used to replace Site Title. Default 0 uses the actual image size. This is the maximum height. If the actual image height is smaller, the smaller value is used.', 'weaver-xtreme' /*adm*/ ),
750
+ ),
 
 
 
 
 
 
 
 
751
 
752
 
753
+ array( 'type' => 'submit' ),
 
754
 
 
 
755
 
756
+ array(
757
+ 'name' => __( 'Site Title/Tagline', 'weaver-xtreme' /*adm*/ ),
758
+ 'id' => '-text',
759
+ 'type' => 'subheader',
760
+ 'info' => __( 'Settings related to the Site Title and Tagline (Tagline sometimes called Site Description)', 'weaver-xtreme' /*adm*/ ),
761
+ ),
762
 
 
 
 
763
 
764
+ array(
765
+ 'name' => __( 'Site Title', 'weaver-xtreme' /*adm*/ ),
766
+ 'id' => 'site_title',
767
+ 'type' => 'titles',
768
+ 'info' => __( "The site's main title in the header (blog title)", 'weaver-xtreme' /*adm*/ ),
769
+ ),
770
 
771
+ array(
772
+ 'name' => '<span class="i-left font-bold" style="font-size:120%;">&#x21cc;</span><small>' . __( 'Title Position', 'weaver-xtreme' /*adm*/ ) . '</small>',
773
+ 'id' => 'site_title_position_xy',
774
+ 'type' => 'text_xy_percent',
775
+ 'info' => __( 'Adjust left and top margins for Title. Decimal and negative values allowed. (Default: X: 7%, Y:0.25%)', 'weaver-xtreme' /*adm*/ ),
776
+ ),
777
 
778
+ array(
779
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'Title Max Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
780
+ 'id' => 'site_title_max_w',
781
+ 'type' => 'val_percent',
782
+ 'info' => __( "Maximum width of title in header area (Default: 90%)", 'weaver-xtreme' /*adm*/ ),
783
+ ),
784
 
785
+ array(
786
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Site Title', 'weaver-xtreme' /*adm*/ ) . '</small>',
787
+ 'id' => 'hide_site_title',
788
+ 'type' => 'select_hide',
789
+ 'info' => __( 'Hide Site Title (Uses "display:none;" : SEO friendly.)', 'weaver-xtreme' /*adm*/ ),
790
+ ),
791
 
792
+ array(
793
+ 'name' => __( 'Move Title/Tagline over Image', 'weaver-xtreme' /*adm*/ ),
794
+ 'id' => 'title_over_image',
795
+ 'type' => 'checkbox',
796
+ 'info' => __( 'Move the Title, Tagline, Search, Logo/HTML and Mini-Menu over the Header Image. This can make a very attractive header,', 'weaver-xtreme' /*adm*/ ),
797
+ ),
798
 
799
+ array(
800
+ 'name' => __( 'Site Tagline', 'weaver-xtreme' /*adm*/ ),
801
+ 'id' => 'tagline',
802
+ 'type' => 'titles',
803
+ 'info' => __( "The site's tagline (blog description)", 'weaver-xtreme' /*adm*/ ),
804
+ ),
805
 
 
 
 
806
 
807
+ array(
808
+ 'name' => '<span class="i-left font-bold" style="font-size:120%;">&#x21cc;</span><small>' . __( 'Tagline Position', 'weaver-xtreme' /*adm*/ ) . '</small>',
809
+ 'id' => 'tagline_xy',
810
+ 'type' => 'text_xy_percent',
811
+ 'info' => __( 'Adjust default left and top margins for Tagline. (Default: X: 10% Y:0%)', 'weaver-xtreme' /*adm*/ ),
812
+ ),
813
+ array(
814
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'Tagline Max Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
815
+ 'id' => 'tagline_max_w',
816
+ 'type' => 'val_percent',
817
+ 'info' => __( "Maximum width of Tagline in header area (Default: 90%)", 'weaver-xtreme' /*adm*/ ),
818
+ ),
819
 
820
+ array(
821
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Site Tagline', 'weaver-xtreme' /*adm*/ ) . '</small>',
822
+ 'id' => 'hide_site_tagline',
823
+ 'type' => 'select_hide',
824
+ 'info' => __( 'Hide Site Tagline (Uses "display:none;" : SEO friendly.)', 'weaver-xtreme' /*adm*/ ),
825
+ ),
826
 
827
+ array(
828
+ 'name' => __( 'Title/Tagline Area BG', 'weaver-xtreme' /*adm*/ ),
829
+ 'id' => 'title_tagline_bgcolor',
830
+ 'type' => 'ctext',
831
+ 'info' => __( 'BG Color for the Title, Tagline, Search, Logo/HTML and Mini-Menu area.', 'weaver-xtreme' /*adm*/ ),
832
+ ),
833
 
 
 
834
 
835
+ array(
836
+ 'name' => '<span class="i-left font-bold" style="font-size:120%;">&#x21cc;</span><small>' . __( 'Title/Tagline Padding', 'weaver-xtreme' /*adm*/ ) . '</small>',
837
+ 'id' => 'title_tagline_xy',
838
+ 'type' => 'text_tb',
839
+ 'info' => __( 'Add Top/Bottom Padding to the Site Title/Tagline block. This option is especially useful if the Header Image is a BG image. (Default: 0,0)', 'weaver-xtreme' /*adm*/ ),
840
+ ),
841
 
 
 
 
 
 
 
842
 
843
+ array(
844
+ 'name' => '<span class="i-left dashicons dashicons-editor-code"></span><small>' . __( 'Weaver Site Logo/HTML', 'weaver-xtreme' /*adm*/ ) . '</small>',
845
+ 'id' => '_site_logo',
846
+ 'type' => '+textarea',
847
+ 'info' => __( 'HTML for Site Title area. (example: &lt;img src="url" style="position:absolute;top:20px;left:20px;"&nbsp;/&gt; + Custom CSS: #site-logo{min-height:123px;} (This is not the WP Custom Logo!) (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/ ),
848
+ ),
849
 
850
+ array(
851
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Site Logo/HTML', 'weaver-xtreme' /*adm*/ ) . '</small>',
852
+ 'id' => '_hide_site_logo',
853
+ 'type' => '+select_hide',
854
+ 'info' => __( 'Hide Weaver Site Logo/HTML by device. (This is not the WP Custom Logo!) (&starf;Plus) (&diams;)', 'weaver-xtreme' /*adm*/ ),
855
+ ),
856
 
857
+ array(
858
+ 'name' => '<span class="i-left">{ }</span> <small>' . __( 'Add Classes', 'weaver-xtreme' /*adm*/ ) . '</small>',
859
+ 'id' => 'site_title_add_class',
860
+ 'type' => '+widetext',
861
+ 'info' => '<em>' . __( 'Title/Tagline', 'weaver-xtreme' /*adm*/ ) . '</em>' . __( ': Space separated class names to add to this area (<em>Advanced option</em>) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
862
+ ),
863
 
 
 
 
864
 
865
+ array( 'type' => 'submit' ),
866
 
867
 
868
+ array(
869
+ 'name' => __( 'The Header Mini-Menu', 'weaver-xtreme' /*adm*/ ),
870
+ 'id' => '-menu',
871
+ 'type' => 'subheader',
872
+ 'info' => __( 'Horizontal "Mini-Menu" displayed right-aligned of Site Tagline', 'weaver-xtreme' /*adm*/ ),
873
+ ),
874
+ array(
875
+ 'name' => __( 'Note:', 'weaver-xtreme' /*adm*/ ),
876
+ 'type' => 'note',
877
+ 'info' => __( 'The Header Mini-Menu options are on the Menu Tab.', 'weaver-xtreme' /*adm*/ ),
878
+ ),
879
 
880
+ array(
881
+ 'name' => __( 'Header Widget Area', 'weaver-xtreme' /*adm*/ ),
882
+ 'id' => 'header_sb',
883
+ 'type' => 'widget_area',
884
+ 'info' => __( 'Horizontal Header Widget Area', 'weaver-xtreme' /*adm*/ ),
885
+ ),
886
 
887
+ array( 'name' => __( 'Other Widget Area Options', 'weaver-xtreme' ), 'type' => 'break' ),
 
 
888
 
889
+ array(
890
+ 'name' => '<small>' . __( 'Header Widget Area Position', 'weaver-xtreme' /*adm*/ ) . '</small>',
891
+ 'id' => 'header_sb_position',
892
+ 'type' => '+select_id', //code
893
+ 'info' => __( 'Change where Header Widget Area is displayed. (Default: Top) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
894
+ 'value' => array(
895
+ array( 'val' => 'top', 'desc' => __( 'Top of Header', 'weaver-xtreme' /*adm*/ ) ),
896
+ array( 'val' => 'before_header', 'desc' => __( 'Before Header Image', 'weaver-xtreme' /*adm*/ ) ),
897
+ array( 'val' => 'after_header', 'desc' => __( 'After Header Image', 'weaver-xtreme' /*adm*/ ) ),
898
+ array( 'val' => 'after_html', 'desc' => __( 'After HTML Block', 'weaver-xtreme' /*adm*/ ) ),
899
+ array( 'val' => 'after_menu', 'desc' => __( 'After Lower Menu', 'weaver-xtreme' /*adm*/ ) ),
900
+ array( 'val' => 'pre_header', 'desc' => __( 'Pre-#header &lt;div&gt;', 'weaver-xtreme' /*adm*/ ) ),
901
+ array( 'val' => 'post_header', 'desc' => __( 'Post-#header &lt;div&gt;', 'weaver-xtreme' /*adm*/ ) ),
902
+ ),
903
+ ),
904
 
905
+ array(
906
+ 'name' => '<span class="i-left dashicons dashicons-editor-kitchensink"></span>' . __( 'Fixed-Top Header Widget Area', 'weaver-xtreme' /*adm*/ ),
907
+ 'id' => 'header_sb_fixedtop',
908
+ 'type' => 'checkbox',
909
+ 'info' => __( 'Fix the Header Widget Area to top of page. If primary/secondary menus also fixed-top, header widget area will always be after secondary and before primary. Use the <em>Expand/Extend BG Attributes</em> on the "Full Width" tab to make a full width Header Widget Area.', 'weaver-xtreme' /*adm*/ ),
910
+ ),
911
 
912
+ array( 'type' => 'submit' ),
913
 
914
+ array(
915
+ 'name' => __( 'Header HTML', 'weaver-xtreme' /*adm*/ ),
916
+ 'id' => 'header_html',
917
+ 'type' => 'widget_area',
918
+ __( 'Header Widget Area', 'weaver-xtreme' /*adm*/ ),
919
+ 'info' => __( 'Add arbitrary HTML to Header Area (in &lt;div id="header-html"&gt;)', 'weaver-xtreme' /*adm*/ ),
920
+ ),
921
 
 
 
 
 
922
 
923
+ array(
924
+ 'name' => '<span class="i-left dashicons dashicons-editor-code"></span>' . __( 'Header HTML content', 'weaver-xtreme' /*adm*/ ),
925
+ 'id' => 'header_html_text',
926
+ 'type' => 'textarea',
927
+ 'placeholder' => __( 'Any HTML, including shortcodes', 'weaver-xtreme' /*adm*/ ),
928
+ 'info' => __( 'Add arbitrary HTML to Header Area (in &lt;div id="header-html"&gt;)', 'weaver-xtreme' /*adm*/ ),
929
+ 'val' => 4,
930
+ ),
931
 
932
+ array( 'type' => 'submit' ),
933
 
934
+ array(
935
+ 'name' => __( 'Note:', 'weaver-xtreme' /*adm*/ ),
936
+ 'type' => 'note',
937
+ 'info' => __( 'There are more standard WordPress Header options available on the Dashboard Appearance->Header panel.', 'weaver-xtreme' /*adm*/ ),
938
+ ),
939
+ );
 
 
 
 
 
 
940
 
941
+ ?>
942
+ <div class="options-intro">
943
+ <?php _e( '<strong>Header:</strong> Options affecting the Header Area at the top of your site.', 'weaver-xtreme' /*adm*/ ); ?>
944
+ <br/>
945
+ <div class="options-intro-menu"><a href="#header-area"><?php _e( 'Header Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
946
+ <a href="#header-image"><?php _e( 'Header Image', 'weaver-xtreme' /*adm*/ ); ?></a> |
947
+ <a href="#header-video"><?php _e( 'Header Video', 'weaver-xtreme' /*adm*/ ); ?></a> |
948
+ <a href="#site-title-tagline"><?php _e( 'Site Title/Tagline', 'weaver-xtreme' /*adm*/ ); ?></a> |
949
+ <a href="#header-widget-area"><?php _e( 'Header Widget Area', 'weaver-xtreme' /*adm*/ ); ?></a>|
950
+ <a href="#header-html"><?php _e( 'Header HTML', 'weaver-xtreme' /*adm*/ ); ?></a>
951
+ </div>
952
+ </div>
953
+ <?php
954
+ weaverx_form_show_options( $opts );
955
 
956
+ do_action( 'weaverxplus_admin', 'header_opts' );
957
+ }
958
 
959
+ // ======================== Main Options > Menus ========================
960
+ function weaverx_mainopts_menus() {
961
 
962
 
963
+ $opts = array(
964
+ array( 'type' => 'submit' ),
965
+ array(
966
+ 'name' => __( 'Menu &amp; Info Bars', 'weaver-xtreme' /*adm*/ ),
967
+ 'id' => '-menu',
968
+ 'type' => 'header',
969
+ 'info' => __( 'Options affecting site Menus and the Info Bar', 'weaver-xtreme' /*adm*/ ),
970
+ 'help' => 'help.html#MenuBar',
971
+ ),
972
 
 
973
 
974
+ ##### SmartMenu
975
+ array(
976
+ 'name' => '<span class="i-left dashicons dashicons-menu"></span>' . __( 'Use SmartMenus', 'weaver-xtreme' /*adm*/ ),
977
+ 'id' => 'use_smartmenus',
978
+ 'type' => 'checkbox',
979
+ 'info' => __( 'Use <em>SmartMenus</em> rather than default Weaver Xtreme Menus. <em>SmartMenus</em> provide enhanced menu support, including auto-visibility, and transition effects. This option is recommended. There are additional <em>Smart Menu</em> options available on the <em>Appearance &rarr; +Xtreme Plus</em> menu.', 'weaver-xtreme' /*adm*/ ),
980
+ ),
981
 
982
+ array(
983
+ 'name' => '<small>' . __( 'Menu Mobile/Desktop Switch Point', 'weaver-xtreme' /*adm*/ ) . '</small>',
984
+ 'id' => 'mobile_alt_switch',
985
+ 'type' => '+val_px',
986
+ 'info' => __( '<em>SmartMenus Only:</em> Set when menu bars switch from desktop to mobile. (Default: 767px. Hint: use 768 to force mobile menu on iPad portrait.) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
987
+ ),
 
 
 
 
 
 
 
 
988
 
989
+ array(
990
+ 'name' => __( 'Mega Menus:', 'weaver-xtreme' /*adm*/ ),
991
+ 'type' => 'note',
992
+ 'info' => __( 'Weaver Xtreme Plus allows you to define Mega Menu style dropdown menu items with arbitrary HTML content. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
993
+ ),
994
 
 
 
995
 
996
+ array(
997
+ 'name' => __( 'Primary Menu Bar', 'weaver-xtreme' /*adm*/ ),
998
+ 'id' => 'm_primary',
999
+ 'type' => 'menu_opts',
1000
+ 'info' => __( 'Attributes for the Primary Menu Bar (Default Location: Bottom of Header)', 'weaver-xtreme' /*adm*/ ),
1001
+ ),
1002
 
1003
+ array( 'type' => 'submit' ),
 
 
 
 
1004
 
1005
+ array(
1006
+ 'name' => __( 'Secondary Menu Bar', 'weaver-xtreme' /*adm*/ ),
1007
+ 'id' => 'm_secondary',
1008
+ 'type' => 'menu_opts',
1009
+ 'info' => __( 'Attributes for the Secondary Menu Bar (Default Location: Top of Header)', 'weaver-xtreme' /*adm*/ ),
1010
+ ),
1011
 
1012
+ array( 'type' => 'submit' ),
 
 
 
1013
 
 
 
 
1014
 
1015
+ array(
1016
+ 'name' => __( 'Options: All Menus', 'weaver-xtreme' /*adm*/ ),
1017
+ 'id' => '-forms',
1018
+ 'type' => 'subheader_alt',
1019
+ 'info' => __( 'Menu Bar enhancements and features', 'weaver-xtreme' /*adm*/ ),
1020
+ ),
1021
 
1022
 
1023
+ array(
1024
+ 'name' => __( 'Current Page BG', 'weaver-xtreme' /*adm*/ ),
1025
+ 'id' => 'menubar_curpage_bgcolor',
1026
+ 'type' => 'ctext',
1027
+ 'info' => __( 'BG Color for the currently displayed page and its ancestors.', 'weaver-xtreme' /*adm*/ ),
1028
+ ),
1029
+ array(
1030
+ 'name' => __( 'Current Page Text', 'weaver-xtreme' /*adm*/ ),
1031
+ 'id' => 'menubar_curpage_color',
1032
+ 'type' => 'color',
1033
+ 'info' => __( 'Color for the currently displayed page and its ancestors.', 'weaver-xtreme' /*adm*/ ),
1034
+ ),
1035
 
1036
 
1037
+ array(
1038
+ 'name' => '<span class="i-left dashicons dashicons-editor-bold"></span><small>' . __( 'Bold Current Page', 'weaver-xtreme' /*adm*/ ) . '</small>',
1039
+ 'id' => 'menubar_curpage_bold',
1040
+ 'type' => 'checkbox',
1041
+ 'info' => __( 'Bold Face Current Page and ancestors', 'weaver-xtreme' /*adm*/ ),
1042
+ ),
1043
+ array(
1044
+ 'name' => '<span class="i-left dashicons dashicons-editor-italic"></span><small>' . __( 'Italic Current Page', 'weaver-xtreme' /*adm*/ ) . '</small>',
1045
+ 'id' => 'menubar_curpage_em',
1046
+ 'type' => 'checkbox',
1047
+ 'info' => __( 'Italic Current Page and ancestors', 'weaver-xtreme' /*adm*/ ),
1048
+ ),
1049
+ array(
1050
+ 'name' => '<small>' . __( 'Do Not Highlight Ancestors', 'weaver-xtreme' /*adm*/ ) . '</small>',
1051
+ 'id' => 'menubar_curpage_noancestors',
1052
+ 'type' => 'checkbox',
1053
+ 'info' => __( 'Highlight Current Page only - do not also highlight ancestor items', 'weaver-xtreme' /*adm*/ ),
1054
+ ),
1055
+ array(
1056
+ 'name' => '<small>' . __( 'Retain Menu Bar Hover BG', 'weaver-xtreme' /*adm*/ ) . '</small>',
1057
+ 'id' => 'm_retain_hover',
1058
+ 'type' => 'checkbox',
1059
+ 'info' => __( 'Retain the menu bar hover BG color when sub-menus are opened.', 'weaver-xtreme' /*adm*/ ),
1060
+ ),
1061
 
1062
 
1063
+ array(
1064
+ 'name' => '<small>' . __( 'Placeholder Hover Cursor', 'weaver-xtreme' /*adm*/ ) . '</small>',
1065
+ 'id' => 'placeholder_cursor',
1066
+ 'type' => 'select_id', //code
1067
+ 'info' => __( 'CSS cursor :hover attribute for placeholder menus (e.g., Custom Menus with URL==#). (Default: pointer)', 'weaver-xtreme' /*adm*/ ),
1068
+ 'value' => array(
1069
+ array( 'val' => 'pointer', 'desc' => __( 'Pointer (indicates link)', 'weaver-xtreme' /*adm*/ ) ),
1070
+ array( 'val' => 'context-menu', 'desc' => __( 'Context Menu available', 'weaver-xtreme' /*adm*/ ) ),
1071
+ array( 'val' => 'text', 'desc' => __( 'Text', 'weaver-xtreme' /*adm*/ ) ),
1072
+ array( 'val' => 'none', 'desc' => __( 'No pointer', 'weaver-xtreme' /*adm*/ ) ),
1073
+ array( 'val' => 'not-allowed', 'desc' => __( 'Action not allowed', 'weaver-xtreme' /*adm*/ ) ),
1074
+ array( 'val' => 'default', 'desc' => __( 'The default cursor', 'weaver-xtreme' /*adm*/ ) ),
1075
+ ),
1076
+ ),
1077
 
 
 
1078
 
1079
+ array(
1080
+ 'name' => '<small>' . __( 'Mobile Menu "Hamburger" Label', 'weaver-xtreme' /*adm*/ ) . '</small>',
1081
+ 'id' => 'mobile_alt_label',
1082
+ 'type' => 'widetext',
1083
+ 'info' => __( 'Alternative label for the default mobile "Hamburger" icon. HTML allowed: &lt;span&gt; or &lt;img&gt; suggested.', 'weaver-xtreme' /*adm*/ ),
1084
+ ),
1085
 
1086
 
1087
+ array( 'type' => 'submit' ),
1088
 
1089
+ array(
1090
+ 'name' => __( 'Header Mini-Menu', 'weaver-xtreme' /*adm*/ ),
1091
+ 'id' => '-menu',
1092
+ 'type' => 'subheader_alt',
1093
+ 'info' => __( 'Horizontal "Mini-Menu" displayed right-aligned of Site Tagline', 'weaver-xtreme' /*adm*/ ),
1094
+ ),
1095
 
 
 
1096
 
1097
+ array(
1098
+ 'name' => __( 'Mini-Menu', 'weaver-xtreme' /*adm*/ ),
1099
+ 'id' => 'm_header_mini',
1100
+ 'type' => 'titles_text',
1101
+ 'info' => __( 'Color of Mini-Menu Link Items', 'weaver-xtreme' /*adm*/ ),
1102
+ ),
1103
 
1104
+ array(
1105
+ 'name' => '<small>' . __( 'Mini Menu Hover', 'weaver-xtreme' /*adm*/ ) . '</small>',
1106
+ 'id' => 'm_header_mini_hover_color',
1107
+ 'type' => 'ctext',
1108
+ 'info' => __( 'Hover Color for Mini-Menu Links', 'weaver-xtreme' /*adm*/ ),
1109
+ ),
1110
 
1111
+ array(
1112
+ 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __( 'Mini Menu Top Margin', 'weaver-xtreme' /*adm*/ ) . '</small>',
1113
+ 'id' => 'm_header_mini_top_margin_dec',
1114
+ 'type' => 'val_em',
1115
+ 'info' => __( 'Top margin for Mini-Menu. Negative value moves it up. (Default: 0em)', 'weaver-xtreme' /*adm*/ ),
1116
+ ),
1117
 
1118
+ array(
1119
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Mini Menu', 'weaver-xtreme' /*adm*/ ) . '</small>',
1120
+ 'id' => 'm_header_mini_hide',
1121
+ 'type' => 'select_hide',
1122
+ 'info' => __( 'Hide Mini Menu', 'weaver-xtreme' /*adm*/ ),
1123
+ ),
 
 
 
 
1124
 
1125
 
1126
+ array( 'type' => 'submit' ),
 
 
 
 
 
 
 
 
 
 
1127
 
1128
 
1129
+ array(
1130
+ 'name' => __( 'Info Bar', 'weaver-xtreme' /*adm*/ ),
1131
+ 'id' => 'infobar',
1132
+ 'type' => 'widget_area',
1133
+ 'info' => __( 'Info Bar : Breadcrumbs & Page Nav below primary menu', 'weaver-xtreme' /*adm*/ ),
1134
+ ),
1135
 
1136
 
1137
+ array(
1138
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __( 'Hide Breadcrumbs', 'weaver-xtreme' /*adm*/ ),
1139
+ 'id' => 'info_hide_breadcrumbs',
1140
+ 'type' => 'checkbox',
1141
+ 'info' => __( 'Do not display the Breadcrumbs', 'weaver-xtreme' /*adm*/ ),
1142
+ ),
1143
+ array(
1144
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __( 'Hide Page Navigation', 'weaver-xtreme' /*adm*/ ),
1145
+ 'id' => 'info_hide_pagenav',
1146
+ 'type' => 'checkbox',
1147
+ 'info' => __( 'Do not display the numbered Page navigation', 'weaver-xtreme' /*adm*/ ),
1148
+ ),
1149
+ array(
1150
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __( 'Show Search box', 'weaver-xtreme' /*adm*/ ),
1151
+ 'id' => 'info_search',
1152
+ 'type' => 'checkbox',
1153
+ 'info' => __( 'Include a Search box on the right', 'weaver-xtreme' /*adm*/ ),
1154
+ ),
1155
+ array(
1156
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __( 'Show Log In', 'weaver-xtreme' /*adm*/ ),
1157
+ 'id' => 'info_addlogin',
1158
+ 'type' => 'checkbox',
1159
+ 'info' => __( 'Include a simple Log In link on the right', 'weaver-xtreme' /*adm*/ ),
1160
+ ),
1161
 
1162
+ array(
1163
+ 'name' => __( 'Breadcrumb for Home', 'weaver-xtreme' /*adm*/ ),
1164
+ 'id' => 'info_home_label',
1165
+ 'type' => 'widetext', //code - option done in code
1166
+ 'info' => __( 'This lets you change the breadcrumb label for your home page. (Default: Home)', 'weaver-xtreme' /*adm*/ ),
1167
+ ),
1168
+ array(
1169
+ 'name' => __( 'Info Bar Links', 'weaver-xtreme' /*adm*/ ),
1170
+ 'id' => 'ibarlink',
1171
+ 'type' => 'link',
1172
+ 'info' => __( 'Color for links in Info Bar (uses Standard Link colors if left blank)', 'weaver-xtreme' /*adm*/ ),
1173
+ ),
1174
+ );
1175
 
1176
+ ?>
1177
+ <div class="options-intro">
1178
+ <?php _e( '<strong>Menus:</strong> Options to control how your menus look.', 'weaver-xtreme' /*adm*/ ); ?><br/>
1179
+ <div class="options-intro-menu">
1180
+ <a href="#primary-menu-bar"><?php _e( 'Primary Menu Bar', 'weaver-xtreme' /*adm*/ ); ?></a> |
1181
+ <a href="#secondary-menu-bar"><?php _e( 'Secondary Menu Bar', 'weaver-xtreme' /*adm*/ ); ?></a> |
1182
+ <a href="#options-all-menus"><?php _e( 'Options: All Menus', 'weaver-xtreme' /*adm*/ ); ?></a> |
1183
+ <a href="#header-mini-menu"><?php _e( 'Header Mini-Menu', 'weaver-xtreme' /*adm*/ ); ?></a> |
1184
+ <a href="#info-bar"><?php _e( 'Info Bar', 'weaver-xtreme' /*adm*/ ); ?></a> |
1185
+ <a href="#extra-menu"><?php _e( 'Extra Menu (X-Plus)', 'weaver-xtreme' /*adm*/ ); ?></a>
1186
+ </div>
1187
+ </div>
1188
+ <?php
1189
 
1190
+ $all_opts = apply_filters( 'weaverxplus_menu_inject', $opts );
 
1191
 
1192
+ weaverx_form_show_options( $all_opts );
 
1193
 
1194
+ }
 
 
1195
 
 
 
 
1196
 
1197
+ // ======================== Main Options > Content Areas ========================
1198
+ function weaverx_mainopts_content() {
1199
+ $opts = array(
1200
+ array( 'type' => 'submit' ),
1201
+ array(
1202
+ 'name' => __( 'Content Areas', 'weaver-xtreme' /*adm*/ ),
1203
+ 'id' => '-admin-page',
1204
+ 'type' => 'header',
1205
+ 'info' => __( 'Settings for the content areas (posts and pages)', 'weaver-xtreme' /*adm*/ ),
1206
+ 'toggle' => 'content-areas',
1207
+ 'help' => 'help.html#ContentAreas',
1208
+ ),
1209
 
1210
+ array(
1211
+ 'name' => __( 'Content Area', 'weaver-xtreme' /*adm*/ ),
1212
+ 'id' => 'content',
1213
+ 'type' => 'widget_area',
1214
+ 'info' => __( 'Area properties for page and post content', 'weaver-xtreme' /*adm*/ ),
1215
+ ),
1216
 
1217
+ array(
1218
+ 'name' => __( 'Page Title', 'weaver-xtreme' /*adm*/ ),
1219
+ 'id' => 'page_title',
1220
+ 'type' => 'titles',
1221
+ 'info' => __( 'Page titles, including pages, post single pages, and archive-like pages.', 'weaver-xtreme' /*adm*/ ),
1222
+ ),
1223
+ array(
1224
+ 'name' => '<small>' . __( 'Bar under Title', 'weaver-xtreme' /*adm*/ ) . '</small>',
1225
+ 'id' => 'page_title_underline_int',
1226
+ 'type' => 'val_px',
1227
+ 'info' => __( 'Enter size in px if you want a bar under page title. Leave blank or 0 for no bar.', 'weaver-xtreme' /*adm*/ ),
1228
+ ),
1229
+ array(
1230
+ 'name' => '<small>' . __( 'Space Between Title and Content', 'weaver-xtreme' /*adm*/ ) . '</small>',
1231
+ 'id' => 'space_after_title_dec',
1232
+ 'type' => 'val_em',
1233
+ 'info' => __( 'Space between Page or Post title and beginning of content (Default: 1.0em)', 'weaver-xtreme' /*adm*/ ),
1234
+ ),
1235
 
1236
+ array(
1237
+ 'name' => __( 'Archive Pages Title Text', 'weaver-xtreme' /*adm*/ ),
1238
+ 'id' => 'archive_title',
1239
+ 'type' => 'titles',
1240
+ 'info' => __( 'Archive-like page titles: archives, categories, tags, searches.', 'weaver-xtreme' /*adm*/ ),
1241
+ ),
1242
 
1243
+ array(
1244
+ 'name' => __( 'Content Links', 'weaver-xtreme' /*adm*/ ),
1245
+ 'id' => 'contentlink',
1246
+ 'type' => 'link',
1247
+ 'info' => __( 'Color for links in Content', 'weaver-xtreme' /*adm*/ ),
1248
+ ),
1249
 
1250
+ array(
1251
+ 'name' => __( 'Content Headings', 'weaver-xtreme' /*adm*/ ),
1252
+ 'id' => 'content_h',
1253
+ 'type' => '+titles',
1254
+ 'info' => __( 'Headings (&lt;h1&gt;-&lt;h6&gt;) in page and post content (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1255
+ ),
 
 
 
 
 
1256
 
1257
+ array( 'type' => 'submit' ),
 
 
 
 
1258
 
1259
+ array(
1260
+ 'name' => __( 'Text', 'weaver-xtreme' /*adm*/ ),
1261
+ 'id' => '-text',
1262
+ 'type' => 'subheader_alt',
1263
+ 'info' => __( 'Text related options', 'weaver-xtreme' /*adm*/ ),
1264
+ ),
 
 
 
 
 
 
 
1265
 
1266
+ array(
1267
+ 'name' => '<small>' . __( 'Space after paragraphs and lists', 'weaver-xtreme' /*adm*/ ) . '</small>',
1268
+ 'id' => 'content_p_list_dec',
1269
+ 'type' => 'val_em',
1270
+ 'info' => __( 'Space after paragraphs and lists (Recommended: 1.5 em)', 'weaver-xtreme' /*adm*/ ),
1271
+ ),
1272
 
1273
+ array(
1274
+ 'name' => '<small>' . __( 'Page/Post Editor BG', 'weaver-xtreme' /*adm*/ ) . '</small>',
1275
+ 'id' => 'editor_bgcolor',
1276
+ 'type' => 'ctext',
1277
+ 'info' => __( 'Alternative Background Color to use for Page/Post editor if you\'re using transparent or image backgrounds.', 'weaver-xtreme' /*adm*/ ),
1278
+ ),
1279
 
1280
+ array(
1281
+ 'name' => '<small>' . __( 'Input Area BG', 'weaver-xtreme' /*adm*/ ) . '</small>',
1282
+ 'id' => 'input_bgcolor',
1283
+ 'type' => 'ctext',
1284
+ 'info' => __( 'Background color for text input (textareas) boxes.', 'weaver-xtreme' /*adm*/ ),
1285
+ ),
1286
+ array(
1287
+ 'name' => '<small>' . __( 'Input Area Text', 'weaver-xtreme' /*adm*/ ) . '</small>',
1288
+ 'id' => 'input_color',
1289
+ 'type' => 'color',
1290
+ 'info' => __( 'Text color for text input (textareas) boxes.', 'weaver-xtreme' /*adm*/ ),
1291
+ ),
1292
 
1293
+ array(
1294
+ 'name' => '<small>' . __( 'Auto Hyphenation', 'weaver-xtreme' /*adm*/ ) . '</small>',
1295
+ 'id' => 'hyphenate',
1296
+ 'type' => 'checkbox',
1297
+ 'info' => __( 'Allow browsers to automatically hyphenate text for appearance.', 'weaver-xtreme' /*adm*/ ),
1298
+ ),
1299
 
1300
+ array(
1301
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span>' . __( 'Columns', 'weaver-xtreme' /*adm*/ ),
1302
+ 'id' => 'page_cols',
1303
+ 'type' => 'select_id', //code
1304
+ 'info' => __( 'Automatically split all page content into columns using CSS column rules. Also can use Per Page option. (Always 1 column on IE&lt;=9.)', 'weaver-xtreme' /*adm*/ ),
1305
+ 'value' => array(
1306
+ array( 'val' => '1', 'desc' => __( '1 Column', 'weaver-xtreme' /*adm*/ ) ),
1307
+ array( 'val' => '2', 'desc' => __( '2 Columns', 'weaver-xtreme' /*adm*/ ) ),
1308
+ array( 'val' => '3', 'desc' => __( '3 Columns', 'weaver-xtreme' /*adm*/ ) ),
1309
+ array( 'val' => '4', 'desc' => __( '4 Columns', 'weaver-xtreme' /*adm*/ ) ),
1310
+ ),
1311
+ ),
1312
+
1313
+
1314
+ array(
1315
+ 'name' => __( 'Search Boxes', 'weaver-xtreme' /*adm*/ ),
1316
+ 'id' => '-search',
1317
+ 'type' => 'subheader_alt',
1318
+ 'info' => __( 'Search box related options', 'weaver-xtreme' /*adm*/ ),
1319
+ ),
1320
+
1321
+ array(
1322
+ 'name' => '<small>' . __( 'Search Input BG', 'weaver-xtreme' /*adm*/ ) . '</small>',
1323
+ 'id' => 'search_bgcolor',
1324
+ 'type' => 'ctext',
1325
+ 'info' => __( 'Background color for all search input boxes.', 'weaver-xtreme' /*adm*/ ),
1326
+ ),
1327
+ array(
1328
+ 'name' => '<small>' . __( 'Search Input Text', 'weaver-xtreme' /*adm*/ ) . '</small>',
1329
+ 'id' => 'search_color',
1330
+ 'type' => 'color',
1331
+ 'info' => __( 'Text color for all search input boxes.', 'weaver-xtreme' /*adm*/ ),
1332
+ ),
1333
+
1334
+ array(
1335
+ 'name' => __( 'Search Icon Color:', 'weaver-xtreme' /*adm*/ ),
1336
+ 'info' => __( 'The Search Icon colored graphics used by previous versions of Weaver Xtreme have been discontinued. A text icon is now used. The color of the search icon is inherited from wrapping areas text color, including the header area and menu bar.', 'weaver-xtreme' /*adm*/ ),
1337
+ 'type' => 'note',
1338
+ ),
1339
+
1340
+
1341
+ array( 'type' => 'submit' ),
1342
+ array(
1343
+ 'name' => __( 'Images', 'weaver-xtreme' /*adm*/ ),
1344
+ 'id' => '-format-image',
1345
+ 'type' => 'subheader_alt',
1346
+ 'info' => __( 'Image related options', 'weaver-xtreme' /*adm*/ ),
1347
+ ),
1348
+ array(
1349
+ 'name' => '<small>' . __( 'Image Border Color', 'weaver-xtreme' /*adm*/ ) . '</small>',
1350
+ 'id' => 'media_lib_border_color',
1351
+ 'type' => 'ctext',
1352
+ 'info' => __( 'Border color for images in Container and Footer.', 'weaver-xtreme' /*adm*/ ),
1353
+ ),
1354
+ array(
1355
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'Image Border Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
1356
+ 'id' => 'media_lib_border_int',
1357
+ 'type' => 'val_px',
1358
+ 'info' => __( 'Border width for images in Container and Footer. (Leave blank or set to 0 for no image borders.)', 'weaver-xtreme' /*adm*/ ),
1359
+ ),
1360
+
1361
+ array(
1362
+ 'name' => '<span class="i-left dashicons dashicons-admin-page"></span><small>' . __( 'Show Image Shadows', 'weaver-xtreme' /*adm*/ ) . '</small>',
1363
+ 'id' => 'show_img_shadows',
1364
+ 'type' => 'checkbox',
1365
+ 'info' => __( 'Add a shadow to images in Container and Footer. Add CSS+ to Border Color for custom shadow.', 'weaver-xtreme' /*adm*/ ),
1366
+ ),
1367
+
1368
+ array(
1369
+ 'name' => '<small>' . __( 'Restrict Borders to Media Library', 'weaver-xtreme' /*adm*/ ) . '</small>',
1370
+ 'id' => 'restrict_img_border',
1371
+ 'type' => 'checkbox',
1372
+ 'info' => __( 'For Container and Footer, restrict border and shadows to images from Media Library. Manually entered &lt;img&gt; HTML without Media Library classes will not have borders.', 'weaver-xtreme' /*adm*/ ),
1373
+ ),
1374
+
1375
+ array(
1376
+ 'name' => '<small>' . __( 'Caption text color', 'weaver-xtreme' /*adm*/ ) . '</small>',
1377
+ 'id' => 'caption_color',
1378
+ 'type' => 'ctext',
1379
+ 'info' => __( 'Color of captions - e.g., below media images.', 'weaver-xtreme' /*adm*/ ),
1380
+ ),
1381
+
1382
+ array(
1383
+ 'name' => __( 'Featured Image - Pages', 'weaver-xtreme' /*adm*/ ),
1384
+ 'id' => '-id',
1385
+ 'type' => 'subheader_alt',
1386
+ 'info' => __( 'Display of Page Featured Images', 'weaver-xtreme' /*adm*/ ),
1387
+ ),
1388
+ array(
1389
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __( 'Featured Image Location', 'weaver-xtreme' /*adm*/ ),
1390
+ 'id' => 'page_fi_location',
1391
+ 'type' => 'fi_location',
1392
+ 'info' => __( 'Where to display Featured Image for Pages', 'weaver-xtreme' /*adm*/ ),
1393
+ ),
1394
+ array(
1395
+ 'name' => __( 'Full Width FI BG Image:', 'weaver-xtreme' /*adm*/ ),
1396
+ 'info' => __( 'To create full width Page BG images from the FI, check the <em>Container Area Extend BG Attributes</em> box on the <em>Full Width</em> tab.', 'weaver-xtreme' /*adm*/ ),
1397
+ 'type' => 'note',
1398
+ ),
1399
+ array(
1400
+ 'name' => __( 'Parallax FI BG Image:', 'weaver-xtreme' /*adm*/ ),
1401
+ 'info' => __( 'It will usually be more useful to use the Per Page FI option to specify Parallax BG images.', 'weaver-xtreme' /*adm*/ ),
1402
+ 'type' => 'note',
1403
+ ),
1404
+ array(
1405
+ 'name' => '<small>' . __( 'Page Content Height', 'weaver-xtreme' /*adm*/ ) . '</small>',
1406
+ 'id' => 'page_min_height',
1407
+ 'type' => '+val_px',
1408
+ 'info' => __( 'Minimum Height Page Content with Parallax BG. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1409
+ ),
1410
+
1411
+
1412
+ array(
1413
+ 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __( 'Featured Image Alignment', 'weaver-xtreme' /*adm*/ ) . '</small>',
1414
+ 'id' => 'page_fi_align',
1415
+ 'type' => 'fi_align',
1416
+ 'info' => __( 'How to align the Featured Image', 'weaver-xtreme' /*adm*/ ),
1417
+ ),
1418
+
1419
+ array(
1420
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Featured Image on Pages', 'weaver-xtreme' /*adm*/ ) . '</small>',
1421
+ 'id' => 'page_fi_hide',
1422
+ 'type' => 'select_hide',
1423
+ 'info' => __( 'Where to hide Featured Images on Pages (Posts have their own setting.)', 'weaver-xtreme' /*adm*/ ),
1424
+ ),
1425
+
1426
+ array(
1427
+ 'name' => '<small>' . __( 'Page Featured Image Size', 'weaver-xtreme' /*adm*/ ) . '</small>',
1428
+ 'id' => 'page_fi_size',
1429
+ 'type' => 'select_id',
1430
+ 'info' => __( 'Media Library Image Size for Featured Image on pages. (Header uses full size).', 'weaver-xtreme' /*adm*/ ),
1431
+ 'value' => array(
1432
+ array( 'val' => 'thumbnail', 'desc' => __( 'Thumbnail', 'weaver-xtreme' /*adm*/ ) ),
1433
+ array( 'val' => 'medium', 'desc' => __( 'Medium', 'weaver-xtreme' /*adm*/ ) ),
1434
+ array( 'val' => 'large', 'desc' => __( 'Large', 'weaver-xtreme' /*adm*/ ) ),
1435
+ array( 'val' => 'full', 'desc' => __( 'Full', 'weaver-xtreme' /*adm*/ ) ),
1436
+ ),
1437
+ ),
1438
+ array(
1439
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'Featured Image Width, Pages', 'weaver-xtreme' /*adm*/ ) . '</small>',
1440
+ 'id' => 'page_fi_width',
1441
+ 'type' => '+val_percent',
1442
+ 'info' => __( 'Width of Featured Image on Pages. Max Width in %, overrides FI Size selection. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1443
+ ),
1444
+ array(
1445
+ 'name' => '<small>' . __( "Don't add link to FI", 'weaver-xtreme' /*adm*/ ) . '</small>',
1446
+ 'id' => 'page_fi_nolink',
1447
+ 'type' => '+checkbox',
1448
+ 'info' => __( 'Do not add link to Featured Image. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1449
+ ),
1450
+
1451
+
1452
+ array(
1453
+ 'name' => __( 'Lists - &lt;HR&gt; - Tables', 'weaver-xtreme' /*adm*/ ),
1454
+ 'id' => '-list-view',
1455
+ 'type' => 'subheader_alt',
1456
+ 'info' => __( 'Other options related to content', 'weaver-xtreme' /*adm*/ ),
1457
+ ),
1458
+ array(
1459
+ 'name' => __( 'Content List Bullet', 'weaver-xtreme' /*adm*/ ),
1460
+ 'id' => 'contentlist_bullet',
1461
+ 'type' => 'select_id',
1462
+ 'info' => __( 'Bullet used for Unordered Lists in Content areas', 'weaver-xtreme' /*adm*/ ),
1463
+ 'value' => array(
1464
+ array( 'val' => 'disc', 'desc' => __( 'Filled Disc', 'weaver-xtreme' /*adm*/ ) ),
1465
+ array( 'val' => 'circle', 'desc' => __( 'Circle', 'weaver-xtreme' /*adm*/ ) ),
1466
+ array( 'val' => 'square', 'desc' => __( 'Square', 'weaver-xtreme' /*adm*/ ) ),
1467
+ array( 'val' => 'none', 'desc' => __( 'None', 'weaver-xtreme' /*adm*/ ) ),
1468
+ ),
1469
+ ),
1470
+
1471
+ array(
1472
+ 'name' => __( '&lt;HR&gt; color', 'weaver-xtreme' /*adm*/ ),
1473
+ 'id' => 'hr_color',
1474
+ 'type' => 'ctext',
1475
+ 'info' => __( 'Color of horizontal (&lt;hr&gt;) lines in posts and pages.', 'weaver-xtreme' /*adm*/ ),
1476
+ ),
1477
+
1478
+ array(
1479
+ 'name' => __( 'Table Style', 'weaver-xtreme' /*adm*/ ),
1480
+ 'id' => 'weaverx_tables',
1481
+ 'type' => 'select_id',
1482
+ 'info' => __( 'Style used for tables in content.', 'weaver-xtreme' /*adm*/ ),
1483
+ 'value' => array(
1484
+ array( 'val' => 'default', 'desc' => __( 'Theme Default', 'weaver-xtreme' /*adm*/ ) ),
1485
+ array( 'val' => 'bold', 'desc' => __( 'Bold Headings', 'weaver-xtreme' /*adm*/ ) ),
1486
+ array( 'val' => 'noborders', 'desc' => __( 'No Borders', 'weaver-xtreme' /*adm*/ ) ),
1487
+ array( 'val' => 'fullwidth', 'desc' => __( 'Wide', 'weaver-xtreme' /*adm*/ ) ),
1488
+ array( 'val' => 'wide', 'desc' => __( 'Wide 2', 'weaver-xtreme' /*adm*/ ) ),
1489
+ array( 'val' => 'plain', 'desc' => __( 'Minimal', 'weaver-xtreme' /*adm*/ ) ),
1490
+ ),
1491
+ ),
1492
+
1493
+ array(
1494
+ 'name' => __( 'Comments', 'weaver-xtreme' /*adm*/ ),
1495
+ 'id' => '-admin-comments',
1496
+ 'type' => 'subheader',
1497
+ 'info' => __( 'Settings for displaying comments', 'weaver-xtreme' /*adm*/ ),
1498
+ ),
1499
+ array(
1500
+ 'name' => __( 'Comment Headings', 'weaver-xtreme' /*adm*/ ),
1501
+ 'id' => 'comment_headings_color',
1502
+ 'type' => 'ctext',
1503
+ 'info' => __( 'Color for various headings in comment form', 'weaver-xtreme' /*adm*/ ),
1504
+ ),
1505
+ array(
1506
+ 'name' => __( 'Comment Content BG', 'weaver-xtreme' /*adm*/ ),
1507
+ 'id' => 'comment_content_bgcolor',
1508
+ 'type' => 'ctext',
1509
+ 'info' => __( 'BG Color of Comment Content area', 'weaver-xtreme' /*adm*/ ),
1510
+ ),
1511
+ array(
1512
+ 'name' => __( 'Comment Submit Button BG', 'weaver-xtreme' /*adm*/ ),
1513
+ 'id' => 'comment_submit_bgcolor',
1514
+ 'type' => 'ctext',
1515
+ 'info' => __( 'BG Color of "Post Comment" submit button', 'weaver-xtreme' /*adm*/ ),
1516
+ ),
1517
+ array(
1518
+ 'name' => '<span class="i-left" style="font-size:200%;margin-left:4px;">&#x25a1;</span><small>' . __( 'Show Borders on Comments', 'weaver-xtreme' /*adm*/ ) . '</small>',
1519
+ 'id' => 'show_comment_borders',
1520
+ 'type' => 'checkbox',
1521
+ 'info' => __( 'Show Borders around comment sections - improves visual look of comments.', 'weaver-xtreme' /*adm*/ ),
1522
+ ),
1523
+
1524
+ array(
1525
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Old Comments When Closed', 'weaver-xtreme' /*adm*/ ) . '</small>',
1526
+ 'id' => 'hide_old_comments',
1527
+ 'type' => '+checkbox',
1528
+ 'info' => __( 'Hide previous comments after closing comments for page or post. (Default: show old comments after closing.) (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1529
+ ),
1530
+ array(
1531
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span>' . '<small>' . __( 'Show Allowed HTML', 'weaver-xtreme' /*adm*/ ) . '</small>',
1532
+ 'id' => 'form_allowed_tags',
1533
+ 'type' => '+checkbox',
1534
+ 'info' => __( 'Show the allowed HTML tags below comment input box (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1535
+ ),
1536
+ array(
1537
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><span class="dashicons dashicons-admin-comments"></span>' .
1538
+ '<small>' . __( 'Hide Comment Title Icon', 'weaver-xtreme' /*adm*/ ) . '</small>',
1539
+ 'id' => 'hide_comment_bubble',
1540
+ 'type' => '+checkbox',
1541
+ 'info' => __( 'Hide the comment icon before the Comments title (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1542
+ ),
1543
+ array(
1544
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Separator Above Comments', 'weaver-xtreme' /*adm*/ ) . '</small>',
1545
+ 'id' => 'hide_comment_hr',
1546
+ 'type' => '+checkbox',
1547
+ 'info' => __( 'Hide the (&lt;hr&gt;) separator line above the Comments area (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1548
+ ),
1549
  );
1550
 
1551
+ ?>
1552
+ <div class="options-intro">
1553
+ <?php _e( '<strong>Content Areas:</strong> Includes options common to both <em>Pages</em> and <em>Posts</em>. Options for <strong>Text</strong>,
1554
+ <strong>Padding</strong>, <strong>Images</strong>, <strong>Lists &amp; Tables</strong>, and user <strong>Comments</strong>.', 'weaver-xtreme' /*adm*/ ); ?><br/>
1555
+ <div class="options-intro-menu">
1556
+ <a href="#content-area"><?php _e( 'Content Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
1557
+ <a href="#text"><?php _e( 'Text', 'weaver-xtreme' /*adm*/ ); ?></a> |
1558
+ <a href="#search-boxes"><?php _e( 'Search Boxes', 'weaver-xtreme' /*adm*/ ); ?></a> |
1559
+ <a href="#images"><?php _e( 'Images', 'weaver-xtreme' /*adm*/ ); ?></a> |
1560
+ <a href="#featured-image-pages"><?php _e( 'Featured Image - Pages', 'weaver-xtreme' /*adm*/ ); ?></a> |
1561
+ <a href="#lists-hr-tables"><?php _e( 'Lists - &lt;HR&gt; - Tables', 'weaver-xtreme' /*adm*/ ); ?></a> |
1562
+ <a href="#comments"><?php _e( 'Comments', 'weaver-xtreme' /*adm*/ ); ?></a>
1563
+ </div>
1564
+ </div>
1565
+ <?php
1566
+ weaverx_form_show_options( $opts );
1567
+ do_action( 'weaverxplus_admin', 'content_areas' );
1568
+ ?>
1569
+ <span style="color:green;"><b><?php _e( 'Hiding/Enabling Page and Post Comments', 'weaver-xtreme' /*adm*/ ); ?></b></span>
1570
+ <?php
1571
+ weaverx_help_link( 'help.html#LeavingComments', __( 'Help for Leaving Comments', 'weaver-xtreme' /*adm*/ ) );
1572
+ ?>
1573
+ <p>
1574
+ <?php _e( 'Controlling "Reply/Leave a Comment" visibility for pages and posts is <strong>not</strong> a theme function.
1575
  It is controlled by WordPress settings.
1576
+ Please click the ? just above to see the help file entry!', 'weaver-xtreme' /*adm*/ ); ?>
1577
+ </p>
1578
+ <?php
1579
  }
1580
 
1581
  // ======================== Main Options > Post Specifics ========================
1582
  function weaverx_mainopts_posts() {
1583
  $opts = array(
1584
+ array( 'type' => 'submit' ),
1585
+ array(
1586
+ 'name' => __( 'Post Specifics', 'weaver-xtreme' /*adm*/ ),
1587
+ 'id' => '-admin-post',
1588
+ 'type' => 'header',
1589
+ 'info' => __( 'Settings affecting Posts', 'weaver-xtreme' /*adm*/ ),
1590
+ 'help' => 'help.html#PPSpecifics',
1591
+ ),
1592
+
1593
+ array(
1594
+ 'name' => __( 'Post Area', 'weaver-xtreme' /*adm*/ ),
1595
+ 'id' => 'post',
1596
+ 'type' => 'widget_area',
1597
+ 'info' => __( 'Use these settings to override Content Area settings for Posts (blog entries).', 'weaver-xtreme' /*adm*/ ),
1598
+ ),
1599
+
1600
+ array(
1601
+ 'name' => __( 'Sticky Post BG', 'weaver-xtreme' /*adm*/ ),
1602
+ 'id' => 'stickypost_bgcolor',
1603
+ 'type' => 'ctext',
1604
+ 'info' => __( 'BG color for sticky posts, author info. (Add {border:none;padding:0;} to CSS to make sticky posts same as regular posts.)', 'weaver-xtreme' /*adm*/ ),
1605
+ ),
1606
+
1607
+ array(
1608
+ 'name' => '<small>' . __( 'Reset Major Content Options', 'weaver-xtreme' /*adm*/ ) . '</small>',
1609
+ 'id' => 'reset_content_opts',
1610
+ 'type' => 'checkbox',
1611
+ 'info' => __( 'Clear wrapping Content Area bg, borders, padding, and top/bottom margins for views with posts. Allows more flexible post settings.', 'weaver-xtreme' /*adm*/ ),
1612
+ ),
1613
+
1614
+
1615
+ array( 'type' => 'submit' ),
1616
+
1617
+
1618
+ array(
1619
+ 'name' => __( 'Post Title', 'weaver-xtreme' /*adm*/ ),
1620
+ 'id' => '-text',
1621
+ 'type' => 'subheader_alt',
1622
+ 'info' => __( 'Options for the Post Title', 'weaver-xtreme' /*adm*/ ),
1623
+ ),
1624
+
1625
+ array(
1626
+ 'name' => __( 'Post Title', 'weaver-xtreme' /*adm*/ ),
1627
+ 'id' => 'post_title',
1628
+ 'type' => 'titles',
1629
+ 'info' => __( "Post title (Blog Views)", 'weaver-xtreme' /*adm*/ ),
1630
+ ),
1631
+
1632
+ array(
1633
+ 'name' => '<small>' . __( 'Bar under Post Titles', 'weaver-xtreme' /*adm*/ ) . '</small>',
1634
+ 'id' => 'post_title_underline_int',
1635
+ 'type' => 'val_px',
1636
+ 'info' => __( 'Enter size in px if you want a bar under page title. Leave blank or 0 for no bar.', 'weaver-xtreme' /*adm*/ ),
1637
+ ),
1638
+
1639
+ array(
1640
+ 'name' => '<small>' . __( 'Post Title Hover', 'weaver-xtreme' /*adm*/ ) . '</small>',
1641
+ 'id' => 'post_title_hover_color',
1642
+ 'type' => 'ctext',
1643
+ 'info' => __( 'Color if you want the Post Title to show alternate color for hover', 'weaver-xtreme' /*adm*/ ),
1644
+ ),
1645
+
1646
+ array(
1647
+ 'name' => '<small>' . __( 'Space After Post Title', 'weaver-xtreme' /*adm*/ ) . '</small>',
1648
+ 'id' => 'post_title_bottom_margin_dec',
1649
+ 'type' => 'val_em',
1650
+ 'info' => __( 'Space between Post Title and Post Info Line or content. (Default: 0.15em)', 'weaver-xtreme' /*adm*/ ),
1651
+ ),
1652
+
1653
+
1654
+ array(
1655
+ 'name' => '<span class="i-left dashicons dashicons-admin-comments"></span><small>' . __( 'Show Comment Bubble', 'weaver-xtreme' /*adm*/ ) . '</small>',
1656
+ 'id' => 'show_post_bubble',
1657
+ 'type' => 'checkbox',
1658
+ 'info' => __( "Show comment bubble with link to comments on the post info line.", 'weaver-xtreme' /*adm*/ ),
1659
+ ),
1660
+
1661
+ array(
1662
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide <em>Post Format</em> Icons', 'weaver-xtreme' /*adm*/ ) . '</small>',
1663
+ 'id' => 'hide_post_format_icon',
1664
+ 'type' => '+checkbox',
1665
+ 'info' => __( 'Hide the icons for posts with Post Format specified. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1666
+ ),
1667
+
1668
+
1669
+ array(
1670
+ 'name' => __( 'Post Layout', 'weaver-xtreme' /*adm*/ ),
1671
+ 'id' => '-schedule',
1672
+ 'type' => 'subheader_alt',
1673
+ 'info' => __( 'Layout of Posts', 'weaver-xtreme' /*adm*/ ),
1674
+ ),
1675
+
1676
+ array(
1677
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span>' . __( 'Post Content Columns', 'weaver-xtreme' /*adm*/ ),
1678
+ 'id' => 'post_cols',
1679
+ 'type' => 'select_id', //code
1680
+ 'info' => __( 'Automatically split all post content into columns for both blog and single page views. <em>This is post content only.</em> This is not the same as "Columns of Posts". (IE&lt;=9 will display 1 col.)', 'weaver-xtreme' /*adm*/ ),
1681
+ 'value' => array(
1682
+ array( 'val' => '1', 'desc' => __( '1 Column', 'weaver-xtreme' /*adm*/ ) ),
1683
+ array( 'val' => '2', 'desc' => __( '2 Columns', 'weaver-xtreme' /*adm*/ ) ),
1684
+ array( 'val' => '3', 'desc' => __( '3 Columns', 'weaver-xtreme' /*adm*/ ) ),
1685
+ array( 'val' => '4', 'desc' => __( '4 Columns', 'weaver-xtreme' /*adm*/ ) ),
1686
+ ),
1687
+ ),
1688
+
1689
+ array(
1690
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span>' . __( 'Columns of Posts', 'weaver-xtreme' /*adm*/ ),
1691
+ 'id' => 'blog_cols',
1692
+ 'type' => 'select_id', //code
1693
+ 'info' => __( 'Display posts on blog page with this many columns. (You should adjust "Display posts on blog page with this many columns" on Settings:Reading to be a multiple of this value.)', 'weaver-xtreme' /*adm*/ ),
1694
+ 'value' => array(
1695
+ array( 'val' => '1', 'desc' => __( '1 Column', 'weaver-xtreme' /*adm*/ ) ),
1696
+ array( 'val' => '2', 'desc' => __( '2 Columns', 'weaver-xtreme' /*adm*/ ) ),
1697
+ array( 'val' => '3', 'desc' => __( '3 Columns', 'weaver-xtreme' /*adm*/ ) ),
1698
+ ),
1699
+ ),
1700
+
1701
+ array(
1702
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span><small>' . __( 'Use Columns on Archive Pages', 'weaver-xtreme' /*adm*/ ) . '</small>',
1703
+ 'id' => 'archive_cols',
1704
+ 'type' => 'checkbox', //code
1705
+ 'info' => __( 'Display posts on archive-like pages using columns. (Archive, Author, Category, Tag)', 'weaver-xtreme' /*adm*/ ),
1706
+ ),
1707
+
1708
+ array(
1709
+ 'name' => '<small>' . __( 'First Post One Column', 'weaver-xtreme' /*adm*/ ) . '</small>',
1710
+ 'id' => 'blog_first_one',
1711
+ 'type' => 'checkbox',
1712
+ 'info' => __( 'Always display the first post in one column.', 'weaver-xtreme' /*adm*/ ),
1713
+ ),
1714
+ array(
1715
+ 'name' => '<small>' . __( 'Sticky Posts One Column', 'weaver-xtreme' /*adm*/ ) . '</small>',
1716
+ 'id' => 'blog_sticky_one',
1717
+ 'type' => 'checkbox',
1718
+ 'info' => __( "Display opening Sticky Posts in one column. If First Post One Column also checked, then first non-sticky post will be one column.", 'weaver-xtreme' /*adm*/ ),
1719
+ ),
1720
+ array(
1721
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#9783;</span><small>' . __( 'Use <em>Masonry</em> for Posts', 'weaver-xtreme' /*adm*/ ) . '</small>',
1722
+ 'id' => 'masonry_cols',
1723
+ 'type' => 'select_id', //code
1724
+ 'info' => __( 'Use the <em>Masonry</em> blog layout option to show dynamically packed posts on blog and archive-like pages. Overrides "Columns of Posts" setting. <em>Not compatible with full width FI BG images.</em>', 'weaver-xtreme' /*adm*/ ),
1725
+ 'value' => array(
1726
+ array( 'val' => '0', 'desc' => '' ),
1727
+ array( 'val' => '2', 'desc' => __( '2 Columns', 'weaver-xtreme' /*adm*/ ) ),
1728
+ array( 'val' => '3', 'desc' => __( '3 Columns', 'weaver-xtreme' /*adm*/ ) ),
1729
+ array( 'val' => '4', 'desc' => __( '4 Columns', 'weaver-xtreme' /*adm*/ ) ),
1730
+ array( 'val' => '5', 'desc' => __( '5 Columns', 'weaver-xtreme' /*adm*/ ) ),
1731
+ ),
1732
+ ),
1733
+
1734
+ array(
1735
+ 'name' => '<small>' . __( 'Compact <em>Post Format</em> Posts', 'weaver-xtreme' /*adm*/ ) . '</small>',
1736
+ 'id' => 'compact_post_formats',
1737
+ 'type' => 'checkbox',
1738
+ 'info' => __( 'Use compact layout for <em>Post Format</em> posts (Image, Gallery, Video, etc.). Useful for photo blogs and multi-column layouts. Looks great with <em>Masonry</em>.', 'weaver-xtreme' /*adm*/ ),
1739
+ ),
1740
+ array(
1741
+ 'name' => __( 'Photo Bloging', 'weaver-xtreme' /*adm*/ ),
1742
+ 'info' => __( 'Read the Help entry for information on creating a Photo Blog page', 'weaver-xtreme' /*adm*/ ),
1743
+ 'type' => 'note',
1744
+ 'help' => 'help.html#PhotoBlog',
1745
+ ),
1746
+
1747
+
1748
+ array( 'type' => 'submit' ),
1749
+
1750
+ array(
1751
+ 'name' => __( 'Excerpts / Full Posts', 'weaver-xtreme' /*adm*/ ),
1752
+ 'id' => '-exerpt-view',
1753
+ 'type' => 'subheader_alt',
1754
+ 'info' => __( 'How to display posts in Blog / Archive Views', 'weaver-xtreme' /*adm*/ ),
1755
+ ),
1756
+ array(
1757
+ 'name' => __( 'Show Full Blog Posts', 'weaver-xtreme' /*adm*/ ),
1758
+ 'id' => 'fullpost_blog',
1759
+ 'type' => 'checkbox',
1760
+ 'info' => __( 'Will display full blog post instead of excerpts on <em>blog pages</em>.', 'weaver-xtreme' /*adm*/ ),
1761
+ ),
1762
+ array(
1763
+ 'name' => '<small>' . __( 'Full Post for Archives', 'weaver-xtreme' /*adm*/ ) . '</small>',
1764
+ 'id' => 'fullpost_archive',
1765
+ 'type' => 'checkbox',
1766
+ 'info' => __( 'Display the full posts instead of excerpts on <em>special post pages</em>. (Archives, Categories, etc.) Does not override manually added &lt;--more--> breaks.', 'weaver-xtreme' /*adm*/ ),
1767
+ ),
1768
+ array(
1769
+ 'name' => '<small>' . __( 'Full Post for Searches', 'weaver-xtreme' /*adm*/ ) . '</small>',
1770
+ 'id' => 'fullpost_search',
1771
+ 'type' => 'checkbox',
1772
+ 'info' => __( 'Display the full posts instead of excerpts for Search results. Does not override manually added &lt;--more--> breaks.', 'weaver-xtreme' /*adm*/ ),
1773
+ ),
1774
+ array(
1775
+ 'name' => '<small>' . __( 'Full text for 1st <em>"n"</em> Posts', 'weaver-xtreme' /*adm*/ ) . '</small>',
1776
+ 'id' => 'fullpost_first',
1777
+ 'type' => 'val_num',
1778
+ 'info' => __( 'Display the full post for the first "n" posts on Blog pages. Does not override manually added &lt;--more--> breaks.', 'weaver-xtreme' /*adm*/ ),
1779
+ ),
1780
+ array(
1781
+ 'name' => '<small>' . __( 'Excerpt length', 'weaver-xtreme' /*adm*/ ) . '</small>',
1782
+ 'id' => 'excerpt_length',
1783
+ 'type' => 'val_num',
1784
+ 'info' => __( 'Change post excerpt length. (Default: 40 words)', 'weaver-xtreme' /*adm*/ ),
1785
+ ),
1786
+ array(
1787
+ 'name' => '<small>' . __( '<em>Continue reading</em> Message', 'weaver-xtreme' /*adm*/ ) . '</small>',
1788
+ 'id' => 'excerpt_more_msg',
1789
+ 'type' => 'widetext',
1790
+ 'info' => __( 'Change default <em>Continue reading &rarr;</em> message for excerpts. Can include HTML (e.g., &lt;img>).', 'weaver-xtreme' /*adm*/ ),
1791
+ ),
1792
+ array( 'type' => 'endheader' ),
1793
+
1794
+
1795
+ array(
1796
+ 'name' => __( 'Post Navigation', 'weaver-xtreme' /*adm*/ ),
1797
+ 'id' => '-leftright',
1798
+ 'type' => 'subheader_alt',
1799
+ 'info' => __( 'Navigation for moving between posts', 'weaver-xtreme' /*adm*/ ),
1800
+ ),
1801
+ array(
1802
+ 'name' => __( 'Blog Navigation Style', 'weaver-xtreme' /*adm*/ ),
1803
+ 'id' => 'nav_style',
1804
+ 'type' => 'select_id',
1805
+ 'info' => __( 'Style of navigation links on blog pages: "Older/Newer posts", "Previous/Next Post", or by page numbers', 'weaver-xtreme' /*adm*/ ),
1806
+ 'value' => array(
1807
+ array( 'val' => 'old_new', 'desc' => __( 'Older/Newer', 'weaver-xtreme' /*adm*/ ) ),
1808
+ array( 'val' => 'prev_next', 'desc' => __( 'Previous/Next', 'weaver-xtreme' /*adm*/ ) ),
1809
+ array( 'val' => 'paged_left', 'desc' => __( 'Paged - Left', 'weaver-xtreme' /*adm*/ ) ),
1810
+ array( 'val' => 'paged_right', 'desc' => __( 'Paged - Right', 'weaver-xtreme' /*adm*/ ) ),
1811
+ ),
1812
+ ),
1813
+ array(
1814
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Top Links', 'weaver-xtreme' /*adm*/ ) . '</small>',
1815
+ 'id' => 'nav_hide_above',
1816
+ 'type' => '+checkbox',
1817
+ 'info' => __( 'Hide the blog navigation links at the top (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1818
+ ),
1819
+ array(
1820
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Bottom Links', 'weaver-xtreme' /*adm*/ ) . '</small>',
1821
+ 'id' => 'nav_hide_below',
1822
+ 'type' => '+checkbox',
1823
+ 'info' => __( 'Hide the blog navigation links at the bottom (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1824
+ ),
1825
+ array(
1826
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Show Top on First Page', 'weaver-xtreme' /*adm*/ ) . '</small>',
1827
+ 'id' => 'nav_show_first',
1828
+ 'type' => '+checkbox',
1829
+ 'info' => __( 'Show navigation at top even on the first page (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1830
+ ),
1831
+
1832
+ array(
1833
+ 'name' => __( 'Single Page Navigation Style', 'weaver-xtreme' /*adm*/ ),
1834
+ 'id' => 'single_nav_style',
1835
+ 'type' => 'select_id',
1836
+ 'info' => __( 'Style of navigation links on post Single pages: Previous/Next, by title, or none', 'weaver-xtreme' /*adm*/ ),
1837
+ 'value' => array(
1838
+ array( 'val' => 'title', 'desc' => __( 'Post Titles', 'weaver-xtreme' /*adm*/ ) ),
1839
+ array( 'val' => 'prev_next', 'desc' => __( 'Previous/Next', 'weaver-xtreme' /*adm*/ ) ),
1840
+ array( 'val' => 'hide', 'desc' => __( 'None - no display', 'weaver-xtreme' /*adm*/ ) ),
1841
+ ),
1842
+ ),
1843
+ array(
1844
+ 'name' => '<small>' . __( 'Link to Same Categories', 'weaver-xtreme' /*adm*/ ) . '</small>',
1845
+ 'id' => 'single_nav_link_cats',
1846
+ 'type' => '+checkbox',
1847
+ 'info' => __( 'Single Page navigation links point to posts with same categories. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1848
+ ),
1849
+ array(
1850
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Top Links', 'weaver-xtreme' /*adm*/ ) . '</small>',
1851
+ 'id' => 'single_nav_hide_above',
1852
+ 'type' => '+checkbox',
1853
+ 'info' => __( 'Hide the single page navigation links at the top (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1854
+ ),
1855
+ array(
1856
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Bottom Links', 'weaver-xtreme' /*adm*/ ) . '</small>',
1857
+ 'id' => 'single_nav_hide_below',
1858
+ 'type' => '+checkbox',
1859
+ 'info' => __( 'Hide the single page navigation links at the bottom (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
1860
+ ),
1861
+
1862
+ array( 'type' => 'submit' ),
1863
+ array(
1864
+ 'name' => __( 'Post Meta Info Areas', 'weaver-xtreme' /*adm*/ ),
1865
+ 'id' => '-info',
1866
+ 'type' => 'subheader_alt',
1867
+ 'info' => __( 'Top and Bottom Post Meta Information areas', 'weaver-xtreme' /*adm*/ ),
1868
+ ),
1869
+
1870
+ array(
1871
+ 'name' => __( 'Top Post Info', 'weaver-xtreme' /*adm*/ ),
1872
+ 'id' => 'post_info_top',
1873
+ 'type' => 'titles_text',
1874
+ 'info' => __( "Top Post info line", 'weaver-xtreme' /*adm*/ ),
1875
+ ),
1876
+
1877
+
1878
+ array(
1879
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide top post info', 'weaver-xtreme' /*adm*/ ) . '</small>',
1880
+ 'id' => 'post_info_hide_top',
1881
+ 'type' => 'checkbox', //code
1882
+ 'info' => __( 'Hide entire top info line (posted on, by) of post.', 'weaver-xtreme' /*adm*/ ),
1883
+ ),
1884
+
1885
+ array(
1886
+ 'name' => __( 'Bottom Post Info', 'weaver-xtreme' /*adm*/ ),
1887
+ 'id' => 'post_info_bottom',
1888
+ 'type' => 'titles_text',
1889
+ 'info' => __( 'The bottom post info line', 'weaver-xtreme' /*adm*/ ),
1890
+ ),
1891
+
1892
+ array(
1893
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide bottom post info', 'weaver-xtreme' /*adm*/ ) . '</small>',
1894
+ 'id' => 'post_info_hide_bottom',
1895
+ 'type' => 'checkbox', //code
1896
+ 'info' => __( 'Hide entire bottom info line (posted in, comments) of post.', 'weaver-xtreme' /*adm*/ ),
1897
+ ),
1898
+
1899
+
1900
+ array(
1901
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span>' . __( 'Show Author Avatar', 'weaver-xtreme' /*adm*/ ),
1902
+ 'id' => 'show_post_avatar',
1903
+ 'type' => 'select_id', //code
1904
+ 'info' => __( 'Show author avatar on the post info line (also can be set per post with post editor)', 'weaver-xtreme' /*adm*/ ),
1905
+ 'value' => array(
1906
+ array( 'val' => 'hide', 'desc' => __( 'Do Not Show', 'weaver-xtreme' /*adm*/ ) ),
1907
+ array( 'val' => 'start', 'desc' => __( 'Start of Info Line', 'weaver-xtreme' /*adm*/ ) ),
1908
+ array( 'val' => 'end', 'desc' => __( 'End of Info Line', 'weaver-xtreme' /*adm*/ ) ),
1909
+ ),
1910
+ ),
1911
+
1912
+ array(
1913
+ 'name' => '<small>' . __( 'Avatar size', 'weaver-xtreme' /*adm*/ ) . '</small>',
1914
+ 'id' => 'post_avatar_int',
1915
+ 'type' => 'val_px',
1916
+ 'info' => __( 'Size of Avatar in px. (Default: 28px)', 'weaver-xtreme' /*adm*/ ),
1917
+ ),
1918
+
1919
+ array(
1920
+ 'name' => __( 'Use Icons in Post Info', 'weaver-xtreme' /*adm*/ ),
1921
+ 'id' => 'post_icons',
1922
+ 'type' => 'select_id',
1923
+ 'info' => __( 'Use Icons instead of Text descriptions in Post Meta Info', 'weaver-xtreme' /*adm*/ ),
1924
+ 'value' => array(
1925
+ array( 'val' => 'text', 'desc' => __( 'Text Descriptions', 'weaver-xtreme' /*adm*/ ) ),
1926
+ array( 'val' => 'fonticons', 'desc' => __( 'Font Icons', 'weaver-xtreme' /*adm*/ ) ),
1927
+ array( 'val' => 'graphics', 'desc' => __( 'Graphic Icons', 'weaver-xtreme' /*adm*/ ) ),
1928
+ ),
1929
+ ),
1930
+ array(
1931
+ 'name' => '<small>' . __( 'Font Icons Color', 'weaver-xtreme' /*adm*/ ) . '</small>',
1932
+ 'id' => 'post_icons_color',
1933
+ 'type' => 'color',
1934
+ 'info' => __( 'Color for Font Icons (Default: Post Info text color)', 'weaver-xtreme' /*adm*/ ),
1935
+ ),
1936
+
1937
+
1938
+ array(
1939
+ 'name' => '<span style="color:red">' . __( 'Note:', 'weaver-xtreme' /*adm*/ ) . '</span>',
1940
+ 'type' => 'note',
1941
+ 'info' => __( 'Hiding any meta info item automatically uses Icons instead of text descriptions.', 'weaver-xtreme' /*adm*/ ),
1942
+ ),
1943
+ array(
1944
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Post Date', 'weaver-xtreme' /*adm*/ ) . '</small>',
1945
+ 'id' => 'post_hide_date',
1946
+ 'type' => 'checkbox',
1947
+ 'info' => __( 'Hide the post date everywhere it is normally displayed.', 'weaver-xtreme' /*adm*/ ),
1948
+ ),
1949
+ array(
1950
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Post Author', 'weaver-xtreme' /*adm*/ ) . '</small>',
1951
+ 'id' => 'post_hide_author',
1952
+ 'type' => 'checkbox',
1953
+ 'info' => __( 'Hide the post author everywhere it is normally displayed.', 'weaver-xtreme' /*adm*/ ),
1954
+ ),
1955
+ array(
1956
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Post Categories', 'weaver-xtreme' /*adm*/ ) . '</small>',
1957
+ 'id' => 'post_hide_categories',
1958
+ 'type' => 'checkbox',
1959
+ 'info' => __( 'Hide the post categories wherever they are normally displayed.', 'weaver-xtreme' /*adm*/ ),
1960
+ ),
1961
+ array(
1962
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Post Tags', 'weaver-xtreme' /*adm*/ ) . '</small>',
1963
+ 'id' => 'post_hide_tags',
1964
+ 'type' => 'checkbox',
1965
+ 'info' => __( 'Hide the post tags wherever they are normally displayed.', 'weaver-xtreme' /*adm*/ ),
1966
+ ),
1967
+ array(
1968
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Permalink', 'weaver-xtreme' /*adm*/ ) . '</small>',
1969
+ 'id' => 'hide_permalink',
1970
+ 'type' => 'checkbox',
1971
+ 'info' => __( 'Hide the permalink.', 'weaver-xtreme' /*adm*/ ),
1972
+ ),
1973
+ array(
1974
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Category if Only One', 'weaver-xtreme' /*adm*/ ) . '</small>',
1975
+ 'id' => 'hide_singleton_category',
1976
+ 'type' => 'checkbox',
1977
+ 'info' => __( 'If there is only one overall category defined (Uncategorized), don\'t show Category of post.', 'weaver-xtreme' /*adm*/ ),
1978
+ ),
1979
+ array(
1980
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Author for Single Author Site', 'weaver-xtreme' /*adm*/ ) . '</small>',
1981
+ 'id' => 'post_hide_single_author',
1982
+ 'type' => 'checkbox',
1983
+ 'info' => __( 'Hide author information if site has only a single author.', 'weaver-xtreme' /*adm*/ ),
1984
+ ),
1985
 
1986
+ array(
1987
+ 'name' => __( 'Post Info Links', 'weaver-xtreme' /*adm*/ ),
1988
+ 'id' => 'ilink',
1989
+ 'type' => 'link',
1990
+ 'info' => __( 'Links in post information top and bottom lines.', 'weaver-xtreme' /*adm*/ ),
1991
+ ),
1992
+
1993
+ array( 'type' => 'submit' ),
1994
+
1995
+
1996
+ array(
1997
+ 'name' => __( 'Featured Image - Posts', 'weaver-xtreme' /*adm*/ ),
1998
+ 'id' => '-id',
1999
+ 'type' => 'subheader_alt',
2000
+ 'info' => __( 'Display of Post Featured Images', 'weaver-xtreme' /*adm*/ ),
2001
+ ),
2002
+
2003
+ array(
2004
+ 'name' => __( 'Full Width FI BG Image:', 'weaver-xtreme' /*adm*/ ),
2005
+ 'type' => 'note',
2006
+ 'info' => __( 'To create full width Post BG images from the FI, check the <em>Post Area Extend BG Attributes</em> box at <em>Full Width</em> tab.', 'weaver-xtreme' /*adm*/ ),
2007
+ ),
2008
+
2009
+ array(
2010
+ 'name' => '<small>' . __( "Don't add link to FI", 'weaver-xtreme' /*adm*/ ) . '</small>',
2011
+ 'id' => 'post_fi_nolink',
2012
+ 'type' => '+checkbox',
2013
+ 'info' => __( 'Do not add link to Featured Image for any post layout. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2014
+ ),
2015
+
2016
+ array(
2017
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __( 'FI Location - Full Post', 'weaver-xtreme' /*adm*/ ),
2018
+ 'id' => 'post_full_fi_location',
2019
+ 'type' => 'fi_location_post',
2020
+ 'info' => __( 'Where to display Featured Image for full blog posts.', 'weaver-xtreme' /*adm*/ ),
2021
+ ),
2022
+
2023
+ array(
2024
+ 'name' => '<small>' . __( 'Post Height - Blog View', 'weaver-xtreme' /*adm*/ ) . '</small>',
2025
+ 'id' => 'post_blog_min_height',
2026
+ 'type' => '+val_px',
2027
+ 'info' => __( 'Minimum Height of Post, full or excerpt, with Parallax BG in blog views. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2028
+ ),
2029
+
2030
+ array(
2031
+ 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __( 'FI Alignment - Full post', 'weaver-xtreme' /*adm*/ ) . '</small>',
2032
+ 'id' => 'post_full_fi_align',
2033
+ 'type' => 'fi_align',
2034
+ 'info' => __( 'Featured Image alignment', 'weaver-xtreme' /*adm*/ ),
2035
+ ),
2036
+
2037
+
2038
+ array(
2039
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide FI - Full Posts', 'weaver-xtreme' /*adm*/ ) . '</small>',
2040
+ 'id' => 'post_full_fi_hide',
2041
+ 'type' => 'select_hide',
2042
+ 'info' => __( 'Hide Featured Images on full blog posts.', 'weaver-xtreme' /*adm*/ ),
2043
+ ),
2044
+ array(
2045
+ 'name' => '<small>' . __( 'FI Size - Full Posts', 'weaver-xtreme' /*adm*/ ) . '</small>',
2046
+ 'id' => 'post_full_fi_size',
2047
+ 'type' => 'select_id',
2048
+ 'info' => __( 'Media Library Image Size for Featured Image on full posts.', 'weaver-xtreme' /*adm*/ ),
2049
+ 'value' => array(
2050
+ array( 'val' => 'thumbnail', 'desc' => __( 'Thumbnail', 'weaver-xtreme' /*adm*/ ) ),
2051
+ array( 'val' => 'medium', 'desc' => __( 'Medium', 'weaver-xtreme' /*adm*/ ) ),
2052
+ array( 'val' => 'large', 'desc' => __( 'Large', 'weaver-xtreme' /*adm*/ ) ),
2053
+ array( 'val' => 'full', 'desc' => __( 'Full', 'weaver-xtreme' /*adm*/ ) ),
2054
+ ),
2055
+ ),
2056
+ array(
2057
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'FI Width, Full Posts', 'weaver-xtreme' /*adm*/ ) . '</small>',
2058
+ 'id' => 'post_full_fi_width',
2059
+ 'type' => '+val_percent',
2060
+ 'info' => __( 'Width of Featured Image on Full Posts. Max Width in %, overrides FI Size selection. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2061
+ ),
2062
+
2063
+
2064
+ array(
2065
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __( 'FI Location - Excerpts', 'weaver-xtreme' /*adm*/ ),
2066
+ 'id' => 'post_excerpt_fi_location',
2067
+ 'type' => 'fi_location_post',
2068
+ 'info' => __( 'Where to display Featured Image for posts displayed as excerpt.', 'weaver-xtreme' /*adm*/ ),
2069
+ ),
2070
+
2071
+ array(
2072
+ 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __( 'FI Alignment - Excerpts', 'weaver-xtreme' /*adm*/ ) . '</small>',
2073
+ 'id' => 'post_excerpt_fi_align',
2074
+ 'type' => 'fi_align',
2075
+ 'info' => __( 'How to align the Featured Image', 'weaver-xtreme' /*adm*/ ),
2076
+ ),
2077
+
2078
+ array(
2079
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide FI - Excerpts', 'weaver-xtreme' /*adm*/ ) . '</small>',
2080
+ 'id' => 'post_excerpt_fi_hide',
2081
+ 'type' => 'select_hide',
2082
+ 'info' => __( 'Where to hide Featured Images on full blog posts.', 'weaver-xtreme' /*adm*/ ),
2083
+ ),
2084
+ array(
2085
+ 'name' => '<small>FI Size - Excerpts</small>',
2086
+ 'id' => 'post_excerpt_fi_size',
2087
+ 'type' => 'select_id',
2088
+ 'info' => __( 'Media Library Image Size for Featured Image on excerpts.', 'weaver-xtreme' /*adm*/ ),
2089
+ 'value' => array(
2090
+ array( 'val' => 'thumbnail', 'desc' => __( 'Thumbnail', 'weaver-xtreme' /*adm*/ ) ),
2091
+ array( 'val' => 'medium', 'desc' => __( 'Medium', 'weaver-xtreme' /*adm*/ ) ),
2092
+ array( 'val' => 'large', 'desc' => __( 'Large', 'weaver-xtreme' /*adm*/ ) ),
2093
+ array( 'val' => 'full', 'desc' => __( 'Full', 'weaver-xtreme' /*adm*/ ) ),
2094
+ ),
2095
+ ),
2096
+ array(
2097
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'FI Width, Excerpts', 'weaver-xtreme' /*adm*/ ) . '</small>',
2098
+ 'id' => 'post_excerpt_fi_width',
2099
+ 'type' => '+val_percent',
2100
+ 'info' => __( 'Width of Featured Image on excerpts. Max Width in %, overrides FI Size selection. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2101
+ ),
2102
 
 
 
2103
 
2104
+ array(
2105
+ 'name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __( 'FI Location - Single Page', 'weaver-xtreme' /*adm*/ ),
2106
+ 'id' => 'post_fi_location',
2107
+ 'type' => 'fi_location',
2108
+ 'info' => __( 'Where to display Featured Image for posts on single page view.', 'weaver-xtreme' /*adm*/ ),
2109
+ ),
2110
+
2111
+ array(
2112
+ 'name' => '<small>' . __( 'Post Height - Single Page', 'weaver-xtreme' /*adm*/ ) . '</small>',
2113
+ 'id' => 'post_min_height',
2114
+ 'type' => '+val_px',
2115
+ 'info' => __( 'Minimum Height of Post with Parallax BG in Single Page view. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2116
+ ),
2117
+ array(
2118
+ 'name' => __( 'Parallax FI BG Image:', 'weaver-xtreme' /*adm*/ ),
2119
+ 'info' => __( 'It will usually be more useful to use the Per Post FI option to specify Parallax BG images.', 'weaver-xtreme' /*adm*/ ),
2120
+ 'type' => 'note',
2121
+ ),
2122
+
2123
+ array(
2124
+ 'name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __( 'FI Alignment - Single Page', 'weaver-xtreme' /*adm*/ ) . '</small>',
2125
+ 'id' => 'post_fi_align',
2126
+ 'type' => 'fi_align',
2127
+ 'info' => __( 'How to align the Featured Image on Single Page View.', 'weaver-xtreme' /*adm*/ ),
2128
+ ),
2129
+
2130
+ array(
2131
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide FI - Single Page', 'weaver-xtreme' /*adm*/ ) . '</small>',
2132
+ 'id' => 'post_fi_hide',
2133
+ 'type' => 'select_hide',
2134
+ 'info' => __( 'Where to hide Featured Images on single page view.', 'weaver-xtreme' /*adm*/ ),
2135
+ ),
2136
+ array(
2137
+ 'name' => '<small>' . __( 'FI Size - Single Posts', 'weaver-xtreme' /*adm*/ ) . '</small>',
2138
+ 'id' => 'post_fi_size',
2139
+ 'type' => 'select_id',
2140
+ 'info' => __( 'Media Library Image Size for Featured Image on single page view.', 'weaver-xtreme' /*adm*/ ),
2141
+ 'value' => array(
2142
+ array( 'val' => 'thumbnail', 'desc' => __( 'Thumbnail', 'weaver-xtreme' /*adm*/ ) ),
2143
+ array( 'val' => 'medium', 'desc' => __( 'Medium', 'weaver-xtreme' /*adm*/ ) ),
2144
+ array( 'val' => 'large', 'desc' => __( 'Large', 'weaver-xtreme' /*adm*/ ) ),
2145
+ array( 'val' => 'full', 'desc' => __( 'Full', 'weaver-xtreme' /*adm*/ ) ),
2146
+ ),
2147
+ ),
2148
+ array(
2149
+ 'name' => '<span class="i-left" style="font-size:150%;">&harr;</span><small>' . __( 'FI Width, Single Page', 'weaver-xtreme' /*adm*/ ) . '</small>',
2150
+ 'id' => 'post_fi_width',
2151
+ 'type' => '+val_percent',
2152
+ 'info' => __( 'Width of Featured Image on single page view. Max Width in %, overrides FI Size selection. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2153
+ ),
2154
 
 
2155
 
2156
+ array( 'type' => 'submit' ),
2157
 
 
 
2158
 
2159
+ array(
2160
+ 'name' => __( 'More Post Related Options', 'weaver-xtreme' /*adm*/ ),
2161
+ 'id' => '-forms',
2162
+ 'type' => 'subheader_alt',
2163
+ 'info' => __( 'Other options related to post display, including single pages.', 'weaver-xtreme' /*adm*/ ),
2164
+ ),
2165
+ array(
2166
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Show <em>Comments are closed.</em>', 'weaver-xtreme' /*adm*/ ) . '</small>',
2167
+ 'id' => 'show_comments_closed',
2168
+ 'type' => 'checkbox',
2169
+ 'info' => __( 'If comments are off, and no comments have been made, show the <em>Comments are closed.</em> message.', 'weaver-xtreme' /*adm*/ ),
2170
+ ),
2171
+ array(
2172
+ 'name' => __( 'Author Info BG', 'weaver-xtreme' /*adm*/ ),
2173
+ 'id' => 'post_author_bgcolor',
2174
+ 'type' => 'ctext',
2175
+ 'info' => __( 'Background color used for Author Bio.', 'weaver-xtreme' /*adm*/ ),
2176
+ ),
2177
+ array(
2178
+ 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __( 'Hide Author Bio', 'weaver-xtreme' /*adm*/ ) . '</small>',
2179
+ 'id' => 'hide_author_bio',
2180
+ 'type' => 'checkbox',
2181
+ 'info' => __( 'Hide display of author bio box on Author Archive and Single Post page views.', 'weaver-xtreme' /*adm*/ ),
2182
+ ),
2183
+ array(
2184
+ 'name' => '<small>' . __( 'Allow comments for attachments', 'weaver-xtreme' /*adm*/ ) . '</small>',
2185
+ 'id' => 'allow_attachment_comments',
2186
+ 'type' => 'checkbox',
2187
+ 'info' => __( 'Allow visitors to leave comments for attachments (usually full size media image - only if comments allowed).', 'weaver-xtreme' /*adm*/ ),
2188
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2189
  );
2190
 
2191
+ ?>
2192
+ <div class="options-intro">
2193
+ <?php _e( '<strong>Post Specifics: </strong>
2194
  Options related to <strong>Posts</strong>, including <strong>Background</strong> color, <strong>Columns</strong> displayed
2195
  on blog pages, <strong>Title</strong> options, <strong>Navigation</strong> to earlier and later posts, the post
2196
+ <strong>Info Lines</strong>, <strong>Excerpts</strong>, and <strong>Featured Image</strong> handling.', 'weaver-xtreme' /*adm*/ ); ?>
2197
+ <br/>
2198
+ <div class="options-intro-menu">
2199
+ <a href="#post-area"><?php _e( 'Post Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
2200
+ <a href="#post-title"><?php _e( 'Post Title', 'weaver-xtreme' /*adm*/ ); ?></a> |
2201
+ <a href="#post-layout"><?php _e( 'Post Layout', 'weaver-xtreme' /*adm*/ ); ?></a> |
2202
+ <a href="#excerpts-full-posts"><?php _e( 'Excerpts / Full Posts', 'weaver-xtreme' /*adm*/ ); ?></a> |
2203
+ <a href="#post-navigation"><?php _e( 'Post Navigation', 'weaver-xtreme' /*adm*/ ); ?></a> |
2204
+ <a href="#post-meta-info-areas"><?php _e( 'Post Meta Info Areas', 'weaver-xtreme' /*adm*/ ); ?></a> |
2205
+ <a href="#featured-image-posts"><?php _e( 'Featured Image - Posts', 'weaver-xtreme' /*adm*/ ); ?></a> |
2206
+ <a href="#more-post-related-options"><?php _e( 'More Post Related Options', 'weaver-xtreme' /*adm*/ ); ?></a> |
2207
+ <a href="#custom-post-info-lines"><?php _e( 'Custom Post Info Lines', 'weaver-xtreme' /*adm*/ ); ?></a>
2208
+ </div>
2209
+ </div>
2210
+ <?php
2211
+ weaverx_form_show_options( $opts );
2212
+ do_action( 'weaverxplus_admin', 'post_specifics' );
2213
+ ?>
2214
+ <span style="color:green;"><b><?php _e( 'Hiding/Enabling Page and Post Comments', 'weaver-xtreme' /*adm*/ ); ?></b></span>
2215
+ <?php
2216
+ weaverx_help_link( 'help.html#LeavingComments', __( 'Help for Leaving Comments', 'weaver-xtreme' /*adm*/ ) );
2217
+ ?>
2218
+ <p>
2219
+ <?php _e( 'Controlling "Reply/Leave a Comment" visibility for pages and posts is <strong>not</strong> a theme function.
2220
  It is controlled by WordPress settings.
2221
  Please click the ? just above to see the help file entry!
2222
+ (Additional options for comment <em>styling</em> are found on the Content Areas tab.)', 'weaver-xtreme' /*adm*/ ); ?>
2223
+ </p>
2224
+ <?php
2225
  }
2226
 
2227
 
2228
  // ======================== Main Options > Footer ========================
2229
  function weaverx_mainopts_footer() {
2230
  $opts = array(
2231
+ array( 'type' => 'submit' ),
2232
+
2233
+ array(
2234
+ 'name' => __( 'Footer Options', 'weaver-xtreme' /*adm*/ ),
2235
+ 'id' => '-admin-generic',
2236
+ 'type' => 'header',
2237
+ 'info' => __( 'Settings for the footer', 'weaver-xtreme' /*adm*/ ),
2238
+ 'help' => 'help.html#FooterOpt',
2239
+ ),
2240
 
2241
 
2242
+ array(
2243
+ 'name' => __( 'Footer Area', 'weaver-xtreme' /*adm*/ ),
2244
+ 'id' => 'footer',
2245
+ 'type' => 'widget_area',
2246
+ 'info' => __( 'Properties for the footer area.', 'weaver-xtreme' /*adm*/ ),
2247
+ ),
2248
+ array(
2249
+ 'name' => __( 'Footer Links', 'weaver-xtreme' /*adm*/ ),
2250
+ 'id' => 'footerlink',
2251
+ 'type' => 'link',
2252
+ 'info' => __( 'Color for links in Footer (Uses Standard Link colors if left blank).', 'weaver-xtreme' /*adm*/ ),
2253
+ ),
2254
+ array( 'type' => 'submit' ),
2255
 
2256
+ array(
2257
+ 'name' => __( 'Footer Widget Area', 'weaver-xtreme' /*adm*/ ),
2258
+ 'id' => 'footer_sb',
2259
+ 'type' => 'widget_area_submit',
2260
+ 'info' => __( 'Properties for the Footer Widget Area.', 'weaver-xtreme' /*adm*/ ),
2261
+ ),
2262
 
2263
+ array(
2264
+ 'name' => __( 'Footer HTML', 'weaver-xtreme' /*adm*/ ),
2265
+ 'id' => 'footer_html',
2266
+ 'type' => 'widget_area',
2267
+ 'info' => __( 'Add arbitrary HTML to Footer Area (in &lt;div id=\"footer-html\"&gt;)', 'weaver-xtreme' /*adm*/ ),
2268
+ ),
2269
 
2270
+ array(
2271
+ 'name' => '<span class="i-left dashicons dashicons-editor-code"></span>' . __( 'Footer HTML content', 'weaver-xtreme' /*adm*/ ),
2272
+ 'id' => 'footer_html_text',
2273
+ 'type' => 'textarea',
2274
+ 'placeholder' => __( 'Any HTML, including shortcodes.', 'weaver-xtreme' /*adm*/ ),
2275
+ 'info' => __( "Add arbitrary HTML", 'weaver-xtreme' /*adm*/ ),
2276
+ 'val' => 4,
2277
+ ),
2278
+ array( 'type' => 'submit' ),
2279
  );
2280
 
2281
+ ?>
2282
+ <div class="options-intro">
2283
+ <?php _e( '<strong>Footer: </strong> Options affecting the <strong>Footer</strong> area, including <strong>Background</strong>
2284
+ color, <strong>Borders</strong>, and the <strong>Copyright</strong> message.', 'weaver-xtreme' /*adm*/ ); ?>
2285
+ <br/>
2286
+ <div class="options-intro-menu">
2287
+ <a href="#footer-area"><?php _e( 'Footer Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
2288
+ <a href="#footer-widget-area"><?php _e( 'Footer Widget Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
2289
+ <a href="#footer-html"><?php _e( 'Footer HTML', 'weaver-xtreme' /*adm*/ ); ?></a> |
2290
+ <a href="#site-copyright"><?php _e( 'Site Copyright', 'weaver-xtreme' /*adm*/ ); ?></a>
2291
+ </div>
2292
+ </div>
2293
+ <?php
2294
+ weaverx_form_show_options( $opts );
2295
+ do_action( 'weaverxplus_admin', 'footer_opts' );
2296
+ ?>
2297
  <a id="site-copyright"></a>
2298
+ <strong>&copy;</strong>&nbsp;<span style="color:blue;"><b><?php _e( 'Site Copyright', 'weaver-xtreme' /*adm*/ ); ?></b></span>
2299
+ <br/>
2300
+ <small>
2301
+ <?php _e( 'If you fill this in, the default copyright notice in the footer will be replaced with the text here.
2302
  It will not automatically update from year to year.
2303
  Use &amp;copy; to display &copy;.
2304
  You can use other HTML as well.
2305
+ Use <span class="style4">&amp;nbsp;</span> to hide the copyright notice. &diams;', 'weaver-xtreme' /*adm*/ ); ?>
2306
+ </small>
2307
+ <br/>
2308
 
2309
  <span class="dashicons dashicons-editor-code"></span>
2310
+ <?php weaverx_textarea( weaverx_getopt( 'copyright' ), 'copyright', 1, ' ', 'width:85%;' ); ?>
2311
  <br>
2312
+ <label><span class="dashicons dashicons-visibility"></span> <?php _e( 'Hide Powered By tag:', 'weaver-xtreme' /*adm*/ ); ?>
2313
+ <input type="checkbox" name="<?php weaverx_sapi_main_name( '_hide_poweredby' ); ?>" id="_hide_poweredby" <?php checked( weaverx_getopt_checked( '_hide_poweredby' ) ); ?> />
2314
+ </label>
2315
+ <small><?php _e( 'Check this to hide the "Proudly powered by" notice in the footer.', 'weaver-xtreme' /*adm*/ ); ?></small>
2316
+ <br/><br/>
2317
+ <?php _e( 'You can add other content to the Footer from the Advanced Options:HTML Insertion tab.', 'weaver-xtreme' /*adm*/ ); ?>
2318
+ <?php
2319
  }
2320
 
2321
  // ======================== Main Options > Widget Areas ========================
2322
  function weaverx_mainopts_widgets() {
2323
  $opts = array(
2324
+ array( 'type' => 'submit' ),
2325
+ array(
2326
+ 'name' => __( 'Sidebar Options', 'weaver-xtreme' /*adm*/ ),
2327
+ 'id' => '-screenoptions',
2328
+ 'type' => 'header',
2329
+ 'info' => __( 'Settings affecting main Sidebars and individual widgets', 'weaver-xtreme' /*adm*/ ),
2330
+ 'help' => 'help.html#WidgetAreas',
2331
+ ),
2332
 
2333
+ array(
2334
+ 'name' => __( 'Individual Widgets', 'weaver-xtreme' /*adm*/ ),
2335
+ 'id' => 'widget',
2336
+ 'type' => 'widget_area',
2337
+ 'info' => __( 'Properties for individual widgets (e.g., Text, Recent Posts, etc.)', 'weaver-xtreme' /*adm*/ ),
2338
+ ),
2339
 
2340
+ array(
2341
+ 'name' => __( 'Widget Title', 'weaver-xtreme' /*adm*/ ),
2342
+ 'id' => 'widget_title',
2343
+ 'type' => 'titles',
2344
+ 'info' => __( 'Color for Widget Titles.', 'weaver-xtreme' /*adm*/ ),
2345
+ ),
2346
+ array(
2347
+ 'name' => __( 'Bar under Widget Titles', 'weaver-xtreme' /*adm*/ ),
2348
+ 'id' => 'widget_title_underline_int',
2349
+ 'type' => 'val_px',
2350
+ 'info' => __( 'Enter size in px if you want a bar under Widget Titles. Leave blank or 0 for no bar.', 'weaver-xtreme' /*adm*/ ),
2351
+ ),
2352
 
2353
+ array(
2354
+ 'name' => __( 'Widget List Bullet', 'weaver-xtreme' /*adm*/ ),
2355
+ 'id' => 'widgetlist_bullet',
2356
+ 'type' => 'select_id',
2357
+ 'info' => __( 'Bullet used for Unordered Lists in Widget areas.', 'weaver-xtreme' /*adm*/ ),
2358
+ 'value' => array(
2359
+ array( 'val' => 'disc', 'desc' => __( 'Filled Disc (default)', 'weaver-xtreme' /*adm*/ ) ),
2360
+ array( 'val' => 'circle', 'desc' => __( 'Circle', 'weaver-xtreme' /*adm*/ ) ),
2361
+ array( 'val' => 'square', 'desc' => __( 'Square', 'weaver-xtreme' /*adm*/ ) ),
2362
+ array( 'val' => 'none', 'desc' => __( 'None', 'weaver-xtreme' /*adm*/ ) ),
2363
+ ),
2364
+ ),
2365
 
2366
+ array(
2367
+ 'name' => __( 'Widget Links', 'weaver-xtreme' /*adm*/ ),
2368
+ 'id' => 'wlink',
2369
+ 'type' => 'link',
2370
+ 'info' => __( 'Color for links in widgets (uses Standard Link colors if left blank).', 'weaver-xtreme' /*adm*/ ),
2371
+ ),
2372
 
2373
+ array( 'type' => 'submit' ),
2374
 
2375
 
2376
+ array(
2377
+ 'name' => __( 'Primary Widget Area', 'weaver-xtreme' /*adm*/ ),
2378
+ 'id' => 'primary',
2379
+ 'type' => 'widget_area_submit',
2380
+ 'info' => __( 'Properties for the Primary (Upper/Left) Sidebar Widget Area.', 'weaver-xtreme' /*adm*/ ),
2381
+ ),
2382
 
2383
+ array(
2384
+ 'name' => __( 'Secondary Widget Area', 'weaver-xtreme' /*adm*/ ),
2385
+ 'id' => 'secondary',
2386
+ 'type' => 'widget_area_submit',
2387
+ 'info' => __( 'Properties for the Secondary (Lower/Right) Sidebar Widget Area.', 'weaver-xtreme' /*adm*/ ),
2388
+ ),
2389
 
2390
+ array(
2391
+ 'name' => __( 'Top Widget Areas', 'weaver-xtreme' /*adm*/ ),
2392
+ 'id' => 'top',
2393
+ 'type' => 'widget_area_submit',
2394
+ 'info' => __( 'Properties for all Top Widget areas (Sitewide, Pages, Blog, Archive).', 'weaver-xtreme' /*adm*/ ),
2395
+ ),
2396
 
2397
 
2398
+ array(
2399
+ 'name' => __( 'Bottom Widget Areas', 'weaver-xtreme' /*adm*/ ),
2400
+ 'id' => 'bottom',
2401
+ 'type' => 'widget_area',
2402
+ 'info' => __( 'Properties for all Bottom Widget areas (Sitewide, Pages, Blog, Archive).', 'weaver-xtreme' /*adm*/ ),
2403
+ ),
2404
 
2405
  );
2406
 
2407
+ weaverx_form_show_options( $opts );
2408
+ ?>
2409
+ <hr/>
2410
  <span style="color:blue;"><b>Define Per Page Extra Widget Areas</b></span>
2411
+ <?php
2412
+ weaverx_help_link( 'help.html#PPWidgets', 'Help for Per Page Widget Areas' );
2413
+ ?>
2414
+ <br/>
2415
+ <small>
2416
+ <?php _e( 'You may define extra widget areas that can then be used in the <em>Per Page</em> settings, or in the <em>Weaver Xtreme Plus</em> [widget_area] shortcode.
2417
  Enter a list of one or more widget area names separated by commas.
2418
  Your names should include only letters, numbers, or underscores - no spaces or other special characters.
2419
  The widgets areas will then appear on the Appearance->Widgets menus.
2420
+ They can be included on individual pages by adding the name you define here to the "Weaver Xtreme Options For This Page" box on the Edit Page screen. (&diams;)', 'weaver-xtreme' /*adm*/ ); ?>
2421
+ </small>
2422
+ <br/>
2423
+ <?php weaverx_textarea( weaverx_getopt( '_perpagewidgets' ), '_perpagewidgets', 1, ' ', $style = 'width:60%;', $class = 'wvrx-edit' ); ?>
2424
+ <?php
2425
+ do_action( 'weaverxplus_admin', 'widget_areas' );
2426
  }
2427
 
2428
  // ======================== Main Options > Layout ========================
2429
  function weaverx_mainopts_layout() {
2430
+ $opts = array(
2431
+ array( 'type' => 'submit' ),
2432
+ array(
2433
+ 'name' => __( 'Sidebar Layout', 'weaver-xtreme' /*adm*/ ),
2434
+ 'id' => '-welcome-widgets-menus',
2435
+ 'type' => 'header',
2436
+ 'info' => __( 'Sidebar Layout for each type of page ("stack top" used for mobile view)', 'weaver-xtreme' /*adm*/ ),
2437
+ 'help' => 'help.html#layout',
2438
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2439
 
2440
+ array(
2441
+ 'name' => __( 'Blog, Post, Page Default', 'weaver-xtreme' /*adm*/ ),
2442
+ 'id' => 'layout_default',
2443
+ 'type' => 'select_id',
2444
+ 'info' => __( 'Select the default theme layout for blog, single post, attachments, and pages.', 'weaver-xtreme' /*adm*/ ),
2445
+ 'value' => array(
2446
+ array( 'val' => 'right', 'desc' => __( 'Sidebars on Right', 'weaver-xtreme' /*adm*/ ) ),
2447
+ array( 'val' => 'right-top', 'desc' => __( 'Sidebars on Right (stack top)', 'weaver-xtreme' /*adm*/ ) ),
2448
+ array( 'val' => 'left', 'desc' => __( ' Sidebars on Left', 'weaver-xtreme' /*adm*/ ) ),
2449
+ array( 'val' => 'left-top', 'desc' => __( ' Sidebars on Left (stack top)', 'weaver-xtreme' /*adm*/ ) ),
2450
+ array( 'val' => 'split', 'desc' => __( 'Split - Sidebars on Right and Left', 'weaver-xtreme' /*adm*/ ) ),
2451
+ array( 'val' => 'split-top', 'desc' => __( 'Split (stack top)', 'weaver-xtreme' /*adm*/ ) ),
2452
+ array( 'val' => 'one-column', 'desc' => __( 'No sidebars, content only', 'weaver-xtreme' /*adm*/ ) ),
2453
+ ),
2454
+ ),
2455
+
2456
+ array(
2457
+ 'name' => __( 'Archive-like Default', 'weaver-xtreme' /*adm*/ ),
2458
+ 'id' => 'layout_default_archive',
2459
+ 'type' => 'select_id',
2460
+ 'info' => __( 'Select the default theme layout for all other pages - archives, search, etc.', 'weaver-xtreme' /*adm*/ ),
2461
+ 'value' => array(
2462
+ array( 'val' => 'right', 'desc' => __( 'Sidebars on Right', 'weaver-xtreme' /*adm*/ ) ),
2463
+ array( 'val' => 'right-top', 'desc' => __( 'Sidebars on Right (stack top)', 'weaver-xtreme' /*adm*/ ) ),
2464
+ array( 'val' => 'left', 'desc' => __( ' Sidebars on Left', 'weaver-xtreme' /*adm*/ ) ),
2465
+ array( 'val' => 'left-top', 'desc' => __( ' Sidebars on Left (stack top)', 'weaver-xtreme' /*adm*/ ) ),
2466
+ array( 'val' => 'split', 'desc' => __( 'Split - Sidebars on Right and Left', 'weaver-xtreme' /*adm*/ ) ),
2467
+ array( 'val' => 'split-top', 'desc' => __( 'Split (stack top)', 'weaver-xtreme' /*adm*/ ) ),
2468
+ array( 'val' => 'one-column', 'desc' => __( 'No sidebars, content only', 'weaver-xtreme' /*adm*/ ) ),
2469
+ ),
2470
+ ),
2471
+
2472
+ array(
2473
+ 'name' => __( 'Page', 'weaver-xtreme' /*adm*/ ),
2474
+ 'id' => 'layout_page',
2475
+ 'type' => 'select_layout',
2476
+ 'info' => __( 'Layout for normal Pages on your site.', 'weaver-xtreme' /*adm*/ ),
2477
+ 'value' => '',
2478
+ ),
2479
+ array(
2480
+ 'name' => __( 'Blog', 'weaver-xtreme' /*adm*/ ),
2481
+ 'id' => 'layout_blog',
2482
+ 'type' => 'select_layout',
2483
+ 'info' => __( 'Layout for main blog page. Includes "Page with Posts" Page templates.', 'weaver-xtreme' /*adm*/ ),
2484
+ 'value' => '',
2485
+ ),
2486
+ array(
2487
+ 'name' => __( 'Post Single Page', 'weaver-xtreme' /*adm*/ ),
2488
+ 'id' => 'layout_single',
2489
+ 'type' => 'select_layout',
2490
+ 'info' => __( 'Layout for Posts displayed as a single page.', 'weaver-xtreme' /*adm*/ ),
2491
+ 'value' => '',
2492
+ ),
2493
+
2494
+ array(
2495
+ 'name' => __( 'Attachments', 'weaver-xtreme' /*adm*/ ),
2496
+ 'id' => 'layout_image',
2497
+ 'type' => '+select_layout',
2498
+ 'info' => __( 'Layout for attachment pages such as images. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2499
+ 'value' => '',
2500
+ ),
2501
+
2502
+ array(
2503
+ 'name' => __( 'Date Archive', 'weaver-xtreme' /*adm*/ ),
2504
+ 'id' => 'layout_archive',
2505
+ 'type' => '+select_layout',
2506
+ 'info' => __( 'Layout for archive by date pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2507
+ 'value' => '',
2508
+ ),
2509
+
2510
+ array(
2511
+ 'name' => __( 'Category Archive', 'weaver-xtreme' /*adm*/ ),
2512
+ 'id' => 'layout_category',
2513
+ 'type' => '+select_layout',
2514
+ 'info' => __( 'Layout for category archive pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2515
+ 'value' => '',
2516
+ ),
2517
+ array(
2518
+ 'name' => __( 'Tags Archive', 'weaver-xtreme' /*adm*/ ),
2519
+ 'id' => 'layout_tag',
2520
+ 'type' => '+select_layout',
2521
+ 'info' => __( 'Layout for tag archive pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2522
+ 'value' => '',
2523
+ ),
2524
+
2525
+ array(
2526
+ 'name' => __( 'Author Archive</small>', 'weaver-xtreme' /*adm*/ ),
2527
+ 'id' => 'layout_author',
2528
+ 'type' => '+select_layout',
2529
+ 'info' => __( 'Layout for author archive pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2530
+ 'value' => '',
2531
+ ),
2532
+ array(
2533
+ 'name' => __( 'Search Results, 404</small>', 'weaver-xtreme' /*adm*/ ),
2534
+ 'id' => 'layout_search',
2535
+ 'type' => '+select_layout',
2536
+ 'info' => __( 'Layout for search results and 404 pages. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2537
+ 'value' => '',
2538
+ ),
2539
+
2540
+ array(
2541
+ 'name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __( 'Left Sidebar Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
2542
+ 'id' => 'left_sb_width_int',
2543
+ 'type' => 'val_percent',
2544
+ 'info' => __( 'Width for Left Sidebar (Default: 25%)', 'weaver-xtreme' /*adm*/ ),
2545
+ 'value' => '',
2546
+ ),
2547
+ array(
2548
+ 'name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __( 'Right Sidebar Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
2549
+ 'id' => 'right_sb_width_int',
2550
+ 'type' => 'val_percent',
2551
+ 'info' => __( 'Width for Right Sidebar (Default: 25%)', 'weaver-xtreme' /*adm*/ ),
2552
+ 'value' => '',
2553
+ ),
2554
+ array(
2555
+ 'name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __( 'Split Left Sidebar Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
2556
+ 'id' => 'left_split_sb_width_int',
2557
+ 'type' => 'val_percent',
2558
+ 'info' => __( 'Width for Split Sidebar, Left Side (Default: 25%)', 'weaver-xtreme' /*adm*/ ),
2559
+ 'value' => '',
2560
+ ),
2561
+ array(
2562
+ 'name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __( 'Split Right Sidebar Width', 'weaver-xtreme' /*adm*/ ) . '</small>',
2563
+ 'id' => 'right_split_sb_width_int',
2564
+ 'type' => 'val_percent',
2565
+ 'info' => __( 'Width for Split Sidebar, Right Side (Default: 25%)', 'weaver-xtreme' /*adm*/ ),
2566
+ 'value' => '',
2567
+ ),
2568
+ array(
2569
+ 'name' => '<span class="i-left" style="font-size:120%;">&harr;</span> ' . __( 'Content Width:', 'weaver-xtreme' /*adm*/ ),
2570
+ 'type' => 'note',
2571
+ 'info' => __( 'The width of content area automatically determined by sidebar layout and width', 'weaver-xtreme' /*adm*/ ),
2572
+ ),
2573
+
2574
+ array(
2575
+ 'name' => __( 'Flow color to bottom', 'weaver-xtreme' /*adm*/ ),
2576
+ 'id' => 'flow_color',
2577
+ 'type' => '+checkbox',
2578
+ 'info' => __( 'If checked, Content and Sidebar bg colors will flow to bottom of the Container (that is, equal heights). You must provide background colors for the Content and Sidebars or the default bg color will be used. (&starf;Plus)', 'weaver-xtreme' /*adm*/ ),
2579
+ ),
2580
+
2581
+ array(
2582
+ 'name' => __( 'Alt Page Themes', 'weaver-xtreme' /*adm*/ ),
2583
+ 'id' => '-editor-codex',
2584
+ 'type' => 'header_area',
2585
+ 'info' => __( '&starf; Weaver Xtreme Plus (V 3.1.1 or later) allows you to set Alternative Themes for the blog, single, and other archive-like pages.', 'weaver-xtreme' /*adm*/ ),
2586
+ ),
2587
 
2588
 
2589
  );
2590
  ?>
2591
+ <div class="options-intro">
2592
+ <strong>Sidebars &amp; Layout: </strong>
2593
+ <?php _e( 'Options affecting <strong>Sidebar Layout</strong> and the main <strong>Sidebar Areas</strong>.
2594
+ This includes properties of individual <strong>Widgets</strong>, as well as properties of various <strong>Sidebars</strong>.', 'weaver-xtreme' /*adm*/ ); ?>
2595
+ <br/>
2596
+ <div class="options-intro-menu">
2597
+ <a href="#sidebar-layout"><?php _e( 'Sidebar Layout', 'weaver-xtreme' /*adm*/ ); ?></a> |
2598
+ <a href="#individual-widgets"><?php _e( 'Individual Widgets', 'weaver-xtreme' /*adm*/ ); ?></a> |
2599
+ <a href="#primary-widget-area"><?php _e( 'Primary Widget Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
2600
+ <a href="#secondary-widget-area"><?php _e( 'Secondary Widget Area', 'weaver-xtreme' /*adm*/ ); ?></a> |
2601
+ <a href="#top-widget-areas"><?php _e( 'Top Widget Areas', 'weaver-xtreme' /*adm*/ ); ?></a> |
2602
+ <a href="#bottom-widget-areas"><?php _e( 'Bottom Widget Areas', 'weaver-xtreme' /*adm*/ ); ?></a>
2603
+ </div>
2604
+ </div>
2605
+ <?php
2606
 
2607
+ weaverx_form_show_options( $opts );
2608
+ do_action( 'weaverxplus_admin', 'layout' ); // add new layout option?
2609
  }
 
admin/admin-saverestore.php CHANGED
@@ -173,5 +173,3 @@ __('Note: Any Weaver Xtreme Plus settings will <em>not</em> be restored for Weav
173
  echo '</p>';
174
  }
175
 
176
-
177
- ?>
173
  echo '</p>';
174
  }
175
 
 
 
admin/admin-subthemes.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
- if ( !defined('ABSPATH')) exit; // Exit if accessed directly
 
 
3
  /* Weaver Xtreme - admin Subtheme
4
  *
5
  * __ added - 12/10/14
@@ -9,126 +11,134 @@ if ( !defined('ABSPATH')) exit; // Exit if accessed directly
9
  function weaverx_admin_subthemes() {
10
 
11
 
12
- weaverx_tab_title(__('Predefined Weaver Xtreme Subthemes','weaver-xtreme'), 'help.html#PredefinedThemes', __('Help for Weaver Xtreme Predefined Themes', 'weaver-xtreme' /*adm*/)); ?>
13
- <small style="font-weight:normal;font-size:10px;"><?php _e('You can click the ?\'s found throughout Weaver Xtreme admin pages for context specific help.', 'weaver-xtreme' /*adm*/);?></small>
14
 
15
- <?php _e('<h3>Welcome to Weaver X</h3>', 'weaver-xtreme' /*adm*/);?>
16
 
17
- <?php _e('<p>Weaver Xtreme gives you extreme control of your WordPress blog appearance using the
18
  different admin tabs here. This tab lets you get a quick start by picking one of the many
19
  predefined subthemes. Once you\'ve picked a starter theme, use the <em>Main Options</em> and <em>Advanced Options</em>
20
  tabs to tweak the theme to be whatever you like. After you have a theme you\'re happy with,
21
- you can save it from the Save/Restore tab. The <em>Help</em> tab has much more <b>useful</b> information.</p>', 'weaver-xtreme' /*adm*/);?>
22
 
23
 
24
- <h3 class="atw-option-subheader"><span style="color:black;padding:.2em;" class="dashicons dashicons-images-alt2"></span>
25
- <?php _e('Get started by trying one of the predefined subthemes!', 'weaver-xtreme' /*adm*/);?>
26
- </h3>
27
- <?php
28
- $theme_dir = trailingslashit(WP_CONTENT_DIR) . 'themes/' . get_template() . '/subthemes/';
29
  $theme_list = array();
30
- if ( $media_dir = opendir($theme_dir) ) { // build the list of themes from directory
31
- while ( $m_file = readdir($media_dir) ) {
32
- $len = strlen($m_file);
33
- $base = substr( $m_file, 0, $len-4 );
34
- $ext = $len > 4 ? substr( $m_file, $len-4, 4 ) : '';
35
  if ( $ext == '.wxt' || $ext == '.wxb' ) {
36
  $theme_list[] = $base;
37
  }
38
  }
39
  }
40
 
41
- if (!empty($theme_list)) {
42
  echo '<p style="font-size:120%;font-weight:bold;">';
43
  _e( 'Please remember: these subthemes are only starting points!
44
  You can use <em>Weaver Xtreme</em> options to change virtually any part of these subthemes.
45
- You can change colors, sidebar layouts, font family and sizes, borders, spacing - really, everything.' ,'weaver-xtreme' /*adm*/);
46
  echo '</p>';
47
- weaverx_st_pick_theme($theme_list); // show the theme picker
48
  } else {
49
- _e("<h3>WARNING: Your version of Weaver Xtreme is likely installed incorrectly. Unable to find subtheme definitions.</h3>\n", 'weaver-xtreme' /*adm*/);
 
 
 
 
50
  }
51
  }
52
 
53
- function weaverx_st_pick_theme($list_in) {
54
  // output the form to select a file list from weaverx-subthemes directory
55
  $list = $list_in;
56
- natcasesort($list);
57
- $cur_theme = weaverx_getopt('theme_filename');
58
- if ( !$cur_theme ) $cur_theme = WEAVERX_DEFAULT_THEME; // the default theme
59
- ?>
60
- <form enctype="multipart/form-data" name='pick_theme' method='post' onSubmit="return confirm('<?php _e('Are you sure you want select a new theme?\r\n\r\nSelecting a new subtheme will overwrite your existing theme settings. You should save your existing settings on the Save/Restore menu if you have made changes.', 'weaver-xtreme'); ?>');" >
61
- &nbsp;&nbsp;<strong><?php _e('Click a Radio Button below to select a subtheme:', 'weaver-xtreme' /*adm*/);?> &nbsp;</strong>
62
- <span style="padding-left:100px;"><?php _e('Current theme:', 'weaver-xtreme' /*adm*/);?> <strong>
63
- <?php
64
- $cur_addon = weaverx_getopt('addon_name');
65
- if ($cur_addon == '') {
66
- echo ucwords(str_replace('-',' ',$cur_theme));
67
- } else {
68
- echo __('Add-on Subtheme: ','weaver-xtreme') . ucwords(str_replace('-',' ',$cur_addon));
69
- $cur_theme = '';
70
- }
71
- ?>
72
- </strong></span>
73
-
74
- <br /><br />
75
- <?php
76
- //weaverx_confirm_select_theme();
77
  ?>
78
- <input class="button-primary" name="set_subtheme" type="submit" value="<?php _e('Set to Selected Subtheme', 'weaver-xtreme' );?>" />
79
-
80
- <p style="color:#b00;font-weight:bold;font-size:120%"><br /><?php _e('<em>Note:</em> Before switching to any subtheme, you must Save and download a copy of your settings using the Save / Restore page, in order to be able to go back to them if required.', 'weaver-xtreme' /*adm*/);?></p>
81
  <?php
82
- weaverx_nonce_field('set_subtheme');
83
-
84
- $thumbs = weaverx_relative_url('subthemes/');
85
-
86
- foreach ($list as $addon) {
87
- $name = ucwords(str_replace('-',' ',$addon));
 
88
  ?>
89
- <div style="float:left; width:200px;">
90
- <label><input type="radio" name="theme_picked"
91
- <?php echo 'value="' . $addon . '" ' . ($cur_theme == $addon ? 'checked' : '') .
92
- '/> <strong>' . $name . '</strong><br />';
93
- if (!weaverx_getopt('_hide_theme_thumbs')) {
94
- echo '<img style="border: 1px solid gray; margin: 5px 0px 10px 0px;" src="' . esc_url($thumbs . $addon . '.jpg') . '" width="150px" height="113px" alt="thumb" /></label></div>' . "\n";
95
- } else {
96
- echo "</label></div>\n";
97
- }
98
- }
99
 
100
- if (! weaverx_getopt_checked('_hide_theme_thumbs')) {
101
- weaverx_clear_both();
102
- ?>
103
- <span class='submit' style='padding-top:6px;'><input class="button-primary" name="set_subtheme" type="submit" value="<?php _e('Set to Selected Subtheme', 'weaver-xtreme' /*adm*/);?>" /></span>
104
- <?php
105
- }
106
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
  </form>
109
  <div style="clear:both;padding-top:6px;"></div>
110
 
111
  <form enctype="multipart/form-data" name='hide_thumbs_form' method='post'>
112
- <?php
113
- $hide_msg = (weaverx_getopt('_hide_theme_thumbs')) ? __('Show Subtheme Thumbnails', 'weaver-xtreme' /*adm*/) :
114
- __('Hide Subtheme Thumbnails', 'weaver-xtreme' /*adm*/);
115
- ?>
116
- <input class="button-primary" name="hide_thumbs" type="submit" value="<?php echo $hide_msg; ?>" />
117
- <?php weaverx_nonce_field('hide_thumbs'); ?>
118
  </form>
119
  <div style="clear:both;"></div>
120
- <hr />
121
- <?php
122
- do_action('weaverx_child_show_extrathemes');
123
- do_action('weaverxplus_admin','show_subthemes');
124
  }
125
 
126
  function weaverx_confirm_select_theme() {
127
- ?>
128
 
129
- <br />
130
- <input class="button-primary" type="submit" onSubmit="return confirm('<?php _e('Are you sure you want select a new theme? This will overwrite you existing theme settings.', 'weaver-xtreme'); ?>');" name="set_subtheme" value="<?php _e('Set to Selected Subtheme', 'weaver-xtreme' /*adm*/); ?>" />
131
- <?php weaverx_nonce_field('set_subtheme');
132
  }
133
 
134
- ?>
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ } // Exit if accessed directly
5
  /* Weaver Xtreme - admin Subtheme
6
  *
7
  * __ added - 12/10/14
11
  function weaverx_admin_subthemes() {
12
 
13
 
14
+ weaverx_tab_title( __( 'Predefined Weaver Xtreme Subthemes', 'weaver-xtreme' ), 'help.html#PredefinedThemes', __( 'Help for Weaver Xtreme Predefined Themes', 'weaver-xtreme' /*adm*/ ) ); ?>
15
+ <small style="font-weight:normal;font-size:10px;"><?php _e( 'You can click the ?\'s found throughout Weaver Xtreme admin pages for context specific help.', 'weaver-xtreme' /*adm*/ ); ?></small>
16
 
17
+ <?php _e( '<h3>Welcome to Weaver X</h3>', 'weaver-xtreme' /*adm*/ ); ?>
18
 
19
+ <?php _e( '<p>Weaver Xtreme gives you extreme control of your WordPress blog appearance using the
20
  different admin tabs here. This tab lets you get a quick start by picking one of the many
21
  predefined subthemes. Once you\'ve picked a starter theme, use the <em>Main Options</em> and <em>Advanced Options</em>
22
  tabs to tweak the theme to be whatever you like. After you have a theme you\'re happy with,
23
+ you can save it from the Save/Restore tab. The <em>Help</em> tab has much more <b>useful</b> information.</p>', 'weaver-xtreme' /*adm*/ ); ?>
24
 
25
 
26
+ <h3 class="atw-option-subheader"><span style="color:black;padding:.2em;" class="dashicons dashicons-images-alt2"></span>
27
+ <?php _e( 'Get started by trying one of the predefined subthemes!', 'weaver-xtreme' /*adm*/ ); ?>
28
+ </h3>
29
+ <?php
30
+ $theme_dir = trailingslashit( WP_CONTENT_DIR ) . 'themes/' . get_template() . '/subthemes/';
31
  $theme_list = array();
32
+ if ( $media_dir = opendir( $theme_dir ) ) { // build the list of themes from directory
33
+ while ( $m_file = readdir( $media_dir ) ) {
34
+ $len = strlen( $m_file );
35
+ $base = substr( $m_file, 0, $len - 4 );
36
+ $ext = $len > 4 ? substr( $m_file, $len - 4, 4 ) : '';
37
  if ( $ext == '.wxt' || $ext == '.wxb' ) {
38
  $theme_list[] = $base;
39
  }
40
  }
41
  }
42
 
43
+ if ( ! empty( $theme_list ) ) {
44
  echo '<p style="font-size:120%;font-weight:bold;">';
45
  _e( 'Please remember: these subthemes are only starting points!
46
  You can use <em>Weaver Xtreme</em> options to change virtually any part of these subthemes.
47
+ You can change colors, sidebar layouts, font family and sizes, borders, spacing - really, everything.', 'weaver-xtreme' /*adm*/ );
48
  echo '</p>';
49
+ weaverx_st_pick_theme( $theme_list ); // show the theme picker
50
  } else {
51
+ if ( WEAVERX_SETTINGS_VERSION == 'WvrX5:2.0' ) {
52
+ _e( "<h3>IMPORTANT NOTE: Weaver Xtreme Version 5 only supports picking subthemes from the Customizer.</h3>\n", 'weaver-xtreme' /*adm*/ );
53
+ } else {
54
+ _e( "<h3>WARNING: Your version of Weaver Xtreme is likely installed incorrectly. Unable to find subtheme definitions.</h3>\n", 'weaver-xtreme' /*adm*/ );
55
+ }
56
  }
57
  }
58
 
59
+ function weaverx_st_pick_theme( $list_in ) {
60
  // output the form to select a file list from weaverx-subthemes directory
61
  $list = $list_in;
62
+ natcasesort( $list );
63
+ $cur_theme = weaverx_getopt( 'theme_filename' );
64
+ if ( ! $cur_theme ) {
65
+ $cur_theme = WEAVERX_DEFAULT_THEME;
66
+ } // the default theme
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  ?>
68
+ <form enctype="multipart/form-data" name='pick_theme' method='post' onSubmit="return confirm('<?php _e( 'Are you sure you want select a new theme?\r\n\r\nSelecting a new subtheme will overwrite your existing theme settings. You should save your existing settings on the Save/Restore menu if you have made changes.', 'weaver-xtreme' ); ?>');">
69
+ &nbsp;&nbsp;<strong><?php _e( 'Click a Radio Button below to select a subtheme:', 'weaver-xtreme' /*adm*/ ); ?> &nbsp;</strong>
70
+ <span style="padding-left:100px;"><?php _e( 'Current theme:', 'weaver-xtreme' /*adm*/ ); ?> <strong>
71
  <?php
72
+ $cur_addon = weaverx_getopt( 'addon_name' );
73
+ if ( $cur_addon == '' ) {
74
+ echo ucwords( str_replace( '-', ' ', $cur_theme ) );
75
+ } else {
76
+ echo __( 'Add-on Subtheme: ', 'weaver-xtreme' ) . ucwords( str_replace( '-', ' ', $cur_addon ) );
77
+ $cur_theme = '';
78
+ }
79
  ?>
80
+ </strong></span>
 
 
 
 
 
 
 
 
 
81
 
82
+ <br/><br/>
83
+ <?php
84
+ //weaverx_confirm_select_theme();
85
+ ?>
86
+ <input class="button-primary" name="set_subtheme" type="submit" value="<?php _e( 'Set to Selected Subtheme', 'weaver-xtreme' ); ?>"/>
87
+
88
+ <p style="color:#b00;font-weight:bold;font-size:120%">
89
+ <br/><?php _e( '<em>Note:</em> Before switching to any subtheme, you must Save and download a copy of your settings using the Save / Restore page, in order to be able to go back to them if required.', 'weaver-xtreme' /*adm*/ ); ?></p>
90
+ <?php
91
+ weaverx_nonce_field( 'set_subtheme' );
92
+
93
+ $thumbs = weaverx_relative_url( 'subthemes/' );
94
+
95
+ foreach ( $list
96
+
97
+ as $addon ) {
98
+ $name = ucwords( str_replace( '-', ' ', $addon ) );
99
+ ?>
100
+ <div style="float:left; width:200px;">
101
+ <label><input type="radio" name="theme_picked"
102
+ <?php echo 'value="' . $addon . '" ' . ( $cur_theme == $addon ? 'checked' : '' ) .
103
+ '/> <strong>' . $name . '</strong><br />';
104
+ if ( ! weaverx_getopt( '_hide_theme_thumbs' ) ) {
105
+ echo '<img style="border: 1px solid gray; margin: 5px 0px 10px 0px;" src="' . esc_url( $thumbs . $addon . '.jpg' ) . '" width="150px" height="113px" alt="thumb" /></label></div>' . "\n";
106
+ } else {
107
+ echo "</label></div>\n";
108
+ }
109
+ }
110
+
111
+ if ( ! weaverx_getopt_checked( '_hide_theme_thumbs' ) ) {
112
+ weaverx_clear_both();
113
+ ?>
114
+ <span class='submit' style='padding-top:6px;'><input class="button-primary" name="set_subtheme" type="submit" value="<?php _e( 'Set to Selected Subtheme', 'weaver-xtreme' /*adm*/ ); ?>"/></span>
115
+ <?php
116
+ }
117
+ ?>
118
 
119
  </form>
120
  <div style="clear:both;padding-top:6px;"></div>
121
 
122
  <form enctype="multipart/form-data" name='hide_thumbs_form' method='post'>
123
+ <?php
124
+ $hide_msg = ( weaverx_getopt( '_hide_theme_thumbs' ) ) ? __( 'Show Subtheme Thumbnails', 'weaver-xtreme' /*adm*/ ) :
125
+ __( 'Hide Subtheme Thumbnails', 'weaver-xtreme' /*adm*/ );
126
+ ?>
127
+ <input class="button-primary" name="hide_thumbs" type="submit" value="<?php echo $hide_msg; ?>"/>
128
+ <?php weaverx_nonce_field( 'hide_thumbs' ); ?>
129
  </form>
130
  <div style="clear:both;"></div>
131
+ <hr/>
132
+ <?php
133
+ do_action( 'weaverx_child_show_extrathemes' );
134
+ do_action( 'weaverxplus_admin', 'show_subthemes' );
135
  }
136
 
137
  function weaverx_confirm_select_theme() {
138
+ ?>
139
 
140
+ <br/>
141
+ <input class="button-primary" type="submit" onSubmit="return confirm('<?php _e( 'Are you sure you want select a new theme? This will overwrite you existing theme settings.', 'weaver-xtreme' ); ?>');" name="set_subtheme" value="<?php _e( 'Set to Selected Subtheme', 'weaver-xtreme' /*adm*/ ); ?>"/>
142
+ <?php weaverx_nonce_field( 'set_subtheme' );
143
  }
144
 
 
includes/wvrx-ts-editor-style.php CHANGED
@@ -656,4 +656,3 @@ function weaverx_ts_mce_css( $default_style ) {
656
  else
657
  return $default_style . ',' . $path;
658
  }
659
- ?>
656
  else
657
  return $default_style . ',' . $path;
658
  }
 
includes/wvrx-ts-runtime-lib.php CHANGED
@@ -313,6 +313,3 @@ function weaverx_ts_write_to_upload( $filename, $output ) {
313
  }
314
  fclose( $file );
315
  }
316
-
317
-
318
- ?>
313
  }
314
  fclose( $file );
315
  }
 
 
 
includes/wvrx-ts-shortcodes.php CHANGED
@@ -27,7 +27,7 @@ function wvrx_ts_setup_shortcodes() {
27
  );
28
 
29
  $prefix = get_option('wvrx_toggle_shortcode_prefix');
30
-
31
  foreach ($codes as $code => $func ) {
32
  remove_shortcode($prefix . $code); // use our shortcode instead of someone elses.
33
  add_shortcode($prefix . $code, $func);
@@ -206,14 +206,13 @@ function wvrx_ts_sc_header_image($args = '') {
206
  $width = $w ? $w : get_custom_header()->width;
207
  $height = $h ? $h : get_custom_header()->height;
208
  $st = $style ? ' style="' . $style . '"' : '';
209
- $srcset = esc_attr( wp_get_attachment_image_srcset( get_custom_header()->attachment_id ) );
210
  $sizes = esc_attr( $custom_header_sizes );
211
 
212
  if ( stripos($hdr, '.gif') !== false ) {
213
  $hdrimg = '<img src="' . $hdr . '" width="' . $width .'" height="' . $height . '"'
214
  . $st . ' alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" />' ;
215
  } else {
216
- $hdrimg = '<img src="' . $hdr . '" srcset="' . $srcset . '" sizes="' . $sizes . '" width="' . $width .'" height="' . $height . '"'
217
  . $st . ' alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" />' ;
218
  }
219
 
@@ -700,4 +699,3 @@ function wvrx_ts_set_shortcodes($sc_list, $prefix) {
700
 
701
  // =============== Utilities ======================
702
 
703
- ?>
27
  );
28
 
29
  $prefix = get_option('wvrx_toggle_shortcode_prefix');
30
+
31
  foreach ($codes as $code => $func ) {
32
  remove_shortcode($prefix . $code); // use our shortcode instead of someone elses.
33
  add_shortcode($prefix . $code, $func);
206
  $width = $w ? $w : get_custom_header()->width;
207
  $height = $h ? $h : get_custom_header()->height;
208
  $st = $style ? ' style="' . $style . '"' : '';
 
209
  $sizes = esc_attr( $custom_header_sizes );
210
 
211
  if ( stripos($hdr, '.gif') !== false ) {
212
  $hdrimg = '<img src="' . $hdr . '" width="' . $width .'" height="' . $height . '"'
213
  . $st . ' alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" />' ;
214
  } else {
215
+ $hdrimg = '<img src="' . $hdr . '" sizes="' . $sizes . '" width="' . $width .'" height="' . $height . '"'
216
  . $st . ' alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" />' ;
217
  }
218
 
699
 
700
  // =============== Utilities ======================
701
 
 
includes/wvrx-ts-widgets.php CHANGED
@@ -465,4 +465,3 @@ function wvrx_ts_load_widgets() {
465
  endif;
466
  }
467
 
468
- ?>
465
  endif;
466
  }
467
 
 
readme.txt CHANGED
@@ -5,19 +5,21 @@ Tags: weaver x theme, shortcodes, widgets
5
  Author URI: http://weavertheme.com/about/
6
  Contributors: wpweaver
7
  Author: wpweaver
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: weaverx-theme-support
11
- Requires at least: 4.9
12
- Requires PHP: 5.4
13
- Tested up to: 5.2
14
- Stable tag: 4.0.7
15
 
16
  A useful shortcode and widget collection for Weaver Xtreme
17
 
18
  == Description ==
19
 
20
- This is the main theme support for the Weaver X Theme. This plugin provides a collection of useful shortcodes and widgets designed to complement the Weaver X theme. These shortcodes have been selected and developed based on requests and feedback from thousands of users of the Weaver X, Weaver II, and Aspen themes.
 
 
21
 
22
  While these shortcodes are optimized for the Weaver X theme, they will also work with full functionality for most WordPress themes, and can be used
23
  if you switch themes.
@@ -76,6 +78,21 @@ Support for this plugin can best be found at our forum - http://forum.weaverthem
76
  See ChangeLog for changes to this version.
77
 
78
  == ChangeLog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  = 4.0.7 =
80
  * Update: WP Version compatibility
81
 
5
  Author URI: http://weavertheme.com/about/
6
  Contributors: wpweaver
7
  Author: wpweaver
8
+ License: GPLv3 or later
9
+ License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
  Text Domain: weaverx-theme-support
11
+ Requires at least: 5.2
12
+ Requires PHP: 5.6
13
+ Tested up to: 5.4
14
+ Stable tag: 4.4
15
 
16
  A useful shortcode and widget collection for Weaver Xtreme
17
 
18
  == Description ==
19
 
20
+ This is the theme support for the Weaver X Theme. This plugin provides a collection of useful shortcodes and widgets designed to complement the Weaver X theme. These shortcodes have been selected and developed based on requests and feedback from thousands of users of the Weaver X, Weaver II, and Aspen themes.
21
+
22
+ This plugin also provides the Legacy Weaver Xtreme Admin Dashboard interface. The Legacy Admin is an old style interface alternative to the Customizer interface.
23
 
24
  While these shortcodes are optimized for the Weaver X theme, they will also work with full functionality for most WordPress themes, and can be used
25
  if you switch themes.
78
  See ChangeLog for changes to this version.
79
 
80
  == ChangeLog ==
81
+
82
+
83
+ = 4.4 =
84
+ * Update: compatibility with Weaver Xtreme V 4.4
85
+ * Added: Wrapper Align, Left/Right Padding in % for Align Wide and Align Full
86
+ * Added: 'Clear One-Step Layout Settings'
87
+
88
+ = 4.3.1 =
89
+ * Update: WP Version compatibility
90
+ * Tweak: fixed compatibility issue for [header] shortcode (had to remove srcset attribute)
91
+
92
+ = 4.3 =
93
+ * Update: WP Version compatibility
94
+ * Tweak: skipped to 4.3 to match Weaver Xtreme version
95
+
96
  = 4.0.7 =
97
  * Update: WP Version compatibility
98
 
weaverx-ts.php CHANGED
@@ -2,15 +2,15 @@
2
  /*
3
  Plugin Name: Weaver Xtreme Theme Support
4
  Plugin URI: http://weavertheme.com/plugins
5
- Description: Weaver Xtreme Theme Support - a package of useful shortcodes and widgets that integrates closely with the Weaver Xtreme and Weaver Foundation themes.
6
  Author: wpweaver
7
  Author URI: http://weavertheme.com/about/
8
- Version: 4.0.5
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
12
 
13
- Copyright (C) 2014-2018 Bruce E. Wampler - weaver@weavertheme.com
14
 
15
  This program is free software: you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
@@ -31,196 +31,244 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
31
  */
32
  $theme = get_template_directory();
33
 
34
- function wvrx_ts_alert($msg) {
35
- echo "<script> alert('" . esc_html($msg) . "'); </script>";
36
  }
37
 
38
- if ( function_exists( 'weavercore_ts_installed' ) ) {
39
 
40
- add_action( 'admin_notices', 'wvrx_ts_fail_xtreme_ts' );
 
 
41
 
42
- } else
43
-
44
- if ( strpos( $theme, '/weaver-xtreme') !== false ) { // only load if Weaver Xtreme is the theme
45
-
46
- define ('WVRX_TS_VERSION','4.0.3');
47
- define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
48
- define ('WVRX_TS_PAGEBUILDERS', true); // currently not safely implemented - will be in Weaver 4.0
49
-
50
- if ( !defined('WEAVER_GET_OPTION')) define ('WEAVER_GET_OPTION', 'get_option');
51
- if ( !defined('WEAVER_DELETE_OPTION')) define ('WEAVER_DELETE_OPTION', 'delete_option');
52
- if ( !defined('WEAVER_UPDATE_OPTION')) define ('WEAVER_UPDATE_OPTION', 'update_option');
53
-
54
- if ( !defined('WEAVER_SETTINGS_NAME')) define ('WEAVER_SETTINGS_NAME', 'weaverx_settings');
55
 
 
 
 
56
 
57
 
58
- function wvrx_ts_installed() {
59
- return true;
60
- }
61
 
62
 
63
- function wvrx_ts_plugins_url($file,$ext) {
64
- return plugins_url($file,__FILE__) . $ext;
65
- }
66
 
67
- function wvrx_ts_enqueue_scripts() { // action definition
68
 
69
- if (function_exists('wvrx_ts_slider_header')) wvrx_ts_slider_header();
 
 
70
 
71
- // add plugin CSS here, too.
72
 
73
- // need new admin styling for Gutenberg
74
 
75
- }
76
 
77
- add_action('wp_enqueue_scripts', 'wvrx_ts_enqueue_scripts' );
78
 
79
  //require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-editor-style.php'); // Load the editor style generation
80
 
81
- require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-runtime-lib.php'); // NOW - load the basic library
82
- require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-widgets.php'); // widgets runtime library
83
- require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-shortcodes.php'); // load the shortcode definitions
84
 
85
  // load traditional Weaver Xtreme Options
86
 
87
- function weaver_xtreme_load_admin_action() {
88
- require_once(dirname( __FILE__ ) . '/admin/add-weaverx-sapi-options.php'); // NOW - load the traditional options admin
89
-
90
- }
91
 
92
- add_action('weaver_xtreme_load_admin','weaver_xtreme_load_admin_action');
93
 
 
94
 
95
 
96
  // ======================================== subthemes ========================================
97
- add_action('weaverx_child_show_extrathemes','wvrx_ts_child_show_extrathemes_action');
98
 
99
- function wvrx_ts_child_show_extrathemes_action() {
100
- return;
101
  // old code found in version before 2.0.4
102
- }
103
 
104
- add_action('weaverx_child_process_options','wvrx_ts_child_process_options');
105
- function wvrx_ts_child_process_options() {
106
  // old code found in version before 2.0.4
107
 
108
- if ( weaverx_submitted('toggle_shortcode_prefix') ) {
109
- $val = get_option('wvrx_toggle_shortcode_prefix');
110
- if ( $val ) {
111
- delete_option('wvrx_toggle_shortcode_prefix');
112
- weaverx_save_msg(__("Weaver Xtreme Theme Support Shortcodes NOT prefixed with 'wvrx_'", 'weaverx-theme-support'));
113
- } else {
114
- update_option('wvrx_toggle_shortcode_prefix', 'wvrx_');
115
- weaverx_save_msg(__("Weaver Xtreme Theme Support Shortcodes now prefixed with 'wvrx_'", 'weaverx-theme-support'));
 
 
 
116
  }
117
- } else if ( weaverx_submitted('show_per_page_report')) {
118
- wvrx_ts_per_page_report();
119
- }
120
 
121
- }
122
 
123
  // old code found in version before 2.0.4
124
 
125
-
126
- add_action('weaverx_child_saverestore','wvrx_ts_child_saverestore_action');
127
- function wvrx_ts_child_saverestore_action() {
128
- return;
129
- /* ------------------
130
- echo '<h3 class="atw-option-subheader" style="font-style:italic">' . __('Use the <em>Weaver Xtreme Subthemes</em>
131
- tab to upload Add-on Subthemes.</h3><p>You can upload extra add-on subthemes you\'ve downloaded using the
132
- Subthemes tab. Note: the Save and Restore options on this page are for the custom settings you
133
- have created. These save/restore options are not related to Add-on Subthemes, although you can
134
- modify an Add-on Subtheme, and save your changes here.</p>','weaverx-theme-support');
135
- --------------- */
136
- }
137
-
138
- //add_action('weaverx_check_updates', 'weaverx_check_updates_action');
139
-
140
- /*function weaverx_check_updates_action() {
141
- require_once('wp-updates-theme-1411.php');
142
- $theme = basename(get_template_directory());
143
- new WPUpdatesThemeUpdater_1411( 'http://wp-updates.com/api/2/theme', $theme );
144
- } */
145
 
146
  // --------------------------------------
147
- function wvrx_ts_per_page_report() {
148
- echo '<div style="border:1px solid black; padding:1em;background:#F8FFCC;width:70%;margin:1em auto 1em auto;">';
149
- echo "<h2>" . __('Show Pages and Posts with Per Page / Per Post Settings','weaverx-xtreme') . "</h2>\n";
150
- echo "<h3>" . __('Posts','weaverx-axtreme') . "</h3>\n";
151
- wvrx_ts_scan_section('post');
152
- echo "<h3>" . __('Pages','weaverx-axtreme') . "</h3>\n";
153
- wvrx_ts_scan_section('page');
154
- echo "</div>\n";
155
- }
156
 
157
- function wvrx_ts_scan_section($what) {
158
-
159
- $post_fields = array('_pp_category', '_pp_tag', '_pp_onepost', '_pp_orderby', '_pp_sort_order',
160
- '_pp_author', '_pp_posts_per_page', '_pp_primary-widget-area', '_pp_secondary-widget-area', '_pp_sidebar_width',
161
- '_pp_top-widget-area','_pp_bottom-widget-area','_pp_sitewide-top-widget-area', '_pp_sitewide-bottom-widget-area',
162
- '_pp_post_type', '_pp_hide_page_title','_pp_hide_site_title','_pp_hide_menus','_pp_hide_header_image',
163
- '_pp_hide_footer','_pp_hide_header','_pp_hide_sticky', '_pp_force_post_full','_pp_force_post_excerpt',
164
- '_pp_show_post_avatar', '_pp_bodyclass', '_pp_fi_link', '_pp_fi_location', '_pp_post_fi_location', '_pp_post_styles',
165
- '_pp_hide_top_post_meta','_pp_hide_bottom_post_meta', '_pp_stay_on_page', '_pp_hide_on_menu', '_pp_show_featured_img',
166
- '_pp_hide_infotop','_pp_hide_infobottom', '_pp_hide_visual_editor', '_pp_masonry_span2', '_show_post_bubble',
167
- '_pp_hide_post_title', '_pp_post_add_link', '_pp_hide_post_format_label', '_pp_page_layout', '_pp_wvrx_pwp_type',
168
- '_pp_wvrx_pwp_cols', '_pp_post_filter', '_pp_header-widget-area' ,'_pp_footer-widget-area',
169
- '_pp_hide_page_infobar', '_pp_hide_n_posts','_pp_fullposts', '_pp_pwp_masonry','_pp_pwp_compact','_pp_pwp_compact_posts',
170
- '_primary-widget-area', '_secondary-widget-area', '_header-widget-area', '_footer-widget-area', '_sitewide-top-widget-area',
171
- '_sitewide-bottom-widget-area', '_page-top-widget-area', '_page-bottom-widget-area', '_pp_full_browser_height',
172
- '_pp_page_cols',
173
- // Plus options
174
- '_pp_bgcolor','_pp_color','_pp_bg_fullwidth', '_pp_lr_padding', '_pp_tb_padding', '_pp_margin', '_pp_post_class',
175
- '_pp_bgimg', '_pp_mobile_bgimg', '_pp_parallax_height', '_pp_use_parallax', '_pp_parallax_not_wide',
176
- '_pp_footer_add_class', '_pp_container_add_class', '_pp_content_add_class', '_pp_post_add_class',
177
- '_pp_infobar_add_class', '_pp_wrapper_add_class', '_pp_header_add_class', '_pp_header_image_html_text',
178
- '_pp_alt_primary_menu', '_pp_alt_secondary_menu', '_pp_alt_mini_menu'
179
- );
180
-
181
- $args = array('posts_per_page' => -1, 'post_type' => $what, 'post_status' => 'any' );
182
- echo '<ul>';
183
-
184
- $allposts = get_posts($args);
185
- foreach ($allposts as $post) {
186
- $id = $post->ID;
187
- setup_postdata($post);
188
- $meta = get_post_meta( $id );
189
- if (!empty($meta)) {
190
- $type = $post->post_type;
191
- $title = esc_html($post->post_title);
192
- $link = esc_url(get_permalink($id));
193
- $tlink = "<a href='{$link}' alt='Post {$id}' target='_blank'>{$title}</a>";
194
- $heading = false;
195
- foreach ($meta as $name => $val_array) { // old value gets put into $val_array[0]
196
- if (in_array($name, $post_fields) ) {
197
- $val = $val_array[0]; // easier to work with
198
- if ($type == 'page') {
199
- echo "<li><strong><em>{$tlink}</em></strong> " . __('has Per Page settings.','weaverx-xtreme') . "</li>\n";
200
- } else {
201
- echo "<li><strong><em>{$tlink}</em></strong> " . __('has Per Post settings.','weaverx-xtreme') . "</li>\n";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  }
203
- break;
204
  }
205
  }
206
  }
 
207
  }
208
- echo '</ul>';
209
- }
210
 
211
  } // end only load if Weaver Xtreme installed
212
 
213
- add_action('plugins_loaded', 'wvrx_check_jetpack');
214
  function wvrx_check_jetpack() {
215
- if ( method_exists( 'Jetpack', 'is_module_active' ) && Jetpack::is_module_active( 'minileven' ) && is_admin() ) {
216
- wvrx_ts_alert(__('**** IMPORTANT: The Jetpack Mobile theme is active. ****\nIt is NOT compatible with Weaver Xtreme, and will break the theme. Please deactivate it from the Jetpack control panel.\n\n**** This message will continue to be displayed until you deactivate the Jetpack Mobile Theme from the Jetpack settings panel. ****', 'weaverx-theme-support'));
217
- }
218
  }
219
 
220
- // failure actions
221
- function wvrx_ts_fail_xtreme_ts() {
222
- $message = esc_html__( 'You already have "Weaver Core Theme Support Plugin" installed and activated. You cannot activate both theme support plugins at the same time. "Weaver Xtreme Theme Support Plugin" is currently NOT ACTIVE.', 'weaverx-theme-support' );
223
- $html_message = sprintf( '<div class="error"><strong>%s</strong></div>', wpautop( $message ) );
224
- echo wp_kses_post( $html_message );
225
- }
226
- ?>
2
  /*
3
  Plugin Name: Weaver Xtreme Theme Support
4
  Plugin URI: http://weavertheme.com/plugins
5
+ Description: Weaver Xtreme Theme Support - Legacy Admin plus a package of useful shortcodes and widgets that integrate closely with the Weaver Xtreme theme.
6
  Author: wpweaver
7
  Author URI: http://weavertheme.com/about/
8
+ Version: 4.4
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
12
 
13
+ Copyright (C) 2014-2020 Bruce E. Wampler - weaver@weavertheme.com
14
 
15
  This program is free software: you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
31
  */
32
  $theme = get_template_directory();
33
 
34
+ function wvrx_ts_alert( $msg ) {
35
+ echo "<script> alert('" . esc_html( $msg ) . "'); </script>";
36
  }
37
 
38
+ if ( strpos( $theme, '/weaver-xtreme' ) !== false ) { // only load if Weaver Xtreme is the theme
39
 
40
+ define( 'WVRX_TS_VERSION', '4.4' );
41
+ define( 'WVRX_TS_MINIFY', '.min' ); // '' for dev, '.min' for production
42
+ define( 'WVRX_TS_PAGEBUILDERS', true );
43
 
44
+ if ( ! defined( 'WEAVER_GET_OPTION' ) ) {
45
+ define( 'WEAVER_GET_OPTION', 'get_option' );
46
+ }
47
+ if ( ! defined( 'WEAVER_DELETE_OPTION' ) ) {
48
+ define( 'WEAVER_DELETE_OPTION', 'delete_option' );
49
+ }
50
+ if ( ! defined( 'WEAVER_UPDATE_OPTION' ) ) {
51
+ define( 'WEAVER_UPDATE_OPTION', 'update_option' );
52
+ }
 
 
 
 
53
 
54
+ if ( ! defined( 'WEAVER_SETTINGS_NAME' ) ) {
55
+ define( 'WEAVER_SETTINGS_NAME', 'weaverx_settings' );
56
+ }
57
 
58
 
59
+ function wvrx_ts_installed() {
60
+ return true;
61
+ }
62
 
63
 
64
+ function wvrx_ts_plugins_url( $file, $ext ) {
65
+ return plugins_url( $file, __FILE__ ) . $ext;
66
+ }
67
 
68
+ function wvrx_ts_enqueue_scripts() { // action definition
69
 
70
+ if ( function_exists( 'wvrx_ts_slider_header' ) ) {
71
+ wvrx_ts_slider_header();
72
+ }
73
 
74
+ // add plugin CSS here, too.
75
 
76
+ // need new admin styling for Gutenberg
77
 
78
+ }
79
 
80
+ add_action( 'wp_enqueue_scripts', 'wvrx_ts_enqueue_scripts' );
81
 
82
  //require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-editor-style.php'); // Load the editor style generation
83
 
84
+ require_once( dirname( __FILE__ ) . '/includes/wvrx-ts-runtime-lib.php' ); // NOW - load the basic library
85
+ require_once( dirname( __FILE__ ) . '/includes/wvrx-ts-widgets.php' ); // widgets runtime library
86
+ require_once( dirname( __FILE__ ) . '/includes/wvrx-ts-shortcodes.php' ); // load the shortcode definitions
87
 
88
  // load traditional Weaver Xtreme Options
89
 
90
+ function weaver_xtreme_load_admin_action() {
91
+ require_once( dirname( __FILE__ ) . '/admin/add-weaverx-sapi-options.php' ); // NOW - load the traditional options admin
 
 
92
 
93
+ }
94
 
95
+ add_action( 'weaver_xtreme_load_admin', 'weaver_xtreme_load_admin_action' );
96
 
97
 
98
  // ======================================== subthemes ========================================
99
+ add_action( 'weaverx_child_show_extrathemes', 'wvrx_ts_child_show_extrathemes_action' );
100
 
101
+ function wvrx_ts_child_show_extrathemes_action() {
102
+ return;
103
  // old code found in version before 2.0.4
104
+ }
105
 
106
+ add_action( 'weaverx_child_process_options', 'wvrx_ts_child_process_options' );
107
+ function wvrx_ts_child_process_options() {
108
  // old code found in version before 2.0.4
109
 
110
+ if ( weaverx_submitted( 'toggle_shortcode_prefix' ) ) {
111
+ $val = get_option( 'wvrx_toggle_shortcode_prefix' );
112
+ if ( $val ) {
113
+ delete_option( 'wvrx_toggle_shortcode_prefix' );
114
+ weaverx_save_msg( __( "Weaver Xtreme Theme Support Shortcodes NOT prefixed with 'wvrx_'", 'weaverx-theme-support' ) );
115
+ } else {
116
+ update_option( 'wvrx_toggle_shortcode_prefix', 'wvrx_' );
117
+ weaverx_save_msg( __( "Weaver Xtreme Theme Support Shortcodes now prefixed with 'wvrx_'", 'weaverx-theme-support' ) );
118
+ }
119
+ } elseif ( weaverx_submitted( 'show_per_page_report' ) ) {
120
+ wvrx_ts_per_page_report();
121
  }
 
 
 
122
 
123
+ }
124
 
125
  // old code found in version before 2.0.4
126
 
127
+ add_action( 'weaverx_child_saverestore', 'wvrx_ts_child_saverestore_action' );
128
+ function wvrx_ts_child_saverestore_action() {
129
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
  // --------------------------------------
132
+ function wvrx_ts_per_page_report() {
133
+ echo '<div style="border:1px solid black; padding:1em;background:#F8FFCC;width:70%;margin:1em auto 1em auto;">';
134
+ echo "<h2>" . __( 'Show Pages and Posts with Per Page / Per Post Settings', 'weaverx-xtreme' ) . "</h2>\n";
135
+ echo "<h3>" . __( 'Posts', 'weaverx-axtreme' ) . "</h3>\n";
136
+ wvrx_ts_scan_section( 'post' );
137
+ echo "<h3>" . __( 'Pages', 'weaverx-axtreme' ) . "</h3>\n";
138
+ wvrx_ts_scan_section( 'page' );
139
+ echo "</div>\n";
140
+ }
141
 
142
+ function wvrx_ts_scan_section( $what ) {
143
+
144
+ $post_fields = array(
145
+ '_pp_category',
146
+ '_pp_tag',
147
+ '_pp_onepost',
148
+ '_pp_orderby',
149
+ '_pp_sort_order',
150
+ '_pp_author',
151
+ '_pp_posts_per_page',
152
+ '_pp_primary-widget-area',
153
+ '_pp_secondary-widget-area',
154
+ '_pp_sidebar_width',
155
+ '_pp_top-widget-area',
156
+ '_pp_bottom-widget-area',
157
+ '_pp_sitewide-top-widget-area',
158
+ '_pp_sitewide-bottom-widget-area',
159
+ '_pp_post_type',
160
+ '_pp_hide_page_title',
161
+ '_pp_hide_site_title',
162
+ '_pp_hide_menus',
163
+ '_pp_hide_header_image',
164
+ '_pp_hide_footer',
165
+ '_pp_hide_header',
166
+ '_pp_hide_sticky',
167
+ '_pp_force_post_full',
168
+ '_pp_force_post_excerpt',
169
+ '_pp_show_post_avatar',
170
+ '_pp_bodyclass',
171
+ '_pp_fi_link',
172
+ '_pp_fi_location',
173
+ '_pp_post_fi_location',
174
+ '_pp_post_styles',
175
+ '_pp_hide_top_post_meta',
176
+ '_pp_hide_bottom_post_meta',
177
+ '_pp_stay_on_page',
178
+ '_pp_hide_on_menu',
179
+ '_pp_show_featured_img',
180
+ '_pp_hide_infotop',
181
+ '_pp_hide_infobottom',
182
+ '_pp_hide_visual_editor',
183
+ '_pp_masonry_span2',
184
+ '_show_post_bubble',
185
+ '_pp_hide_post_title',
186
+ '_pp_post_add_link',
187
+ '_pp_hide_post_format_label',
188
+ '_pp_page_layout',
189
+ '_pp_wvrx_pwp_type',
190
+ '_pp_wvrx_pwp_cols',
191
+ '_pp_post_filter',
192
+ '_pp_header-widget-area',
193
+ '_pp_footer-widget-area',
194
+ '_pp_hide_page_infobar',
195
+ '_pp_hide_n_posts',
196
+ '_pp_fullposts',
197
+ '_pp_pwp_masonry',
198
+ '_pp_pwp_compact',
199
+ '_pp_pwp_compact_posts',
200
+ '_primary-widget-area',
201
+ '_secondary-widget-area',
202
+ '_header-widget-area',
203
+ '_footer-widget-area',
204
+ '_sitewide-top-widget-area',
205
+ '_sitewide-bottom-widget-area',
206
+ '_page-top-widget-area',
207
+ '_page-bottom-widget-area',
208
+ '_pp_full_browser_height',
209
+ '_pp_page_cols',
210
+ // Plus options
211
+ '_pp_bgcolor',
212
+ '_pp_color',
213
+ '_pp_bg_fullwidth',
214
+ '_pp_lr_padding',
215
+ '_pp_tb_padding',
216
+ '_pp_margin',
217
+ '_pp_post_class',
218
+ '_pp_bgimg',
219
+ '_pp_mobile_bgimg',
220
+ '_pp_parallax_height',
221
+ '_pp_use_parallax',
222
+ '_pp_parallax_not_wide',
223
+ '_pp_footer_add_class',
224
+ '_pp_container_add_class',
225
+ '_pp_content_add_class',
226
+ '_pp_post_add_class',
227
+ '_pp_infobar_add_class',
228
+ '_pp_wrapper_add_class',
229
+ '_pp_header_add_class',
230
+ '_pp_header_image_html_text',
231
+ '_pp_alt_primary_menu',
232
+ '_pp_alt_secondary_menu',
233
+ '_pp_alt_mini_menu',
234
+ );
235
+
236
+ $args = array( 'posts_per_page' => - 1, 'post_type' => $what, 'post_status' => 'any' );
237
+ echo '<ul>';
238
+
239
+ $allposts = get_posts( $args );
240
+ foreach ( $allposts as $post ) {
241
+ $id = $post->ID;
242
+ setup_postdata( $post );
243
+ $meta = get_post_meta( $id );
244
+ if ( ! empty( $meta ) ) {
245
+ $type = $post->post_type;
246
+ $title = esc_html( $post->post_title );
247
+ $link = esc_url( get_permalink( $id ) );
248
+ $tlink = "<a href='{$link}' alt='Post {$id}' target='_blank'>{$title}</a>";
249
+ $heading = false;
250
+ foreach ( $meta as $name => $val_array ) { // old value gets put into $val_array[0]
251
+ if ( in_array( $name, $post_fields ) ) {
252
+ $val = $val_array[0]; // easier to work with
253
+ if ( $type == 'page' ) {
254
+ echo "<li><strong><em>{$tlink}</em></strong> " . __( 'has Per Page settings.', 'weaverx-xtreme' ) . "</li>\n";
255
+ } else {
256
+ echo "<li><strong><em>{$tlink}</em></strong> " . __( 'has Per Post settings.', 'weaverx-xtreme' ) . "</li>\n";
257
+ }
258
+ break;
259
  }
 
260
  }
261
  }
262
  }
263
+ echo '</ul>';
264
  }
 
 
265
 
266
  } // end only load if Weaver Xtreme installed
267
 
268
+ add_action( 'plugins_loaded', 'wvrx_check_jetpack' );
269
  function wvrx_check_jetpack() {
270
+ if ( method_exists( 'Jetpack', 'is_module_active' ) && Jetpack::is_module_active( 'minileven' ) && is_admin() ) {
271
+ wvrx_ts_alert( __( '**** IMPORTANT: The Jetpack Mobile theme is active. ****\nIt is NOT compatible with Weaver Xtreme, and will break the theme. Please deactivate it from the Jetpack control panel.\n\n**** This message will continue to be displayed until you deactivate the Jetpack Mobile Theme from the Jetpack settings panel. ****', 'weaverx-theme-support' ) );
272
+ }
273
  }
274