Changeset 1380643
- Timestamp:
- 03/29/2016 12:28:09 AM (10 years ago)
- Location:
- simple-background-video
- Files:
-
- 6 edited
- 1 copied
-
tags/1.2.2 (copied) (copied from simple-background-video/trunk)
-
tags/1.2.2/js/add_video.js (modified) (1 diff)
-
tags/1.2.2/readme.txt (modified) (2 diffs)
-
tags/1.2.2/simple_background_video_zd.php (modified) (2 diffs)
-
trunk/js/add_video.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple_background_video_zd.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-background-video/tags/1.2.2/js/add_video.js
r1379674 r1380643 32 32 if ($(window).width()<665) { 33 33 $(".video-box iframe").attr("src", ""); 34 $(".video-home-ZD .video-box video").get(0).pause(); 34 if ( $(".video-home-ZD .video-box video")[0] ) { 35 $("body.uploadZD .video-home-ZD .video-box video").get(0).pause(); 36 } 35 37 } 36 38 -
simple-background-video/tags/1.2.2/readme.txt
r1379815 r1380643 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.4 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 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.2.2 = 53 * Bug fix: Error javascript in mobile screen 54 52 55 = 1.2.1 = 53 56 * ‘.js .css files’ update to 1.2 -
simple-background-video/tags/1.2.2/simple_background_video_zd.php
r1379815 r1380643 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.2. 16 Version: 1.2.2 7 7 Author: Willy Muñoz 8 8 Author URI: http://www.zuhaitz-design.com … … 489 489 wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.2.1' ); 490 490 wp_enqueue_style( 'add_video_css' ); 491 wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.2. 1' );491 wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.2.2' ); 492 492 wp_enqueue_script( 'add_video_js' ); 493 493 494 add_filter( 'body_class', 'my_class_names' ); 495 function my_class_names( $classes ) { 494 495 496 if ($video_yvn == "youtube" || $video_yvn == "vimeo") { 497 add_filter( 'body_class', 'my_class_names_youvimZD' ); 498 } else { 499 add_filter( 'body_class', 'my_class_names_uploadZD' ); 500 } 501 502 function my_class_names_youvimZD( $classes ) { 496 503 // add 'class-name' to the $classes array 497 $classes[] = 'simple_background_video'; 504 $classes[] = 'simple_background_video youvimZD'; 505 // return the $classes array 506 return $classes; 507 } 508 function my_class_names_uploadZD( $classes ) { 509 // add 'class-name' to the $classes array 510 $classes[] = 'simple_background_video uploadZD'; 498 511 // return the $classes array 499 512 return $classes; -
simple-background-video/trunk/js/add_video.js
r1379674 r1380643 32 32 if ($(window).width()<665) { 33 33 $(".video-box iframe").attr("src", ""); 34 $(".video-home-ZD .video-box video").get(0).pause(); 34 if ( $(".video-home-ZD .video-box video")[0] ) { 35 $("body.uploadZD .video-home-ZD .video-box video").get(0).pause(); 36 } 35 37 } 36 38 -
simple-background-video/trunk/readme.txt
r1379815 r1380643 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.4 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 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.2.2 = 53 * Bug fix: Error javascript in mobile screen 54 52 55 = 1.2.1 = 53 56 * ‘.js .css files’ update to 1.2 -
simple-background-video/trunk/simple_background_video_zd.php
r1379815 r1380643 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.2. 16 Version: 1.2.2 7 7 Author: Willy Muñoz 8 8 Author URI: http://www.zuhaitz-design.com … … 489 489 wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.2.1' ); 490 490 wp_enqueue_style( 'add_video_css' ); 491 wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.2. 1' );491 wp_register_script( 'add_video_js', plugin_dir_url( __FILE__ ) . 'js/add_video.js', false, '1.2.2' ); 492 492 wp_enqueue_script( 'add_video_js' ); 493 493 494 add_filter( 'body_class', 'my_class_names' ); 495 function my_class_names( $classes ) { 494 495 496 if ($video_yvn == "youtube" || $video_yvn == "vimeo") { 497 add_filter( 'body_class', 'my_class_names_youvimZD' ); 498 } else { 499 add_filter( 'body_class', 'my_class_names_uploadZD' ); 500 } 501 502 function my_class_names_youvimZD( $classes ) { 496 503 // add 'class-name' to the $classes array 497 $classes[] = 'simple_background_video'; 504 $classes[] = 'simple_background_video youvimZD'; 505 // return the $classes array 506 return $classes; 507 } 508 function my_class_names_uploadZD( $classes ) { 509 // add 'class-name' to the $classes array 510 $classes[] = 'simple_background_video uploadZD'; 498 511 // return the $classes array 499 512 return $classes;
Note: See TracChangeset
for help on using the changeset viewer.