Version Description
Fix: backward compatibility so doesn't crash Weaver Xtreme 3.
Fix:
Download this release
Release Info
Developer | wpweaver |
Plugin | Weaver Xtreme Theme Support |
Version | 4.0.5 |
Comparing to | |
See all releases |
Code changes from version 4.0.3 to 4.0.5
- admin/admin-lib-ts-2.php +15 -1
- admin/admin-lib-ts.php +7 -4
- admin/admin-mainopts.php +1 -1
- includes/wvrx-ts-shortcodes.php +2 -1
- readme.txt +14 -4
- weaverx-ts.php +1 -1
admin/admin-lib-ts-2.php
CHANGED
@@ -140,7 +140,10 @@ function weaverx_form_select_id( $value, $show_row = true ) {
|
|
140 |
|
141 |
function weaverx_form_select_alt_theme($value) {
|
142 |
|
143 |
-
|
|
|
|
|
|
|
144 |
$list = array();
|
145 |
$list[] = array( 'val' => '', 'desc' => '');
|
146 |
foreach ( $themes as $subtheme ) {
|
@@ -858,6 +861,17 @@ function weaverx_form_align( $value ) {
|
|
858 |
weaverx_form_select_id($value);
|
859 |
}
|
860 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
861 |
function weaverx_form_fixedtop( $value ) {
|
862 |
$value['value'] = array(
|
863 |
array('val' => 'none', 'desc' => __('Standard Position : Not Fixed', 'weaver-xtreme' /*adm*/) ),
|
140 |
|
141 |
function weaverx_form_select_alt_theme($value) {
|
142 |
|
143 |
+
if ( function_exists( 'weaverx_pp_get_alt_themes' ) ) // backward compatibility for Weaver Xtreme 3
|
144 |
+
$themes = weaverx_pp_get_alt_themes();
|
145 |
+
else
|
146 |
+
$themes = array();
|
147 |
$list = array();
|
148 |
$list[] = array( 'val' => '', 'desc' => '');
|
149 |
foreach ( $themes as $subtheme ) {
|
861 |
weaverx_form_select_id($value);
|
862 |
}
|
863 |
|
864 |
+
function weaverx_form_align_standard( $value ) {
|
865 |
+
$value['value'] = array(
|
866 |
+
array('val' => 'float-left', 'desc' => __('Align Left', 'weaver-xtreme' /*adm*/) ),
|
867 |
+
array('val' => 'align-center', 'desc' => __('Center', 'weaver-xtreme' /*adm*/) ),
|
868 |
+
array('val' => 'float-right', 'desc' => __('Align Right', 'weaver-xtreme' /*adm*/) ),
|
869 |
+
array('val' => 'alignnone', 'desc' => __('No Alignment', 'weaver-xtreme' /*adm*/) ),
|
870 |
+
);
|
871 |
+
|
872 |
+
weaverx_form_select_id($value);
|
873 |
+
}
|
874 |
+
|
875 |
function weaverx_form_fixedtop( $value ) {
|
876 |
$value['value'] = array(
|
877 |
array('val' => 'none', 'desc' => __('Standard Position : Not Fixed', 'weaver-xtreme' /*adm*/) ),
|
admin/admin-lib-ts.php
CHANGED
@@ -108,8 +108,8 @@ function weaverx_activate_subtheme($theme) {
|
|
108 |
|
109 |
if (empty($contents)) return false;
|
110 |
|
111 |
-
if ( substr($contents,0,10) != 'WXT-V01.00' ) {
|
112 |
-
if ($ext == '.wxb' && substr($contents,0,10) != 'WXB-V01.00' )
|
113 |
return false;
|
114 |
}
|
115 |
|
@@ -166,6 +166,9 @@ function weaverx_form_show_options($weaverx_olist, $begin_table = true, $end_tab
|
|
166 |
case 'align':
|
167 |
weaverx_form_align($value);
|
168 |
break;
|
|
|
|
|
|
|
169 |
case 'break':
|
170 |
weaverx_form_break($value);
|
171 |
break;
|
@@ -683,9 +686,9 @@ The file you picked was not a valid Weaver Xtreme theme file.', 'weaver-xtreme'
|
|
683 |
function weaverx_ex_set_current_to_serialized_values($contents) {
|
684 |
global $weaverx_opts_cache; // need to mess with the cache
|
685 |
|
686 |
-
if (substr($contents,0,10) == 'WXT-V01.00')
|
687 |
$type = 'theme';
|
688 |
-
else if (substr($contents,0,10) == 'WXB-V01.00')
|
689 |
$type = 'backup';
|
690 |
else {
|
691 |
$val = substr($contents,0,10);
|
108 |
|
109 |
if (empty($contents)) return false;
|
110 |
|
111 |
+
if ( substr($contents,0,10) != 'WXT-V01.00' && substr($contents,0,10) != 'WVA-V01.00') {
|
112 |
+
if ($ext == '.wxb' && substr($contents,0,10) != 'WXB-V01.00' && substr($contents,0,10) != 'WVB-V01.00')
|
113 |
return false;
|
114 |
}
|
115 |
|
166 |
case 'align':
|
167 |
weaverx_form_align($value);
|
168 |
break;
|
169 |
+
case 'align_standard':
|
170 |
+
weaverx_form_align_standard($value);
|
171 |
+
break;
|
172 |
case 'break':
|
173 |
weaverx_form_break($value);
|
174 |
break;
|
686 |
function weaverx_ex_set_current_to_serialized_values($contents) {
|
687 |
global $weaverx_opts_cache; // need to mess with the cache
|
688 |
|
689 |
+
if (substr($contents,0,10) == 'WXT-V01.00' || substr($contents,0,10) != 'WVA-V01.00')
|
690 |
$type = 'theme';
|
691 |
+
else if (substr($contents,0,10) == 'WXB-V01.00' || substr($contents,0,10) != 'WVB-V01.00')
|
692 |
$type = 'backup';
|
693 |
else {
|
694 |
$val = substr($contents,0,10);
|
admin/admin-mainopts.php
CHANGED
@@ -440,7 +440,7 @@ array( 'name' => __('Header Other options', 'weaver-xtreme'), 'type' => 'break')
|
|
440 |
|
441 |
array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Align Header Image', 'weaver-xtreme' /*adm*/) . '</small>',
|
442 |
'id' => 'header_image_align', 'type' => 'align',
|
443 |
-
'info' => __('How to align header image
|
444 |
|
445 |
array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Header Image Front Page', 'weaver-xtreme' /*adm*/) . '</small>',
|
446 |
'id' => 'hide_header_image_front', 'type' => 'checkbox',
|
440 |
|
441 |
array('name' => '<span class="i-left dashicons dashicons-editor-alignleft"></span><small>' . __('Align Header Image', 'weaver-xtreme' /*adm*/) . '</small>',
|
442 |
'id' => 'header_image_align', 'type' => 'align',
|
443 |
+
'info' => __('How to align header image. Wide and Full do not apply to BG header image.', 'weaver-xtreme' /*adm*/)),
|
444 |
|
445 |
array('name' => '<span class="i-left dashicons dashicons-visibility"></span><small>' . __('Hide Header Image Front Page', 'weaver-xtreme' /*adm*/) . '</small>',
|
446 |
'id' => 'hide_header_image_front', 'type' => 'checkbox',
|
includes/wvrx-ts-shortcodes.php
CHANGED
@@ -22,11 +22,12 @@ function wvrx_ts_setup_shortcodes() {
|
|
22 |
'tab' => 'wvrx_ts_sc_tab', // [tab_group], [tab]
|
23 |
'vimeo' => 'wvrx_ts_sc_vimeo', // [vimeo]
|
24 |
'youtube' => 'wvrx_ts_sc_yt', // [youtube]
|
|
|
25 |
'weaverx_info' => 'wvrx_ts_weaverx_sc_info' // [weaverx_info]
|
26 |
);
|
27 |
|
28 |
$prefix = get_option('wvrx_toggle_shortcode_prefix');
|
29 |
-
|
30 |
foreach ($codes as $code => $func ) {
|
31 |
remove_shortcode($prefix . $code); // use our shortcode instead of someone elses.
|
32 |
add_shortcode($prefix . $code, $func);
|
22 |
'tab' => 'wvrx_ts_sc_tab', // [tab_group], [tab]
|
23 |
'vimeo' => 'wvrx_ts_sc_vimeo', // [vimeo]
|
24 |
'youtube' => 'wvrx_ts_sc_yt', // [youtube]
|
25 |
+
'ytube' => 'wvrx_ts_sc_yt', // [youtube]
|
26 |
'weaverx_info' => 'wvrx_ts_weaverx_sc_info' // [weaverx_info]
|
27 |
);
|
28 |
|
29 |
$prefix = get_option('wvrx_toggle_shortcode_prefix');
|
30 |
+
|
31 |
foreach ($codes as $code => $func ) {
|
32 |
remove_shortcode($prefix . $code); // use our shortcode instead of someone elses.
|
33 |
add_shortcode($prefix . $code, $func);
|
readme.txt
CHANGED
@@ -8,10 +8,10 @@ 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.
|
12 |
Requires PHP: 5.4
|
13 |
-
Tested up to:
|
14 |
-
Stable tag: 4.0.
|
15 |
|
16 |
A useful shortcode and widget collection for Weaver Xtreme
|
17 |
|
@@ -76,11 +76,21 @@ Support for this plugin can best be found at our forum - http://forum.weaverthem
|
|
76 |
See ChangeLog for changes to this version.
|
77 |
|
78 |
== ChangeLog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= 4.0.3 =
|
80 |
* New: support for direct file access for alternative editor style file creation
|
81 |
|
82 |
= 4.0.2 =
|
83 |
-
* Fix/Change - Removed (for now) the Boxed easy-width layout option.
|
84 |
|
85 |
= 4.0 =
|
86 |
* Change: Trying to make this plugin not essential. Have moved the per page/post stuff back into the theme where it belongs!
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Text Domain: weaverx-theme-support
|
11 |
+
Requires at least: 4.9
|
12 |
Requires PHP: 5.4
|
13 |
+
Tested up to: 5.2
|
14 |
+
Stable tag: 4.0.7
|
15 |
|
16 |
A useful shortcode and widget collection for Weaver Xtreme
|
17 |
|
76 |
See ChangeLog for changes to this version.
|
77 |
|
78 |
== ChangeLog ==
|
79 |
+
= 4.0.7 =
|
80 |
+
* Update: WP Version compatibility
|
81 |
+
|
82 |
+
= 4.0.6 =
|
83 |
+
* Tweak: settings file version compatibility
|
84 |
+
|
85 |
+
= 4.0.5 =
|
86 |
+
* Fix: backward compatibility so doesn't crash Weaver Xtreme 3.
|
87 |
+
|
88 |
+
* Fix:
|
89 |
= 4.0.3 =
|
90 |
* New: support for direct file access for alternative editor style file creation
|
91 |
|
92 |
= 4.0.2 =
|
93 |
+
* Fix/Change: - Removed (for now) the Boxed easy-width layout option.
|
94 |
|
95 |
= 4.0 =
|
96 |
* Change: Trying to make this plugin not essential. Have moved the per page/post stuff back into the theme where it belongs!
|
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: 4.0.
|
9 |
License: GPL V3
|
10 |
|
11 |
Weaver Xtreme Theme Support
|
5 |
Description: Weaver Xtreme Theme Support - a package of useful shortcodes and widgets that integrates closely with the Weaver Xtreme and Weaver Foundation themes.
|
6 |
Author: wpweaver
|
7 |
Author URI: http://weavertheme.com/about/
|
8 |
+
Version: 4.0.5
|
9 |
License: GPL V3
|
10 |
|
11 |
Weaver Xtreme Theme Support
|