Changeset 1456161
- Timestamp:
- 07/18/2016 02:22:05 AM (10 years ago)
- Location:
- simple-background-video
- Files:
-
- 8 edited
- 2 copied
-
tags/1.4.2 (copied) (copied from simple-background-video/trunk)
-
tags/1.4.3 (copied) (copied from simple-background-video/trunk)
-
tags/1.4.3/css/add_video.css (modified) (1 diff)
-
tags/1.4.3/js/add_video.js (modified) (1 diff)
-
tags/1.4.3/readme.txt (modified) (2 diffs)
-
tags/1.4.3/simple_background_video_zd.php (modified) (6 diffs)
-
trunk/css/add_video.css (modified) (1 diff)
-
trunk/js/add_video.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple_background_video_zd.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-background-video/tags/1.4.3/css/add_video.css
r1379674 r1456161 76 76 77 77 } 78 79 80 body.movZD .video-home-ZD, 81 body.movZD .title_video_ZD { 82 display: none; 83 } 84 body.movZD .title_video_ZD.show { 85 display: inherit; 86 } 87 body.movZD .image_mb { 88 display: none; 89 } 90 body.movZD .image_mb.show { 91 display: inherit; 92 } -
simple-background-video/tags/1.4.3/js/add_video.js
r1443312 r1456161 1 1 2 2 jQuery(document).ready(function($) { 3 4 5 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 6 $( 'body' ).addClass( 'movZD' ); 7 } 3 8 4 9 if ($(window).height() > ($(window).width() * 0.562 )) { -
simple-background-video/tags/1.4.3/readme.txt
r1443312 r1456161 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.5.3 7 Stable tag: 1.4. 17 Stable tag: 1.4.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.4.3 = 53 * Html ready in text input 54 52 55 = 1.4.1 = 53 56 * Bug fix: Play when resize -
simple-background-video/tags/1.4.3/simple_background_video_zd.php
r1443312 r1456161 4 4 Plugin URI: http://www.zuhaitz-design.com 5 5 Description: Put a title and a responsive background video as a header in any page. Your video could be from Youtube, Vimeo or MP4! 6 Version: 1.4. 16 Version: 1.4.3 7 7 Author: Willy Muñoz 8 8 Author URI: http://www.zuhaitz-design.com … … 263 263 $options['video_mp4'] = ( ! empty( $options['video_mp4'] ) ) ? sanitize_text_field( $options['video_mp4'] ) : ''; 264 264 $options['title_select'] = ( ! empty( $options['title_select'] ) ) ? sanitize_text_field( $options['title_select'] ) : ''; 265 $options['title_input'] = ( ! empty( $options['title_input'] ) ) ? sanitize_text_field( $options['title_input'] ) : '';265 $options['title_input'] = ( ! empty( $options['title_input'] ) ) ? esc_html( $options['title_input'] ) : ''; 266 266 $options['color_title'] = ( ! empty( $options['color_title'] ) ) ? sanitize_text_field( $options['color_title'] ) : ''; 267 267 $options['image_sn'] = ( ! empty( $options['image_sn'] ) ) ? sanitize_text_field( $options['image_sn'] ) : ''; … … 277 277 278 278 function load_custom_wp_admin_style() { 279 wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/video-artist.css', false, '1.4. 1' );279 wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/video-artist.css', false, '1.4.3' ); 280 280 wp_enqueue_style( 'custom_wp_admin_css' ); 281 wp_register_script( 'video_artist_js', plugin_dir_url( __FILE__ ) . 'js/video-artist.js', false, '1.4. 1' );281 wp_register_script( 'video_artist_js', plugin_dir_url( __FILE__ ) . 'js/video-artist.js', false, '1.4.3' ); 282 282 wp_enqueue_script( 'video_artist_js' ); 283 wp_register_script( 'video_media_js', plugin_dir_url( __FILE__ ) . 'js/video-media.js', false, '1.4. 1' );283 wp_register_script( 'video_media_js', plugin_dir_url( __FILE__ ) . 'js/video-media.js', false, '1.4.3' ); 284 284 wp_enqueue_script( 'video_media_js' ); 285 285 wp_enqueue_media(); // 2 horas … … 525 525 if (!empty($video_web) || !empty($video_mp4)) { 526 526 527 wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.4. 1' );527 wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.4.3' ); 528 528 wp_enqueue_style( 'add_video_css' ); 529 wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.4. 1' );529 wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.4.3' ); 530 530 wp_enqueue_script( 'add_video_js' ); 531 531 … … 556 556 } 557 557 if ($title_select=="custom-title") { ?> 558 <h1 class="title_video_ZD <?php if ( $image_sn=="yes" && !empty($image_mob) ) { echo "show"; } ?>" <?php if ( !empty($color_title) ){echo "style='color:" . $color_title . "'";}?>> <?php echo $custom_title_input;?></h1>558 <h1 class="title_video_ZD <?php if ( $image_sn=="yes" && !empty($image_mob) ) { echo "show"; } ?>" <?php if ( !empty($color_title) ){echo "style='color:" . $color_title . "'";}?>> <?php echo html_entity_decode($custom_title_input);?></h1> 559 559 <?php 560 560 } … … 621 621 } 622 622 if ( !empty($_POST['custom-title-input']) ) { 623 update_post_meta( $post_id, '_custom_title_input', sanitize_text_field( $_POST['custom-title-input'] ) );623 update_post_meta( $post_id, '_custom_title_input', esc_html( $_POST['custom-title-input'] ) ); 624 624 } 625 625 -
simple-background-video/trunk/css/add_video.css
r1379674 r1456161 76 76 77 77 } 78 79 80 body.movZD .video-home-ZD, 81 body.movZD .title_video_ZD { 82 display: none; 83 } 84 body.movZD .title_video_ZD.show { 85 display: inherit; 86 } 87 body.movZD .image_mb { 88 display: none; 89 } 90 body.movZD .image_mb.show { 91 display: inherit; 92 } -
simple-background-video/trunk/js/add_video.js
r1443312 r1456161 1 1 2 2 jQuery(document).ready(function($) { 3 4 5 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 6 $( 'body' ).addClass( 'movZD' ); 7 } 3 8 4 9 if ($(window).height() > ($(window).width() * 0.562 )) { -
simple-background-video/trunk/readme.txt
r1443312 r1456161 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.5.3 7 Stable tag: 1.4. 17 Stable tag: 1.4.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.4.3 = 53 * Html ready in text input 54 52 55 = 1.4.1 = 53 56 * Bug fix: Play when resize -
simple-background-video/trunk/simple_background_video_zd.php
r1443312 r1456161 4 4 Plugin URI: http://www.zuhaitz-design.com 5 5 Description: Put a title and a responsive background video as a header in any page. Your video could be from Youtube, Vimeo or MP4! 6 Version: 1.4. 16 Version: 1.4.3 7 7 Author: Willy Muñoz 8 8 Author URI: http://www.zuhaitz-design.com … … 263 263 $options['video_mp4'] = ( ! empty( $options['video_mp4'] ) ) ? sanitize_text_field( $options['video_mp4'] ) : ''; 264 264 $options['title_select'] = ( ! empty( $options['title_select'] ) ) ? sanitize_text_field( $options['title_select'] ) : ''; 265 $options['title_input'] = ( ! empty( $options['title_input'] ) ) ? sanitize_text_field( $options['title_input'] ) : '';265 $options['title_input'] = ( ! empty( $options['title_input'] ) ) ? esc_html( $options['title_input'] ) : ''; 266 266 $options['color_title'] = ( ! empty( $options['color_title'] ) ) ? sanitize_text_field( $options['color_title'] ) : ''; 267 267 $options['image_sn'] = ( ! empty( $options['image_sn'] ) ) ? sanitize_text_field( $options['image_sn'] ) : ''; … … 277 277 278 278 function load_custom_wp_admin_style() { 279 wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/video-artist.css', false, '1.4. 1' );279 wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/video-artist.css', false, '1.4.3' ); 280 280 wp_enqueue_style( 'custom_wp_admin_css' ); 281 wp_register_script( 'video_artist_js', plugin_dir_url( __FILE__ ) . 'js/video-artist.js', false, '1.4. 1' );281 wp_register_script( 'video_artist_js', plugin_dir_url( __FILE__ ) . 'js/video-artist.js', false, '1.4.3' ); 282 282 wp_enqueue_script( 'video_artist_js' ); 283 wp_register_script( 'video_media_js', plugin_dir_url( __FILE__ ) . 'js/video-media.js', false, '1.4. 1' );283 wp_register_script( 'video_media_js', plugin_dir_url( __FILE__ ) . 'js/video-media.js', false, '1.4.3' ); 284 284 wp_enqueue_script( 'video_media_js' ); 285 285 wp_enqueue_media(); // 2 horas … … 525 525 if (!empty($video_web) || !empty($video_mp4)) { 526 526 527 wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.4. 1' );527 wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.4.3' ); 528 528 wp_enqueue_style( 'add_video_css' ); 529 wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.4. 1' );529 wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.4.3' ); 530 530 wp_enqueue_script( 'add_video_js' ); 531 531 … … 556 556 } 557 557 if ($title_select=="custom-title") { ?> 558 <h1 class="title_video_ZD <?php if ( $image_sn=="yes" && !empty($image_mob) ) { echo "show"; } ?>" <?php if ( !empty($color_title) ){echo "style='color:" . $color_title . "'";}?>> <?php echo $custom_title_input;?></h1>558 <h1 class="title_video_ZD <?php if ( $image_sn=="yes" && !empty($image_mob) ) { echo "show"; } ?>" <?php if ( !empty($color_title) ){echo "style='color:" . $color_title . "'";}?>> <?php echo html_entity_decode($custom_title_input);?></h1> 559 559 <?php 560 560 } … … 621 621 } 622 622 if ( !empty($_POST['custom-title-input']) ) { 623 update_post_meta( $post_id, '_custom_title_input', sanitize_text_field( $_POST['custom-title-input'] ) );623 update_post_meta( $post_id, '_custom_title_input', esc_html( $_POST['custom-title-input'] ) ); 624 624 } 625 625
Note: See TracChangeset
for help on using the changeset viewer.