Plugin Directory

Changeset 1380643


Ignore:
Timestamp:
03/29/2016 12:28:09 AM (10 years ago)
Author:
willyxd
Message:

tagging version 1.2.2

Location:
simple-background-video
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-background-video/tags/1.2.2/js/add_video.js

    r1379674 r1380643  
    3232    if ($(window).width()<665) {
    3333        $(".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        }
    3537    }
    3638
  • simple-background-video/tags/1.2.2/readme.txt

    r1379815 r1380643  
    55Requires at least: 3.0.1
    66Tested up to: 4.4
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050== Changelog ==
    5151
     52= 1.2.2 =
     53* Bug fix: Error javascript in mobile screen
     54
    5255= 1.2.1 =
    5356* ‘.js .css files’ update to 1.2
  • simple-background-video/tags/1.2.2/simple_background_video_zd.php

    r1379815 r1380643  
    44Plugin URI: http://www.zuhaitz-design.com
    55Description: 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.1
     6Version: 1.2.2
    77Author: Willy Muñoz
    88Author URI: http://www.zuhaitz-design.com
     
    489489        wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.2.1' );
    490490        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' );
    492492        wp_enqueue_script( 'add_video_js' );
    493493
    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 ) {
    496503            // 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';
    498511            // return the $classes array
    499512            return $classes;
  • simple-background-video/trunk/js/add_video.js

    r1379674 r1380643  
    3232    if ($(window).width()<665) {
    3333        $(".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        }
    3537    }
    3638
  • simple-background-video/trunk/readme.txt

    r1379815 r1380643  
    55Requires at least: 3.0.1
    66Tested up to: 4.4
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050== Changelog ==
    5151
     52= 1.2.2 =
     53* Bug fix: Error javascript in mobile screen
     54
    5255= 1.2.1 =
    5356* ‘.js .css files’ update to 1.2
  • simple-background-video/trunk/simple_background_video_zd.php

    r1379815 r1380643  
    44Plugin URI: http://www.zuhaitz-design.com
    55Description: 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.1
     6Version: 1.2.2
    77Author: Willy Muñoz
    88Author URI: http://www.zuhaitz-design.com
     
    489489        wp_register_style( 'add_video_css', plugin_dir_url( __FILE__ ) . 'css/add_video.css', false, '1.2.1' );
    490490        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' );
    492492        wp_enqueue_script( 'add_video_js' );
    493493
    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 ) {
    496503            // 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';
    498511            // return the $classes array
    499512            return $classes;
Note: See TracChangeset for help on using the changeset viewer.