Weaver Xtreme Theme Support - Version 2.1.3

Version Description

  • New: Weaver Xtreme now requires WP 4.5 - seriously, you should not run old versions of WP!
  • Fix: show per post options for custom post types now works correctly
  • New: support for showing widget areas on browser Print operation
Download this release

Release Info

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

Code changes from version 2.1.2 to 2.1.3

admin/admin-advancedopts.php CHANGED
@@ -244,6 +244,11 @@ By default, Weaverx Xtreme Plus will use the style-weaverxt.css file. ♦',
244
  }
245
  ?>
246
 
 
 
 
 
 
247
 
248
  <br />
249
  <div class="atw-option-subheader"><span style="color:black; padding:.2em;" class="dashicons dashicons-format-image"></span><span style="color:blue;font-size:larger;">
244
  }
245
  ?>
246
 
247
+ <h3><?php _e('Include Widget Areas in Print', 'weaver-xtreme' /*adm*/);?></h3>
248
+
249
+ <label><input type="checkbox" name="<?php weaverx_sapi_main_name('_inline_style'); ?>" id="_inline_style" <?php checked(weaverx_getopt_checked( '_print_show_widgets' )); ?> />
250
+ <?php _e('Include all widget areas and full Footer content on browser Print page operation. &diams;', 'weaver-xtreme' /*adm*/);?>
251
+ </label><br /><br />
252
 
253
  <br />
254
  <div class="atw-option-subheader"><span style="color:black; padding:.2em;" class="dashicons dashicons-format-image"></span><span style="color:blue;font-size:larger;">
includes/wvrx-ts-admin-page-posts.php CHANGED
@@ -340,7 +340,7 @@ To add areas to the widget area lists below, you <strong>must</strong> first def
340
  <br />
341
  <input type="text" size="30" id='_pp_fi_link' name='_pp_fi_link'
342
  value="<?php echo esc_textarea(get_post_meta($post->ID, '_pp_fi_link', true)); ?>" />
343
- <?php _e('<em>Featured Image Link</em> - Full URL for link from FI','weaverx-theme-support' /*adm*/); ?>
344
  <br style="clear:both;" />
345
  <hr />
346
  <input type="text" size="15" id="bodyclass" name="_pp_bodyclass"
@@ -447,6 +447,7 @@ and including that HTML code in the Value for that field.</li></ol>', 'weaverx-t
447
 
