Plugin Directory

Changeset 1741469


Ignore:
Timestamp:
10/05/2017 09:55:48 AM (8 years ago)
Author:
jefferey11
Message:

updated trunk

Location:
floating-video/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • floating-video/trunk/floating_video_plugin.php

    r1740775 r1741469  
    44* Plugin URI:  https://wordpress.org/plugins/floating-video/
    55* Description: Display a video that, when scrolled out of view, moves to the corner of the screen so that the user can continue watching it while reading a post.
    6 * Version: 1.2.2
     6* Version: 1.2.3
    77* Author: jefferey11
    88* Author URI:  https://profiles.wordpress.org/jefferey11#content-plugins
     
    1212if( !is_admin()){
    1313    wp_enqueue_script('jquery');
    14     wp_enqueue_script("FlVid_video_functions", plugins_url( 'video_functions.js', __FILE__ ));
    15     wp_enqueue_style("FlVid_style", plugins_url( 'style.css', __FILE__ ));
     14    wp_enqueue_script("FlVid_video_functions", plugins_url( 'video_functions.js', __FILE__ ), array(), "1.2.3");
     15    wp_enqueue_style("FlVid_style", plugins_url( 'style.css', __FILE__ ), array(), "1.2.3");
    1616}
    1717
     
    8484        $youtube_url = str_replace('watch?v=','embed/',wp_kses_post( $video_atts[ "url" ] )) . "?rel=0";
    8585        if ($notFirstVideo == "") {
    86             $output .= "<FlVid-prefixaddv1-2-1_section class=FlVid-prefixaddv1-2-1_video$notFirstVideo><div class=FlVid-prefixaddv1-2-1_vid-wrap>";
     86            $output .= "<FlVid-prefixaddv1-2-1_section class=FlVid-prefixaddv1-2-1_video$notFirstVideo><div class=\"FlVid-prefixaddv1-2-1_vid-wrap fitvidsignore\">";
    8787        }
    8888        $output .= "<iframe id=responsive_video$id";
     
    113113        $vimeo_url = str_replace('vimeo.com','player.vimeo.com/video',wp_kses_post( $video_atts[ "url" ] )) . "?title=0&byline=0&portrait=0";
    114114        if ($notFirstVideo == "") {
    115             $output .= "<FlVid-prefixaddv1-2-1_section class=FlVid-prefixaddv1-2-1_video$notFirstVideo><div class=FlVid-prefixaddv1-2-1_vid-wrap>";
     115            $output .= "<FlVid-prefixaddv1-2-1_section class=FlVid-prefixaddv1-2-1_video$notFirstVideo><div class=\"FlVid-prefixaddv1-2-1_vid-wrap fitvidsignore\">";
    116116        }
    117117        $output .= "<iframe id=responsive_video$id";
     
    141141    }else {
    142142        if ($notFirstVideo == "") {
    143             $output .= "<FlVid-prefixaddv1-2-1_section class=FlVid-prefixaddv1-2-1_video$notFirstVideo><div class=FlVid-prefixaddv1-2-1_vid-wrap>";
     143            $output .= "<FlVid-prefixaddv1-2-1_section class=FlVid-prefixaddv1-2-1_video$notFirstVideo><div class=\"FlVid-prefixaddv1-2-1_vid-wrap fitvidsignore\">";
    144144        }
    145145
  • floating-video/trunk/readme.txt

    r1740783 r1741469  
    3939== Changelog ==
    4040
     41= 1.2.3 =
     42* Fixed confilict issues with some themes and plugins
     43
    4144= 1.2.2 =
    4245* Minor improvements
     
    7174== Upgrade Notice ==
    7275
     76= 1.2.3 =
     77* Fixed confilict issues with some themes and plugins
     78
    7379= 1.2.2 =
    7480* Minor improvements
  • floating-video/trunk/video_functions.js

    r1740743 r1741469  
    11window.addEventListener("load", FlVid_find_height1);
     2window.addEventListener("load", FlVid_removefitvids);
    23function FlVid_find_height1() {
    34    window.setTimeout(FlVid_find_height,0);
     
    4243}
    4344
     45function FlVid_removefitvids() {
     46        jQuery(".fitvidsignore > .fluid-width-video-container > .fluid-width-video-wrapper > iframe").css( "width", "100%" );
     47        jQuery(".fitvidsignore > .fluid-width-video-container > .fluid-width-video-wrapper > iframe").css( "height", "100%" );
     48
     49        jQuery(".fitvidsignore > .fluid-width-video-container > .fluid-width-video-wrapper").removeClass("fluid-width-video-wrapper").attr("style", "width: 100%; height: 100%;");
     50
     51        jQuery(".fitvidsignore > .fluid-width-video-container").removeClass("fluid-width-video-container").attr("style", "width: 100%; height: 100%;");
     52}
     53
    4454
    4555var normal_width = jQuery('#FlVid_normal_width').clientWidth;
Note: See TracChangeset for help on using the changeset viewer.