Version Description
rtMedia 4.6.12 with some enhancements & minor UI/UX fixes.
=
Download this release
Release Info
Developer | pooja1210 |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 4.6.12 |
Comparing to | |
See all releases |
Code changes from version v4.6.11 to 4.6.12
- app/admin/RTMediaAdmin.php +5 -5
- app/assets/js/rtMedia.backbone.js +1 -1
- app/assets/js/rtMedia.js +1 -1
- app/assets/js/rtmedia.min.js +1 -1
- app/helper/RTMediaAddon.php +2 -2
- app/main/controllers/activity/RTMediaActivity.php +1 -1
- app/main/controllers/privacy/RTMediaPrivacy.php +1 -1
- app/main/controllers/template/RTMediaNav.php +9 -7
- app/main/controllers/template/rtmedia-actions.php +74 -0
- app/main/interactions/RTMediaInteraction.php +1 -1
- index.php +2 -2
- languages/buddypress-media.po +7 -7
- readme.txt +55 -49
- templates/media/album-gallery.php +1 -1
app/admin/RTMediaAdmin.php
CHANGED
@@ -838,10 +838,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
838 |
array(
|
839 |
'id' => 'rt-media-addons',
|
840 |
'parent' => 'rtMedia',
|
841 |
-
'title' => esc_html__( '
|
842 |
'href' => admin_url( 'admin.php?page=rtmedia-addons' ),
|
843 |
'meta' => array(
|
844 |
-
'title' => esc_html__( '
|
845 |
'target' => '_self',
|
846 |
),
|
847 |
)
|
@@ -1043,8 +1043,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
1043 |
|
1044 |
add_submenu_page(
|
1045 |
'rtmedia-settings',
|
1046 |
-
esc_html__( '
|
1047 |
-
esc_html__( '
|
1048 |
'manage_options',
|
1049 |
'rtmedia-addons',
|
1050 |
array(
|
@@ -1399,7 +1399,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
1399 |
),
|
1400 |
array(
|
1401 |
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-addons' ), 'admin.php' ) ) ),
|
1402 |
-
'name' => esc_html__( '
|
1403 |
'slug' => 'rtmedia-addons',
|
1404 |
),
|
1405 |
);
|
838 |
array(
|
839 |
'id' => 'rt-media-addons',
|
840 |
'parent' => 'rtMedia',
|
841 |
+
'title' => esc_html__( 'Premium', 'buddypress-media' ),
|
842 |
'href' => admin_url( 'admin.php?page=rtmedia-addons' ),
|
843 |
'meta' => array(
|
844 |
+
'title' => esc_html__( 'Premium', 'buddypress-media' ),
|
845 |
'target' => '_self',
|
846 |
),
|
847 |
)
|
1043 |
|
1044 |
add_submenu_page(
|
1045 |
'rtmedia-settings',
|
1046 |
+
esc_html__( 'Premium', 'buddypress-media' ),
|
1047 |
+
esc_html__( 'Premium', 'buddypress-media' ),
|
1048 |
'manage_options',
|
1049 |
'rtmedia-addons',
|
1050 |
array(
|
1399 |
),
|
1400 |
array(
|
1401 |
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-addons' ), 'admin.php' ) ) ),
|
1402 |
+
'name' => esc_html__( 'Premium', 'buddypress-media' ),
|
1403 |
'slug' => 'rtmedia-addons',
|
1404 |
),
|
1405 |
);
|
app/assets/js/rtMedia.backbone.js
CHANGED
@@ -316,7 +316,7 @@ jQuery( function( $ ) {
|
|
316 |
|
317 |
|
318 |
// Update the count on sub navigations (Albums)
|
319 |
-
jQuery( '#rtmedia-nav-item-albums span' ).text( response.media_count.albums_count );
|
320 |
|
321 |
// Update the count on sub navigations (Photo, Video & Music)
|
322 |
jQuery( '#rtmedia-nav-item-photo span' ).text( response.media_count.photos_count );
|
316 |
|
317 |
|
318 |
// Update the count on sub navigations (Albums)
|
319 |
+
// jQuery( '#rtmedia-nav-item-albums span' ).text( response.media_count.albums_count );
|
320 |
|
321 |
// Update the count on sub navigations (Photo, Video & Music)
|
322 |
jQuery( '#rtmedia-nav-item-photo span' ).text( response.media_count.photos_count );
|
app/assets/js/rtMedia.js
CHANGED
@@ -923,7 +923,7 @@ jQuery( 'document' ).ready( function( $ ) {
|
|
923 |
jQuery( '#user-media span, #media-groups-li #media span, #rtmedia-nav-item-all span' ).text( response.data.all_media_count );
|
924 |
|
925 |
// Update the count on sub navigations (Albums)
|
926 |
-
jQuery( '#rtmedia-nav-item-albums span' ).text( response.data.albums_count );
|
927 |
|
928 |
// Update the count on sub navigations (Photo, Video & Music)
|
929 |
jQuery( '#rtmedia-nav-item-photo span' ).text( response.data.photos_count );
|
923 |
jQuery( '#user-media span, #media-groups-li #media span, #rtmedia-nav-item-all span' ).text( response.data.all_media_count );
|
924 |
|
925 |
// Update the count on sub navigations (Albums)
|
926 |
+
// jQuery( '#rtmedia-nav-item-albums span' ).text( response.data.albums_count );
|
927 |
|
928 |
// Update the count on sub navigations (Photo, Video & Music)
|
929 |
jQuery( '#rtmedia-nav-item-photo span' ).text( response.data.photos_count );
|
app/assets/js/rtmedia.min.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
* @package rtMedia
|
4 |
*/
|
5 |
|
6 |
-
var rtMagnificPopup,rtm_masonry_container;!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(d){function e(){}function m(e,t){y.ev.on(i+e+b,t)}function u(e,t,i,a){var r=document.createElement("div");return r.className="mfp-"+e,i&&(r.innerHTML=i),a?t&&t.appendChild(r):(r=d(r),t&&r.appendTo(t)),r}function p(e,t){y.ev.triggerHandler(i+e,t),y.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),y.st.callbacks[e]&&y.st.callbacks[e].apply(y,d.isArray(t)?t:[t]))}function f(e){return e===t&&y.currTemplate.closeBtn||(y.currTemplate.closeBtn=d(y.st.closeMarkup.replace("%title%",y.st.tClose)),t=e),y.currTemplate.closeBtn}function n(){d.magnificPopup.instance||((y=new e).init(),d.magnificPopup.instance=y)}var y,a,_,r,v,t,l="Close",c="BeforeClose",g="MarkupParse",h="Open",o="Change",i="mfp",b="."+i,j="mfp-ready",s="mfp-removing",w="mfp-prevent-close",Q=!!window.jQuery,C=d(window);e.prototype={constructor:e,init:function(){var e=navigator.appVersion;y.isIE7=-1!==e.indexOf("MSIE 7."),y.isIE8=-1!==e.indexOf("MSIE 8."),y.isLowIE=y.isIE7||y.isIE8,y.isAndroid=/android/gi.test(e),y.isIOS=/iphone|ipad|ipod/gi.test(e),y.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),y.probablyMobile=y.isAndroid||y.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),_=d(document),y.popupsCache={}},open:function(e){var t;if(!1===e.isObj){y.items=e.items.toArray(),y.index=0;var i,a=e.items;for(t=0;t<a.length;t++)if((i=a[t]).parsed&&(i=i.el[0]),i===e.el[0]){y.index=t;break}}else y.items=d.isArray(e.items)?e.items:[e.items],y.index=e.index||0;if(!y.isOpen){y.types=[],v="",e.mainEl&&e.mainEl.length?y.ev=e.mainEl.eq(0):y.ev=_,e.key?(y.popupsCache[e.key]||(y.popupsCache[e.key]={}),y.currTemplate=y.popupsCache[e.key]):y.currTemplate={},y.st=d.extend(!0,{},d.magnificPopup.defaults,e),y.fixedContentPos="auto"===y.st.fixedContentPos?!y.probablyMobile:y.st.fixedContentPos,y.st.modal&&(y.st.closeOnContentClick=!1,y.st.closeOnBgClick=!1,y.st.showCloseBtn=!1,y.st.enableEscapeKey=!1),y.bgOverlay||(y.bgOverlay=u("bg").on("click"+b,function(){y.close()}),y.wrap=u("wrap").attr("tabindex",-1).on("click"+b,function(e){y._checkIfClose(e.target)&&y.close()}),y.container=u("container",y.wrap)),y.contentContainer=u("content"),y.st.preloader&&(y.preloader=u("preloader",y.container,y.st.tLoading));var r=d.magnificPopup.modules;for(t=0;t<r.length;t++){var n=r[t];n=n.charAt(0).toUpperCase()+n.slice(1),y["init"+n].call(y)}p("BeforeOpen"),y.st.showCloseBtn&&(y.st.closeBtnInside?(m(g,function(e,t,i,a){i.close_replaceWith=f(a.type)}),v+=" mfp-close-btn-in"):y.wrap.append(f())),y.st.alignTop&&(v+=" mfp-align-top"),y.fixedContentPos?y.wrap.css({overflow:y.st.overflowY,overflowX:"hidden",overflowY:y.st.overflowY}):y.wrap.css({top:C.scrollTop(),position:"absolute"}),!1!==y.st.fixedBgPos&&("auto"!==y.st.fixedBgPos||y.fixedContentPos)||y.bgOverlay.css({height:_.height(),position:"absolute"}),y.st.enableEscapeKey&&_.on("keyup"+b,function(e){27===e.keyCode&&y.close()}),C.on("resize"+b,function(){y.updateSize()}),y.st.closeOnContentClick||(v+=" mfp-auto-cursor"),v&&y.wrap.addClass(v);var o=y.wH=C.height(),s={};if(y.fixedContentPos&&y._hasScrollBar(o)){var l=y._getScrollbarSize();l&&(s.marginRight=l)}y.fixedContentPos&&(y.isIE7?d("body, html").css("overflow","hidden"):s.overflow="hidden");var c=y.st.mainClass;return y.isIE7&&(c+=" mfp-ie7"),c&&y._addClassToMFP(c),y.updateItemHTML(),p("BuildControls"),d("html").css(s),y.bgOverlay.add(y.wrap).prependTo(y.st.prependTo||d(document.body)),y._lastFocusedEl=document.activeElement,setTimeout(function(){y.content?(y._addClassToMFP(j),y._setFocus()):y.bgOverlay.addClass(j),_.on("focusin"+b,y._onFocusIn)},16),y.isOpen=!0,y.updateSize(o),p(h),e}y.updateItemHTML()},close:function(){y.isOpen&&(p(c),y.isOpen=!1,y.st.removalDelay&&!y.isLowIE&&y.supportsTransition?(y._addClassToMFP(s),setTimeout(function(){y._close()},y.st.removalDelay)):y._close())},_close:function(){p(l);var e=s+" "+j+" ";if(y.bgOverlay.detach(),y.wrap.detach(),y.container.empty(),y.st.mainClass&&(e+=y.st.mainClass+" "),y._removeClassFromMFP(e),y.fixedContentPos){var t={marginRight:""};y.isIE7?d("body, html").css("overflow",""):t.overflow="",d("html").css(t)}_.off("keyup.mfp focusin"+b),y.ev.off(b),y.wrap.attr("class","mfp-wrap").removeAttr("style"),y.bgOverlay.attr("class","mfp-bg"),y.container.attr("class","mfp-container"),!y.st.showCloseBtn||y.st.closeBtnInside&&!0!==y.currTemplate[y.currItem.type]||y.currTemplate.closeBtn&&y.currTemplate.closeBtn.detach(),y._lastFocusedEl&&d(y._lastFocusedEl).focus(),y.currItem=null,y.content=null,y.currTemplate=null,y.prevHeight=0,p("AfterClose")},updateSize:function(e){if(y.isIOS){var t=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*t;y.wrap.css("height",i),y.wH=i}else y.wH=e||C.height();y.fixedContentPos||y.wrap.css("height",y.wH),p("Resize")},updateItemHTML:function(){var e=y.items[y.index];y.contentContainer.detach(),y.content&&y.content.detach(),e.parsed||(e=y.parseEl(y.index));var t=e.type;if(p("BeforeChange",[y.currItem?y.currItem.type:"",t]),y.currItem=e,!y.currTemplate[t]){var i=!!y.st[t]&&y.st[t].markup;p("FirstMarkupParse",i),y.currTemplate[t]=!i||d(i)}r&&r!==e.type&&y.container.removeClass("mfp-"+r+"-holder");var a=y["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,y.currTemplate[t]);y.appendContent(a,t),e.preloaded=!0,p(o,e),r=e.type,y.container.prepend(y.contentContainer),p("AfterChange")},appendContent:function(e,t){(y.content=e)?y.st.showCloseBtn&&y.st.closeBtnInside&&!0===y.currTemplate[t]?y.content.find(".mfp-close").length||y.content.append(f()):y.content=e:y.content="",p("BeforeAppend"),y.container.addClass("mfp-"+t+"-holder"),y.contentContainer.append(y.content)},parseEl:function(e){var t,i=y.items[e];if((i=i.tagName?{el:d(i)}:(t=i.type,{data:i,src:i.src})).el){for(var a=y.types,r=0;r<a.length;r++)if(i.el.hasClass("mfp-"+a[r])){t=a[r];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=t||y.st.type||"inline",i.index=e,i.parsed=!0,y.items[e]=i,p("ElementParse",i),y.items[e]},addGroup:function(t,i){function e(e){e.mfpEl=this,y._openClick(e,t,i)}var a="click.magnificPopup";(i=i||{}).mainEl=t,i.items?(i.isObj=!0,t.off(a).on(a,e)):(i.isObj=!1,i.delegate?t.off(a).on(a,i.delegate,e):(i.items=t).off(a).on(a,e))},_openClick:function(e,t,i){if((void 0!==i.midClick?i.midClick:d.magnificPopup.defaults.midClick)||2!==e.which&&!e.ctrlKey&&!e.metaKey){var a=void 0!==i.disableOn?i.disableOn:d.magnificPopup.defaults.disableOn;if(a)if(d.isFunction(a)){if(!a.call(y))return!0}else if(C.width()<a)return!0;e.type&&(e.preventDefault(),y.isOpen&&e.stopPropagation()),i.el=d(e.mfpEl),i.delegate&&(i.items=t.find(i.delegate)),y.open(i)}},updateStatus:function(e,t){if(y.preloader){a!==e&&y.container.removeClass("mfp-s-"+a),t||"loading"!==e||(t=y.st.tLoading);var i={status:e,text:t};p("UpdateStatus",i),e=i.status,t=i.text,y.preloader.html(t),y.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),y.container.addClass("mfp-s-"+e),a=e}},_checkIfClose:function(e){if(!d(e).hasClass(w)){var t=y.st.closeOnContentClick,i=y.st.closeOnBgClick;if(t&&i)return!0;if(!y.content||d(e).hasClass("mfp-close")||y.preloader&&e===y.preloader[0])return!0;if(e===y.content[0]||d.contains(y.content[0],e)){if(t)return!0}else if(i&&d.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){y.bgOverlay.addClass(e),y.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),y.wrap.removeClass(e)},_hasScrollBar:function(e){return(y.isIE7?_.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(y.st.focus?y.content.find(y.st.focus).eq(0):y.wrap).focus()},_onFocusIn:function(e){if(e.target!==y.wrap[0]&&!d.contains(y.wrap[0],e.target))return y._setFocus(),!1},_parseMarkup:function(r,e,t){var n;t.data&&(e=d.extend(t.data,e)),p(g,[r,e,t]),d.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(n=e.split("_")).length){var i=r.find(b+"-"+n[0]);if(0<i.length){var a=n[1];"replaceWith"===a?i[0]!==t[0]&&i.replaceWith(t):"img"===a?i.is("img")?i.attr("src",t):i.replaceWith('<img src="'+t+'" class="'+i.attr("class")+'" />'):i.attr(n[1],t)}}else r.find(b+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===y.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),y.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return y.scrollbarSize}},d.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return n(),(e=e?d.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return d.magnificPopup.instance&&d.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(d.magnificPopup.defaults[e]=t.options),d.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},d.fn.magnificPopup=function(e){n();var t=d(this);if("string"==typeof e)if("open"===e){var i,a=Q?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;i=a.items?a.items[r]:(i=t,a.delegate&&(i=i.find(a.delegate)),i.eq(r)),y._openClick({mfpEl:i},t,a)}else y.isOpen&&y[e].apply(y,Array.prototype.slice.call(arguments,1));else e=d.extend(!0,{},e),Q?t.data("magnificPopup",e):t[0].magnificPopup=e,y.addGroup(t,e);return t};function k(){I&&(T.after(I.addClass(x)).detach(),I=null)}var x,T,I,M="inline";d.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){y.types.push(M),m(l+"."+M,function(){k()})},getInline:function(e,t){if(k(),e.src){var i=y.st.inline,a=d(e.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(T||(x=i.hiddenClass,T=u(x),x="mfp-"+x),I=a.after(T).detach().removeClass(x)),y.updateStatus("ready")}else y.updateStatus("error",i.tNotFound),a=d("<div>");return e.inlineElement=a}return y.updateStatus("ready"),y._parseMarkup(t,{},e),t}}});function P(){E&&d(document.body).removeClass(E)}function S(){P(),y.req&&y.req.abort()}var E,O="ajax";d.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){y.types.push(O),E=y.st.ajax.cursor,m(l+"."+O,S),m("BeforeChange."+O,S)},getAjax:function(r){E&&d(document.body).addClass(E),y.updateStatus("loading");var e=d.extend({url:r.src,success:function(e,t,i){var a={data:e,xhr:i};p("ParseAjax",a),y.appendContent(d(a.data),O),r.finished=!0,P(),y._setFocus(),setTimeout(function(){y.wrap.addClass(j)},16),y.updateStatus("ready"),p("AjaxContentAdded")},error:function(){P(),r.finished=r.loadError=!0,y.updateStatus("error",y.st.ajax.tError.replace("%url%",r.src))}},y.st.ajax.settings);return y.req=d.ajax(e),""}}});var z;d.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=y.st.image,t=".image";y.types.push("image"),m(h+t,function(){"image"===y.currItem.type&&e.cursor&&d(document.body).addClass(e.cursor)}),m(l+t,function(){e.cursor&&d(document.body).removeClass(e.cursor),C.off("resize"+b)}),m("Resize"+t,y.resizeImage),y.isLowIE&&m("AfterChange",y.resizeImage)},resizeImage:function(){var e=y.currItem;if(e&&e.img&&y.st.image.verticalFit){var t=0;y.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",y.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,p("ImageHasSize",e),e.imgHidden&&(y.content&&y.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var i=0,a=t.img[0],r=function(e){z&&clearInterval(z),z=setInterval(function(){0<a.naturalWidth?y._onImageHasSize(t):(200<i&&clearInterval(z),3===++i?r(10):40===i?r(50):100===i&&r(500))},e)};r(1)},getImage:function(e,t){var i=0,a=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===y.currItem&&(y._onImageHasSize(e),y.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,p("ImageLoadComplete")):++i<200?setTimeout(a,100):r())},r=function(){e&&(e.img.off(".mfploader"),e===y.currItem&&(y._onImageHasSize(e),y.updateStatus("error",n.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},n=y.st.image,o=t.find(".mfp-img");if(o.length){var s=document.createElement("img");s.className="mfp-img",e.el&&e.el.find("img").length&&(s.alt=e.el.find("img").attr("alt")),e.img=d(s).on("load.mfploader",a).on("error.mfploader",r),s.src=e.src,o.is("img")&&(e.img=e.img.clone()),0<(s=e.img[0]).naturalWidth?e.hasSize=!0:s.width||(e.hasSize=!1)}return y._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=y.st.image.titleSrc;if(t){if(d.isFunction(t))return t.call(y,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),y.resizeImage(),e.hasSize?(z&&clearInterval(z),e.loadError?(t.addClass("mfp-loading"),y.updateStatus("error",n.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),y.updateStatus("ready"))):(y.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),y.findImageSize(e))),t}}});var H;d.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=y.st.zoom,t=".zoom";if(n.enabled&&y.supportsTransition){function i(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,a={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return a["-webkit-"+r]=a["-moz-"+r]=a["-o-"+r]=a[r]=i,t.css(a),t}function a(){y.content.css("visibility","visible")}var r,o,s=n.duration;m("BuildControls"+t,function(){if(y._allowZoom()){if(clearTimeout(r),y.content.css("visibility","hidden"),!(e=y._getItemToZoom()))return void a();(o=i(e)).css(y._getOffset()),y.wrap.append(o),r=setTimeout(function(){o.css(y._getOffset(!0)),r=setTimeout(function(){a(),setTimeout(function(){o.remove(),e=o=null,p("ZoomAnimationEnded")},16)},s)},16)}}),m(c+t,function(){if(y._allowZoom()){if(clearTimeout(r),y.st.removalDelay=s,!e){if(!(e=y._getItemToZoom()))return;o=i(e)}o.css(y._getOffset(!0)),y.wrap.append(o),y.content.css("visibility","hidden"),setTimeout(function(){o.css(y._getOffset())},16)}}),m(l+t,function(){y._allowZoom()&&(a(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===y.currItem.type},_getItemToZoom:function(){return!!y.currItem.hasSize&&y.currItem.img},_getOffset:function(e){var t,i=(t=e?y.currItem.img:y.st.zoom.opener(y.currItem.el||y.currItem)).offset(),a=parseInt(t.css("padding-top"),10),r=parseInt(t.css("padding-bottom"),10);i.top-=d(window).scrollTop()-a;var n={width:t.width(),height:(Q?t.innerHeight():t[0].offsetHeight)-r-a};return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H?n["-moz-transform"]=n.transform="translate("+i.left+"px,"+i.top+"px)":(n.left=i.left,n.top=i.top),n}}});function B(e){if(y.currTemplate[L]){var t=y.currTemplate[L].find("iframe");t.length&&(e||(t[0].src="//about:blank"),y.isIE8&&t.css("display",e?"block":"none"))}}var L="iframe";d.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){y.types.push(L),m("BeforeChange",function(e,t,i){t!==i&&(t===L?B():i===L&&B(!0))}),m(l+"."+L,function(){B()})},getIframe:function(e,t){var i=e.src,a=y.st.iframe;d.each(a.patterns,function(){if(-1<i.indexOf(this.index))return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var r={};return a.srcAction&&(r[a.srcAction]=i),y._parseMarkup(t,r,e),y.updateStatus("ready"),t}}});function A(e){var t=y.items.length;return t-1<e?e-t:e<0?t+e:e}function $(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)}d.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=y.st.gallery,e=".mfp-gallery",r=Boolean(d.fn.mfpFastClick);if(y.direction=!0,!n||!n.enabled)return!1;v+=" mfp-gallery",m(h+e,function(){n.navigateByImgClick&&y.wrap.on("click"+e,".mfp-img",function(){if(1<y.items.length)return y.next(),!1}),_.on("keydown"+e,function(e){37===e.keyCode?y.prev():39===e.keyCode&&y.next()})}),m("UpdateStatus"+e,function(e,t){t.text&&(t.text=$(t.text,y.currItem.index,y.items.length))}),m(g+e,function(e,t,i,a){var r=y.items.length;i.counter=1<r?$(n.tCounter,a.index,r):""}),m("BuildControls"+e,function(){if(1<y.items.length&&n.arrows&&!y.arrowLeft){var e=n.arrowMarkup,t=y.arrowLeft=d(e.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(w),i=y.arrowRight=d(e.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(w),a=r?"mfpFastClick":"click";t[a](function(){y.prev()}),i[a](function(){y.next()}),y.isIE7&&(u("b",t[0],!1,!0),u("a",t[0],!1,!0),u("b",i[0],!1,!0),u("a",i[0],!1,!0)),y.container.append(t.add(i))}}),m(o+e,function(){y._preloadTimeout&&clearTimeout(y._preloadTimeout),y._preloadTimeout=setTimeout(function(){y.preloadNearbyImages(),y._preloadTimeout=null},16)}),m(l+e,function(){_.off(e),y.wrap.off("click"+e),y.arrowLeft&&r&&y.arrowLeft.add(y.arrowRight).destroyMfpFastClick(),y.arrowRight=y.arrowLeft=null})},next:function(){y.direction=!0,y.index=A(y.index+1),y.updateItemHTML()},prev:function(){y.direction=!1,y.index=A(y.index-1),y.updateItemHTML()},goTo:function(e){y.direction=e>=y.index,y.index=e,y.updateItemHTML()},preloadNearbyImages:function(){var e,t=y.st.gallery.preload,i=Math.min(t[0],y.items.length),a=Math.min(t[1],y.items.length);for(e=1;e<=(y.direction?a:i);e++)y._preloadItem(y.index+e);for(e=1;e<=(y.direction?i:a);e++)y._preloadItem(y.index-e)},_preloadItem:function(e){if(e=A(e),!y.items[e].preloaded){var t=y.items[e];t.parsed||(t=y.parseEl(e)),p("LazyLoad",t),"image"===t.type&&(t.img=d('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,p("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var F,R,D="retina";function W(){C.off("touchmove"+R+" touchend"+R)}d.magnificPopup.registerModule(D,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(1<window.devicePixelRatio){var i=y.st.retina,a=i.ratio;1<(a=isNaN(a)?a():a)&&(m("ImageHasSize."+D,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/a,width:"100%"})}),m("ElementParse."+D,function(e,t){t.src=i.replaceSrc(t,a)}))}}}}),F="ontouchstart"in window,R=".mfpFastClick",d.fn.mfpFastClick=function(l){return d(this).each(function(){var t,i,a,r,n,o,s,e=d(this);F&&e.on("touchstart"+R,function(e){n=!1,s=1,o=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],a=o.clientX,r=o.clientY,C.on("touchmove"+R,function(e){o=e.originalEvent?e.originalEvent.touches:e.touches,s=o.length,o=o[0],(10<Math.abs(o.clientX-a)||10<Math.abs(o.clientY-r))&&(n=!0,W())}).on("touchend"+R,function(e){W(),n||1<s||(t=!0,e.preventDefault(),clearTimeout(i),i=setTimeout(function(){t=!1},1e3),l())})}),e.on("click"+R,function(){t||l()})})},d.fn.destroyMfpFastClick=function(){d(this).off("touchstart"+R+" click"+R),F&&C.off("touchmove"+R+" touchend"+R)},n()}),"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(n,o){var i={init:function(e,t){this.elem=t,this.$elem=n(t),this.options=n.extend({},n.fn.rtTab.options,e),this.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 i=o.location.hash;i&&t.$elem.find("li").find('a[href="'+i+'"]').trigger("click"),n(o).on("hashchange",function(){var e=o.location.hash;t.$elem.find("li").find('a[href="'+e+'"]').trigger("click")})}},rtClick:function(){var a=this,r=a.$elem.find("li");r.find("a").on("click",function(e){e.preventDefault(),r.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 i=n(o).scrollTop();location.hash=n(this).attr("href"),n(o).scrollTop(i)}"function"==typeof a.options.onComplete&&a.options.onComplete.apply(a.elem,arguments)})},rtTabContent:function(i){this.$elem.find("li").find("a").each(function(){var e=n(this),t=e.attr("href");"yes"===i&&e.parent().hasClass("active")||n(t).addClass("hide")})}};n.fn.rtTab=function(t){return this.each(function(){var e=Object.create(i);e.init(t,this),n.data(this,"rtTab",e)})},n.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var comment_media=!1;function apply_rtMagnificPopup(t){jQuery("document").ready(function(s){var e="";if(e="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled){var n,l,c=!1;0<s(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length&&s(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(t).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",fixedContentPos:!0,fixedBgPos:!0,tLoading:e+" #%curr%...",mainClass:"mfp-img-mobile",preload:[1,3],closeOnBgClick:!0,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:"",preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return e.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){e=jQuery.magnificPopup.instance,1===jQuery(e.items).size()&&jQuery(".mfp-arrow").remove();var e=jQuery.magnificPopup.instance,t=e.currItem.el,i=t.parent();if(i.is("li")||(i=i.parent()),(i.is(":nth-last-child(2)")||i.is(":last-child"))&&i.find("a").hasClass("rtmedia-list-item-a")){i.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&(c||(n=e.ev.children(),c=!0,l=nextpage),jQuery("#rtMedia-galary-next").click())}var a=e.items.length;if(e.index!=a-1||i.is(":last-child")){"undefined"!=typeof _wpmejsSettings&&_wpmejsSettings.pluginPath;var o=jQuery(".rtmedia-container .rtmedia-single-meta").height(),r=!1;void 0!==e&&void 0!==e.probablyMobile&&1==e.probablyMobile&&(r=!0),s(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("autoplay",!0),r&&s(".mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("muted",!1),s(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,hideVolumeOnTouchDevices:!1,features:["playpause","progress","current","volume","fullscreen"],defaultVideoHeight:270,alwaysShowControls:r,enableAutosize:!0,clickToPlayPause:!0,videoHeight:-1,success:function(n,e){n.addEventListener("loadeddata",function(e){var t=s(n).height(),i=s(window).height(),a=jQuery("div.rtm-ltb-action-container").height(),r=o-(a=a+50);i<t&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+r+"px !important; transition:0.2s")},!1),r&&s(n).hasClass("wp-video-shortcode")?jQuery("body").on("touchstart",".mejs-overlay-button",function(e){n.paused?n.play():n.pause()}):n.pause()}}),s(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),"undefined"!=typeof bp&&void 0!==bp.mentions&&void 0!==bp.mentions.users&&(s("#atwho-container #atwho-ground-comment_content").remove(),s("#comment_content").bp_mentions(bp.mentions.users)),rtmedia_reset_video_and_audio_for_popup(),apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container")}else t.click()},open:function(){var e=jQuery(".mfp-bg"),t=jQuery(".mfp-wrap");e.height(e.height()+t.height())},close:function(e){c&&(mfp.ev.empty(),mfp.ev.append(n),nextpage=l,c=!1,1<nextpage&&jQuery("#rtMedia-galary-next").show()),rtmedia_single_page_popup_close()},BeforeChange:function(e){}}})}jQuery(document).ajaxComplete(function(){jQuery("[id^=imgedit-leaving]").filter(function(){var e=jQuery(this).text();jQuery(this).text(e.replace("OK","Save"))})})})}jQuery(document).ready(function(){if("object"==typeof rtmedia_bp)for(var e in rtmedia_bp)window[e]=rtmedia_bp[e];if("object"==typeof rtmedia_main)for(var e in rtmedia_main)window[e]=rtmedia_main[e];if("object"==typeof rtmedia_upload_terms)for(var e in rtmedia_upload_terms)window[e]=rtmedia_upload_terms[e];if("object"==typeof rtmedia_magnific)for(var e in rtmedia_magnific)window[e]=rtmedia_magnific[e]});var rtMediaHook={hooks:[],is_break:!1,register:function(e,t){void 0===rtMediaHook.hooks[e]&&(rtMediaHook.hooks[e]=[]),rtMediaHook.hooks[e].push(t)},call:function(e,arguments){if(void 0!==rtMediaHook.hooks[e])for(i=0;i<rtMediaHook.hooks[e].length;++i)if(1!=rtMediaHook.hooks[e][i](arguments))return!(rtMediaHook.is_break=!0);return!0}};function rtmedia_init_action_dropdown(e){var t,i;jQuery(e+" .click-nav > span,"+e+" .click-nav > div").toggleClass("no-js js"),jQuery(e+" .click-nav .js ul").hide(),jQuery(e+" .click-nav .clicker").click(function(e){t=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),i=jQuery(this).next("ul"),jQuery.each(t,function(e,t){jQuery(t).html()!=i.html()&&jQuery(t).hide()}),jQuery(i).toggle(),e.stopPropagation()})}function bp_media_create_element(e){return!1}function rtmedia_version_compare(e,t){if(typeof e+typeof t!="stringstring")return!1;for(var i=e.split("."),a=t.split("."),r=0,n=Math.max(i.length,a.length);r<n;r++){if(i[r]&&!a[r]&&0<parseInt(i[r])||parseInt(i[r])>parseInt(a[r]))return!0;if(a[r]&&!i[r]&&0<parseInt(a[r])||parseInt(i[r])<parseInt(a[r]))return!1}return!0}function rtm_is_element_exist(e){return 0<jQuery(e).length}function rtm_masonry_reload(e){setTimeout(function(){e.masonry("reload")},250)}function rtm_search_media_text_validation(){""===jQuery("#media_search_input").val()?jQuery("#media_search").css("cursor","not-allowed"):jQuery("#media_search").css("cursor","pointer")}function rtmediaGetParameterByName(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null==t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(e,t,i){var a="rtmedia-success";"warning"==t&&(a="rtmedia-warning");var r=!1;jQuery(".rtmedia-message-container").each(function(e,t){return t=jQuery(t),i&&t.hasClass("rtmedia-empty-comment-error-class")?(t.remove(),!(r=!0)):void 0!==i||t.hasClass("rtmedia-empty-comment-error-class")?void 0:(t.remove(),!(r=!0))});var n,o=jQuery("<div>",{title:"Click to dismiss",class:"rtmedia-message-container"+(i?" rtmedia-empty-comment-error-class":""),style:"margin:1em 0;"}),s=jQuery("<span>",{class:a});s.html(e),s.appendTo(o),i?(n=jQuery("#rt_media_comment_form"),jQuery("#comment_content").focus()):void 0===i&&(n=jQuery(".rtmedia-single-media .rtmedia-media")).css("opacity","0.2"),n.after(o),r&&(s.css({border:"2px solid #884646"}),setTimeout(function(){s.css({border:"none"})},500)),setTimeout(function(){o.remove(),void 0===i&&n.css("opacity","1")},3e3),o.click(function(){o.remove(),void 0===i&&n.css("opacity","1")})}function rtmedia_gallery_action_alert_message(e,t){var i="rtmedia-success";"warning"==t&&(i="rtmedia-warning");jQuery("body").append('<div class="rtmedia-gallery-alert-container"> </div>'),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+i+"'>"+e+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-gallery-alert-container").remove()},3e3),jQuery(".rtmedia-gallery-message-box").click(function(){jQuery(".rtmedia-gallery-alert-container").remove()})}function rtmedia_activity_masonry(){jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list").masonry({itemSelector:".rtmedia-list-item",gutter:7});var e=0,t=setInterval(function(){5===(e+=1)&&clearInterval(t),jQuery.each(jQuery(".rtmedia-activity-container .rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list"))},1e3)}function get_parameter(e,t){if(!e)return!1;t=t||window.location.href;e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp(e+"=([^&#]*)").exec(t);return null!==i&&i[1]}function rtm_upload_terms_activity(){if(0<jQuery("#rtmedia_upload_terms_conditions").length){jQuery("#bp-nouveau-activity-form").on("click","#aw-whats-new-submit",function(e){var t=jQuery("#whats-new-form"),i=t.find("#rtmedia_upload_terms_conditions");if(0!==i.length&&!1===i.prop("checked")&&0===t.find("#message").length){e.preventDefault();var a=t.find(".rtmedia-upload-terms");rtp_display_terms_warning(a,rtmedia_upload_terms_check_terms_message)}});var t=jQuery("#whats-new-form");0<t.length&&jQuery("#whats-new-form, #rtmedia_upload_terms_conditions").on("click",function(e){t.find("input:hidden").each(function(){jQuery(this).prop("disabled",!1)})})}}jQuery("document").ready(function(n){function r(){if(0<jQuery("#rtmedia-media-view-form").length){var e=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(e,{},function(e){})}}function o(e,t,i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3);var r="expires="+a.toUTCString();document.cookie=e+"="+t+";"+r+";path=/"}jQuery(document).ajaxComplete(function(e,t,i){if("legacy"!==bp_template_pack&&bp_template_pack){var a=get_parameter("action",i.data);"activity_filter"!==a&&"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||"undefined"==typeof rtmedia_masonry_layout||"true"!==rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!==rtmedia_masonry_layout_activity?"activity_filter"!==a&&"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||setTimeout(function(){apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),rtmedia_activity_stream_comment_media()},1e3):setTimeout(function(){apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),rtmedia_activity_masonry(),rtmedia_activity_stream_comment_media()},1e3)}}),jQuery(".rtmedia-uploader-div").css({opacity:"1",display:"block",visibility:"visible"}),jQuery(" #whats-new-options ").css({opacity:"1"}),void 0!==n.fn.rtTab&&n(".rtm-tabs").rtTab(),0<jQuery(".rtmedia-modal-link").length&&n(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),n("#rt_media_comment_form").submit(function(e){return""!=n.trim(n("#comment_content").val())||(0==jQuery("#rtmedia-single-media-container").length?rtmedia_gallery_action_alert_message(rtmedia_empty_comment_msg,"warning"):rtmedia_single_media_alert_message(rtmedia_empty_comment_msg,"warning"),!1)}),n("li.rtmedia-list-item p a").each(function(e){n(this).addClass("no-popup")}),n("li.rtmedia-list-item p a").each(function(e){n(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(e,t,i){try{if(null==t.data||void 0===t.data||void 0===t.data.action)return!0}catch(e){return!0}if("activity_get_older_updates"==t.data.action){var a=t.success;e.success=function(e){"function"==typeof a&&a(e),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}else if("get_single_activity_content"==t.data.action){a=t.success;e.success=function(e){"function"==typeof a&&a(e),setTimeout(function(){apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(e,t,i){try{if(null==t.data||void 0===t.data||void 0===t.data.action)return!0}catch(e){return!0}if("activity_get_older_updates"==t.data.action){var a=t.success;e.success=function(e){"function"==typeof a&&a(e),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,defaultVideoHeight:270}),setTimeout(function(){rtmedia_activity_stream_comment_media()},900),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(e){jQuery(this).toggleClass("unselect-all").toggleClass("select-all"),jQuery(this).attr("title",rtmedia_unselect_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!0)}),jQuery(".rtmedia-list-item").addClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".unselect-all",function(e){jQuery(this).toggleClass("select-all").toggleClass("unselect-all"),jQuery(this).attr("title",rtmedia_select_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!1)}),jQuery(".rtmedia-list-item").removeClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".rtmedia-move",function(e){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(e){if($albumname=jQuery("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$album_description=jQuery("#rtmedia_album_description"),$context=jQuery.trim(jQuery("#rtmedia_album_context").val()),$context_id=jQuery.trim(jQuery("#rtmedia_album_context_id").val()),$privacy=jQuery.trim(jQuery("#rtmedia_select_album_privacy").val()),$create_album_nonce=jQuery.trim(jQuery("#rtmedia_create_album_nonce").val()),""!=$albumname){var t={action:"rtmedia_create_album",name:$albumname,description:$album_description.val(),context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(t.privacy=$privacy),n("#rtmedia_create_new_album").attr("disabled","disabled");var r=n("#rtmedia_create_new_album").html();n("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,t,function(i){if(void 0!==i.album){i=jQuery.trim(i.album);var a=!0;$album_description.val(""),n("#rtmedia_album_name").focus(),jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){if(jQuery(this).attr("value")===$context)return a=!1,void jQuery(this).append('<option value="'+i+'">'+$albumname+"</option>")}),a){var e=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,t='<optgroup value="'+$context+'" label="'+e+'"><option value="'+i+'">'+$albumname+"</option></optgroup>";jQuery(this).append(t)}}),jQuery('select.rtmedia-user-album-list option[value="'+i+'"]').prop("selected",!0),jQuery(".rtmedia-create-new-album-container").slideToggle(),jQuery("#rtmedia_album_name").val(""),jQuery("#rtmedia-create-album-modal").append("<div class='rtmedia-success rtmedia-create-album-alert'><b>"+$albumname+"</b>"+rtmedia_album_created_msg+"</div>"),setTimeout(function(){jQuery(".rtmedia-create-album-alert").remove()},4e3),setTimeout(function(){galleryObj.reloadView(),window.location.reload(),jQuery(".close-reveal-modal").click()},2e3)}else void 0!==i.error?rtmedia_gallery_action_alert_message(i.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");n("#rtmedia_create_new_album").removeAttr("disabled"),n("#rtmedia_create_new_album").html(r)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(e){0<jQuery(".rtmedia-list :checkbox:checked").length?confirm(rtmedia_selected_media_delete_confirmation)&&jQuery(this).closest("form").attr("action","../../../"+rtmedia_media_slug+"/delete").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-move-selected",function(e){0<jQuery(".rtmedia-list :checkbox:checked").length?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery("#buddypress").on("change",".rtm-activity-privacy-opt",function(){var e=jQuery(this).attr("id");e=(e=e.split("-"))[e.length-1];var a=this;data={activity_id:e,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(e){var t="",i="";i="true"==e?(t=rtmedia_main_js_strings.privacy_update_success,"rtmedia-success"):(t=rtmedia_main_js_strings.privacy_update_error,"fail"),jQuery(a).after('<p class="rtm-ac-privacy-updated '+i+'">'+t+"</p>"),setTimeout(function(){jQuery(a).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),jQuery(".media_search_input").on("keyup",function(){rtm_search_media_text_validation()}),r(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){r(),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(e){e.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),mfp=jQuery.magnificPopup.instance,1<jQuery(mfp.items).size()&&0==comment_media?function(){var n=jQuery.magnificPopup.instance,e=n.probablyMobile,t=function(e){for(var t=e+"=",i=document.cookie.split(";"),a=0;a<i.length;a++){for(var r=i[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}("rtmedia-touch-swipe-tooltip");e&&""===t?(jQuery("#mobile-swipe-overlay").show(),jQuery("#mobile-swipe-overlay").on("click",function(e){o("rtmedia-touch-swipe-tooltip",!0,365),jQuery(this).hide(),jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click")}),jQuery("#mobile-swipe-overlay").swipe({swipe:function(e,t,i,a,r,n){o("rtmedia-touch-swipe-tooltip",!0,365),jQuery("#mobile-swipe-overlay").hide(),jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click")},threshold:0})):jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click");jQuery(".mfp-arrow-right").on("click",function(e){n.next()}),jQuery(".mfp-arrow-left").on("click",function(e){n.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(e,t,i,a,r){n.next()},swipeRight:function(e,t,i,a,r){n.prev()},threshold:0})}():(jQuery(".mfp-arrow-right").hide(),jQuery(".mfp-arrow-left").hide(),jQuery(document).unbind("keydown")),rtmedia_disable_popup_navigation("#comment_content"),rtmedia_disable_popup_navigation_comment_media_focus();var e=n(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*e,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*e,"over-flow":"hidden"}),rtmedia_init_action_dropdown(".rtm-lightbox-container .rtmedia-actions"),jQuery(".rtmedia-comment-link").on("click",function(e){e.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var t=n(".rtm-gallery-title"),i="";""!=(i=n.isEmptyObject(t)?n("#subnav.item-list-tabs li.selected ").html():t.html())&&n(".rtm-ltb-gallery-title .ltb-title").html(i);var a=n("#subnav.item-list-tabs li.selected span").html();return n("li.total").html(a),!0});var t=jQuery("#drag-drop-area"),i=jQuery("#whats-new");t.html();jQuery("#rtmedia-upload-container").after("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&jQuery("#whats-new-textarea").append("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),jQuery(document).on("dragover",function(e){e.preventDefault(),e.target!=this&&(jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&i.addClass("rtm-drag-drop-active"),t.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show())}).on("dragleave",function(e){if(e.preventDefault(),0!=e.originalEvent.pageX&&0!=e.originalEvent.pageY)return!1;"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(i.removeClass("rtm-drag-drop-active"),i.removeAttr("style")),t.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(e){e.preventDefault(),jQuery(".bp-suggestions").focus(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(i.removeClass("rtm-drag-drop-active"),i.removeAttr("style")),t.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(e){e.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(e){e.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(""),n(document).click(function(){n(".click-nav ul").is(":visible")&&n(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(e){e.preventDefault(),jQuery("#comment_content").focus()}),0<jQuery(".rtm-more").length&&n(".rtm-more").shorten({showChars:200}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&"undefined"!=typeof rtmedia_masonry_layout_activity&&"true"==rtmedia_masonry_layout_activity&&rtmedia_activity_masonry(),jQuery(document).ajaxComplete(function(e,t,i){var a=get_parameter("action",i.data);"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||"undefined"==typeof rtmedia_masonry_layout||"true"!=rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!=rtmedia_masonry_layout_activity||rtmedia_activity_masonry()}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&((rtm_masonry_container=jQuery(".rtmedia-container .rtmedia-list")).masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())})),0<jQuery(".rtm-uploader-tabs").length&&jQuery(".rtm-uploader-tabs li").click(function(e){jQuery(this).hasClass("active")||(jQuery(this).siblings().removeClass("active"),jQuery(this).parents(".rtm-uploader-tabs").siblings().hide(),class_name=jQuery(this).attr("class"),jQuery(this).parents(".rtm-uploader-tabs").siblings('[data-id="'+class_name+'"]').show(),jQuery(this).addClass("active"),"rtm-upload-tab"!=class_name?jQuery("div.moxie-shim").hide():jQuery("div.moxie-shim").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(e){e.preventDefault();var t=RTMedia_Main_JS.media_delete_confirmation;if(confirm(t)){var i=jQuery(this).closest("li"),a=jQuery("#rtmedia_media_delete_nonce").val(),r=jQuery(this).parents(".rtmedia-list-item").data("media_type"),n={action:"delete_uploaded_media",nonce:a,media_id:i.attr("id"),media_type:r};jQuery.ajax({url:RTMedia_Main_JS.rtmedia_ajaxurl,type:"POST",data:n,dataType:"JSON",success:function(e){"rtmedia-media-deleted"===e.data.code?(rtmedia_gallery_action_alert_message(RTMedia_Main_JS.media_delete_success,"success"),i.remove(),"undefined"!=typeof rtmedia_masonry_layout&&"true"===rtmedia_masonry_layout&&rtm_masonry_reload(rtm_masonry_container),jQuery("#user-media span, #media-groups-li #media span, #rtmedia-nav-item-all span").text(e.data.all_media_count),jQuery("#rtmedia-nav-item-albums span").text(e.data.albums_count),jQuery("#rtmedia-nav-item-photo span").text(e.data.photos_count),jQuery("#rtmedia-nav-item-music span").text(e.data.music_count),jQuery("#rtmedia-nav-item-video span").text(e.data.videos_count)):rtmedia_gallery_action_alert_message(e.data.message,"warning")}})}})}),function(u){u.fn.shorten=function(e){"use strict";var m={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return e&&u.extend(m,e),!(u(this).data("jquery.shorten")&&!m.force)&&(u(this).data("jquery.shorten",!0),u(document).off("click",".morelink"),u(document).on({click:function(){var e=u(this);return e.hasClass("less")?(e.removeClass("less"),e.html(m.moreText),e.parent().prev().hide(0,function(){e.parent().prev().prev().show()}).hide(0,function(){m.onLess()})):(e.addClass("less"),e.html(m.lessText),e.parent().prev().show(0,function(){e.parent().prev().prev().hide()}).show(0,function(){m.onMore()})),!1}},".morelink"),this.each(function(){var e=u(this),t=e.html();if(e.text().length>m.showChars+m.minHideChars){var i=t.substr(0,m.showChars);if(0<=i.indexOf("<")){for(var a=!1,r="",n=0,o=[],s=null,l=0,c=0;c<=m.showChars;l++)if("<"!=t[l]||a||(a=!0,"/"==(s=t.substring(l+1,t.indexOf(">",l)))[0]?s!="/"+o[0]?m.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":o.shift():"br"!=s.toLowerCase()&&o.unshift(s)),a&&">"==t[l]&&(a=!1),a)r+=t.charAt(l);else if(c++,n<=m.showChars)r+=t.charAt(l),n++;else if(0<o.length){for(j=0;j<o.length;j++)r+="</"+o[j]+">";break}i=u("<div/>").html(r+'<span class="ellip">'+m.ellipsesText+"</span>").html()}else i+=m.ellipsesText;var d='<div class="shortcontent">'+i+'</div><div class="allcontent">'+t+'</div><span><a href="javascript://nop/" class="morelink">'+m.moreText+"</a></span>";e.html(d),e.find(".allcontent").hide(),u(".shortcontent p:last",e).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container),rtm_search_media_text_validation(),check_condition("search")&&jQuery("#media_search_remove").show()},jQuery(document).ready(function(){rtm_upload_terms_activity(),jQuery("body").hasClass("has-sidebar")&&0===jQuery("#secondary").length&&(jQuery(".rtmedia-single-container").length||jQuery(".rtmedia-container").length)&&jQuery("body").removeClass("has-sidebar"),rtmedia_main&&("undefined"!==rtmedia_main.rtmedia_direct_download_link&&parseInt(rtmedia_main.rtmedia_direct_download_link)||jQuery(document).on("bp_ajax_request",function(e){setTimeout(function(){jQuery("video").each(function(){jQuery(this).attr("controlsList","nodownload"),jQuery(this).load()})},200)}))});
|
3 |
* @package rtMedia
|
4 |
*/
|
5 |
|
6 |
+
var rtMagnificPopup,rtm_masonry_container;!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(d){function e(){}function m(e,t){y.ev.on(i+e+b,t)}function u(e,t,i,a){var r=document.createElement("div");return r.className="mfp-"+e,i&&(r.innerHTML=i),a?t&&t.appendChild(r):(r=d(r),t&&r.appendTo(t)),r}function p(e,t){y.ev.triggerHandler(i+e,t),y.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),y.st.callbacks[e]&&y.st.callbacks[e].apply(y,d.isArray(t)?t:[t]))}function f(e){return e===t&&y.currTemplate.closeBtn||(y.currTemplate.closeBtn=d(y.st.closeMarkup.replace("%title%",y.st.tClose)),t=e),y.currTemplate.closeBtn}function n(){d.magnificPopup.instance||((y=new e).init(),d.magnificPopup.instance=y)}var y,a,_,r,v,t,l="Close",c="BeforeClose",g="MarkupParse",h="Open",o="Change",i="mfp",b="."+i,j="mfp-ready",s="mfp-removing",w="mfp-prevent-close",Q=!!window.jQuery,C=d(window);e.prototype={constructor:e,init:function(){var e=navigator.appVersion;y.isIE7=-1!==e.indexOf("MSIE 7."),y.isIE8=-1!==e.indexOf("MSIE 8."),y.isLowIE=y.isIE7||y.isIE8,y.isAndroid=/android/gi.test(e),y.isIOS=/iphone|ipad|ipod/gi.test(e),y.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),y.probablyMobile=y.isAndroid||y.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),_=d(document),y.popupsCache={}},open:function(e){var t;if(!1===e.isObj){y.items=e.items.toArray(),y.index=0;var i,a=e.items;for(t=0;t<a.length;t++)if((i=a[t]).parsed&&(i=i.el[0]),i===e.el[0]){y.index=t;break}}else y.items=d.isArray(e.items)?e.items:[e.items],y.index=e.index||0;if(!y.isOpen){y.types=[],v="",e.mainEl&&e.mainEl.length?y.ev=e.mainEl.eq(0):y.ev=_,e.key?(y.popupsCache[e.key]||(y.popupsCache[e.key]={}),y.currTemplate=y.popupsCache[e.key]):y.currTemplate={},y.st=d.extend(!0,{},d.magnificPopup.defaults,e),y.fixedContentPos="auto"===y.st.fixedContentPos?!y.probablyMobile:y.st.fixedContentPos,y.st.modal&&(y.st.closeOnContentClick=!1,y.st.closeOnBgClick=!1,y.st.showCloseBtn=!1,y.st.enableEscapeKey=!1),y.bgOverlay||(y.bgOverlay=u("bg").on("click"+b,function(){y.close()}),y.wrap=u("wrap").attr("tabindex",-1).on("click"+b,function(e){y._checkIfClose(e.target)&&y.close()}),y.container=u("container",y.wrap)),y.contentContainer=u("content"),y.st.preloader&&(y.preloader=u("preloader",y.container,y.st.tLoading));var r=d.magnificPopup.modules;for(t=0;t<r.length;t++){var n=r[t];n=n.charAt(0).toUpperCase()+n.slice(1),y["init"+n].call(y)}p("BeforeOpen"),y.st.showCloseBtn&&(y.st.closeBtnInside?(m(g,function(e,t,i,a){i.close_replaceWith=f(a.type)}),v+=" mfp-close-btn-in"):y.wrap.append(f())),y.st.alignTop&&(v+=" mfp-align-top"),y.fixedContentPos?y.wrap.css({overflow:y.st.overflowY,overflowX:"hidden",overflowY:y.st.overflowY}):y.wrap.css({top:C.scrollTop(),position:"absolute"}),!1!==y.st.fixedBgPos&&("auto"!==y.st.fixedBgPos||y.fixedContentPos)||y.bgOverlay.css({height:_.height(),position:"absolute"}),y.st.enableEscapeKey&&_.on("keyup"+b,function(e){27===e.keyCode&&y.close()}),C.on("resize"+b,function(){y.updateSize()}),y.st.closeOnContentClick||(v+=" mfp-auto-cursor"),v&&y.wrap.addClass(v);var o=y.wH=C.height(),s={};if(y.fixedContentPos&&y._hasScrollBar(o)){var l=y._getScrollbarSize();l&&(s.marginRight=l)}y.fixedContentPos&&(y.isIE7?d("body, html").css("overflow","hidden"):s.overflow="hidden");var c=y.st.mainClass;return y.isIE7&&(c+=" mfp-ie7"),c&&y._addClassToMFP(c),y.updateItemHTML(),p("BuildControls"),d("html").css(s),y.bgOverlay.add(y.wrap).prependTo(y.st.prependTo||d(document.body)),y._lastFocusedEl=document.activeElement,setTimeout(function(){y.content?(y._addClassToMFP(j),y._setFocus()):y.bgOverlay.addClass(j),_.on("focusin"+b,y._onFocusIn)},16),y.isOpen=!0,y.updateSize(o),p(h),e}y.updateItemHTML()},close:function(){y.isOpen&&(p(c),y.isOpen=!1,y.st.removalDelay&&!y.isLowIE&&y.supportsTransition?(y._addClassToMFP(s),setTimeout(function(){y._close()},y.st.removalDelay)):y._close())},_close:function(){p(l);var e=s+" "+j+" ";if(y.bgOverlay.detach(),y.wrap.detach(),y.container.empty(),y.st.mainClass&&(e+=y.st.mainClass+" "),y._removeClassFromMFP(e),y.fixedContentPos){var t={marginRight:""};y.isIE7?d("body, html").css("overflow",""):t.overflow="",d("html").css(t)}_.off("keyup.mfp focusin"+b),y.ev.off(b),y.wrap.attr("class","mfp-wrap").removeAttr("style"),y.bgOverlay.attr("class","mfp-bg"),y.container.attr("class","mfp-container"),!y.st.showCloseBtn||y.st.closeBtnInside&&!0!==y.currTemplate[y.currItem.type]||y.currTemplate.closeBtn&&y.currTemplate.closeBtn.detach(),y._lastFocusedEl&&d(y._lastFocusedEl).focus(),y.currItem=null,y.content=null,y.currTemplate=null,y.prevHeight=0,p("AfterClose")},updateSize:function(e){if(y.isIOS){var t=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*t;y.wrap.css("height",i),y.wH=i}else y.wH=e||C.height();y.fixedContentPos||y.wrap.css("height",y.wH),p("Resize")},updateItemHTML:function(){var e=y.items[y.index];y.contentContainer.detach(),y.content&&y.content.detach(),e.parsed||(e=y.parseEl(y.index));var t=e.type;if(p("BeforeChange",[y.currItem?y.currItem.type:"",t]),y.currItem=e,!y.currTemplate[t]){var i=!!y.st[t]&&y.st[t].markup;p("FirstMarkupParse",i),y.currTemplate[t]=!i||d(i)}r&&r!==e.type&&y.container.removeClass("mfp-"+r+"-holder");var a=y["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,y.currTemplate[t]);y.appendContent(a,t),e.preloaded=!0,p(o,e),r=e.type,y.container.prepend(y.contentContainer),p("AfterChange")},appendContent:function(e,t){(y.content=e)?y.st.showCloseBtn&&y.st.closeBtnInside&&!0===y.currTemplate[t]?y.content.find(".mfp-close").length||y.content.append(f()):y.content=e:y.content="",p("BeforeAppend"),y.container.addClass("mfp-"+t+"-holder"),y.contentContainer.append(y.content)},parseEl:function(e){var t,i=y.items[e];if((i=i.tagName?{el:d(i)}:(t=i.type,{data:i,src:i.src})).el){for(var a=y.types,r=0;r<a.length;r++)if(i.el.hasClass("mfp-"+a[r])){t=a[r];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=t||y.st.type||"inline",i.index=e,i.parsed=!0,y.items[e]=i,p("ElementParse",i),y.items[e]},addGroup:function(t,i){function e(e){e.mfpEl=this,y._openClick(e,t,i)}var a="click.magnificPopup";(i=i||{}).mainEl=t,i.items?(i.isObj=!0,t.off(a).on(a,e)):(i.isObj=!1,i.delegate?t.off(a).on(a,i.delegate,e):(i.items=t).off(a).on(a,e))},_openClick:function(e,t,i){if((void 0!==i.midClick?i.midClick:d.magnificPopup.defaults.midClick)||2!==e.which&&!e.ctrlKey&&!e.metaKey){var a=void 0!==i.disableOn?i.disableOn:d.magnificPopup.defaults.disableOn;if(a)if(d.isFunction(a)){if(!a.call(y))return!0}else if(C.width()<a)return!0;e.type&&(e.preventDefault(),y.isOpen&&e.stopPropagation()),i.el=d(e.mfpEl),i.delegate&&(i.items=t.find(i.delegate)),y.open(i)}},updateStatus:function(e,t){if(y.preloader){a!==e&&y.container.removeClass("mfp-s-"+a),t||"loading"!==e||(t=y.st.tLoading);var i={status:e,text:t};p("UpdateStatus",i),e=i.status,t=i.text,y.preloader.html(t),y.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),y.container.addClass("mfp-s-"+e),a=e}},_checkIfClose:function(e){if(!d(e).hasClass(w)){var t=y.st.closeOnContentClick,i=y.st.closeOnBgClick;if(t&&i)return!0;if(!y.content||d(e).hasClass("mfp-close")||y.preloader&&e===y.preloader[0])return!0;if(e===y.content[0]||d.contains(y.content[0],e)){if(t)return!0}else if(i&&d.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){y.bgOverlay.addClass(e),y.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),y.wrap.removeClass(e)},_hasScrollBar:function(e){return(y.isIE7?_.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(y.st.focus?y.content.find(y.st.focus).eq(0):y.wrap).focus()},_onFocusIn:function(e){if(e.target!==y.wrap[0]&&!d.contains(y.wrap[0],e.target))return y._setFocus(),!1},_parseMarkup:function(r,e,t){var n;t.data&&(e=d.extend(t.data,e)),p(g,[r,e,t]),d.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(n=e.split("_")).length){var i=r.find(b+"-"+n[0]);if(0<i.length){var a=n[1];"replaceWith"===a?i[0]!==t[0]&&i.replaceWith(t):"img"===a?i.is("img")?i.attr("src",t):i.replaceWith('<img src="'+t+'" class="'+i.attr("class")+'" />'):i.attr(n[1],t)}}else r.find(b+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===y.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),y.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return y.scrollbarSize}},d.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return n(),(e=e?d.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return d.magnificPopup.instance&&d.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(d.magnificPopup.defaults[e]=t.options),d.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},d.fn.magnificPopup=function(e){n();var t=d(this);if("string"==typeof e)if("open"===e){var i,a=Q?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;i=a.items?a.items[r]:(i=t,a.delegate&&(i=i.find(a.delegate)),i.eq(r)),y._openClick({mfpEl:i},t,a)}else y.isOpen&&y[e].apply(y,Array.prototype.slice.call(arguments,1));else e=d.extend(!0,{},e),Q?t.data("magnificPopup",e):t[0].magnificPopup=e,y.addGroup(t,e);return t};function k(){I&&(T.after(I.addClass(x)).detach(),I=null)}var x,T,I,M="inline";d.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){y.types.push(M),m(l+"."+M,function(){k()})},getInline:function(e,t){if(k(),e.src){var i=y.st.inline,a=d(e.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(T||(x=i.hiddenClass,T=u(x),x="mfp-"+x),I=a.after(T).detach().removeClass(x)),y.updateStatus("ready")}else y.updateStatus("error",i.tNotFound),a=d("<div>");return e.inlineElement=a}return y.updateStatus("ready"),y._parseMarkup(t,{},e),t}}});function P(){E&&d(document.body).removeClass(E)}function S(){P(),y.req&&y.req.abort()}var E,O="ajax";d.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){y.types.push(O),E=y.st.ajax.cursor,m(l+"."+O,S),m("BeforeChange."+O,S)},getAjax:function(r){E&&d(document.body).addClass(E),y.updateStatus("loading");var e=d.extend({url:r.src,success:function(e,t,i){var a={data:e,xhr:i};p("ParseAjax",a),y.appendContent(d(a.data),O),r.finished=!0,P(),y._setFocus(),setTimeout(function(){y.wrap.addClass(j)},16),y.updateStatus("ready"),p("AjaxContentAdded")},error:function(){P(),r.finished=r.loadError=!0,y.updateStatus("error",y.st.ajax.tError.replace("%url%",r.src))}},y.st.ajax.settings);return y.req=d.ajax(e),""}}});var z;d.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=y.st.image,t=".image";y.types.push("image"),m(h+t,function(){"image"===y.currItem.type&&e.cursor&&d(document.body).addClass(e.cursor)}),m(l+t,function(){e.cursor&&d(document.body).removeClass(e.cursor),C.off("resize"+b)}),m("Resize"+t,y.resizeImage),y.isLowIE&&m("AfterChange",y.resizeImage)},resizeImage:function(){var e=y.currItem;if(e&&e.img&&y.st.image.verticalFit){var t=0;y.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",y.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,p("ImageHasSize",e),e.imgHidden&&(y.content&&y.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var i=0,a=t.img[0],r=function(e){z&&clearInterval(z),z=setInterval(function(){0<a.naturalWidth?y._onImageHasSize(t):(200<i&&clearInterval(z),3===++i?r(10):40===i?r(50):100===i&&r(500))},e)};r(1)},getImage:function(e,t){var i=0,a=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===y.currItem&&(y._onImageHasSize(e),y.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,p("ImageLoadComplete")):++i<200?setTimeout(a,100):r())},r=function(){e&&(e.img.off(".mfploader"),e===y.currItem&&(y._onImageHasSize(e),y.updateStatus("error",n.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},n=y.st.image,o=t.find(".mfp-img");if(o.length){var s=document.createElement("img");s.className="mfp-img",e.el&&e.el.find("img").length&&(s.alt=e.el.find("img").attr("alt")),e.img=d(s).on("load.mfploader",a).on("error.mfploader",r),s.src=e.src,o.is("img")&&(e.img=e.img.clone()),0<(s=e.img[0]).naturalWidth?e.hasSize=!0:s.width||(e.hasSize=!1)}return y._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=y.st.image.titleSrc;if(t){if(d.isFunction(t))return t.call(y,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),y.resizeImage(),e.hasSize?(z&&clearInterval(z),e.loadError?(t.addClass("mfp-loading"),y.updateStatus("error",n.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),y.updateStatus("ready"))):(y.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),y.findImageSize(e))),t}}});var H;d.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=y.st.zoom,t=".zoom";if(n.enabled&&y.supportsTransition){function i(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,a={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return a["-webkit-"+r]=a["-moz-"+r]=a["-o-"+r]=a[r]=i,t.css(a),t}function a(){y.content.css("visibility","visible")}var r,o,s=n.duration;m("BuildControls"+t,function(){if(y._allowZoom()){if(clearTimeout(r),y.content.css("visibility","hidden"),!(e=y._getItemToZoom()))return void a();(o=i(e)).css(y._getOffset()),y.wrap.append(o),r=setTimeout(function(){o.css(y._getOffset(!0)),r=setTimeout(function(){a(),setTimeout(function(){o.remove(),e=o=null,p("ZoomAnimationEnded")},16)},s)},16)}}),m(c+t,function(){if(y._allowZoom()){if(clearTimeout(r),y.st.removalDelay=s,!e){if(!(e=y._getItemToZoom()))return;o=i(e)}o.css(y._getOffset(!0)),y.wrap.append(o),y.content.css("visibility","hidden"),setTimeout(function(){o.css(y._getOffset())},16)}}),m(l+t,function(){y._allowZoom()&&(a(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===y.currItem.type},_getItemToZoom:function(){return!!y.currItem.hasSize&&y.currItem.img},_getOffset:function(e){var t,i=(t=e?y.currItem.img:y.st.zoom.opener(y.currItem.el||y.currItem)).offset(),a=parseInt(t.css("padding-top"),10),r=parseInt(t.css("padding-bottom"),10);i.top-=d(window).scrollTop()-a;var n={width:t.width(),height:(Q?t.innerHeight():t[0].offsetHeight)-r-a};return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H?n["-moz-transform"]=n.transform="translate("+i.left+"px,"+i.top+"px)":(n.left=i.left,n.top=i.top),n}}});function B(e){if(y.currTemplate[L]){var t=y.currTemplate[L].find("iframe");t.length&&(e||(t[0].src="//about:blank"),y.isIE8&&t.css("display",e?"block":"none"))}}var L="iframe";d.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){y.types.push(L),m("BeforeChange",function(e,t,i){t!==i&&(t===L?B():i===L&&B(!0))}),m(l+"."+L,function(){B()})},getIframe:function(e,t){var i=e.src,a=y.st.iframe;d.each(a.patterns,function(){if(-1<i.indexOf(this.index))return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var r={};return a.srcAction&&(r[a.srcAction]=i),y._parseMarkup(t,r,e),y.updateStatus("ready"),t}}});function A(e){var t=y.items.length;return t-1<e?e-t:e<0?t+e:e}function $(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)}d.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=y.st.gallery,e=".mfp-gallery",r=Boolean(d.fn.mfpFastClick);if(y.direction=!0,!n||!n.enabled)return!1;v+=" mfp-gallery",m(h+e,function(){n.navigateByImgClick&&y.wrap.on("click"+e,".mfp-img",function(){if(1<y.items.length)return y.next(),!1}),_.on("keydown"+e,function(e){37===e.keyCode?y.prev():39===e.keyCode&&y.next()})}),m("UpdateStatus"+e,function(e,t){t.text&&(t.text=$(t.text,y.currItem.index,y.items.length))}),m(g+e,function(e,t,i,a){var r=y.items.length;i.counter=1<r?$(n.tCounter,a.index,r):""}),m("BuildControls"+e,function(){if(1<y.items.length&&n.arrows&&!y.arrowLeft){var e=n.arrowMarkup,t=y.arrowLeft=d(e.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(w),i=y.arrowRight=d(e.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(w),a=r?"mfpFastClick":"click";t[a](function(){y.prev()}),i[a](function(){y.next()}),y.isIE7&&(u("b",t[0],!1,!0),u("a",t[0],!1,!0),u("b",i[0],!1,!0),u("a",i[0],!1,!0)),y.container.append(t.add(i))}}),m(o+e,function(){y._preloadTimeout&&clearTimeout(y._preloadTimeout),y._preloadTimeout=setTimeout(function(){y.preloadNearbyImages(),y._preloadTimeout=null},16)}),m(l+e,function(){_.off(e),y.wrap.off("click"+e),y.arrowLeft&&r&&y.arrowLeft.add(y.arrowRight).destroyMfpFastClick(),y.arrowRight=y.arrowLeft=null})},next:function(){y.direction=!0,y.index=A(y.index+1),y.updateItemHTML()},prev:function(){y.direction=!1,y.index=A(y.index-1),y.updateItemHTML()},goTo:function(e){y.direction=e>=y.index,y.index=e,y.updateItemHTML()},preloadNearbyImages:function(){var e,t=y.st.gallery.preload,i=Math.min(t[0],y.items.length),a=Math.min(t[1],y.items.length);for(e=1;e<=(y.direction?a:i);e++)y._preloadItem(y.index+e);for(e=1;e<=(y.direction?i:a);e++)y._preloadItem(y.index-e)},_preloadItem:function(e){if(e=A(e),!y.items[e].preloaded){var t=y.items[e];t.parsed||(t=y.parseEl(e)),p("LazyLoad",t),"image"===t.type&&(t.img=d('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,p("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var F,R,D="retina";function W(){C.off("touchmove"+R+" touchend"+R)}d.magnificPopup.registerModule(D,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(1<window.devicePixelRatio){var i=y.st.retina,a=i.ratio;1<(a=isNaN(a)?a():a)&&(m("ImageHasSize."+D,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/a,width:"100%"})}),m("ElementParse."+D,function(e,t){t.src=i.replaceSrc(t,a)}))}}}}),F="ontouchstart"in window,R=".mfpFastClick",d.fn.mfpFastClick=function(l){return d(this).each(function(){var t,i,a,r,n,o,s,e=d(this);F&&e.on("touchstart"+R,function(e){n=!1,s=1,o=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],a=o.clientX,r=o.clientY,C.on("touchmove"+R,function(e){o=e.originalEvent?e.originalEvent.touches:e.touches,s=o.length,o=o[0],(10<Math.abs(o.clientX-a)||10<Math.abs(o.clientY-r))&&(n=!0,W())}).on("touchend"+R,function(e){W(),n||1<s||(t=!0,e.preventDefault(),clearTimeout(i),i=setTimeout(function(){t=!1},1e3),l())})}),e.on("click"+R,function(){t||l()})})},d.fn.destroyMfpFastClick=function(){d(this).off("touchstart"+R+" click"+R),F&&C.off("touchmove"+R+" touchend"+R)},n()}),"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(n,o){var i={init:function(e,t){this.elem=t,this.$elem=n(t),this.options=n.extend({},n.fn.rtTab.options,e),this.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 i=o.location.hash;i&&t.$elem.find("li").find('a[href="'+i+'"]').trigger("click"),n(o).on("hashchange",function(){var e=o.location.hash;t.$elem.find("li").find('a[href="'+e+'"]').trigger("click")})}},rtClick:function(){var a=this,r=a.$elem.find("li");r.find("a").on("click",function(e){e.preventDefault(),r.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 i=n(o).scrollTop();location.hash=n(this).attr("href"),n(o).scrollTop(i)}"function"==typeof a.options.onComplete&&a.options.onComplete.apply(a.elem,arguments)})},rtTabContent:function(i){this.$elem.find("li").find("a").each(function(){var e=n(this),t=e.attr("href");"yes"===i&&e.parent().hasClass("active")||n(t).addClass("hide")})}};n.fn.rtTab=function(t){return this.each(function(){var e=Object.create(i);e.init(t,this),n.data(this,"rtTab",e)})},n.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var comment_media=!1;function apply_rtMagnificPopup(t){jQuery("document").ready(function(s){var e="";if(e="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled){var n,l,c=!1;0<s(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length&&s(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(t).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",fixedContentPos:!0,fixedBgPos:!0,tLoading:e+" #%curr%...",mainClass:"mfp-img-mobile",preload:[1,3],closeOnBgClick:!0,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:"",preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return e.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){e=jQuery.magnificPopup.instance,1===jQuery(e.items).size()&&jQuery(".mfp-arrow").remove();var e=jQuery.magnificPopup.instance,t=e.currItem.el,i=t.parent();if(i.is("li")||(i=i.parent()),(i.is(":nth-last-child(2)")||i.is(":last-child"))&&i.find("a").hasClass("rtmedia-list-item-a")){i.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&(c||(n=e.ev.children(),c=!0,l=nextpage),jQuery("#rtMedia-galary-next").click())}var a=e.items.length;if(e.index!=a-1||i.is(":last-child")){"undefined"!=typeof _wpmejsSettings&&_wpmejsSettings.pluginPath;var o=jQuery(".rtmedia-container .rtmedia-single-meta").height(),r=!1;void 0!==e&&void 0!==e.probablyMobile&&1==e.probablyMobile&&(r=!0),s(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("autoplay",!0),r&&s(".mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("muted",!1),s(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,hideVolumeOnTouchDevices:!1,features:["playpause","progress","current","volume","fullscreen"],defaultVideoHeight:270,alwaysShowControls:r,enableAutosize:!0,clickToPlayPause:!0,videoHeight:-1,success:function(n,e){n.addEventListener("loadeddata",function(e){var t=s(n).height(),i=s(window).height(),a=jQuery("div.rtm-ltb-action-container").height(),r=o-(a=a+50);i<t&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+r+"px !important; transition:0.2s")},!1),r&&s(n).hasClass("wp-video-shortcode")?jQuery("body").on("touchstart",".mejs-overlay-button",function(e){n.paused?n.play():n.pause()}):n.pause()}}),s(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),"undefined"!=typeof bp&&void 0!==bp.mentions&&void 0!==bp.mentions.users&&(s("#atwho-container #atwho-ground-comment_content").remove(),s("#comment_content").bp_mentions(bp.mentions.users)),rtmedia_reset_video_and_audio_for_popup(),apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container")}else t.click()},open:function(){var e=jQuery(".mfp-bg"),t=jQuery(".mfp-wrap");e.height(e.height()+t.height())},close:function(e){c&&(mfp.ev.empty(),mfp.ev.append(n),nextpage=l,c=!1,1<nextpage&&jQuery("#rtMedia-galary-next").show()),rtmedia_single_page_popup_close()},BeforeChange:function(e){}}})}jQuery(document).ajaxComplete(function(){jQuery("[id^=imgedit-leaving]").filter(function(){var e=jQuery(this).text();jQuery(this).text(e.replace("OK","Save"))})})})}jQuery(document).ready(function(){if("object"==typeof rtmedia_bp)for(var e in rtmedia_bp)window[e]=rtmedia_bp[e];if("object"==typeof rtmedia_main)for(var e in rtmedia_main)window[e]=rtmedia_main[e];if("object"==typeof rtmedia_upload_terms)for(var e in rtmedia_upload_terms)window[e]=rtmedia_upload_terms[e];if("object"==typeof rtmedia_magnific)for(var e in rtmedia_magnific)window[e]=rtmedia_magnific[e]});var rtMediaHook={hooks:[],is_break:!1,register:function(e,t){void 0===rtMediaHook.hooks[e]&&(rtMediaHook.hooks[e]=[]),rtMediaHook.hooks[e].push(t)},call:function(e,arguments){if(void 0!==rtMediaHook.hooks[e])for(i=0;i<rtMediaHook.hooks[e].length;++i)if(1!=rtMediaHook.hooks[e][i](arguments))return!(rtMediaHook.is_break=!0);return!0}};function rtmedia_init_action_dropdown(e){var t,i;jQuery(e+" .click-nav > span,"+e+" .click-nav > div").toggleClass("no-js js"),jQuery(e+" .click-nav .js ul").hide(),jQuery(e+" .click-nav .clicker").click(function(e){t=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),i=jQuery(this).next("ul"),jQuery.each(t,function(e,t){jQuery(t).html()!=i.html()&&jQuery(t).hide()}),jQuery(i).toggle(),e.stopPropagation()})}function bp_media_create_element(e){return!1}function rtmedia_version_compare(e,t){if(typeof e+typeof t!="stringstring")return!1;for(var i=e.split("."),a=t.split("."),r=0,n=Math.max(i.length,a.length);r<n;r++){if(i[r]&&!a[r]&&0<parseInt(i[r])||parseInt(i[r])>parseInt(a[r]))return!0;if(a[r]&&!i[r]&&0<parseInt(a[r])||parseInt(i[r])<parseInt(a[r]))return!1}return!0}function rtm_is_element_exist(e){return 0<jQuery(e).length}function rtm_masonry_reload(e){setTimeout(function(){e.masonry("reload")},250)}function rtm_search_media_text_validation(){""===jQuery("#media_search_input").val()?jQuery("#media_search").css("cursor","not-allowed"):jQuery("#media_search").css("cursor","pointer")}function rtmediaGetParameterByName(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null==t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(e,t,i){var a="rtmedia-success";"warning"==t&&(a="rtmedia-warning");var r=!1;jQuery(".rtmedia-message-container").each(function(e,t){return t=jQuery(t),i&&t.hasClass("rtmedia-empty-comment-error-class")?(t.remove(),!(r=!0)):void 0!==i||t.hasClass("rtmedia-empty-comment-error-class")?void 0:(t.remove(),!(r=!0))});var n,o=jQuery("<div>",{title:"Click to dismiss",class:"rtmedia-message-container"+(i?" rtmedia-empty-comment-error-class":""),style:"margin:1em 0;"}),s=jQuery("<span>",{class:a});s.html(e),s.appendTo(o),i?(n=jQuery("#rt_media_comment_form"),jQuery("#comment_content").focus()):void 0===i&&(n=jQuery(".rtmedia-single-media .rtmedia-media")).css("opacity","0.2"),n.after(o),r&&(s.css({border:"2px solid #884646"}),setTimeout(function(){s.css({border:"none"})},500)),setTimeout(function(){o.remove(),void 0===i&&n.css("opacity","1")},3e3),o.click(function(){o.remove(),void 0===i&&n.css("opacity","1")})}function rtmedia_gallery_action_alert_message(e,t){var i="rtmedia-success";"warning"==t&&(i="rtmedia-warning");jQuery("body").append('<div class="rtmedia-gallery-alert-container"> </div>'),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+i+"'>"+e+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-gallery-alert-container").remove()},3e3),jQuery(".rtmedia-gallery-message-box").click(function(){jQuery(".rtmedia-gallery-alert-container").remove()})}function rtmedia_activity_masonry(){jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list").masonry({itemSelector:".rtmedia-list-item",gutter:7});var e=0,t=setInterval(function(){5===(e+=1)&&clearInterval(t),jQuery.each(jQuery(".rtmedia-activity-container .rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list"))},1e3)}function get_parameter(e,t){if(!e)return!1;t=t||window.location.href;e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp(e+"=([^&#]*)").exec(t);return null!==i&&i[1]}function rtm_upload_terms_activity(){if(0<jQuery("#rtmedia_upload_terms_conditions").length){jQuery("#bp-nouveau-activity-form").on("click","#aw-whats-new-submit",function(e){var t=jQuery("#whats-new-form"),i=t.find("#rtmedia_upload_terms_conditions");if(0!==i.length&&!1===i.prop("checked")&&0===t.find("#message").length){e.preventDefault();var a=t.find(".rtmedia-upload-terms");rtp_display_terms_warning(a,rtmedia_upload_terms_check_terms_message)}});var t=jQuery("#whats-new-form");0<t.length&&jQuery("#whats-new-form, #rtmedia_upload_terms_conditions").on("click",function(e){t.find("input:hidden").each(function(){jQuery(this).prop("disabled",!1)})})}}jQuery("document").ready(function(n){function r(){if(0<jQuery("#rtmedia-media-view-form").length){var e=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(e,{},function(e){})}}function o(e,t,i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3);var r="expires="+a.toUTCString();document.cookie=e+"="+t+";"+r+";path=/"}jQuery(document).ajaxComplete(function(e,t,i){if("legacy"!==bp_template_pack&&bp_template_pack){var a=get_parameter("action",i.data);"activity_filter"!==a&&"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||"undefined"==typeof rtmedia_masonry_layout||"true"!==rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!==rtmedia_masonry_layout_activity?"activity_filter"!==a&&"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||setTimeout(function(){apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),rtmedia_activity_stream_comment_media()},1e3):setTimeout(function(){apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),rtmedia_activity_masonry(),rtmedia_activity_stream_comment_media()},1e3)}}),jQuery(".rtmedia-uploader-div").css({opacity:"1",display:"block",visibility:"visible"}),jQuery(" #whats-new-options ").css({opacity:"1"}),void 0!==n.fn.rtTab&&n(".rtm-tabs").rtTab(),0<jQuery(".rtmedia-modal-link").length&&n(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),n("#rt_media_comment_form").submit(function(e){return""!=n.trim(n("#comment_content").val())||(0==jQuery("#rtmedia-single-media-container").length?rtmedia_gallery_action_alert_message(rtmedia_empty_comment_msg,"warning"):rtmedia_single_media_alert_message(rtmedia_empty_comment_msg,"warning"),!1)}),n("li.rtmedia-list-item p a").each(function(e){n(this).addClass("no-popup")}),n("li.rtmedia-list-item p a").each(function(e){n(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(e,t,i){try{if(null==t.data||void 0===t.data||void 0===t.data.action)return!0}catch(e){return!0}if("activity_get_older_updates"==t.data.action){var a=t.success;e.success=function(e){"function"==typeof a&&a(e),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}else if("get_single_activity_content"==t.data.action){a=t.success;e.success=function(e){"function"==typeof a&&a(e),setTimeout(function(){apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(e,t,i){try{if(null==t.data||void 0===t.data||void 0===t.data.action)return!0}catch(e){return!0}if("activity_get_older_updates"==t.data.action){var a=t.success;e.success=function(e){"function"==typeof a&&a(e),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,defaultVideoHeight:270}),setTimeout(function(){rtmedia_activity_stream_comment_media()},900),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(e){jQuery(this).toggleClass("unselect-all").toggleClass("select-all"),jQuery(this).attr("title",rtmedia_unselect_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!0)}),jQuery(".rtmedia-list-item").addClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".unselect-all",function(e){jQuery(this).toggleClass("select-all").toggleClass("unselect-all"),jQuery(this).attr("title",rtmedia_select_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!1)}),jQuery(".rtmedia-list-item").removeClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".rtmedia-move",function(e){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(e){if($albumname=jQuery("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$album_description=jQuery("#rtmedia_album_description"),$context=jQuery.trim(jQuery("#rtmedia_album_context").val()),$context_id=jQuery.trim(jQuery("#rtmedia_album_context_id").val()),$privacy=jQuery.trim(jQuery("#rtmedia_select_album_privacy").val()),$create_album_nonce=jQuery.trim(jQuery("#rtmedia_create_album_nonce").val()),""!=$albumname){var t={action:"rtmedia_create_album",name:$albumname,description:$album_description.val(),context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(t.privacy=$privacy),n("#rtmedia_create_new_album").attr("disabled","disabled");var r=n("#rtmedia_create_new_album").html();n("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,t,function(i){if(void 0!==i.album){i=jQuery.trim(i.album);var a=!0;$album_description.val(""),n("#rtmedia_album_name").focus(),jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){if(jQuery(this).attr("value")===$context)return a=!1,void jQuery(this).append('<option value="'+i+'">'+$albumname+"</option>")}),a){var e=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,t='<optgroup value="'+$context+'" label="'+e+'"><option value="'+i+'">'+$albumname+"</option></optgroup>";jQuery(this).append(t)}}),jQuery('select.rtmedia-user-album-list option[value="'+i+'"]').prop("selected",!0),jQuery(".rtmedia-create-new-album-container").slideToggle(),jQuery("#rtmedia_album_name").val(""),jQuery("#rtmedia-create-album-modal").append("<div class='rtmedia-success rtmedia-create-album-alert'><b>"+$albumname+"</b>"+rtmedia_album_created_msg+"</div>"),setTimeout(function(){jQuery(".rtmedia-create-album-alert").remove()},4e3),setTimeout(function(){galleryObj.reloadView(),window.location.reload(),jQuery(".close-reveal-modal").click()},2e3)}else void 0!==i.error?rtmedia_gallery_action_alert_message(i.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");n("#rtmedia_create_new_album").removeAttr("disabled"),n("#rtmedia_create_new_album").html(r)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(e){0<jQuery(".rtmedia-list :checkbox:checked").length?confirm(rtmedia_selected_media_delete_confirmation)&&jQuery(this).closest("form").attr("action","../../../"+rtmedia_media_slug+"/delete").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-move-selected",function(e){0<jQuery(".rtmedia-list :checkbox:checked").length?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery("#buddypress").on("change",".rtm-activity-privacy-opt",function(){var e=jQuery(this).attr("id");e=(e=e.split("-"))[e.length-1];var a=this;data={activity_id:e,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(e){var t="",i="";i="true"==e?(t=rtmedia_main_js_strings.privacy_update_success,"rtmedia-success"):(t=rtmedia_main_js_strings.privacy_update_error,"fail"),jQuery(a).after('<p class="rtm-ac-privacy-updated '+i+'">'+t+"</p>"),setTimeout(function(){jQuery(a).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),jQuery(".media_search_input").on("keyup",function(){rtm_search_media_text_validation()}),r(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){r(),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(e){e.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),mfp=jQuery.magnificPopup.instance,1<jQuery(mfp.items).size()&&0==comment_media?function(){var n=jQuery.magnificPopup.instance,e=n.probablyMobile,t=function(e){for(var t=e+"=",i=document.cookie.split(";"),a=0;a<i.length;a++){for(var r=i[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}("rtmedia-touch-swipe-tooltip");e&&""===t?(jQuery("#mobile-swipe-overlay").show(),jQuery("#mobile-swipe-overlay").on("click",function(e){o("rtmedia-touch-swipe-tooltip",!0,365),jQuery(this).hide(),jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click")}),jQuery("#mobile-swipe-overlay").swipe({swipe:function(e,t,i,a,r,n){o("rtmedia-touch-swipe-tooltip",!0,365),jQuery("#mobile-swipe-overlay").hide(),jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click")},threshold:0})):jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click");jQuery(".mfp-arrow-right").on("click",function(e){n.next()}),jQuery(".mfp-arrow-left").on("click",function(e){n.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(e,t,i,a,r){n.next()},swipeRight:function(e,t,i,a,r){n.prev()},threshold:0})}():(jQuery(".mfp-arrow-right").hide(),jQuery(".mfp-arrow-left").hide(),jQuery(document).unbind("keydown")),rtmedia_disable_popup_navigation("#comment_content"),rtmedia_disable_popup_navigation_comment_media_focus();var e=n(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*e,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*e,"over-flow":"hidden"}),rtmedia_init_action_dropdown(".rtm-lightbox-container .rtmedia-actions"),jQuery(".rtmedia-comment-link").on("click",function(e){e.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var t=n(".rtm-gallery-title"),i="";""!=(i=n.isEmptyObject(t)?n("#subnav.item-list-tabs li.selected ").html():t.html())&&n(".rtm-ltb-gallery-title .ltb-title").html(i);var a=n("#subnav.item-list-tabs li.selected span").html();return n("li.total").html(a),!0});var t=jQuery("#drag-drop-area"),i=jQuery("#whats-new");t.html();jQuery("#rtmedia-upload-container").after("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&jQuery("#whats-new-textarea").append("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),jQuery(document).on("dragover",function(e){e.preventDefault(),e.target!=this&&(jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&i.addClass("rtm-drag-drop-active"),t.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show())}).on("dragleave",function(e){if(e.preventDefault(),0!=e.originalEvent.pageX&&0!=e.originalEvent.pageY)return!1;"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(i.removeClass("rtm-drag-drop-active"),i.removeAttr("style")),t.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(e){e.preventDefault(),jQuery(".bp-suggestions").focus(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(i.removeClass("rtm-drag-drop-active"),i.removeAttr("style")),t.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(e){e.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(e){e.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(""),n(document).click(function(){n(".click-nav ul").is(":visible")&&n(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(e){e.preventDefault(),jQuery("#comment_content").focus()}),0<jQuery(".rtm-more").length&&n(".rtm-more").shorten({showChars:200}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&"undefined"!=typeof rtmedia_masonry_layout_activity&&"true"==rtmedia_masonry_layout_activity&&rtmedia_activity_masonry(),jQuery(document).ajaxComplete(function(e,t,i){var a=get_parameter("action",i.data);"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||"undefined"==typeof rtmedia_masonry_layout||"true"!=rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!=rtmedia_masonry_layout_activity||rtmedia_activity_masonry()}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&((rtm_masonry_container=jQuery(".rtmedia-container .rtmedia-list")).masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())})),0<jQuery(".rtm-uploader-tabs").length&&jQuery(".rtm-uploader-tabs li").click(function(e){jQuery(this).hasClass("active")||(jQuery(this).siblings().removeClass("active"),jQuery(this).parents(".rtm-uploader-tabs").siblings().hide(),class_name=jQuery(this).attr("class"),jQuery(this).parents(".rtm-uploader-tabs").siblings('[data-id="'+class_name+'"]').show(),jQuery(this).addClass("active"),"rtm-upload-tab"!=class_name?jQuery("div.moxie-shim").hide():jQuery("div.moxie-shim").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(e){e.preventDefault();var t=RTMedia_Main_JS.media_delete_confirmation;if(confirm(t)){var i=jQuery(this).closest("li"),a=jQuery("#rtmedia_media_delete_nonce").val(),r=jQuery(this).parents(".rtmedia-list-item").data("media_type"),n={action:"delete_uploaded_media",nonce:a,media_id:i.attr("id"),media_type:r};jQuery.ajax({url:RTMedia_Main_JS.rtmedia_ajaxurl,type:"POST",data:n,dataType:"JSON",success:function(e){"rtmedia-media-deleted"===e.data.code?(rtmedia_gallery_action_alert_message(RTMedia_Main_JS.media_delete_success,"success"),i.remove(),"undefined"!=typeof rtmedia_masonry_layout&&"true"===rtmedia_masonry_layout&&rtm_masonry_reload(rtm_masonry_container),jQuery("#user-media span, #media-groups-li #media span, #rtmedia-nav-item-all span").text(e.data.all_media_count),jQuery("#rtmedia-nav-item-photo span").text(e.data.photos_count),jQuery("#rtmedia-nav-item-music span").text(e.data.music_count),jQuery("#rtmedia-nav-item-video span").text(e.data.videos_count)):rtmedia_gallery_action_alert_message(e.data.message,"warning")}})}})}),function(u){u.fn.shorten=function(e){"use strict";var m={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return e&&u.extend(m,e),!(u(this).data("jquery.shorten")&&!m.force)&&(u(this).data("jquery.shorten",!0),u(document).off("click",".morelink"),u(document).on({click:function(){var e=u(this);return e.hasClass("less")?(e.removeClass("less"),e.html(m.moreText),e.parent().prev().hide(0,function(){e.parent().prev().prev().show()}).hide(0,function(){m.onLess()})):(e.addClass("less"),e.html(m.lessText),e.parent().prev().show(0,function(){e.parent().prev().prev().hide()}).show(0,function(){m.onMore()})),!1}},".morelink"),this.each(function(){var e=u(this),t=e.html();if(e.text().length>m.showChars+m.minHideChars){var i=t.substr(0,m.showChars);if(0<=i.indexOf("<")){for(var a=!1,r="",n=0,o=[],s=null,l=0,c=0;c<=m.showChars;l++)if("<"!=t[l]||a||(a=!0,"/"==(s=t.substring(l+1,t.indexOf(">",l)))[0]?s!="/"+o[0]?m.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":o.shift():"br"!=s.toLowerCase()&&o.unshift(s)),a&&">"==t[l]&&(a=!1),a)r+=t.charAt(l);else if(c++,n<=m.showChars)r+=t.charAt(l),n++;else if(0<o.length){for(j=0;j<o.length;j++)r+="</"+o[j]+">";break}i=u("<div/>").html(r+'<span class="ellip">'+m.ellipsesText+"</span>").html()}else i+=m.ellipsesText;var d='<div class="shortcontent">'+i+'</div><div class="allcontent">'+t+'</div><span><a href="javascript://nop/" class="morelink">'+m.moreText+"</a></span>";e.html(d),e.find(".allcontent").hide(),u(".shortcontent p:last",e).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container),rtm_search_media_text_validation(),check_condition("search")&&jQuery("#media_search_remove").show()},jQuery(document).ready(function(){rtm_upload_terms_activity(),jQuery("body").hasClass("has-sidebar")&&0===jQuery("#secondary").length&&(jQuery(".rtmedia-single-container").length||jQuery(".rtmedia-container").length)&&jQuery("body").removeClass("has-sidebar"),rtmedia_main&&("undefined"!==rtmedia_main.rtmedia_direct_download_link&&parseInt(rtmedia_main.rtmedia_direct_download_link)||jQuery(document).on("bp_ajax_request",function(e){setTimeout(function(){jQuery("video").each(function(){jQuery(this).attr("controlsList","nodownload"),jQuery(this).load()})},200)}))});
|
app/helper/RTMediaAddon.php
CHANGED
@@ -88,8 +88,8 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
|
|
88 |
|
89 |
if ( ! is_rtmedia_vip_plugin() ) {
|
90 |
$tabs[] = array(
|
91 |
-
'title' => esc_html__( '
|
92 |
-
'name' => esc_html__( '
|
93 |
'href' => '#rtm-plugins',
|
94 |
'icon' => 'dashicons-admin-plugins',
|
95 |
'callback' => array( $this, 'plugins_content' ),
|
88 |
|
89 |
if ( ! is_rtmedia_vip_plugin() ) {
|
90 |
$tabs[] = array(
|
91 |
+
'title' => esc_html__( 'Premium Features', 'buddypress-media' ),
|
92 |
+
'name' => esc_html__( 'Premium Features', 'buddypress-media' ),
|
93 |
'href' => '#rtm-plugins',
|
94 |
'icon' => 'dashicons-admin-plugins',
|
95 |
'callback' => array( $this, 'plugins_content' ),
|
app/main/controllers/activity/RTMediaActivity.php
CHANGED
@@ -264,7 +264,7 @@ class RTMediaActivity {
|
|
264 |
$poster = '';
|
265 |
}
|
266 |
if ( empty( $youtube_url ) ) {
|
267 |
-
$html = '<video %s src="%s" width="%d" height="%d" type="video/mp4" class="%s" id="rt_media_video_%s" controls="controls" preload="
|
268 |
$html = sprintf( $html, $poster, esc_url( wp_get_attachment_url( $media->media_id ) ), esc_attr( $rtmedia->options['defaultSizes_video_activityPlayer_width'] ), esc_attr( $rtmedia->options['defaultSizes_video_activityPlayer_height'] ), $video_class, esc_attr( $media->id ) );
|
269 |
}
|
270 |
} elseif ( 'music' === $media->media_type ) {
|
264 |
$poster = '';
|
265 |
}
|
266 |
if ( empty( $youtube_url ) ) {
|
267 |
+
$html = '<video %s src="%s" width="%d" height="%d" type="video/mp4" class="%s" id="rt_media_video_%s" controls="controls" preload="metadata"></video>';
|
268 |
$html = sprintf( $html, $poster, esc_url( wp_get_attachment_url( $media->media_id ) ), esc_attr( $rtmedia->options['defaultSizes_video_activityPlayer_width'] ), esc_attr( $rtmedia->options['defaultSizes_video_activityPlayer_height'] ), $video_class, esc_attr( $media->id ) );
|
269 |
}
|
270 |
} elseif ( 'music' === $media->media_type ) {
|
app/main/controllers/privacy/RTMediaPrivacy.php
CHANGED
@@ -34,7 +34,7 @@ class RTMediaPrivacy {
|
|
34 |
public function __construct( $flag = true ) {
|
35 |
|
36 |
if ( is_rtmedia_privacy_enable() && $flag ) {
|
37 |
-
add_action( '
|
38 |
add_action( 'bp_template_content', array( $this, 'content' ) );
|
39 |
add_filter( 'bp_activity_get_user_join_filter', array( $this, 'activity_privacy' ), 10, 6 );
|
40 |
|
34 |
public function __construct( $flag = true ) {
|
35 |
|
36 |
if ( is_rtmedia_privacy_enable() && $flag ) {
|
37 |
+
add_action( 'bp_setup_nav', array( $this, 'add_nav' ) );
|
38 |
add_action( 'bp_template_content', array( $this, 'content' ) );
|
39 |
add_filter( 'bp_activity_get_user_join_filter', array( $this, 'activity_privacy' ), 10, 6 );
|
40 |
|
app/main/controllers/template/RTMediaNav.php
CHANGED
@@ -31,7 +31,7 @@ class RTMediaNav {
|
|
31 |
add_action( 'admin_bar_menu', array( $this, 'admin_nav' ), $order );
|
32 |
|
33 |
if ( class_exists( 'BuddyPress' ) ) {
|
34 |
-
add_action( '
|
35 |
add_filter( 'bp_nouveau_nav_has_count', array( $this, 'rtmedia_bp_nouveau_nav_has_count' ), 10, 3 );
|
36 |
add_filter( 'bp_nouveau_get_nav_count', array( $this, 'rtmedia_bp_nouveau_get_nav_count' ), 10, 3 );
|
37 |
}
|
@@ -278,12 +278,14 @@ class RTMediaNav {
|
|
278 |
$global_albums = rtmedia_global_albums();
|
279 |
|
280 |
// Return the album count if the album has media in it.
|
281 |
-
$
|
282 |
-
$global_albums
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
|
|
|
|
287 |
|
288 |
$other_count = count( $global_albums );
|
289 |
|
31 |
add_action( 'admin_bar_menu', array( $this, 'admin_nav' ), $order );
|
32 |
|
33 |
if ( class_exists( 'BuddyPress' ) ) {
|
34 |
+
add_action( 'bp_parse_query', array( $this, 'custom_media_nav_tab' ), 99, 1 );
|
35 |
add_filter( 'bp_nouveau_nav_has_count', array( $this, 'rtmedia_bp_nouveau_nav_has_count' ), 10, 3 );
|
36 |
add_filter( 'bp_nouveau_get_nav_count', array( $this, 'rtmedia_bp_nouveau_get_nav_count' ), 10, 3 );
|
37 |
}
|
278 |
$global_albums = rtmedia_global_albums();
|
279 |
|
280 |
// Return the album count if the album has media in it.
|
281 |
+
if ( function_exists( 'bp_is_group' ) && bp_is_group() && $user_group_status ) {
|
282 |
+
$global_albums = array_filter(
|
283 |
+
$global_albums,
|
284 |
+
function( $album_id ) {
|
285 |
+
return (int) rtm_get_album_media_count( $album_id ) > 0;
|
286 |
+
}
|
287 |
+
);
|
288 |
+
}
|
289 |
|
290 |
$other_count = count( $global_albums );
|
291 |
|
app/main/controllers/template/rtmedia-actions.php
CHANGED
@@ -1038,6 +1038,80 @@ function rtmedia_gallery_shortcode_json_query_vars( $wp_query ) {
|
|
1038 |
}
|
1039 |
add_action( 'pre_get_posts', 'rtmedia_gallery_shortcode_json_query_vars', 99 );
|
1040 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1041 |
/**
|
1042 |
* Rule for pagination for rtmedia gallery shortcode
|
1043 |
*/
|
1038 |
}
|
1039 |
add_action( 'pre_get_posts', 'rtmedia_gallery_shortcode_json_query_vars', 99 );
|
1040 |
|
1041 |
+
/**
|
1042 |
+
* Handles the conflicting between - BuddyPress Rewrites and rtMedia plugins.
|
1043 |
+
*
|
1044 |
+
* @param object $query WP query object.
|
1045 |
+
*/
|
1046 |
+
function rtmedia_pre_get_posts( $query ) {
|
1047 |
+
|
1048 |
+
global $wp_query;
|
1049 |
+
|
1050 |
+
if ( ! $query->is_main_query() ) {
|
1051 |
+
return;
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
if ( get_query_var( 'bp_members' ) ) {
|
1055 |
+
|
1056 |
+
$bp_member = get_query_var( 'bp_member' );
|
1057 |
+
$bp_member_component = get_query_var( 'bp_member_component' );
|
1058 |
+
|
1059 |
+
if ( $bp_member && ( 'media' === $bp_member_component || 'upload' === $bp_member_component ) ) {
|
1060 |
+
|
1061 |
+
$wp_query->query['attachment'] = $bp_member;
|
1062 |
+
$wp_query->query_vars['attachment'] = $bp_member;
|
1063 |
+
|
1064 |
+
unset( $wp_query->queried_object );
|
1065 |
+
unset( $wp_query->queried_object_id );
|
1066 |
+
|
1067 |
+
$wp_query->set( 'tax_query', '' );
|
1068 |
+
|
1069 |
+
$wp_query->query[ $bp_member_component ] = '';
|
1070 |
+
|
1071 |
+
$action = get_query_var( 'bp_member_action' );
|
1072 |
+
|
1073 |
+
if ( 'media' === $bp_member_component ) {
|
1074 |
+
|
1075 |
+
$action_variable = get_query_var( 'bp_member_action_variables' );
|
1076 |
+
|
1077 |
+
if ( ! empty( $action_variable ) ) {
|
1078 |
+
$action = $action . '/' . $action_variable;
|
1079 |
+
}
|
1080 |
+
}
|
1081 |
+
|
1082 |
+
$wp_query->query_vars[ $bp_member_component ] = $action;
|
1083 |
+
}
|
1084 |
+
} elseif ( get_query_var( 'bp_groups' ) ) {
|
1085 |
+
|
1086 |
+
$bp_group = get_query_var( 'bp_group' );
|
1087 |
+
$bp_group_action = get_query_var( 'bp_group_action' );
|
1088 |
+
|
1089 |
+
if ( $bp_group && 'media' === $bp_group_action || 'upload' === $bp_group_action ) {
|
1090 |
+
|
1091 |
+
$wp_query->query['attachment'] = $bp_group;
|
1092 |
+
$wp_query->query_vars['attachment'] = $bp_group;
|
1093 |
+
|
1094 |
+
if ( ! empty( $bp_group_action ) ) {
|
1095 |
+
$wp_query->query[ $bp_group_action ] = '';
|
1096 |
+
$wp_query->query_vars[ $bp_group_action ] = get_query_var( 'bp_group_action_variables' );
|
1097 |
+
}
|
1098 |
+
|
1099 |
+
unset( $wp_query->queried_object );
|
1100 |
+
unset( $wp_query->queried_object_id );
|
1101 |
+
}
|
1102 |
+
|
1103 |
+
} elseif ( get_query_var( 'bp_activities' ) ) {
|
1104 |
+
|
1105 |
+
$bp_activity_action = get_query_var( 'bp_activity_action' );
|
1106 |
+
|
1107 |
+
if ( ! empty( $bp_activity_action ) ) {
|
1108 |
+
$wp_query->query[ $bp_activity_action ] = '';
|
1109 |
+
$wp_query->query_vars[ $bp_activity_action ] = '';
|
1110 |
+
}
|
1111 |
+
}
|
1112 |
+
}
|
1113 |
+
add_action( 'pre_get_posts', 'rtmedia_pre_get_posts', 9999 );
|
1114 |
+
|
1115 |
/**
|
1116 |
* Rule for pagination for rtmedia gallery shortcode
|
1117 |
*/
|
app/main/interactions/RTMediaInteraction.php
CHANGED
@@ -48,7 +48,7 @@ class RTMediaInteraction {
|
|
48 |
add_action( 'init', array( $this, 'flush_rules' ) );
|
49 |
|
50 |
// set up interaction and routes.
|
51 |
-
add_action( 'template_redirect', array( $this, 'init' ),
|
52 |
|
53 |
add_filter( 'wp_title', array( $this, 'set_title' ), 99999, 2 );
|
54 |
add_filter( 'wpseo_opengraph_title', array( $this, 'set_title' ), 9999, 1 );
|
48 |
add_action( 'init', array( $this, 'flush_rules' ) );
|
49 |
|
50 |
// set up interaction and routes.
|
51 |
+
add_action( 'template_redirect', array( $this, 'init' ), 9999 );
|
52 |
|
53 |
add_filter( 'wp_title', array( $this, 'set_title' ), 99999, 2 );
|
54 |
add_filter( 'wpseo_opengraph_title', array( $this, 'set_title' ), 9999, 1 );
|
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
|
@@ -19,7 +19,7 @@ if ( ! defined( 'RTMEDIA_VERSION' ) ) {
|
|
19 |
/**
|
20 |
* The version of the plugin
|
21 |
*/
|
22 |
-
define( 'RTMEDIA_VERSION', '4.6.
|
23 |
}
|
24 |
|
25 |
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.12
|
7 |
* Author: rtCamp
|
8 |
* Text Domain: buddypress-media
|
9 |
* Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
19 |
/**
|
20 |
* The version of the plugin
|
21 |
*/
|
22 |
+
define( 'RTMEDIA_VERSION', '4.6.12' );
|
23 |
}
|
24 |
|
25 |
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: 2022-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -154,7 +154,7 @@ msgstr ""
|
|
154 |
#: app/admin/RTMediaAdmin.php:841 app/admin/RTMediaAdmin.php:844
|
155 |
#: app/admin/RTMediaAdmin.php:1046 app/admin/RTMediaAdmin.php:1047
|
156 |
#: app/admin/RTMediaAdmin.php:1402
|
157 |
-
msgid "
|
158 |
msgstr ""
|
159 |
|
160 |
#: app/admin/RTMediaAdmin.php:867 app/admin/RTMediaAdmin.php:870
|
@@ -1082,7 +1082,7 @@ msgid "User's Favorites:"
|
|
1082 |
msgstr ""
|
1083 |
|
1084 |
#: app/helper/RTMediaAddon.php:91 app/helper/RTMediaAddon.php:92
|
1085 |
-
msgid "
|
1086 |
msgstr ""
|
1087 |
|
1088 |
#: app/helper/RTMediaAddon.php:116
|
@@ -2336,7 +2336,7 @@ msgstr ""
|
|
2336 |
msgid "Public - Visible to the world"
|
2337 |
msgstr ""
|
2338 |
|
2339 |
-
#: app/main/RTMedia.php:869 app/main/controllers/template/RTMediaNav.php:
|
2340 |
#: app/main/controllers/template/rtmedia-functions.php:139
|
2341 |
msgid "All"
|
2342 |
msgstr ""
|
@@ -2351,7 +2351,7 @@ msgstr ""
|
|
2351 |
#: app/main/RTMedia.php:885 app/main/RTMedia.php:1412
|
2352 |
#: app/main/controllers/media/RTMediaAlbum.php:55
|
2353 |
#: app/main/controllers/media/RTMediaAlbum.php:67
|
2354 |
-
#: app/main/controllers/template/RTMediaNav.php:
|
2355 |
msgid "Albums"
|
2356 |
msgstr ""
|
2357 |
|
@@ -3168,7 +3168,7 @@ msgstr ""
|
|
3168 |
msgid "Search Media"
|
3169 |
msgstr ""
|
3170 |
|
3171 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
3172 |
msgid "Please swipe for more media."
|
3173 |
msgstr ""
|
3174 |
|
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.12\n"
|
6 |
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
|
7 |
+
"POT-Creation-Date: 2022-06-15 07:59:48+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
154 |
#: app/admin/RTMediaAdmin.php:841 app/admin/RTMediaAdmin.php:844
|
155 |
#: app/admin/RTMediaAdmin.php:1046 app/admin/RTMediaAdmin.php:1047
|
156 |
#: app/admin/RTMediaAdmin.php:1402
|
157 |
+
msgid "Premium"
|
158 |
msgstr ""
|
159 |
|
160 |
#: app/admin/RTMediaAdmin.php:867 app/admin/RTMediaAdmin.php:870
|
1082 |
msgstr ""
|
1083 |
|
1084 |
#: app/helper/RTMediaAddon.php:91 app/helper/RTMediaAddon.php:92
|
1085 |
+
msgid "Premium Features"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
#: app/helper/RTMediaAddon.php:116
|
2336 |
msgid "Public - Visible to the world"
|
2337 |
msgstr ""
|
2338 |
|
2339 |
+
#: app/main/RTMedia.php:869 app/main/controllers/template/RTMediaNav.php:296
|
2340 |
#: app/main/controllers/template/rtmedia-functions.php:139
|
2341 |
msgid "All"
|
2342 |
msgstr ""
|
2351 |
#: app/main/RTMedia.php:885 app/main/RTMedia.php:1412
|
2352 |
#: app/main/controllers/media/RTMediaAlbum.php:55
|
2353 |
#: app/main/controllers/media/RTMediaAlbum.php:67
|
2354 |
+
#: app/main/controllers/template/RTMediaNav.php:316
|
2355 |
msgid "Albums"
|
2356 |
msgstr ""
|
2357 |
|
3168 |
msgid "Search Media"
|
3169 |
msgstr ""
|
3170 |
|
3171 |
+
#: app/main/controllers/template/rtmedia-actions.php:1178
|
3172 |
msgid "Please swipe for more media."
|
3173 |
msgstr ""
|
3174 |
|
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, vaishu.agola27, kapilpaul, opurockey, vkd007, pavanpatil1, pradeep1308, shardul200, sabbir1991, kamalahmed, ibnulk, harshbarach, Mukulsingh27, vishalkakadiya
|
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: 6.0
|
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 |
|
@@ -47,50 +47,43 @@ rtMedia has a premium solution to take care of audio/video conversion.
|
|
47 |
|
48 |
* [Audio/Video Transcoding Service](https://wordpress.org/plugins/transcoder/ "Audio/Video Transcoding Service") - If free plan is not enough for you, there is monthly subscription service also. Easiest to setup.
|
49 |
|
50 |
-
= rtMedia Premium
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
13. **Membership** – It provides membership functionality in your site.
|
88 |
-
14. **Custom-Attributes** – This plugin is for categorizing media using attributes defined by the site owner when uploading.
|
89 |
-
15. **Likes** – This add-on lets you know who likes the media. Users can also see which media file he/she likes under the user profile.
|
90 |
-
16. **Custom-Thumbnail-for-Audio/Video** – Allow media owners to change the thumbnail of uploaded audio/video files.
|
91 |
-
17. **View-Counter** – Enable view count for all the uploaded media.
|
92 |
-
18. **Edit-Mp3-Info-(ID3 Tags)** – Allow users to edit MP3 FIle Audio tags (ID 3 tags).
|
93 |
-
|
94 |
|
95 |
|
96 |
= Important Links =
|
@@ -140,6 +133,19 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
140 |
|
141 |
== Changelog ==
|
142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
= 4.6.11 [April 27, 2022] =
|
144 |
|
145 |
* Enhancement
|
@@ -1805,8 +1811,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
1805 |
|
1806 |
== Upgrade Notice ==
|
1807 |
|
1808 |
-
= 4.6.
|
1809 |
-
rtMedia 4.6.
|
1810 |
|
1811 |
== Sponsors ==
|
1812 |
|
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, vaishu.agola27, kapilpaul, opurockey, vkd007, pavanpatil1, pradeep1308, shardul200, sabbir1991, kamalahmed, ibnulk, harshbarach, Mukulsingh27, vishalkakadiya, elifvish
|
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: 6.0.1
|
8 |
+
Stable tag: 4.6.12
|
9 |
|
10 |
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
11 |
|
47 |
|
48 |
* [Audio/Video Transcoding Service](https://wordpress.org/plugins/transcoder/ "Audio/Video Transcoding Service") - If free plan is not enough for you, there is monthly subscription service also. Easiest to setup.
|
49 |
|
50 |
+
= rtMedia Premium Features =
|
51 |
+
|
52 |
+
1. **[Instagram-Effects](https://rtmedia.io/photo-filters/ "rtMedia Instagram Feature")** - Users can apply Instagram like filters to photos.
|
53 |
+
2. **[Photo-Tagging](https://rtmedia.io/photo-tagging/ "rtMedia Photo-Tagging Feature")** - Users can tag their friends/other users in photos.
|
54 |
+
3. **[Photo-Watermark](https://rtmedia.io/photo-watermark/ "rtMedia Photo Watermark Feature")** - rtMedia Photo Watermark feature let you watermarked or copyright your uploaded photos.)
|
55 |
+
4. **[Membership](https://rtmedia.io/membership/ "rtMedia Membership")** - It provides membership functionality in your site.
|
56 |
+
5. **[Social-Sync](https://rtmedia.io/social-sync/ "rtMedia Social Sync")** - It allows you to import media from your Facebook account.
|
57 |
+
6. **[myCRED-Points](https://rtmedia.io/mycred/ "rtMedia myCRED")** - It allows you to integrate rtMedia with myCRED and award virtual points for various rtMedia activities, like media upload, likes, deleted, albums creation, playlist, etc.
|
58 |
+
7. **[Playlists](https://rtmedia.io/playlists/ "rtMedia Playlists")** - This feature is used to create a playlist for uploaded music file with rtMedia.
|
59 |
+
8. **[Favorites](https://rtmedia.io/favorites/ "rtMedia Favorites")** - This feature allows users to create their own list of favorite media.
|
60 |
+
9. **[Moderation](https://rtmedia.io/moderation/ "rtMedia Moderation")** - This feature is for reporting media if user find offensive.
|
61 |
+
10. **[Custom-Attributes](https://rtmedia.io/custom-attributes/ "rtMedia Custom Attributes")** - This feature is for categorizing media using attributes defined by site owner when uploading.
|
62 |
+
11. **[Docs-and-Other-files](https://rtmedia.io/docs-and-other-files/ "rtMedia Docs and Other files")** - This feature allows uploading for doc, pdf and other file types such as zip, tar, etc.
|
63 |
+
12. **[Default-Albums](https://rtmedia.io/default-albums/ "rtMedia Default Albums")** - This feature allows the creation of multiple default albums for rtMedia uploads.
|
64 |
+
13. **[Podcast-Feed](https://rtmedia.io/podcast-rss-and-atom-feeds/ "rtMedia Podcast (RSS and Atom feeds)")** - Read rtMedia uploads from iTunes as well as any RSS feed-reader/podcasting software.
|
65 |
+
14. **[Restrictions](https://rtmedia.io/restrictions/ "rtMedia Restrictions")** - Site admin can set limits in terms of total size & file count.
|
66 |
+
15. **[bbPress-Attachments](https://rtmedia.io/bbpress-attachments/ "rtMedia bbPress Attachments")** - Attach media files to bbPress forum topics and replies.
|
67 |
+
16. **[WordPress-Sitewide-Gallery](https://rtmedia.io/wordpress-sitewide-gallery/ "rtMedia WordPress Sitewide Gallery")** - Site admin can create and upload media into WordPress album.
|
68 |
+
17. **[WordPress-Comment-Attachments](https://rtmedia.io/wordpress-comment-attachments/ "rtMedia WordPress Comment Attachments")** - Allow users to upload a media file in WordPress comment attachment box.
|
69 |
+
18. **[Social-Sharing](https://rtmedia.io/social-sharing/ "rtMedia Social Sharing")** - Share uploaded media on social network sites like Facebook, twitter, linkedin, Google+. This addon integrate with [rtSocial](https://wordpress.org/plugins/rtsocial/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) plugin.
|
70 |
+
19. **[Sidebar-Widgets](https://rtmedia.io/sidebar-widgets/ "rtMedia Sidebar Widgets")** - This feature provide widgets to upload media and display gallery for rtMedia plugin.
|
71 |
+
20. **[5-Star-Ratings](https://rtmedia.io/5-star-ratings/ "rtMedia 5 Star Ratings")** - User can rate the media files from 1 to 5 star.
|
72 |
+
21. **[Edit-Mp3-Info-(ID3 Tags)](https://rtmedia.io/edit-mp3-info-id3-tags/ "rtMedia - Edit Mp3 Info (ID3 Tags)")** - Allow user to edit MP3 FIle Audio tags (ID 3 tags).
|
73 |
+
22. **[Sorting](https://rtmedia.io/sorting/ "rtMedia Sorting")** - Sort uploaded media based on file size, ascending/descending title, upload date of media.
|
74 |
+
23. **[Bulk-Edit](https://rtmedia.io/bulk-edit/ "rtMedia Bulk Edit")** - Allow users to move files from one album to another, change attributes, change privacy, delete files in bulk.
|
75 |
+
24. **[BuddyPress-Profile-Picture](https://rtmedia.io/buddypress-profile-picture/ "rtMedia BuddyPress Profile Picture")** - Allow users to set their profile picture from existing uploaded media file.
|
76 |
+
25. **[Album-Cover-Art](https://rtmedia.io/album-cover-art/ "rtMedia Album Cover Art")** - Allow users to set album cover from uploaded image.
|
77 |
+
26. **[Direct-Download-Link](https://rtmedia.io/direct-download-link/ "rtMedia Direct Download Link")** - This feature provide a download button for all the uploaded media.
|
78 |
+
27. **[Upload-by-URL](https://rtmedia.io/upload-by-url/ "rtMedia Upload by URL")** - Allow users to upload media using absolute URL.
|
79 |
+
28. **[Likes](https://rtmedia.io/likes/ "rtMedia Likes")** - This feature let you know who liked media. User can also see which media file he/she liked under user profile.
|
80 |
+
29. **[Activity-URL-Preview](https://rtmedia.io/activity-url-preview/ "rtMedia Activity URL Preview")** - This feature provides a preview of the URL that is shared and shows up on BuddyPress activity.
|
81 |
+
30. **[View-Counter](https://rtmedia.io/view-counter/ "rtMedia View Counter")** - Enable view count for all the uploaded media.
|
82 |
+
31. **[Shortcode-Generator](https://rtmedia.io/shortcode-generator/ "rtMedia Shortcode Generator")** - The shortcode generator button added in WordPress post and page editor for all the rtMedia shortcodes.
|
83 |
+
32. **[Album-Privacy](https://rtmedia.io/album-privacy/ "rtMedia Album Privacy")** - Set album privacy when user create new albums or edit album.
|
84 |
+
33. **[BuddyPress-Group-Media-Control](https://rtmedia.io/buddypress-group-media-control/ "rtMedia BuddyPress Group Media Control")** - Allow group owner to provide media upload feature for their group.
|
85 |
+
34. **[Set-Custom-Thumbnail-for-Audio/Video](https://rtmedia.io/set-custom-thumbnail-for-audio-video/ "rtMedia Set Custom Thumbnail for Audio/Video")** - Allow media owner to change the thumbnail of uploaded audio/video files.
|
86 |
+
35. **[rtMedia-SEO](https://rtmedia.io/seo-3/ "rtMedia SEO")** - Generate XML sitemap of all the public media files uploaded via rtMedia plugin, also compatible with [Yoast-SEO](https://wordpress.org/plugins/wordpress-seo/ "Yoast SEO") plugin if you are already using on your site.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
|
89 |
= Important Links =
|
133 |
|
134 |
== Changelog ==
|
135 |
|
136 |
+
= 4.6.12 [June 16, 2022] =
|
137 |
+
|
138 |
+
* Enhancement
|
139 |
+
|
140 |
+
* Compatible with BP-Rewrites latest version.
|
141 |
+
* Compatible with with WordPress latest version 6.0.
|
142 |
+
|
143 |
+
* Fixed
|
144 |
+
|
145 |
+
* UI/UX Issues.
|
146 |
+
* Fixed album count issue for non-admin user and group albums.
|
147 |
+
* Fixed Video thumbnail issue.
|
148 |
+
|
149 |
= 4.6.11 [April 27, 2022] =
|
150 |
|
151 |
* Enhancement
|
1811 |
|
1812 |
== Upgrade Notice ==
|
1813 |
|
1814 |
+
= 4.6.12 =
|
1815 |
+
rtMedia 4.6.12 with some enhancements & minor UI/UX fixes.
|
1816 |
|
1817 |
== Sponsors ==
|
1818 |
|
templates/media/album-gallery.php
CHANGED
@@ -54,7 +54,7 @@ $rand_id = wp_rand( 0, 1000 );
|
|
54 |
|
55 |
<!-- addClass 'rtmedia-list-media' for work properly selectbox -->
|
56 |
<?php
|
57 |
-
if ( have_rtmedia() ) {
|
58 |
?>
|
59 |
<ul class="rtmedia-list-media rtmedia-list rtmedia-album-list clearfix">
|
60 |
<?php
|
54 |
|
55 |
<!-- addClass 'rtmedia-list-media' for work properly selectbox -->
|
56 |
<?php
|
57 |
+
if ( have_rtmedia() || ! empty( $album_objects ) ) {
|
58 |
?>
|
59 |
<ul class="rtmedia-list-media rtmedia-list rtmedia-album-list clearfix">
|
60 |
<?php
|