Changeset 3233631
- Timestamp:
- 02/03/2025 04:15:33 AM (14 months ago)
- Location:
- wonderplugin-video-embed/trunk
- Files:
-
- 6 edited
-
app/class-wonderplugin-videoembed-widgetview.php (modified) (2 diffs)
-
app/wonderplugin-videoembed-creator.js (modified) (1 diff)
-
app/wonderplugin-videoembed-mce.js (modified) (1 diff)
-
engine/wonderpluginvideoembed.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wonderpluginvideoembed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wonderplugin-video-embed/trunk/app/class-wonderplugin-videoembed-widgetview.php
r2806213 r3233631 207 207 208 208 if (!empty($atts['lightboxsize'])) 209 $content .= ' data-width= ' . $atts['lightboxwidth'] . ' data-height=' . $atts['lightboxheight'];209 $content .= ' data-width="' . $atts['lightboxwidth'] . '" data-height="' . $atts['lightboxheight'] . '"'; 210 210 211 211 if (!empty($atts['autoopen'])) 212 $content .= ' data-autoopen="true" data-autoopendelay= ' . $atts['autoopendelay'];212 $content .= ' data-autoopen="true" data-autoopendelay="' . $atts['autoopendelay'] . '"'; 213 213 214 214 if (!empty($atts['autoclose'])) … … 231 231 232 232 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 236 255 if (!empty($atts['keepaspectratio']) && !empty($atts['videowidth']) && !empty($atts['videoheight'])) 237 256 $content .= ' data-aspectratio="' . ($atts['videowidth'] / $atts['videoheight']) . '"'; -
wonderplugin-video-embed/trunk/app/wonderplugin-videoembed-creator.js
r3045324 r3233631 1 1 /** Wonderplugin Video Embed 2 * Copyright 202 4Magic Hills Pty Ltd All Rights Reserved2 * Copyright 2025 Magic Hills Pty Ltd All Rights Reserved 3 3 * Website: https://www.wonderplugin.com 4 * Version 2. 04 * Version 2.1 5 5 */ 6 6 (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 1 1 /** Wonderplugin Video Embed 2 * Copyright 202 4Magic Hills Pty Ltd All Rights Reserved2 * Copyright 2025 Magic Hills Pty Ltd All Rights Reserved 3 3 * Website: https://www.wonderplugin.com 4 * Version 2. 04 * Version 2.1 5 5 */ 6 6 (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 1 1 /** Wonderplugin Video Embed 2 * Copyright 202 4Magic Hills Pty Ltd All Rights Reserved2 * Copyright 2025 Magic Hills Pty Ltd All Rights Reserved 3 3 * Website: https://www.wonderplugin.com 4 * Version 2. 04 * Version 2.1 5 5 */ 6 6 (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 4 4 Donate link: https://www.wonderplugin.com/wordpress-video-player/ 5 5 Requires at least: 3.6 6 Tested up to: 6. 4.36 Tested up to: 6.7.1 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 68 68 == Changelog == 69 69 70 = 2.1 = 71 * Sanitize shortcode parameters 72 70 73 = 2.0 = 71 74 * Fix compatibility issues with PHP 8.2 and 8.3 -
wonderplugin-video-embed/trunk/wonderpluginvideoembed.php
r3045324 r3233631 4 4 Plugin URI: https://www.wonderplugin.com/wordpress-video-player/ 5 5 Description: WordPress Video Embed Plugin & Widget 6 Version: 2. 06 Version: 2.1 7 7 Author: Magic Hills Pty Ltd 8 8 Author URI: https://www.wonderplugin.com … … 15 15 return; 16 16 17 define('WONDERPLUGIN_VIDEOEMBED_VERSION', '2. 0');17 define('WONDERPLUGIN_VIDEOEMBED_VERSION', '2.1'); 18 18 define('WONDERPLUGIN_VIDEOEMBED_URL', plugin_dir_url( __FILE__ )); 19 19 define('WONDERPLUGIN_VIDEOEMBED_PATH', plugin_dir_path( __FILE__ )); 20 20 define('WONDERPLUGIN_VIDEOEMBED_PLUGIN', basename(dirname(__FILE__)) . '/' . basename(__FILE__)); 21 define('WONDERPLUGIN_VIDEOEMBED_PLUGIN_VERSION', '2. 0');21 define('WONDERPLUGIN_VIDEOEMBED_PLUGIN_VERSION', '2.1'); 22 22 23 23 require_once 'app/class-wonderplugin-videoembed-controller.php';
Note: See TracChangeset
for help on using the changeset viewer.