448
  function wvrx_ts_post_extras_pt() {
449
  // special handling for non-Weaver Custom Post Types
 
450
  if ((isset($opts['_show_per_post_all']) && $opts['_show_per_post_all']) || function_exists('atw_slider_plugins_loaded') )
451
  wvrx_ts_post_extras();
452
  else {
@@ -559,7 +560,7 @@ To add areas to the widget area lists below, you <strong>must</strong> first def
559
  <br />
560
  <input type="text" size="30" id='_pp_fi_link' name='_pp_fi_link'
561
  value="<?php echo esc_textarea(get_post_meta($post->ID, '_pp_fi_link', true)); ?>" />
562
- <?php _e("<em>Featured Image Link</em> - Full URL for link from FI",'weaverx-theme-support' /*adm*/); ?>
563
  <br style="clear:both;" />
564
  </p><p>
565
  <strong><?php _e('Post Editor Options','weaverx-theme-support' /*adm*/); ?></strong>
340
  <br />
341
  <input type="text" size="30" id='_pp_fi_link' name='_pp_fi_link'
342
  value="<?php echo esc_textarea(get_post_meta($post->ID, '_pp_fi_link', true)); ?>" />
343
+ <?php _e('<em>Featured Image Link</em> - Full URL to override default link target from FI','weaverx-theme-support' /*adm*/); ?>
344
  <br style="clear:both;" />
345
  <hr />
346
  <input type="text" size="15" id="bodyclass" name="_pp_bodyclass"
447
 
448
  function wvrx_ts_post_extras_pt() {
449
  // special handling for non-Weaver Custom Post Types
450
+ $opts = get_option( apply_filters('weaverx_options','weaverx_settings') , array());
451
  if ((isset($opts['_show_per_post_all']) && $opts['_show_per_post_all']) || function_exists('atw_slider_plugins_loaded') )
452
  wvrx_ts_post_extras();
453
  else {
560
  <br />
561
  <input type="text" size="30" id='_pp_fi_link' name='_pp_fi_link'
562
  value="<?php echo esc_textarea(get_post_meta($post->ID, '_pp_fi_link', true)); ?>" />
563
+ <?php _e("<em>Featured Image Link</em> - Full URL to override default link target from FI",'weaverx-theme-support' /*adm*/); ?>
564
  <br style="clear:both;" />
565
  </p><p>
566
  <strong><?php _e('Post Editor Options','weaverx-theme-support' /*adm*/); ?></strong>
includes/wvrx-ts-runtime-lib.php CHANGED
@@ -31,11 +31,18 @@ function wvrx_ts_fix_short($prefix, $msg ) {
31
 
32
  add_action('weaverx_theme_support_addon','wvrx_ts_theme_support_addon');
33
  function wvrx_ts_theme_support_addon() {
 
 
 
 
 
34
  ?>
35
  <div class="a-plus">
36
- <p><strong style="font-size:110%;"><?php _e('You have Weaver Xtreme Theme Support installed.','weaverx-theme-support' /*adm*/);
 
 
37
  echo ' (V ' . WVRX_TS_VERSION . ')'; ?></strong><br />
38
- <?php _e('This section shows the shortcodes and widgets available with Weaver X Theme Support.
39
  Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" class="dashicons dashicons-editor-help"></span> button to open help entry.','weaverx-theme-support' /*adm*/); ?></p>
40
 
41
  <?php
@@ -112,16 +119,18 @@ Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" cla
112
  <form enctype="multipart/form-data" name='toggle_shortcode' action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method='post'>
113
 
114
  <?php
115
- if ( $prefix )
116
- $button = __("Remove 'wvrx_' prefix from shortcode names: [ bloginfo ], etc.", 'weaverx-theme-support');
117
- else
118
- $button = __("Add 'wvrx_' to shortcode names: [ wvrx_bloginfo ], etc.", 'weaverx-theme-support');
119
- ?>
120
- <div style="clear:both;"></div>
121
- <span class='submit'><input name="toggle_shortcode_prefix" type="submit" value="<?php echo $button; ?>" /></span>
122
- <br /><small> <?php _e("To avoid conflicts with other plugins, you can add a 'wvrx_' prefix to these shortcodes.", 'weaver-xtreme /*adm*/'); ?> </small>
123
- <?php weaverx_nonce_field('toggle_shortcode_prefix'); ?>
124
- </form>
 
 
125
  <br />
126
 
127
  <h3><?php _e('Widgets','weaverx-theme-support' /*adm*/); ?></h3>
@@ -139,7 +148,7 @@ Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" cla
139
  </li>
140
  </ul>
141
 
142
-
143
  <h3><?php _e('Per Page/Post Settings','weaverx-theme-support' /*adm*/); ?></h3>
144
  <p> <?php _e("Click the following button to produce a list of links to all pages and posts that have Per Page or Per Post settings.", 'weaver-xtreme /*adm*/'); ?></p>
145
  <div style="clear:both;"></div>
@@ -147,6 +156,7 @@ Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" cla
147
  <span class='submit'><input name="show_per_page_report" type="submit" value="<?php _e('Show Pages and Posts with Per Page/Post Settings', 'weaver-xtreme /*adm*/'); ?>" /></span>
148
  <?php weaverx_nonce_field('show_per_page_report'); ?>
149
  </form><br /><br />
 
150
  </div>
151
 
152
  <?php
31
 
32
  add_action('weaverx_theme_support_addon','wvrx_ts_theme_support_addon');
33
  function wvrx_ts_theme_support_addon() {
34
+
35
+ $theme = get_template_directory();
36
+
37
+ $is_xtreme = strpos( $theme, '/weaver-xtreme') !== false;
38
+
39
  ?>
40
  <div class="a-plus">
41
+ <p><strong style="font-size:110%;"><?php
42
+ if ($is_xtreme) _e('You have Weaver Xtreme Theme Support installed.','weaverx-theme-support' /*adm*/);
43
+ else _e('You have Weaver Xtreme (Foundation) Theme Support installed.','weaverx-theme-support' /*adm*/);
44
  echo ' (V ' . WVRX_TS_VERSION . ')'; ?></strong><br />
45
+ <?php _e('This section shows the shortcodes and widgets available with Weaver Xtreme (and Foundation) Theme Support.
46
  Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" class="dashicons dashicons-editor-help"></span> button to open help entry.','weaverx-theme-support' /*adm*/); ?></p>
47
 
48
  <?php
119
  <form enctype="multipart/form-data" name='toggle_shortcode' action="<?php echo $_SERVER["REQUEST_URI"]; ?>" method='post'>
120
 
121
  <?php
122
+ if ( $is_xtreme ) {
123
+ if ( $prefix )
124
+ $button = __("Remove 'wvrx_' prefix from shortcode names: [ bloginfo ], etc.", 'weaverx-theme-support');
125
+ else
126
+ $button = __("Add 'wvrx_' to shortcode names: [ wvrx_bloginfo ], etc.", 'weaverx-theme-support');
127
+ ?>
128
+ <div style="clear:both;"></div>
129
+ <span class='submit'><input name="toggle_shortcode_prefix" type="submit" value="<?php echo $button; ?>" /></span>
130
+ <br /><small> <?php _e("To avoid conflicts with other plugins, you can add a 'wvrx_' prefix to these shortcodes.", 'weaver-xtreme /*adm*/'); ?> </small>
131
+ <?php weaverx_nonce_field('toggle_shortcode_prefix'); ?>
132
+ </form>
133
+ <?php } ?>
134
  <br />
135
 
136
  <h3><?php _e('Widgets','weaverx-theme-support' /*adm*/); ?></h3>
148
  </li>
149
  </ul>
150
 
151
+ <?php if ( $is_xtreme ) { ?>
152
  <h3><?php _e('Per Page/Post Settings','weaverx-theme-support' /*adm*/); ?></h3>
153
  <p> <?php _e("Click the following button to produce a list of links to all pages and posts that have Per Page or Per Post settings.", 'weaver-xtreme /*adm*/'); ?></p>
154
  <div style="clear:both;"></div>
156
  <span class='submit'><input name="show_per_page_report" type="submit" value="<?php _e('Show Pages and Posts with Per Page/Post Settings', 'weaver-xtreme /*adm*/'); ?>" /></span>
157
  <?php weaverx_nonce_field('show_per_page_report'); ?>
158
  </form><br /><br />
159
+ <?php } ?>
160
  </div>
161
 
162
  <?php
readme.txt CHANGED
@@ -8,9 +8,9 @@ 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.3
12
  Tested up to: 4.5
13
- Stable tag: 2.1.2
14
 
15
  A useful shortcode and widget collection for Weaver Xtreme
16
 
@@ -75,6 +75,11 @@ 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
  = 2.1.2 -
79
  * Change: The Per Page options for the RAW page template now show only those options related to the RAW template.
80
 
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.5
12
  Tested up to: 4.5
13
+ Stable tag: 2.1.3
14
 
15
  A useful shortcode and widget collection for Weaver Xtreme
16
 
75
  See ChangeLog for changes to this version.
76
 
77
  == ChangeLog ==
78
+ = 2.1.3 =
79
+ * New: Weaver Xtreme now requires WP 4.5 - seriously, you should not run old versions of WP!
80
+ * Fix: show per post options for custom post types now works correctly
81
+ * New: support for showing widget areas on browser Print operation
82
+
83
  = 2.1.2 -
84
  * Change: The Per Page options for the RAW page template now show only those options related to the RAW template.
85
 
weaverx-ts.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
3
  Plugin Name: Weaver Xtreme Theme Support
4
  Plugin URI: http://weavertheme.com/plugins
5
- Description: Weaver X Theme Support - a package of useful shortcodes and widgets that integrates closely with the Weaver X theme. This plugin Will also allow you to switch from Weaver X to any other theme and still be able to use the shortcodes and widgets from Weaver X with minimal effort.
6
  Author: wpweaver
7
  Author URI: http://weavertheme.com/about/
8
- Version: 2.1.2
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
@@ -31,9 +31,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
31
  */
32
  $theme = get_template_directory();
33
 
34
- if ( strpos( $theme, '/weaver-xtreme') !== false ) { // only load if Weaver Xtreme is the theme
35
 
36
- define ('WVRX_TS_VERSION','2.1.2');
37
  define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
38
  define ('WVRX_TS_APPEARANCE_PAGE', false );
39
 
@@ -50,13 +50,6 @@ function wvrx_ts_enqueue_scripts() { // action definition
50
 
51
  if (function_exists('wvrx_ts_slider_header')) wvrx_ts_slider_header();
52
 
53
- //-- Weaver X PLus js lib - requires jQuery...
54
-
55
- // put the enqueue script in the tabs shortcode where it belongs
56
-
57
- //wp_enqueue_script('wvrxtsJSLib', wvrx_ts_plugins_url('/js/wvrx-ts-jslib', WVRX_TS_MINIFY . '.js'),array('jquery'),WVRX_TS_VERSION);
58
-
59
-
60
  // add plugin CSS here, too.
61
 
62
  wp_register_style('wvrx-ts-style-sheet',wvrx_ts_plugins_url('weaverx-ts-style', WVRX_TS_MINIFY.'.css'),null,WVRX_TS_VERSION,'all');
@@ -68,10 +61,12 @@ add_action('wp_enqueue_scripts', 'wvrx_ts_enqueue_scripts' );
68
  require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-runtime-lib.php'); // NOW - load the basic library
69
  require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-widgets.php'); // widgets runtime library
70
  require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-shortcodes.php'); // load the shortcode definitions
71
- require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-per-page-customizer.php');
72
 
73
  // load traditional Weaver Xtreme Options
74
 
 
 
75
  function weaver_xtreme_load_admin_action() {
76
  require_once(dirname( __FILE__ ) . '/admin/add-weaverx-sapi-options.php'); // NOW - load the traditional opions admin
77
 
@@ -108,7 +103,8 @@ function wvrx_ts_page_extras_load() {
108
  function wvrx_ts_post_extras_load() {
109
  wvrx_ts_post_extras();
110
  }
111
- }
 
112
 
113
  // ======================================== subthemes ========================================
114
  add_action('weaverx_child_show_extrathemes','wvrx_ts_child_show_extrathemes_action');
@@ -218,6 +214,8 @@ function wvrx_ts_scan_section($what) {
218
  }
219
  echo '</ul>';
220
  }
221
- } // end only load if Weaver Xtreme installed
 
 
222
 
223
  ?>
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: 2.1.3
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
31
  */
32
  $theme = get_template_directory();
33
 
34
+ if ( strpos( $theme, '/weaver-xtreme') !== false || strpos( $theme, '/weaver-foundation') !== false) { // only load if Weaver Xtreme is the theme
35
 
36
+ define ('WVRX_TS_VERSION','2.1.3');
37
  define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
38
  define ('WVRX_TS_APPEARANCE_PAGE', false );
39
 
50
 
51
  if (function_exists('wvrx_ts_slider_header')) wvrx_ts_slider_header();
52
 
 
 
 
 
 
 
 
53
  // add plugin CSS here, too.
54
 
55
  wp_register_style('wvrx-ts-style-sheet',wvrx_ts_plugins_url('weaverx-ts-style', WVRX_TS_MINIFY.'.css'),null,WVRX_TS_VERSION,'all');
61
  require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-runtime-lib.php'); // NOW - load the basic library
62
  require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-widgets.php'); // widgets runtime library
63
  require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-shortcodes.php'); // load the shortcode definitions
64
+ // future development: require_once(dirname( __FILE__ ) . '/includes/wvrx-ts-per-page-customizer.php');
65
 
66
  // load traditional Weaver Xtreme Options
67
 
68
+ if ( strpos( $theme, '/weaver-xtreme') !== false ) { // Weaver Xtreme only
69
+
70
  function weaver_xtreme_load_admin_action() {
71
  require_once(dirname( __FILE__ ) . '/admin/add-weaverx-sapi-options.php'); // NOW - load the traditional opions admin
72
 
103
  function wvrx_ts_post_extras_load() {
104
  wvrx_ts_post_extras();
105
  }
106
+
107
+ } // x-plus installed
108
 
109
  // ======================================== subthemes ========================================
110
  add_action('weaverx_child_show_extrathemes','wvrx_ts_child_show_extrathemes_action');
214
  }
215
  echo '</ul>';
216
  }
217
+
218
+ } // end of load for Weaver Xtreme only - not Weaver Foundation
219
+ } // end only load if Weaver Xtreme installed
220
 
221
  ?>