rtMedia for WordPress, BuddyPress and bbPress - Version 3.10

Version Description

Requires BuddyPress 1.7 or higher, if using BuddyPress. Added update BuddyPress activity privacy feature, added BuddyPress activity for media likes and comments feature.

=

Download this release

Release Info

Developer rtcamp
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 3.10
Comparing to
See all releases

Code changes from version 3.9.5 to 3.10

Files changed (93) hide show
  1. app/admin/RTMediaFormHandler.php +23 -1
  2. app/assets/js/rtMedia.js +34 -1
  3. app/assets/js/rtmedia.min.js +1 -1
  4. app/helper/RTMediaSettings.php +3 -1
  5. app/main/controllers/activity/RTMediaBuddyPressActivity.php +211 -0
  6. app/main/controllers/media/RTMediaMedia.php +1 -1
  7. app/main/controllers/privacy/RTMediaPrivacy.php +147 -24
  8. app/main/controllers/template/rt-template-functions.php +1 -1
  9. app/main/controllers/upload/RTMediaUploadView.php +1 -1
  10. index.php +34 -1
  11. languages/buddypress-media.mo +0 -0
  12. languages/buddypress-media.po +2983 -1588
  13. lib/freemius/LICENSE.txt +340 -0
  14. lib/freemius/assets/css/admin/account.css +1 -0
  15. lib/freemius/assets/css/admin/add-ons.css +2 -0
  16. lib/freemius/assets/css/admin/common.css +1 -0
  17. lib/freemius/assets/css/admin/connect.css +1 -0
  18. lib/freemius/assets/css/admin/deactivation-feedback.css +1 -0
  19. lib/freemius/assets/css/common.css +1 -0
  20. lib/freemius/assets/img/icon.png +0 -0
  21. lib/freemius/assets/img/plugin-icon.png +0 -0
  22. lib/freemius/assets/js/jquery.ba-postmessage.js +222 -0
  23. lib/freemius/assets/js/jquery.ba-postmessage.min.js +9 -0
  24. lib/freemius/assets/js/nojquery.ba-postmessage.js +140 -0
  25. lib/freemius/assets/js/nojquery.ba-postmessage.min.js +12 -0
  26. lib/freemius/assets/js/postmessage.js +110 -0
  27. lib/freemius/assets/scss/_colors.scss +58 -0
  28. lib/freemius/assets/scss/_functions.scss +0 -0
  29. lib/freemius/assets/scss/_load.scss +4 -0
  30. lib/freemius/assets/scss/_mixins.scss +224 -0
  31. lib/freemius/assets/scss/_start.scss +4 -0
  32. lib/freemius/assets/scss/_vars.scss +5 -0
  33. lib/freemius/assets/scss/admin/account.scss +122 -0
  34. lib/freemius/assets/scss/admin/add-ons.scss +319 -0
  35. lib/freemius/assets/scss/admin/common.scss +109 -0
  36. lib/freemius/assets/scss/admin/connect.scss +405 -0
  37. lib/freemius/assets/scss/admin/deactivation-feedback.scss +120 -0
  38. lib/freemius/config.php +161 -0
  39. lib/freemius/includes/class-freemius-abstract.php +382 -0
  40. lib/freemius/includes/class-freemius.php +7698 -0
  41. lib/freemius/includes/class-fs-api.php +354 -0
  42. lib/freemius/includes/class-fs-logger.php +168 -0
  43. lib/freemius/includes/class-fs-plugin-updater.php +253 -0
  44. lib/freemius/includes/class-fs-security.php +61 -0
  45. lib/freemius/includes/entities/class-fs-entity.php +149 -0
  46. lib/freemius/includes/entities/class-fs-plugin-info.php +34 -0
  47. lib/freemius/includes/entities/class-fs-plugin-license.php +160 -0
  48. lib/freemius/includes/entities/class-fs-plugin-plan.php +71 -0
  49. lib/freemius/includes/entities/class-fs-plugin-tag.php +24 -0
  50. lib/freemius/includes/entities/class-fs-plugin.php +90 -0
  51. lib/freemius/includes/entities/class-fs-scope-entity.php +29 -0
  52. lib/freemius/includes/entities/class-fs-site.php +119 -0
  53. lib/freemius/includes/entities/class-fs-subscription.php +117 -0
  54. lib/freemius/includes/entities/class-fs-user.php +62 -0
  55. lib/freemius/includes/fs-core-functions.php +461 -0
  56. lib/freemius/includes/fs-plugin-functions.php +411 -0
  57. lib/freemius/includes/i18n.php +247 -0
  58. lib/freemius/includes/managers/class-fs-admin-menu-manager.php +544 -0
  59. lib/freemius/includes/managers/class-fs-admin-notice-manager.php +303 -0
  60. lib/freemius/includes/managers/class-fs-key-value-storage.php +291 -0
  61. lib/freemius/includes/managers/class-fs-license-manager.php +101 -0
  62. lib/freemius/includes/managers/class-fs-option-manager.php +297 -0
  63. lib/freemius/includes/managers/class-fs-plan-manager.php +147 -0
  64. lib/freemius/includes/managers/class-fs-plugin-manager.php +154 -0
  65. lib/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +2 -0
  66. lib/freemius/includes/sdk/Exceptions/EmptyArgumentException.php +2 -0
  67. lib/freemius/includes/sdk/Exceptions/Exception.php +75 -0
  68. lib/freemius/includes/sdk/Exceptions/InvalidArgumentException.php +2 -0
  69. lib/freemius/includes/sdk/Exceptions/OAuthException.php +8 -0
  70. lib/freemius/includes/sdk/Freemius.php +403 -0
  71. lib/freemius/includes/sdk/FreemiusBase.php +217 -0
  72. lib/freemius/includes/sdk/LICENSE.txt +340 -0
  73. lib/freemius/start.php +95 -0
  74. lib/freemius/templates/account.php +442 -0
  75. lib/freemius/templates/add-ons.php +113 -0
  76. lib/freemius/templates/admin-notice.php +34 -0
  77. lib/freemius/templates/all-admin-notice.php +31 -0
  78. lib/freemius/templates/checkout.php +242 -0
  79. lib/freemius/templates/connect.php +175 -0
  80. lib/freemius/templates/contact.php +72 -0
  81. lib/freemius/templates/deactivation-feedback-modal.php +196 -0
  82. lib/freemius/templates/debug.php +103 -0
  83. lib/freemius/templates/email.php +42 -0
  84. lib/freemius/templates/firewall-issues-js.php +49 -0
  85. lib/freemius/templates/pending-activation.php +146 -0
  86. lib/freemius/templates/plugin-icon.php +58 -0
  87. lib/freemius/templates/plugin-info/description.php +63 -0
  88. lib/freemius/templates/plugin-info/features.php +81 -0
  89. lib/freemius/templates/plugin-info/screenshots.php +19 -0
  90. lib/freemius/templates/powered-by.php +37 -0
  91. lib/freemius/templates/pricing.php +96 -0
  92. lib/freemius/templates/sticky-admin-notice-js.php +36 -0
  93. readme.txt +7 -3
