Weaver Xtreme Theme Support - Version 4.0

Version Description

  • Change: Trying to make this plugin not essential. Have moved the per page/post stuff back into the theme where it belongs!
    • Quite a few currently popular themes now have per page/post options, so apparently meta_boxes are no longer disapproved.
Download this release

Release Info

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

Code changes from version 3.2.3 to 4.0

admin/admin-lib-ts-2.php CHANGED
@@ -139,17 +139,8 @@ function weaverx_form_select_id( $value, $show_row = true ) {
139
  }
140
 
141
  function weaverx_form_select_alt_theme($value) {
142
- $list = array(array('val' => 'default', 'desc' => __('Use Default', 'weaver-xtreme' /*adm*/) ),
143
- array('val' => 'right', 'desc' => __('Sidebars on Right', 'weaver-xtreme' /*adm*/) ),
144
- array('val' => 'right-top', 'desc' => __('Sidebars on Right (stack top)', 'weaver-xtreme' /*adm*/) ),
145
- array('val' => 'left', 'desc' => __('Sidebars on Left', 'weaver-xtreme' /*adm*/) ),
146
- array('val' => 'left-top', 'desc' => __(' Sidebars on Left (stack top)', 'weaver-xtreme' /*adm*/) ),
147
- array('val' => 'split', 'desc' => __('Split - Sidebars on Right and Left', 'weaver-xtreme' /*adm*/) ),
148
- array('val' => 'split-top', 'desc' => __('Split (stack top)', 'weaver-xtreme' /*adm*/) ),
149
- array('val' => 'one-column', 'desc' => __('No sidebars, content only', 'weaver-xtreme' /*adm*/) )
150
- );
151
 
152
- $themes = wvrx_ts_get_alt_themes();
153
  $list = array();
154
  $list[] = array( 'val' => '', 'desc' => '');
155
  foreach ( $themes as $subtheme ) {
@@ -177,6 +168,7 @@ function weaverx_form_select_layout($value) {
177
  weaverx_form_select_id($value);
178
  }
179
 
 
180
  function weaverx_form_link($value) {
181
  $id = $value['id'];
182
 
@@ -369,6 +361,7 @@ function weaverx_form_widget_area( $value, $submit = false ) {
369
  'info' => '<em>' . $name . '</em>' . __(': How to align this area (Default: Left Align)', 'weaver-xtreme' /*adm*/) )
370
 
371
  );
 
372
  if ($id == 'header_html' || $id == 'footer_html') {
373
  weaverx_form_checkbox(array(
374
  'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Center Content', 'weaver-xtreme' /*adm*/) . '</small>',
@@ -517,7 +510,15 @@ function weaverx_form_menu_opts( $value, $submit = false ) {
517
  'value' => array(
518
  array('val' => 'left', 'desc' => 'Left'),
519
  array('val' => 'center', 'desc' => 'Center'),
520
- array('val' => 'right', 'desc' => 'Right')
 
 
 
 
 
 
 
 
521
  )),
522
 
523
  array( 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Menu', 'weaver-xtreme' /*adm*/) . '</small>',
@@ -542,12 +543,21 @@ function weaverx_form_menu_opts( $value, $submit = false ) {
542
 
543
 
544
  $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',
545
- 'info' => __('Add the Site Logo to the primary menu. Add custom CSS for <em>.custom-logo-on-menu</em> to style. (Use Customize : Site Identity to set Site Logo.) Logo: ', 'weaver-xtreme' /*adm*/) . $wp_logo_html);
546
 
547
  $opts[] = array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Height of Logo on Menu', 'weaver-xtreme' /*adm*/) . '</small>',
548
  'id' => 'm_primary_logo_height_dec', 'type' => 'val_em',
549
  'info' => __('Set height of Logo on Menu. Will interact with padding. (Default: 2.0em, the standard Menu Bar height.)', 'weaver-xtreme' /*adm*/) );
550
 
 
 
 
 
 
 
 
 
 
551
 
552
  $opts[] = array('name' => '<small>' . __('No Home Menu Item', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'menu_nohome', 'type' => 'checkbox',
553
  'info' => __('Don\'t automatically add Home menu item for home page (as defined in Settings->Reading)', 'weaver-xtreme' /*adm*/));
@@ -828,6 +838,7 @@ function weaverx_from_fi_location( $value, $is_post = false ) {
828
  array('val' => 'post-bg', 'desc' => __('As BG Image, Tile', 'weaver-xtreme' /*adm*/) ),
829
  array('val' => 'post-bg-cover', 'desc' => __('As BG Image, Cover', 'weaver-xtreme' /*adm*/) ),
830
  array('val' => 'post-bg-parallax', 'desc' => __('As BG Image, Parallax', 'weaver-xtreme' /*adm*/) ),
 
831
  );
832
 
833
  weaverx_form_select_id($value);
@@ -837,8 +848,11 @@ function weaverx_from_fi_location( $value, $is_post = false ) {
837
  function weaverx_form_align( $value ) {
838
  $value['value'] = array(
839
  array('val' => 'float-left', 'desc' => __('Align Left', 'weaver-xtreme' /*adm*/) ),
840
- array('val' => 'center', 'desc' => __('Center', 'weaver-xtreme' /*adm*/) ),
841
- array('val' => 'float-right', 'desc' => __('Align Right', 'weaver-xtreme' /*adm*/) )
 
 
 
842
  );
843
 
844
  weaverx_form_select_id($value);
139
  }
140
 
141
  function weaverx_form_select_alt_theme($value) {
 
 
 
 
 
 
 
 
 
142
 
143
+ $themes = weaverx_pp_get_alt_themes();
144
  $list = array();
145
  $list[] = array( 'val' => '', 'desc' => '');
146
  foreach ( $themes as $subtheme ) {
168
  weaverx_form_select_id($value);
169
  }
170
 
171
+
172
  function weaverx_form_link($value) {
173
  $id = $value['id'];
174
 
361
  'info' => '<em>' . $name . '</em>' . __(': How to align this area (Default: Left Align)', 'weaver-xtreme' /*adm*/) )
362
 
363
  );
364
+
365
  if ($id == 'header_html' || $id == 'footer_html') {
366
  weaverx_form_checkbox(array(
367
  'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Center Content', 'weaver-xtreme' /*adm*/) . '</small>',
510
  'value' => array(
511
  array('val' => 'left', 'desc' => 'Left'),
512
  array('val' => 'center', 'desc' => 'Center'),
513
+ array('val' => 'right', 'desc' => 'Right'),
514
+ array('val' => 'alignwide', 'desc' => __('Align Wide', 'weaver-xtreme' /*adm*/) ),
515
+ array('val' => 'alignwide left', 'desc' => __('Align Wide, Items Left', 'weaver-xtreme' /*adm*/) ),
516
+ array('val' => 'alignwide center', 'desc' => __('Align Wide, Items Center', 'weaver-xtreme' /*adm*/) ),
517
+ array('val' => 'alignwide right', 'desc' => __('Align Wide, Items Right', 'weaver-xtreme' /*adm*/) ),
518
+ array('val' => 'alignfull', 'desc' => __('Align Full', 'weaver-xtreme' /*adm*/) ),
519
+ array('val' => 'alignfull left', 'desc' => __('Align Full, Items Left', 'weaver-xtreme' /*adm*/) ),
520
+ array('val' => 'alignfull center', 'desc' => __('Align Full, Items Center', 'weaver-xtreme' /*adm*/) ),
521
+ array('val' => 'alignfull right', 'desc' => __('Align Full, Items Right', 'weaver-xtreme' /*adm*/) )
522
  )),
523
 
524
  array( 'name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Menu', 'weaver-xtreme' /*adm*/) . '</small>',
543
 
544
 
545
  $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',
546
+ '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);
547
 
548
  $opts[] = array( 'name' => '<span class="i-left dashicons dashicons-align-none"></span><small>' . __('Height of Logo on Menu', 'weaver-xtreme' /*adm*/) . '</small>',
549
  'id' => 'm_primary_logo_height_dec', 'type' => 'val_em',
550
  'info' => __('Set height of Logo on Menu. Will interact with padding. (Default: 2.0em, the standard Menu Bar height.)', 'weaver-xtreme' /*adm*/) );
551
 
552
+ $opts[] = array('name' => '<small>' . __('Logo Links to Home', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'm_primary_logo_home_link', 'type' => 'checkbox',
553
+ 'info' => __('Add a link to home page to logo on menu bar.', 'weaver-xtreme' /*adm*/));
554
+
555
+ $opts[] = array('name' => '<small>' . __('Add Site Title to Left', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'm_primary_site_title_left', 'type' => 'checkbox',
556
+ '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*/));
557
+
558
+ $opts[] = array('name' => '<small>' . __("Add Search to Right", 'weaver-xtreme' /*adm*/) . '</small>',
559
+ 'id' => 'm_primary_search', 'type' => '+checkbox',
560
+ 'info' => __('Add slide open search icon to right end of primary menu. (&starf;Plus)', 'weaver-xtreme' /*adm*/) );
561
 
562
  $opts[] = array('name' => '<small>' . __('No Home Menu Item', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'menu_nohome', 'type' => 'checkbox',
563
  'info' => __('Don\'t automatically add Home menu item for home page (as defined in Settings->Reading)', 'weaver-xtreme' /*adm*/));
838
  array('val' => 'post-bg', 'desc' => __('As BG Image, Tile', 'weaver-xtreme' /*adm*/) ),
839
  array('val' => 'post-bg-cover', 'desc' => __('As BG Image, Cover', 'weaver-xtreme' /*adm*/) ),
840
  array('val' => 'post-bg-parallax', 'desc' => __('As BG Image, Parallax', 'weaver-xtreme' /*adm*/) ),
841
+ array('val' => 'post-bg-parallax-full', 'desc' => __('As BG Image, Parallax Full', 'weaver-xtreme' /*adm*/) ),
842
  );
843
 
844
  weaverx_form_select_id($value);
848
  function weaverx_form_align( $value ) {
849
  $value['value'] = array(
850
  array('val' => 'float-left', 'desc' => __('Align Left', 'weaver-xtreme' /*adm*/) ),
851
+ array('val' => 'align-center', 'desc' => __('Center', 'weaver-xtreme' /*adm*/) ),
852
+ array('val' => 'float-right', 'desc' => __('Align Right', 'weaver-xtreme' /*adm*/) ),
853
+ array('val' => 'alignnone', 'desc' => __('No Alignment', 'weaver-xtreme' /*adm*/) ),
854
+ array('val' => 'alignwide', 'desc' => __('Align Wide', 'weaver-xtreme' /*adm*/) ),
855
+ array('val' => 'alignfull', 'desc' => __('Align Full', 'weaver-xtreme' /*adm*/) ),
856
  );
857
 
858
  weaverx_form_select_id($value);
admin/admin-mainopts.php CHANGED
@@ -253,49 +253,41 @@ function weaverx_mainopts_fullwidth() {
253
  'info' => __('Options to easily create full width site designs', 'weaver-xtreme' /*adm*/),
254
  'help' => 'help.html#FullWidth'),
255
 
256
- array('name' => __('Expand Areas', 'weaver-xtreme' /*adm*/), 'id' => '-editor-expand', 'type' => 'header_area',
257
- 'info' => __('This section has options that let you 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*/)),
258
- array('name' => '<span class="i-left dashicons dashicons-editor-expand"></span>' . __('Entire Site Full Width', 'weaver-xtreme' /*adm*/), 'id' => 'wrapper_fullwidth', 'type' => 'checkbox',
259
- '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*/)),
260
- );
261
 
262
- $expand = array (
263
- 'header' => array( __('Header Area Expand', 'weaver-xtreme'), __('Expand Header Area to full width. This will include all other Header Area sub-areas as well.','weaver-xtreme' )),
264
- 'header-image' => array( __('Header Image Expand', 'weaver-xtreme'), __('Expand Header Image to full width.','weaver-xtreme' )),
265
- 'site_title' => array( __('Site Title/Tagline Expand', 'weaver-xtreme'), __('This option includes the Site Title, Tagline, Search Button, and MiniMenu.','weaver-xtreme' )),
266
- 'header-widget-area' => array( __('Header Widget Area Expand', 'weaver-xtreme'), __('Expand Header Widget Area to full width.','weaver-xtreme' )),
267
- 'header-html' => array( __('Header HTML Area Expand', 'weaver-xtreme'), __('Expand Header HTML Area to full width.','weaver-xtreme' )),
268
- 'm_primary' => array( __('Primary Menu Expand', 'weaver-xtreme'), __('Expand Primary Menu to full width.','weaver-xtreme' )),
269
- 'm_secondary' => array( __('Secondary Menu Expand', 'weaver-xtreme'), __('Expand Secondary Menu to full width.','weaver-xtreme' )),
270
- 'container' => array( __('Container Area Expand', 'weaver-xtreme'), __('Expand Container Area to full width.','weaver-xtreme' )),
271
- 'infobar' => array( __('Info Bar Expand', 'weaver-xtreme'), __('Expand Info Bar to full width.','weaver-xtreme' )),
272
- 'post' => array( __('Post Area Expand', 'weaver-xtreme'), __('Expand Info Bar to full width.','weaver-xtreme' )),
273
- 'footer' => array( __('Footer Area Expand', 'weaver-xtreme'), __('Checking this option will automatically include the other Footer Area Expand options as well.','weaver-xtreme' )),
274
- 'footer_sb' => array( __('Footer Widget Area Expand', 'weaver-xtreme'), __('Expand Footer Widget Area to full width.','weaver-xtreme' )),
275
- 'footer_html' => array( __('Footer HTML Area Expand', 'weaver-xtreme'), __('Expand Footer HTML Area to full width.','weaver-xtreme' )),
276
- 'site-ig-wrap' => array( __('Footer Copyright Area Expand', 'weaver-xtreme'), __('Expand Footer Copyright Area to full width.','weaver-xtreme' )),
277
 
 
 
 
 
 
 
 
 
 
278
  );
279
 
280
- foreach ($expand as $id => $vals) {
281
- $opts[] = array('name' => '<span class="i-left dashicons dashicons-editor-expand"></span>' . $vals[0], 'id' => 'expand_' . $id, 'type' => 'checkbox',
282
- 'info' => $vals[1]);
283
- }
 
 
284
 
285
 
286
 
287
- $opts[] = array('name' => __('Extend BG Attributes', 'weaver-xtreme' /*adm*/), 'id' => '-editor-code', 'type' => 'header_area',
288
- 'info' => __('The Extend BG Attributes options in this section allow you to retain the original content width, while extending its Background attributes to full width. These includes BG color, BG image, and borders, for example.', 'weaver-xtreme' /*adm*/));
 
289
 
290
  $extend = array (
291
  'container' => array( __('Container Area Extend BG', 'weaver-xtreme'), __('Extend Container Area BG Attributes to full width.','weaver-xtreme' )),
292
- 'header' => array( __('Header Area Extend BG', 'weaver-xtreme'), __('Extend Header Area BG Attributes to full width.','weaver-xtreme' )),
293
  'header_sb' => array( __('Header Widget Area Extend BG', 'weaver-xtreme'), __('Extend Header Widget Area BG Attributes to full width.','weaver-xtreme' )),
294
  'header_html' => array( __('Header HTML Area Extend BG', 'weaver-xtreme'), __('Extend Header HTML Area BG Attributes to full width.','weaver-xtreme' )),
295
- 'm_primary' => array( __('Primary Menu Extend BG', 'weaver-xtreme'), __('Extend Primary Menu BG Attributes to full width.','weaver-xtreme' )),
296
- 'm_secondary' => array( __('Secondary Menu Extend BG', 'weaver-xtreme'), __('Extend Secondary Menu BG Attributes to full width.','weaver-xtreme' )),
297
  'infobar' => array( __('Info Bar Extend BG', 'weaver-xtreme'), __('Extend Info Bar BG Attributes to full width.','weaver-xtreme' )),
298
- //'content' => array( __('Content Area Extend BG', 'weaver-xtreme'), __('Extend Content Area BG Attributes to full width.','weaver-xtreme' )),
299
  'post' => array( __('Post Area Extend BG', 'weaver-xtreme'), __('Extend each Post Area BG Attributes to full width.','weaver-xtreme' )),
300
  'footer' => array( __('Footer Area Extend BG', 'weaver-xtreme'), __('Extend Footer Area BG Attributes to full width.','weaver-xtreme' )),
301
  'footer_sb' => array( __('Footer Widget Area Extend BG', 'weaver-xtreme'), __('Extend Footer Widget Area BG Attributes to full width.','weaver-xtreme' )),
@@ -312,6 +304,37 @@ function weaverx_mainopts_fullwidth() {
312
  }
313
 
314
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
 
316
 
317
  $opts[] = array('name' => __('Extend BG Color', 'weaver-xtreme' /*adm*/), 'id' => '-admin-appearance', 'type' => 'header_area',
@@ -401,6 +424,11 @@ array( 'name' => __('Header Other options', 'weaver-xtreme'), 'type' => 'break')
401
 
402
  )) ),
403
 
 
 
 
 
 
404
  array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Maximum Image Width', 'weaver-xtreme' /*adm*/) . '</small>',
405
  'id' => 'header_image_max_width_dec', 'type' => '+val_percent',
406
  'info' => __('Maximum width of Image (Default: 100%) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
@@ -410,8 +438,8 @@ array( 'name' => __('Header Other options', 'weaver-xtreme'), 'type' => 'break')
410
  'info' => __('Check to use actual header image size. (Default: theme width) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
411
 
412
  array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Align Header Image', 'weaver-xtreme' /*adm*/) . '</small>',
413
- 'id' => 'header_image_align', 'type' => '+align',
414
- 'info' => __('How to align header image - meaningful only when Max Width or Actual Size set. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
415
 
416
  array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Header Image Front Page', 'weaver-xtreme' /*adm*/) . '</small>',
417
  'id' => 'hide_header_image_front', 'type' => 'checkbox',
@@ -625,8 +653,8 @@ function weaverx_mainopts_menus() {
625
 
626
  ##### SmartMenu
627
  array('name' => '<span class="i-left dashicons dashicons-menu"></span>' . __('Use SmartMenus', 'weaver-xtreme' /*adm*/),
628
- 'id' => 'use_smartmenus', 'type' => '+checkbox',
629
- 'info' => __('Use <em>SmartMenus</em> rather than default Weaver Xtreme Menus. <em>SmartMenus</em> provide enhanced menu support, including auto-visibility, and transition effects. Applies to all menus. Additional options for SmartMenus on the <em>Xtreme Plus:SmartMenus</em> tab. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
630
 
631
  array( 'name' => '<small>' . __('Menu Mobile/Desktop Switch Point', 'weaver-xtreme' /*adm*/) . '</small>',
632
  'id' => 'mobile_alt_switch', 'type' => '+val_px',
@@ -826,26 +854,13 @@ function weaverx_mainopts_content() {
826
  'info' => __('Search box related options', 'weaver-xtreme' /*adm*/)),
827
 
828
  array('name' => '<small>' . __('Search Input BG', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'search_bgcolor', 'type' => 'ctext',
829
- 'info' => __('Background color for search input boxes.', 'weaver-xtreme' /*adm*/)),
830
  array('name' => '<small>' . __('Search Input Text', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'search_color', 'type' => 'color',
831
- 'info' => __('Text color for search input boxes.', 'weaver-xtreme' /*adm*/)),
832
 
833
- array('name' => '<small>' . __('Search Icon', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'search_icon', 'type' => 'radio', //code
834
- 'info' => __('Search Icon - used for both Header and Search Widgets.', 'weaver-xtreme' /*adm*/),
835
- 'value' => array(
836
- array('val' => 'black'),
837
- array('val' => 'gray'),
838
- array('val' => 'light'),
839
- array('val' => 'white'),
840
- array('val' => 'black-bg'),
841
- array('val' => 'gray-bg'),
842
- array('val' => 'white-bg'),
843
- array('val' => 'blue-bg'),
844
- array('val' => 'green-bg'),
845
- array('val' => 'orange-bg'),
846
- array('val' => 'red-bg'),
847
- array('val' => 'yellow-bg'),
848
- )),
849
 
850
 
851
  array( 'type' => 'submit'),
@@ -874,8 +889,16 @@ function weaverx_mainopts_content() {
874
  'info' => __('Where to display Featured Image for Pages','weaver-xtreme' /*adm*/)),
875
  array('name' => __('Full Width FI BG Image:', 'weaver-xtreme' /*adm*/),
876
  '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*/),
877
- 'type' => 'note'), // ,'help' => 'help.html#PhotoBlog'),
878
- array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Featured Image Alignment<small>', 'weaver-xtreme' /*adm*/), 'id' => 'page_fi_align', 'type' => 'fi_align',
 
 
 
 
 
 
 
 
879
  'info' => __('How to align the Featured Image', 'weaver-xtreme' /*adm*/)),
880
 
881
  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',
@@ -1219,6 +1242,11 @@ function weaverx_mainopts_posts() {
1219
  array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __('FI Location - Full Post', 'weaver-xtreme' /*adm*/),
1220
  'id' => 'post_full_fi_location', 'type' => 'fi_location_post',
1221
  'info' => __('Where to display Featured Image for full blog posts.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
1222
  array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Full post', 'weaver-xtreme' /*adm*/) . '</small>',
1223
  'id' => 'post_full_fi_align', 'type' => 'fi_align',
1224
  'info' => __('Featured Image alignment','weaver-xtreme' /*adm*/)),
@@ -1245,6 +1273,7 @@ function weaverx_mainopts_posts() {
1245
  array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>'. __('FI Location - Excerpts', 'weaver-xtreme' /*adm*/),
1246
  'id' => 'post_excerpt_fi_location', 'type' => 'fi_location_post',
1247
  'info' => __('Where to display Featured Image for posts displayed as excerpt.', 'weaver-xtreme' /*adm*/)),
 
1248
  array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Excerpts', 'weaver-xtreme' /*adm*/) . '</small>',
1249
  'id' => 'post_excerpt_fi_align', 'type' => 'fi_align',
1250
  'info' => __('How to align the Featured Image', 'weaver-xtreme' /*adm*/)),
@@ -1269,6 +1298,14 @@ function weaverx_mainopts_posts() {
1269
  array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __('FI Location - Single Page', 'weaver-xtreme' /*adm*/),
1270
  'id' => 'post_fi_location', 'type' => 'fi_location',
1271
  'info' => __('Where to display Featured Image for posts on single page view.', 'weaver-xtreme' /*adm*/)),
 
 
 
 
 
 
 
 
1272
  array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Single Page', 'weaver-xtreme' /*adm*/) . '</small>',
1273
  'id' => 'post_fi_align', 'type' => 'fi_align',
1274
  'info' => __('How to align the Featured Image on Single Page View.', 'weaver-xtreme' /*adm*/)),
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
+ ))
267
  );
268
 
269
+
270
+ $opts[] = array('name' => __('Wide and Full Alignment', 'weaver-xtreme' /*adm*/), 'id' => '-admin-appearance3', 'type' => 'header_area',
271
+ '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*/));
272
+ $opts[] = array('name' => '<small>' . __('Align Full and Wide', 'weaver-xtreme' /*adm*/) . '</small>', 'type' => 'note',
273
+ '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*/));
274
+
275
 
276
 
277
 
278
+ $opts[] = array('name' => __('Extend BG Attributes to Full Width', 'weaver-xtreme' /*adm*/), 'id' => '-editor-code', 'type' => 'header_area',
279
+ '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*/));
280
+
281
 
282
  $extend = array (
283
  'container' => array( __('Container Area Extend BG', 'weaver-xtreme'), __('Extend Container Area BG Attributes to full width.','weaver-xtreme' )),
284
+ 'header' => array( __('Header Area Extend BG', 'weaver-xtreme'), __(' Extend Header Area BG Attributes to full width.','weaver-xtreme' )),
285
  'header_sb' => array( __('Header Widget Area Extend BG', 'weaver-xtreme'), __('Extend Header Widget Area BG Attributes to full width.','weaver-xtreme' )),
286
  'header_html' => array( __('Header HTML Area Extend BG', 'weaver-xtreme'), __('Extend Header HTML Area BG Attributes to full width.','weaver-xtreme' )),
287
+ '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' )),
288
+ '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' )),
289
  'infobar' => array( __('Info Bar Extend BG', 'weaver-xtreme'), __('Extend Info Bar BG Attributes to full width.','weaver-xtreme' )),
290
+ //'content' => array( __('Content Area Fullwidth BG', 'weaver-xtreme'), __('Extend Content Area BG Attributes to full width.','weaver-xtreme' )),
291
  'post' => array( __('Post Area Extend BG', 'weaver-xtreme'), __('Extend each Post Area BG Attributes to full width.','weaver-xtreme' )),
292
  'footer' => array( __('Footer Area Extend BG', 'weaver-xtreme'), __('Extend Footer Area BG Attributes to full width.','weaver-xtreme' )),
293
  'footer_sb' => array( __('Footer Widget Area Extend BG', 'weaver-xtreme'), __('Extend Footer Widget Area BG Attributes to full width.','weaver-xtreme' )),
304
  }
305
 
306
 
307
+ $opts[] = array('name' => __('Stretch Areas (Expand)', 'weaver-xtreme' /*adm*/), 'id' => '-editor-expand', 'type' => 'header_area',
308
+ '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*/));
309
+ $opts[] = array('name' => '<small>' . __('These Options OBSOLETE', 'weaver-xtreme' /*adm*/) . '</small>', 'type' => 'note',
310
+ '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*/));
311
+
312
+ $opts[] = array('name' => '<span class="i-left dashicons dashicons-editor-expand"></span>' . __('Entire Site Full Width', 'weaver-xtreme' /*adm*/), 'id' => 'wrapper_fullwidth', 'type' => 'checkbox',
313
+ '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*/));
314
+
315
+
316
+ $stretch = array (
317
+ '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' )),
318
+ 'header-image' => array( __('Header Image Stretch', 'weaver-xtreme'), __('Stretch Header Image to full width.','weaver-xtreme' )),
319
+ 'site_title' => array( __('Site Title/Tagline Stretch', 'weaver-xtreme'), __('This option includes the Site Title, Tagline, Search Button, and MiniMenu.','weaver-xtreme' )),
320
+ 'header-widget-area' => array( __('Header Widget Area Stretch', 'weaver-xtreme'), __('Stretch Header Widget Area to full width.','weaver-xtreme' )),
321
+ 'header-html' => array( __('Header HTML Area Stretch', 'weaver-xtreme'), __('Stretch Header HTML Area to full width.','weaver-xtreme' )),
322
+ 'm_primary' => array( __('Primary Menu Stretch', 'weaver-xtreme'), __('Stretch Primary Menu to full width.','weaver-xtreme' )),
323
+ 'm_secondary' => array( __('Secondary Menu Stretch', 'weaver-xtreme'), __('Stretch Secondary Menu to full width.','weaver-xtreme' )),
324
+ 'container' => array( __('Container Area Stretch', 'weaver-xtreme'), __('Stretch Container Area to full width.','weaver-xtreme' )),
325
+ 'infobar' => array( __('Info Bar Stretch', 'weaver-xtreme'), __('Stretch Info Bar to full width.','weaver-xtreme' )),
326
+ 'post' => array( __('Post Area Stretch', 'weaver-xtreme'), __('Stretch Info Bar to full width.','weaver-xtreme' )),
327
+ 'footer' => array( __('Footer Area Stretch', 'weaver-xtreme'), __('Checking this option will automatically include the other Footer Area Stretch options as well.','weaver-xtreme' )),
328
+ 'footer_sb' => array( __('Footer Widget Area Stretch', 'weaver-xtreme'), __('Stretch Footer Widget Area to full width.','weaver-xtreme' )),
329
+ 'footer_html' => array( __('Footer HTML Area Stretch', 'weaver-xtreme'), __('Stretch Footer HTML Area to full width.','weaver-xtreme' )),
330
+ 'site-ig-wrap' => array( __('Footer Copyright Area Stretch', 'weaver-xtreme'), __('Stretch Footer Copyright Area to full width.','weaver-xtreme' )),
331
+
332
+ );
333
+
334
+ foreach ($stretch as $id => $vals) {
335
+ $opts[] = array('name' => '<span class="i-left dashicons dashicons-editor-expand"></span>' . $vals[0], 'id' => 'expand_' . $id, 'type' => 'checkbox',
336
+ 'info' => $vals[1]);
337
+ }
338
 
339
 
340
  $opts[] = array('name' => __('Extend BG Color', 'weaver-xtreme' /*adm*/), 'id' => '-admin-appearance', 'type' => 'header_area',
424
 
425
  )) ),
426
 
427
+ array('name' => '<small>' . __('Minimum Header Height', 'weaver-xtreme' /*adm*/) . '</small>',
428
+ 'id' => 'header_min_height', 'type' => '+val_px',
429
+ '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*/)),
430
+
431
+
432
  array('name' => '<span class="i-left" style="font-size:120%;">&harr;</span><small>' . __('Maximum Image Width', 'weaver-xtreme' /*adm*/) . '</small>',
433
  'id' => 'header_image_max_width_dec', 'type' => '+val_percent',
434
  'info' => __('Maximum width of Image (Default: 100%) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
438
  'info' => __('Check to use actual header image size. (Default: theme width) (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
439
 
440
  array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Align Header Image', 'weaver-xtreme' /*adm*/) . '</small>',
441
+ 'id' => 'header_image_align', 'type' => 'align',
442
+ 'info' => __('How to align header image - meaningful only when Max Width or Actual Size set.', 'weaver-xtreme' /*adm*/)),
443
 
444
  array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Header Image Front Page', 'weaver-xtreme' /*adm*/) . '</small>',
445
  'id' => 'hide_header_image_front', 'type' => 'checkbox',
653
 
654
  ##### SmartMenu
655
  array('name' => '<span class="i-left dashicons dashicons-menu"></span>' . __('Use SmartMenus', 'weaver-xtreme' /*adm*/),
656
+ 'id' => 'use_smartmenus', 'type' => 'checkbox',
657
+ '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*/)),
658
 
659
  array( 'name' => '<small>' . __('Menu Mobile/Desktop Switch Point', 'weaver-xtreme' /*adm*/) . '</small>',
660
  'id' => 'mobile_alt_switch', 'type' => '+val_px',
854
  'info' => __('Search box related options', 'weaver-xtreme' /*adm*/)),
855
 
856
  array('name' => '<small>' . __('Search Input BG', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'search_bgcolor', 'type' => 'ctext',
857
+ 'info' => __('Background color for all search input boxes.', 'weaver-xtreme' /*adm*/)),
858
  array('name' => '<small>' . __('Search Input Text', 'weaver-xtreme' /*adm*/) . '</small>', 'id' => 'search_color', 'type' => 'color',
859
+ 'info' => __('Text color for all search input boxes.', 'weaver-xtreme' /*adm*/)),
860
 
861
+ array('name' => __('Search Icon Color:', 'weaver-xtreme' /*adm*/),
862
+ '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*/),
863
+ 'type' => 'note'),
 
 
 
 
 
 
 
 
 
 
 
 
 
864
 
865
 
866
  array( 'type' => 'submit'),
889
  'info' => __('Where to display Featured Image for Pages','weaver-xtreme' /*adm*/)),
890
  array('name' => __('Full Width FI BG Image:', 'weaver-xtreme' /*adm*/),
891
  '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*/),
892
+ 'type' => 'note'),
893
+ array('name' => __('Parallax FI BG Image:', 'weaver-xtreme' /*adm*/),
894
+ 'info' => __('It will usually be more useful to use the Per Page FI option to specify Parallax BG images.', 'weaver-xtreme' /*adm*/),
895
+ 'type' => 'note'),
896
+ array('name' => '<small>'. __('Page Content Height', 'weaver-xtreme' /*adm*/) . '</small>',
897
+ 'id' => 'page_min_height', 'type' => '+val_px',
898
+ 'info' => __('Minimum Height Page Content with Parallax BG. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
899
+
900
+
901
+ 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',
902
  'info' => __('How to align the Featured Image', 'weaver-xtreme' /*adm*/)),
903
 
904
  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',
1242
  array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __('FI Location - Full Post', 'weaver-xtreme' /*adm*/),
1243
  'id' => 'post_full_fi_location', 'type' => 'fi_location_post',
1244
  'info' => __('Where to display Featured Image for full blog posts.', 'weaver-xtreme' /*adm*/)),
1245
+
1246
+ array('name' => '<small>'. __('Post Height - Blog View', 'weaver-xtreme' /*adm*/) . '</small>',
1247
+ 'id' => 'post_blog_min_height', 'type' => '+val_px',
1248
+ 'info' => __('Minimum Height of Post, full or excerpt, with Parallax BG in blog views. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1249
+
1250
  array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Full post', 'weaver-xtreme' /*adm*/) . '</small>',
1251
  'id' => 'post_full_fi_align', 'type' => 'fi_align',
1252
  'info' => __('Featured Image alignment','weaver-xtreme' /*adm*/)),
1273
  array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>'. __('FI Location - Excerpts', 'weaver-xtreme' /*adm*/),
1274
  'id' => 'post_excerpt_fi_location', 'type' => 'fi_location_post',
1275
  'info' => __('Where to display Featured Image for posts displayed as excerpt.', 'weaver-xtreme' /*adm*/)),
1276
+
1277
  array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Excerpts', 'weaver-xtreme' /*adm*/) . '</small>',
1278
  'id' => 'post_excerpt_fi_align', 'type' => 'fi_align',
1279
  'info' => __('How to align the Featured Image', 'weaver-xtreme' /*adm*/)),
1298
  array('name' => '<span class="i-left" style=font-size:120%;">&nbsp;&#10538;</span>' . __('FI Location - Single Page', 'weaver-xtreme' /*adm*/),
1299
  'id' => 'post_fi_location', 'type' => 'fi_location',
1300
  'info' => __('Where to display Featured Image for posts on single page view.', 'weaver-xtreme' /*adm*/)),
1301
+
1302
+ array('name' => '<small>'. __('Post Height - Single Page', 'weaver-xtreme' /*adm*/) . '</small>',
1303
+ 'id' => 'post_min_height', 'type' => '+val_px',
1304
+ 'info' => __('Minimum Height of Post with Parallax BG in Single Page view. (&starf;Plus)', 'weaver-xtreme' /*adm*/)),
1305
+ array('name' => __('Parallax FI BG Image:', 'weaver-xtreme' /*adm*/),
1306
+ 'info' => __('It will usually be more useful to use the Per Post FI option to specify Parallax BG images.', 'weaver-xtreme' /*adm*/),
1307
+ 'type' => 'note'),
1308
+
1309
  array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('FI Alignment - Single Page', 'weaver-xtreme' /*adm*/) . '</small>',
1310
  'id' => 'post_fi_align', 'type' => 'fi_align',
1311
  'info' => __('How to align the Featured Image on Single Page View.', 'weaver-xtreme' /*adm*/)),
admin/assets/css/admin-style.css CHANGED
@@ -1,2 +1,3 @@
1
  /* Weaver Xtreme Theme Support admin style */
2
  .yetiisub .li {list-style-type: none;}
 
1
  /* Weaver Xtreme Theme Support admin style */
2
  .yetiisub .li {list-style-type: none;}
3
+ .clear-both {clear:both;}
admin/assets/css/admin-style.min.css CHANGED
@@ -1,7 +1,3 @@
1
- .hide_me{display:none}textarea.wvrx-edit-dir{background-color:yellow!important;direction:rtl!important}.atw-green{font-weight:bold;color:green}.atw-yellow{font-weight:bold;color:orange}.atw-red{font-weight:bold;color:red}.atw-blue{font-weight:bold;color:blue}.a-plus{background-color:#f5fbef;border:1px solid #ccc;padding-left:20px;padding-right:20px;margin-left:20px;margin-right:20%}.i-left{float:left;font-size:14px}.i-left-bg{float:left;font-size:16px;color:#70ff29}.i-left-fg{float:left;font-size:16px;color:#290bbd}a.anchorx{display:block;position:relative;top:-40px;visibility:hidden}.options-intro{text-align:center;margin:-10px auto -5px auto;font-size:90%;background-color:ivory;padding:4px 10px 4px 10px;border:1px solid green;max-width:90%}.options-intro a{font-weight:bold;text-decoration:none;color:blue}.options-intro-menu{text-align:center}#wpcontent{background-color:#fffff8;color:black}input.color{border:1px solid #2bff1c}select{font-size:12px}.font-bold{font-weight:bold}.font-bold-title{font-weight:900}
2
- .font-italic a,.font-italic{font-style:italic!important}.font-sans-serif{font-family:sans-serif}.font-arial{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif}.font-arialNarrow{font-family:"Arial Narrow",Arial,sans-serif}.font-impact{font-family:Impact,Haettenschweiler,Charcoal,"Arial Narrow Bold",sans-serif}.font-lucidaSans{font-family:"Lucida Sans",Geneva,Tahoma,sans-serif}.font-trebuchetMS{font-family:"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif}.font-verdana{font-family:Verdana,Geneva,Candara,sans-serif}.font-serif{font-family:TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif}.font-garamond{font-family:Garamond,Baskerville,"Baskerville Old Face","Hoefler Text","Times New Roman",serif}.font-georgia{font-family:Georgia,Times,"Times New Roman",serif}
3
- .font-lucidaBright{font-family:"Lucida Bright","Book Antiqua",Georgia,serif}.font-palatino{font-family:"Palatino Linotype",Palatino,"Lucida Bright","Book Antiqua",serif}.font-timesNewRoman{font-family:TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif}.font-monospace{font-family:monospace}.font-consolas{font-family:Consolas,monaco,"Andale Mono",AndaleMono,monospace}.font-courier{font-family:"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace}.font-lucidaConsole{font-family:"Lucida Console","Lucida Sans Typewriter",Monaco,"Bitstream Vera Sans Mono",monospace}.font-papyrus{font-family:Papyrus,fantasy,cursive,serif}.font-comicSans{font-family:"Comic Sans MS",cursive,serif}p{margin-right:5%}.submit input{background:#f8f8f8;background-image:linear-gradient(#a8ddff,#88b3cf);border-radius:4px}
4
- .atw-help ul{list-style:disc;margin-left:30px}.atw-option-section{font-weight:bold;font-size:120%;color:blue}.tab ul{margin-left:1.15em;list-style:disc outside none}.tab ol{list-style-position:outside;margin-left:1.4em;margin-bottom:.6em}.js_button{background:#eee!important;font-weight:600!important;color:#585858!important}div.yetii{width:95%;margin:0 0 20px 0}ul.yetii{list-style-type:none;width:100%;float:left;border-bottom:4px ridge #ddd;margin-bottom:8px}ul.yetii li{margin:0 2px 0 0;float:left}ul.yetii a{float:left;display:block;padding:4px 8px;border:1px solid #ddd;border-bottom:0;color:#666;background:#eee;text-decoration:none;font-weight:bold;background-image:linear-gradient(#f0f0f0,#c8c8c8);border-top-left-radius:6px;border-top-right-radius:6px}ul.yetii a:hover{background:#fff}ul.yetii a.active{background:#fff;color:#00f;background-image:linear-gradient(#f8f8f8,#eee)}div.yetiisub{width:100%;margin:0 0 20px 0}ul.yetiisub{list-style-type:none;width:100%;float:left;margin-bottom:8px}
5
- ul.yetiisub li{margin:0 2px 2px 0;float:left}ul.yetiisub a{float:left;padding:4px 8px;border:1px solid #ccc;color:#666;background:#f0f0f0;text-decoration:none;font-style:italic;font-weight:bold;background-image:linear-gradient(#f8f8f8,#c8c8c8);border-top-left-radius:6px;border-top-right-radius:6px}ul.yetiisub a:hover{background:#fefefe!important}ul.yetiisub a.active{background:#fff;color:#00f;background-image:linear-gradient(#fff,#e8e8e8)}.atw-small-submit{padding:1.0em 0;margin:1px 0;font-size:90%}.atw-option-header{background:#d0d0d8;line-height:1.8em;width:95%;color:blue;font-size:large;font-weight:bold;padding-left:12px;border-radius:6px;box-shadow:3px 3px 10px #aaa;background-image:linear-gradient(#eee,#ccc)}.atw-option-subheader{background:#eaeaea;line-height:1.8em;width:95%;color:blue;font-size:larger;font-weight:bold;padding-left:18px;border-radius:6px;box-shadow:3px 3px 10px #ccc;background-image:linear-gradient(#fff,#ddd)}.atw-row-header{background:#d0d0d8;line-height:1.8em;padding-left:4px;background-image:linear-gradient(#eee,#ccc)}
6
- .atw-row-subheader{background:#eaeaea;padding-left:4px;background:linear-gradient(#f8f8f8,#ddd)}.atw-row-subheader-alt{background:#f4f4f4;padding-left:4px;background-image:linear-gradient(#f8f8f8,#dadada)}.atw-row-subheader-area{background:#e8ffee;background:linear-gradient(#e8ffee,#95e8b7)}.l_layout{display:block;width:140px;height:110px;float:left;margin-right:10px;margin-bottom:10px;display:inline;border:1px solid #888;color:black;text-align:center;font:15px arial,sans-serif}.l_layout span{display:block}.l_header{width:140px;height:20px;background:#CCF;line-height:20px}.l_content{width:100px;height:70px;background:beige;float:left;display:inline;line-height:70px}.l_contentcenter{width:60px;height:70px;background:beige;float:left;display:inline;line-height:70px}.l_content2{width:80px;height:70px;background:beige;float:left;display:inline;line-height:70px}.l_contentw{width:140px;height:70px;background:beige;float:left;display:inline;line-height:70px}.l_stdbar{width:40px;height:70px;float:left;display:inline}
7
- .l_widebar{width:60px;height:70px;float:left;display:inline}.l_righttop{width:40px;height:20px;background:#FE8;float:left;display:inline;line-height:20px}.l_righttopwide{width:60px;height:20px;background:#FE8;float:left;display:inline;line-height:20px}.l_rightup{width:40px;height:25px;margin:0;background:#FAA;float:left;display:inline;line-height:25px}.l_rightright{width:40px;height:50px;margin:0;background:#FAA;float:left;display:inline;line-height:50px}.l_rightdown{width:40px;height:25px;margin:0;background:#AFA;float:left;display:inline;line-height:25px}.l_leftleft{width:40px;height:70px;margin:0;background:#AFA;float:left;display:inline;line-height:70px}.l_leftshort{width:30px;height:50px;margin:0;background:#AFA;float:left;display:inline;line-height:50px}.l_skinny{width:30px;height:50px;margin:0;background:#FAA;float:left;display:inline;line-height:50px}.l_footer{clear:left;width:140px;height:20px;background:#DDF;color:#000;line-height:20px}
1
+ /* Weaver Xtreme Theme Support admin style */
2
+ .yetiisub .li {list-style-type: none;}
3
+ .clear-both {clear:both;}
 
 
 
 
includes/wvrx-ts-runtime-lib.php CHANGED
@@ -29,6 +29,8 @@ function wvrx_ts_fix_short($prefix, $msg ) {
29
  echo $msg;
30
  }
31
 
 
 
32
  add_action('weaverx_theme_support_addon','wvrx_ts_theme_support_addon');
33
  function wvrx_ts_theme_support_addon() {
34
 
@@ -162,9 +164,13 @@ Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" cla
162
  <?php
163
  }
164
 
 
 
 
165
  add_action('weaverx_more_help', 'weaverx_ts_more_help');
166
  function weaverx_ts_more_help() {
167
  ?>
 
168
  <hr />
169
  <script>jQuery(document).ready(function(){jQuery('#wvrx-sysinfo').click(function(){jQuery('#wvrx-sysinfo').copyme();});
170
  jQuery('#btn-sysinfo').click(function(){jQuery('#wvrx-sysinfo').copyme();}); });</script>
@@ -193,6 +199,10 @@ function weaverx_ts_show_version_action() {
193
  echo "<!-- Weaver Xtreme Theme Support " . WVRX_TS_VERSION . " --> ";
194
  }
195
 
 
 
 
 
196
  function weaverx_ts_get_sysinfo() {
197
 
198
  global $wpdb;
@@ -286,360 +296,4 @@ function weaverx_ts_get_sysinfo() {
286
  return $return;
287
  }
288
 
289
- // ======================================= MCE CSS FILE GENARATION ================================
290
-
291
- add_action('weaverx_save_mcecss', 'weaverx_ts_save_mcecss'); // theme support plugin saved editor css in file
292
-
293
- function weaverx_ts_save_mcecss() {
294
- // generate and save mcecss style file (using direct PHP file access)
295
-
296
- if (!current_user_can( 'edit_theme_options' ) ) {
297
- return;
298
- }
299
-
300
- $save_dir = weaverx_f_uploads_base_dir() . 'weaverx-subthemes';
301
- $save_url = weaverx_f_uploads_base_url() . 'weaverx-subthemes';
302
-
303
- $usename = 'editor-style-wvrx.css';
304
-
305
- $theme_dir_exists = wp_mkdir_p($save_dir); // direct to wp mkdir
306
- if (!$theme_dir_exists) {
307
- weaverx_f_file_access_fail(__('Unable to create directory to save editor style file. Probably a file system permission problem. Directory', 'weaver-xtreme' /*adm*/) . $save_dir);
308
- return;
309
- }
310
-
311
- $theme_dir_writable = $theme_dir_exists;
312
-
313
- if (!@is_writable($save_dir)) { // direct php access
314
- weaverx_f_file_access_fail(__('Directory not writable to save editor style file. Probably a file system permission problem. Directory: ', 'weaver-xtreme' /*adm*/) . $save_dir);
315
- return;
316
- }
317
-
318
- $filename = $save_dir . '/'. $usename; // we will add txt
319
-
320
- if (!$theme_dir_writable || !$theme_dir_exists || !($handle = fopen($filename, 'w')) ) { // Direct php
321
- weaverx_f_file_access_fail(__('Unable to create editor style file. Probably a file system permission problem. File: ', 'weaver-xtreme' /*adm*/) . $filename);
322
- return;
323
- }
324
-
325
- weaverx_ts_output_edit_style($handle);
326
-
327
- if (!fclose($handle)) {
328
- weaverx_f_file_access_fail(__('Unable to create editor css file. Probably a file system permission problem. File: ', 'weaver-xtreme' /*adm*/) . $filename);
329
- return '';
330
- }
331
-
332
- return $save_url . '/' . $usename;
333
- }
334
-
335
- function weaverx_ts_output_edit_style( $handle ) {
336
-
337
- $put = sprintf("/* WARNING: Do not edit this file. It is dynamically generated. Any edits you make will be overwritten. */
338
- /* This file generated using %s %s subtheme: %s */\n",WEAVERX_THEMENAME, WEAVERX_VERSION, weaverx_getopt('themename'));
339
-
340
- if ( ( $twidth = weaverx_getopt_default( 'theme_width_int', WEAVERX_THEME_WIDTH ) ) ) {
341
- /* figure out a good width - we will please most of the users, most of the time
342
- We're going to assume that mostly people will use the default layout -
343
- we can't actually tell if the editor will be for a page or a post at this point.
344
- And let's just assume the default sidebar widths.
345
- */
346
- $sb_layout = weaverx_getopt_default('layout_default', 'right');
347
- switch ( $sb_layout ) {
348
- case 'left':
349
- case 'left-top':
350
- $sb_width = weaverx_getopt_default( 'left_sb_width_int', 25 );
351
- break;
352
- case 'split':
353
- case 'split-top':
354
- $sb_width = weaverx_getopt_default( 'left_split_sb_width_int', 25 )
355
- + weaverx_getopt_default( 'right_split_sb_width_int', 25 );
356
- break;
357
- case 'one-column':
358
- $sb_width = 0;
359
- break;
360
- default: // right
361
- $sb_width = weaverx_getopt_default( 'right_sb_width_int', 25 );
362
- break;
363
- }
364
-
365
- $content_w = $twidth - ( $twidth * (float)( $sb_width / 95.0 ) ); // .95 by trial and error
366
-
367
- // calculate theme width based on default layout and width of sidebars.
368
-
369
- $put .= "html .mceContentBody {max-width:96%;width:" . $content_w . "px;}\n";
370
- $put .= "#content html .mceContentBody {max-width:96%;width:96%;}\n";
371
- }
372
-
373
- if (($base_font_px = weaverx_getopt('site_fontsize_int')) == '' )
374
- $base_font_px = 16;
375
- $base_font_px = (float)$base_font_px;
376
- $font_size = 'default';
377
-
378
- if (!is_page() && ($area_font = weaverx_getopt_default('post_font_size','default')) != 'default' )
379
- $font_size = $area_font;
380
- else if (($area_font = weaverx_getopt_default('content_font_size','default')) != 'default' )
381
- $font_size = $area_font;
382
- else if (($area_font = weaverx_getopt_default('container_font_size','default')) != 'default' )
383
- $font_size = $area_font;
384
- else if (($area_font = weaverx_getopt_default('wrapper_font_size','default')) != 'default' )
385
- $font_size = $area_font;
386
-
387
- switch ( $font_size ) { // find conversion factor
388
- case 'xxs-font-size':
389
- $h_fontmult = 0.625;
390
- break;
391
- case 'xs-font-size':
392
- $h_fontmult = 0.75;
393
- break;
394
- case 's-font-size':
395
- $h_fontmult = 0.875;
396
- break;
397
- case 'l-font-size':
398
- $h_fontmult = 1.125;
399
- break;
400
- case 'xl-font-size':
401
- $h_fontmult = 1.25;
402
- break;
403
- case 'xxl-font-size':
404
- $h_fontmult = 1.5;
405
- break;
406
- default:
407
- $h_fontmult = 1;
408
- break;
409
- }
410
-
411
- $em_font_size = ( $base_font_px / 16.0) * $h_fontmult ;
412
- $put .= "label,th,thead th,tr,td,.mceContentBody,body{font-size:" . $em_font_size . "em;}\n";
413
-
414
-
415
-
416
- $val = weaverx_getopt_default('content_font_family', 'inherit');
417
- if ( $val == 'inherit' )
418
- $val = weaverx_getopt_default('container_font_family', 'inherit' );
419
- if ( $val == 'inherit' )
420
- $val = weaverx_getopt('wrapper_font_family');
421
- if ( $val != 'inherit' ) { // found a font {
422
- // these are not translatable - the values are used to define the actual font definition
423
-
424
- $fonts = array(
425
- 'sans-serif' => 'Arial,sans-serif',
426
- 'arialBlack' => '"Arial Black",sans-serif',
427
- 'arialNarrow' => '"Arial Narrow",sans-serif',
428
- 'lucidaSans' => '"Lucida Sans",sans-serif',
429
- 'trebuchetMS' => '"Trebuchet MS", "Lucida Grande",sans-serif',
430
- 'verdana' => 'Verdana, Geneva,sans-serif',
431
- 'alegreya-sans' => "'Alegreya Sans', sans-serif",
432
- 'roboto' => "'Roboto', sans-serif",
433
- 'roboto-condensed' => "'Roboto Condensed', sans-serif",
434
- 'source-sans-pro' => "'Source Sans Pro', sans-serif",
435
-
436
-
437
- 'serif' => 'TimesNewRoman, "Times New Roman",serif',
438
- 'cambria' => 'Cambria,serif',
439
- 'garamond' => 'Garamond,serif',
440
- 'georgia' => 'Georgia,serif',
441
- 'lucidaBright' => '"Lucida Bright",serif',
442
- 'palatino' => '"Palatino Linotype",Palatino,serif',
443
- 'alegreya' => "'Alegreya', serif",
444
- 'roboto-slab' => "'Roboto Slab', serif",
445
- 'source-serif-pro' => "'Source Serif Pro', serif",
446
-
447
- 'monospace' => '"Courier New",Courier,monospace',
448
- 'consolas' => 'Consolas,monospace',
449
- 'inconsolata' => "'Inconsolata', monospace",
450
- 'roboto-mono' => "'Roboto Mono', sans-serif",
451
-
452
- 'papyrus' => 'Papyrus,cursive,serif',
453
- 'comicSans' => '"Comic Sans MS",cursive,serif',
454
- 'handlee' => "'Handlee', cursive",
455
-
456
- 'open-sans' => "'Open Sans', sans-serif",
457
- 'open-sans-condensed' => "'Open Sans Condensed', sans-serif",
458
- 'droid-sans' => "'Droid Sans', sans-serif",
459
- 'droid-serif' => "'Droid Serif', serif",
460
- 'exo-2' => "'Exo 2', sans-serif",
461
- 'lato' => "'Lato', sans-serif",
462
- 'lora' => "'Lora', serif",
463
- 'arvo' => "'Arvo', serif",
464
- 'archivo-black' => "'Archivo Black', sans-serif",
465
- 'vollkorn' => "'Vollkorn', serif",
466
- 'ultra' => "'Ultra', serif",
467
- 'arimo' => "'Arimo', serif",
468
- 'tinos' => "'Tinos', serif"
469
- );
470
-
471
- if ( isset($fonts[$val]) ) {
472
- $font = $fonts[$val];
473
- } else {
474
- $font = "Arial,'Helvetica Neue',Helvetica,sans-serif"; // fallback
475
- // scan Google Fonts
476
- $gfonts = weaverx_getopt_array('fonts_added');
477
- if ( !empty($gfonts) ) {
478
- foreach ($gfonts as $gfont) {
479
- $slug = sanitize_title($gfont['name']);
480
- if ( $slug == $val ) {
481
- $font = str_replace('font-family:','',$gfont['family']);//'Papyrus';
482
- break;
483
- }
484
- }
485
- }
486
- }
487
- $put .= ".mceContentBody,body,tr,td {font-family:" . $font . ";}\n";
488
-
489
- }
490
-
491
- /* need to handle bg color of content area - need to do the cascade yourself */
492
-
493
- if ( ($val = weaverx_getopt_default('editor_bgcolor','transparent')) && strcasecmp($val,'transparent') != 0) { /* alt bg color */
494
- $put .= ".mceContentBody,body{background:" . $val . ";padding:10px;}\n";
495
- } else if ( ($val = weaverx_getopt_default('content_bgcolor','transparent')) && strcasecmp($val,'transparent') != 0) { /* #content */
496
- $put .= ".mceContentBody,body{background:" . $val . ";padding:10px;}\n";
497
- } else if ( ($val = weaverx_getopt_default('container_bgcolor','transparent') ) && strcasecmp($val,'transparent') != 0) { /* #container */
498
- $put .= ".mceContentBody,body{background:" . $val . ";padding:10px;}\n";
499
- } else if (($val = weaverx_getopt_default('wrapper_bgcolor','transparent')) && strcasecmp($val,'transparent') != 0) { /* #wrapper */
500
- $put .= ".mceContentBody,body{background:" . $val . ";padding:10px;}\n";
501
- } else if (($val = weaverx_getopt_default('body_bgcolor','transparent')) && strcasecmp($val,'transparent') != 0) { /* Outside BG */
502
- $put .= ".mceContentBody,body{background:" . $val . ";padding:10px;}\n";
503
- } else if (($name = weaverx_getopt('themename')) && strpos($name,'Transparent Dark') !== false) { // fix in V3.0.5
504
- $put .= ".mceContentBody,body{background:#222;}\n";
505
- } else if (($name = weaverx_getopt('themename')) && strpos($name,'Transparent Light') !== false) {
506
- $put .= ".mceContentBody,body{background:#ccc;}\n";
507
- }
508
-
509
- if (($val = weaverx_getopt('content_color')) ) { // text color
510
- $put .= ".mceContentBody,body, tr, td {color:" . $val . ";}\n";
511
- } elseif (($val = weaverx_getopt('container_color')) ) { // text color
512
- $put .= ".mceContentBody,body, tr, td {color:" . $val . ";}\n";
513
- } elseif (($val = weaverx_getopt('wrapper_color')) ) { // text color
514
- $put .= ".mceContentBody,body, tr, td {color:" . $val . ";}\n";
515
- }
516
-
517
- if (($val = weaverx_getopt('input_bgcolor')) ) { // input area
518
- $put .= "input, textarea, ins, pre{background:" . $val . ";}\n";
519
- }
520
-
521
- if (($val = weaverx_getopt('input_color')) ) {
522
- $put .= "input, textarea, ins, del, pre{color:" . $val . ";}\n";
523
- }
524
-
525
- if (($val = weaverx_getopt('contentlink_color')) ) { // link
526
- $put .= "a {color:" . $val . ";}\n";
527
- }
528
-
529
- if (($val = weaverx_getopt('contentlink_hover_color')) ) {
530
- $put .= "a:hover {color:" . $val . ";}\n";
531
- }
532
-
533
- /* weaverx_tables */
534
- $table = weaverx_getopt('weaverx_tables');
535
-
536
- if ($table == 'wide') { // make backward compatible with 1.4 and before when Twenty Ten was default
537
- $put .= ".mceContentBody table {border: 1px solid #e7e7e7 !important;margin: 0 -1px 24px 0;text-align: left;width: 100%%;}
538
- tr th, thead th {color: #888;font-size: 12px;font-weight: bold;line-height: 18px;padding: 9px 24px;}
539
- .mceContentBody tr td {border-style:none !important; border-top: 1px solid #e7e7e7 !important; padding: 6px 24px;}
540
- tr.odd td {background: rgba(0,0,0,0.1);}\n";
541
- } elseif ($table == 'bold') {
542
- $put .= ".mceContentBody table {border: 2px solid #888 !important;}
543
- tr th, thead th {font-weight: bold;}
544
- .mceContentBody tr td {border: 1px solid #888 !important;}\n";
545
- } elseif ($table == 'noborders') {
546
- $put .= ".mceContentBody table {border-style:none !important;}
547
- .mceContentBody tr th, .mceContentBody thead th {font-weight: bold;border-bottom: 1px solid #888 !important;background-color:transparent;}
548
- .mceContentBody tr td {border-style:none !important;}\n";
549
- } elseif ($table == 'fullwidth') {
550
- $put .= "table {width:100%%;}
551
- tr th, thead th {font-weight:bold;}\n";
552
- } elseif ($table == 'plain') {
553
- $put .= ".mceContentBody table {border: 1px solid #888 !important;text-align:left;margin: 0 0 0 0;width:auto;}
554
- tr th, thead th {color: inherit;background:none;font-weight:normal;line-height:normal;padding:4px;}
555
- .mceContentBody tr td {border: 1px solid #888 !important; padding:4px;}\n";
556
- }
557
-
558
- if (($val = weaverx_getopt('contentlist_bullet')) ) { // list bullet
559
- if ($val != '' && $val != 'disc') {
560
- if ($val != 'custom') {
561
- $put .= "ul {list-style-type:{$val};}\n";
562
- }
563
- }
564
- }
565
-
566
- // images
567
- if (($val = weaverx_getopt('caption_color')) ) { // image caption, border color, width
568
- $put .= ".wp-caption p.wp-caption-text,.wp-caption-dd {color:{$val};}\n";
569
- }
570
-
571
- if (($val = weaverx_getopt('media_lib_border_color')) ) {
572
- $put .= ".wp-caption, img {background:{$val};}\n";
573
- }
574
- if (($val = weaverx_getopt('media_lib_border_int')) ) {
575
- $caplr = $val - 5;
576
- if ($caplr < 0)
577
- $caplr = 0;
578
- $put .= "img {padding:{$val}px;}\n";
579
- $put .= sprintf(".wp-caption{padding: %dpx %dpx %dpx %dpx;}\n", $val, $caplr, $val, $caplr);
580
- }
581
-
582
- // <hr>
583
-
584
- if (($color = weaverx_getopt('hr_color')) && $color != 'inherit') {
585
- $put .= "hr{background-color:{$color};}\n";
586
- }
587
- if ( ($css = weaverx_getopt('hr_color_css')) ) {
588
- $put .= "hr{$css}\n";
589
- }
590
-
591
- // LINKS - link_color, link_strong, link_em, link_u, link_u_h, link_hover_color
592
-
593
- $put .= 'a{';
594
-
595
- if ( ($val = weaverx_getopt('link_color')) )
596
- $put .= "color:{$val};";
597
-
598
- $val = weaverx_getopt('link_strong');
599
- if ($val == 'on')
600
- $put .= "font-weight:bold;";
601
- else if ($val == 'off')
602
- $put .= "font-weight:normal;";
603
-
604
- $val = weaverx_getopt('link_em');
605
- if ($val == 'on')
606
- $put .= "font-style:italic;";
607
- else if ($val == 'off')
608
- $put .= "font-style:normal;";
609
-
610
- if ( ($val = weaverx_getopt('link_u')) )
611
- $put .= "text-decoration:underline;";
612
-
613
- $put .= '}a:hover{';
614
-
615
- if ( ($val = weaverx_getopt('link_hover_color')) )
616
- $put .= "color:{$val};";
617
- if ( ($val = weaverx_getopt('link_u_h')) )
618
- $put .= "text-decoration:underline;";
619
- $put .= "}\n";
620
-
621
- fwrite($handle, $put);
622
- return;
623
- }
624
-
625
- // and filter to use the generated file...
626
-
627
- add_filter( 'weaverx_mce_css', 'weaverx_ts_mce_css');
628
-
629
- function weaverx_ts_mce_css( $default_style ) {
630
- // build mce edit css path if we've generated the editor css
631
- $updir = wp_upload_dir();
632
- // make relative for https: - doesn't work right...
633
- // return parse_url(trailingslashit($updir['baseurl']) . 'weaverx-subthemes/style-weaverxt.css',PHP_URL_PATH);
634
-
635
- $dir = trailingslashit($updir['basedir']) . 'weaverx-subthemes/editor-style-wvrx.css';
636
-
637
- $path = trailingslashit($updir['baseurl']) . 'weaverx-subthemes/editor-style-wvrx.css';
638
-
639
- if (!@file_exists( $dir ))
640
- return $default_style;
641
-
642
- if (is_ssl()) $path = str_replace('http:','https:',$path);
643
- return $default_style . ',' . $path;
644
- }
645
  ?>
29
  echo $msg;
30
  }
31
 
32
+
33
+
34
  add_action('weaverx_theme_support_addon','wvrx_ts_theme_support_addon');
35
  function wvrx_ts_theme_support_addon() {
36
 
164
  <?php
165
  }
166
 
167
+
168
+
169
+
170
  add_action('weaverx_more_help', 'weaverx_ts_more_help');
171
  function weaverx_ts_more_help() {
172
  ?>
173
+ <div style="clear:both;"></div>
174
  <hr />
175
  <script>jQuery(document).ready(function(){jQuery('#wvrx-sysinfo').click(function(){jQuery('#wvrx-sysinfo').copyme();});
176
  jQuery('#btn-sysinfo').click(function(){jQuery('#wvrx-sysinfo').copyme();}); });</script>
199
  echo "<!-- Weaver Xtreme Theme Support " . WVRX_TS_VERSION . " --> ";
200
  }
201
 
202
+
203
+
204
+
205
+
206
  function weaverx_ts_get_sysinfo() {
207
 
208
  global $wpdb;
296
  return $return;
297
  }
298
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  ?>
includes/wvrx-ts-widgets.php CHANGED
@@ -158,7 +158,7 @@ class WeaverX_Widget_Login extends WP_Widget {
158
 
159
  // ###################################### ELEMENTOR WIDGET ####################################
160
 
161
- if (WVRX_TS_PAGEBUILDERS && defined( 'ELEMENTOR_VERSION' ) ) :
162
  class Weaver_Widget_Elementor extends WP_Widget {
163
 
164
  function __construct() {
@@ -303,7 +303,7 @@ function form( $instance ) {
303
  endif;
304
 
305
  // ###################################### SITEORIGIN PAGE BUILDER WIDGET ####################################
306
- if ( WVRX_TS_PAGEBUILDERS && defined('SITEORIGIN_PANELS_VERSION' ) ) :
307
  class Weaver_Widget_SiteOrigin extends WP_Widget {
308
 
309
  function __construct() {
@@ -455,7 +455,7 @@ function wvrx_ts_load_widgets() {
455
  register_widget('WeaverX_Widget_Text');
456
  register_widget('WeaverX_Widget_PPText');
457
  register_widget('WeaverX_Widget_Login');
458
- if (WVRX_TS_PAGEBUILDERS) :
459
  if (defined( 'ELEMENTOR_VERSION' ) ) { // only provide if elementor is active
460
  register_widget('Weaver_Widget_Elementor');
461
  }
158
 
159
  // ###################################### ELEMENTOR WIDGET ####################################
160
 
161
+ if ((defined('WVRX_TS_PAGEBUILDERS') && WVRX_TS_PAGEBUILDERS) && defined( 'ELEMENTOR_VERSION' ) ) :
162
  class Weaver_Widget_Elementor extends WP_Widget {
163
 
164
  function __construct() {
303
  endif;
304
 
305
  // ###################################### SITEORIGIN PAGE BUILDER WIDGET ####################################
306
+ if ( (defined('WVRX_TS_PAGEBUILDERS') && WVRX_TS_PAGEBUILDERS) && defined('SITEORIGIN_PANELS_VERSION' ) ) :
307
  class Weaver_Widget_SiteOrigin extends WP_Widget {
308
 
309
  function __construct() {
455
  register_widget('WeaverX_Widget_Text');
456
  register_widget('WeaverX_Widget_PPText');
457
  register_widget('WeaverX_Widget_Login');
458
+ if (defined('WVRX_TS_PAGEBUILDERS') && WVRX_TS_PAGEBUILDERS) :
459
  if (defined( 'ELEMENTOR_VERSION' ) ) { // only provide if elementor is active
460
  register_widget('Weaver_Widget_Elementor');
461
  }
readme.txt CHANGED
@@ -9,14 +9,15 @@ 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.8
 
12
  Tested up to: 4.9
13
- Stable tag: 3.2.3
14
 
15
  A useful shortcode and widget collection for Weaver Xtreme
16
 
17
  == Description ==
18
 
19
- This is the main theme suppot 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.
20
 
21
  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
22
  if you switch themes.
@@ -75,16 +76,20 @@ Support for this plugin can best be found at our forum - http://forum.weaverthem
75
  See ChangeLog for changes to this version.
76
 
77
  == ChangeLog ==
78
- = 3.2.3 =
79
- * Fix: deleted some unused files
 
 
 
 
80
 
81
  = 3.2.1 =
82
- *Fix: reverted to PHP pre-5.4 compatibility
83
 
84
  = 3.2 =
85
  * New: Schema.org support - disable option
86
  * New: tabbed per page and per post option sections!
87
- * Fix: Main Options : Header : Site Title/Tagling menu link
88
 
89
  = 3.1.11 =
90
  * Added Per Post Body Class for Single Page View
@@ -114,7 +119,7 @@ See ChangeLog for changes to this version.
114
  * New: support for some new Weaver Xtreme Plus 3.1 options
115
  * Tweak: don't need plugin stylesheet any more - included in Weaver Xtreme
116
  * Tweak: no need for separate JS lib - included in Weaver Xtreme
117
- * Note: jumped to 3.1.6 to match corresponding Weaver Xtrme version
118
  * WP 4.8 compatibility update
119
 
120
 
@@ -225,7 +230,7 @@ Fix: removed duplicated tagline width option
225
  = 1.0.1 =
226
  * New - Per Page/Post Report from Add-ons menu
227
  * Fix: '\1234' values in per post style
228
- * Fix: Internal name of Per Post Style - may cause loss of prevoius setting - sorry
229
 
230
  = 1.0 =
231
  * Minor tweaks
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: weaverx-theme-support
11
  Requires at least: 4.8
12
+ Requires PHP: 5.4
13
  Tested up to: 4.9
14
+ Stable tag: 4.0
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
  See ChangeLog for changes to this version.
77
 
78
  == ChangeLog ==
79
+ = 4.0 =
80
+ * Change: Trying to make this plugin not essential. Have moved the per page/post stuff back into the theme where it belongs!
81
+ * Quite a few currently popular themes now have per page/post options, so apparently meta_boxes are no longer disapproved.
82
+
83
+ = 3.9 =
84
+ * Implemented some new options for Weaver Xtreme 4.0. See the 4.0 readme.txt file
85
 
86
  = 3.2.1 =
87
+ * Fix: reverted to PHP pre-5.4 compatibility
88
 
89
  = 3.2 =
90
  * New: Schema.org support - disable option
91
  * New: tabbed per page and per post option sections!
92
+ * Fix: Main Options : Header : Site Title/Tagline menu link
93
 
94
  = 3.1.11 =
95
  * Added Per Post Body Class for Single Page View
119
  * New: support for some new Weaver Xtreme Plus 3.1 options
120
  * Tweak: don't need plugin stylesheet any more - included in Weaver Xtreme
121
  * Tweak: no need for separate JS lib - included in Weaver Xtreme
122
+ * Note: jumped to 3.1.6 to match corresponding Weaver Xtreme version
123
  * WP 4.8 compatibility update
124
 
125
 
230
  = 1.0.1 =
231
  * New - Per Page/Post Report from Add-ons menu
232
  * Fix: '\1234' values in per post style
233
+ * Fix: Internal name of Per Post Style - may cause loss of previous setting - sorry
234
 
235
  = 1.0 =
236
  * Minor tweaks
weaverx-ts.php CHANGED
@@ -5,7 +5,7 @@ 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: 3.2.3
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
@@ -43,9 +43,9 @@ if ( function_exists( 'weavercore_ts_installed' ) ) {
43
 
44
  if ( strpos( $theme, '/weaver-xtreme') !== false ) { // only load if Weaver Xtreme is the theme
45
 
46
- define ('WVRX_TS_VERSION','3.2.3');
47
  define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
48
- define ('WVRX_TS_PAGEBUILDERS', false); // 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');
@@ -76,6 +76,7 @@ function wvrx_ts_enqueue_scripts() { // action definition
76
 
77
  add_action('wp_enqueue_scripts', 'wvrx_ts_enqueue_scripts' );
78
 
 
79
 
80
  require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-runtime-lib.php'); // NOW - load the basic library
81
  require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-widgets.php'); // widgets runtime library
@@ -84,76 +85,13 @@ require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-shortcodes.php'); // load
84
  // load traditional Weaver Xtreme Options
85
 
86
  function weaver_xtreme_load_admin_action() {
87
- require_once(dirname( __FILE__ ) . '/admin/add-weaverx-sapi-options.php'); // NOW - load the traditional opions admin
88
 
89
  }
90
 
91
  add_action('weaver_xtreme_load_admin','weaver_xtreme_load_admin_action');
92
 
93
 
94
- //if (!defined('WEAVER_XPLUS_VERSION') || version_compare( WEAVER_XPLUS_VERSION, '2.90', '>=') ) {
95
-
96
-
97
- add_action('admin_menu', 'wvrx_ts_add_page_fields',11); // allow X-Plus to override us
98
-
99
- function wvrx_ts_add_page_fields() {
100
- $per_post_label = defined('WEAVER_XPLUS_VERSION') ? __(' (with Weaver Xtreme Plus Options)','weaverx-theme-support') : '';
101
- add_meta_box('page-box', __('Weaver Xtreme Options For This Page','weaverx-theme-support') . $per_post_label ,
102
- 'wvrx_ts_page_extras_load', 'page', 'normal', 'high');
103
- add_meta_box('post-box', __('Weaver Xtreme Options For This Post' . $per_post_label,
104
- 'weaverx-theme-support'), 'wvrx_ts_post_extras_load', 'post', 'normal', 'high');
105
- global $post;
106
- $func_opt = WEAVER_GET_OPTION;
107
- $opts = $func_opt( apply_filters('weaverx_options',WEAVER_SETTINGS_NAME) , array()); // need to fetch Weaver Xtreme options
108
-
109
- $i = 1;
110
- $args=array( 'public' => true, '_builtin' => false );
111
- $post_types = get_post_types($args,'names','and');
112
- foreach ($post_types as $post_type ) {
113
- add_meta_box('post-box' . $i, __('Weaver Xtreme Options For This Post Type','weaverx-theme-support') . $per_post_label,
114
- 'wvrx_ts_post_extras_pt', $post_type, 'normal', 'high');
115
- $i++;
116
- }
117
-
118
- require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-admin-page-posts.php'); // per page-posts admin - needs to be here
119
-
120
- }
121
-
122
- function wvrx_ts_page_extras_load() {
123
- wvrx_ts_load_pp_scripts();
124
- wvrx_ts_page_extras();
125
- }
126
-
127
- function wvrx_ts_post_extras_load() {
128
- wvrx_ts_load_pp_scripts();
129
- wvrx_ts_post_extras();
130
- }
131
-
132
- function wvrx_ts_post_extras_pt() {
133
- // special handling for non-Weaver Custom Post Types
134
- $func_opt = WEAVER_GET_OPTION;
135
- $opts = $func_opt( apply_filters('weaverx_options',WEAVER_SETTINGS_NAME) , array());
136
- if ((isset($opts['_show_per_post_all']) && $opts['_show_per_post_all']) || function_exists('atw_slider_plugins_loaded') ) {
137
- wvrx_ts_load_pp_scripts();
138
- wvrx_ts_post_extras();
139
- } else {
140
- echo '<p>' .
141
- __('You can enable Weaver Xtreme Per Post Options for Custom Post Types on the Weaver Xtreme:Advanced Options:Admin Options tab.','weaverx-theme-support' /*adm*/) .
142
- '</p>';
143
- }
144
- }
145
-
146
- function wvrx_ts_load_pp_scripts() {
147
- // I know, this is non-standard - does not use enqueue style/script, but it is necessary to avoid conflicts with Weaver themes.
148
- $p_url = plugins_url('/admin/assets/yetii/', __FILE__);
149
- $vers = WVRX_TS_VERSION;
150
- $min = WVRX_TS_MINIFY;
151
- echo "<link rel='stylesheet' id='wvrx-ts-style' href='{$p_url}yetii-weaver{$min}.css?ver={$vers}' type='text/css' media='all' />\n";
152
- echo "<script type='text/javascript' src='{$p_url}yetii{$min}.js?ver={$vers}'></script>\n";
153
-
154
- }
155
-
156
- //} // x-plus installed - as of V3, this is no longer needed
157
 
158
  // ======================================== subthemes ========================================
159
  add_action('weaverx_child_show_extrathemes','wvrx_ts_child_show_extrathemes_action');
@@ -208,7 +146,7 @@ function wvrx_ts_child_saverestore_action() {
208
  // --------------------------------------
209
  function wvrx_ts_per_page_report() {
210
  echo '<div style="border:1px solid black; padding:1em;background:#F8FFCC;width:70%;margin:1em auto 1em auto;">';
211
- echo "<h2>" . __('Show Pages and Posts with Per Page / Per Post Settings','weaverx-axtreme') . "</h2>\n";
212
  echo "<h3>" . __('Posts','weaverx-axtreme') . "</h3>\n";
213
  wvrx_ts_scan_section('post');
214
  echo "<h3>" . __('Pages','weaverx-axtreme') . "</h3>\n";
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
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
43
 
44
  if ( strpos( $theme, '/weaver-xtreme') !== false ) { // only load if Weaver Xtreme is the theme
45
 
46
+ define ('WVRX_TS_VERSION','3.9');
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');
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
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');
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";