Weaver Xtreme Theme Support - Version 2.1.2

Version Description

- * Change: The Per Page options for the RAW page template now show only those options related to the RAW template.

Download this release

Release Info

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

Code changes from version 2.1.1 to 2.1.2

includes/wvrx-ts-admin-page-posts.php CHANGED
@@ -236,9 +236,16 @@ the <em></em>&mdash; Select &mdash;</em> default value.','weaverx-theme-support'
236
  weaverx_html_br();
237
  _e('Please click the (?) for more information about all the Weaver Xtreme Page Templates.','weaverx-theme-support' /*adm*/);
238
  weaverx_html_br();
 
 
 
 
239
  echo '<strong>' . __('Per Page Options','weaverx-theme-support' /*adm*/) . '</strong>';
240
  weaverx_help_link('help.html#optsperpage', __('Help for Per Page Options','weaverx-theme-support' /*adm*/));
241
  weaverx_html_br();
 
 
 
242
  _e('These settings let you hide various elements on a per page basis.','weaverx-theme-support' /*adm*/);
243
  weaverx_html_br();
244
 
@@ -255,6 +262,7 @@ the <em></em>&mdash; Select &mdash;</em> default value.','weaverx-theme-support'
255
  wvrx_ts_page_checkbox('_pp_full_browser_height',__('Force full browser height','weaverx-theme-support' /*adm*/),33,2);
256
 
257
  wvrx_ts_page_cols();
 
258
 
259
  _e('<em>Note:</em> the following options work with the default menu - not custom menus.','weaverx-theme-support' /*adm*/);
260
  weaverx_html_br();
@@ -270,6 +278,7 @@ the <em></em>&mdash; Select &mdash;</em> default value.','weaverx-theme-support'
270
  wvrx_ts_page_checkbox('_pp_raw_html',__('Allow Raw HTML and scripts. Disables auto paragraph, texturize, and other processing.','weaverx-theme-support' /*adm*/),90,1);
271
  }
272
 
 
273
  ?>
274
  <p><strong><?php _e('Sidebars &amp; Widgets','weaverx-theme-support' /*adm*/); ?></strong></p>
275
 
@@ -341,7 +350,9 @@ To add areas to the widget area lists below, you <strong>must</strong> first def
341
  <br />
342
  </p>
343
  <p>
344
- <?php _e('<strong>Settings for "Page with Posts" Template</strong>','weaverx-theme-support' /*adm*/);
 
 
345
  weaverx_help_link('help.html#PerPostTemplate',__('Help for Page with Posts Template','weaverx-theme-support' /*adm*/) );
346
 
347
  $template = !empty($post->page_template) ? $post->page_template : "Default Template";
@@ -417,6 +428,15 @@ settings for "Page with Posts" will be displayed here. Current page template:','
417
  <?php echo $template; ?>
418
  </p>
419
  <?php
 
 
 
 
 
 
 
 
 
420
  }
421
  do_action('weaverxplus_add_per_page');
422
  ?>
236
  weaverx_html_br();
237
  _e('Please click the (?) for more information about all the Weaver Xtreme Page Templates.','weaverx-theme-support' /*adm*/);
238
  weaverx_html_br();
239
+
240
+ $template = !empty($post->page_template) ? $post->page_template : "Default Template";
241
+ $raw_template = in_array($template, array('paget-raw.php'));
242
+
243
  echo '<strong>' . __('Per Page Options','weaverx-theme-support' /*adm*/) . '</strong>';
244
  weaverx_help_link('help.html#optsperpage', __('Help for Per Page Options','weaverx-theme-support' /*adm*/));
245
  weaverx_html_br();
246
+
247
+
248
+ if (!$raw_template) {
249
  _e('These settings let you hide various elements on a per page basis.','weaverx-theme-support' /*adm*/);
250
  weaverx_html_br();
251
 
262
  wvrx_ts_page_checkbox('_pp_full_browser_height',__('Force full browser height','weaverx-theme-support' /*adm*/),33,2);
263
 
264
  wvrx_ts_page_cols();
265
+ } // not raw
266
 
267
  _e('<em>Note:</em> the following options work with the default menu - not custom menus.','weaverx-theme-support' /*adm*/);
268
  weaverx_html_br();
278
  wvrx_ts_page_checkbox('_pp_raw_html',__('Allow Raw HTML and scripts. Disables auto paragraph, texturize, and other processing.','weaverx-theme-support' /*adm*/),90,1);
279
  }
280
 
281
+ if (!$raw_template) {
282
  ?>
283
  <p><strong><?php _e('Sidebars &amp; Widgets','weaverx-theme-support' /*adm*/); ?></strong></p>
284
 
350
  <br />
351
  </p>
352
  <p>
353
+ <?php
354
+
355
+ _e('<strong>Settings for "Page with Posts" Template</strong>','weaverx-theme-support' /*adm*/);
356
  weaverx_help_link('help.html#PerPostTemplate',__('Help for Page with Posts Template','weaverx-theme-support' /*adm*/) );
357
 
358
  $template = !empty($post->page_template) ? $post->page_template : "Default Template";
428
  <?php echo $template; ?>
429
  </p>
430
  <?php
431
+ }
432
+ } else { // raw page template handling
433
+ echo '<p>';
434
+ _e('<strong>You are using the RAW page template.</strong><br /><ol>
435
+ <li>Check the "Allow Raw HTML" option above to prevent WP processing of your content for this page. If you leave it
436
+ unchecked, you will get the WP paragraph and texturize processing.</li>
437
+ <li>You can add custom HTML code to include in the &lt;head&gt; block by defining a Custom Field named <em>page-head-code</em>
438
+ and including that HTML code in the Value for that field.</li></ol>', 'weaverx-theme-support');
439
+ echo '<p>';
440
  }
441
  do_action('weaverxplus_add_per_page');
442
  ?>
readme.txt CHANGED
@@ -10,7 +10,7 @@ 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.1
14
 
15
  A useful shortcode and widget collection for Weaver Xtreme
16
 
@@ -75,8 +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.1 =
79
- * Fix: currenet user in login widget
80
 
81
  = 2.1 =
82
  * Update: wp_get_current_user() deprecated call
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
  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
+
81
  = 2.1.1 =
82
+ * Fix: current user in login widget
83
 
84
  = 2.1 =
85
  * Update: wp_get_current_user() deprecated call
weaverx-ts.php CHANGED
@@ -5,7 +5,7 @@ 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.1
9
  License: GPL V3
10
 
11
  Weaver Xtreme Theme Support
@@ -33,7 +33,7 @@ $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.1');
37
  define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
38
  define ('WVRX_TS_APPEARANCE_PAGE', false );
39
 
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
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