PK!΂QQ css/admin.cssnu[.uploader input.button { height: 34px; line-height: 1; margin-top: 15px; width: 100%; } .tribe_preview .aligncenter { display: block; margin-left: auto !important; margin-right: auto !important; } .tribe_preview { max-height: 300px; overflow: hidden; } .tribe_preview img { height: auto; margin: 10px 0; max-width: 100%; }PK!*  index.phpnu['; return img_html; }, // Hide or display the WordPress image size fields depending on if 'Custom' is selected. toggleSizes : function( widget_id, widget_id_string ) { if ( $( '#' + widget_id_string + 'size' ).val() == 'tribe_image_widget_custom' ) { $( '#' + widget_id_string + 'custom_size_fields').slideDown(); } else { $( '#' + widget_id_string + 'custom_size_fields').slideUp(); } }, // Update the image height based on the image width. changeImgWidth : function( widget_id, widget_id_string ) { var aspectRatio = $("#" + widget_id_string + 'aspect_ratio').val(); if ( aspectRatio ) { var width = $( '#' + widget_id_string + 'width' ).val(); var height = Math.round( width / aspectRatio ); $( '#' + widget_id_string + 'height' ).val(height); //imageWidget.changeImgSize( widget_id, widget_id_string, width, height ); } }, // Update the image width based on the image height. changeImgHeight : function( widget_id, widget_id_string ) { var aspectRatio = $("#" + widget_id_string + 'aspect_ratio').val(); if ( aspectRatio ) { var height = $( '#' + widget_id_string + 'height' ).val(); var width = Math.round( height * aspectRatio ); $( '#' + widget_id_string + 'width' ).val(width); //imageWidget.changeImgSize( widget_id, widget_id_string, width, height ); } } }; }); PK!*  js/index.phpnu[0) { //code for retrieving GET vars (we want the value of widget_id) var widget_id = ''; document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () { function decode(s) { return decodeURIComponent(s.split("+").join(" ")); } var key = decode(arguments[1]); if (key == 'widget_id') { widget_id = decode(arguments[2]); } }); if (widget_id.length > 0) {//do we have a value? //insert hidden field into form jQuery('form#filter').append( jQuery('') .attr('type', 'hidden') .attr('name', 'widget_id') .val(widget_id) ); } } }); /* * Thanks to http://github.com/kvz/phpjs/raw/master/functions/url/parse_url.js */ function parse_url (str, component) { // http://kevin.vanzonneveld.net // + original by: Steven Levithan (http://blog.stevenlevithan.com) // + reimplemented by: Brett Zamir (http://brett-zamir.me) // + input by: Lorenzo Pisani // + input by: Tony // + improved by: Brett Zamir (http://brett-zamir.me) // % note: Based on http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js // % note: blog post at http://blog.stevenlevithan.com/archives/parseuri // % note: demo at http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js // % note: Does not replace invalid characters with '_' as in PHP, nor does it return false with // % note: a seriously malformed URL. // % note: Besides function name, is essentially the same as parseUri as well as our allowing // % note: an extra slash after the scheme/protocol (to allow file:/// as in PHP) // * example 1: parse_url('http://username:password@hostname/path?arg=value#anchor'); // * returns 1: {scheme: 'http', host: 'hostname', user: 'username', pass: 'password', path: '/path', query: 'arg=value', fragment: 'anchor'} var key = ['source', 'scheme', 'authority', 'userInfo', 'user', 'pass', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'fragment'], ini = (this.php_js && this.php_js.ini) || {}, mode = (ini['phpjs.parse_url.mode'] && ini['phpjs.parse_url.mode'].local_value) || 'php', parser = { php: /^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/\/?)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // Added one optional slash to post-scheme to catch file:/// (should restrict this) }; var m = parser[mode].exec(str), uri = {}, i = 14; while (i--) { if (m[i]) { uri[key[i]] = m[i]; } } if (component) { return uri[component.replace('PHP_URL_', '').toLowerCase()]; } if (mode !== 'php') { var name = (ini['phpjs.parse_url.queryKey'] && ini['phpjs.parse_url.queryKey'].local_value) || 'queryKey'; parser = /(?:^|&)([^&=]*)=?([^&]*)/g; uri[name] = {}; uri[key[12]].replace(parser, function ($0, $1, $2) { if ($1) {uri[name][$1] = $2;} }); } delete uri.source; return uri; } /* /wp-admin/media-upload.php?type=image&widget_id=widget_sp_image-11& */PK!΂QQ css/admin.cssnu[PK!*  index.phpnu[PK!~/ppjs/image-widget.jsnu[PK!*  js/index.phpnu[PK!-\#js/image-widget.deprecated.jsnu[PK!qll*"js/image-widget.deprecated.upload-fixer.jsnu[PK5