Version Description
= 4.6.5 = rtMedia 4.6.5 with added added fixes such as sitewide activities media missing in media page, JS errors on trying to edit an image, along with other small UI/UX fixes and improvements.
Download this release
Release Info
Developer | rtcamp |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | v4.6.5 |
Comparing to | |
See all releases |
Code changes from version 4.6.4 to v4.6.5
- app/assets/admin/js/admin.min.js +1 -1
- app/assets/admin/js/settings.js +1 -0
- app/assets/js/rtMedia.backbone.js +46 -8
- app/helper/RTMediaSupport.php +6 -0
- app/main/controllers/activity/RTMediaBuddyPressActivity.php +21 -0
- app/main/controllers/template/RTMediaTemplate.php +2 -0
- app/main/controllers/template/rtmedia-actions.php +1 -1
- index.php +2 -2
- languages/buddypress-media.po +37 -37
- readme.txt +14 -5
app/assets/admin/js/admin.min.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
* @package rtMedia
|
4 |
*/
|
5 |
|
6 |
-
"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(n,s){var r={init:function(e,t){var r=this;r.elem=t,r.$elem=n(t),r.options=n.extend({},n.fn.rtTab.options,e),r.rtTabs()},rtTabs:function(){var t=this,e=t.options.activeTab;if(t.$elem.find("li:nth-child("+e+")").addClass("active"),t.rtTabContent(activeTabContent="yes"),t.rtClick(),!0==("false"!==t.$elem.attr("data-hash"))){var r=s.location.hash;r&&t.$elem.find("li").find('a[href="'+r+'"]').trigger("click"),n(s).on("hashchange",function(){var e=s.location.hash;t.$elem.find("li").find('a[href="'+e+'"]').trigger("click")})}},rtClick:function(){var a=this,i=a.$elem.find("li");i.find("a").on("click",function(e){e.preventDefault(),i.removeClass("active"),a.rtTabContent(),n(this).parent().addClass("active");var t=n(this).attr("href");if(n(t).removeClass("hide"),!0==("false"!==a.$elem.attr("data-hash"))){var r=n(s).scrollTop();location.hash=n(this).attr("href"),n(s).scrollTop(r)}"function"==typeof a.options.onComplete&&a.options.onComplete.apply(a.elem,arguments)})},rtTabContent:function(r){this.$elem.find("li").find("a").each(function(){var e=n(this),t=e.attr("href");"yes"===r&&e.parent().hasClass("active")||n(t).addClass("hide")})}};n.fn.rtTab=function(t){return this.each(function(){var e=Object.create(r);e.init(t,this),n.data(this,"rtTab",e)})},n.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document),jQuery(document).ready(function(a){var e=document.createElement("div");e.setAttribute("class","rtm-warning rtm-fly-warning hide"),a(".rtm-tabs").rtTab(),a('input[name^="rtmedia-options"]').on("change",function(){a(".rtm-save-settings-msg").remove(),0===a(".rtm-fly-warning").length&&(e.innerText=rtmedia_admin_strings.settings_changed,a(".rtm-button-container.top").prepend(e),a(".rtm-fly-warning").slideDown())}),a(".rtm-img-size-setting .form-table tr:nth-child(7) td:last-child").attr("colspan","3"),a(".rtm-field-wrap .switch input[type=checkbox]").each(function(){var e=a(this);e.parents("table").attr("data-depends")||(e.is(":checked")?(e.parents("table").next(".rtm-notice").slideDown(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideDown()})):(e.parents("table").next(".rtm-notice").slideUp(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideUp()}))),e.parents("tr").next("tr").attr("data-depends")&&(e.is(":checked")?e.parents("tr").next("tr").slideDown():e.parents("tr").next("tr").slideUp())}),a(".rtm-field-wrap .switch input[type=checkbox]").on("change",function(){var e=a(this);e.parents("table").attr("data-depends")||(e.parents("table").next(".rtm-notice").slideToggle(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideToggle()})),e.parents("tr").next("tr").attr("data-depends")&&e.parents("tr").next("tr").slideToggle()});new(Backbone.View.extend({el:a(".bp-media-admin"),events:{"click .rtm-theme":"render","click .rtm-close":"close","click .rtm-previous":"previousTheme","click .rtm-next":"nextTheme",keyup:"keyEvent"},initialize:function(){_.bindAll(this,"render","close","nextTheme","previousTheme","keyEvent"),this.keyEvent()},render:function(e){a(".rtm-theme").removeClass("rtm-modal-open");var t=a(e.currentTarget).addClass("rtm-modal-open").find(".rtm-theme-content").html();if(a(".rtm-theme-overlay")[0])a(".rtm-theme-overlay").show(),a(this.el).find(".rtm-theme-content-wrap").empty().append(t);else{var r={themeContent:t};a(this.el).append(rtMediaAdmin.templates.rtm_theme_overlay(r))}a(e.currentTarget).is(":first-child")?a(".rtm-previous").addClass("disabled"):a(e.currentTarget).is(":last-child")?a(".rtm-next").addClass("disabled"):a(".rtm-next, .rtm-previous").removeClass("disabled")},close:function(){a(".rtm-theme").removeClass("rtm-modal-open"),a(".rtm-theme-overlay").hide(),a(".rtm-next, .rtm-previous").removeClass("disabled")},nextTheme:function(e){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1},previousTheme:function(e){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1},keyEvent:function(){a("body").on("keyup",function(e){return 39===e.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1):37===e.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1):void(27===e.keyCode&&a(".rtm-close").trigger("click"))})}}));jQuery("#rtm-licenses .regular-text").each(function(){jQuery(this).keypress(function(e){if("13"==(e.keyCode?e.keyCode:e.which))return!1})}),jQuery("#bp_media_settings_form").on("submit",function(e){jQuery("#rtcss-notice").remove();var t=jQuery("#rtmedia-custom-css").val().match(/@import\s*(url)?\s*\(?([^;]+?)\)?;/);if(null!=t&&null!=t[0])return jQuery("#rtmedia-custom-css").after('<div id="rtcss-notice" class="error"><p>'+rtmedia_admin_strings.wrong_css_input+"</p></div>"),!1})});var rtMediaAdmin=new Object;function rtmedia_addon_do_not_show(){jQuery.post(rtmedia_admin_ajax,{action:"rtmedia_addon_popup_not_show_again"},function(e){jQuery("#TB_window").remove(),jQuery("#TB_overlay").remove()})}rtMediaAdmin.templates={rtm_image:wp.template("rtm-image"),rtm_msg_div:wp.template("rtm-msg-div"),rtm_album_favourites_importer:wp.template("rtm-album-favourites-importer"),rtm_map_mapping_failure:wp.template("rtm-map-mapping-failure"),rtm_p_tag:wp.template("rtm-p-tag"),rtm_theme_overlay:wp.template("rtm-theme-overlay")},jQuery(document).ready(function(g){var i=g("#bp-media-settings-boxes"),t=g("#bp_media_settings_form .bp-media-metabox-holder"),e=g("#rtm-licenses");0<e.length&&e.find(".license-inner:first input:first").focus();var r=document.createElement("div");function n(n){return jQuery.getJSON(ajaxurl,n,function(e){if(favorites=!1,e){var t=Math.ceil((5*parseInt(e.page)+parseInt(n.values.finished))/parseInt(n.values.total)*100);comments_total=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.total").html(),users_total=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.total").html(),media_total=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.total").html(),comments_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(),users_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html();var r=Math.ceil((parseInt(e.comments)+parseInt(comments_finished))/parseInt(comments_total)*100),a=Math.ceil(parseInt(e.users)/parseInt(users_total)*100);(100<t||100==t)&&(t=100,favorites=!0),jQuery(".bp-album-media #rtprogressbar>div").css("width",t+"%"),jQuery(".bp-album-comments #rtprogressbar>div").css("width",r+"%"),jQuery(".bp-album-users #rtprogressbar>div").css("width",a+"%"),media_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(),parseInt(media_finished)<parseInt(media_total)&&jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(parseInt(media_finished)+n.count),jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(parseInt(e.comments)+parseInt(comments_finished)),jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html(parseInt(e.users)),favorites&&(favorite_data={action:"rtmedia_rt_album_import_favorites",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},jQuery.post(ajaxurl,favorite_data,function(e){if(!e.hasOwnProperty(favorites)||0===e.favorites&&"0"===e.favorites)window.setTimeout(s,2e3);else{if(!jQuery(".bp-album-favorites").length){var t={users:e.users};jQuery(".bp-album-comments").after(rtMediaAdmin.templates.rtm_album_favourites_importer(t))}$favorites={},0!==e.offset||"0"!==e.offset?start=1*e.offset+1:start=1;for(var r=start;r<=e.users;r++)$count=1,r===e.users&&($count=parseInt(e.users%$count),0==$count&&($count=1)),newvals={action:"rtmedia_rt_album_import_step_favorites",offset:r-1,redirect:r===e.users,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$favorites[r]=newvals;var a=jQuery.Deferred();a.resolve(),jQuery.each($favorites,function(e,t){a=a.pipe(function(){return function(e){return jQuery.post(ajaxurl,e,function(e){redirect=!1,favorites_total=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.total").html(),favorites_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(),jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(parseInt(favorites_finished)+1);var t=Math.ceil(parseInt(favorites_finished+1)/parseInt(favorites_total)*100);(100<t||100==t)&&(t=100,redirect=!0),jQuery(".bp-album-favorites #rtprogressbar>div").css("width",t+"%"),redirect&&window.setTimeout(s,2e3)})}(t)})})}},"json"))}else if(n.hasOwnProperty(page)){var i={msg:"Row "+e.page+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(i))}else{i={msg:rtmedia_admin_strings.request_failed};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(i))}})}function s(){window.location=document.URL}r.className="support_form_loader",0<g(".rtm-save-settings-msg").length&&setTimeout(function(){g(".rtm-save-settings-msg").remove()},1e4),jQuery("#spread-the-word").on("click","#bp-media-add-linkback",function(){var e={action:"rtmedia_linkback",linkback:jQuery("#bp-media-add-linkback:checked").length};jQuery.post(rtmedia_admin_ajax,e,function(e){})}),i.on("change","#select-request",function(){if(jQuery(this).val()){t.html(r);var e={action:"rtmedia_select_request",form:jQuery(this).val()};jQuery.post(ajaxurl,e,function(e){t.html(e).fadeIn("slow")})}}),i.on("click","#cancel-request",function(){if(jQuery(this).val()){t.html(),t.html(r);jQuery.post(ajaxurl,{action:"rtmedia_cancel_request"},function(e){t.html(),t.html(e).fadeIn("slow")})}}),i.on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(i){var e=!0,n=new RegExp("^[0-9]+$"),t="";g("input[name*='defaultSizes']").each(function(){var e=g(this);if(e.css("border-color","#7e8993").next(".error_msg").remove(),!n.test(e.val())){var t=e.attr("name");t=(t=(t=t.replace("rtmedia-options[defaultSizes_","")).replace("]","")).replace(/_/g," ");var r=RTMedia_Admin_Settings_JS.rtmedia_default_sizes_error_message;r=r.replace("[default_size_property]",t);var a=e.parents(".rtm-content").attr("id");return 0<a.length&&g("#tab-"+a).click(),i.preventDefault(),u(e,r)}});var r=jQuery('input[name^="rtmedia-options[general_videothumbs]"]');if(e&&0<r.length&&void 0!==r){t="";var a=0;if(r.val()<=0?(t+=rtmedia_admin_strings.video_thumbnail_error,a=2):n.test(r.val())||(t+=rtmedia_admin_strings.video_thumbnail_invalid_value+" "+Math.round(r.val())+".",a=Math.round(r.val())),""!==t)return alert(t),r.val(a),e=!1}var s=jQuery('input[name^="rtmedia-options[general_jpeg_image_quality]"]');if(e&&1===s.length&&void 0!==s&&(s.val()<=0?t+=rtmedia_admin_strings.jpeg_quality_negative_error:100<s.val()?t+=rtmedia_admin_strings.jpeg_quality_percentage_error:n.test(s.val())||(t+=rtmedia_admin_strings.jpeg_quality_invalid_value+" "+Math.round(s.val())+"."),""!==t)){s.next(".error_msg").remove();var o=s.parents(".rtm-content").attr("id");return 0<o.length&&g("#tab-"+o).click(),u(s,t)}var m=jQuery('input[name^="rtmedia-options[general_perPageMedia]"]');if(e&&1===m.length&&void 0!==m&&(m.val()<1?t+=rtmedia_admin_strings.per_page_media_negative_value:jQuery.isNumeric(m.val())&&Math.floor(m.val())!=m.val()&&(t+=rtmedia_admin_strings.per_page_media_positive_error+" "+Math.round(m.val())+"."),""!==t)){m.next(".error_msg").remove();var d=m.parents(".rtm-content").attr("id");return 0<d.length&&g("#tab-"+d).click(),u(m,t)}e||i.preventDefault()}),jQuery(document).on("click","#bpm-services .encoding-try-now,#rtm-services .encoding-try-now",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.are_you_sure)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_free_encoding_subscribe"};jQuery.getJSON(ajaxurl,t,function(e){if(void 0===e.error&&e.apikey){var t=window.location.href,r=window.location.hash;t=t.replace(r,""),document.location.href=t+"&apikey="+e.apikey+r}else{jQuery(".encoding-try-now").next().remove(),jQuery("#settings-error-encoding-error").remove();var a={id:"settings-error-encoding-error",msg:e.error,class:"error"};i.before(rtMediaAdmin.templates.rtm_msg_div(a))}})}}),jQuery(document).on("click","#api-key-submit",function(e){if(e.preventDefault(),0==jQuery(this).next("img").length){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t))}t={action:"rtmedia_enter_api_key",apikey:jQuery("#new-api-key").val()};jQuery.getJSON(ajaxurl,t,function(e){if(void 0===e.error&&e.apikey){var t=window.location.href,r=window.location.hash;-1===(t=t.replace(r,"")).toString().indexOf("&apikey="+e.apikey)&&(t+="&apikey="+e.apikey),-1===t.toString().indexOf("&update=true")&&(t+="&update=true"),document.location.href=t+r}else{jQuery("#settings-error-api-key-error").remove();var a={id:"settings-error-api-key-error",msg:e.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(a))}jQuery("#api-key-submit").next("img").remove()})}),jQuery(document).on("click","#disable-encoding",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.disable_encoding)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_disable_encoding"};jQuery.post(ajaxurl,t,function(e){if(e){if(jQuery(".settings-error-encoding-disabled").remove(),0<jQuery("#settings-encoding-successfully-updated").length)jQuery("#settings-encoding-successfully-updated p").html(e);else{var t={id:"settings-encoding-successfully-updated",msg:e,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}jQuery("#rtmedia-encoding-usage").hide(),jQuery("#disable-encoding").next("img").remove(),jQuery("#disable-encoding").hide(),jQuery("#enable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();t={id:"settings-error-encoding-disabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}})}}),jQuery(document).on("click","#enable-encoding",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.enable_encoding)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_enable_encoding"};jQuery.post(ajaxurl,t,function(e){if(e){if(jQuery(".settings-error-encoding-enabled").remove(),0<jQuery("#settings-encoding-successfully-updated").length)jQuery("#settings-encoding-successfully-updated p").html(e);else{var t={id:"settings-encoding-successfully-updated",msg:e,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}var r=jQuery("#enable-encoding");r.next("img").remove(),r.hide(),jQuery("#disable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();t={id:"settings-error-encoding-enabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}})}}),jQuery(".bp-media-encoding-table").on("click",".bpm-unsubscribe",function(e){e.preventDefault(),jQuery("#bpm-unsubscribe-dialog").dialog({dialogClass:"wp-dialog",modal:!0,buttons:{Unsubscribe:function(){jQuery(this).dialog("close");var e={src:rtmedia_admin_url+"images/wpspin_light.gif"},r=g(".bpm-unsubscribe");r.after(rtMediaAdmin.templates.rtm_image(e));e={action:"rtmedia_unsubscribe_encoding_service",note:jQuery("#bpm-unsubscribe-note").val(),plan:r.attr("data-plan"),price:r.attr("data-price")};jQuery.getJSON(ajaxurl,e,function(e){if(void 0===e.error&&e.updated){r.next().remove(),r.after(e.form),r.remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var t={id:"settings-unsubscribed-successfully",msg:e.updated,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t)),window.location.hash="#settings-unsubscribed-successfully"}else{r.next().remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();t={id:"settings-unsubscribe-error",msg:e.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t)),window.location.hash="#settings-unsubscribe-error"}})}}})}),jQuery("#bpmedia-bpalbumimporter").on("change","#bp-album-import-accept",function(){jQuery(".bp-album-import-accept").toggleClass("i-accept"),jQuery(".bp-album-importer-wizard").slideToggle()}),jQuery("#rtprivacyinstall").click(function(e){e.preventDefault(),$progress_parent=jQuery("#rtprivacyinstaller"),$progress_parent.find(".rtprivacytype").each(function(){if($type=jQuery(this).attr("id"),"total"===$type){$values=[],jQuery(this).find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),$data={};for(var e=1;e<=$values.steps[0];e++)$count=20,e===$values.steps[0]&&($count=parseInt($values.laststep[0]),0===$count&&($count=20)),newvals={page:e,action:"rtmedia_privacy_install",count:$count,values:$values},$data[e]=newvals;var r=jQuery.Deferred();r.resolve(),jQuery.each($data,function(e,t){r=r.pipe(function(){return function(i){return jQuery.post(ajaxurl,i,function(e){if(0!=e){var t=!1,r=Math.ceil((20*parseInt(e)+parseInt(i.values.finished))/parseInt(i.values.total)*100);100<r&&(r=100,t=!0),jQuery("#rtprogressbar>div").css("width",r+"%"),finished=jQuery("#rtprivacyinstaller span.finished").html(),jQuery("#rtprivacyinstaller span.finished").html(parseInt(finished)+i.count),t&&jQuery.post(ajaxurl,{action:"rtmedia_privacy_redirect"},function(e){window.location=settings_url})}else{var a={msg:"Row "+e+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(a))}})}(t)})})}})}),jQuery("#bpmedia-bpalbumimport-cleanup").click(function(e){e.preventDefault(),jQuery.post(ajaxurl,{action:"rtmedia_rt_album_cleanup",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},function(e){window.location=settings_rt_album_import_url})}),jQuery("#bpmedia-bpalbumimporter").on("click","#bpmedia-bpalbumimport",function(e){if(e.preventDefault(),jQuery("#bp-album-import-accept").prop("checked")){if(jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),!jQuery(".bpm-ajax-loader").length){var t={src:rtmedia_admin_url+"images/wpspin_light.gif",class:"bpm-ajax-loader",norefresh:rtmedia_admin_strings.no_refresh};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t))}$progress_parent=jQuery("#bpmedia-bpalbumimport"),$values=[],jQuery(this).parent().find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),0==$values.steps[0]&&($values.steps[0]=1),$data={};for(i=1;i<=$values.steps[0];i++)$count=5,i==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:i,action:"rtmedia_rt_album_import",count:$count,values:$values,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$data[i]=newvals;var r=jQuery.Deferred();r.resolve(),jQuery.each($data,function(e,t){r=r.pipe(function(){return n(t)})})}else{jQuery("html, body").animate({scrollTop:jQuery("#bp-album-import-accept").offset().top},500);var a=jQuery(".bp-album-import-accept"),i=3;(function e(){a.css("background-color","#EE0000"),setTimeout(function(){a.css("background-color","#FFEBE8"),--i&&setTimeout(e,500)},500)})()}}),i.on("click",".interested",function(){jQuery(".interested-container").removeClass("hidden"),jQuery(".choice-free").attr("required","required")}),i.on("click",".not-interested",function(){jQuery(".interested-container").addClass("hidden"),jQuery(".choice-free").removeAttr("required")}),jQuery("#video-transcoding-main-container").on("click",".video-transcoding-survey",function(e){e.preventDefault();var t={action:"rtmedia_convert_videos_form",email:jQuery(".email").val(),url:jQuery(".url").val(),choice:jQuery('input[name="choice"]:checked').val(),interested:jQuery('input[name="interested"]:checked').val()};return jQuery.post(ajaxurl,t,function(e){var t={msg:e,strong:"yes"};jQuery("#video-transcoding-main-container").html(rtMediaAdmin.templates.rtm_p_tag(t))}),!1}),jQuery("#bpmedia-bpalbumimporter").on("click",".deactivate-bp-album",function(e){e.preventDefault(),$bpalbum=jQuery(this);var t={action:"rtmedia_rt_album_deactivate",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()};jQuery.get(ajaxurl,t,function(e){if(e)location.reload();else{var t={msg:rtmedia_admin_strings.something_went_wrong};$bpalbum.parent().after(rtMediaAdmin.templates.rtm_p_tag(t))}})}),jQuery(".updated").on("click",".bpm-hide-encoding-notice",function(){var e={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(e));e={action:"rtmedia_hide_encoding_notice"};jQuery.post(ajaxurl,e,function(e){e&&jQuery(".bpm-hide-encoding-notice").closest(".updated").remove()})}),jQuery("#rtmedia-bp-enable-activity").is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0),jQuery("#rtmedia-bp-enable-activity").on("click",function(e){jQuery(this).is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0)});var a;function u(e,t){var r=jQuery(e);r.focus(),r.css("border-color","red");var a=r.parent();if(0<a.length&&"error_msg"!==a.attr("class")){var i=jQuery("<span />").attr("style","display:block").addClass("error_msg").html(t);r.after(i)}return return_code=!1}void 0!==rtmedia_on_label&&rtmedia_on_label,void 0!==rtmedia_off_label&&rtmedia_off_label,jQuery("input[type=file]").on("change",function(e){a=e.target.files,function(e){e.stopPropagation(),e.preventDefault();var r=new FormData;void 0!==e&&void 0!==e.target&&void 0!==e.target.name&&"rtFileInput"===e.target.name&&r.append("import_export_control",e.target.name);jQuery.each(a,function(e,t){r.append(e,t)});var t=jQuery("#rtmedia_admin_upload_nonce").val();void 0!==t&&""!==t&&r.append("rtmedia_admin_upload_nonce",t);r.append("action","rtmedia_admin_upload"),jQuery.ajax({url:rtmedia_admin_ajax,type:"POST",data:r,cache:!1,processData:!1,contentType:!1,success:function(e){if(e.hasOwnProperty("rtm_response")&&e.hasOwnProperty("rtm_response_msg")){jQuery("#rtm-setting-msg").remove();var t=jQuery("<div/>",{id:"rtm-setting-msg",class:"rtm-fly-warning"});"success"===e.rtm_response?(t.addClass("rtm-success rtm-save-settings-msg"),t.text(e.rtm_response_msg),jQuery(".rtm-button-container.top").append(t),location.reload()):"error"===e.rtm_response&&(t.addClass("rtm-warning"),t.text(e.rtm_response_msg),jQuery(".rtm-button-container.top").append(t),t.delay(3e3).fadeOut(100))}if(void 0===e.error){if(e.exceed_size_msg)return jQuery("#debuglog").val(""),alert(e.exceed_size_msg),!1;jQuery("#debuglog_temp_path").val(e.debug_attachmanet)}else jQuery("#debuglog").val(""),alert("ERRORS: "+e.error)}})}(e)}),jQuery("#rtmedia-submit-request").click(function(){var e=jQuery("#name").val(),t=jQuery("#email").val(),r=jQuery("#website").val(),a=jQuery("#subject").val(),i=jQuery("#details").val(),n=jQuery('input[name="request_type"]').val(),s=jQuery('input[name="request_id"]').val(),o=jQuery('input[name="server_address"]').val(),m=jQuery('input[name="ip_address"]').val(),d=jQuery('input[name="server_type"]').val(),u=jQuery('input[name="user_agent"]').val(),l={name:e,email:t,website:r,subject:a,details:i,request_id:s,request_type:"premium_support",server_address:o,ip_address:m,server_type:d,user_agent:u,debuglog_temp_path:jQuery('input[name="debuglog_temp_path"]').val()};if("bug_report"==n){var p=jQuery("#wp_admin_username").val();if(""===p)return alert(rtmedia_admin_support_strings.wp_admin_username_error),!1;var c=jQuery("#wp_admin_pwd").val();if(""===c)return alert(rtmedia_admin_support_strings.wp_admin_pwd_error),!1;var _=jQuery("#ssh_ftp_host").val();if(""===_)return alert(rtmedia_admin_support_strings.ssh_ftp_host_error),!1;var f=jQuery("#ssh_ftp_username").val();if(""===f)return alert(rtmedia_admin_support_strings.ssh_ftp_username_error),!1;var v=jQuery("#ssh_ftp_pwd").val();if(""===v)return alert(rtmedia_admin_support_strings.ssh_ftp_pwd_error),!1;l={name:e,email:t,website:r,subject:a,details:i,request_id:s,request_type:"premium_support",server_address:o,ip_address:m,server_type:d,user_agent:u,wp_admin_username:p,wp_admin_pwd:c,ssh_ftp_host:_,ssh_ftp_username:f,ssh_ftp_pwd:v}}for(formdata in l){if(""===l[formdata]&&"debuglog_temp_path"!==formdata)return alert("Please enter "+formdata.replace("_"," ")+" field."),!1;if(""===l[formdata]&&"debuglog_temp_path"===formdata)return alert("Please upload attachment."),!1}return data={action:"rtmedia_submit_request",form_data:l,support_wpnonce:jQuery("#support_wpnonce").val()},jQuery.post(ajaxurl,data,function(e){if("false"==(e=e.trim()))return alert(rtmedia_admin_support_strings.all_fields_error),!1;g("#rtmedia_service_contact_container").empty(),g("#rtmedia_service_contact_container").append(e)}),!1}),jQuery("#cancel-request").click(function(){return!1}),jQuery(".rtm_enable_masonry_view input[type=checkbox]").is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide(),jQuery(".rtm_enable_masonry_view input[type=checkbox]").on("click",function(e){jQuery(this).is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide()}),jQuery("#rtm-masonry-change-thumbnail-info").click(function(e){jQuery("html, body").animate({scrollTop:0},"500","swing")}),jQuery("#rtm-export-button").click(function(){data={action:"rtmedia_export_settings"},jQuery.post(ajaxurl,data,function(e){var t="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e)),r=document.createElement("a");r.setAttribute("href",t),r.setAttribute("download","rtm-settings.json"),jQuery("body").append(r),r.click(),r.remove()})}),jQuery("#rtm-export-data-button").click(function(){window.location.href="/wp-admin/tools.php?page=export_personal_data"}),jQuery("#rtm-erase-data-button").click(function(){window.location.href="/wp-admin/tools.php?page=remove_personal_data"})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
|
3 |
* @package rtMedia
|
4 |
*/
|
5 |
|
6 |
+
"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(n,s){var r={init:function(e,t){var r=this;r.elem=t,r.$elem=n(t),r.options=n.extend({},n.fn.rtTab.options,e),r.rtTabs()},rtTabs:function(){var t=this,e=t.options.activeTab;if(t.$elem.find("li:nth-child("+e+")").addClass("active"),t.rtTabContent(activeTabContent="yes"),t.rtClick(),!0==("false"!==t.$elem.attr("data-hash"))){var r=s.location.hash;r&&t.$elem.find("li").find('a[href="'+r+'"]').trigger("click"),n(s).on("hashchange",function(){var e=s.location.hash;t.$elem.find("li").find('a[href="'+e+'"]').trigger("click")})}},rtClick:function(){var a=this,i=a.$elem.find("li");i.find("a").on("click",function(e){e.preventDefault(),i.removeClass("active"),a.rtTabContent(),n(this).parent().addClass("active");var t=n(this).attr("href");if(n(t).removeClass("hide"),!0==("false"!==a.$elem.attr("data-hash"))){var r=n(s).scrollTop();location.hash=n(this).attr("href"),n(s).scrollTop(r)}"function"==typeof a.options.onComplete&&a.options.onComplete.apply(a.elem,arguments)})},rtTabContent:function(r){this.$elem.find("li").find("a").each(function(){var e=n(this),t=e.attr("href");"yes"===r&&e.parent().hasClass("active")||n(t).addClass("hide")})}};n.fn.rtTab=function(t){return this.each(function(){var e=Object.create(r);e.init(t,this),n.data(this,"rtTab",e)})},n.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document),jQuery(document).ready(function(a){var e=document.createElement("div");e.setAttribute("class","rtm-warning rtm-fly-warning hide"),a(".rtm-tabs").rtTab(),a('input[name^="rtmedia-options"]').on("change",function(){a(".rtm-save-settings-msg").remove(),0===a(".rtm-fly-warning").length&&(e.innerText=rtmedia_admin_strings.settings_changed,a(".rtm-button-container.top").prepend(e),a(".rtm-fly-warning").slideDown())}),a(".rtm-img-size-setting .form-table tr:nth-child(7) td:last-child").attr("colspan","3"),a(".rtm-field-wrap .switch input[type=checkbox]").each(function(){var e=a(this);e.parents("table").attr("data-depends")||(e.is(":checked")?(e.parents("table").next(".rtm-notice").slideDown(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideDown()})):(e.parents("table").next(".rtm-notice").slideUp(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideUp()}))),e.parents("tr").next("tr").attr("data-depends")&&(e.is(":checked")?e.parents("tr").next("tr").slideDown():e.parents("tr").next("tr").slideUp())}),a(".rtm-field-wrap .switch input[type=checkbox]").on("change",function(){var e=a(this);e.parents("table").attr("data-depends")||(e.parents("table").next(".rtm-notice").slideToggle(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideToggle()})),e.parents("tr").next("tr").attr("data-depends")&&e.parents("tr").next("tr").slideToggle()});new(Backbone.View.extend({el:a(".bp-media-admin"),events:{"click .rtm-theme":"render","click .rtm-close":"close","click .rtm-previous":"previousTheme","click .rtm-next":"nextTheme",keyup:"keyEvent"},initialize:function(){_.bindAll(this,"render","close","nextTheme","previousTheme","keyEvent"),this.keyEvent()},render:function(e){a(".rtm-theme").removeClass("rtm-modal-open");var t=a(e.currentTarget).addClass("rtm-modal-open").find(".rtm-theme-content").html();if(a(".rtm-theme-overlay")[0])a(".rtm-theme-overlay").show(),a(this.el).find(".rtm-theme-content-wrap").empty().append(t);else{var r={themeContent:t};a(this.el).append(rtMediaAdmin.templates.rtm_theme_overlay(r))}a(e.currentTarget).is(":first-child")?a(".rtm-previous").addClass("disabled"):a(e.currentTarget).is(":last-child")?a(".rtm-next").addClass("disabled"):a(".rtm-next, .rtm-previous").removeClass("disabled")},close:function(){a(".rtm-theme").removeClass("rtm-modal-open"),a(".rtm-theme-overlay").hide(),a(".rtm-next, .rtm-previous").removeClass("disabled")},nextTheme:function(e){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1},previousTheme:function(e){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1},keyEvent:function(){a("body").on("keyup",function(e){return 39===e.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1):37===e.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1):void(27===e.keyCode&&a(".rtm-close").trigger("click"))})}}));jQuery("#rtm-licenses .regular-text").each(function(){jQuery(this).keypress(function(e){if("13"==(e.keyCode?e.keyCode:e.which))return!1})}),jQuery("#bp_media_settings_form").on("submit",function(e){jQuery("#rtcss-notice").remove();var t=jQuery("#rtmedia-custom-css").val().match(/@import\s*(url)?\s*\(?([^;]+?)\)?;/);if(null!=t&&null!=t[0])return jQuery("#rtmedia-custom-css").after('<div id="rtcss-notice" class="error"><p>'+rtmedia_admin_strings.wrong_css_input+"</p></div>"),!1})});var rtMediaAdmin=new Object;function rtmedia_addon_do_not_show(){jQuery.post(rtmedia_admin_ajax,{action:"rtmedia_addon_popup_not_show_again"},function(e){jQuery("#TB_window").remove(),jQuery("#TB_overlay").remove()})}rtMediaAdmin.templates={rtm_image:wp.template("rtm-image"),rtm_msg_div:wp.template("rtm-msg-div"),rtm_album_favourites_importer:wp.template("rtm-album-favourites-importer"),rtm_map_mapping_failure:wp.template("rtm-map-mapping-failure"),rtm_p_tag:wp.template("rtm-p-tag"),rtm_theme_overlay:wp.template("rtm-theme-overlay")},jQuery(document).ready(function(g){var i=g("#bp-media-settings-boxes"),t=g("#bp_media_settings_form .bp-media-metabox-holder"),e=g("#rtm-licenses");0<e.length&&e.find(".license-inner:first input:first").focus();var r=document.createElement("div");function n(n){return jQuery.getJSON(ajaxurl,n,function(e){if(favorites=!1,e){var t=Math.ceil((5*parseInt(e.page)+parseInt(n.values.finished))/parseInt(n.values.total)*100);comments_total=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.total").html(),users_total=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.total").html(),media_total=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.total").html(),comments_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(),users_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html();var r=Math.ceil((parseInt(e.comments)+parseInt(comments_finished))/parseInt(comments_total)*100),a=Math.ceil(parseInt(e.users)/parseInt(users_total)*100);(100<t||100==t)&&(t=100,favorites=!0),jQuery(".bp-album-media #rtprogressbar>div").css("width",t+"%"),jQuery(".bp-album-comments #rtprogressbar>div").css("width",r+"%"),jQuery(".bp-album-users #rtprogressbar>div").css("width",a+"%"),media_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(),parseInt(media_finished)<parseInt(media_total)&&jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(parseInt(media_finished)+n.count),jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(parseInt(e.comments)+parseInt(comments_finished)),jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html(parseInt(e.users)),favorites&&(favorite_data={action:"rtmedia_rt_album_import_favorites",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},jQuery.post(ajaxurl,favorite_data,function(e){if(!e.hasOwnProperty(favorites)||0===e.favorites&&"0"===e.favorites)window.setTimeout(s,2e3);else{if(!jQuery(".bp-album-favorites").length){var t={users:e.users};jQuery(".bp-album-comments").after(rtMediaAdmin.templates.rtm_album_favourites_importer(t))}$favorites={},0!==e.offset||"0"!==e.offset?start=1*e.offset+1:start=1;for(var r=start;r<=e.users;r++)$count=1,r===e.users&&($count=parseInt(e.users%$count),0==$count&&($count=1)),newvals={action:"rtmedia_rt_album_import_step_favorites",offset:r-1,redirect:r===e.users,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$favorites[r]=newvals;var a=jQuery.Deferred();a.resolve(),jQuery.each($favorites,function(e,t){a=a.pipe(function(){return function(e){return jQuery.post(ajaxurl,e,function(e){redirect=!1,favorites_total=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.total").html(),favorites_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(),jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(parseInt(favorites_finished)+1);var t=Math.ceil(parseInt(favorites_finished+1)/parseInt(favorites_total)*100);(100<t||100==t)&&(t=100,redirect=!0),jQuery(".bp-album-favorites #rtprogressbar>div").css("width",t+"%"),redirect&&window.setTimeout(s,2e3)})}(t)})})}},"json"))}else if(n.hasOwnProperty(page)){var i={msg:"Row "+e.page+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(i))}else{i={msg:rtmedia_admin_strings.request_failed};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(i))}})}function s(){window.location=document.URL}r.className="support_form_loader",0<g(".rtm-save-settings-msg").length&&setTimeout(function(){g(".rtm-save-settings-msg").remove()},1e4),jQuery("#spread-the-word").on("click","#bp-media-add-linkback",function(){var e={action:"rtmedia_linkback",linkback:jQuery("#bp-media-add-linkback:checked").length};jQuery.post(rtmedia_admin_ajax,e,function(e){})}),i.on("change","#select-request",function(){if(jQuery(this).val()){t.html(r);var e={action:"rtmedia_select_request",form:jQuery(this).val()};jQuery.post(ajaxurl,e,function(e){t.html(e).fadeIn("slow")})}}),i.on("click","#cancel-request",function(){if(jQuery(this).val()){t.html(),t.html(r);jQuery.post(ajaxurl,{action:"rtmedia_cancel_request"},function(e){t.html(),t.html(e).fadeIn("slow")})}}),i.on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(i){var e=!0,n=new RegExp("^[0-9]+$"),t="";g("input[name*='defaultSizes']").each(function(){var e=g(this);if(e.css("border-color","#7e8993").next(".error_msg").remove(),!n.test(e.val())){var t=e.attr("name");t=(t=(t=t.replace("rtmedia-options[defaultSizes_","")).replace("]","")).replace(/_/g," ");var r=RTMedia_Admin_Settings_JS.rtmedia_default_sizes_error_message;r=r.replace("[default_size_property]",t);var a=e.parents(".rtm-content").attr("id");return 0<a.length&&g("#tab-"+a).click(),i.preventDefault(),u(e,r)}});var r=jQuery('input[name^="rtmedia-options[general_videothumbs]"]');if(e&&0<r.length&&void 0!==r){t="";var a=0;if(r.val()<=0?(t+=rtmedia_admin_strings.video_thumbnail_error,a=2):n.test(r.val())||(t+=rtmedia_admin_strings.video_thumbnail_invalid_value+" "+Math.round(r.val())+".",a=Math.round(r.val())),""!==t)return alert(t),r.val(a),e=!1}var s=jQuery('input[name^="rtmedia-options[general_jpeg_image_quality]"]');if(e&&1===s.length&&void 0!==s&&(s.val()<=0?t+=rtmedia_admin_strings.jpeg_quality_negative_error:100<s.val()?t+=rtmedia_admin_strings.jpeg_quality_percentage_error:n.test(s.val())||(t+=rtmedia_admin_strings.jpeg_quality_invalid_value+" "+Math.round(s.val())+"."),""!==t)){s.next(".error_msg").remove();var o=s.parents(".rtm-content").attr("id");return 0<o.length&&g("#tab-"+o).click(),u(s,t)}var m=jQuery('input[name^="rtmedia-options[general_perPageMedia]"]');if(e&&1===m.length&&void 0!==m&&(m.val()<1?t+=rtmedia_admin_strings.per_page_media_negative_value:jQuery.isNumeric(m.val())&&Math.floor(m.val())!=m.val()&&(t+=rtmedia_admin_strings.per_page_media_positive_error+" "+Math.round(m.val())+"."),""!==t)){m.next(".error_msg").remove();var d=m.parents(".rtm-content").attr("id");return 0<d.length&&g("#tab-"+d).click(),u(m,t)}e||i.preventDefault()}),jQuery(document).on("click","#bpm-services .encoding-try-now,#rtm-services .encoding-try-now",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.are_you_sure)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_free_encoding_subscribe"};jQuery.getJSON(ajaxurl,t,function(e){if(void 0===e.error&&e.apikey){var t=window.location.href,r=window.location.hash;t=t.replace(r,""),document.location.href=t+"&apikey="+e.apikey+r}else{jQuery(".encoding-try-now").next().remove(),jQuery("#settings-error-encoding-error").remove();var a={id:"settings-error-encoding-error",msg:e.error,class:"error"};i.before(rtMediaAdmin.templates.rtm_msg_div(a))}})}}),jQuery(document).on("click","#api-key-submit",function(e){if(e.preventDefault(),0==jQuery(this).next("img").length){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t))}t={action:"rtmedia_enter_api_key",apikey:jQuery("#new-api-key").val()};jQuery.getJSON(ajaxurl,t,function(e){if(void 0===e.error&&e.apikey){var t=window.location.href,r=window.location.hash;-1===(t=t.replace(r,"")).toString().indexOf("&apikey="+e.apikey)&&(t+="&apikey="+e.apikey),-1===t.toString().indexOf("&update=true")&&(t+="&update=true"),document.location.href=t+r}else{jQuery("#settings-error-api-key-error").remove();var a={id:"settings-error-api-key-error",msg:e.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(a))}jQuery("#api-key-submit").next("img").remove()})}),jQuery(document).on("click","#disable-encoding",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.disable_encoding)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_disable_encoding"};jQuery.post(ajaxurl,t,function(e){if(e){if(jQuery(".settings-error-encoding-disabled").remove(),0<jQuery("#settings-encoding-successfully-updated").length)jQuery("#settings-encoding-successfully-updated p").html(e);else{var t={id:"settings-encoding-successfully-updated",msg:e,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}jQuery("#rtmedia-encoding-usage").hide(),jQuery("#disable-encoding").next("img").remove(),jQuery("#disable-encoding").hide(),jQuery("#enable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();t={id:"settings-error-encoding-disabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}})}}),jQuery(document).on("click","#enable-encoding",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.enable_encoding)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_enable_encoding"};jQuery.post(ajaxurl,t,function(e){if(e){if(jQuery(".settings-error-encoding-enabled").remove(),0<jQuery("#settings-encoding-successfully-updated").length)jQuery("#settings-encoding-successfully-updated p").html(e);else{var t={id:"settings-encoding-successfully-updated",msg:e,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}var r=jQuery("#enable-encoding");r.next("img").remove(),r.hide(),jQuery("#disable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();t={id:"settings-error-encoding-enabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}})}}),jQuery(".bp-media-encoding-table").on("click",".bpm-unsubscribe",function(e){e.preventDefault(),jQuery("#bpm-unsubscribe-dialog").dialog({dialogClass:"wp-dialog",modal:!0,buttons:{Unsubscribe:function(){jQuery(this).dialog("close");var e={src:rtmedia_admin_url+"images/wpspin_light.gif"},r=g(".bpm-unsubscribe");r.after(rtMediaAdmin.templates.rtm_image(e));e={action:"rtmedia_unsubscribe_encoding_service",note:jQuery("#bpm-unsubscribe-note").val(),plan:r.attr("data-plan"),price:r.attr("data-price")};jQuery.getJSON(ajaxurl,e,function(e){if(void 0===e.error&&e.updated){r.next().remove(),r.after(e.form),r.remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var t={id:"settings-unsubscribed-successfully",msg:e.updated,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t)),window.location.hash="#settings-unsubscribed-successfully"}else{r.next().remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();t={id:"settings-unsubscribe-error",msg:e.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t)),window.location.hash="#settings-unsubscribe-error"}})}}})}),jQuery("#bpmedia-bpalbumimporter").on("change","#bp-album-import-accept",function(){jQuery(".bp-album-import-accept").toggleClass("i-accept"),jQuery(".bp-album-importer-wizard").slideToggle()}),jQuery("#rtprivacyinstall").click(function(e){e.preventDefault(),$progress_parent=jQuery("#rtprivacyinstaller"),$progress_parent.find(".rtprivacytype").each(function(){if($type=jQuery(this).attr("id"),"total"===$type){$values=[],jQuery(this).find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),$data={};for(var e=1;e<=$values.steps[0];e++)$count=20,e===$values.steps[0]&&($count=parseInt($values.laststep[0]),0===$count&&($count=20)),newvals={page:e,action:"rtmedia_privacy_install",count:$count,values:$values},$data[e]=newvals;var r=jQuery.Deferred();r.resolve(),jQuery.each($data,function(e,t){r=r.pipe(function(){return function(i){return jQuery.post(ajaxurl,i,function(e){if(0!=e){var t=!1,r=Math.ceil((20*parseInt(e)+parseInt(i.values.finished))/parseInt(i.values.total)*100);100<r&&(r=100,t=!0),jQuery("#rtprogressbar>div").css("width",r+"%"),finished=jQuery("#rtprivacyinstaller span.finished").html(),jQuery("#rtprivacyinstaller span.finished").html(parseInt(finished)+i.count),t&&jQuery.post(ajaxurl,{action:"rtmedia_privacy_redirect"},function(e){window.location=settings_url})}else{var a={msg:"Row "+e+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(a))}})}(t)})})}})}),jQuery("#bpmedia-bpalbumimport-cleanup").click(function(e){e.preventDefault(),jQuery.post(ajaxurl,{action:"rtmedia_rt_album_cleanup",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},function(e){window.location=settings_rt_album_import_url})}),jQuery("#bpmedia-bpalbumimporter").on("click","#bpmedia-bpalbumimport",function(e){if(e.preventDefault(),jQuery("#bp-album-import-accept").prop("checked")){if(jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),!jQuery(".bpm-ajax-loader").length){var t={src:rtmedia_admin_url+"images/wpspin_light.gif",class:"bpm-ajax-loader",norefresh:rtmedia_admin_strings.no_refresh};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t))}$progress_parent=jQuery("#bpmedia-bpalbumimport"),$values=[],jQuery(this).parent().find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),0==$values.steps[0]&&($values.steps[0]=1),$data={};for(i=1;i<=$values.steps[0];i++)$count=5,i==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:i,action:"rtmedia_rt_album_import",count:$count,values:$values,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$data[i]=newvals;var r=jQuery.Deferred();r.resolve(),jQuery.each($data,function(e,t){r=r.pipe(function(){return n(t)})})}else{jQuery("html, body").animate({scrollTop:jQuery("#bp-album-import-accept").offset().top},500);var a=jQuery(".bp-album-import-accept"),i=3;(function e(){a.css("background-color","#EE0000"),setTimeout(function(){a.css("background-color","#FFEBE8"),--i&&setTimeout(e,500)},500)})()}}),i.on("click",".interested",function(){jQuery(".interested-container").removeClass("hidden"),jQuery(".choice-free").attr("required","required")}),i.on("click",".not-interested",function(){jQuery(".interested-container").addClass("hidden"),jQuery(".choice-free").removeAttr("required")}),jQuery("#video-transcoding-main-container").on("click",".video-transcoding-survey",function(e){e.preventDefault();var t={action:"rtmedia_convert_videos_form",email:jQuery(".email").val(),url:jQuery(".url").val(),choice:jQuery('input[name="choice"]:checked').val(),interested:jQuery('input[name="interested"]:checked').val()};return jQuery.post(ajaxurl,t,function(e){var t={msg:e,strong:"yes"};jQuery("#video-transcoding-main-container").html(rtMediaAdmin.templates.rtm_p_tag(t))}),!1}),jQuery("#bpmedia-bpalbumimporter").on("click",".deactivate-bp-album",function(e){e.preventDefault(),$bpalbum=jQuery(this);var t={action:"rtmedia_rt_album_deactivate",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()};jQuery.get(ajaxurl,t,function(e){if(e)location.reload();else{var t={msg:rtmedia_admin_strings.something_went_wrong};$bpalbum.parent().after(rtMediaAdmin.templates.rtm_p_tag(t))}})}),jQuery(".updated").on("click",".bpm-hide-encoding-notice",function(){var e={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(e));e={action:"rtmedia_hide_encoding_notice"};jQuery.post(ajaxurl,e,function(e){e&&jQuery(".bpm-hide-encoding-notice").closest(".updated").remove()})}),jQuery("#rtmedia-bp-enable-activity").is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0),jQuery("#rtmedia-bp-enable-activity").on("click",function(e){jQuery(this).is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0)});var a;function u(e,t){var r=jQuery(e);r.focus(),r.css("border-color","red");var a=r.parent();if(0<a.length&&"error_msg"!==a.attr("class")){var i=jQuery("<span />").attr("style","display:block").addClass("error_msg").html(t);r.after(i)}return return_code=!1}void 0!==rtmedia_on_label&&rtmedia_on_label,void 0!==rtmedia_off_label&&rtmedia_off_label,jQuery("input[type=file]").on("change",function(e){a=e.target.files,function(e){e.stopPropagation(),e.preventDefault();var r=new FormData;void 0!==e&&void 0!==e.target&&void 0!==e.target.name&&"rtFileInput"===e.target.name&&r.append("import_export_control",e.target.name);jQuery.each(a,function(e,t){r.append(e,t)});var t=jQuery("#rtmedia_admin_upload_nonce").val();void 0!==t&&""!==t&&r.append("rtmedia_admin_upload_nonce",t);r.append("action","rtmedia_admin_upload"),jQuery.ajax({url:rtmedia_admin_ajax,type:"POST",data:r,cache:!1,processData:!1,contentType:!1,success:function(e){if(e.hasOwnProperty("rtm_response")&&e.hasOwnProperty("rtm_response_msg")){jQuery("#rtm-setting-msg").remove();var t=jQuery("<div/>",{id:"rtm-setting-msg",class:"rtm-fly-warning"});"success"===e.rtm_response?(t.addClass("rtm-success rtm-save-settings-msg"),t.text(e.rtm_response_msg),jQuery(".rtm-button-container.top").append(t),location.reload()):"error"===e.rtm_response&&(t.addClass("rtm-warning"),t.text(e.rtm_response_msg),jQuery(".rtm-button-container.top").append(t),t.delay(3e3).fadeOut(100))}if(void 0===e.error){if((e=JSON.parse(e)).exceed_size_msg)return jQuery("#debuglog").val(""),alert(e.exceed_size_msg),!1;jQuery("#debuglog_temp_path").val(e.debug_attachmanet)}else jQuery("#debuglog").val(""),alert("ERRORS: "+e.error)}})}(e)}),jQuery("#rtmedia-submit-request").click(function(){var e=jQuery("#name").val(),t=jQuery("#email").val(),r=jQuery("#website").val(),a=jQuery("#subject").val(),i=jQuery("#details").val(),n=jQuery('input[name="request_type"]').val(),s=jQuery('input[name="request_id"]').val(),o=jQuery('input[name="server_address"]').val(),m=jQuery('input[name="ip_address"]').val(),d=jQuery('input[name="server_type"]').val(),u=jQuery('input[name="user_agent"]').val(),l={name:e,email:t,website:r,subject:a,details:i,request_id:s,request_type:"premium_support",server_address:o,ip_address:m,server_type:d,user_agent:u,debuglog_temp_path:jQuery('input[name="debuglog_temp_path"]').val()};if("bug_report"==n){var p=jQuery("#wp_admin_username").val();if(""===p)return alert(rtmedia_admin_support_strings.wp_admin_username_error),!1;var c=jQuery("#wp_admin_pwd").val();if(""===c)return alert(rtmedia_admin_support_strings.wp_admin_pwd_error),!1;var _=jQuery("#ssh_ftp_host").val();if(""===_)return alert(rtmedia_admin_support_strings.ssh_ftp_host_error),!1;var f=jQuery("#ssh_ftp_username").val();if(""===f)return alert(rtmedia_admin_support_strings.ssh_ftp_username_error),!1;var v=jQuery("#ssh_ftp_pwd").val();if(""===v)return alert(rtmedia_admin_support_strings.ssh_ftp_pwd_error),!1;l={name:e,email:t,website:r,subject:a,details:i,request_id:s,request_type:"premium_support",server_address:o,ip_address:m,server_type:d,user_agent:u,wp_admin_username:p,wp_admin_pwd:c,ssh_ftp_host:_,ssh_ftp_username:f,ssh_ftp_pwd:v}}for(formdata in l){if(""===l[formdata]&&"debuglog_temp_path"!==formdata)return alert("Please enter "+formdata.replace("_"," ")+" field."),!1;if(""===l[formdata]&&"debuglog_temp_path"===formdata)return alert("Please upload attachment."),!1}return data={action:"rtmedia_submit_request",form_data:l,support_wpnonce:jQuery("#support_wpnonce").val()},jQuery.post(ajaxurl,data,function(e){if("false"==(e=e.trim()))return alert(rtmedia_admin_support_strings.all_fields_error),!1;g("#rtmedia_service_contact_container").empty(),g("#rtmedia_service_contact_container").append(e)}),!1}),jQuery("#cancel-request").click(function(){return!1}),jQuery(".rtm_enable_masonry_view input[type=checkbox]").is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide(),jQuery(".rtm_enable_masonry_view input[type=checkbox]").on("click",function(e){jQuery(this).is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide()}),jQuery("#rtm-masonry-change-thumbnail-info").click(function(e){jQuery("html, body").animate({scrollTop:0},"500","swing")}),jQuery("#rtm-export-button").click(function(){data={action:"rtmedia_export_settings"},jQuery.post(ajaxurl,data,function(e){var t="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e)),r=document.createElement("a");r.setAttribute("href",t),r.setAttribute("download","rtm-settings.json"),jQuery("body").append(r),r.click(),r.remove()})}),jQuery("#rtm-export-data-button").click(function(){window.location.href="/wp-admin/tools.php?page=export_personal_data"}),jQuery("#rtm-erase-data-button").click(function(){window.location.href="/wp-admin/tools.php?page=remove_personal_data"})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
|
app/assets/admin/js/settings.js
CHANGED
@@ -1009,6 +1009,7 @@ jQuery( document ).ready( function ( $ ) {
|
|
1009 |
|
1010 |
if ( typeof data.error === 'undefined' ) {
|
1011 |
|
|
|
1012 |
if ( data.exceed_size_msg ) {
|
1013 |
jQuery( '#debuglog' ).val( '' );
|
1014 |
alert( data.exceed_size_msg );
|
1009 |
|
1010 |
if ( typeof data.error === 'undefined' ) {
|
1011 |
|
1012 |
+
data = JSON.parse( data );
|
1013 |
if ( data.exceed_size_msg ) {
|
1014 |
jQuery( '#debuglog' ).val( '' );
|
1015 |
alert( data.exceed_size_msg );
|
app/assets/js/rtMedia.backbone.js
CHANGED
@@ -46,6 +46,31 @@ jQuery( function( $ ) {
|
|
46 |
|
47 |
imageEdit.save( $media_id, $nonce );
|
48 |
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
});
|
50 |
/**
|
51 |
* End of issue 1059 fix
|
@@ -1443,16 +1468,29 @@ jQuery( document ).ready( function( $ ) {
|
|
1443 |
var object = '';
|
1444 |
var item_id = 0;
|
1445 |
|
1446 |
-
if (
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
|
|
1451 |
|
1452 |
-
|
1453 |
-
|
|
|
|
|
|
|
1454 |
} else {
|
1455 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1456 |
}
|
1457 |
|
1458 |
up.settings.multipart_params.context = object;
|
46 |
|
47 |
imageEdit.save( $media_id, $nonce );
|
48 |
} );
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Reload page when rtmedia_update type of activity is edited.
|
52 |
+
*/
|
53 |
+
function filterBeaSaveSuccess() {
|
54 |
+
location.reload();
|
55 |
+
}
|
56 |
+
/**
|
57 |
+
* Prefilters ajax call which saves edited activity content.
|
58 |
+
* Needed with BuddyPress Edit Activity plugin.
|
59 |
+
* https://wordpress.org/plugins/buddypress-edit-activity/
|
60 |
+
*/
|
61 |
+
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
|
62 |
+
if ( 'undefined' === typeof originalOptions || 'undefined' === typeof originalOptions.data || 'buddypress-edit-activity-save' !== originalOptions.data.action ) {
|
63 |
+
return;
|
64 |
+
}
|
65 |
+
|
66 |
+
if ( ! $( '#activity-' + originalOptions.data.activity_id ).hasClass( 'rtmedia_update' ) ) {
|
67 |
+
return;
|
68 |
+
}
|
69 |
+
|
70 |
+
// Change the callback function to our own function, which reloads the page.
|
71 |
+
originalOptions.success = filterBeaSaveSuccess;
|
72 |
+
options.success = filterBeaSaveSuccess;
|
73 |
+
} );
|
74 |
});
|
75 |
/**
|
76 |
* End of issue 1059 fix
|
1468 |
var object = '';
|
1469 |
var item_id = 0;
|
1470 |
|
1471 |
+
if ( 'legacy' === bp_template_pack ) {
|
1472 |
+
if ( jQuery( '#whats-new-post-in' ).length ) {
|
1473 |
+
item_id = jQuery( '#whats-new-post-in' ).val();
|
1474 |
+
} else if ( jQuery( '.groups-header' ).length ) {
|
1475 |
+
item_id = jQuery( '.groups-header' ).attr( 'data-bp-item-id' );
|
1476 |
+
}
|
1477 |
|
1478 |
+
if ( item_id > 0 ) {
|
1479 |
+
object = 'group';
|
1480 |
+
} else {
|
1481 |
+
object = 'profile';
|
1482 |
+
}
|
1483 |
} else {
|
1484 |
+
var whatsNewPostIn = jQuery( '#whats-new-post-in' );
|
1485 |
+
if ( whatsNewPostIn.length ) {
|
1486 |
+
object = whatsNewPostIn.val();
|
1487 |
+
item_id = 0;
|
1488 |
+
}
|
1489 |
+
|
1490 |
+
var contextData = jQuery( '#whats-new-post-in-box-items li.bp-activity-object.selected input[type="hidden"]' );
|
1491 |
+
if ( contextData.length ) {
|
1492 |
+
item_id = contextData.val();
|
1493 |
+
}
|
1494 |
}
|
1495 |
|
1496 |
up.settings.multipart_params.context = object;
|
app/helper/RTMediaSupport.php
CHANGED
@@ -563,6 +563,12 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
563 |
<input type="hidden" name="ip_address" value="<?php echo esc_attr( $remote_addr ); ?>"/>
|
564 |
<input type="hidden" name="server_type" value="<?php echo esc_attr( $server_software ); ?>"/>
|
565 |
<input type="hidden" name="user_agent" value="<?php echo esc_attr( $http_user_agent ); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
<input type="hidden" name="debuglog_temp_path" id="debuglog_temp_path" />
|
567 |
</div>
|
568 |
|
563 |
<input type="hidden" name="ip_address" value="<?php echo esc_attr( $remote_addr ); ?>"/>
|
564 |
<input type="hidden" name="server_type" value="<?php echo esc_attr( $server_software ); ?>"/>
|
565 |
<input type="hidden" name="user_agent" value="<?php echo esc_attr( $http_user_agent ); ?>"/>
|
566 |
+
|
567 |
+
<?php
|
568 |
+
// Adding nonce for file upload.
|
569 |
+
$nonce = wp_create_nonce( 'rtmedia-admin-upload' );
|
570 |
+
?>
|
571 |
+
<input type="hidden" id="rtmedia_admin_upload_nonce" value="<?php echo esc_attr( $nonce ); ?>" />
|
572 |
<input type="hidden" name="debuglog_temp_path" id="debuglog_temp_path" />
|
573 |
</div>
|
574 |
|
app/main/controllers/activity/RTMediaBuddyPressActivity.php
CHANGED
@@ -34,6 +34,8 @@ class RTMediaBuddyPressActivity {
|
|
34 |
// Code to show media with read more option.
|
35 |
add_filter( 'bp_activity_truncate_entry', array( $this, 'bp_activity_truncate_entry' ), 10, 3 );
|
36 |
}
|
|
|
|
|
37 |
}
|
38 |
add_action( 'bp_activity_comment_posted', array( $this, 'comment_sync' ), 10, 2 );
|
39 |
add_action( 'bp_activity_delete_comment', array( $this, 'delete_comment_sync' ), 10, 2 );
|
@@ -76,6 +78,25 @@ class RTMediaBuddyPressActivity {
|
|
76 |
}
|
77 |
}
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
/**
|
80 |
* Show media even if the text is long with read more option.
|
81 |
*
|
34 |
// Code to show media with read more option.
|
35 |
add_filter( 'bp_activity_truncate_entry', array( $this, 'bp_activity_truncate_entry' ), 10, 3 );
|
36 |
}
|
37 |
+
|
38 |
+
add_filter( 'b_e_a_plugin_option_editable_types', array( $this, 'rtmedia_bea_plugin_option_editable_types' ) );
|
39 |
}
|
40 |
add_action( 'bp_activity_comment_posted', array( $this, 'comment_sync' ), 10, 2 );
|
41 |
add_action( 'bp_activity_delete_comment', array( $this, 'delete_comment_sync' ), 10, 2 );
|
78 |
}
|
79 |
}
|
80 |
|
81 |
+
/**
|
82 |
+
* Adds rtmedia_update in editable activity types when BuddyPress Edit Activity plugin is active.
|
83 |
+
*
|
84 |
+
* @param array $option Editable activity types.
|
85 |
+
*
|
86 |
+
* @return array Modified editable activity types.
|
87 |
+
*/
|
88 |
+
public function rtmedia_bea_plugin_option_editable_types( $option ) {
|
89 |
+
if ( empty( $option ) || ! is_array( $option ) ) {
|
90 |
+
$option = array();
|
91 |
+
}
|
92 |
+
|
93 |
+
if ( ! in_array( 'rtmedia_update', $option, true ) ) {
|
94 |
+
$option[] = 'rtmedia_update';
|
95 |
+
}
|
96 |
+
|
97 |
+
return $option;
|
98 |
+
}
|
99 |
+
|
100 |
/**
|
101 |
* Show media even if the text is long with read more option.
|
102 |
*
|
app/main/controllers/template/RTMediaTemplate.php
CHANGED
@@ -63,6 +63,7 @@ class RTMediaTemplate {
|
|
63 |
'rtmedia-image-edit',
|
64 |
admin_url( 'js/image-edit.js' ),
|
65 |
array(
|
|
|
66 |
'jquery',
|
67 |
'json2',
|
68 |
'imgareaselect',
|
@@ -70,6 +71,7 @@ class RTMediaTemplate {
|
|
70 |
RTMEDIA_VERSION,
|
71 |
1
|
72 |
);
|
|
|
73 |
wp_enqueue_style( 'rtmedia-image-area-select', includes_url( '/js/imgareaselect/imgareaselect.css' ), array(), RTMEDIA_VERSION );
|
74 |
wp_enqueue_style( 'rtmedia-image-edit', admin_url( 'css/media.css' ), array(), RTMEDIA_VERSION );
|
75 |
}
|
63 |
'rtmedia-image-edit',
|
64 |
admin_url( 'js/image-edit.js' ),
|
65 |
array(
|
66 |
+
'wp-i18n',
|
67 |
'jquery',
|
68 |
'json2',
|
69 |
'imgareaselect',
|
71 |
RTMEDIA_VERSION,
|
72 |
1
|
73 |
);
|
74 |
+
wp_add_inline_script( 'rtmedia-image-edit', 'window.imageEdit.focusManager=function(){return;}' );
|
75 |
wp_enqueue_style( 'rtmedia-image-area-select', includes_url( '/js/imgareaselect/imgareaselect.css' ), array(), RTMEDIA_VERSION );
|
76 |
wp_enqueue_style( 'rtmedia-image-edit', admin_url( 'css/media.css' ), array(), RTMEDIA_VERSION );
|
77 |
}
|
app/main/controllers/template/rtmedia-actions.php
CHANGED
@@ -518,7 +518,7 @@ function rtmedia_admin_pages_content( $page ) {
|
|
518 |
<li><?php esc_html_e( 'WordPress/BuddyPress Plugin Development', 'buddypress-media' ); ?></li>
|
519 |
</ol>
|
520 |
<div class="clearfix">
|
521 |
-
<a href="https://rtmedia.io/enterprise-plan" class="
|
522 |
</div>
|
523 |
</div>
|
524 |
<?php
|
518 |
<li><?php esc_html_e( 'WordPress/BuddyPress Plugin Development', 'buddypress-media' ); ?></li>
|
519 |
</ol>
|
520 |
<div class="clearfix">
|
521 |
+
<a href="https://rtmedia.io/enterprise-plan" class="button button-primary button-big" target="_blank"><?php esc_html_e( 'Contact Us', 'buddypress-media' ); ?></a>
|
522 |
</div>
|
523 |
</div>
|
524 |
<?php
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
4 |
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
5 |
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
|
6 |
-
Version: 4.6.
|
7 |
Author: rtCamp
|
8 |
Text Domain: buddypress-media
|
9 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
@@ -21,7 +21,7 @@ if ( ! defined( 'RTMEDIA_VERSION' ) ) {
|
|
21 |
/**
|
22 |
* The version of the plugin
|
23 |
*/
|
24 |
-
define( 'RTMEDIA_VERSION', '4.6.
|
25 |
}
|
26 |
|
27 |
if ( ! defined( 'RTMEDIA_PATH' ) ) {
|
3 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
4 |
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
5 |
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
|
6 |
+
Version: 4.6.5
|
7 |
Author: rtCamp
|
8 |
Text Domain: buddypress-media
|
9 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
21 |
/**
|
22 |
* The version of the plugin
|
23 |
*/
|
24 |
+
define( 'RTMEDIA_VERSION', '4.6.5' );
|
25 |
}
|
26 |
|
27 |
if ( ! defined( 'RTMEDIA_PATH' ) ) {
|
languages/buddypress-media.po
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.
|
6 |
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -440,7 +440,7 @@ msgstr ""
|
|
440 |
#: app/admin/RTMediaAdmin.php:1796 app/admin/RTMediaAdmin.php:1814
|
441 |
#: app/admin/RTMediaAdmin.php:1832 app/admin/RTMediaFormHandler.php:628
|
442 |
#: app/helper/RTMediaSettings.php:342 app/helper/RTMediaSupport.php:445
|
443 |
-
#: app/helper/RTMediaSupport.php:
|
444 |
msgid "here"
|
445 |
msgstr ""
|
446 |
|
@@ -1642,11 +1642,11 @@ msgstr ""
|
|
1642 |
msgid "GitHub"
|
1643 |
msgstr ""
|
1644 |
|
1645 |
-
#: app/helper/RTMediaSupport.php:66 app/helper/RTMediaSupport.php:
|
1646 |
msgid "Cheatin' uh?"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
-
#: app/helper/RTMediaSupport.php:67 app/helper/RTMediaSupport.php:
|
1650 |
msgid "Can not verify request source."
|
1651 |
msgstr ""
|
1652 |
|
@@ -1761,51 +1761,51 @@ msgstr ""
|
|
1761 |
msgid "Details"
|
1762 |
msgstr ""
|
1763 |
|
1764 |
-
#: app/helper/RTMediaSupport.php:
|
1765 |
msgid "Attachment"
|
1766 |
msgstr ""
|
1767 |
|
1768 |
-
#: app/helper/RTMediaSupport.php:
|
1769 |
msgid "Allowed file types are : images, documents and texts."
|
1770 |
msgstr ""
|
1771 |
|
1772 |
-
#: app/helper/RTMediaSupport.php:
|
1773 |
msgid "rtMedia Premium Support Request from"
|
1774 |
msgstr ""
|
1775 |
|
1776 |
-
#: app/helper/RTMediaSupport.php:
|
1777 |
msgid "rtMedia New Feature Request from"
|
1778 |
msgstr ""
|
1779 |
|
1780 |
-
#: app/helper/RTMediaSupport.php:
|
1781 |
msgid "rtMedia Bug Report from"
|
1782 |
msgstr ""
|
1783 |
|
1784 |
-
#: app/helper/RTMediaSupport.php:
|
1785 |
msgid "rtMedia Contact from"
|
1786 |
msgstr ""
|
1787 |
|
1788 |
-
#: app/helper/RTMediaSupport.php:
|
1789 |
msgid "Thank you for your Feedback/Suggestion."
|
1790 |
msgstr ""
|
1791 |
|
1792 |
-
#: app/helper/RTMediaSupport.php:
|
1793 |
msgid "Thank you for posting your support request."
|
1794 |
msgstr ""
|
1795 |
|
1796 |
-
#: app/helper/RTMediaSupport.php:
|
1797 |
msgid "We will get back to you shortly."
|
1798 |
msgstr ""
|
1799 |
|
1800 |
-
#: app/helper/RTMediaSupport.php:
|
1801 |
msgid "Your server failed to send an email."
|
1802 |
msgstr ""
|
1803 |
|
1804 |
-
#: app/helper/RTMediaSupport.php:
|
1805 |
msgid "Kindly contact your server support to fix this."
|
1806 |
msgstr ""
|
1807 |
|
1808 |
-
#: app/helper/RTMediaSupport.php:
|
1809 |
#. translators: %s: rtmedia link.
|
1810 |
msgid "You can alternatively create a support request %s"
|
1811 |
msgstr ""
|
@@ -2286,7 +2286,7 @@ msgid "No time remaining."
|
|
2286 |
msgstr ""
|
2287 |
|
2288 |
#: app/main/RTMedia.php:162 app/main/RTMedia.php:1498
|
2289 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2290 |
#: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:112
|
2291 |
#: app/main/controllers/upload/processors/RTMediaUploadFile.php:246
|
2292 |
msgid "Media Files"
|
@@ -2558,28 +2558,28 @@ msgstr ""
|
|
2558 |
msgid "I agree to"
|
2559 |
msgstr ""
|
2560 |
|
2561 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2562 |
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:60
|
2563 |
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:74
|
2564 |
msgid "Terms and Conditions checkbox not found!"
|
2565 |
msgstr ""
|
2566 |
|
2567 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2568 |
#: app/main/controllers/media/RTMediaComment.php:204
|
2569 |
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:125
|
2570 |
#: app/main/controllers/template/rtmedia-functions.php:2275
|
2571 |
msgid "You are not allowed to upload/attach media."
|
2572 |
msgstr ""
|
2573 |
|
2574 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2575 |
#: app/main/controllers/media/RTMediaMedia.php:793
|
2576 |
#. translators: 1: user link, 2: media.
|
2577 |
#. translators: 1: username, 2: media type, 3: media name, 4: total media.
|
2578 |
msgid "%1$s added a %2$s"
|
2579 |
msgstr ""
|
2580 |
|
2581 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2582 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2583 |
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:279
|
2584 |
#. translators: 1: user link, 2: media count, 3: media.
|
2585 |
#. translators: 1: user link, 2: media count, 3: rtMedia slug.
|
@@ -2587,32 +2587,32 @@ msgstr ""
|
|
2587 |
msgid "%1$s added %2$d %3$s"
|
2588 |
msgstr ""
|
2589 |
|
2590 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2591 |
#. translators: 1: username, 2: media, 3: group name.
|
2592 |
msgid "%1$s liked a %2$s in the group %3$s"
|
2593 |
msgstr ""
|
2594 |
|
2595 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2596 |
#. translators: 1: username, 2: media.
|
2597 |
msgid "%1$s liked their %2$s"
|
2598 |
msgstr ""
|
2599 |
|
2600 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2601 |
#. translators: 1: username, 2: author, 3: media.
|
2602 |
msgid "%1$s liked %2$s's %3$s"
|
2603 |
msgstr ""
|
2604 |
|
2605 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2606 |
#. translators: 1: username, 2: media, 3: group name.
|
2607 |
msgid "%1$s commented on a %2$s in the group %3$s"
|
2608 |
msgstr ""
|
2609 |
|
2610 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2611 |
#. translators: 1: username, 2: media.
|
2612 |
msgid "%1$s commented on their %2$s"
|
2613 |
msgstr ""
|
2614 |
|
2615 |
-
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:
|
2616 |
#. translators: 1: username, 2: author, 3: media.
|
2617 |
msgid "%1$s commented on %2$s's %3$s"
|
2618 |
msgstr ""
|
@@ -3037,23 +3037,23 @@ msgstr ""
|
|
3037 |
msgid "Data mismatch, Please insert data properly."
|
3038 |
msgstr ""
|
3039 |
|
3040 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
3041 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
3042 |
msgid "Invalid attribute passed for rtmedia_gallery shortcode."
|
3043 |
msgstr ""
|
3044 |
|
3045 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
3046 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
3047 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
3048 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
3049 |
msgid "Ooops !!! Invalid access. No nonce was found !!"
|
3050 |
msgstr ""
|
3051 |
|
3052 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
3053 |
msgid "Media updated Sucessfully"
|
3054 |
msgstr ""
|
3055 |
|
3056 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
3057 |
msgid "Error in updating Media"
|
3058 |
msgstr ""
|
3059 |
|
2 |
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.5\n"
|
6 |
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
|
7 |
+
"POT-Creation-Date: 2020-11-23 08:24:44+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
440 |
#: app/admin/RTMediaAdmin.php:1796 app/admin/RTMediaAdmin.php:1814
|
441 |
#: app/admin/RTMediaAdmin.php:1832 app/admin/RTMediaFormHandler.php:628
|
442 |
#: app/helper/RTMediaSettings.php:342 app/helper/RTMediaSupport.php:445
|
443 |
+
#: app/helper/RTMediaSupport.php:736
|
444 |
msgid "here"
|
445 |
msgstr ""
|
446 |
|
1642 |
msgid "GitHub"
|
1643 |
msgstr ""
|
1644 |
|
1645 |
+
#: app/helper/RTMediaSupport.php:66 app/helper/RTMediaSupport.php:608
|
1646 |
msgid "Cheatin' uh?"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
+
#: app/helper/RTMediaSupport.php:67 app/helper/RTMediaSupport.php:609
|
1650 |
msgid "Can not verify request source."
|
1651 |
msgstr ""
|
1652 |
|
1761 |
msgid "Details"
|
1762 |
msgstr ""
|
1763 |
|
1764 |
+
#: app/helper/RTMediaSupport.php:577
|
1765 |
msgid "Attachment"
|
1766 |
msgstr ""
|
1767 |
|
1768 |
+
#: app/helper/RTMediaSupport.php:582
|
1769 |
msgid "Allowed file types are : images, documents and texts."
|
1770 |
msgstr ""
|
1771 |
|
1772 |
+
#: app/helper/RTMediaSupport.php:624
|
1773 |
msgid "rtMedia Premium Support Request from"
|
1774 |
msgstr ""
|
1775 |
|
1776 |
+
#: app/helper/RTMediaSupport.php:627
|
1777 |
msgid "rtMedia New Feature Request from"
|
1778 |
msgstr ""
|
1779 |
|
1780 |
+
#: app/helper/RTMediaSupport.php:630
|
1781 |
msgid "rtMedia Bug Report from"
|
1782 |
msgstr ""
|
1783 |
|
1784 |
+
#: app/helper/RTMediaSupport.php:633
|
1785 |
msgid "rtMedia Contact from"
|
1786 |
msgstr ""
|
1787 |
|
1788 |
+
#: app/helper/RTMediaSupport.php:722
|
1789 |
msgid "Thank you for your Feedback/Suggestion."
|
1790 |
msgstr ""
|
1791 |
|
1792 |
+
#: app/helper/RTMediaSupport.php:724
|
1793 |
msgid "Thank you for posting your support request."
|
1794 |
msgstr ""
|
1795 |
|
1796 |
+
#: app/helper/RTMediaSupport.php:725
|
1797 |
msgid "We will get back to you shortly."
|
1798 |
msgstr ""
|
1799 |
|
1800 |
+
#: app/helper/RTMediaSupport.php:730
|
1801 |
msgid "Your server failed to send an email."
|
1802 |
msgstr ""
|
1803 |
|
1804 |
+
#: app/helper/RTMediaSupport.php:731
|
1805 |
msgid "Kindly contact your server support to fix this."
|
1806 |
msgstr ""
|
1807 |
|
1808 |
+
#: app/helper/RTMediaSupport.php:735
|
1809 |
#. translators: %s: rtmedia link.
|
1810 |
msgid "You can alternatively create a support request %s"
|
1811 |
msgstr ""
|
2286 |
msgstr ""
|
2287 |
|
2288 |
#: app/main/RTMedia.php:162 app/main/RTMedia.php:1498
|
2289 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:748
|
2290 |
#: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:112
|
2291 |
#: app/main/controllers/upload/processors/RTMediaUploadFile.php:246
|
2292 |
msgid "Media Files"
|
2558 |
msgid "I agree to"
|
2559 |
msgstr ""
|
2560 |
|
2561 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:477
|
2562 |
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:60
|
2563 |
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:74
|
2564 |
msgid "Terms and Conditions checkbox not found!"
|
2565 |
msgstr ""
|
2566 |
|
2567 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:795
|
2568 |
#: app/main/controllers/media/RTMediaComment.php:204
|
2569 |
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:125
|
2570 |
#: app/main/controllers/template/rtmedia-functions.php:2275
|
2571 |
msgid "You are not allowed to upload/attach media."
|
2572 |
msgstr ""
|
2573 |
|
2574 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:942
|
2575 |
#: app/main/controllers/media/RTMediaMedia.php:793
|
2576 |
#. translators: 1: user link, 2: media.
|
2577 |
#. translators: 1: username, 2: media type, 3: media name, 4: total media.
|
2578 |
msgid "%1$s added a %2$s"
|
2579 |
msgstr ""
|
2580 |
|
2581 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:950
|
2582 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:953
|
2583 |
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:279
|
2584 |
#. translators: 1: user link, 2: media count, 3: media.
|
2585 |
#. translators: 1: user link, 2: media count, 3: rtMedia slug.
|
2587 |
msgid "%1$s added %2$d %3$s"
|
2588 |
msgstr ""
|
2589 |
|
2590 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1007
|
2591 |
#. translators: 1: username, 2: media, 3: group name.
|
2592 |
msgid "%1$s liked a %2$s in the group %3$s"
|
2593 |
msgstr ""
|
2594 |
|
2595 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1011
|
2596 |
#. translators: 1: username, 2: media.
|
2597 |
msgid "%1$s liked their %2$s"
|
2598 |
msgstr ""
|
2599 |
|
2600 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1016
|
2601 |
#. translators: 1: username, 2: author, 3: media.
|
2602 |
msgid "%1$s liked %2$s's %3$s"
|
2603 |
msgstr ""
|
2604 |
|
2605 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1106
|
2606 |
#. translators: 1: username, 2: media, 3: group name.
|
2607 |
msgid "%1$s commented on a %2$s in the group %3$s"
|
2608 |
msgstr ""
|
2609 |
|
2610 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1111
|
2611 |
#. translators: 1: username, 2: media.
|
2612 |
msgid "%1$s commented on their %2$s"
|
2613 |
msgstr ""
|
2614 |
|
2615 |
+
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1116
|
2616 |
#. translators: 1: username, 2: author, 3: media.
|
2617 |
msgid "%1$s commented on %2$s's %3$s"
|
2618 |
msgstr ""
|
3037 |
msgid "Data mismatch, Please insert data properly."
|
3038 |
msgstr ""
|
3039 |
|
3040 |
+
#: app/main/controllers/template/RTMediaTemplate.php:143
|
3041 |
+
#: app/main/controllers/template/RTMediaTemplate.php:197
|
3042 |
msgid "Invalid attribute passed for rtmedia_gallery shortcode."
|
3043 |
msgstr ""
|
3044 |
|
3045 |
+
#: app/main/controllers/template/RTMediaTemplate.php:447
|
3046 |
+
#: app/main/controllers/template/RTMediaTemplate.php:576
|
3047 |
+
#: app/main/controllers/template/RTMediaTemplate.php:682
|
3048 |
+
#: app/main/controllers/template/RTMediaTemplate.php:902
|
3049 |
msgid "Ooops !!! Invalid access. No nonce was found !!"
|
3050 |
msgstr ""
|
3051 |
|
3052 |
+
#: app/main/controllers/template/RTMediaTemplate.php:457
|
3053 |
msgid "Media updated Sucessfully"
|
3054 |
msgstr ""
|
3055 |
|
3056 |
+
#: app/main/controllers/template/RTMediaTemplate.php:476
|
3057 |
msgid "Error in updating Media"
|
3058 |
msgstr ""
|
3059 |
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== rtMedia for WordPress, BuddyPress and bbPress ===
|
2 |
-
Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, 1naveengiri, bhargavbhandari90, raftaar1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel, rahul3883, nomnom99, sayanchakraborty, milindmore22, thrijith, abhijitrakas, sid177, montu3366, jashwini, juhise, ravatparmar, dharmin16, malavvasita, pooja1210, krupajnanda, surajkumarsingh, kanumalivad, dishitpala, shobhit2412
|
3 |
Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, media-node, rtMedia, WordPress, bbPress, masonry
|
4 |
License: GPLv2 or later
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: WordPress 4.1
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 4.6.
|
9 |
|
10 |
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
11 |
|
@@ -134,6 +134,15 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
134 |
|
135 |
== Changelog ==
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
= 4.6.4 [July 16, 2020] =
|
138 |
|
139 |
* Enhancement
|
@@ -1709,8 +1718,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
1709 |
|
1710 |
== Upgrade Notice ==
|
1711 |
|
1712 |
-
= 4.6.
|
1713 |
-
rtMedia 4.6.
|
1714 |
|
1715 |
== Sponsors ==
|
1716 |
|
1 |
=== rtMedia for WordPress, BuddyPress and bbPress ===
|
2 |
+
Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, 1naveengiri, bhargavbhandari90, raftaar1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel, rahul3883, nomnom99, sayanchakraborty, milindmore22, thrijith, abhijitrakas, sid177, montu3366, jashwini, juhise, ravatparmar, dharmin16, malavvasita, pooja1210, krupajnanda, surajkumarsingh, kanumalivad, dishitpala, shobhit2412, vaishaliagola27
|
3 |
Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, media-node, rtMedia, WordPress, bbPress, masonry
|
4 |
License: GPLv2 or later
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: WordPress 4.1
|
7 |
+
Tested up to: 5.5.3
|
8 |
+
Stable tag: 4.6.5
|
9 |
|
10 |
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
11 |
|
134 |
|
135 |
== Changelog ==
|
136 |
|
137 |
+
= 4.6.5 [November 23, 2020] =
|
138 |
+
|
139 |
+
* FIXED
|
140 |
+
|
141 |
+
* Javascript errors while editing rtMedia image
|
142 |
+
* UI/UX issues
|
143 |
+
* Issue with attachment when creating support ticket
|
144 |
+
* Media not appearing in Profile/Group when uploading from BuddyPress’ sitewide activity stream
|
145 |
+
|
146 |
= 4.6.4 [July 16, 2020] =
|
147 |
|
148 |
* Enhancement
|
1718 |
|
1719 |
== Upgrade Notice ==
|
1720 |
|
1721 |
+
= 4.6.5 =
|
1722 |
+
rtMedia 4.6.5 with added added fixes such as sitewide activities media missing in media page, JS errors on trying to edit an image, along with other small UI/UX fixes and improvements.
|
1723 |
|
1724 |
== Sponsors ==
|
1725 |
|