Plugin Directory

Changeset 3233631


Ignore:
Timestamp:
02/03/2025 04:15:33 AM (14 months ago)
Author:
wonderplugin
Message:

Version 2.1

Location:
wonderplugin-video-embed/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wonderplugin-video-embed/trunk/app/class-wonderplugin-videoembed-widgetview.php

    r2806213 r3233631  
    207207       
    208208        if (!empty($atts['lightboxsize']))
    209             $content .= ' data-width=' . $atts['lightboxwidth'] . ' data-height=' . $atts['lightboxheight'];
     209            $content .= ' data-width="' . $atts['lightboxwidth'] . '" data-height="' . $atts['lightboxheight'] . '"';
    210210       
    211211        if (!empty($atts['autoopen']))
    212             $content .= ' data-autoopen="true" data-autoopendelay=' . $atts['autoopendelay'];
     212            $content .= ' data-autoopen="true" data-autoopendelay="' . $atts['autoopendelay'] . '"';
    213213       
    214214        if (!empty($atts['autoclose']))
     
    231231   
    232232    function shortcode_handler($atts) {
    233        
    234         $content = '<div class="wonderplugin-video" style="width:' . $atts['videowidth'] . 'px;height:' . $atts['videoheight'] . 'px;' . $atts['videocss'] . '"';
    235        
     233
     234        foreach($atts as $key => $value)
     235        {
     236            $atts[$key] = preg_replace('/on\S*|script|javascript|vbscript|data|expression|binding/i', '', $value);
     237        }
     238
     239        $content = '<div class="wonderplugin-video" style="';
     240       
     241        if (!empty($atts['videowidth'])) {
     242            $content .= 'width:' . $atts['videowidth'] . 'px;';
     243        }
     244
     245        if (!empty($atts['videoheight'])) {
     246            $content .= 'height:' . $atts['videoheight'] . 'px;';
     247        }
     248
     249        if (!empty($atts['videocss'])) {
     250            $content .= $atts['videocss'];
     251        }
     252
     253        $content .= '"';
     254
    236255        if (!empty($atts['keepaspectratio']) && !empty($atts['videowidth']) && !empty($atts['videoheight']))
    237256            $content .= ' data-aspectratio="' . ($atts['videowidth'] / $atts['videoheight']) . '"';
  • wonderplugin-video-embed/trunk/app/wonderplugin-videoembed-creator.js

    r3045324 r3233631  
    11/** Wonderplugin Video Embed
    2  * Copyright 2024 Magic Hills Pty Ltd All Rights Reserved
     2 * Copyright 2025 Magic Hills Pty Ltd All Rights Reserved
    33 * Website: https://www.wonderplugin.com
    4  * Version 2.0
     4 * Version 2.1
    55 */
    66(function($){$(document).ready(function(){$(document).on("click",".wpve-tab-label",function(){var parent_con=$(this).closest(".wpve-tab-container");parent_con.find(".wpve-tab-label").removeClass("wpve-tab-label-selected");$(this).addClass("wpve-tab-label-selected");parent_con.find(".wpve-tab-content").removeClass("wpve-tab-content-selected");parent_con.find("."+$(this).data("contentclass")).addClass("wpve-tab-content-selected");window.wpve_activetab=$(this).data("contentclass")});$(document).on("widget-updated",
  • wonderplugin-video-embed/trunk/app/wonderplugin-videoembed-mce.js

    r3045324 r3233631  
    11/** Wonderplugin Video Embed
    2  * Copyright 2024 Magic Hills Pty Ltd All Rights Reserved
     2 * Copyright 2025 Magic Hills Pty Ltd All Rights Reserved
    33 * Website: https://www.wonderplugin.com
    4  * Version 2.0
     4 * Version 2.1
    55 */
    66(function($){tinymce.PluginManager.add("wpve_mce_button",function(editor,url){editor.addButton("wpve_mce_button",{text:" Video",title:"Wonder Video Embed",icon:true,image:url+"/logo-72.png",onclick:function(){wpve_options_form(editor)}})});function get_url_arams(href){var result={};if(href.indexOf("?")<0)return result;var params=href.substring(href.indexOf("?")+1).split("&");for(var i=0;i<params.length;i++){var value=params[i].split("=");if(value&&value.length==2&&value[0].toLowerCase()!="v")result[value[0].toLowerCase()]=
  • wonderplugin-video-embed/trunk/engine/wonderpluginvideoembed.js

    r3045324 r3233631  
    11/** Wonderplugin Video Embed
    2  * Copyright 2024 Magic Hills Pty Ltd All Rights Reserved
     2 * Copyright 2025 Magic Hills Pty Ltd All Rights Reserved
    33 * Website: https://www.wonderplugin.com
    4  * Version 2.0
     4 * Version 2.1
    55 */
    66(function($){$(document).ready(function(){$("head").append('<style type="text/css">.wonderplugin-video,.wonderplugin-video * {box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;}</style>');$(".wonderplugin-videoembed-engine").hide();$(".wonderplugin-video").each(function(index){var inst=this;inst.options={stamp:false,videohidecontrols:false,videohideplaybutton:false,nativehtml5controls:false,nativecontrolsonfirefox:false,nativecontrolsonie:false,nativecontrolsoniphone:true,
  • wonderplugin-video-embed/trunk/readme.txt

    r3045324 r3233631  
    44Donate link: https://www.wonderplugin.com/wordpress-video-player/
    55Requires at least: 3.6
    6 Tested up to: 6.4.3
     6Tested up to: 6.7.1
    77Stable tag: trunk
    88License: GPLv2 or later
     
    6868== Changelog ==
    6969
     70= 2.1 =
     71* Sanitize shortcode parameters
     72
    7073= 2.0 =
    7174* Fix compatibility issues with PHP 8.2 and 8.3
  • wonderplugin-video-embed/trunk/wonderpluginvideoembed.php

    r3045324 r3233631  
    44Plugin URI: https://www.wonderplugin.com/wordpress-video-player/
    55Description: WordPress Video Embed Plugin & Widget
    6 Version: 2.0
     6Version: 2.1
    77Author: Magic Hills Pty Ltd
    88Author URI: https://www.wonderplugin.com
     
    1515    return;
    1616
    17 define('WONDERPLUGIN_VIDEOEMBED_VERSION', '2.0');
     17define('WONDERPLUGIN_VIDEOEMBED_VERSION', '2.1');
    1818define('WONDERPLUGIN_VIDEOEMBED_URL', plugin_dir_url( __FILE__ ));
    1919define('WONDERPLUGIN_VIDEOEMBED_PATH', plugin_dir_path( __FILE__ ));
    2020define('WONDERPLUGIN_VIDEOEMBED_PLUGIN', basename(dirname(__FILE__)) . '/' . basename(__FILE__));
    21 define('WONDERPLUGIN_VIDEOEMBED_PLUGIN_VERSION', '2.0');
     21define('WONDERPLUGIN_VIDEOEMBED_PLUGIN_VERSION', '2.1');
    2222
    2323require_once 'app/class-wonderplugin-videoembed-controller.php';
Note: See TracChangeset for help on using the changeset viewer.