Version Description
New: Support for WordPress Custom Header Video Tweak: show version in output Tweak: updated per page / per post option scan Fix: removed duplicated tagline width option
Download this release
Release Info
Developer | wpweaver |
Plugin | Weaver Xtreme Theme Support |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.1
- admin/admin-mainopts.php +30 -5
- includes/wvrx-ts-admin-page-posts.php +125 -5
- includes/wvrx-ts-runtime-lib.php +6 -1
- includes/wvrx-ts-shortcodes.php +2 -1
- includes/wvrx-ts-widgets.php +4 -3
- readme.txt +8 -1
- weaverx-ts.php +11 -5
admin/admin-mainopts.php
CHANGED
@@ -324,7 +324,7 @@ $extend = array (
|
|
324 |
'header' => array( __('Header Area Extend BG Color', 'weaver-xtreme'), __('Extend Header Area BG Color to full width.','weaver-xtreme' )),
|
325 |
'm_primary' => array( __('Primary Menu Extend BG', 'weaver-xtreme'), __('Extend Primary Menu BG Color to full width.','weaver-xtreme' )),
|
326 |
'm_secondary' => array( __('Secondary Menu Extend BG', 'weaver-xtreme'), __('Extend Secondary Menu BG Color to full width.','weaver-xtreme' )),
|
327 |
-
'm_extra' => array( __('
|
328 |
'container' => array( __('Container Extend BG', 'weaver-xtreme'), __('Extend Container Area BG Color to full width.','weaver-xtreme' )),
|
329 |
'content' => array( __('Content Extend BG', 'weaver-xtreme'), __('Extend Content Area BG Color to full width.','weaver-xtreme' )),
|
330 |
'footer' => array( __('Footer Extend BG', 'weaver-xtreme'), __('Extend Footer Area BG Color to full width.','weaver-xtreme' )),
|
@@ -441,6 +441,34 @@ array( 'name' => __('Header Other options', 'weaver-xtreme'), 'type' => 'break')
|
|
441 |
|
442 |
|
443 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
array('name' => __('Custom Logo', 'weaver-xtreme' /*adm*/), 'id' => '-menu', 'type' =>'subheader',
|
445 |
'info' => __('The native WP Custom Logo, set on the Site Identity Customizer menu.', 'weaver-xtreme' /*adm*/)),
|
446 |
|
@@ -505,10 +533,6 @@ array( 'name' => __('Header Other options', 'weaver-xtreme'), 'type' => 'break')
|
|
505 |
|
506 |
|
507 |
|
508 |
-
array('name' => '<span class="i-left" style="font-size:150%;">↔</span><small>' . __('Tagline Max Width', 'weaver-xtreme' /*adm*/) . '</small>',
|
509 |
-
'id' => 'tagline_max_w', 'type' => 'val_percent',
|
510 |
-
'info' => __("Maximum width of Tagline in header area (Default: 90%)", 'weaver-xtreme' /*adm*/)),
|
511 |
-
|
512 |
array('name' => '<span class="i-left dashicons dashicons-editor-code"></span><small>' . __('Weaver Site Logo/HTML', 'weaver-xtreme' /*adm*/) . '</small>',
|
513 |
'id' => '_site_logo', 'type' => '+textarea',
|
514 |
'info' => __('HTML for Site Title area. (example: <img src="url" style="position:absolute;top:20px;left:20px;" /> + Custom CSS: #site-logo{min-height:123px;} (This is not the WP Custom Logo!) (★Plus) (♦)', 'weaver-xtreme' /*adm*/)),
|
@@ -576,6 +600,7 @@ array( 'name' => __('Header Other options', 'weaver-xtreme'), 'type' => 'break')
|
|
576 |
<br />
|
577 |
<div class="options-intro-menu"> <a href="#header-area"><?php _e('Header Area', 'weaver-xtreme' /*adm*/); ?></a> |
|
578 |
<a href="#header-image"><?php _e('Header Image', 'weaver-xtreme' /*adm*/); ?></a> |
|
|
|
579 |
<a href="#site-titletagline"><?php _e('Site Title/Tagline', 'weaver-xtreme' /*adm*/); ?></a> |
|
580 |
<a href="#header-widget-area"><?php _e('Header Widget Area', 'weaver-xtreme' /*adm*/); ?></a>|
|
581 |
<a href="#header-html"><?php _e('Header HTML', 'weaver-xtreme' /*adm*/); ?></a>
|
324 |
'header' => array( __('Header Area Extend BG Color', 'weaver-xtreme'), __('Extend Header Area BG Color to full width.','weaver-xtreme' )),
|
325 |
'm_primary' => array( __('Primary Menu Extend BG', 'weaver-xtreme'), __('Extend Primary Menu BG Color to full width.','weaver-xtreme' )),
|
326 |
'm_secondary' => array( __('Secondary Menu Extend BG', 'weaver-xtreme'), __('Extend Secondary Menu BG Color to full width.','weaver-xtreme' )),
|
327 |
+
'm_extra' => array( __('Extra Menu Extend BG', 'weaver-xtreme'), __('Extend Extra Menu BG Color to full width.','weaver-xtreme' )),
|
328 |
'container' => array( __('Container Extend BG', 'weaver-xtreme'), __('Extend Container Area BG Color to full width.','weaver-xtreme' )),
|
329 |
'content' => array( __('Content Extend BG', 'weaver-xtreme'), __('Extend Content Area BG Color to full width.','weaver-xtreme' )),
|
330 |
'footer' => array( __('Footer Extend BG', 'weaver-xtreme'), __('Extend Footer Area BG Color to full width.','weaver-xtreme' )),
|
441 |
|
442 |
|
443 |
|
444 |
+
array('name' => __('Header Video', 'weaver-xtreme' /*adm*/), 'id' => '-format-video', 'type' =>'subheader',
|
445 |
+
'info' => __('Settings related to Header Video (Set on Appearance→Header or on the Customize→Images→Header Media menu.)', 'weaver-xtreme' /*adm*/)),
|
446 |
+
|
447 |
+
array('name' => __('Header Video Rendering', 'weaver-xtreme' /*adm*/) . '</small>',
|
448 |
+
'id' => 'header_video_render', 'type' => 'select_id', //code
|
449 |
+
'info' => __('How to render Header Video: as image substitute in header or as full browser background cover image will parallax effect. <em style="color:red;">Note that the Header Image options above do not apply to the Header Video media.</em>', 'weaver-xtreme' /*adm*/),
|
450 |
+
'value' => array(
|
451 |
+
array('val' => 'has-header-video', 'desc' => __('As video in header only', 'weaver-xtreme' /*adm*/)),
|
452 |
+
array('val' => 'has-header-video-cover', 'desc' => __('As full cover Parallax BG Video', 'weaver-xtreme' /*adm*/)),
|
453 |
+
array('val' => 'has-header-video-none', 'desc' => __('Disable Header Video', 'weaver-xtreme' /*adm*/))
|
454 |
+
)),
|
455 |
+
|
456 |
+
array('name' => __('Header Video Aspect Ratio', 'weaver-xtreme' /*adm*/) . '</small>',
|
457 |
+
'id' => 'header_video_aspect', 'type' => 'select_id', //code
|
458 |
+
'info' => __('It is critical to select aspect ratio of your video. If you see letterboxing black bars, you have the wrong aspect ratio selected.' , 'weaver-xtreme' /*adm*/),
|
459 |
+
'value' => array(
|
460 |
+
array('val' => '16:9', 'desc' => __('16:9 HDTV', 'weaver-xtreme' /*adm*/)),
|
461 |
+
array('val' => '4:3', 'desc' => __('4:3 Std TV', 'weaver-xtreme' /*adm*/)),
|
462 |
+
array('val' => '3:2', 'desc' => __('3:2 35mm Photo', 'weaver-xtreme' /*adm*/)),
|
463 |
+
array('val' => '5:3', 'desc' => __('5:3 Alternate Photo', 'weaver-xtreme' /*adm*/)),
|
464 |
+
array('val' => '64:27', 'desc' => __('2.37:1 Cinemascope', 'weaver-xtreme' /*adm*/)),
|
465 |
+
array('val' => '37:20', 'desc' => __('1.85:1 VistaVision', 'weaver-xtreme' /*adm*/)),
|
466 |
+
array('val' => '3:1', 'desc' => __('3:1 Banner', 'weaver-xtreme' /*adm*/)),
|
467 |
+
array('val' => '4:1', 'desc' => __('4:1 Banner', 'weaver-xtreme' /*adm*/)),
|
468 |
+
array('val' => '9:16', 'desc' => __('9:16 Vertical HD (Please avoid!)', 'weaver-xtreme' /*adm*/))
|
469 |
+
)),
|
470 |
+
|
471 |
+
|
472 |
array('name' => __('Custom Logo', 'weaver-xtreme' /*adm*/), 'id' => '-menu', 'type' =>'subheader',
|
473 |
'info' => __('The native WP Custom Logo, set on the Site Identity Customizer menu.', 'weaver-xtreme' /*adm*/)),
|
474 |
|
533 |
|
534 |
|
535 |
|
|
|
|
|
|
|
|
|
536 |
array('name' => '<span class="i-left dashicons dashicons-editor-code"></span><small>' . __('Weaver Site Logo/HTML', 'weaver-xtreme' /*adm*/) . '</small>',
|
537 |
'id' => '_site_logo', 'type' => '+textarea',
|
538 |
'info' => __('HTML for Site Title area. (example: <img src="url" style="position:absolute;top:20px;left:20px;" /> + Custom CSS: #site-logo{min-height:123px;} (This is not the WP Custom Logo!) (★Plus) (♦)', 'weaver-xtreme' /*adm*/)),
|
600 |
<br />
|
601 |
<div class="options-intro-menu"> <a href="#header-area"><?php _e('Header Area', 'weaver-xtreme' /*adm*/); ?></a> |
|
602 |
<a href="#header-image"><?php _e('Header Image', 'weaver-xtreme' /*adm*/); ?></a> |
|
603 |
+
<a href="#header-video"><?php _e('Header Video', 'weaver-xtreme' /*adm*/); ?></a> |
|
604 |
<a href="#site-titletagline"><?php _e('Site Title/Tagline', 'weaver-xtreme' /*adm*/); ?></a> |
|
605 |
<a href="#header-widget-area"><?php _e('Header Widget Area', 'weaver-xtreme' /*adm*/); ?></a>|
|
606 |
<a href="#header-html"><?php _e('Header HTML', 'weaver-xtreme' /*adm*/); ?></a>
|
includes/wvrx-ts-admin-page-posts.php
CHANGED
@@ -683,6 +683,9 @@ __('Weaver Xtreme Plus supports optional per post CSS style rules.','weaverx-the
|
|
683 |
|
684 |
|
685 |
function wvrx_ts_save_post_fields($post_id) {
|
|
|
|
|
|
|
686 |
$default_post_fields = array('_pp_category', '_pp_tag', '_pp_onepost', '_pp_orderby', '_pp_sort_order',
|
687 |
'_pp_author', '_pp_posts_per_page', '_pp_primary-widget-area', '_pp_secondary-widget-area', '_pp_sidebar_width',
|
688 |
'_pp_top-widget-area','_pp_bottom-widget-area','_pp_sitewide-top-widget-area', '_pp_sitewide-bottom-widget-area',
|
@@ -701,7 +704,9 @@ function wvrx_ts_save_post_fields($post_id) {
|
|
701 |
'_pp_bgcolor','_pp_color','_pp_bg_fullwidth', '_pp_lr_padding', '_pp_tb_padding', '_pp_margin', '_pp_post_class',
|
702 |
'_pp_bgimg', '_pp_mobile_bgimg', '_pp_parallax_height', '_pp_use_parallax', '_pp_parallax_not_wide',
|
703 |
'_pp_footer_add_class', '_pp_container_add_class', '_pp_content_add_class', '_pp_post_add_class',
|
704 |
-
'_pp_infobar_add_class', '_pp_wrapper_add_class', '_pp_header_add_class', '_pp_header_image_html_text'
|
|
|
|
|
705 |
);
|
706 |
|
707 |
if (weaverx_allow_multisite()) {
|
@@ -750,7 +755,7 @@ function wvrx_ts_xp_perpage_style_action($raw_template) {
|
|
750 |
|
751 |
weaverx_help_link('help.html#perpoststyle', __('Help for Per Page Style','weaver-xtreme-plus' /*adm*/ ));
|
752 |
if (!$raw_template) {
|
753 |
-
echo '<p><
|
754 |
__('Enter optional per page CSS style rules. <strong>Do not</strong> include the <style> and </style> tags.
|
755 |
Include the complete "selector {}" for each rule you define.
|
756 |
Custom styles will not be displayed by the Page Editor.
|
@@ -796,9 +801,57 @@ Custom styles will not be displayed by the Page Editor.'
|
|
796 |
// Weaver X Plus options for making horizontal bar layouts
|
797 |
wvrx_ts_page_color('_pp_bgcolor',__('Page BG Color','weaver-xtreme-plus'));
|
798 |
|
799 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
800 |
?>
|
801 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
802 |
<?php
|
803 |
if (version_compare( WEAVER_XPLUS_VERSION, '2.90', '>=')) :
|
804 |
_e('Replace Header image with arbitrary HTML for this page only. Useful for slider shortcodes in place of image. FI as Header Image has priority over HTML replacement. This will work with [show_slider] or almost any other slider that supports a shortcode.', 'weaver-xtreme' /*adm*/)
|
@@ -806,8 +859,75 @@ if (version_compare( WEAVER_XPLUS_VERSION, '2.90', '>=')) :
|
|
806 |
<textarea class="wvrx-edit" placeholder=" " name="_pp_header_image_html_text" rows=1 style="width: 95%"><?php echo(get_post_meta($post->ID, '_pp_header_image_html_text', true)); ?></textarea>
|
807 |
<?php endif; // new version ?>
|
808 |
</p>
|
809 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
810 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
811 |
<div style="clear:both"></div>
|
812 |
<hr />
|
813 |
<p style="line-height:1.3em;">
|
683 |
|
684 |
|
685 |
function wvrx_ts_save_post_fields($post_id) {
|
686 |
+
|
687 |
+
// NOTE - Update weaverx-ts.php when this changes...
|
688 |
+
|
689 |
$default_post_fields = array('_pp_category', '_pp_tag', '_pp_onepost', '_pp_orderby', '_pp_sort_order',
|
690 |
'_pp_author', '_pp_posts_per_page', '_pp_primary-widget-area', '_pp_secondary-widget-area', '_pp_sidebar_width',
|
691 |
'_pp_top-widget-area','_pp_bottom-widget-area','_pp_sitewide-top-widget-area', '_pp_sitewide-bottom-widget-area',
|
704 |
'_pp_bgcolor','_pp_color','_pp_bg_fullwidth', '_pp_lr_padding', '_pp_tb_padding', '_pp_margin', '_pp_post_class',
|
705 |
'_pp_bgimg', '_pp_mobile_bgimg', '_pp_parallax_height', '_pp_use_parallax', '_pp_parallax_not_wide',
|
706 |
'_pp_footer_add_class', '_pp_container_add_class', '_pp_content_add_class', '_pp_post_add_class',
|
707 |
+
'_pp_infobar_add_class', '_pp_wrapper_add_class', '_pp_header_add_class', '_pp_header_image_html_text',
|
708 |
+
'_pp_alt_primary_menu', '_pp_alt_secondary_menu', '_pp_alt_mini_menu', '_pp_video_active', '_pp_video_url',
|
709 |
+
'_pp_video_aspect', '_pp_video_render'
|
710 |
);
|
711 |
|
712 |
if (weaverx_allow_multisite()) {
|
755 |
|
756 |
weaverx_help_link('help.html#perpoststyle', __('Help for Per Page Style','weaver-xtreme-plus' /*adm*/ ));
|
757 |
if (!$raw_template) {
|
758 |
+
echo '<p><small>' .
|
759 |
__('Enter optional per page CSS style rules. <strong>Do not</strong> include the <style> and </style> tags.
|
760 |
Include the complete "selector {}" for each rule you define.
|
761 |
Custom styles will not be displayed by the Page Editor.
|
801 |
// Weaver X Plus options for making horizontal bar layouts
|
802 |
wvrx_ts_page_color('_pp_bgcolor',__('Page BG Color','weaver-xtreme-plus'));
|
803 |
|
804 |
+
|
805 |
+
$menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
|
806 |
+
|
807 |
+
// If no menus exists, direct the user to go and create some.
|
808 |
+
if ( !$menus ) {
|
809 |
+
echo '<p>'. sprintf( 'No menus have been created yet. <a href="%s">Create some</a>.', admin_url('nav-menus.php') ) .'</p>';
|
810 |
+
} else {
|
811 |
+
?>
|
812 |
+
<hr /><p>
|
813 |
+
You may replace one of the standard Header Menus (Primary, Secondary, or Header Mini) on this page. If there the menu hasn't been
|
814 |
+
set in the Menus options, then you can set that menu for just this page.
|
815 |
+
<br /><br />
|
816 |
+
<label for="_pp_alt_primary_menu"><strong><?php echo('Alternate Primary Menu' /*a*/ ); ?></strong></label>
|
817 |
+
<select id="_pp_alt_primary_menu" name="_pp_alt_primary_menu">
|
818 |
+
<option value=''> </option>
|
819 |
+
<?php
|
820 |
+
foreach ( $menus as $menu ) {
|
821 |
+
$selected = get_post_meta($post->ID, "_pp_alt_primary_menu", true) == $menu->term_id ? ' selected="selected"' : '';
|
822 |
+
echo '<option'. $selected .' value="'. $menu->term_id .'">'. $menu->name .'</option>';
|
823 |
+
}
|
824 |
?>
|
825 |
+
</select>
|
826 |
+
|
827 |
+
<br /><label for="_pp_alt_secondary_menu"><strong><?php echo('Alternate Secondary Menu' /*a*/ ); ?></strong></label>
|
828 |
+
<select id="_pp_alt_secondary_menu" name="_pp_alt_secondary_menu">
|
829 |
+
<option value=''> </option>
|
830 |
+
<?php
|
831 |
+
foreach ( $menus as $menu ) {
|
832 |
+
$selected = get_post_meta($post->ID, "_pp_alt_secondary_menu", true) == $menu->term_id ? ' selected="selected"' : '';
|
833 |
+
echo '<option'. $selected .' value="'. $menu->term_id .'">'. $menu->name .'</option>';
|
834 |
+
}
|
835 |
+
?>
|
836 |
+
</select>
|
837 |
+
<br /><label for="_pp_alt_mini_menu"><strong><?php echo('Alternate Header Mini Menu' /*a*/ ); ?></strong></label>
|
838 |
+
<select id="_pp_alt_mini_menu" name="_pp_alt_mini_menu">
|
839 |
+
<option value=''> </option>
|
840 |
+
<?php
|
841 |
+
foreach ( $menus as $menu ) {
|
842 |
+
$selected = get_post_meta($post->ID, "_pp_alt_mini_menu", true) == $menu->term_id ? ' selected="selected"' : '';
|
843 |
+
echo '<option'. $selected .' value="'. $menu->term_id .'">'. $menu->name .'</option>';
|
844 |
+
}
|
845 |
+
?>
|
846 |
+
</select>
|
847 |
+
</p>
|
848 |
+
<?php
|
849 |
+
}
|
850 |
+
|
851 |
+
echo '<hr /><span style="clear:both;"/></span><strong>' . __('Header Image Replacement HTML','weaver-xtreme-plus') . '</strong> (★Plus)' ;
|
852 |
+
?>
|
853 |
+
</p>
|
854 |
+
<p>
|
855 |
<?php
|
856 |
if (version_compare( WEAVER_XPLUS_VERSION, '2.90', '>=')) :
|
857 |
_e('Replace Header image with arbitrary HTML for this page only. Useful for slider shortcodes in place of image. FI as Header Image has priority over HTML replacement. This will work with [show_slider] or almost any other slider that supports a shortcode.', 'weaver-xtreme' /*adm*/)
|
859 |
<textarea class="wvrx-edit" placeholder=" " name="_pp_header_image_html_text" rows=1 style="width: 95%"><?php echo(get_post_meta($post->ID, '_pp_header_image_html_text', true)); ?></textarea>
|
860 |
<?php endif; // new version ?>
|
861 |
</p>
|
862 |
+
<?php
|
863 |
+
echo '<span style="clear:both;"/></span><strong>' . __('Header Video Options','weaver-xtreme-plus') . '</strong> (★Plus)';
|
864 |
+
|
865 |
+
$showopts = array(
|
866 |
+
array('val' => '', 'desc' => __('Default: only if this page is the front page','weaver-xtreme-plus')),
|
867 |
+
array('val' => 'yes', 'desc' => __('Yes','weaver-xtreme-plus')),
|
868 |
+
array('val'=> 'no', 'desc' => __('Never','weaver-xtreme-plus')));
|
869 |
+
$aspectopts = array(
|
870 |
+
array('val' => '', 'desc' => __('Global Aspect Ratio', 'weaver-xtreme')),
|
871 |
+
array('val' => '16:9', 'desc' => __('16:9 HDTV', 'weaver-xtreme')),
|
872 |
+
array('val' => '4:3', 'desc' => __('4:3 Std TV', 'weaver-xtreme')),
|
873 |
+
array('val' => '3:2', 'desc' => __('3:2 35mm Photo', 'weaver-xtreme')),
|
874 |
+
array('val' => '5:3', 'desc' => __('5:3 Alternate Photo', 'weaver-xtreme')),
|
875 |
+
array('val' => '64:27', 'desc' => __('2.37:1 Cinemascope', 'weaver-xtreme')),
|
876 |
+
array('val' => '37:20', 'desc' => __('1.85:1 VistaVision', 'weaver-xtreme')),
|
877 |
+
array('val' => '3:1', 'desc' => __('3:1 Banner', 'weaver-xtreme')),
|
878 |
+
array('val' => '4:1', 'desc' => __('4:1 Banner', 'weaver-xtreme')),
|
879 |
+
array('val' => '9:16', 'desc' => __('9:16 Vertical HD (Please avoid!)', 'weaver-xtreme')));
|
880 |
+
$renderopts = array(
|
881 |
+
array('val' => '', 'desc' => __('Global Rendering Setting', 'weaver-xtreme')),
|
882 |
+
array('val' => 'has-header-video', 'desc' => __('As video in header only', 'weaver-xtreme')),
|
883 |
+
array('val' => 'has-header-video-cover', 'desc' => __('As full cover Parallax BG Video', 'weaver-xtreme')),
|
884 |
+
array('val' => 'has-header-video-none', 'desc' => __('Disable Header Video', 'weaver-xtreme' /*adm*/))
|
885 |
|
886 |
+
);
|
887 |
+
?>
|
888 |
+
<p><label for='_pp_video_active'><strong><?php echo('Display Video on This Page:' /*a*/ ); ?></strong></label>
|
889 |
+
<select id='_pp_video_active' name='_pp_video_active'>
|
890 |
+
<?php
|
891 |
+
foreach ( $showopts as $opt ) {
|
892 |
+
$selected = get_post_meta($post->ID, '_pp_video_active', true) == $opt['val'] ? ' selected="selected"' : '';
|
893 |
+
echo '<option'. $selected .' value="'. $opt['val'] .'">'. $opt['desc'] .'</option>';
|
894 |
+
}
|
895 |
+
?>
|
896 |
+
</select>
|
897 |
+
</p>
|
898 |
+
<p><label for='_pp_video_url'><strong><?php echo('Video URL for This Page:' /*a*/ ); ?></strong></label>
|
899 |
+
<textarea class="wvrx-edit" placeholder=" " name='_pp_video_url' rows=1 style="width: 45%"><?php echo(get_post_meta($post->ID, '_pp_video_url', true)); ?></textarea>
|
900 |
+
<?php
|
901 |
+
if (!has_header_video() && get_post_meta($post->ID, '_pp_video_url', true)) { ?>
|
902 |
+
<br /><strong>
|
903 |
+
<em style="color:red;">
|
904 |
+
IMPORTANT: There is NO Header Video set on the <u>Customizer : Images : Header Media (Content)</u> menu. Please set one.</em>
|
905 |
+
Due to current restrictions with the WordPress Header Media video implementation,
|
906 |
+
you MUST always define some Header Video selection in that menu, even if you are specifying an alternative Per Page Video URL here.
|
907 |
+
We think this is a flaw in the WP core, and have requested that the restriction be removed in the future.</strong>
|
908 |
+
<?php } ?>
|
909 |
+
</p>
|
910 |
+
<p>
|
911 |
+
<label for='_pp_video_aspect'><strong><?php echo('Aspect Ratio:' /*a*/ ); ?></strong></label>
|
912 |
+
<select id='_pp_video_aspect' name='_pp_video_aspect'>
|
913 |
+
<?php
|
914 |
+
foreach ( $aspectopts as $opt ) {
|
915 |
+
$selected = get_post_meta($post->ID, '_pp_video_aspect', true) == $opt['val'] ? ' selected="selected"' : '';
|
916 |
+
echo '<option'. $selected .' value="'. $opt['val'] .'">'. $opt['desc'] .'</option>';
|
917 |
+
}
|
918 |
+
?>
|
919 |
+
</select>
|
920 |
+
|
921 |
+
<label for='_pp_video_render'><strong><?php echo('Header Video Rendering:' /*a*/ ); ?></strong></label>
|
922 |
+
<select id='_pp_video_render' name='_pp_video_render'>
|
923 |
+
<?php
|
924 |
+
foreach ( $renderopts as $opt ) {
|
925 |
+
$selected = get_post_meta($post->ID, '_pp_video_render', true) == $opt['val'] ? ' selected="selected"' : '';
|
926 |
+
echo '<option'. $selected .' value="'. $opt['val'] .'">'. $opt['desc'] .'</option>';
|
927 |
+
}
|
928 |
+
?>
|
929 |
+
</select>
|
930 |
+
</p>
|
931 |
<div style="clear:both"></div>
|
932 |
<hr />
|
933 |
<p style="line-height:1.3em;">
|
includes/wvrx-ts-runtime-lib.php
CHANGED
@@ -185,6 +185,11 @@ diagnose the problem, but you can delete it from your forum post right after you
|
|
185 |
<?php
|
186 |
}
|
187 |
|
|
|
|
|
|
|
|
|
|
|
188 |
function weaverx_ts_get_sysinfo() {
|
189 |
|
190 |
global $wpdb;
|
@@ -276,5 +281,5 @@ function weaverx_ts_get_sysinfo() {
|
|
276 |
|
277 |
$return .= "\n" . '### End System Info ###' . "\n";
|
278 |
return $return;
|
279 |
-
|
280 |
?>
|
185 |
<?php
|
186 |
}
|
187 |
|
188 |
+
add_action('weaverx_ts_show_version','weaverx_ts_show_version_action');
|
189 |
+
function weaverx_ts_show_version_action() {
|
190 |
+
echo "<!-- Weaver Xtreme Theme Support " . WVRX_TS_VERSION . " --> ";
|
191 |
+
}
|
192 |
+
|
193 |
function weaverx_ts_get_sysinfo() {
|
194 |
|
195 |
global $wpdb;
|
281 |
|
282 |
$return .= "\n" . '### End System Info ###' . "\n";
|
283 |
return $return;
|
284 |
+
}
|
285 |
?>
|
includes/wvrx-ts-shortcodes.php
CHANGED
@@ -403,6 +403,7 @@ function wvrx_ts_sc_youtube($args = '') {
|
|
403 |
if ( isset ( $args[0] ) )
|
404 |
$share = trim($args[0]);
|
405 |
|
|
|
406 |
// http://code.google.com/apis/youtube/player_parameters.html
|
407 |
// not including: enablejsapi, fs,playerapiid,
|
408 |
|
@@ -626,7 +627,7 @@ function wvrx_ts_sc_span($vals = '',$text) { // [span] - all ===============
|
|
626 |
}
|
627 |
|
628 |
function wvrx_ts_weaverx_sc_info() { // [info] ======================
|
629 |
-
global $current_user;
|
630 |
$out = __('<strong>Theme/User Info</strong><hr />','weaverx-theme-support' /*adm*/);
|
631 |
|
632 |
$current_user = wp_get_current_user();
|
403 |
if ( isset ( $args[0] ) )
|
404 |
$share = trim($args[0]);
|
405 |
|
406 |
+
|
407 |
// http://code.google.com/apis/youtube/player_parameters.html
|
408 |
// not including: enablejsapi, fs,playerapiid,
|
409 |
|
627 |
}
|
628 |
|
629 |
function wvrx_ts_weaverx_sc_info() { // [info] ======================
|
630 |
+
//global $current_user;
|
631 |
$out = __('<strong>Theme/User Info</strong><hr />','weaverx-theme-support' /*adm*/);
|
632 |
|
633 |
$current_user = wp_get_current_user();
|
includes/wvrx-ts-widgets.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
* Weaver X Widgets and shortcodes - widgets
|
4 |
*/
|
5 |
|
|
|
6 |
class WeaverX_Widget_Text extends WP_Widget {
|
7 |
|
8 |
function __construct() {
|
@@ -161,9 +162,9 @@ add_filter('weaverx_text', 'do_shortcode');
|
|
161 |
add_filter('widget_text', 'do_shortcode'); // add to standard text widget, too.
|
162 |
|
163 |
function wvrx_ts_load_widgets() {
|
164 |
-
register_widget(
|
165 |
-
register_widget(
|
166 |
-
register_widget(
|
167 |
}
|
168 |
|
169 |
?>
|
3 |
* Weaver X Widgets and shortcodes - widgets
|
4 |
*/
|
5 |
|
6 |
+
|
7 |
class WeaverX_Widget_Text extends WP_Widget {
|
8 |
|
9 |
function __construct() {
|
162 |
add_filter('widget_text', 'do_shortcode'); // add to standard text widget, too.
|
163 |
|
164 |
function wvrx_ts_load_widgets() {
|
165 |
+
register_widget('WeaverX_Widget_Text');
|
166 |
+
register_widget('WeaverX_Widget_PPText');
|
167 |
+
register_widget('WeaverX_Widget_Login');
|
168 |
}
|
169 |
|
170 |
?>
|
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.5
|
12 |
Tested up to: 4.7
|
13 |
-
Stable tag: 3.
|
14 |
|
15 |
A useful shortcode and widget collection for Weaver Xtreme
|
16 |
|
@@ -75,6 +75,13 @@ 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.0 =
|
79 |
* New: Weaver Xtreme 3.0 compatibility
|
80 |
* New: Added style= to [login]
|
10 |
Text Domain: weaverx-theme-support
|
11 |
Requires at least: 4.5
|
12 |
Tested up to: 4.7
|
13 |
+
Stable tag: 3.1
|
14 |
|
15 |
A useful shortcode and widget collection for Weaver Xtreme
|
16 |
|
75 |
See ChangeLog for changes to this version.
|
76 |
|
77 |
== ChangeLog ==
|
78 |
+
|
79 |
+
= 3.1 =
|
80 |
+
New: Support for WordPress Custom Header Video
|
81 |
+
Tweak: show version in output
|
82 |
+
Tweak: updated per page / per post option scan
|
83 |
+
Fix: removed duplicated tagline width option
|
84 |
+
|
85 |
= 3.0 =
|
86 |
* New: Weaver Xtreme 3.0 compatibility
|
87 |
* New: Added style= to [login]
|
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.
|
9 |
License: GPL V3
|
10 |
|
11 |
Weaver Xtreme Theme Support
|
@@ -43,7 +43,7 @@ function wvrx_is_user_logged_in() {
|
|
43 |
|
44 |
if ( strpos( $theme, '/weaver-xtreme') !== false ) { // only load if Weaver Xtreme is the theme
|
45 |
|
46 |
-
define ('WVRX_TS_VERSION','3.
|
47 |
define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
|
48 |
define ('WVRX_TS_APPEARANCE_PAGE', false );
|
49 |
|
@@ -91,7 +91,6 @@ function weaver_xtreme_load_admin_action() {
|
|
91 |
add_action('weaver_xtreme_load_admin','weaver_xtreme_load_admin_action');
|
92 |
|
93 |
|
94 |
-
|
95 |
//if (!defined('WEAVER_XPLUS_VERSION') || version_compare( WEAVER_XPLUS_VERSION, '2.90', '>=') ) {
|
96 |
|
97 |
|
@@ -198,14 +197,21 @@ function wvrx_ts_scan_section($what) {
|
|
198 |
'_pp_top-widget-area','_pp_bottom-widget-area','_pp_sitewide-top-widget-area', '_pp_sitewide-bottom-widget-area',
|
199 |
'_pp_post_type', '_pp_hide_page_title','_pp_hide_site_title','_pp_hide_menus','_pp_hide_header_image',
|
200 |
'_pp_hide_footer','_pp_hide_header','_pp_hide_sticky', '_pp_force_post_full','_pp_force_post_excerpt',
|
201 |
-
'_pp_show_post_avatar', '_pp_bodyclass', '_pp_fi_link', '_pp_fi_location', '_pp_post_styles',
|
202 |
'_pp_hide_top_post_meta','_pp_hide_bottom_post_meta', '_pp_stay_on_page', '_pp_hide_on_menu', '_pp_show_featured_img',
|
203 |
'_pp_hide_infotop','_pp_hide_infobottom', '_pp_hide_visual_editor', '_pp_masonry_span2', '_show_post_bubble',
|
204 |
'_pp_hide_post_title', '_pp_post_add_link', '_pp_hide_post_format_label', '_pp_page_layout', '_pp_wvrx_pwp_type',
|
205 |
'_pp_wvrx_pwp_cols', '_pp_post_filter', '_pp_header-widget-area' ,'_pp_footer-widget-area',
|
206 |
'_pp_hide_page_infobar', '_pp_hide_n_posts','_pp_fullposts', '_pp_pwp_masonry','_pp_pwp_compact','_pp_pwp_compact_posts',
|
207 |
'_primary-widget-area', '_secondary-widget-area', '_header-widget-area', '_footer-widget-area', '_sitewide-top-widget-area',
|
208 |
-
'_sitewide-bottom-widget-area', '_page-top-widget-area', '_page-bottom-widget-area'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
);
|
210 |
|
211 |
$args = array('posts_per_page' => -1, 'post_type' => $what, 'post_status' => 'any' );
|
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.1
|
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.1');
|
47 |
define ('WVRX_TS_MINIFY','.min'); // '' for dev, '.min' for production
|
48 |
define ('WVRX_TS_APPEARANCE_PAGE', false );
|
49 |
|
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 |
|
197 |
'_pp_top-widget-area','_pp_bottom-widget-area','_pp_sitewide-top-widget-area', '_pp_sitewide-bottom-widget-area',
|
198 |
'_pp_post_type', '_pp_hide_page_title','_pp_hide_site_title','_pp_hide_menus','_pp_hide_header_image',
|
199 |
'_pp_hide_footer','_pp_hide_header','_pp_hide_sticky', '_pp_force_post_full','_pp_force_post_excerpt',
|
200 |
+
'_pp_show_post_avatar', '_pp_bodyclass', '_pp_fi_link', '_pp_fi_location', '_pp_post_fi_location', '_pp_post_styles',
|
201 |
'_pp_hide_top_post_meta','_pp_hide_bottom_post_meta', '_pp_stay_on_page', '_pp_hide_on_menu', '_pp_show_featured_img',
|
202 |
'_pp_hide_infotop','_pp_hide_infobottom', '_pp_hide_visual_editor', '_pp_masonry_span2', '_show_post_bubble',
|
203 |
'_pp_hide_post_title', '_pp_post_add_link', '_pp_hide_post_format_label', '_pp_page_layout', '_pp_wvrx_pwp_type',
|
204 |
'_pp_wvrx_pwp_cols', '_pp_post_filter', '_pp_header-widget-area' ,'_pp_footer-widget-area',
|
205 |
'_pp_hide_page_infobar', '_pp_hide_n_posts','_pp_fullposts', '_pp_pwp_masonry','_pp_pwp_compact','_pp_pwp_compact_posts',
|
206 |
'_primary-widget-area', '_secondary-widget-area', '_header-widget-area', '_footer-widget-area', '_sitewide-top-widget-area',
|
207 |
+
'_sitewide-bottom-widget-area', '_page-top-widget-area', '_page-bottom-widget-area', '_pp_full_browser_height',
|
208 |
+
'_pp_page_cols',
|
209 |
+
// Plus options
|
210 |
+
'_pp_bgcolor','_pp_color','_pp_bg_fullwidth', '_pp_lr_padding', '_pp_tb_padding', '_pp_margin', '_pp_post_class',
|
211 |
+
'_pp_bgimg', '_pp_mobile_bgimg', '_pp_parallax_height', '_pp_use_parallax', '_pp_parallax_not_wide',
|
212 |
+
'_pp_footer_add_class', '_pp_container_add_class', '_pp_content_add_class', '_pp_post_add_class',
|
213 |
+
'_pp_infobar_add_class', '_pp_wrapper_add_class', '_pp_header_add_class', '_pp_header_image_html_text',
|
214 |
+
'_pp_alt_primary_menu', '_pp_alt_secondary_menu', '_pp_alt_mini_menu'
|
215 |
);
|
216 |
|
217 |
$args = array('posts_per_page' => -1, 'post_type' => $what, 'post_status' => 'any' );
|