app/admin/RTMediaFormHandler.php CHANGED
@@ -1006,7 +1006,7 @@ class RTMediaFormHandler {
1006
),
1007
'group' => 10,
1008
),
1009
- 'rtmedia-enable-notification' => array(
1010
'title' => __( 'Enable media notification', 'buddypress-media' ),
1011
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1012
'args' => array(
@@ -1017,6 +1017,28 @@ class RTMediaFormHandler {
1017
),
1018
'group' => 10,
1019
),
1020
'general_enableAlbums' => array(
1021
'title' => __( 'Organize media into albums', 'buddypress-media' ),
1022
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1006
),
1007
'group' => 10,
1008
),
1009
+ 'rtmedia-enable-notification' => array(
1010
'title' => __( 'Enable media notification', 'buddypress-media' ),
1011
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1012
'args' => array(
1017
),
1018
'group' => 10,
1019
),
1020
+ 'rtmedia-enable-like-activity' => array(
1021
+ 'title' => __( 'Create activity for media likes', 'buddypress-media' ),
1022
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1023
+ 'args' => array(
1024
+ 'key' => 'buddypress_mediaLikeActivity',
1025
+ 'value' => $options[ 'buddypress_mediaLikeActivity' ],
1026
+ 'desc' => __( 'Enabling this setting will create BuddyPress activity for media likes.', 'buddypress-media' ),
1027
+
1028
+ ),
1029
+ 'group' => 10,
1030
+ ),
1031
+ 'rtmedia-enable-comment-activity' => array(
1032
+ 'title' => __( 'Create activity for media comments', 'buddypress-media' ),
1033
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1034
+ 'args' => array(
1035
+ 'key' => 'buddypress_mediaCommentActivity',
1036
+ 'value' => $options[ 'buddypress_mediaCommentActivity' ],
1037
+ 'desc' => __( 'Enabling this setting will create BuddyPress activity for media comments.', 'buddypress-media' ),
1038
+
1039
+ ),
1040
+ 'group' => 10,
1041
+ ),
1042
'general_enableAlbums' => array(
1043
'title' => __( 'Organize media into albums', 'buddypress-media' ),
1044
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
app/assets/js/rtMedia.js CHANGED
@@ -336,7 +336,7 @@ jQuery( 'document' ).ready( function ( $ ) {
336
jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-selected', function ( e ) {
337
if ( jQuery( '.rtmedia-list :checkbox:checked' ).length > 0 ) {
338
if ( confirm( rtmedia_selected_media_delete_confirmation ) ) {
339
- jQuery( this ).closest( 'form' ).attr( 'action', '../../../' + rtmedia_media_slug + '/delete' ).submit();
340
}
341
} else {
342
rtmedia_gallery_action_alert_message( rtmedia_no_media_selected, 'warning' );
@@ -354,6 +354,39 @@ jQuery( 'document' ).ready( function ( $ ) {
354
355
} );
356
357
function rtmedia_media_view_counts() {
358
//var view_count_action = jQuery('#rtmedia-media-view-form').attr("action");
359
if ( jQuery( '#rtmedia-media-view-form' ).length > 0 ) {
336
jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-selected', function ( e ) {
337
if ( jQuery( '.rtmedia-list :checkbox:checked' ).length > 0 ) {
338
if ( confirm( rtmedia_selected_media_delete_confirmation ) ) {
339
+ jQuery( this ).closest( 'form' ).attr( 'action', '../../../' + rtmedia_media_slug + '/delete' ).submit();
340
}
341
} else {
342
rtmedia_gallery_action_alert_message( rtmedia_no_media_selected, 'warning' );
354
355
} );
356
357
+ jQuery( '#buddypress' ).on( 'change', '.rtm-activity-privacy-opt', function(){
358
+
359
+ var activity_id = jQuery( this ).attr( 'id');
360
+ activity_id = activity_id.split( '-' );
361
+ activity_id = activity_id[ activity_id.length - 1 ];
362
+
363
+ var that = this;
364
+
365
+ data = {
366
+ activity_id : activity_id,
367
+ privacy : jQuery( this ).val(),
368
+ nonce : jQuery( '#rtmedia_activity_privacy_nonce' ).val(),
369
+ action : 'rtm_change_activity_privacy'
370
+ };
371
+
372
+ jQuery.post( ajaxurl, data, function( res ){
373
+ var message = '';
374
+ var css_class = '';
375
+ if( res == "true" ){
376
+ message = "Privacy updated successfully.";
377
+ css_class = 'success';
378
+ } else {
379
+ message = "Couldn't change privacy, please try again.";
380
+ css_class = 'fail';
381
+ }
382
+
383
+ jQuery( that ).after( '<p class="rtm-ac-privacy-updated '+ css_class +'">'+ message +'</p>' );
384
+ setTimeout( function(){
385
+ jQuery( that ).siblings( '.rtm-ac-privacy-updated').remove();
386
+ }, 2000 );
387
+ } );
388
+ } );
389
+
390
function rtmedia_media_view_counts() {
391
//var view_count_action = jQuery('#rtmedia-media-view-form').attr("action");
392
if ( jQuery( '#rtmedia-media-view-form' ).length > 0 ) {
app/assets/js/rtmedia.min.js CHANGED
@@ -3,4 +3,4 @@
3
* @package rtMedia
4
*/
5
function apply_rtMagnificPopup(a){jQuery("document").ready(function(b){var c="";c="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&(b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length>0&&b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(a).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",tLoading:c+" #%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(a){return a.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){a=jQuery.magnificPopup.instance,1===jQuery(a.items).size()&&jQuery(".mfp-arrow").remove();var a=jQuery.magnificPopup.instance,c=a.currItem.el,d=c.parent();if(d.is("li")||(d=d.parent()),d.is(":nth-last-child(2)")||d.is(":last-child")){d.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&jQuery("#rtMedia-galary-next").click()}var e=a.items.length;if(a.index==e-1&&!d.is(":last-child"))return void c.click();var f={};"undefined"!=typeof _wpmejsSettings&&(f.pluginPath=_wpmejsSettings.pluginPath),b(".mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,success:function(a,b){a.play()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[])},close:function(a){rtmedia_init_action_dropdown()},BeforeChange:function(a){}}}))})}function rtmedia_init_action_dropdown(){var a,b;jQuery(".click-nav > span, .click-nav > div").toggleClass("no-js js"),jQuery(".click-nav .js ul").hide(),jQuery(".click-nav .clicker").click(function(c){a=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),b=jQuery(this).next("ul"),jQuery.each(a,function(a,c){jQuery(c).html()!=b.html()&&jQuery(c).hide()}),jQuery(b).toggle(),c.stopPropagation()})}function bp_media_create_element(a){return!1}function rtmedia_version_compare(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);f>e;e++){if(c[e]&&!d[e]&&parseInt(c[e])>0||parseInt(c[e])>parseInt(d[e]))return!0;if(d[e]&&!c[e]&&parseInt(d[e])>0||parseInt(c[e])<parseInt(d[e]))return!1}return!0}function rtm_is_element_exist(a){return jQuery(a).length>0?!0:!1}function rtm_masonry_reload(a){setTimeout(function(){a.masonry("reload")},250)}function rtmediaGetParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null==c?"":decodeURIComponent(c[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning"),jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","0.2"),jQuery(".rtmedia-single-media .rtmedia-media").after("<div class='rtmedia-message-container'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()},3e3),jQuery(".rtmedia-message-container").click(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()})}function rtmedia_gallery_action_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning");var d='<div class="rtmedia-gallery-alert-container"> </div>';jQuery("body").append(d),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+c+"'>"+a+" </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(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},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">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.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 c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{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(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.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 c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+#x2F;,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}),"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick();var e="false"===c.$elem.attr("data-hash")?!1:!0;if(e===!0){var f=b.location.hash;f&&c.$elem.find("li").find("a[href="+f+"]").trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find("a[href="+a+"]").trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li"),e=d.find("a");e.on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");a(f).removeClass("hide");var g="false"===c.$elem.attr("data-hash")?!1:!0;if(g===!0){var h=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(h)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){var c=this,d=c.$elem.find("li"),e=d.find("a");e.each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var rtMagnificPopup,rtm_masonry_container,rtMediaHook={hooks:[],is_break:!1,register:function(a,b){"undefined"==typeof rtMediaHook.hooks[a]&&(rtMediaHook.hooks[a]=[]),rtMediaHook.hooks[a].push(b)},call:function(a,b){if("undefined"!=typeof rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](b))return rtMediaHook.is_break=!0,!1;return!0}};jQuery("document").ready(function(a){function b(){if(jQuery("#rtmedia-media-view-form").length>0){var a=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(a,{},function(a){})}}function c(){var a=jQuery.magnificPopup.instance;jQuery(".mfp-arrow-right").on("click",function(b){a.next()}),jQuery(".mfp-arrow-left").on("click",function(b){a.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(b,c,d,e,f){a.next()},swipeRight:function(b,c,d,e,f){a.prev()},threshold:0})}function d(){jQuery(document).on("focusin","#comment_content",function(){jQuery(document).unbind("keydown")}),jQuery(document).on("focusout","#comment_content",function(){var a=jQuery.magnificPopup.instance;jQuery(document).on("keydown",function(b){37===b.keyCode?a.prev():39===b.keyCode&&a.next()})})}function e(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}a(".rtm-tabs").rtTab(),jQuery(".rtmedia-modal-link").length>0&&a(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),a("#rt_media_comment_form").submit(function(b){return""==a.trim(a("#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):!0}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media, .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(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(d){return!0}if("activity_get_older_updates"==b.data.action){var e=b.success;a.success=function(a){e(a),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"==b.data.action){var e=b.success;a.success=function(a){e(a),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({defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(d){return!0}if("activity_get_older_updates"==b.data.action){var e=b.success;a.success=function(a){e(a),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",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(a){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(a){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(a){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(b){if($albumname=jQuery.trim(jQuery("#rtmedia_album_name").val()),$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 c={action:"rtmedia_create_album",
6
- name:$albumname,context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(c.privacy=$privacy),a("#rtmedia_create_new_album").attr("disabled","disabled");var d=a("#rtmedia_create_new_album").html();a("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,c,function(b){if(b=jQuery.parseJSON(b),"undefined"!=typeof b.album){b=jQuery.trim(b.album);var c=!0;jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){return jQuery(this).attr("value")===$context?(c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")):void 0}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1),d='<optgroup value="'+$context+'" label="'+a+' Albums"><option value="'+b+'">'+$albumname+"</option></optgroup>";jQuery(this).append(d)}}),jQuery('select.rtmedia-user-album-list option[value="'+b+'"]').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(),jQuery(".close-reveal-modal").click()},2e3)}else"undefined"!=typeof b.error?rtmedia_gallery_action_alert_message(b.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");a("#rtmedia_create_new_album").removeAttr("disabled"),a("#rtmedia_create_new_album").html(d)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?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(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),b(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){b(),e(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&c(),d();var f=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*f,"max-height":.8*f,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*f,"over-flow":"hidden"}),rtmedia_init_action_dropdown(),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var g=a(".rtm-gallery-title"),h="";h=a.isEmptyObject(g)?a("#subnav.item-list-tabs li.selected ").html():g.html(),""!=h&&a(".rtm-ltb-gallery-title .ltb-title").html(h);var i=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(i),!0});var f=jQuery("#drag-drop-area"),g=jQuery("#whats-new");f.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(a){jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&g.addClass("rtm-drag-drop-active"),f.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show()}).on("dragleave",function(a){a.preventDefault(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(g.removeClass("rtm-drag-drop-active"),g.removeAttr("style")),f.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(a){a.preventDefault(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(g.removeClass("rtm-drag-drop-active"),g.removeAttr("style")),f.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(a){a.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(),a(document).click(function(){a(".click-nav ul").is(":visible")&&a(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").length>0&&a(".rtm-more").shorten({showChars:200}),"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"),rtm_masonry_container.masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())})),jQuery(".rtm-uploader-tabs").length>0&&jQuery(".rtm-uploader-tabs li").click(function(a){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").children("input[type=file]").hide():jQuery("div.moxie-shim").children("input[type=file]").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(a){a.preventDefault();var b="Are you sure you want to delete this media?";if("undefined"!=typeof rtmedia_media_delete_confirmation&&(b=rtmedia_media_delete_confirmation),confirm(b)){var c=jQuery(this).closest("li"),d=jQuery("#rtmedia_media_delete_nonce").val(),e={action:"delete_uploaded_media",nonce:d,media_id:c.attr("id")};jQuery.ajax({url:ajaxurl,type:"post",data:e,success:function(a){"1"==a?(rtmedia_gallery_action_alert_message("file deleted successfully.","success"),c.remove(),"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)):rtmedia_gallery_action_alert_message(rtmedia_file_not_deleted,"warning")}})}})}),function(a){a.fn.shorten=function(b){var c={showChars:100,ellipsesText:"...",moreText:"more",lessText:"less"};return b&&a.extend(c,b),a(document).off("click",".morelink"),a(document).on({click:function(){var b=a(this);return b.hasClass("less")?(b.removeClass("less"),b.html(c.moreText)):(b.addClass("less"),b.html(c.lessText)),b.parent().prev().toggle(),b.prev().toggle(),!1}},".morelink"),this.each(function(){var b=a(this);if(!b.hasClass("shortened")){b.addClass("shortened");var d=b.html();if(d.length>c.showChars){var e=d.substr(0,c.showChars),f=d.substr(c.showChars,d.length-c.showChars),g=e+'<span class="moreellipses">'+c.ellipsesText+' </span><span class="morecontent"><span>'+f+'</span> <a href="#" class="morelink">'+c.moreText+"</a></span>";b.html(g),a(".morecontent span").hide()}}})}}(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)};
3
* @package rtMedia
4
*/
5
function apply_rtMagnificPopup(a){jQuery("document").ready(function(b){var c="";c="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&(b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length>0&&b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(a).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",tLoading:c+" #%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(a){return a.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){a=jQuery.magnificPopup.instance,1===jQuery(a.items).size()&&jQuery(".mfp-arrow").remove();var a=jQuery.magnificPopup.instance,c=a.currItem.el,d=c.parent();if(d.is("li")||(d=d.parent()),d.is(":nth-last-child(2)")||d.is(":last-child")){d.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&jQuery("#rtMedia-galary-next").click()}var e=a.items.length;if(a.index==e-1&&!d.is(":last-child"))return void c.click();var f={};"undefined"!=typeof _wpmejsSettings&&(f.pluginPath=_wpmejsSettings.pluginPath),b(".mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,success:function(a,b){a.play()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[])},close:function(a){rtmedia_init_action_dropdown()},BeforeChange:function(a){}}}))})}function rtmedia_init_action_dropdown(){var a,b;jQuery(".click-nav > span, .click-nav > div").toggleClass("no-js js"),jQuery(".click-nav .js ul").hide(),jQuery(".click-nav .clicker").click(function(c){a=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),b=jQuery(this).next("ul"),jQuery.each(a,function(a,c){jQuery(c).html()!=b.html()&&jQuery(c).hide()}),jQuery(b).toggle(),c.stopPropagation()})}function bp_media_create_element(a){return!1}function rtmedia_version_compare(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);f>e;e++){if(c[e]&&!d[e]&&parseInt(c[e])>0||parseInt(c[e])>parseInt(d[e]))return!0;if(d[e]&&!c[e]&&parseInt(d[e])>0||parseInt(c[e])<parseInt(d[e]))return!1}return!0}function rtm_is_element_exist(a){return jQuery(a).length>0?!0:!1}function rtm_masonry_reload(a){setTimeout(function(){a.masonry("reload")},250)}function rtmediaGetParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null==c?"":decodeURIComponent(c[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning"),jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","0.2"),jQuery(".rtmedia-single-media .rtmedia-media").after("<div class='rtmedia-message-container'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()},3e3),jQuery(".rtmedia-message-container").click(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()})}function rtmedia_gallery_action_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning");var d='<div class="rtmedia-gallery-alert-container"> </div>';jQuery("body").append(d),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+c+"'>"+a+" </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(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},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">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.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 c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{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(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.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 c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+#x2F;,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}),"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick();var e="false"===c.$elem.attr("data-hash")?!1:!0;if(e===!0){var f=b.location.hash;f&&c.$elem.find("li").find("a[href="+f+"]").trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find("a[href="+a+"]").trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li"),e=d.find("a");e.on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");a(f).removeClass("hide");var g="false"===c.$elem.attr("data-hash")?!1:!0;if(g===!0){var h=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(h)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){var c=this,d=c.$elem.find("li"),e=d.find("a");e.each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var rtMagnificPopup,rtm_masonry_container,rtMediaHook={hooks:[],is_break:!1,register:function(a,b){"undefined"==typeof rtMediaHook.hooks[a]&&(rtMediaHook.hooks[a]=[]),rtMediaHook.hooks[a].push(b)},call:function(a,b){if("undefined"!=typeof rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](b))return rtMediaHook.is_break=!0,!1;return!0}};jQuery("document").ready(function(a){function b(){if(jQuery("#rtmedia-media-view-form").length>0){var a=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(a,{},function(a){})}}function c(){var a=jQuery.magnificPopup.instance;jQuery(".mfp-arrow-right").on("click",function(b){a.next()}),jQuery(".mfp-arrow-left").on("click",function(b){a.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(b,c,d,e,f){a.next()},swipeRight:function(b,c,d,e,f){a.prev()},threshold:0})}function d(){jQuery(document).on("focusin","#comment_content",function(){jQuery(document).unbind("keydown")}),jQuery(document).on("focusout","#comment_content",function(){var a=jQuery.magnificPopup.instance;jQuery(document).on("keydown",function(b){37===b.keyCode?a.prev():39===b.keyCode&&a.next()})})}function e(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}a(".rtm-tabs").rtTab(),jQuery(".rtmedia-modal-link").length>0&&a(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),a("#rt_media_comment_form").submit(function(b){return""==a.trim(a("#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):!0}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media, .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(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(d){return!0}if("activity_get_older_updates"==b.data.action){var e=b.success;a.success=function(a){e(a),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"==b.data.action){var e=b.success;a.success=function(a){e(a),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({defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(d){return!0}if("activity_get_older_updates"==b.data.action){var e=b.success;a.success=function(a){e(a),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",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(a){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(a){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(a){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(b){if($albumname=jQuery.trim(jQuery("#rtmedia_album_name").val()),$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 c={action:"rtmedia_create_album",
6
+ name:$albumname,context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(c.privacy=$privacy),a("#rtmedia_create_new_album").attr("disabled","disabled");var d=a("#rtmedia_create_new_album").html();a("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,c,function(b){if(b=jQuery.parseJSON(b),"undefined"!=typeof b.album){b=jQuery.trim(b.album);var c=!0;jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){return jQuery(this).attr("value")===$context?(c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")):void 0}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1),d='<optgroup value="'+$context+'" label="'+a+' Albums"><option value="'+b+'">'+$albumname+"</option></optgroup>";jQuery(this).append(d)}}),jQuery('select.rtmedia-user-album-list option[value="'+b+'"]').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(),jQuery(".close-reveal-modal").click()},2e3)}else"undefined"!=typeof b.error?rtmedia_gallery_action_alert_message(b.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");a("#rtmedia_create_new_album").removeAttr("disabled"),a("#rtmedia_create_new_album").html(d)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?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(a){jQuery(".rtmedia-list :checkbox:checked").length>0?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 a=jQuery(this).attr("id");a=a.split("-"),a=a[a.length-1];var b=this;data={activity_id:a,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(a){var c="",d="";"true"==a?(c="Privacy updated successfully.",d="success"):(c="Couldn't change privacy, please try again.",d="fail"),jQuery(b).after('<p class="rtm-ac-privacy-updated '+d+'">'+c+"</p>"),setTimeout(function(){jQuery(b).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),b(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){b(),e(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&c(),d();var f=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*f,"max-height":.8*f,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*f,"over-flow":"hidden"}),rtmedia_init_action_dropdown(),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var g=a(".rtm-gallery-title"),h="";h=a.isEmptyObject(g)?a("#subnav.item-list-tabs li.selected ").html():g.html(),""!=h&&a(".rtm-ltb-gallery-title .ltb-title").html(h);var i=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(i),!0});var f=jQuery("#drag-drop-area"),g=jQuery("#whats-new");f.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(a){jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&g.addClass("rtm-drag-drop-active"),f.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show()}).on("dragleave",function(a){a.preventDefault(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(g.removeClass("rtm-drag-drop-active"),g.removeAttr("style")),f.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(a){a.preventDefault(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(g.removeClass("rtm-drag-drop-active"),g.removeAttr("style")),f.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(a){a.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(),a(document).click(function(){a(".click-nav ul").is(":visible")&&a(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").length>0&&a(".rtm-more").shorten({showChars:200}),"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"),rtm_masonry_container.masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())})),jQuery(".rtm-uploader-tabs").length>0&&jQuery(".rtm-uploader-tabs li").click(function(a){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").children("input[type=file]").hide():jQuery("div.moxie-shim").children("input[type=file]").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(a){a.preventDefault();var b="Are you sure you want to delete this media?";if("undefined"!=typeof rtmedia_media_delete_confirmation&&(b=rtmedia_media_delete_confirmation),confirm(b)){var c=jQuery(this).closest("li"),d=jQuery("#rtmedia_media_delete_nonce").val(),e={action:"delete_uploaded_media",nonce:d,media_id:c.attr("id")};jQuery.ajax({url:ajaxurl,type:"post",data:e,success:function(a){"1"==a?(rtmedia_gallery_action_alert_message("file deleted successfully.","success"),c.remove(),"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)):rtmedia_gallery_action_alert_message(rtmedia_file_not_deleted,"warning")}})}})}),function(a){a.fn.shorten=function(b){var c={showChars:100,ellipsesText:"...",moreText:"more",lessText:"less"};return b&&a.extend(c,b),a(document).off("click",".morelink"),a(document).on({click:function(){var b=a(this);return b.hasClass("less")?(b.removeClass("less"),b.html(c.moreText)):(b.addClass("less"),b.html(c.lessText)),b.parent().prev().toggle(),b.prev().toggle(),!1}},".morelink"),this.each(function(){var b=a(this);if(!b.hasClass("shortened")){b.addClass("shortened");var d=b.html();if(d.length>c.showChars){var e=d.substr(0,c.showChars),f=d.substr(c.showChars,d.length-c.showChars),g=e+'<span class="moreellipses">'+c.ellipsesText+' </span><span class="morecontent"><span>'+f+'</span> <a href="#" class="morelink">'+c.moreText+"</a></span>";b.html(g),a(".morecontent span").hide()}}})}}(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)};
app/helper/RTMediaSettings.php CHANGED
@@ -84,7 +84,9 @@ if ( ! class_exists( 'RTMediaSettings' ) ){
84
$defaults['buddypress_enableOnActivity'] = 1;
85
$defaults['buddypress_enableOnProfile'] = 1;
86
$defaults['buddypress_limitOnActivity'] = 0;
87
- $defaults['buddypress_enableNotification'] = 0;
88
$defaults['styles_custom'] = '';
89
$defaults['styles_enabled'] = 1;
90
84
$defaults['buddypress_enableOnActivity'] = 1;
85
$defaults['buddypress_enableOnProfile'] = 1;
86
$defaults['buddypress_limitOnActivity'] = 0;
87
+ $defaults['buddypress_enableNotification'] = 0;
88
+ $defaults['buddypress_mediaLikeActivity'] = 0;
89
+ $defaults['buddypress_mediaCommentActivity'] = 0;
90
$defaults['styles_custom'] = '';
91
$defaults['styles_enabled'] = 1;
92
app/main/controllers/activity/RTMediaBuddyPressActivity.php CHANGED
@@ -31,6 +31,17 @@ class RTMediaBuddyPressActivity {
31
32
// Filter bp_activity_prefetch_object_data for translatable activity actions
33
add_filter( 'bp_activity_prefetch_object_data', array( $this, 'bp_prefetch_activity_object_data' ), 10, 1 );
34
}
35
36
function bp_activity_deleted_activities( $activity_ids_deleted ){
@@ -417,4 +428,204 @@ class RTMediaBuddyPressActivity {
417
return $activities;
418
}
419
420
}
31
32
// Filter bp_activity_prefetch_object_data for translatable activity actions
33
add_filter( 'bp_activity_prefetch_object_data', array( $this, 'bp_prefetch_activity_object_data' ), 10, 1 );
34
+
35
+ // BuddyPress activity for media like action
36
+ if ( isset( $rtmedia->options['buddypress_mediaLikeActivity'] ) && 0 != $rtmedia->options['buddypress_mediaLikeActivity'] ){
37
+ add_action( 'rtmedia_after_like_media', array( $this, 'activity_after_media_like' ) );
38
+ }
39
+
40
+ // BuddyPress activity for media comment action
41
+ if ( isset( $rtmedia->options['buddypress_mediaCommentActivity'] ) && 0 != $rtmedia->options['buddypress_mediaCommentActivity'] ){
42
+ add_action( 'rtmedia_after_add_comment', array( $this, 'activity_after_media_comment' ) );
43
+ add_action( 'rtmedia_before_remove_comment', array( $this, 'remove_activity_after_media_comment_delete' ) );
44
+ }
45
}
46
47
function bp_activity_deleted_activities( $activity_ids_deleted ){
428
return $activities;
429
}
430
431
+ /**
432
+ * Create BP activity when user like and delete associated activity when user remove like.
433
+ *
434
+ * @param $obj RTMediaLike
435
+ */
436
+ function activity_after_media_like( $obj ){
437
+ global $rtmedia_points_media_id;
438
+ if( is_a( $obj, 'RTMediaLike' ) && isset( $obj->action_query->id ) ){
439
+ $media_id = $obj->action_query->id;
440
+ } elseif( ! empty( $rtmedia_points_media_id ) ){
441
+ $media_id = $rtmedia_points_media_id;
442
+ } else {
443
+ $media_id = false;
444
+ }
445
+
446
+ $media_obj = $obj->media;
447
+
448
+ // Proceed only if we have media to process.
449
+ if( $media_id !== false && ( $media_obj->context == 'profile' || $media_obj->context == 'group' ) ){
450
+
451
+ $user_id = $obj->interactor;
452
+
453
+ // If $obj->increase is true than request is to like the media.
454
+ if( $obj->increase ){
455
+
456
+ // Create activity on media like
457
+ $user = get_userdata( $user_id );
458
+ $username = '<a href="' . get_rtmedia_user_link( $user_id ) . '">' . $user->display_name . '</a>';
459
+
460
+ $media_author = $obj->owner;
461
+
462
+ $primary_link = get_rtmedia_permalink( $media_id );
463
+
464
+ $media_const = 'RTMEDIA_' . strtoupper( $obj->media->media_type ) . '_LABEL';
465
+ $media_str = '<a href="'. $primary_link .'">' . constant( $media_const ) . '</a>';
466
+
467
+ if( $media_obj->context == 'group' ){
468
+ $group_data = groups_get_group( array( 'group_id' => $media_obj->context_id ) );
469
+ $group_name = '<a href="' . bp_get_group_permalink( $group_data ) . '">' . $group_data->name . '</a>';
470
+ $action = sprintf( __( '%1$s liked a %2$s in the group %3$s', 'buddypress-media' ), $username, $media_str, $group_name );
471
+ } else {
472
+ if( $user_id == $media_author ){
473
+ $action = sprintf( __( '%1$s liked their %2$s', 'buddypress-media' ), $username, $media_str );
474
+ } else {
475
+ $media_author_data = get_userdata( $media_author );
476
+ $media_author_name = '<a href="' . get_rtmedia_user_link( $media_author ) . '">' . $media_author_data->display_name . '</a>';
477
+ $action = sprintf( __( '%1$s liked %2$s\'s %3$s', 'buddypress-media' ), $username, $media_author_name, $media_str );
478
+ }
479
+ }
480
+
481
+ $action = apply_filters( 'rtm_bp_like_activity_action', $action, $media_id, $user_id );
482
+ $primary_link = get_rtmedia_permalink( $media_id );
483
+
484
+ // generate activity arguments.
485
+ $activity_args = array(
486
+ 'user_id' => $user_id,
487
+ 'action' => $action,
488
+ 'type' => 'rtmedia_like_activity',
489
+ 'primary_link' => $primary_link,
490
+ 'item_id' => $media_id,
491
+ );
492
+
493
+ // set activity component
494
+ if( $media_obj->context == 'group' || $media_obj->context == 'profile' ) {
495
+ $activity_args[ 'component' ] = $media_obj->context;
496
+ if( $media_obj->context == 'group' ) {
497
+ $activity_args[ 'component' ] = "groups";
498
+ $activity_args[ 'item_id' ] = $media_obj->context_id;
499
+ }
500
+ }
501
+
502
+ // add BP activity
503
+ $activity_id = bp_activity_add( $activity_args );
504
+
505
+ // Store activity id into user meta for reference
506
+ update_user_meta( $user_id, 'rtm-bp-media-like-activity-' . $media_id, $activity_id );
507
+ } else {
508
+
509
+ $meta_key = 'rtm-bp-media-like-activity-' . $media_id;
510
+ // Delete activity when user remove his like.
511
+ $activity_id = get_user_meta( $user_id, $meta_key, true );
512
+
513
+ if( ! empty( $activity_id ) ){
514
+ if( bp_activity_delete( array( 'id' => $activity_id ) ) ){
515
+ delete_user_meta( $user_id, $meta_key );
516
+ }
517
+ }
518
+ }
519
+ }
520
+ }
521
+
522
+ /**
523
+ * Create BuddyPress activity when user comment on media
524
+ *
525
+ * @param $params array
526
+ */
527
+ function activity_after_media_comment( $params ){
528
+
529
+ if( isset( $params['comment_post_ID'] ) ){
530
+
531
+ // get media details
532
+ $media_model = new RTMediaModel();
533
+ $media_obj = $media_model->get( array( 'media_id' => $params['comment_post_ID'] ) );
534
+ $media_obj = $media_obj[0];
535
+
536
+ // only proceed if corresponding media is exist.
537
+ if( ! empty( $media_obj ) && ( $media_obj->context == 'profile' || $media_obj->context == 'group' ) ){
538
+
539
+ $media_id = $media_obj->id;
540
+
541
+ $user_id = $params['user_id'];
542
+ $user = get_userdata( $user_id );
543
+ $username = '<a href="' . get_rtmedia_user_link( $user_id ) . '">' . $user->display_name . '</a>';
544
+
545
+ $primary_link = get_rtmedia_permalink( $media_id );
546
+
547
+ $media_const = 'RTMEDIA_' . strtoupper( $media_obj->media_type ) . '_LABEL';
548
+ $media_str = '<a href="'. $primary_link .'">' . constant( $media_const ) . '</a>';
549
+
550
+ $media_author = $media_obj->media_author;
551
+
552
+ if( $media_obj->context == 'group' ){
553
+ $group_data = groups_get_group( array( 'group_id' => $media_obj->context_id ) );
554
+ $group_name = '<a href="' . bp_get_group_permalink( $group_data ) . '">' . $group_data->name . '</a>';
555
+ $action = sprintf( __( '%1$s commented on a %2$s in the group %3$s', 'buddypress-media' ), $username, $media_str, $group_name );
556
+ } else {
557
+ if( $user_id == $media_author ){
558
+ $action = sprintf( __( '%1$s commented on their %2$s', 'buddypress-media' ), $username, $media_str );
559
+ } else {
560
+ $media_author_data = get_userdata( $media_author );
561
+ $media_author_name = '<a href="' . get_rtmedia_user_link( $media_author ) . '">' . $media_author_data->display_name . '</a>';
562
+ $action = sprintf( __( '%1$s commented on %2$s\'s %3$s', 'buddypress-media' ), $username, $media_author_name, $media_str );
563
+ }
564
+ }
565
+
566
+ $comment_content = $params['comment_content'];
567
+ $wp_comment_id = $params['comment_id'];
568
+
569
+ // prepare activity arguments
570
+ $activity_args = array(
571
+ 'user_id' => $user_id,
572
+ 'action' => $action,
573
+ 'content' => $comment_content,
574
+ 'type' => 'rtmedia_comment_activity',
575
+ 'primary_link' => $primary_link,
576
+ 'item_id' => $media_id,
577
+ 'secondary_item_id' => $wp_comment_id
578
+ );
579
+
580
+ // set activity component
581
+ if( $media_obj->context == 'group' || $media_obj->context == 'profile' ) {
582
+ $activity_args[ 'component' ] = $media_obj->context;
583
+ if( $media_obj->context == 'group' ) {
584
+ $activity_args[ 'component' ] = "groups";
585
+ $activity_args[ 'item_id' ] = $media_obj->context_id;
586
+ }
587
+ }
588
+
589
+ // create BuddyPress activity
590
+ $activity_id = bp_activity_add( $activity_args );
591
+
592
+ // Store activity id into user meta for reference
593
+ update_user_meta( $user_id, 'rtm-bp-media-comment-activity-' . $media_id . '-' . $wp_comment_id, $activity_id );
594
+ }
595
+ }
596
+ }
597
+
598
+ /**
599
+ * Remove activity when comment on media is deleted
600
+ *
601
+ * @param $comment_id
602
+ */
603
+ function remove_activity_after_media_comment_delete( $comment_id ){
604
+ if( !empty( $comment_id ) ) {
605
+
606
+ // get comment details from comment id
607
+ $comment = get_comment( $comment_id );
608
+ $user_id = $comment->user_id;
609
+
610
+ if( isset( $comment->comment_post_ID ) && isset( $comment->user_id ) ){
611
+ $model = new RTMediaModel();
612
+ $media_obj = $model->get( array( 'media_id' => $comment->comment_post_ID ) );
613
+ $media_obj = $media_obj[0];
614
+
615
+ if( ! empty( $media_obj ) ){
616
+ $meta_key = 'rtm-bp-media-comment-activity-' . $media_obj->id . '-' . $comment_id;
617
+
618
+ // Delete activity when user remove his comment.
619
+ $activity_id = get_user_meta( $user_id, $meta_key, true );
620
+
621
+ if( ! empty( $activity_id ) ){
622
+ if( bp_activity_delete( array( 'id' => $activity_id ) ) ){
623
+ delete_user_meta( $user_id, $meta_key );
624
+ }
625
+ }
626
+ }
627
+ }
628
+ }
629
+ }
630
+
631
}
app/main/controllers/media/RTMediaMedia.php CHANGED
@@ -601,7 +601,7 @@ class RTMediaMedia {
601
$activity_args[ "hide_sitewide" ] = true;
602
}
603
604
- if( $media->context == 'group' || 'profile' ) {
605
$activity_args[ 'component' ] = $media->context;
606
if( $media->context == 'group' ) {
607
$activity_args[ 'component' ] = "groups";
601
$activity_args[ "hide_sitewide" ] = true;
602
}
603
604
+ if( $media->context == 'group' || $media->context == 'profile' ) {
605
$activity_args[ 'component' ] = $media->context;
606
if( $media->context == 'group' ) {
607
$activity_args[ 'component' ] = "groups";
app/main/controllers/privacy/RTMediaPrivacy.php CHANGED
@@ -15,8 +15,9 @@ class RTMediaPrivacy {
15
*
16
* @var object default application wide privacy levels
17
*/
18
- public
19
- $default_privacy;
20
21
function __construct( $flag = true ) {
22
if ( is_rtmedia_privacy_enable() && $flag ) {
@@ -25,14 +26,87 @@ class RTMediaPrivacy {
25
add_action( 'bp_init', array( $this, 'add_nav' ) );
26
add_action( 'bp_template_content', array( $this, 'content' ) );
27
add_filter( 'bp_activity_get_user_join_filter', array( $this, 'activity_privacy' ), 10, 6 );
28
add_filter( 'bp_use_legacy_activity_query', array( $this, 'enable_buddypress_privacy' ), 10, 3 );
29
add_filter( 'bp_activity_has_more_items', array( $this, 'enable_buddypress_load_more' ), 10, 1 );
30
add_action( 'bp_actions', array( $this,'rt_privacy_settings_action' ) );
31
}
32
add_action( 'friends_friendship_accepted', array( 'RTMediaFriends', 'refresh_friends_cache' ) );
33
add_action( 'friends_friendship_deleted', array( 'RTMediaFriends', 'refresh_friends_cache' ) );
34
}
35
36
function enable_buddypress_load_more( $has_more_items ) {
37
global $activities_template;
38
return true;
@@ -66,7 +140,7 @@ class RTMediaPrivacy {
66
}
67
}
68
69
- function select_privacy_ui( $echo = true, $select_id = false ) {
70
global $rtmedia;
71
72
if ( ! is_rtmedia_privacy_enable() )
@@ -76,12 +150,13 @@ class RTMediaPrivacy {
76
return false;
77
78
global $rtmedia_media;
79
- $default = 0;
80
- if ( isset( $rtmedia_media->privacy ) )
81
$default = $rtmedia_media->privacy;
82
- else {
83
$default = get_user_meta( get_current_user_id(), 'rtmedia-default-privacy', true );
84
-
85
if ( ( $default === false ) || $default === '' ) {
86
$default = get_rtmedia_default_privacy();
87
}
@@ -89,12 +164,22 @@ class RTMediaPrivacy {
89
90
91
$form = new rtForm();
92
$attributes = array(
93
'name' => 'privacy',
94
- 'class' => array( 'privacy' )
95
);
96
- if ( $select_id && $select_id != "" ) {
97
- $attributes[ 'id' ] = $select_id;
98
}
99
global $rtmedia;
100
$privacy_levels = $rtmedia->privacy_settings[ 'levels' ];
@@ -325,36 +410,36 @@ class RTMediaPrivacy {
325
$user = 0;
326
}
327
328
- $activity_upgrade_done = rtmedia_get_site_option( 'rtmedia_activity_done_upgrade' );
329
-
330
// admin has upgraded rtmedia activity so we can use rt_rtm_activity table for rtmedia related activity filters
331
- if ( $activity_upgrade_done ) {
332
$rtmedia_activity_model = new RTMediaActivityModel();
333
- $where .= " (ra.privacy is NULL OR ra.privacy <= 0) ";
334
if ( $user ) {
335
- $where .= "OR ((ra.privacy=20)";
336
- $where .= " OR (a.user_id={$user} AND ra.privacy >= 40)";
337
if ( class_exists( 'BuddyPress' ) ) {
338
if ( bp_is_active( 'friends' ) ) {
339
$friendship = new RTMediaFriends();
340
$friends = $friendship->get_friends_cache( $user );
341
if ( isset( $friends ) && ! empty( $friends ) != "" ) {
342
- $where .= " OR (ra.privacy=40 AND a.user_id IN ('" . implode( "','", $friends ) . "'))";
343
}
344
}
345
}
346
$where .= ')';
347
}
348
- if ( function_exists( "bp_core_get_table_prefix" ) ) {
349
- $bp_prefix = bp_core_get_table_prefix();
350
- } else {
351
- $bp_prefix = "";
352
- }
353
if ( strpos( $select_sql, "SELECT DISTINCT" ) === false ) {
354
$select_sql = str_replace( "SELECT", "SELECT DISTINCT", $select_sql );
355
}
356
- $from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID LEFT JOIN {$rtmedia_model->table_name} m ON ( a.id = m.activity_id AND m.blog_id = '" . get_current_blog_id() . "' ) LEFT JOIN {$rtmedia_activity_model->table_name} ra ON ( a.id = ra.activity_id and ra.blog_id = '" . get_current_blog_id() . "' ) ";
357
- $where_sql = $where_sql . " AND (NOT EXISTS (SELECT m.activity_id FROM {$bp_prefix}bp_activity_meta m WHERE m.meta_key='rtmedia_privacy' AND m.activity_id=a.id) OR ( {$where} ) )";
358
$newsql = "{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}";
359
} else {
360
$where .= " (m.max_privacy is NULL OR m.max_privacy <= 0) ";
@@ -388,4 +473,42 @@ class RTMediaPrivacy {
388
return $newsql;
389
}
390
391
}
15
*
16
* @var object default application wide privacy levels
17
*/
18
+ public $default_privacy;
19
+
20
+ public $rtm_activity_table_alias = 'ra';
21
22
function __construct( $flag = true ) {
23
if ( is_rtmedia_privacy_enable() && $flag ) {
26
add_action( 'bp_init', array( $this, 'add_nav' ) );
27
add_action( 'bp_template_content', array( $this, 'content' ) );
28
add_filter( 'bp_activity_get_user_join_filter', array( $this, 'activity_privacy' ), 10, 6 );
29
+
30
+ // Filter bp_activity_get_user_join_filter to get activity privacy field in loop
31
+ add_filter( 'bp_activity_get_user_join_filter', array( $this, 'activity_privacy_sql_field' ), 10, 6 );
32
+
33
add_filter( 'bp_use_legacy_activity_query', array( $this, 'enable_buddypress_privacy' ), 10, 3 );
34
add_filter( 'bp_activity_has_more_items', array( $this, 'enable_buddypress_load_more' ), 10, 1 );
35
add_action( 'bp_actions', array( $this,'rt_privacy_settings_action' ) );
36
+
37
+ // show change privacy option in activity meta.
38
+ add_action( 'bp_activity_entry_meta', array( $this, 'update_activity_privacy_option' ) );
39
+
40
+ // Add nonce field to change activity privacy option
41
+ add_action( 'template_notices', array( $this, 'add_activity_privacy_nonce' ) );
42
+
43
+ // save update privacy value
44
+ add_action( 'wp_ajax_rtm_change_activity_privacy', array( $this, 'rtm_change_activity_privacy' ) );
45
+
46
}
47
add_action( 'friends_friendship_accepted', array( 'RTMediaFriends', 'refresh_friends_cache' ) );
48
add_action( 'friends_friendship_deleted', array( 'RTMediaFriends', 'refresh_friends_cache' ) );
49
}
50
51
+ /**
52
+ * Hooked to `bp_activity_entry_meta`
53
+ *
54
+ * Show privacy dropdown inside activity loop along with activity meta buttons.
55
+ */
56
+ function update_activity_privacy_option(){
57
+ if( function_exists( 'bp_activity_user_can_delete' ) && bp_activity_user_can_delete()
58
+ && is_rtmedia_privacy_enable() && is_rtmedia_privacy_user_overide()
59
+ && apply_filters( 'rtm_load_bp_activity_privacy_update_ui', true )
60
+ ){
61
+ global $activities_template;
62
+
63
+ $selected = 0;
64
+ if( isset( $activities_template->activity->privacy ) ){
65
+ $selected = intval( $activities_template->activity->privacy );
66
+ }
67
+
68
+ //todo strict standard error
69
+ self::select_privacy_ui( true, 'rtm-ac-privacy-' . $activities_template->activity->id , array( 'rtm-activity-privacy-opt' ), $selected );
70
+ }
71
+ }
72
+
73
+ /**
74
+ * Add nonce field for activity privacy change action verification
75
+ */
76
+ function add_activity_privacy_nonce(){
77
+ wp_nonce_field( 'rtmedia_activity_privacy_nonce', 'rtmedia_activity_privacy_nonce' );
78
+ }
79
+
80
+ function rtm_change_activity_privacy(){
81
+ $data = $_POST;
82
+
83
+ if( wp_verify_nonce( $data[ 'nonce' ], 'rtmedia_activity_privacy_nonce' ) ){
84
+ $rtm_activity_model = new RTMediaActivityModel();
85
+ $is_ac_privacy_exist = $rtm_activity_model->check( $data[ 'activity_id' ] );
86
+
87
+ if( ! $is_ac_privacy_exist ){
88
+ // Very first privacy entry for this activity
89
+ $status = $rtm_activity_model->insert( array(
90
+ 'privacy' => intval( $data['privacy'] ),
91
+ 'activity_id' => intval( $data[ 'activity_id' ] ),
92
+ 'user_id' => get_current_user_id(),
93
+ ) );
94
+ } else {
95
+ // Just update the existing value
96
+ $status = $rtm_activity_model->update( array( 'privacy' => intval( $data['privacy'] ) ), array( 'activity_id' => intval( $data['activity_id'] ) ) );
97
+ }
98
+
99
+ if( $status === false ){
100
+ $status = 'false';
101
+ } else {
102
+ $status = 'true';
103
+ }
104
+
105
+ echo $status;
106
+ wp_die();
107
+ }
108
+ }
109
+
110
function enable_buddypress_load_more( $has_more_items ) {
111
global $activities_template;
112
return true;
140
}
141
}
142
143
+ function select_privacy_ui( $echo = true, $element_id = false, $element_class = array(), $selected = false ) {
144
global $rtmedia;
145
146
if ( ! is_rtmedia_privacy_enable() )
150
return false;
151
152
global $rtmedia_media;
153
+
154
+ if( $selected !== false ){
155
+ $default = $selected;
156
+ } elseif ( isset( $rtmedia_media->privacy ) ){
157
$default = $rtmedia_media->privacy;
158
+ } else {
159
$default = get_user_meta( get_current_user_id(), 'rtmedia-default-privacy', true );
160
if ( ( $default === false ) || $default === '' ) {
161
$default = get_rtmedia_default_privacy();
162
}
164
165
166
$form = new rtForm();
167
+
168
+ $attributes_class = array( 'privacy' );
169
+
170
+ if( !empty( $element_class ) ){
171
+ if( ! is_array( $element_class ) ){
172
+ $attributes_class = array_merge( $attributes_class, (array) $element_class );
173
+ } else {
174
+ $attributes_class = array_merge( $attributes_class, $element_class );
175
+ }
176
+ }
177
$attributes = array(
178
'name' => 'privacy',
179
+ 'class' => $attributes_class
180
);
181
+ if ( $element_id && $element_id != "" ) {
182
+ $attributes[ 'id' ] = $element_id;
183
}
184
global $rtmedia;
185
$privacy_levels = $rtmedia->privacy_settings[ 'levels' ];
410
$user = 0;
411
}
412
413
// admin has upgraded rtmedia activity so we can use rt_rtm_activity table for rtmedia related activity filters
414
+ if ( $this->can_use_rtm_ac_privacy() ) {
415
$rtmedia_activity_model = new RTMediaActivityModel();
416
+ $where .= " ({$this->rtm_activity_table_alias}.privacy is NULL OR {$this->rtm_activity_table_alias}.privacy <= 0) ";
417
if ( $user ) {
418
+ $where .= "OR (({$this->rtm_activity_table_alias}.privacy=20)";
419
+ $where .= " OR (a.user_id={$user} AND {$this->rtm_activity_table_alias}.privacy >= 40)";
420
if ( class_exists( 'BuddyPress' ) ) {
421
if ( bp_is_active( 'friends' ) ) {
422
$friendship = new RTMediaFriends();
423
$friends = $friendship->get_friends_cache( $user );
424
if ( isset( $friends ) && ! empty( $friends ) != "" ) {
425
+ $where .= " OR ({$this->rtm_activity_table_alias}.privacy=40 AND a.user_id IN ('" . implode( "','", $friends ) . "'))";
426
}
427
}
428
}
429
$where .= ')';
430
}
431
+
432
if ( strpos( $select_sql, "SELECT DISTINCT" ) === false ) {
433
$select_sql = str_replace( "SELECT", "SELECT DISTINCT", $select_sql );
434
}
435
+
436
+ $select_sql .= " ,{$this->rtm_activity_table_alias}.privacy ";
437
+
438
+ $from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID LEFT JOIN {$rtmedia_activity_model->table_name} {$this->rtm_activity_table_alias} ON ( a.id = {$this->rtm_activity_table_alias}.activity_id and ra.blog_id = '" . get_current_blog_id() . "' ) ";
439
+
440
+ // removed NOT EXISTS check for `rtmedia_privacy` activty meta value.
441
+ // check git history for more details ;)
442
+ $where_sql = $where_sql . " AND {$where}";
443
$newsql = "{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}";
444
} else {
445
$where .= " (m.max_privacy is NULL OR m.max_privacy <= 0) ";
473
return $newsql;
474
}
475
476
+ /**
477
+ * Hooked to `bp_activity_get_user_join_filter` filter. Get activity privacy field inside loop.
478
+ *
479
+ * Use only if current user has admin capability because for non admin users privacy field will be added in
480
+ * privacy filter query itself.
481
+ *
482
+ * @param $sql
483
+ * @param $select_sql
484
+ * @param $from_sql
485
+ * @param $where_sql
486
+ * @param $sort
487
+ * @param string $pag_sql
488
+ *
489
+ * @return string
490
+ */
491
+ function activity_privacy_sql_field( $sql, $select_sql, $from_sql, $where_sql, $sort, $pag_sql = '' ){
492
+ global $wpdb, $bp;
493
+
494
+ if( $this->can_use_rtm_ac_privacy() && is_rt_admin() ){
495
+ $rtmedia_activity_model = new RTMediaActivityModel();
496
+ if( strpos( $sql, $rtmedia_activity_model->table_name ) === false ){
497
+ $select_sql .= " ,{$this->rtm_activity_table_alias}.privacy ";
498
+ $from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID LEFT JOIN {$rtmedia_activity_model->table_name} {$this->rtm_activity_table_alias} ON ( a.id = {$this->rtm_activity_table_alias}.activity_id and ra.blog_id = '" . get_current_blog_id() . "' ) ";
499
+ $sql = "{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}";
500
+ }
501
+ }
502
+ return $sql;
503
+ }
504
+
505
+ /**
506
+ * Check if activity privacy migration is done or not.
507
+ *
508
+ * @return bool|mixed|void
509
+ */
510
+ function can_use_rtm_ac_privacy(){
511
+ return rtmedia_get_site_option( 'rtmedia_activity_done_upgrade' );
512
+ }
513
+
514
}
app/main/controllers/template/rt-template-functions.php CHANGED
@@ -1951,7 +1951,7 @@ function rtmedia_edit_media_privacy_ui() {
1951
//if context is group i.e editing a group media, dont show the privacy dropdown
1952
return false;
1953
}
1954
- $privacymodel = new RTMediaPrivacy();
1955
$privacy = $privacymodel->select_privacy_ui( $echo = false );
1956
if ( $privacy ) {
1957
return "<div class='rtmedia-edit-privacy rtm-field-wrap'><label for='privacy'>" . __( 'Privacy : ', 'buddypress-media' ) . "</label>" . $privacy . "</div>";
1951
//if context is group i.e editing a group media, dont show the privacy dropdown
1952
return false;
1953
}
1954
+ $privacymodel = new RTMediaPrivacy( false );
1955
$privacy = $privacymodel->select_privacy_ui( $echo = false );
1956
if ( $privacy ) {
1957
return "<div class='rtmedia-edit-privacy rtm-field-wrap'><label for='privacy'>" . __( 'Privacy : ', 'buddypress-media' ) . "</label>" . $privacy . "</div>";
app/main/controllers/upload/RTMediaUploadView.php CHANGED
@@ -64,7 +64,7 @@ class RTMediaUploadView {
64
// if the context is group, then set the media privacy to public
65
$privacy = "<input type='hidden' name='privacy' value='0'/>";
66
} else {
67
- $up_privacy = new RTMediaPrivacy();
68
$up_privacy = $up_privacy->select_privacy_ui( false, 'rtSelectPrivacy' );
69
if ( $up_privacy ) {
70
$privacy = "<span> <label for='privacy'> <i class='dashicons dashicons-visibility rtmicon'></i> " . __( 'Privacy: ', 'buddypress-media' ) . "</label>" . $up_privacy . "</span>";
64
// if the context is group, then set the media privacy to public
65
$privacy = "<input type='hidden' name='privacy' value='0'/>";
66
} else {
67
+ $up_privacy = new RTMediaPrivacy( false );
68
$up_privacy = $up_privacy->select_privacy_ui( false, 'rtSelectPrivacy' );
69
if ( $up_privacy ) {
70
$privacy = "<span> <label for='privacy'> <i class='dashicons dashicons-visibility rtmicon'></i> " . __( 'Privacy: ', 'buddypress-media' ) . "</label>" . $up_privacy . "</span>";
index.php CHANGED
@@ -4,7 +4,7 @@
4
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
Plugin URI: http://rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
6
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!
7
- Version: 3.9.5
8
Author: rtCamp
9
Text Domain: buddypress-media
10
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -117,6 +117,39 @@ spl_autoload_register( 'rtmedia_autoloader' );
117
global $rtmedia;
118
$rtmedia = new RTMedia();
119
120
121
/*
122
* Look Ma! Very few includes! Next File: /app/main/RTMedia.php
4
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
Plugin URI: http://rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
6
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!
7
+ Version: 3.10
8
Author: rtCamp
9
Text Domain: buddypress-media
10
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
117
global $rtmedia;
118
$rtmedia = new RTMedia();
119
120
+ /**
121
+ * Integrated Freemius into rtMedia.
122
+ *
123
+ * @return Freemius
124
+ */
125
+ function rtmedia_fs() {
126
+ global $bm_fs;
127
+
128
+ if ( ! isset( $bm_fs ) ) {
129
+ // Include Freemius SDK.
130
+ require_once RTMEDIA_PATH . 'lib/freemius/start.php';
131
+
132
+ $bm_fs = fs_dynamic_init( array(
133
+ 'id' => '122',
134
+ 'slug' => 'buddypress-media',
135
+ 'public_key' => 'pk_3b5465cdde21c8ba24cd731b149a8',
136
+ 'is_premium' => false,
137
+ 'has_addons' => false,
138
+ 'has_paid_plans' => false,
139
+ 'menu' => array(
140
+ 'slug' => 'rtmedia-settings',
141
+ 'account' => false,
142
+ 'contact' => false,
143
+ 'support' => false,
144
+ ),
145
+ ) );
146
+ }
147
+
148
+ return $bm_fs;
149
+ }
150
+
151
+ // Init Freemius.
152
+ rtmedia_fs();
153
154
/*
155
* Look Ma! Very few includes! Next File: /app/main/RTMedia.php
languages/buddypress-media.mo CHANGED
Binary file
languages/buddypress-media.po CHANGED
@@ -2,2588 +2,2981 @@
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 3.9.3\n"
6
"Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
7
- "POT-Creation-Date: 2015-12-04 10:36:47+00:00\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=utf-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
12
"Last-Translator: rtMedia <rtmedia@rtcamp.com>\n"
13
"Language-Team: rtMedia <rtmedia@rtcamp.com>\n"
14
- "X-Generator: grunt-wp-i18n 0.5.3\n"
15
- "X-Poedit-KeywordsList: "
16
- "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
17
- "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
18
"Language: en\n"
19
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
- "X-Poedit-Country: United States\n"
21
"X-Poedit-SourceCharset: UTF-8\n"
22
"X-Poedit-Basepath: ../\n"
23
- "X-Poedit-SearchPath-0: .\n"
24
- "X-Poedit-Bookmarks: \n"
25
"X-Textdomain-Support: yes\n"
26
27
- #: app/admin/RTMediaAdmin.php:127
28
- msgid "View &#8220;%s&#8221;"
29
msgstr ""
30
31
- #: app/admin/RTMediaAdmin.php:127
32
- msgid "View"
33
msgstr ""
34
35
- #: app/admin/RTMediaAdmin.php:369
36
- msgid " You must"
37
msgstr ""
38
39
- #: app/admin/RTMediaAdmin.php:369
40
- msgid "update permalink structure"
41
msgstr ""
42
43
- #: app/admin/RTMediaAdmin.php:369
44
- msgid "to something other than the default for it to work."
45
msgstr ""
46
47
- #: app/admin/RTMediaAdmin.php:395
48
- msgid "rtMedia:"
49
msgstr ""
50
51
- #: app/admin/RTMediaAdmin.php:395
52
- msgid "Please update all premium add-ons that you have purchased from rtCamp from"
53
msgstr ""
54
55
- #: app/admin/RTMediaAdmin.php:395
56
- msgid "your account"
57
msgstr ""
58
59
- #: app/admin/RTMediaAdmin.php:395
60
- msgid "Dismiss"
61
msgstr ""
62
63
- #: app/admin/RTMediaAdmin.php:508
64
- msgid "rtMedia Pro is released"
65
msgstr ""
66
67
- #: app/admin/RTMediaAdmin.php:529
68
- msgid "Media Stats"
69
msgstr ""
70
71
- #: app/admin/RTMediaAdmin.php:556
72
- msgid "Usage Stats"
73
msgstr ""
74
75
- #: app/admin/RTMediaAdmin.php:565
76
- msgid "Total "
77
msgstr ""
78
79
- #: app/admin/RTMediaAdmin.php:573
80
- msgid "With Media"
81
msgstr ""
82
83
- #: app/admin/RTMediaAdmin.php:581
84
- msgid "Comments "
85
msgstr ""
86
87
- #: app/admin/RTMediaAdmin.php:589 app/main/controllers/media/RTMediaLike.php:19
88
- msgid "Likes"
89
msgstr ""
90
91
- #: app/admin/RTMediaAdmin.php:600
92
- msgid "rtMedia Links:"
93
msgstr ""
94
95
- #: app/admin/RTMediaAdmin.php:601
96
- msgid "Homepage"
97
msgstr ""
98
99
- #: app/admin/RTMediaAdmin.php:602
100
- msgid "Free Support"
101
msgstr ""
102
103
- #: app/admin/RTMediaAdmin.php:603
104
- msgid "Premium Addons"
105
msgstr ""
106
107
- #: app/admin/RTMediaAdmin.php:619
108
- msgid "Right Now in rtMedia"
109
msgstr ""
110
111
- #: app/admin/RTMediaAdmin.php:673 app/admin/RTMediaAdmin.php:882
112
- msgid "Regenerate Thumbnail"
113
msgstr ""
114
115
- #: app/admin/RTMediaAdmin.php:714 app/admin/RTMediaAdmin.php:1368
116
- #: app/admin/RTMediaAdmin.php:1369
117
- msgid "rtMedia"
118
msgstr ""
119
120
- #: app/admin/RTMediaAdmin.php:721 app/admin/RTMediaAdmin.php:724
121
- #: app/admin/RTMediaAdmin.php:870 app/admin/RTMediaAdmin.php:1398
122
- msgid "Settings"
123
msgstr ""
124
125
- #: app/admin/RTMediaAdmin.php:732 app/admin/RTMediaAdmin.php:735
126
- #: app/admin/RTMediaAdmin.php:871 app/admin/RTMediaAdmin.php:1402
127
- msgid "Addons"
128
msgstr ""
129
130
- #: app/admin/RTMediaAdmin.php:743 app/admin/RTMediaAdmin.php:746
131
- #: app/admin/RTMediaAdmin.php:872 app/admin/RTMediaAdmin.php:1414
132
- #: app/helper/RTMediaSettings.php:208 app/helper/RTMediaSupport.php:51
133
- #: app/helper/RTMediaSupport.php:52
134
- msgid "Support"
135
msgstr ""
136
137
- #: app/admin/RTMediaAdmin.php:754 app/admin/RTMediaAdmin.php:757
138
- #: app/admin/RTMediaAdmin.php:873 app/admin/RTMediaAdmin.php:1406
139
- msgid "Themes"
140
msgstr ""
141
142
- #: app/admin/RTMediaAdmin.php:765 app/admin/RTMediaAdmin.php:768
143
- #: app/admin/RTMediaAdmin.php:874 app/admin/RTMediaAdmin.php:1410
144
- msgid "Hire Us"
145
msgstr ""
146
147
- #: app/admin/RTMediaAdmin.php:777 app/admin/RTMediaAdmin.php:780
148
- #: app/admin/RTMediaAdmin.php:876 app/admin/RTMediaAdmin.php:1422
149
- msgid "Licenses"
150
msgstr ""
151
152
- #: app/admin/RTMediaAdmin.php:831
153
- msgid "ON"
154
msgstr ""
155
156
- #: app/admin/RTMediaAdmin.php:832
157
- msgid "OFF"
158
msgstr ""
159
160
- #: app/admin/RTMediaAdmin.php:838
161
- msgid "Please do not refresh this page."
162
msgstr ""
163
164
- #: app/admin/RTMediaAdmin.php:839
165
- msgid ""
166
- "Something went wrong. Please <a href "
167
- "onclick=\"location.reload();\">refresh</a> page."
168
msgstr ""
169
170
- #: app/admin/RTMediaAdmin.php:840
171
- msgid "This will subscribe you to the free plan."
172
msgstr ""
173
174
- #: app/admin/RTMediaAdmin.php:841
175
- msgid "Are you sure you want to disable the encoding service?"
176
msgstr ""
177
178
- #: app/admin/RTMediaAdmin.php:842
179
- msgid "Are you sure you want to enable the encoding service?"
180
msgstr ""
181
182
- #: app/admin/RTMediaAdmin.php:882
183
- msgid "Regen. Thumbnail "
184
msgstr ""
185
186
- #: app/admin/RTMediaAdmin.php:900 app/admin/RTMediaAdmin.php:1879
187
- msgid "Regenerate Video Thumbnails"
188
msgstr ""
189
190
- #: app/admin/RTMediaAdmin.php:918
191
- msgid "Regenerate Pending Thumbnails"
192
msgstr ""
193
194
- #: app/admin/RTMediaAdmin.php:928
195
- msgid "Total Videos"
196
msgstr ""
197
198
- #: app/admin/RTMediaAdmin.php:931
199
- msgid "Sent of regenerate thumbails"
200
msgstr ""
201
202
- #: app/admin/RTMediaAdmin.php:933
203
- msgid "Fail to regenerate thumbails"
204
msgstr ""
205
206
- #: app/admin/RTMediaAdmin.php:972
207
- msgid "Regenerate Video Thumbnails Done"
208
msgstr ""
209
210
- #: app/admin/RTMediaAdmin.php:1016
211
- msgid ""
212
- "You have %s videos without thumbnails. Click <a href='%s'> here </a> to "
213
- "generate thumbnails. <a href='#' "
214
- "onclick='rtmedia_hide_video_thumb_notice()' style='float:right'>Hide</a>"
215
msgstr ""
216
217
- #: app/admin/RTMediaAdmin.php:1094
218
- msgid "not a video ..."
219
msgstr ""
220
221
- #: app/admin/RTMediaAdmin.php:1259
222
- msgid "Empowering The Web With WordPress"
223
msgstr ""
224
225
- #: app/admin/RTMediaAdmin.php:1279
226
- msgid "Settings saved successfully!"
227
msgstr ""
228
229
- #: app/admin/RTMediaAdmin.php:1282 app/admin/RTMediaAdmin.php:1305
230
- msgid "Save Settings"
231
msgstr ""
232
233
- #: app/admin/RTMediaAdmin.php:1504 app/admin/RTMediaAdmin.php:1505
234
- msgid "Display"
235
msgstr ""
236
237
- #: app/admin/RTMediaAdmin.php:1513
238
- msgid "rtMedia BuddyPress"
239
msgstr ""
240
241
- #: app/admin/RTMediaAdmin.php:1514
242
- msgid "BuddyPress"
243
msgstr ""
244
245
- #: app/admin/RTMediaAdmin.php:1522
246
- msgid "rtMedia Types"
247
msgstr ""
248
249
- #: app/admin/RTMediaAdmin.php:1523
250
- msgid "Types"
251
msgstr ""
252
253
- #: app/admin/RTMediaAdmin.php:1530
254
- msgid "rtMedia Sizes"
255
msgstr ""
256
257
- #: app/admin/RTMediaAdmin.php:1531
258
- msgid "Media Sizes"
259
msgstr ""
260
261
- #: app/admin/RTMediaAdmin.php:1538
262
- msgid "rtMedia Privacy"
263
msgstr ""
264
265
- #: app/admin/RTMediaAdmin.php:1539
266
- #: app/main/controllers/privacy/RTMediaPrivacy.php:310
267
- msgid "Privacy"
268
msgstr ""
269
270
- #: app/admin/RTMediaAdmin.php:1545
271
- msgid "rtMedia Custom CSS"
272
msgstr ""
273
274
- #: app/admin/RTMediaAdmin.php:1546
275
- msgid "Custom CSS"
276
msgstr ""
277
278
- #: app/admin/RTMediaAdmin.php:1555 app/admin/RTMediaAdmin.php:1556
279
- msgid "Other Settings"
280
msgstr ""
281
282
- #: app/admin/RTMediaAdmin.php:1651
283
- msgid "I use @rtMediaWP http://rt.cx/rtmedia on %s"
284
msgstr ""
285
286
- #: app/admin/RTMediaAdmin.php:1653
287
- msgid "Post to Twitter Now"
288
msgstr ""
289
290
- #: app/admin/RTMediaAdmin.php:1653
291
- msgid "Post to Twitter"
292
msgstr ""
293
294
- #: app/admin/RTMediaAdmin.php:1654
295
- msgid "Share on Facebook Now"
296
msgstr ""
297
298
- #: app/admin/RTMediaAdmin.php:1654
299
- msgid "Share on Facebook"
300
msgstr ""
301
302
- #: app/admin/RTMediaAdmin.php:1655
303
- msgid "Rate rtMedia on Wordpress.org"
304
msgstr ""
305
306
- #: app/admin/RTMediaAdmin.php:1655
307
- msgid "Rate on Wordpress.org"
308
msgstr ""
309
310
- #: app/admin/RTMediaAdmin.php:1656
311
- msgid "Subscribe to our Feeds"
312
msgstr ""
313
314
- #: app/admin/RTMediaAdmin.php:1659
315
- msgid "Spread the Word"
316
msgstr ""
317
318
- #: app/admin/RTMediaAdmin.php:1665 app/admin/RTMediaAdmin.php:1672
319
- msgid "Subscribe"
320
msgstr ""
321
322
- #: app/admin/RTMediaAdmin.php:1694
323
- msgid "Thank you for your time."
324
msgstr ""
325
326
- #: app/admin/RTMediaAdmin.php:1706
327
- msgid "Premium Add-ons"
328
msgstr ""
329
330
- #: app/admin/RTMediaAdmin.php:1722
331
- msgid ""
332
- "You have images enabled on rtMedia but your network allowed filetypes do "
333
- "not permit uploading of %s. Click <a href=\"%s\">here</a> to change your "
334
- "settings manually."
335
msgstr ""
336
337
- #: app/admin/RTMediaAdmin.php:1723 app/admin/RTMediaAdmin.php:1734
338
- #: app/admin/RTMediaAdmin.php:1743
339
- msgid "Recommended"
340
msgstr ""
341
342
- #: app/admin/RTMediaAdmin.php:1723 app/admin/RTMediaAdmin.php:1734
343
- #: app/admin/RTMediaAdmin.php:1743
344
- msgid "Update Network Settings Automatically"
345
msgstr ""
346
347
- #: app/admin/RTMediaAdmin.php:1733
348
- msgid ""
349
- "You have video enabled on BuddyPress Media but your network allowed "
350
- "filetypes do not permit uploading of mp4. Click <a href=\"%s\">here</a> to "
351
- "change your settings manually."
352
msgstr ""
353
354
- #: app/admin/RTMediaAdmin.php:1742
355
- msgid ""
356
- "You have audio enabled on BuddyPress Media but your network allowed "
357
- "filetypes do not permit uploading of mp3. Click <a href=\"%s\">here</a> to "
358
- "change your settings manually."
359
msgstr ""
360
361
- #: app/admin/RTMediaAdmin.php:1757
362
- msgid "Network settings updated successfully."
363
msgstr ""
364
365
- #: app/admin/RTMediaAdmin.php:1863
366
- msgid "Video is sent to generate thumbnails."
367
msgstr ""
368
369
- #: app/admin/RTMediaAdmin.php:1865
370
- msgid "Video cannot be sent to generate thumbnails."
371
msgstr ""
372
373
- #: app/admin/RTMediaAdmin.php:1944
374
- msgid ""
375
- "Please update rtMedia template files if you have overridden the default "
376
- "rtMedia templates in your theme. If not, you can ignore and hide this "
377
- "notice."
378
msgstr ""
379
380
- #: app/admin/RTMediaAdmin.php:1944
381
- #: app/importers/RTMediaMediaSizeImporter.php:66
382
- #: app/importers/RTMediaMigration.php:64
383
- msgid "Hide"
384
msgstr ""
385
386
- #: app/admin/RTMediaFormHandler.php:65 app/admin/RTMediaFormHandler.php:107
387
- #: app/admin/RTMediaFormHandler.php:202 app/admin/RTMediaFormHandler.php:237
388
- msgid "Please provide a \"value\" in the argument."
389
msgstr ""
390
391
- #: app/admin/RTMediaFormHandler.php:150
392
- msgid "Need to specify atleast two radios, else use a checkbox instead"
393
msgstr ""
394
395
- #: app/admin/RTMediaFormHandler.php:285 templates/media/album-gallery.php:56
396
- #: templates/media/media-gallery.php:65
397
- msgid "Load More"
398
msgstr ""
399
400
- #: app/admin/RTMediaFormHandler.php:286
401
- msgid "Pagination"
402
msgstr ""
403
404
- #: app/admin/RTMediaFormHandler.php:298
405
- msgid "Allow user to comment on uploaded media"
406
msgstr ""
407
408
- #: app/admin/RTMediaFormHandler.php:303
409
msgid ""
410
- "This will display the comment form and comment listing on single media "
411
- "pages as well as inside lightbox (if lightbox is enabled)."
412
msgstr ""
413
414
- #: app/admin/RTMediaFormHandler.php:308
415
- msgid "Use lightbox to display media"
416
msgstr ""
417
418
- #: app/admin/RTMediaFormHandler.php:313
419
- msgid "View single media in facebook style lightbox."
420
msgstr ""
421
422
- #: app/admin/RTMediaFormHandler.php:318
423
- msgid "Number of media per page"
424
msgstr ""
425
426
- #: app/admin/RTMediaFormHandler.php:324
427
- msgid "Number of media items you want to show per page on front end."
428
msgstr ""
429
430
- #: app/admin/RTMediaFormHandler.php:330
431
- msgid "Media display pagination option"
432
msgstr ""
433
434
- #: app/admin/RTMediaFormHandler.php:336
435
- msgid "Choose whether you want the load more button or pagination buttons."
436
msgstr ""
437
438
- #: app/admin/RTMediaFormHandler.php:341
439
- msgid "Enable"
440
msgstr ""
441
442
- #: app/admin/RTMediaFormHandler.php:341
443
- msgid "Cascading grid layout"
444
msgstr ""
445
446
- #: app/admin/RTMediaFormHandler.php:346
447
- msgid "If you enable masonry view, it is advisable to"
448
msgstr ""
449
450
- #: app/admin/RTMediaFormHandler.php:346
451
- msgid "for masonry view."
452
msgstr ""
453
454
- #: app/admin/RTMediaFormHandler.php:350
455
- msgid "You might need to"
456
msgstr ""
457
458
- #: app/admin/RTMediaFormHandler.php:350
459
- msgid "change thumbnail size"
460
msgstr ""
461
462
- #: app/admin/RTMediaFormHandler.php:350
463
- msgid "and uncheck the crop box for thumbnails."
464
msgstr ""
465
466
- #: app/admin/RTMediaFormHandler.php:350
467
- msgid ""
468
- "To set gallery for fixed width, set image height to 0 and width as per your "
469
- "requirement and vice-versa."
470
msgstr ""
471
472
- #: app/admin/RTMediaFormHandler.php:353
473
- msgid "Enable Direct Upload"
474
msgstr ""
475
476
- #: app/admin/RTMediaFormHandler.php:358
477
- msgid "Uploading media directly as soon as it gets selected."
478
msgstr ""
479
480
- #: app/admin/RTMediaFormHandler.php:384
481
- msgid "Single Media View"
482
msgstr ""
483
484
- #: app/admin/RTMediaFormHandler.php:385
485
- msgid "List Media View"
486
msgstr ""
487
488
- #: app/admin/RTMediaFormHandler.php:386
489
- msgid "Masonry View"
490
msgstr ""
491
492
- #: app/admin/RTMediaFormHandler.php:387
493
- msgid "Direct Upload"
494
msgstr ""
495
496
- #: app/admin/RTMediaFormHandler.php:405
497
- msgid "Allow usage data tracking"
498
msgstr ""
499
500
- #: app/admin/RTMediaFormHandler.php:410
501
- msgid ""
502
- "To make rtMedia better compatible with your sites, you can help the rtMedia "
503
- "team learn what themes and plugins you are using. No private information "
504
- "about your setup will be sent during tracking."
505
msgstr ""
506
507
- #: app/admin/RTMediaFormHandler.php:414
508
- msgid "Admin bar menu integration"
509
msgstr ""
510
511
- #: app/admin/RTMediaFormHandler.php:419
512
- msgid ""
513
- "Add rtMedia menu to WordPress admin bar for easy access to settings and "
514
- "moderation page (if enabled)."
515
msgstr ""
516
517
- #: app/admin/RTMediaFormHandler.php:424
518
- msgid "Add a link to rtMedia in footer"
519
msgstr ""
520
521
- #: app/admin/RTMediaFormHandler.php:429
522
- msgid "Help us promote rtMedia."
523
msgstr ""
524
525
- #: app/admin/RTMediaFormHandler.php:434
526
- msgid "Also add my affiliate-id to rtMedia footer link"
527
msgstr ""
528
529
- #: app/admin/RTMediaFormHandler.php:439
530
msgid ""
531
- "Add your affiliate-id along with footer link and get rewarded by our "
532
- "affiliation program."
533
msgstr ""
534
535
- #: app/admin/RTMediaFormHandler.php:443
536
- msgid "Signup for"
537
msgstr ""
538
539
- #: app/admin/RTMediaFormHandler.php:443
540
- msgid "affiliate program"
541
msgstr ""
542
543
- #: app/admin/RTMediaFormHandler.php:443 app/admin/RTMediaFormHandler.php:454
544
- #: app/helper/RTMediaSupport.php:363
545
- msgid "here"
546
msgstr ""
547
548
- #: app/admin/RTMediaFormHandler.php:446
549
- msgid "Enable JSON API"
550
msgstr ""
551
552
- #: app/admin/RTMediaFormHandler.php:451
553
- msgid ""
554
- "This will allow handling API requests for rtMedia sent through any mobile "
555
- "app."
556
msgstr ""
557
558
- #: app/admin/RTMediaFormHandler.php:454
559
- msgid "You can refer to the API document from"
560
msgstr ""
561
562
- #: app/admin/RTMediaFormHandler.php:477
563
- msgid "Admin Settings"
564
msgstr ""
565
566
- #: app/admin/RTMediaFormHandler.php:478
567
- msgid "API Settings"
568
msgstr ""
569
570
- #: app/admin/RTMediaFormHandler.php:479
571
- msgid "Miscellaneous"
572
msgstr ""
573
574
- #: app/admin/RTMediaFormHandler.php:480
575
- msgid "Footer Link"
576
msgstr ""
577
578
- #: app/admin/RTMediaFormHandler.php:560
579
- msgid "Media Types Settings"
580
msgstr ""
581
582
- #: app/admin/RTMediaFormHandler.php:568 app/helper/RTMediaSettings.php:324
583
- msgid "Media Type"
584
msgstr ""
585
586
- #: app/admin/RTMediaFormHandler.php:573
587
- msgid "Allow Upload"
588
msgstr ""
589
590
- #: app/admin/RTMediaFormHandler.php:575
591
- msgid "Allows you to upload a particular media type on your post."
592
msgstr ""
593
594
- #: app/admin/RTMediaFormHandler.php:583
595
- msgid "Set Featured"
596
msgstr ""
597
598
- #: app/admin/RTMediaFormHandler.php:585
599
- msgid "Place a specific media as a featured content on the post."
600
msgstr ""
601
602
- #: app/admin/RTMediaFormHandler.php:627
603
- msgid "File Extensions"
604
msgstr ""
605
606
- #: app/admin/RTMediaFormHandler.php:715
607
- msgid "Media Size Settings"
608
msgstr ""
609
610
- #: app/admin/RTMediaFormHandler.php:720
611
- msgid "Category"
612
msgstr ""
613
614
- #: app/admin/RTMediaFormHandler.php:721
615
- msgid "Entity"
616
msgstr ""
617
618
- #: app/admin/RTMediaFormHandler.php:722
619
- msgid "Width"
620
msgstr ""
621
622
- #: app/admin/RTMediaFormHandler.php:723
623
- msgid "Height"
624
msgstr ""
625
626
- #: app/admin/RTMediaFormHandler.php:724
627
- msgid "Crop"
628
msgstr ""
629
630
- #: app/admin/RTMediaFormHandler.php:777
631
- msgid "Number of thumbnails to generate on video upload"
632
msgstr ""
633
634
- #: app/admin/RTMediaFormHandler.php:783
635
- msgid ""
636
- " If you choose more than 1 thumbnail, your users will be able to change the "
637
- "thumbnail by going to video 'edit' section. Maximum value is 10."
638
msgstr ""
639
640
- #: app/admin/RTMediaFormHandler.php:791
641
- msgid "Encoding Settings"
642
msgstr ""
643
644
- #: app/admin/RTMediaFormHandler.php:798
645
- msgid "JPEG/JPG image quality (1-100)"
646
msgstr ""
647
648
- #: app/admin/RTMediaFormHandler.php:804
649
- msgid "Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality."
650
msgstr ""
651
652
- #: app/admin/RTMediaFormHandler.php:812
653
- msgid "Image Quality"
654
msgstr ""
655
656
- #: app/admin/RTMediaFormHandler.php:834
657
- msgid "Custom CSS settings"
658
msgstr ""
659
660
- #: app/admin/RTMediaFormHandler.php:853
661
- msgid "rtMedia default styles"
662
msgstr ""
663
664
- #: app/admin/RTMediaFormHandler.php:859
665
msgid ""
666
- "Load default rtMedia styles. You need to write your own style for rtMedia "
667
- "if you disable it."
668
msgstr ""
669
670
- #: app/admin/RTMediaFormHandler.php:864
671
- msgid "Paste your CSS code"
672
msgstr ""
673
674
- #: app/admin/RTMediaFormHandler.php:870
675
- msgid "Custom rtMedia CSS container"
676
msgstr ""
677
678
- #: app/admin/RTMediaFormHandler.php:893
679
- msgid "Enable privacy"
680
msgstr ""
681
682
- #: app/admin/RTMediaFormHandler.php:899
683
- msgid "Enable privacy in rtMedia"
684
msgstr ""
685
686
- #: app/admin/RTMediaFormHandler.php:904
687
- msgid "Default privacy"
688
msgstr ""
689
690
- #: app/admin/RTMediaFormHandler.php:910
691
- msgid "Set default privacy for media"
692
msgstr ""
693
694
- #: app/admin/RTMediaFormHandler.php:916
695
- msgid "Allow users to set privacy for their content"
696
msgstr ""
697
698
- #: app/admin/RTMediaFormHandler.php:921
699
- msgid ""
700
- "If you choose this, users will be able to change privacy of their own "
701
- "uploads."
702
msgstr ""
703
704
- #: app/admin/RTMediaFormHandler.php:925
705
- msgid "For group uploads, BuddyPress groups privacy is used."
706
msgstr ""
707
708
- #: app/admin/RTMediaFormHandler.php:967
709
- msgid "Enable media in profile"
710
msgstr ""
711
712
- #: app/admin/RTMediaFormHandler.php:972
713
- msgid "Enable Media on BuddyPress Profile"
714
msgstr ""
715
716
- #: app/admin/RTMediaFormHandler.php:977
717
- msgid "Enable media in group"
718
msgstr ""
719
720
- #: app/admin/RTMediaFormHandler.php:982
721
- msgid "Enable Media on BuddyPress Groups"
722
msgstr ""
723
724
- #: app/admin/RTMediaFormHandler.php:987
725
- msgid "Allow upload from activity stream"
726
msgstr ""
727
728
- #: app/admin/RTMediaFormHandler.php:992
729
- msgid "Allow upload using status update box present on activity stream page"
730
msgstr ""
731
732
- #: app/admin/RTMediaFormHandler.php:998
733
- msgid "Number of media items to show in activity stream"
734
msgstr ""
735
736
- #: app/admin/RTMediaFormHandler.php:1003
737
msgid ""
738
- "With bulk uploads activity, the stream may get flooded. You can control the "
739
- "maximum number of media items or files per activity. This limit will not "
740
- "affect the actual number of uploads. This is only for display. <em>0</em> "
741
- "means unlimited."
742
msgstr ""
743
744
- #: app/admin/RTMediaFormHandler.php:1010
745
- msgid "Enable media notification"
746
msgstr ""
747
748
- #: app/admin/RTMediaFormHandler.php:1015
749
- msgid ""
750
- "This will enable notifications to media authors for media likes and "
751
- "comments."
752
msgstr ""
753
754
- #: app/admin/RTMediaFormHandler.php:1021
755
- msgid "Organize media into albums"
756
msgstr ""
757
758
- #: app/admin/RTMediaFormHandler.php:1027
759
- msgid ""
760
- "This will add 'album' tab to BuddyPress profile and group depending on the "
761
- "^above^ settings."
762
msgstr ""
763
764
- #: app/helper/RTMediaAddon.php:79 app/helper/RTMediaAddon.php:80
765
- msgid "Plugins"
766
msgstr ""
767
768
- #: app/helper/RTMediaAddon.php:87 app/helper/RTMediaAddon.php:88
769
- msgid "Audio/Video Encoding"
770
msgstr ""
771
772
- #: app/helper/RTMediaAddon.php:111
773
- msgid "SEO"
774
msgstr ""
775
776
- #: app/helper/RTMediaAddon.php:114
777
msgid ""
778
- "Generate an XML sitemap for all the public media files uploaded via rtMedia "
779
- "plugin. These sitemaps can be useful to index search engine to improve "
780
- "website SEO."
781
msgstr ""
782
783
- #: app/helper/RTMediaAddon.php:121
784
- msgid "Moderation"
785
msgstr ""
786
787
- #: app/helper/RTMediaAddon.php:124
788
msgid ""
789
- "Report media if they find offensive. Set number of reports to automatically "
790
- "take down media from site."
791
msgstr ""
792
793
- #: app/helper/RTMediaAddon.php:132
794
- msgid "Custom Attributes"
795
msgstr ""
796
797
- #: app/helper/RTMediaAddon.php:135
798
- msgid ""
799
- "Categories media based on attributes. Site owner need to create attributes. "
800
- "When user upload a media, can select in which attribute that media can add."
801
msgstr ""
802
803
- #: app/helper/RTMediaAddon.php:143
804
- msgid "Docs and Other files"
805
msgstr ""
806
807
- #: app/helper/RTMediaAddon.php:146
808
- msgid ""
809
- "Allow users to upload documents and other file type using rtMedia upload "
810
- "box. This addon support all the file extensions which WordPress allows."
811
msgstr ""
812
813
- #: app/helper/RTMediaAddon.php:154
814
- msgid "Default Albums"
815
msgstr ""
816
817
- #: app/helper/RTMediaAddon.php:157
818
msgid ""
819
- "This plugin allows the creation of multiple default albums for rtMedia "
820
- "uploads. One of these albums can be set as the default global album."
821
msgstr ""
822
823
- #: app/helper/RTMediaAddon.php:165
824
- msgid "Podcast (RSS and Atom feeds)"
825
msgstr ""
826
827
- #: app/helper/RTMediaAddon.php:168
828
msgid ""
829
- "Read rtMedia uploads from iTunes as well as any RSS feed-reader/podcasting "
830
- "software."
831
msgstr ""
832
833
- #: app/helper/RTMediaAddon.php:176
834
- msgid "Playlists"
835
msgstr ""
836
837
- #: app/helper/RTMediaAddon.php:179
838
msgid ""
839
- "Audio can be grouped into playlists. Once the user upload any audio file, "
840
- "can create a playlist or use existing one to manage audio files."
841
msgstr ""
842
843
- #: app/helper/RTMediaAddon.php:187
844
- msgid "Favorites"
845
msgstr ""
846
847
- #: app/helper/RTMediaAddon.php:190
848
msgid ""
849
- "Users can create their list of favorite media in which they can add media "
850
- "previously uploaded by any user."
851
msgstr ""
852
853
- #: app/helper/RTMediaAddon.php:198
854
- msgid "Restrictions"
855
msgstr ""
856
857
- #: app/helper/RTMediaAddon.php:201
858
msgid ""
859
- "Site admin can set an upload limit on the basis of time span, file size "
860
- "(MB) and number of files user can upload."
861
msgstr ""
862
863
- #: app/helper/RTMediaAddon.php:209
864
- msgid "bbPress Attachments"
865
msgstr ""
866
867
- #: app/helper/RTMediaAddon.php:212
868
- msgid "Attach media files to bbPress forum topics and replies."
869
msgstr ""
870
871
- #: app/helper/RTMediaAddon.php:220
872
- msgid "WordPress Sitewide Gallery"
873
msgstr ""
874
875
- #: app/helper/RTMediaAddon.php:223
876
msgid ""
877
- "Site admin can create and upload media into WordPress album. Create album "
878
- "without being dependent on BuddyPress."
879
msgstr ""
880
881
- #: app/helper/RTMediaAddon.php:231
882
- msgid "WordPress Comment Attachments"
883
msgstr ""
884
885
- #: app/helper/RTMediaAddon.php:234
886
msgid ""
887
- "Allow users to upload a media file in WordPress comment attachment box. It "
888
- "will display a thumbnail of attached file."
889
msgstr ""
890
891
- #: app/helper/RTMediaAddon.php:242
892
- msgid "Social Sharing"
893
msgstr ""
894
895
- #: app/helper/RTMediaAddon.php:245
896
msgid ""
897
- "Share uploaded media on social network sites like Facebook, twitter, "
898
- "linkedin, Google +. This addon integrate with rtSocial plugin."
899
msgstr ""
900
901
- #: app/helper/RTMediaAddon.php:253
902
- msgid "Sidebar Widgets"
903
msgstr ""
904
905
- #: app/helper/RTMediaAddon.php:256
906
msgid ""
907
- "This addon provide widgets to upload media and display gallery for rtMedia "
908
- "plugin."
909
msgstr ""
910
911
- #: app/helper/RTMediaAddon.php:264
912
- msgid "5 Star Ratings"
913
msgstr ""
914
915
- #: app/helper/RTMediaAddon.php:267
916
msgid ""
917
- "Display 5 star rating for all the uploaded media. User can rate the media "
918
- "files from 1 to 5 star."
919
msgstr ""
920
921
- #: app/helper/RTMediaAddon.php:275
922
- msgid "Edit Mp3 Info (ID3 Tags)"
923
msgstr ""
924
925
- #: app/helper/RTMediaAddon.php:278
926
- msgid "Allow user to edit MP3 FIle Audio tags (ID 3 tags)."
927
msgstr ""
928
929
- #: app/helper/RTMediaAddon.php:286
930
- msgid "Media Sorting"
931
msgstr ""
932
933
- #: app/helper/RTMediaAddon.php:289
934
msgid ""
935
- "Sort uploaded media based on file size, ascending/descending title, upload "
936
- "date of media."
937
msgstr ""
938
939
- #: app/helper/RTMediaAddon.php:297
940
- msgid "Bulk Edit"
941
msgstr ""
942
943
- #: app/helper/RTMediaAddon.php:300
944
msgid ""
945
- "Bulk edit option will allow user to quickly select media files and do "
946
- "required actions like move files from one album to another, change "
947
- "attributes, change privacy, delete files."
948
msgstr ""
949
950
- #: app/helper/RTMediaAddon.php:308
951
- msgid "BuddyPress Profile Picture"
952
msgstr ""
953
954
- #: app/helper/RTMediaAddon.php:311
955
- msgid "User can easily set his/her profile picture from media uploaded via rtMedia."
956
msgstr ""
957
958
- #: app/helper/RTMediaAddon.php:319
959
- msgid "Album Cover Art"
960
msgstr ""
961
962
- #: app/helper/RTMediaAddon.php:322
963
- msgid "User can easily set any of the image of the album as album cover photo"
964
msgstr ""
965
966
- #: app/helper/RTMediaAddon.php:330
967
- msgid "Direct Download Link"
968
msgstr ""
969
970
- #: app/helper/RTMediaAddon.php:333
971
- msgid ""
972
- "User can download media from website. Site owner can restrict which media "
973
- "type can be allowed to download."
974
msgstr ""
975
976
- #: app/helper/RTMediaAddon.php:341
977
- msgid "Upload by URL"
978
msgstr ""
979
980
- #: app/helper/RTMediaAddon.php:344
981
- msgid ""
982
- "Users do not need to download media files from a URL and then upload it "
983
- "with rtMedia. Just provide the absolute URL for the media and it will "
984
- "upload on site."
985
msgstr ""
986
987
- #: app/helper/RTMediaAddon.php:352
988
- msgid "Media Likes"
989
msgstr ""
990
991
- #: app/helper/RTMediaAddon.php:355
992
- msgid ""
993
- "This add-on let you know who liked the media. User can also see which media "
994
- "they liked under their profile."
995
msgstr ""
996
997
- #: app/helper/RTMediaAddon.php:363
998
- msgid "Activity URL Preview"
999
msgstr ""
1000
1001
- #: app/helper/RTMediaAddon.php:366
1002
- msgid ""
1003
- "This addon provides a preview of the URL that is shared in BuddyPress "
1004
- "activity. Just enter the URL you want to share on your site and see a "
1005
- "preview of it before it is shared."
1006
msgstr ""
1007
1008
- #: app/helper/RTMediaAddon.php:374
1009
- msgid "View Counter"
1010
msgstr ""
1011
1012
- #: app/helper/RTMediaAddon.php:377
1013
- msgid ""
1014
- "Enable view count for all the uploaded media. Whenever user open that media "
1015
- "file in lightbox or in single media view, that view count will be "
1016
- "calculated and display next to media file."
1017
msgstr ""
1018
1019
- #: app/helper/RTMediaAddon.php:385
1020
- msgid "Shortcode Generator"
1021
msgstr ""
1022
1023
- #: app/helper/RTMediaAddon.php:388
1024
- msgid ""
1025
- "This add-on will add shortcode generator button in WordPress post and page "
1026
- "editor for all the rtMedia shortcodes."
1027
msgstr ""
1028
1029
- #: app/helper/RTMediaAddon.php:396
1030
- msgid "Album Privacy"
1031
msgstr ""
1032
1033
- #: app/helper/RTMediaAddon.php:399
1034
- msgid ""
1035
- "Set album privacy when user create an album or change album privacy when "
1036
- "editing existing albums. The privacy levels are Public, Logged in user, "
1037
- "Friends and Private."
1038
msgstr ""
1039
1040
- #: app/helper/RTMediaAddon.php:407
1041
- msgid "BuddyPress Group Media Control"
1042
msgstr ""
1043
1044
- #: app/helper/RTMediaAddon.php:410
1045
- msgid "This add-on allows group owner to manage media upload feature group wise."
1046
msgstr ""
1047
1048
- #: app/helper/RTMediaAddon.php:418
1049
- msgid "Set Custom Thumbnail for Audio/Video"
1050
msgstr ""
1051
1052
- #: app/helper/RTMediaAddon.php:421
1053
- msgid ""
1054
- "Allow media owner to change the thumbnail of uploaded audio/video files. "
1055
- "The File Upload box will be provided to change media thumbnail."
1056
msgstr ""
1057
1058
- #: app/helper/RTMediaAddon.php:429
1059
- msgid "myCRED"
1060
msgstr ""
1061
1062
- #: app/helper/RTMediaAddon.php:432
1063
- msgid ""
1064
- "This plugin integrates rtMedia and myCRED plugin, users can be can award "
1065
- "virtual points for various rtMedia activities, like media upload, likes, "
1066
- "deleted etc."
1067
msgstr ""
1068
1069
- #: app/helper/RTMediaAddon.php:440
1070
- msgid "Upload terms"
1071
msgstr ""
1072
1073
- #: app/helper/RTMediaAddon.php:443
1074
- msgid ""
1075
- "User must have to check the terms and conditions checkbox before uploading "
1076
- "the media."
1077
- msgstr ""
1078
1079
- #: app/helper/RTMediaAddon.php:451
1080
- msgid "CubePoints"
1081
msgstr ""
1082
1083
- #: app/helper/RTMediaAddon.php:454
1084
- msgid ""
1085
- "If you are using CubePoints plugin on your website than rtMedia CubePoint "
1086
- "add-on can be integrate with that plugin to setup point management system "
1087
- "for rtMedia related activities."
1088
msgstr ""
1089
1090
- #: app/helper/RTMediaAddon.php:462
1091
- msgid "Social Sync"
1092
msgstr ""
1093
1094
- #: app/helper/RTMediaAddon.php:465
1095
- msgid "rtMedia Social Sync allows you to import media from your Facebook account."
1096
msgstr ""
1097
1098
- #: app/helper/RTMediaAddon.php:473
1099
- msgid "Photo Watermark"
1100
msgstr ""
1101
1102
- #: app/helper/RTMediaAddon.php:476
1103
- msgid ""
1104
- "rtMedia Photo Watermark let you add watermark on your images uploaded using "
1105
- "rtMedia."
1106
msgstr ""
1107
1108
- #: app/helper/RTMediaAddon.php:484
1109
- msgid "Photo Tagging"
1110
msgstr ""
1111
1112
- #: app/helper/RTMediaAddon.php:487
1113
msgid ""
1114
- "rtMedia Photo Tagging enable users to tag their friends on photos uploaded "
1115
- "using rtMedia."
1116
msgstr ""
1117
1118
- #: app/helper/RTMediaAddon.php:495
1119
- msgid "Photo Filters"
1120
msgstr ""
1121
1122
- #: app/helper/RTMediaAddon.php:498
1123
- msgid ""
1124
- "rtMedia Photo Filters adds Instagram like filters to images uploaded with "
1125
- "rtMedia."
1126
msgstr ""
1127
1128
- #: app/helper/RTMediaAddon.php:506
1129
- msgid "Kaltura Add-on"
1130
msgstr ""
1131
1132
- #: app/helper/RTMediaAddon.php:509
1133
- msgid ""
1134
- "Add support for more video formats using Kaltura video solution. It works "
1135
- "with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise."
1136
msgstr ""
1137
1138
- #: app/helper/RTMediaAddon.php:517
1139
- msgid "FFMPEG Add-on"
1140
msgstr ""
1141
1142
- #: app/helper/RTMediaAddon.php:520
1143
- msgid ""
1144
- "Add supports for more audio & video formats using open-source media-node. "
1145
- "Media node comes with automated setup script for Ubuntu/Debian."
1146
msgstr ""
1147
1148
- #: app/helper/RTMediaAddon.php:528
1149
- msgid "Membership Add-on"
1150
msgstr ""
1151
1152
- #: app/helper/RTMediaAddon.php:531
1153
msgid ""
1154
- "rtMedia Membership add-on provides membership functionality in your site in "
1155
- "terms of media upload."
1156
- msgstr ""
1157
-
1158
- #: app/helper/RTMediaAddon.php:571
1159
- msgid "Coming Soon !!"
1160
msgstr ""
1161
1162
- #: app/helper/RTMediaAddon.php:604
1163
- msgid "Purchased"
1164
msgstr ""
1165
1166
- #: app/helper/RTMediaAddon.php:606 app/helper/RTMediaThemes.php:155
1167
- #: app/helper/RTMediaThemes.php:183 app/helper/RTMediaThemes.php:280
1168
- #: app/helper/RTMediaThemes.php:308 app/importers/BPMediaAlbumimporter.php:178
1169
- msgid "Buy Now"
1170
msgstr ""
1171
1172
- #: app/helper/RTMediaAddon.php:635 app/helper/RTMediaThemes.php:154
1173
- #: app/helper/RTMediaThemes.php:182 app/helper/RTMediaThemes.php:279
1174
- #: app/helper/RTMediaThemes.php:307 app/importers/BPMediaAlbumimporter.php:179
1175
- msgid "Live Demo"
1176
msgstr ""
1177
1178
- #: app/helper/RTMediaAdminWidget.php:32
1179
- msgid "Argument missing. id is required."
1180
msgstr ""
1181
1182
- #: app/helper/RTMediaCommentNotification.php:60
1183
- msgid "commented on your"
1184
msgstr ""
1185
1186
- #: app/helper/RTMediaCommentNotification.php:62
1187
- msgid "new comments on your"
1188
msgstr ""
1189
1190
- #: app/helper/RTMediaFeed.php:52
1191
- msgid "No items"
1192
msgstr ""
1193
1194
- #: app/helper/RTMediaFeed.php:58
1195
- msgid "Posted "
1196
msgstr ""
1197
1198
- #: app/helper/RTMediaLicense.php:56
1199
- msgid "Activated"
1200
msgstr ""
1201
1202
- #: app/helper/RTMediaLicense.php:59
1203
- msgid "Deactivated"
1204
msgstr ""
1205
1206
- #: app/helper/RTMediaLicense.php:68
1207
- msgid "Status: "
1208
msgstr ""
1209
1210
- #: app/helper/RTMediaLicense.php:77
1211
- msgid "License Key"
1212
msgstr ""
1213
1214
- #: app/helper/RTMediaLicense.php:88
1215
- msgid "Activate / Deactivate License"
1216
msgstr ""
1217
1218
- #: app/helper/RTMediaLicense.php:96
1219
- msgid "Deactivate License"
1220
msgstr ""
1221
1222
- #: app/helper/RTMediaLicense.php:99
1223
- msgid "Activate License"
1224
msgstr ""
1225
1226
- #: app/helper/RTMediaLikeNotification.php:91
1227
- msgid "liked your"
1228
msgstr ""
1229
1230
- #: app/helper/RTMediaLikeNotification.php:93
1231
- msgid "and one more friend liked your"
1232
msgstr ""
1233
1234
- #: app/helper/RTMediaLikeNotification.php:96
1235
- msgid "and"
1236
msgstr ""
1237
1238
- #: app/helper/RTMediaLikeNotification.php:96
1239
- msgid "other friends liked your"
1240
msgstr ""
1241
1242
- #: app/helper/RTMediaSettings.php:206
1243
- msgid "BuddyPress Media Addons for Photos"
1244
msgstr ""
1245
1246
- #: app/helper/RTMediaSettings.php:210
1247
- msgid "rtMedia Themes"
1248
msgstr ""
1249
1250
- #: app/helper/RTMediaSettings.php:283
1251
msgid ""
1252
- "Currently your network allows uploading of the following file types. You "
1253
- "can change the settings <a href=\"%s\">here</a>.<br /><code>%s</code></span>"
1254
msgstr ""
1255
1256
- #: app/helper/RTMediaSettings.php:301 app/helper/RTMediaSettings.php:303
1257
- msgid "Recounting of media files done successfully"
1258
msgstr ""
1259
1260
- #: app/helper/RTMediaSettings.php:303
1261
- msgid "Recount Success"
1262
msgstr ""
1263
1264
- #: app/helper/RTMediaSettings.php:307 app/helper/RTMediaSettings.php:309
1265
- msgid "Recounting Failed"
1266
msgstr ""
1267
1268
- #: app/helper/RTMediaSettings.php:309
1269
- msgid "Recount Fail"
1270
msgstr ""
1271
1272
- #: app/helper/RTMediaSettings.php:322 app/helper/RTMediaSettings.php:324
1273
- msgid "Atleast one Media Type Must be selected"
1274
msgstr ""
1275
1276
- #: app/helper/RTMediaSettings.php:333 app/helper/RTMediaSettings.php:335
1277
- msgid "\"Number of media\" count value should be numeric and greater than 0."
1278
msgstr ""
1279
1280
- #: app/helper/RTMediaSettings.php:335
1281
- msgid "Default Count"
1282
msgstr ""
1283
1284
- #: app/helper/RTMediaSettings.php:340
1285
- msgid "Settings saved."
1286
msgstr ""
1287
1288
- #: app/helper/RTMediaSettings.php:364
1289
- msgid ""
1290
- "If you make changes to width, height or crop settings, you must use \"<a "
1291
- "href=\"%s\">Regenerate Thumbnail Plugin</a>\" to regenerate old images.\""
1292
msgstr ""
1293
1294
- #: app/helper/RTMediaSettings.php:385
1295
- msgid "BuddyPress Media 2.6 requires a database upgrade. "
1296
msgstr ""
1297
1298
- #: app/helper/RTMediaSettings.php:385
1299
- msgid "Update Database"
1300
msgstr ""
1301
1302
- #: app/helper/RTMediaSettings.php:402
1303
- msgid ""
1304
- "If your site has some issues due to BuddyPress Media and you want one on "
1305
- "one support then you can create a support topic on the <a target=\"_blank\" "
1306
- "href=\"http://community.rtcamp.com/c/rtmedia?utm_source=dashboard&utm_"
1307
- "medium=plugin&utm_campaign=rtmedia\">rtCamp Support Forum</a>."
1308
msgstr ""
1309
1310
- #: app/helper/RTMediaSettings.php:403
1311
- msgid ""
1312
- "If you have any suggestions, enhancements or bug reports, then you can open "
1313
- "a new issue on <a target=\"_blank\" "
1314
- "href=\"https://github.com/rtCamp/rtmedia/issues/new\">GitHub</a>."
1315
msgstr ""
1316
1317
- #: app/helper/RTMediaSupport.php:58 app/helper/RTMediaSupport.php:59
1318
- #: app/helper/RTMediaSupport.php:305 app/helper/RTMediaSupport.php:560
1319
- msgid "Debug Info"
1320
msgstr ""
1321
1322
- #: app/helper/RTMediaSupport.php:66 app/helper/RTMediaSupport.ph