Version Description
Remove media title & fixed pagination in media tab along with several other bugs fixed. Please update/re-save the permalinks after the plugin update.
=
Download this release
Release Info
Developer | rtcamp |
Plugin | ![]() |
Version | 4.3.1 |
Comparing to | |
See all releases |
Code changes from version 4.3 to 4.3.1
- app/admin/RTMediaFormHandler.php +17 -5
- app/assets/js/rtMedia.js +21 -5
- app/assets/js/rtmedia.min.js +2 -2
- app/helper/RTMediaSettings.php +1 -0
- app/main/RTMedia.php +1 -2
- app/main/controllers/privacy/RTMediaPrivacy.php +4 -2
- app/main/controllers/shortcodes/RTMediaGalleryShortcode.php +3 -0
- app/main/controllers/template/RTMediaTemplate.php +5 -0
- app/main/controllers/template/rtmedia-actions.php +22 -0
- app/main/controllers/template/rtmedia-filters.php +17 -3
- app/main/controllers/template/rtmedia-functions.php +120 -23
- app/main/controllers/upload/RTMediaUploadView.php +1 -1
- index.php +2 -2
- languages/buddypress-media.po +92 -68
- readme.txt +17 -3
- templates/media/album-gallery.php +1 -1
- templates/media/media-gallery-item.php +1 -1
- templates/media/media-gallery.php +17 -7
- templates/media/media-single-edit.php +2 -2
- templates/media/media-single.php +1 -1
app/admin/RTMediaFormHandler.php
CHANGED
@@ -303,7 +303,7 @@ class RTMediaFormHandler {
|
|
303 |
'args' => array(
|
304 |
'key' => 'general_enableLikes',
|
305 |
'value' => $options['general_enableLikes'],
|
306 |
-
'desc' => __( '
|
307 |
),
|
308 |
'group' => '11',
|
309 |
),
|
@@ -1018,22 +1018,22 @@ class RTMediaFormHandler {
|
|
1018 |
'group' => 10,
|
1019 |
),
|
1020 |
'buddypress_enableOnComment' => array(
|
1021 |
-
'title' => esc_html__( '
|
1022 |
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
|
1023 |
'args' => array(
|
1024 |
'key' => 'buddypress_enableOnComment',
|
1025 |
'value' => $options['buddypress_enableOnComment'],
|
1026 |
-
'desc' => esc_html__( '
|
1027 |
),
|
1028 |
'group' => 660,
|
1029 |
),
|
1030 |
'rtmedia_disable_media_in_commented_media' => array(
|
1031 |
-
'title' => esc_html__( 'Disable upload
|
1032 |
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
|
1033 |
'args' => array(
|
1034 |
'key' => 'rtmedia_disable_media_in_commented_media',
|
1035 |
'value' => $options['rtmedia_disable_media_in_commented_media'],
|
1036 |
-
'desc' => esc_html__( '
|
1037 |
),
|
1038 |
'group' => 660,
|
1039 |
'depends' => 'buddypress_enableOnComment',
|
@@ -1094,6 +1094,18 @@ class RTMediaFormHandler {
|
|
1094 |
),
|
1095 |
'group' => 50,
|
1096 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1097 |
);
|
1098 |
|
1099 |
return $render;
|
303 |
'args' => array(
|
304 |
'key' => 'general_enableLikes',
|
305 |
'value' => $options['general_enableLikes'],
|
306 |
+
'desc' => __( 'Enabling this setting will add like feature for media.', 'buddypress-media' ),
|
307 |
),
|
308 |
'group' => '11',
|
309 |
),
|
1018 |
'group' => 10,
|
1019 |
),
|
1020 |
'buddypress_enableOnComment' => array(
|
1021 |
+
'title' => esc_html__( 'Enable media in comment', 'buddypress-media' ),
|
1022 |
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
|
1023 |
'args' => array(
|
1024 |
'key' => 'buddypress_enableOnComment',
|
1025 |
'value' => $options['buddypress_enableOnComment'],
|
1026 |
+
'desc' => esc_html__( 'This will allow users to upload media in comment section for originally uploaded media up to 1 level.', 'buddypress-media' ),
|
1027 |
),
|
1028 |
'group' => 660,
|
1029 |
),
|
1030 |
'rtmedia_disable_media_in_commented_media' => array(
|
1031 |
+
'title' => esc_html__( 'Disable upload in comment media', 'buddypress-media' ),
|
1032 |
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
|
1033 |
'args' => array(
|
1034 |
'key' => 'rtmedia_disable_media_in_commented_media',
|
1035 |
'value' => $options['rtmedia_disable_media_in_commented_media'],
|
1036 |
+
'desc' => esc_html__( 'Disable upload in comment media', 'buddypress-media' ),
|
1037 |
),
|
1038 |
'group' => 660,
|
1039 |
'depends' => 'buddypress_enableOnComment',
|
1094 |
),
|
1095 |
'group' => 50,
|
1096 |
),
|
1097 |
+
'general_enableAlbums_description' => array(
|
1098 |
+
'title' => esc_html__( 'Show album description', 'buddypress-media' ),
|
1099 |
+
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
|
1100 |
+
'args' => array(
|
1101 |
+
'id' => 'rtmedia-album-description-enable',
|
1102 |
+
'key' => 'general_enableAlbums_description',
|
1103 |
+
'value' => $options['general_enableAlbums_description'],
|
1104 |
+
'desc' => esc_html__( 'This will show description of an album under album gallery page.', 'buddypress-media' ),
|
1105 |
+
),
|
1106 |
+
'group' => 50,
|
1107 |
+
'depends' => 'general_enableAlbums',
|
1108 |
+
),
|
1109 |
);
|
1110 |
|
1111 |
return $render;
|
app/assets/js/rtMedia.js
CHANGED
@@ -66,15 +66,32 @@ function apply_rtMagnificPopup( selector ) {
|
|
66 |
settings.pluginPath = _wpmejsSettings.pluginPath;
|
67 |
}
|
68 |
var $single_meta_h = jQuery( ".rtmedia-container .rtmedia-single-meta" ).height();
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
/* adding auto play button in the popup */
|
70 |
$( '.mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video' ).attr( 'autoplay', true );
|
71 |
|
|
|
|
|
|
|
|
|
|
|
72 |
$( '.mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video' ).mediaelementplayer( {
|
73 |
// If the <video width> is not specified, this is the default
|
74 |
defaultVideoWidth: 480,
|
|
|
|
|
|
|
75 |
// If the <video height> is not specified, this is the default
|
76 |
defaultVideoHeight: 270,
|
|
|
|
|
77 |
enableAutosize: true,
|
|
|
78 |
// if set, overrides <video height>
|
79 |
videoHeight: -1,
|
80 |
success: function( mediaElement, domObject ) {
|
@@ -89,11 +106,10 @@ function apply_rtMagnificPopup( selector ) {
|
|
89 |
}
|
90 |
}, false);
|
91 |
// Call the play method
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
this.removeEventListener('touchstart', videoStart);
|
97 |
});
|
98 |
} else {
|
99 |
mediaElement.play();
|
66 |
settings.pluginPath = _wpmejsSettings.pluginPath;
|
67 |
}
|
68 |
var $single_meta_h = jQuery( ".rtmedia-container .rtmedia-single-meta" ).height();
|
69 |
+
|
70 |
+
var probablymobile = false;
|
71 |
+
// check if it's is an mobile or not
|
72 |
+
if( typeof mfp != 'undefined' && typeof mfp.probablyMobile != 'undefined' && mfp.probablyMobile == true ){
|
73 |
+
probablymobile = true;
|
74 |
+
}
|
75 |
/* adding auto play button in the popup */
|
76 |
$( '.mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video' ).attr( 'autoplay', true );
|
77 |
|
78 |
+
// if it's mobile then add mute button to it
|
79 |
+
if( probablymobile ){
|
80 |
+
$( '.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video' ).attr( 'muted', false );
|
81 |
+
}
|
82 |
+
|
83 |
$( '.mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video' ).mediaelementplayer( {
|
84 |
// If the <video width> is not specified, this is the default
|
85 |
defaultVideoWidth: 480,
|
86 |
+
// always show the volume button
|
87 |
+
hideVolumeOnTouchDevices: false,
|
88 |
+
features: ['playpause','progress','current','volume','fullscreen'],
|
89 |
// If the <video height> is not specified, this is the default
|
90 |
defaultVideoHeight: 270,
|
91 |
+
// always show control for mobile
|
92 |
+
alwaysShowControls: probablymobile,
|
93 |
enableAutosize: true,
|
94 |
+
clickToPlayPause: true,
|
95 |
// if set, overrides <video height>
|
96 |
videoHeight: -1,
|
97 |
success: function( mediaElement, domObject ) {
|
106 |
}
|
107 |
}, false);
|
108 |
// Call the play method
|
109 |
+
// check if it's mobile
|
110 |
+
if( probablymobile && mediaElement.hasClass( "wp-video-shortcode" ) ){
|
111 |
+
jQuery( 'body' ).on('touchstart', '.mejs-overlay-button' , function(e) {
|
112 |
+
mediaElement.paused ? mediaElement.play() : mediaElement.pause();
|
|
|
113 |
});
|
114 |
} else {
|
115 |
mediaElement.play();
|
app/assets/js/rtmedia.min.js
CHANGED
@@ -2,5 +2,5 @@
|
|
2 |
* rtMedia JavaScript Library
|
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.find("a").hasClass("rtmedia-list-item-a")){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);var g=jQuery(".rtmedia-container .rtmedia-single-meta").height();b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("autoplay",!0),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,enableAutosize:!0,videoHeight:-1,success:function(a,c){a.addEventListener("loadeddata",function(c){var d=b(a).height(),e=b(window).height(),f=jQuery("div.rtm-ltb-action-container").height(),f=f+50,h=g-f;d>e&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+h+"px !important; transition:0.2s")},!1),b(window).width()<760?window.addEventListener("touchstart",function b(){a.play(),this.removeEventListener("touchstart",b)}):a.play()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),"undefined"!=typeof bp&&"undefined"!=typeof bp.mentions&&"undefined"!=typeof bp.mentions.users&&(b("#atwho-container #atwho-ground-comment_content").remove(),b("#comment_content").bp_mentions(bp.mentions.users)),rtmedia_reset_video_and_audio_for_popup(),apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container")},close:function(a){rtmedia_single_page_popup_close()},BeforeChange:function(a){}}})),jQuery(document).ajaxComplete(function(){jQuery("[id^=imgedit-leaving]").filter(function(){var a=jQuery(this).text();jQuery(this).text(a.replace("OK","Save"))})})})}function rtmedia_init_action_dropdown(a){var b,c;jQuery(a+" .click-nav > span,"+a+" .click-nav > div").toggleClass("no-js js"),jQuery(a+" .click-nav .js ul").hide(),jQuery(a+" .click-nav .clicker").click(function(a){b=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),c=jQuery(this).next("ul"),jQuery.each(b,function(a,b){jQuery(b).html()!=c.html()&&jQuery(b).hide()}),jQuery(c).toggle(),a.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);e<f;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}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=c.indexOf("MSIE 7.")!==-1,b.isIE8=c.indexOf("MSIE 8.")!==-1,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;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){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return 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">×</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++,e<200?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},_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(){if(e.indexOf(this.index)>-1)return 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});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:a<0?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(){if(b.items.length>1)return b.next(),!1}),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}))},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+$/,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");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");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,comment_media=!1,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,arguments){if("undefined"!=typeof rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](arguments))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(".mfp-arrow-right").hide(),jQuery(".mfp-arrow-left").hide(),jQuery(document).unbind("keydown")}function e(){rtmedia_disable_popup_navigation("#comment_content")}function f(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}"undefined"!=typeof a.fn.rtTab&&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)}),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.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(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 d=b.success;a.success=function(a){d(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(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(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"),
|
6 |
-
jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270}),setTimeout(function(){rtmedia_activity_stream_comment_media()},900),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(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("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$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",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("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(){if(jQuery(this).attr("value")===$context)return c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,d='<optgroup value="'+$context+'" label="'+a+'"><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=rtmedia_main_js_strings.privacy_update_success,d="success"):(c=rtmedia_main_js_strings.privacy_update_error,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(),f(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&0==comment_media?c():d(),e(),rtmedia_disable_popup_navigation_comment_media_focus();var g=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*g,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*g,"over-flow":"hidden"}),rtmedia_init_action_dropdown(".rtm-lightbox-container .rtmedia-actions"),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var h=a(".rtm-gallery-title"),i="";i=a.isEmptyObject(h)?a("#subnav.item-list-tabs li.selected ").html():h.html(),""!=i&&a(".rtm-ltb-gallery-title .ltb-title").html(i);var j=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(j),!0});var g=jQuery("#drag-drop-area"),h=jQuery("#whats-new");g.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){a.preventDefault(),a.target!=this&&(jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&h.addClass("rtm-drag-drop-active"),g.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show())}).on("dragleave",function(a){return a.preventDefault(),(0==a.originalEvent.pageX||0==a.originalEvent.pageY)&&("undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(h.removeClass("rtm-drag-drop-active"),h.removeAttr("style")),g.removeClass("rtm-drag-drop-active"),void jQuery("#rtm-drop-files-title").hide())}).on("drop",function(a){a.preventDefault(),jQuery(".bp-suggestions").focus(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(h.removeClass("rtm-drag-drop-active"),h.removeAttr("style")),g.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").hide():jQuery("div.moxie-shim").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(rtmedia_main_js_strings.file_delete_success,"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){"use strict";var c={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return b&&a.extend(c,b),!(a(this).data("jquery.shorten")&&!c.force)&&(a(this).data("jquery.shorten",!0),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.parent().prev().hide(0,function(){b.parent().prev().prev().show()}).hide(0,function(){c.onLess()})):(b.addClass("less"),b.html(c.lessText),b.parent().prev().show(0,function(){b.parent().prev().prev().hide()}).show(0,function(){c.onMore()})),!1}},".morelink"),this.each(function(){var b=a(this),d=b.html(),e=b.text().length;if(e>c.showChars+c.minHideChars){var f=d.substr(0,c.showChars);if(f.indexOf("<")>=0){for(var g=!1,h="",i=0,k=[],l=null,m=0,n=0;n<=c.showChars;m++)if("<"!=d[m]||g||(g=!0,l=d.substring(m+1,d.indexOf(">",m)),"/"==l[0]?l!="/"+k[0]?c.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":k.shift():"br"!=l.toLowerCase()&&k.unshift(l)),g&&">"==d[m]&&(g=!1),g)h+=d.charAt(m);else if(n++,i<=c.showChars)h+=d.charAt(m),i++;else if(k.length>0){for(j=0;j<k.length;j++)h+="</"+k[j]+">";break}f=a("<div/>").html(h+'<span class="ellip">'+c.ellipsesText+"</span>").html()}else f+=c.ellipsesText;var o='<div class="shortcontent">'+f+'</div><div class="allcontent">'+d+'</div><span><a href="javascript://nop/" class="morelink">'+c.moreText+"</a></span>";b.html(o),b.find(".allcontent").hide(),a(".shortcontent p:last",b).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)};
|
2 |
* rtMedia JavaScript Library
|
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.find("a").hasClass("rtmedia-list-item-a")){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);var g=jQuery(".rtmedia-container .rtmedia-single-meta").height(),h=!1;"undefined"!=typeof a&&"undefined"!=typeof a.probablyMobile&&1==a.probablyMobile&&(h=!0),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("autoplay",!0),h&&b(".mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("muted",!1),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").mediaelementplayer({defaultVideoWidth:480,hideVolumeOnTouchDevices:!1,features:["playpause","progress","current","volume","fullscreen"],defaultVideoHeight:270,alwaysShowControls:h,enableAutosize:!0,clickToPlayPause:!0,videoHeight:-1,success:function(a,c){a.addEventListener("loadeddata",function(c){var d=b(a).height(),e=b(window).height(),f=jQuery("div.rtm-ltb-action-container").height(),f=f+50,h=g-f;d>e&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+h+"px !important; transition:0.2s")},!1),h&&a.hasClass("wp-video-shortcode")?jQuery("body").on("touchstart",".mejs-overlay-button",function(b){a.paused?a.play():a.pause()}):a.play()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),"undefined"!=typeof bp&&"undefined"!=typeof bp.mentions&&"undefined"!=typeof bp.mentions.users&&(b("#atwho-container #atwho-ground-comment_content").remove(),b("#comment_content").bp_mentions(bp.mentions.users)),rtmedia_reset_video_and_audio_for_popup(),apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container")},close:function(a){rtmedia_single_page_popup_close()},BeforeChange:function(a){}}})),jQuery(document).ajaxComplete(function(){jQuery("[id^=imgedit-leaving]").filter(function(){var a=jQuery(this).text();jQuery(this).text(a.replace("OK","Save"))})})})}function rtmedia_init_action_dropdown(a){var b,c;jQuery(a+" .click-nav > span,"+a+" .click-nav > div").toggleClass("no-js js"),jQuery(a+" .click-nav .js ul").hide(),jQuery(a+" .click-nav .clicker").click(function(a){b=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),c=jQuery(this).next("ul"),jQuery.each(b,function(a,b){jQuery(b).html()!=c.html()&&jQuery(b).hide()}),jQuery(c).toggle(),a.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);e<f;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}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=c.indexOf("MSIE 7.")!==-1,b.isIE8=c.indexOf("MSIE 8.")!==-1,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;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){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return 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">×</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++,e<200?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},_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(){if(e.indexOf(this.index)>-1)return 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});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:a<0?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(){if(b.items.length>1)return b.next(),!1}),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}))},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+$/,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");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");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,comment_media=!1,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,arguments){if("undefined"!=typeof rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](arguments))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(".mfp-arrow-right").hide(),jQuery(".mfp-arrow-left").hide(),jQuery(document).unbind("keydown")}function e(){rtmedia_disable_popup_navigation("#comment_content")}function f(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}"undefined"!=typeof a.fn.rtTab&&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)}),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.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(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 d=b.success;a.success=function(a){d(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({
|
6 |
+
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(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(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"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270}),setTimeout(function(){rtmedia_activity_stream_comment_media()},900),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(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("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$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",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("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(){if(jQuery(this).attr("value")===$context)return c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,d='<optgroup value="'+$context+'" label="'+a+'"><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=rtmedia_main_js_strings.privacy_update_success,d="success"):(c=rtmedia_main_js_strings.privacy_update_error,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(),f(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&0==comment_media?c():d(),e(),rtmedia_disable_popup_navigation_comment_media_focus();var g=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*g,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*g,"over-flow":"hidden"}),rtmedia_init_action_dropdown(".rtm-lightbox-container .rtmedia-actions"),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var h=a(".rtm-gallery-title"),i="";i=a.isEmptyObject(h)?a("#subnav.item-list-tabs li.selected ").html():h.html(),""!=i&&a(".rtm-ltb-gallery-title .ltb-title").html(i);var j=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(j),!0});var g=jQuery("#drag-drop-area"),h=jQuery("#whats-new");g.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){a.preventDefault(),a.target!=this&&(jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&h.addClass("rtm-drag-drop-active"),g.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show())}).on("dragleave",function(a){return a.preventDefault(),(0==a.originalEvent.pageX||0==a.originalEvent.pageY)&&("undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(h.removeClass("rtm-drag-drop-active"),h.removeAttr("style")),g.removeClass("rtm-drag-drop-active"),void jQuery("#rtm-drop-files-title").hide())}).on("drop",function(a){a.preventDefault(),jQuery(".bp-suggestions").focus(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(h.removeClass("rtm-drag-drop-active"),h.removeAttr("style")),g.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").hide():jQuery("div.moxie-shim").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(rtmedia_main_js_strings.file_delete_success,"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){"use strict";var c={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return b&&a.extend(c,b),!(a(this).data("jquery.shorten")&&!c.force)&&(a(this).data("jquery.shorten",!0),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.parent().prev().hide(0,function(){b.parent().prev().prev().show()}).hide(0,function(){c.onLess()})):(b.addClass("less"),b.html(c.lessText),b.parent().prev().show(0,function(){b.parent().prev().prev().hide()}).show(0,function(){c.onMore()})),!1}},".morelink"),this.each(function(){var b=a(this),d=b.html(),e=b.text().length;if(e>c.showChars+c.minHideChars){var f=d.substr(0,c.showChars);if(f.indexOf("<")>=0){for(var g=!1,h="",i=0,k=[],l=null,m=0,n=0;n<=c.showChars;m++)if("<"!=d[m]||g||(g=!0,l=d.substring(m+1,d.indexOf(">",m)),"/"==l[0]?l!="/"+k[0]?c.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":k.shift():"br"!=l.toLowerCase()&&k.unshift(l)),g&&">"==d[m]&&(g=!1),g)h+=d.charAt(m);else if(n++,i<=c.showChars)h+=d.charAt(m),i++;else if(k.length>0){for(j=0;j<k.length;j++)h+="</"+k[j]+">";break}f=a("<div/>").html(h+'<span class="ellip">'+c.ellipsesText+"</span>").html()}else f+=c.ellipsesText;var o='<div class="shortcontent">'+f+'</div><div class="allcontent">'+d+'</div><span><a href="javascript://nop/" class="morelink">'+c.moreText+"</a></span>";b.html(o),b.find(".allcontent").hide(),a(".shortcontent p:last",b).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)};
|
app/helper/RTMediaSettings.php
CHANGED
@@ -44,6 +44,7 @@ if ( ! class_exists( 'RTMediaSettings' ) ) {
|
|
44 |
|
45 |
$defaults = array(
|
46 |
'general_enableAlbums' => 1,
|
|
|
47 |
'general_enableComments' => 0,
|
48 |
'general_enableLikes' => 1,
|
49 |
'general_downloadButton' => 0,
|
44 |
|
45 |
$defaults = array(
|
46 |
'general_enableAlbums' => 1,
|
47 |
+
'general_enableAlbums_description' => 0,
|
48 |
'general_enableComments' => 0,
|
49 |
'general_enableLikes' => 1,
|
50 |
'general_downloadButton' => 0,
|
app/main/RTMedia.php
CHANGED
@@ -1209,12 +1209,11 @@ class RTMedia {
|
|
1209 |
wp_localize_script( 'rtmedia-main', 'rtmedia_disable_media_in_commented_media', $rtmedia_disable_media );
|
1210 |
|
1211 |
wp_localize_script( 'rtmedia-main', 'rtmedia_disable_media_in_commented_media_text', esc_html__( 'Adding media in Comments is not allowed', 'buddypress-media' ) );
|
1212 |
-
|
1213 |
wp_localize_script( 'rtmedia-backbone', 'rtmedia_exteansions', $rtmedia_extns );
|
1214 |
wp_localize_script( 'rtmedia-backbone', 'rtMedia_update_plupload_comment', $params );
|
1215 |
wp_localize_script( 'rtmedia-backbone', 'rMedia_loading_file', admin_url( '/images/loading.gif' ) );
|
1216 |
|
1217 |
-
|
1218 |
}
|
1219 |
|
1220 |
function set_bp_bar() {
|
1209 |
wp_localize_script( 'rtmedia-main', 'rtmedia_disable_media_in_commented_media', $rtmedia_disable_media );
|
1210 |
|
1211 |
wp_localize_script( 'rtmedia-main', 'rtmedia_disable_media_in_commented_media_text', esc_html__( 'Adding media in Comments is not allowed', 'buddypress-media' ) );
|
1212 |
+
|
1213 |
wp_localize_script( 'rtmedia-backbone', 'rtmedia_exteansions', $rtmedia_extns );
|
1214 |
wp_localize_script( 'rtmedia-backbone', 'rtMedia_update_plupload_comment', $params );
|
1215 |
wp_localize_script( 'rtmedia-backbone', 'rMedia_loading_file', admin_url( '/images/loading.gif' ) );
|
1216 |
|
|
|
1217 |
}
|
1218 |
|
1219 |
function set_bp_bar() {
|
app/main/controllers/privacy/RTMediaPrivacy.php
CHANGED
@@ -66,7 +66,9 @@ class RTMediaPrivacy {
|
|
66 |
}
|
67 |
|
68 |
//todo strict standard error
|
69 |
-
|
|
|
|
|
70 |
}
|
71 |
}
|
72 |
|
@@ -370,7 +372,7 @@ class RTMediaPrivacy {
|
|
370 |
$default_privacy = filter_input( INPUT_POST, 'rtmedia-default-privacy', FILTER_SANITIZE_STRING );
|
371 |
$nonce = filter_input( INPUT_POST, 'rtmedia_member_settings_privacy', FILTER_SANITIZE_STRING );
|
372 |
|
373 |
-
if (
|
374 |
$status = false;
|
375 |
if ( wp_verify_nonce( $nonce, 'rtmedia_member_settings_privacy' ) ) {
|
376 |
//todo user attribute
|
66 |
}
|
67 |
|
68 |
//todo strict standard error
|
69 |
+
if ( isset( $activities_template->activity->privacy ) && $activities_template->activity->privacy != '80' ) {
|
70 |
+
self::select_privacy_ui( true, 'rtm-ac-privacy-' . $activities_template->activity->id, array( 'rtm-activity-privacy-opt' ), $selected );
|
71 |
+
}
|
72 |
}
|
73 |
}
|
74 |
|
372 |
$default_privacy = filter_input( INPUT_POST, 'rtmedia-default-privacy', FILTER_SANITIZE_STRING );
|
373 |
$nonce = filter_input( INPUT_POST, 'rtmedia_member_settings_privacy', FILTER_SANITIZE_STRING );
|
374 |
|
375 |
+
if ( null !== $default_privacy ) {
|
376 |
$status = false;
|
377 |
if ( wp_verify_nonce( $nonce, 'rtmedia_member_settings_privacy' ) ) {
|
378 |
//todo user attribute
|
app/main/controllers/shortcodes/RTMediaGalleryShortcode.php
CHANGED
@@ -149,6 +149,9 @@ class RTMediaGalleryShortcode {
|
|
149 |
}
|
150 |
|
151 |
$attr = array( 'name' => 'gallery', 'attr' => $attr );
|
|
|
|
|
|
|
152 |
global $post, $rtmedia_shortcode_attr;
|
153 |
if ( isset( $attr ) && isset( $attr['attr'] ) ) {
|
154 |
if ( ! is_array( $attr['attr'] ) ) {
|
149 |
}
|
150 |
|
151 |
$attr = array( 'name' => 'gallery', 'attr' => $attr );
|
152 |
+
|
153 |
+
$attr = apply_filters( 'rtmedia_gallery_shortcode_parameter_pre_filter', $attr );
|
154 |
+
|
155 |
global $post, $rtmedia_shortcode_attr;
|
156 |
if ( isset( $attr ) && isset( $attr['attr'] ) ) {
|
157 |
if ( ! is_array( $attr['attr'] ) ) {
|
app/main/controllers/template/RTMediaTemplate.php
CHANGED
@@ -220,11 +220,16 @@ class RTMediaTemplate {
|
|
220 |
|
221 |
if ( $rtmedia_query->media ) {
|
222 |
foreach ( $rtmedia_query->media as $key => $media ) {
|
|
|
|
|
|
|
|
|
223 |
$media_array[ $key ] = $media;
|
224 |
$media_array[ $key ]->media_count = rtm_get_album_media_count( $media->id );
|
225 |
$media_array[ $key ]->guid = rtmedia_image( 'rt_media_thumbnail', $media->id, false );
|
226 |
$media_array[ $key ]->rt_permalink = get_rtmedia_permalink( $media->id );
|
227 |
$media_array[ $key ]->duration = rtmedia_duration( $media->id );
|
|
|
228 |
$media_array[ $key ] = apply_filters( 'rtmedia_media_array_backbone', $media_array[ $key ] );
|
229 |
}
|
230 |
}
|
220 |
|
221 |
if ( $rtmedia_query->media ) {
|
222 |
foreach ( $rtmedia_query->media as $key => $media ) {
|
223 |
+
$media_class = 'hide';
|
224 |
+
if( isset( $media->media_type ) && function_exists( 'rtmedia_hide_title_media_gallery' ) ) {
|
225 |
+
$media_class = rtmedia_hide_title_media_gallery( $media->media_type );
|
226 |
+
}
|
227 |
$media_array[ $key ] = $media;
|
228 |
$media_array[ $key ]->media_count = rtm_get_album_media_count( $media->id );
|
229 |
$media_array[ $key ]->guid = rtmedia_image( 'rt_media_thumbnail', $media->id, false );
|
230 |
$media_array[ $key ]->rt_permalink = get_rtmedia_permalink( $media->id );
|
231 |
$media_array[ $key ]->duration = rtmedia_duration( $media->id );
|
232 |
+
$media_array[ $key ]->media_class = $media_class;
|
233 |
$media_array[ $key ] = apply_filters( 'rtmedia_media_array_backbone', $media_array[ $key ] );
|
234 |
}
|
235 |
}
|
app/main/controllers/template/rtmedia-actions.php
CHANGED
@@ -948,3 +948,25 @@ function rtmedia_after_media_callback() {
|
|
948 |
}
|
949 |
}
|
950 |
add_action( 'rtmedia_after_media', 'rtmedia_after_media_callback', 10 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
948 |
}
|
949 |
}
|
950 |
add_action( 'rtmedia_after_media', 'rtmedia_after_media_callback', 10 );
|
951 |
+
|
952 |
+
|
953 |
+
if ( ! function_exists( 'rtmedia_gallery_after_title_callback' ) ) {
|
954 |
+
function rtmedia_gallery_after_title_callback() {
|
955 |
+
// show description in album gallery page
|
956 |
+
global $rtmedia_query;
|
957 |
+
// check if it's an album gallery page and album id is not empty
|
958 |
+
if (
|
959 |
+
isset( $rtmedia_query->query ) && isset( $rtmedia_query->query['media_type'] ) && 'album' == $rtmedia_query->query['media_type']
|
960 |
+
&&
|
961 |
+
isset( $rtmedia_query->media_query ) && isset( $rtmedia_query->media_query['album_id'] ) && ! empty( $rtmedia_query->media_query['album_id'] )
|
962 |
+
&&
|
963 |
+
function_exists( 'rtmedia_get_album_description_setting' ) && rtmedia_get_album_description_setting()
|
964 |
+
) {
|
965 |
+
$description = rtmedia_get_media_description( $rtmedia_query->media_query['album_id'] );
|
966 |
+
if ( ! empty( $description ) ) {
|
967 |
+
echo '<div class="gallery-description gallery-album-description">' . $description . '</div>';
|
968 |
+
}
|
969 |
+
}
|
970 |
+
}
|
971 |
+
}
|
972 |
+
add_action( 'rtmedia_gallery_after_title', 'rtmedia_gallery_after_title_callback', 11, 1 );
|
app/main/controllers/template/rtmedia-filters.php
CHANGED
@@ -667,11 +667,11 @@ function rtmedia_like_html_you_and_more_like_callback( $like_count, $user_like_i
|
|
667 |
}
|
668 |
add_filter( 'rtmedia_like_html_you_and_more_like', 'rtmedia_like_html_you_and_more_like_callback', 10, 2 );
|
669 |
|
670 |
-
function rtmedia_comment_max_links_callback( $values, $option ) {
|
671 |
$new_values = $values;
|
672 |
if ( apply_filters( 'rtmedia_comment_max_links', true ) && 'comment_max_links' == $option ) {
|
673 |
-
$
|
674 |
-
if ( is_array( $
|
675 |
if ( $new_values < 5 ) {
|
676 |
$new_values = 5;
|
677 |
}
|
@@ -692,3 +692,17 @@ function rtmedia_bp_activity_get_meta_callback( $retval, $activity_id, $meta_key
|
|
692 |
return $new_retval;
|
693 |
}
|
694 |
add_filter( 'bp_activity_get_meta', 'rtmedia_bp_activity_get_meta_callback', 10, 4 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
667 |
}
|
668 |
add_filter( 'rtmedia_like_html_you_and_more_like', 'rtmedia_like_html_you_and_more_like_callback', 10, 2 );
|
669 |
|
670 |
+
function rtmedia_comment_max_links_callback( $values, $option = '' ) {
|
671 |
$new_values = $values;
|
672 |
if ( apply_filters( 'rtmedia_comment_max_links', true ) && 'comment_max_links' == $option ) {
|
673 |
+
$rtmedia_attached_files = filter_input( INPUT_POST, 'rtMedia_attached_files', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
|
674 |
+
if ( is_array( $rtmedia_attached_files ) && ! empty( $rtmedia_attached_files[0] ) ) {
|
675 |
if ( $new_values < 5 ) {
|
676 |
$new_values = 5;
|
677 |
}
|
692 |
return $new_retval;
|
693 |
}
|
694 |
add_filter( 'bp_activity_get_meta', 'rtmedia_bp_activity_get_meta_callback', 10, 4 );
|
695 |
+
|
696 |
+
|
697 |
+
// remove unwanted attr of sorting when rtmedia-sorting addon is not there
|
698 |
+
if ( ! function_exists( 'rtmedia_gallery_shortcode_parameter_pre_filter_callback' ) ) {
|
699 |
+
function rtmedia_gallery_shortcode_parameter_pre_filter_callback( $attr ) {
|
700 |
+
$new_attr = $attr;
|
701 |
+
if ( ! class_exists( 'RTMediaSorting' ) && isset( $attr['attr'] ) && isset( $attr['attr']['sort_parameters'] ) ) {
|
702 |
+
unset( $new_attr['attr']['sort_parameters'] );
|
703 |
+
}
|
704 |
+
return $new_attr;
|
705 |
+
}
|
706 |
+
}
|
707 |
+
add_filter( 'rtmedia_gallery_shortcode_parameter_pre_filter', 'rtmedia_gallery_shortcode_parameter_pre_filter_callback', 10, 1 );
|
708 |
+
|
app/main/controllers/template/rtmedia-functions.php
CHANGED
@@ -1248,7 +1248,7 @@ function rmedia_single_comment( $comment, $count = false, $i = false ) {
|
|
1248 |
if ( $i < $hide ) {
|
1249 |
$class = 'hide';
|
1250 |
if ( 0 == $i ) {
|
1251 |
-
echo '<div class="rtmedia-like-info"><span id="rtmedia_show_all_comment"> ' .
|
1252 |
}
|
1253 |
}
|
1254 |
}
|
@@ -1360,7 +1360,7 @@ function rtmedia_pagination_prev_link() {
|
|
1360 |
$link .= RTMEDIA_MEDIA_SLUG . '/';
|
1361 |
|
1362 |
if ( isset( $rtmedia_query->action_query->media_type ) ) {
|
1363 |
-
$media_type_array = array( 'photo', 'music', 'video', 'album'
|
1364 |
|
1365 |
if ( in_array( $rtmedia_query->action_query->media_type, $media_type_array, true ) ) {
|
1366 |
$link .= $rtmedia_query->action_query->media_type . '/';
|
@@ -1413,7 +1413,11 @@ function rtmedia_pagination_next_link() {
|
|
1413 |
$post_id = ( isset( $rtmedia_query->media->media_id ) ? $rtmedia_query->media->media_id : $rtmedia_query->media[0]->media_id );
|
1414 |
$post = get_post( get_post_field( 'post_parent', $post_id ) );
|
1415 |
|
1416 |
-
|
|
|
|
|
|
|
|
|
1417 |
}
|
1418 |
}
|
1419 |
|
@@ -1424,7 +1428,7 @@ function rtmedia_pagination_next_link() {
|
|
1424 |
}
|
1425 |
|
1426 |
if ( isset( $rtmedia_query->action_query->media_type ) ) {
|
1427 |
-
$media_type_array = array( 'photo', 'music', 'video', 'album'
|
1428 |
|
1429 |
if ( in_array( $rtmedia_query->action_query->media_type, $media_type_array, true ) ) {
|
1430 |
$link .= $rtmedia_query->action_query->media_type . '/';
|
@@ -1447,7 +1451,7 @@ function rtmedia_pagination_next_link() {
|
|
1447 |
*/
|
1448 |
function rtmedia_pagination_page_link( $page_no = '' ) {
|
1449 |
|
1450 |
-
global $rtmedia_interaction, $rtmedia_query, $post;
|
1451 |
|
1452 |
$wp_default_context = array( 'page', 'post' );
|
1453 |
|
@@ -1463,8 +1467,8 @@ function rtmedia_pagination_page_link( $page_no = '' ) {
|
|
1463 |
$is_shortcode_on_home = ( isset( $_GET['is_on_home'] ) && '1' === $_GET['is_on_home'] && isset( $_GET['rtmedia_shortcode'] ) && 'true' === $_GET['rtmedia_shortcode'] && isset( $_GET['context_id'] ) && $_GET['context_id'] === get_option( 'page_on_front' ) ) ? true : false;
|
1464 |
|
1465 |
if ( $rtmedia_interaction && isset( $rtmedia_interaction->context ) && 'profile' === $rtmedia_interaction->context->type ) {
|
1466 |
-
if ( function_exists( 'bp_core_get_user_domain' ) && ! empty( $rtmedia_query->
|
1467 |
-
$link .= trailingslashit( bp_core_get_user_domain( $rtmedia_query->
|
1468 |
} else {
|
1469 |
if ( $is_shortcode_on_home ) {
|
1470 |
$link .= $site_url;
|
@@ -1503,16 +1507,46 @@ function rtmedia_pagination_page_link( $page_no = '' ) {
|
|
1503 |
$link .= RTMEDIA_MEDIA_SLUG . '/';
|
1504 |
}
|
1505 |
|
|
|
1506 |
if ( isset( $rtmedia_query->media_query['album_id'] ) && intval( $rtmedia_query->media_query['album_id'] ) > 0 ) {
|
1507 |
$link .= $rtmedia_query->media_query['album_id'] . '/';
|
1508 |
}
|
1509 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1510 |
if ( isset( $rtmedia_query->action_query->media_type ) ) {
|
1511 |
-
$media_type_array = array( 'photo', 'music', 'video', 'album', 'playlist' );
|
1512 |
|
1513 |
-
|
1514 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1515 |
}
|
|
|
1516 |
}
|
1517 |
|
1518 |
return apply_filters( 'rtmedia_pagination_page_link', $link . $page_url, $link, $page_url );
|
@@ -2245,8 +2279,10 @@ function rtmedia_user_album_list( $get_all = false, $selected_album_id = false )
|
|
2245 |
$model = new RTMediaModel();
|
2246 |
$global_option = rtmedia_global_album_list( $selected_album_id );
|
2247 |
$global_albums = rtmedia_global_albums();
|
|
|
|
|
2248 |
$album_objects = $model->get_media( array(
|
2249 |
-
'media_author' =>
|
2250 |
'media_type' => 'album',
|
2251 |
), false, 'context' );
|
2252 |
$option_group = '';
|
@@ -2487,10 +2523,13 @@ function rtmedia_edit_media_privacy_ui() {
|
|
2487 |
$privacymodel = new RTMediaPrivacy( false );
|
2488 |
$privacy = $privacymodel->select_privacy_ui( $echo = false );
|
2489 |
|
2490 |
-
if ( $
|
2491 |
-
|
|
|
|
|
|
|
|
|
2492 |
}
|
2493 |
-
|
2494 |
}
|
2495 |
|
2496 |
/**
|
@@ -2824,12 +2863,12 @@ function show_rtmedia_like_counts() {
|
|
2824 |
*
|
2825 |
* @return string HTML
|
2826 |
*/
|
2827 |
-
if( ! function_exists( 'rtmedia_who_like_html' ) ){
|
2828 |
-
function rtmedia_who_like_html( $like_count, $user_like_it ){
|
2829 |
$like_count = ( $like_count ) ? $like_count : false;
|
2830 |
$user_like_it = ( $user_like_it ) ? true : false;
|
2831 |
$like_count_new = $like_count;
|
2832 |
-
$html =
|
2833 |
if ( $like_count == 1 && $user_like_it ) {
|
2834 |
/**
|
2835 |
* rtmedia you like text
|
@@ -2838,7 +2877,7 @@ if( ! function_exists( 'rtmedia_who_like_html' ) ){
|
|
2838 |
* @param int $user_like_it User Like it or Not
|
2839 |
* @return html TEXT to display
|
2840 |
*/
|
2841 |
-
$html =
|
2842 |
} elseif ( $like_count ) {
|
2843 |
if ( $like_count > 1 && $user_like_it ) {
|
2844 |
/**
|
@@ -2848,7 +2887,7 @@ if( ! function_exists( 'rtmedia_who_like_html' ) ){
|
|
2848 |
* @param int $user_like_it User Like it or Not
|
2849 |
* @return html TEXT to display
|
2850 |
*/
|
2851 |
-
$html .=
|
2852 |
$like_count_new--;
|
2853 |
}
|
2854 |
|
@@ -2858,7 +2897,7 @@ if( ! function_exists( 'rtmedia_who_like_html' ) ){
|
|
2858 |
* @param int $user_like_it User Like it or Not
|
2859 |
* @return INT Count to display
|
2860 |
*/
|
2861 |
-
$html .=
|
2862 |
|
2863 |
/**
|
2864 |
* rtmedia person or people likes it
|
@@ -2867,7 +2906,7 @@ if( ! function_exists( 'rtmedia_who_like_html' ) ){
|
|
2867 |
* @param int $user_like_it User Like it or Not
|
2868 |
* @return html TEXT to display
|
2869 |
*/
|
2870 |
-
$html .=
|
2871 |
}
|
2872 |
|
2873 |
/**
|
@@ -2877,7 +2916,7 @@ if( ! function_exists( 'rtmedia_who_like_html' ) ){
|
|
2877 |
* @param int $user_like_it User Like it or Not
|
2878 |
* @return html TEXT to display
|
2879 |
*/
|
2880 |
-
$html =
|
2881 |
return $html;
|
2882 |
}
|
2883 |
}
|
@@ -3586,7 +3625,6 @@ function rtmedia_activate_addon_license( $addon = array() ) {
|
|
3586 |
return false;
|
3587 |
}
|
3588 |
|
3589 |
-
|
3590 |
$license = $addon['args']['license_key'];
|
3591 |
|
3592 |
$addon_name = $addon['name'];
|
@@ -3829,3 +3867,62 @@ function rtmedia_add_comments_extra_callback() {
|
|
3829 |
echo rtmedia_bp_activity_entry_comments_id_callback( $rtmedia_id, 'rtmedia', $context );
|
3830 |
}
|
3831 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1248 |
if ( $i < $hide ) {
|
1249 |
$class = 'hide';
|
1250 |
if ( 0 == $i ) {
|
1251 |
+
echo '<div class="rtmedia-like-info"><span id="rtmedia_show_all_comment"> ' . sprintf( esc_html__( 'Show all %s comments', 'buddypress-media' ), esc_html( $count ) ) . ' </span></div>';
|
1252 |
}
|
1253 |
}
|
1254 |
}
|
1360 |
$link .= RTMEDIA_MEDIA_SLUG . '/';
|
1361 |
|
1362 |
if ( isset( $rtmedia_query->action_query->media_type ) ) {
|
1363 |
+
$media_type_array = apply_filters( 'rtmedia_media_type_support', array( 'photo', 'music', 'video', 'album' ) );
|
1364 |
|
1365 |
if ( in_array( $rtmedia_query->action_query->media_type, $media_type_array, true ) ) {
|
1366 |
$link .= $rtmedia_query->action_query->media_type . '/';
|
1413 |
$post_id = ( isset( $rtmedia_query->media->media_id ) ? $rtmedia_query->media->media_id : $rtmedia_query->media[0]->media_id );
|
1414 |
$post = get_post( get_post_field( 'post_parent', $post_id ) );
|
1415 |
|
1416 |
+
if ( isset( $post->post_name ) ) {
|
1417 |
+
$link .= $site_url . $post->post_name . '/';
|
1418 |
+
} else {
|
1419 |
+
$link .= $site_url;
|
1420 |
+
}
|
1421 |
}
|
1422 |
}
|
1423 |
|
1428 |
}
|
1429 |
|
1430 |
if ( isset( $rtmedia_query->action_query->media_type ) ) {
|
1431 |
+
$media_type_array = apply_filters( 'rtmedia_media_type_support', array( 'photo', 'music', 'video', 'album' ) );
|
1432 |
|
1433 |
if ( in_array( $rtmedia_query->action_query->media_type, $media_type_array, true ) ) {
|
1434 |
$link .= $rtmedia_query->action_query->media_type . '/';
|
1451 |
*/
|
1452 |
function rtmedia_pagination_page_link( $page_no = '' ) {
|
1453 |
|
1454 |
+
global $rtmedia_interaction, $rtmedia_query, $post, $rtmedia;
|
1455 |
|
1456 |
$wp_default_context = array( 'page', 'post' );
|
1457 |
|
1467 |
$is_shortcode_on_home = ( isset( $_GET['is_on_home'] ) && '1' === $_GET['is_on_home'] && isset( $_GET['rtmedia_shortcode'] ) && 'true' === $_GET['rtmedia_shortcode'] && isset( $_GET['context_id'] ) && $_GET['context_id'] === get_option( 'page_on_front' ) ) ? true : false;
|
1468 |
|
1469 |
if ( $rtmedia_interaction && isset( $rtmedia_interaction->context ) && 'profile' === $rtmedia_interaction->context->type ) {
|
1470 |
+
if ( function_exists( 'bp_core_get_user_domain' ) && ! empty( $rtmedia_query->query['context_id'] ) ) {
|
1471 |
+
$link .= trailingslashit( bp_core_get_user_domain( $rtmedia_query->query['context_id'] ) );
|
1472 |
} else {
|
1473 |
if ( $is_shortcode_on_home ) {
|
1474 |
$link .= $site_url;
|
1507 |
$link .= RTMEDIA_MEDIA_SLUG . '/';
|
1508 |
}
|
1509 |
|
1510 |
+
// For albums tab
|
1511 |
if ( isset( $rtmedia_query->media_query['album_id'] ) && intval( $rtmedia_query->media_query['album_id'] ) > 0 ) {
|
1512 |
$link .= $rtmedia_query->media_query['album_id'] . '/';
|
1513 |
}
|
1514 |
|
1515 |
+
// For those pages of which es id is set into action query
|
1516 |
+
if ( isset( $rtmedia_query->action_query->id ) && intval( $rtmedia_query->action_query->id ) > 0 ) {
|
1517 |
+
$link .= $rtmedia_query->action_query->id . '/';
|
1518 |
+
}
|
1519 |
+
|
1520 |
+
$allowed_types = array( 'album' );
|
1521 |
+
|
1522 |
+
// get all allowed media type
|
1523 |
+
foreach ( $rtmedia->allowed_types as $type ) {
|
1524 |
+
$name = strtoupper( $type['name'] );
|
1525 |
+
$allowed_types[] = constant( 'RTMEDIA_' . $name . '_SLUG' );
|
1526 |
+
}
|
1527 |
+
|
1528 |
if ( isset( $rtmedia_query->action_query->media_type ) ) {
|
|
|
1529 |
|
1530 |
+
/**
|
1531 |
+
* Filters media types.
|
1532 |
+
*
|
1533 |
+
* @param array Array of all media types.
|
1534 |
+
*/
|
1535 |
+
$media_type = apply_filters( 'rtmedia_media_type', $rtmedia_query->action_query->media_type );
|
1536 |
+
|
1537 |
+
if ( isset( $media_type ) ) {
|
1538 |
+
|
1539 |
+
/**
|
1540 |
+
* Filters allowed media types.
|
1541 |
+
*
|
1542 |
+
* @param array Array of all allowed media types.
|
1543 |
+
*/
|
1544 |
+
$media_type_array = apply_filters( 'rtmedia_media_type_support', $allowed_types );
|
1545 |
+
if ( in_array( $media_type, $media_type_array, true ) ) {
|
1546 |
+
$link .= $media_type . '/';
|
1547 |
+
}
|
1548 |
}
|
1549 |
+
|
1550 |
}
|
1551 |
|
1552 |
return apply_filters( 'rtmedia_pagination_page_link', $link . $page_url, $link, $page_url );
|
2279 |
$model = new RTMediaModel();
|
2280 |
$global_option = rtmedia_global_album_list( $selected_album_id );
|
2281 |
$global_albums = rtmedia_global_albums();
|
2282 |
+
|
2283 |
+
$user_id = apply_filters( 'rtmedia_album_by_user', get_current_user_id() );
|
2284 |
$album_objects = $model->get_media( array(
|
2285 |
+
'media_author' => $user_id,
|
2286 |
'media_type' => 'album',
|
2287 |
), false, 'context' );
|
2288 |
$option_group = '';
|
2523 |
$privacymodel = new RTMediaPrivacy( false );
|
2524 |
$privacy = $privacymodel->select_privacy_ui( $echo = false );
|
2525 |
|
2526 |
+
if ( isset( $rtmedia_query->media ) && is_array( $rtmedia_query->media ) && isset( $rtmedia_query->media['0'] ) ) {
|
2527 |
+
if ( isset( $rtmedia_query->media['0']->privacy ) && $rtmedia_query->media['0']->privacy != '80' ) {
|
2528 |
+
if ( $privacy && empty( $comment_media ) ) {
|
2529 |
+
return "<div class='rtmedia-edit-privacy rtm-field-wrap'><label for='privacy'>" . esc_html__( 'Privacy : ', 'buddypress-media' ) . '</label>' . $privacy . '</div>';
|
2530 |
+
}
|
2531 |
+
}
|
2532 |
}
|
|
|
2533 |
}
|
2534 |
|
2535 |
/**
|
2863 |
*
|
2864 |
* @return string HTML
|
2865 |
*/
|
2866 |
+
if ( ! function_exists( 'rtmedia_who_like_html' ) ) {
|
2867 |
+
function rtmedia_who_like_html( $like_count, $user_like_it ) {
|
2868 |
$like_count = ( $like_count ) ? $like_count : false;
|
2869 |
$user_like_it = ( $user_like_it ) ? true : false;
|
2870 |
$like_count_new = $like_count;
|
2871 |
+
$html = '';
|
2872 |
if ( $like_count == 1 && $user_like_it ) {
|
2873 |
/**
|
2874 |
* rtmedia you like text
|
2877 |
* @param int $user_like_it User Like it or Not
|
2878 |
* @return html TEXT to display
|
2879 |
*/
|
2880 |
+
$html = apply_filters( 'rtmedia_like_html_you_only_like', esc_html__( 'You like this', 'buddypress-media' ), $like_count, $user_like_it );
|
2881 |
} elseif ( $like_count ) {
|
2882 |
if ( $like_count > 1 && $user_like_it ) {
|
2883 |
/**
|
2887 |
* @param int $user_like_it User Like it or Not
|
2888 |
* @return html TEXT to display
|
2889 |
*/
|
2890 |
+
$html .= apply_filters( 'rtmedia_like_html_you_and_more_like', esc_html__( 'You and ', 'buddypress-media' ), $like_count, $user_like_it );
|
2891 |
$like_count_new--;
|
2892 |
}
|
2893 |
|
2897 |
* @param int $user_like_it User Like it or Not
|
2898 |
* @return INT Count to display
|
2899 |
*/
|
2900 |
+
$html .= apply_filters( 'rtmedia_like_html_you_and_more_like', $like_count, $user_like_it );
|
2901 |
|
2902 |
/**
|
2903 |
* rtmedia person or people likes it
|
2906 |
* @param int $user_like_it User Like it or Not
|
2907 |
* @return html TEXT to display
|
2908 |
*/
|
2909 |
+
$html .= apply_filters( 'rtmedia_like_html_othe_likes_this', _n( ' person likes this', ' people like this', $like_count_new, 'buddypress-media' ) ,$like_count, $user_like_it );
|
2910 |
}
|
2911 |
|
2912 |
/**
|
2916 |
* @param int $user_like_it User Like it or Not
|
2917 |
* @return html TEXT to display
|
2918 |
*/
|
2919 |
+
$html = apply_filters( 'rtmedia_who_like_html', $html ,$like_count, $user_like_it );
|
2920 |
return $html;
|
2921 |
}
|
2922 |
}
|
3625 |
return false;
|
3626 |
}
|
3627 |
|
|
|
3628 |
$license = $addon['args']['license_key'];
|
3629 |
|
3630 |
$addon_name = $addon['name'];
|
3867 |
echo rtmedia_bp_activity_entry_comments_id_callback( $rtmedia_id, 'rtmedia', $context );
|
3868 |
}
|
3869 |
}
|
3870 |
+
|
3871 |
+
/**
|
3872 |
+
* check if the show desc in album gallery setting is set or not
|
3873 |
+
* @return boolean if the general is enable then return true or else false
|
3874 |
+
*/
|
3875 |
+
if ( ! function_exists( 'rtmedia_get_album_description_setting' ) ) {
|
3876 |
+
function rtmedia_get_album_description_setting() {
|
3877 |
+
$return = false;
|
3878 |
+
global $rtmedia;
|
3879 |
+
if ( isset( $rtmedia->options ) && isset( $rtmedia->options['general_enableAlbums_description'] ) && 1 == intval( $rtmedia->options['general_enableAlbums_description'] ) ) {
|
3880 |
+
$return = true;
|
3881 |
+
}
|
3882 |
+
return $return;
|
3883 |
+
}
|
3884 |
+
}
|
3885 |
+
|
3886 |
+
|
3887 |
+
if ( ! function_exists( 'rtmedia_hide_title_media_gallery' ) ) {
|
3888 |
+
function rtmedia_hide_title_media_gallery( $media_type = false ) {
|
3889 |
+
$return = 'hide';
|
3890 |
+
$media_type_allow = array();
|
3891 |
+
$media_type_allow = apply_filters( 'rtmedia_show_title_media_gallery', $media_type_allow );
|
3892 |
+
if ( ! is_array( $media_type_allow ) ) {
|
3893 |
+
$media_type_allow = array();
|
3894 |
+
}
|
3895 |
+
|
3896 |
+
if ( is_array( $media_type_allow ) && ! empty( $media_type ) && in_array( $media_type, $media_type_allow ) ) {
|
3897 |
+
$return = 'show';
|
3898 |
+
}
|
3899 |
+
return $return;
|
3900 |
+
}
|
3901 |
+
}
|
3902 |
+
|
3903 |
+
|
3904 |
+
/**
|
3905 |
+
* echo the title of the media
|
3906 |
+
*
|
3907 |
+
* @global array $rtmedia_backbone
|
3908 |
+
*
|
3909 |
+
* @return string
|
3910 |
+
*/
|
3911 |
+
if ( ! function_exists( 'rtmedia_show_title' ) ) {
|
3912 |
+
function rtmedia_show_title() {
|
3913 |
+
|
3914 |
+
global $rtmedia_backbone;
|
3915 |
+
|
3916 |
+
if ( $rtmedia_backbone['backbone'] ) {
|
3917 |
+
echo '<%= media_class %>';
|
3918 |
+
} else {
|
3919 |
+
global $rtmedia_media;
|
3920 |
+
$media_class = 'hide';
|
3921 |
+
if ( isset( $rtmedia_media->media_type ) && function_exists( 'rtmedia_hide_title_media_gallery' ) ) {
|
3922 |
+
$media_class = rtmedia_hide_title_media_gallery( $rtmedia_media->media_type );
|
3923 |
+
}
|
3924 |
+
return $media_class;
|
3925 |
+
}
|
3926 |
+
}
|
3927 |
+
}
|
3928 |
+
|
app/main/controllers/upload/RTMediaUploadView.php
CHANGED
@@ -75,7 +75,7 @@ class RTMediaUploadView {
|
|
75 |
$up_privacy = new RTMediaPrivacy( false );
|
76 |
$up_privacy = $up_privacy->select_privacy_ui( false, 'rtSelectPrivacy' );
|
77 |
if ( $up_privacy ) {
|
78 |
-
$privacy = "<span> <label for='privacy'> <i class='dashicons dashicons-visibility rtmicon'></i>" . esc_html__( 'Privacy:
|
79 |
}
|
80 |
}
|
81 |
}
|
75 |
$up_privacy = new RTMediaPrivacy( false );
|
76 |
$up_privacy = $up_privacy->select_privacy_ui( false, 'rtSelectPrivacy' );
|
77 |
if ( $up_privacy ) {
|
78 |
+
$privacy = "<span> <label for='privacy'> <i class='dashicons dashicons-visibility rtmicon'></i>" . esc_html__( 'Privacy:', 'buddypress-media' ) . '</label>' . $up_privacy . '</span>';
|
79 |
}
|
80 |
}
|
81 |
}
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
4 |
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
5 |
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
|
6 |
-
Version: 4.3
|
7 |
Author: rtCamp
|
8 |
Text Domain: buddypress-media
|
9 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
@@ -22,7 +22,7 @@ if ( ! defined( 'RTMEDIA_VERSION' ) ) {
|
|
22 |
* The version of the plugin
|
23 |
*
|
24 |
*/
|
25 |
-
define( 'RTMEDIA_VERSION', '4.3' );
|
26 |
}
|
27 |
|
28 |
if ( ! defined( 'RTMEDIA_PATH' ) ) {
|
3 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
4 |
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
5 |
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
|
6 |
+
Version: 4.3.1
|
7 |
Author: rtCamp
|
8 |
Text Domain: buddypress-media
|
9 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
22 |
* The version of the plugin
|
23 |
*
|
24 |
*/
|
25 |
+
define( 'RTMEDIA_VERSION', '4.3.1' );
|
26 |
}
|
27 |
|
28 |
if ( ! defined( 'RTMEDIA_PATH' ) ) {
|
languages/buddypress-media.po
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.3\n"
|
6 |
"Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
|
7 |
-
"POT-Creation-Date: 2017-02-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -139,7 +139,7 @@ msgstr ""
|
|
139 |
|
140 |
#: app/admin/RTMediaAdmin.php:727 app/admin/RTMediaAdmin.php:783
|
141 |
#: app/admin/RTMediaAdmin.php:786 app/admin/RTMediaAdmin.php:949
|
142 |
-
#: app/admin/RTMediaAdmin.php:1312 app/helper/RTMediaSettings.php:
|
143 |
#: app/helper/RTMediaSupport.php:67 app/helper/RTMediaSupport.php:68
|
144 |
msgid "Support"
|
145 |
msgstr ""
|
@@ -329,7 +329,7 @@ msgid "rtMedia Privacy"
|
|
329 |
msgstr ""
|
330 |
|
331 |
#: app/admin/RTMediaAdmin.php:1428
|
332 |
-
#: app/main/controllers/privacy/RTMediaPrivacy.php:
|
333 |
msgid "Privacy"
|
334 |
msgstr ""
|
335 |
|
@@ -401,7 +401,7 @@ msgstr ""
|
|
401 |
|
402 |
#: app/admin/RTMediaAdmin.php:1576 app/admin/RTMediaAdmin.php:1594
|
403 |
#: app/admin/RTMediaAdmin.php:1612 app/admin/RTMediaFormHandler.php:446
|
404 |
-
#: app/admin/RTMediaFormHandler.php:457 app/helper/RTMediaSettings.php:
|
405 |
#: app/helper/RTMediaSupport.php:416 app/helper/RTMediaSupport.php:694
|
406 |
msgid "here"
|
407 |
msgstr ""
|
@@ -472,7 +472,7 @@ msgid "Need to specify atleast two radios, else use a checkbox instead"
|
|
472 |
msgstr ""
|
473 |
|
474 |
#: app/admin/RTMediaFormHandler.php:278 templates/media/album-gallery.php:67
|
475 |
-
#: templates/media/media-gallery.php:
|
476 |
msgid "Load More"
|
477 |
msgstr ""
|
478 |
|
@@ -495,7 +495,7 @@ msgid "Enable likes for media"
|
|
495 |
msgstr ""
|
496 |
|
497 |
#: app/admin/RTMediaFormHandler.php:306
|
498 |
-
msgid "
|
499 |
msgstr ""
|
500 |
|
501 |
#: app/admin/RTMediaFormHandler.php:311
|
@@ -665,7 +665,7 @@ msgstr ""
|
|
665 |
msgid "Media Types Settings"
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: app/admin/RTMediaFormHandler.php:568 app/helper/RTMediaSettings.php:
|
669 |
msgid "Media Type"
|
670 |
msgstr ""
|
671 |
|
@@ -802,15 +802,17 @@ msgid "Allow upload using status update box present on activity stream page"
|
|
802 |
msgstr ""
|
803 |
|
804 |
#: app/admin/RTMediaFormHandler.php:1021
|
805 |
-
msgid "
|
806 |
msgstr ""
|
807 |
|
808 |
-
#: app/admin/RTMediaFormHandler.php:1026
|
809 |
-
msgid "
|
|
|
|
|
810 |
msgstr ""
|
811 |
|
812 |
-
#: app/admin/RTMediaFormHandler.php:1031
|
813 |
-
msgid "Disable upload
|
814 |
msgstr ""
|
815 |
|
816 |
#: app/admin/RTMediaFormHandler.php:1042
|
@@ -861,6 +863,14 @@ msgid ""
|
|
861 |
"^above^ settings."
|
862 |
msgstr ""
|
863 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
864 |
#: app/admin/templates/tmpl-rtm-album-favourites-importer.php:4
|
865 |
msgid "User's Favorites:"
|
866 |
msgstr ""
|
@@ -1378,73 +1388,73 @@ msgstr ""
|
|
1378 |
msgid "other friends liked your"
|
1379 |
msgstr ""
|
1380 |
|
1381 |
-
#: app/helper/RTMediaSettings.php:
|
1382 |
msgid "BuddyPress Media Addons for Photos"
|
1383 |
msgstr ""
|
1384 |
|
1385 |
-
#: app/helper/RTMediaSettings.php:
|
1386 |
msgid "rtMedia Themes"
|
1387 |
msgstr ""
|
1388 |
|
1389 |
-
#: app/helper/RTMediaSettings.php:
|
1390 |
msgid ""
|
1391 |
"Currently your network allows uploading of the following file types. You "
|
1392 |
"can change the settings %s"
|
1393 |
msgstr ""
|
1394 |
|
1395 |
-
#: app/helper/RTMediaSettings.php:
|
1396 |
msgid "Atleast one Media Type Must be selected"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
-
#: app/helper/RTMediaSettings.php:
|
1400 |
msgid "\"Number of media\" count value should be numeric and greater than 0."
|
1401 |
msgstr ""
|
1402 |
|
1403 |
-
#: app/helper/RTMediaSettings.php:
|
1404 |
msgid "Default Count"
|
1405 |
msgstr ""
|
1406 |
|
1407 |
-
#: app/helper/RTMediaSettings.php:
|
1408 |
msgid "Settings saved."
|
1409 |
msgstr ""
|
1410 |
|
1411 |
-
#: app/helper/RTMediaSettings.php:
|
1412 |
msgid "If you make changes to width, height or crop settings, you must use "
|
1413 |
msgstr ""
|
1414 |
|
1415 |
-
#: app/helper/RTMediaSettings.php:
|
1416 |
msgid "Regenerate Thumbnail Plugin"
|
1417 |
msgstr ""
|
1418 |
|
1419 |
-
#: app/helper/RTMediaSettings.php:
|
1420 |
msgid " to regenerate old images."
|
1421 |
msgstr ""
|
1422 |
|
1423 |
-
#: app/helper/RTMediaSettings.php:
|
1424 |
msgid "BuddyPress Media 2.6 requires a database upgrade. "
|
1425 |
msgstr ""
|
1426 |
|
1427 |
-
#: app/helper/RTMediaSettings.php:
|
1428 |
msgid "Update Database"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
-
#: app/helper/RTMediaSettings.php:
|
1432 |
msgid ""
|
1433 |
"If your site has some issues due to rtMedia and you want one on one support "
|
1434 |
"then you can create a support topic on the "
|
1435 |
msgstr ""
|
1436 |
|
1437 |
-
#: app/helper/RTMediaSettings.php:
|
1438 |
msgid "rtMedia Support Forum"
|
1439 |
msgstr ""
|
1440 |
|
1441 |
-
#: app/helper/RTMediaSettings.php:
|
1442 |
msgid ""
|
1443 |
"If you have any suggestions, enhancements or bug reports, then you can open "
|
1444 |
"a new issue on "
|
1445 |
msgstr ""
|
1446 |
|
1447 |
-
#: app/helper/RTMediaSettings.php:
|
1448 |
msgid "GitHub"
|
1449 |
msgstr ""
|
1450 |
|
@@ -2261,8 +2271,8 @@ msgstr ""
|
|
2261 |
#: app/main/RTMedia.php:1032
|
2262 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:67
|
2263 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
|
2264 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2265 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2266 |
#: templates/media/album-single-edit.php:78
|
2267 |
msgid "Delete"
|
2268 |
msgstr ""
|
@@ -2350,7 +2360,7 @@ msgstr ""
|
|
2350 |
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:336
|
2351 |
#: app/main/controllers/media/RTMediaComment.php:172
|
2352 |
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:100
|
2353 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2354 |
msgid "You are not allowed to upload/attach media."
|
2355 |
msgstr ""
|
2356 |
|
@@ -2630,7 +2640,7 @@ msgid "Group Admin only"
|
|
2630 |
msgstr ""
|
2631 |
|
2632 |
#: app/main/controllers/group/RTMediaGroupExtension.php:130
|
2633 |
-
#: app/main/controllers/privacy/RTMediaPrivacy.php:
|
2634 |
#: templates/media/album-single-edit.php:55
|
2635 |
msgid "Save Changes"
|
2636 |
msgstr ""
|
@@ -2785,19 +2795,19 @@ msgstr ""
|
|
2785 |
msgid "%1$s added %4$d %3$s"
|
2786 |
msgstr ""
|
2787 |
|
2788 |
-
#: app/main/controllers/privacy/RTMediaPrivacy.php:
|
2789 |
msgid "No changes were made to your account."
|
2790 |
msgstr ""
|
2791 |
|
2792 |
-
#: app/main/controllers/privacy/RTMediaPrivacy.php:
|
2793 |
msgid "Your default privacy settings saved successfully."
|
2794 |
msgstr ""
|
2795 |
|
2796 |
-
#: app/main/controllers/privacy/RTMediaPrivacy.php:
|
2797 |
msgid "Default Privacy"
|
2798 |
msgstr ""
|
2799 |
|
2800 |
-
#: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:
|
2801 |
msgid "You do not have sufficient privileges to view this gallery"
|
2802 |
msgstr ""
|
2803 |
|
@@ -2822,18 +2832,18 @@ msgstr ""
|
|
2822 |
msgid "Invalid attribute passed for rtmedia_gallery shortcode."
|
2823 |
msgstr ""
|
2824 |
|
2825 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
2826 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
2827 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
2828 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
2829 |
msgid "Ooops !!! Invalid access. No nonce was found !!"
|
2830 |
msgstr ""
|
2831 |
|
2832 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
2833 |
msgid "Media updated Sucessfully"
|
2834 |
msgstr ""
|
2835 |
|
2836 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
2837 |
msgid "Error in updating Media"
|
2838 |
msgstr ""
|
2839 |
|
@@ -2932,7 +2942,7 @@ msgid "rtMedia Updates"
|
|
2932 |
msgstr ""
|
2933 |
|
2934 |
#: app/main/controllers/template/rtmedia-ajax-actions.php:88
|
2935 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2936 |
msgid "Comment"
|
2937 |
msgstr ""
|
2938 |
|
@@ -2952,103 +2962,107 @@ msgstr ""
|
|
2952 |
msgid "There are no comments on this media yet."
|
2953 |
msgstr ""
|
2954 |
|
|
|
|
|
|
|
|
|
2955 |
#: app/main/controllers/template/rtmedia-functions.php:1284
|
2956 |
msgid "Delete Comment"
|
2957 |
msgstr ""
|
2958 |
|
2959 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2960 |
msgid "Go to page no : "
|
2961 |
msgstr ""
|
2962 |
|
2963 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2964 |
msgid "Go"
|
2965 |
msgstr ""
|
2966 |
|
2967 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2968 |
msgid "Type Comment..."
|
2969 |
msgstr ""
|
2970 |
|
2971 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2972 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2973 |
msgid "Delete Media"
|
2974 |
msgstr ""
|
2975 |
|
2976 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2977 |
msgid "Profile Albums"
|
2978 |
msgstr ""
|
2979 |
|
2980 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2981 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2982 |
msgid "Group Albums"
|
2983 |
msgstr ""
|
2984 |
|
2985 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2986 |
msgid "Privacy : "
|
2987 |
msgstr ""
|
2988 |
|
2989 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2990 |
msgid "You like this"
|
2991 |
msgstr ""
|
2992 |
|
2993 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2994 |
msgid "You and "
|
2995 |
msgstr ""
|
2996 |
|
2997 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2998 |
msgid " person likes this"
|
2999 |
msgid_plural " people like this"
|
3000 |
msgstr[0] ""
|
3001 |
msgstr[1] ""
|
3002 |
|
3003 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3004 |
msgid "Public"
|
3005 |
msgstr ""
|
3006 |
|
3007 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3008 |
msgid "All members"
|
3009 |
msgstr ""
|
3010 |
|
3011 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3012 |
msgid "Your friends"
|
3013 |
msgstr ""
|
3014 |
|
3015 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3016 |
msgid "Only you"
|
3017 |
msgstr ""
|
3018 |
|
3019 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3020 |
msgid "Blocked temporarily"
|
3021 |
msgstr ""
|
3022 |
|
3023 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3024 |
msgid "%s ago "
|
3025 |
msgstr ""
|
3026 |
|
3027 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3028 |
msgid "1 second"
|
3029 |
msgid_plural "%s seconds"
|
3030 |
msgstr[0] ""
|
3031 |
msgstr[1] ""
|
3032 |
|
3033 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3034 |
msgid "1 minute"
|
3035 |
msgid_plural "%s minutes"
|
3036 |
msgstr[0] ""
|
3037 |
msgstr[1] ""
|
3038 |
|
3039 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3040 |
msgid "1 hour"
|
3041 |
msgid_plural "%s hours"
|
3042 |
msgstr[0] ""
|
3043 |
msgstr[1] ""
|
3044 |
|
3045 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
3046 |
#. translators: date format, see http:php.net/date
|
3047 |
msgid "View Conversation"
|
3048 |
msgstr ""
|
3049 |
|
3050 |
#: app/main/controllers/upload/RTMediaUploadView.php:78
|
3051 |
-
msgid "Privacy:
|
3052 |
msgstr ""
|
3053 |
|
3054 |
#: app/main/controllers/upload/RTMediaUploadView.php:85
|
@@ -3131,6 +3145,12 @@ msgstr ""
|
|
3131 |
msgid "Album List"
|
3132 |
msgstr ""
|
3133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3134 |
#: templates/media/album-single-edit.php:14
|
3135 |
msgid "Edit Album : "
|
3136 |
msgstr ""
|
@@ -3186,10 +3206,14 @@ msgstr ""
|
|
3186 |
msgid "Sorry !! You can not edit this album."
|
3187 |
msgstr ""
|
3188 |
|
3189 |
-
#: templates/media/media-gallery.php:
|
3190 |
msgid "Media Gallery"
|
3191 |
msgstr ""
|
3192 |
|
|
|
|
|
|
|
|
|
3193 |
#: templates/media/media-single-edit.php:48
|
3194 |
msgid "Save"
|
3195 |
msgstr ""
|
2 |
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.3.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
|
7 |
+
"POT-Creation-Date: 2017-02-23 06:18:32+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
139 |
|
140 |
#: app/admin/RTMediaAdmin.php:727 app/admin/RTMediaAdmin.php:783
|
141 |
#: app/admin/RTMediaAdmin.php:786 app/admin/RTMediaAdmin.php:949
|
142 |
+
#: app/admin/RTMediaAdmin.php:1312 app/helper/RTMediaSettings.php:247
|
143 |
#: app/helper/RTMediaSupport.php:67 app/helper/RTMediaSupport.php:68
|
144 |
msgid "Support"
|
145 |
msgstr ""
|
329 |
msgstr ""
|
330 |
|
331 |
#: app/admin/RTMediaAdmin.php:1428
|
332 |
+
#: app/main/controllers/privacy/RTMediaPrivacy.php:428
|
333 |
msgid "Privacy"
|
334 |
msgstr ""
|
335 |
|
401 |
|
402 |
#: app/admin/RTMediaAdmin.php:1576 app/admin/RTMediaAdmin.php:1594
|
403 |
#: app/admin/RTMediaAdmin.php:1612 app/admin/RTMediaFormHandler.php:446
|
404 |
+
#: app/admin/RTMediaFormHandler.php:457 app/helper/RTMediaSettings.php:323
|
405 |
#: app/helper/RTMediaSupport.php:416 app/helper/RTMediaSupport.php:694
|
406 |
msgid "here"
|
407 |
msgstr ""
|
472 |
msgstr ""
|
473 |
|
474 |
#: app/admin/RTMediaFormHandler.php:278 templates/media/album-gallery.php:67
|
475 |
+
#: templates/media/media-gallery.php:84
|
476 |
msgid "Load More"
|
477 |
msgstr ""
|
478 |
|
495 |
msgstr ""
|
496 |
|
497 |
#: app/admin/RTMediaFormHandler.php:306
|
498 |
+
msgid "Enabling this setting will add like feature for media."
|
499 |
msgstr ""
|
500 |
|
501 |
#: app/admin/RTMediaFormHandler.php:311
|
665 |
msgid "Media Types Settings"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: app/admin/RTMediaFormHandler.php:568 app/helper/RTMediaSettings.php:345
|
669 |
msgid "Media Type"
|
670 |
msgstr ""
|
671 |
|
802 |
msgstr ""
|
803 |
|
804 |
#: app/admin/RTMediaFormHandler.php:1021
|
805 |
+
msgid "Enable media in comment"
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: app/admin/RTMediaFormHandler.php:1026
|
809 |
+
msgid ""
|
810 |
+
"This will allow users to upload media in comment section for originally "
|
811 |
+
"uploaded media up to 1 level."
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: app/admin/RTMediaFormHandler.php:1031 app/admin/RTMediaFormHandler.php:1036
|
815 |
+
msgid "Disable upload in comment media"
|
816 |
msgstr ""
|
817 |
|
818 |
#: app/admin/RTMediaFormHandler.php:1042
|
863 |
"^above^ settings."
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: app/admin/RTMediaFormHandler.php:1098
|
867 |
+
msgid "Show album description"
|
868 |
+
msgstr ""
|
869 |
+
|
870 |
+
#: app/admin/RTMediaFormHandler.php:1104
|
871 |
+
msgid "This will show description of an album under album gallery page."
|
872 |
+
msgstr ""
|
873 |
+
|
874 |
#: app/admin/templates/tmpl-rtm-album-favourites-importer.php:4
|
875 |
msgid "User's Favorites:"
|
876 |
msgstr ""
|
1388 |
msgid "other friends liked your"
|
1389 |
msgstr ""
|
1390 |
|
1391 |
+
#: app/helper/RTMediaSettings.php:242
|
1392 |
msgid "BuddyPress Media Addons for Photos"
|
1393 |
msgstr ""
|
1394 |
|
1395 |
+
#: app/helper/RTMediaSettings.php:252
|
1396 |
msgid "rtMedia Themes"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
+
#: app/helper/RTMediaSettings.php:322
|
1400 |
msgid ""
|
1401 |
"Currently your network allows uploading of the following file types. You "
|
1402 |
"can change the settings %s"
|
1403 |
msgstr ""
|
1404 |
|
1405 |
+
#: app/helper/RTMediaSettings.php:343 app/helper/RTMediaSettings.php:345
|
1406 |
msgid "Atleast one Media Type Must be selected"
|
1407 |
msgstr ""
|
1408 |
|
1409 |
+
#: app/helper/RTMediaSettings.php:354 app/helper/RTMediaSettings.php:356
|
1410 |
msgid "\"Number of media\" count value should be numeric and greater than 0."
|
1411 |
msgstr ""
|
1412 |
|
1413 |
+
#: app/helper/RTMediaSettings.php:356
|
1414 |
msgid "Default Count"
|
1415 |
msgstr ""
|
1416 |
|
1417 |
+
#: app/helper/RTMediaSettings.php:361
|
1418 |
msgid "Settings saved."
|
1419 |
msgstr ""
|
1420 |
|
1421 |
+
#: app/helper/RTMediaSettings.php:385
|
1422 |
msgid "If you make changes to width, height or crop settings, you must use "
|
1423 |
msgstr ""
|
1424 |
|
1425 |
+
#: app/helper/RTMediaSettings.php:386
|
1426 |
msgid "Regenerate Thumbnail Plugin"
|
1427 |
msgstr ""
|
1428 |
|
1429 |
+
#: app/helper/RTMediaSettings.php:387
|
1430 |
msgid " to regenerate old images."
|
1431 |
msgstr ""
|
1432 |
|
1433 |
+
#: app/helper/RTMediaSettings.php:410
|
1434 |
msgid "BuddyPress Media 2.6 requires a database upgrade. "
|
1435 |
msgstr ""
|
1436 |
|
1437 |
+
#: app/helper/RTMediaSettings.php:411
|
1438 |
msgid "Update Database"
|
1439 |
msgstr ""
|
1440 |
|
1441 |
+
#: app/helper/RTMediaSettings.php:425
|
1442 |
msgid ""
|
1443 |
"If your site has some issues due to rtMedia and you want one on one support "
|
1444 |
"then you can create a support topic on the "
|
1445 |
msgstr ""
|
1446 |
|
1447 |
+
#: app/helper/RTMediaSettings.php:426
|
1448 |
msgid "rtMedia Support Forum"
|
1449 |
msgstr ""
|
1450 |
|
1451 |
+
#: app/helper/RTMediaSettings.php:428
|
1452 |
msgid ""
|
1453 |
"If you have any suggestions, enhancements or bug reports, then you can open "
|
1454 |
"a new issue on "
|
1455 |
msgstr ""
|
1456 |
|
1457 |
+
#: app/helper/RTMediaSettings.php:429 app/helper/RTMediaSupport.php:467
|
1458 |
msgid "GitHub"
|
1459 |
msgstr ""
|
1460 |
|
2271 |
#: app/main/RTMedia.php:1032
|
2272 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:67
|
2273 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
|
2274 |
+
#: app/main/controllers/template/rtmedia-functions.php:2047
|
2275 |
+
#: app/main/controllers/template/rtmedia-functions.php:2056
|
2276 |
#: templates/media/album-single-edit.php:78
|
2277 |
msgid "Delete"
|
2278 |
msgstr ""
|
2360 |
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:336
|
2361 |
#: app/main/controllers/media/RTMediaComment.php:172
|
2362 |
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:100
|
2363 |
+
#: app/main/controllers/template/rtmedia-functions.php:2086
|
2364 |
msgid "You are not allowed to upload/attach media."
|
2365 |
msgstr ""
|
2366 |
|
2640 |
msgstr ""
|
2641 |
|
2642 |
#: app/main/controllers/group/RTMediaGroupExtension.php:130
|
2643 |
+
#: app/main/controllers/privacy/RTMediaPrivacy.php:420
|
2644 |
#: templates/media/album-single-edit.php:55
|
2645 |
msgid "Save Changes"
|
2646 |
msgstr ""
|
2795 |
msgid "%1$s added %4$d %3$s"
|
2796 |
msgstr ""
|
2797 |
|
2798 |
+
#: app/main/controllers/privacy/RTMediaPrivacy.php:382
|
2799 |
msgid "No changes were made to your account."
|
2800 |
msgstr ""
|
2801 |
|
2802 |
+
#: app/main/controllers/privacy/RTMediaPrivacy.php:385
|
2803 |
msgid "Your default privacy settings saved successfully."
|
2804 |
msgstr ""
|
2805 |
|
2806 |
+
#: app/main/controllers/privacy/RTMediaPrivacy.php:409
|
2807 |
msgid "Default Privacy"
|
2808 |
msgstr ""
|
2809 |
|
2810 |
+
#: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:256
|
2811 |
msgid "You do not have sufficient privileges to view this gallery"
|
2812 |
msgstr ""
|
2813 |
|
2832 |
msgid "Invalid attribute passed for rtmedia_gallery shortcode."
|
2833 |
msgstr ""
|
2834 |
|
2835 |
+
#: app/main/controllers/template/RTMediaTemplate.php:375
|
2836 |
+
#: app/main/controllers/template/RTMediaTemplate.php:468
|
2837 |
+
#: app/main/controllers/template/RTMediaTemplate.php:566
|
2838 |
+
#: app/main/controllers/template/RTMediaTemplate.php:767
|
2839 |
msgid "Ooops !!! Invalid access. No nonce was found !!"
|
2840 |
msgstr ""
|
2841 |
|
2842 |
+
#: app/main/controllers/template/RTMediaTemplate.php:382
|
2843 |
msgid "Media updated Sucessfully"
|
2844 |
msgstr ""
|
2845 |
|
2846 |
+
#: app/main/controllers/template/RTMediaTemplate.php:388
|
2847 |
msgid "Error in updating Media"
|
2848 |
msgstr ""
|
2849 |
|
2942 |
msgstr ""
|
2943 |
|
2944 |
#: app/main/controllers/template/rtmedia-ajax-actions.php:88
|
2945 |
+
#: app/main/controllers/template/rtmedia-functions.php:1986
|
2946 |
msgid "Comment"
|
2947 |
msgstr ""
|
2948 |
|
2962 |
msgid "There are no comments on this media yet."
|
2963 |
msgstr ""
|
2964 |
|
2965 |
+
#: app/main/controllers/template/rtmedia-functions.php:1251
|
2966 |
+
msgid "Show all %s comments"
|
2967 |
+
msgstr ""
|
2968 |
+
|
2969 |
#: app/main/controllers/template/rtmedia-functions.php:1284
|
2970 |
msgid "Delete Comment"
|
2971 |
msgstr ""
|
2972 |
|
2973 |
+
#: app/main/controllers/template/rtmedia-functions.php:1618
|
2974 |
msgid "Go to page no : "
|
2975 |
msgstr ""
|
2976 |
|
2977 |
+
#: app/main/controllers/template/rtmedia-functions.php:1623
|
2978 |
msgid "Go"
|
2979 |
msgstr ""
|
2980 |
|
2981 |
+
#: app/main/controllers/template/rtmedia-functions.php:1984
|
2982 |
msgid "Type Comment..."
|
2983 |
msgstr ""
|
2984 |
|
2985 |
+
#: app/main/controllers/template/rtmedia-functions.php:2047
|
2986 |
+
#: app/main/controllers/template/rtmedia-functions.php:2056
|
2987 |
msgid "Delete Media"
|
2988 |
msgstr ""
|
2989 |
|
2990 |
+
#: app/main/controllers/template/rtmedia-functions.php:2304
|
2991 |
msgid "Profile Albums"
|
2992 |
msgstr ""
|
2993 |
|
2994 |
+
#: app/main/controllers/template/rtmedia-functions.php:2308
|
2995 |
+
#: app/main/controllers/template/rtmedia-functions.php:2353
|
2996 |
msgid "Group Albums"
|
2997 |
msgstr ""
|
2998 |
|
2999 |
+
#: app/main/controllers/template/rtmedia-functions.php:2529
|
3000 |
msgid "Privacy : "
|
3001 |
msgstr ""
|
3002 |
|
3003 |
+
#: app/main/controllers/template/rtmedia-functions.php:2880
|
3004 |
msgid "You like this"
|
3005 |
msgstr ""
|
3006 |
|
3007 |
+
#: app/main/controllers/template/rtmedia-functions.php:2890
|
3008 |
msgid "You and "
|
3009 |
msgstr ""
|
3010 |
|
3011 |
+
#: app/main/controllers/template/rtmedia-functions.php:2909
|
3012 |
msgid " person likes this"
|
3013 |
msgid_plural " people like this"
|
3014 |
msgstr[0] ""
|
3015 |
msgstr[1] ""
|
3016 |
|
3017 |
+
#: app/main/controllers/template/rtmedia-functions.php:3014
|
3018 |
msgid "Public"
|
3019 |
msgstr ""
|
3020 |
|
3021 |
+
#: app/main/controllers/template/rtmedia-functions.php:3019
|
3022 |
msgid "All members"
|
3023 |
msgstr ""
|
3024 |
|
3025 |
+
#: app/main/controllers/template/rtmedia-functions.php:3024
|
3026 |
msgid "Your friends"
|
3027 |
msgstr ""
|
3028 |
|
3029 |
+
#: app/main/controllers/template/rtmedia-functions.php:3029
|
3030 |
msgid "Only you"
|
3031 |
msgstr ""
|
3032 |
|
3033 |
+
#: app/main/controllers/template/rtmedia-functions.php:3034
|
3034 |
msgid "Blocked temporarily"
|
3035 |
msgstr ""
|
3036 |
|
3037 |
+
#: app/main/controllers/template/rtmedia-functions.php:3087
|
3038 |
msgid "%s ago "
|
3039 |
msgstr ""
|
3040 |
|
3041 |
+
#: app/main/controllers/template/rtmedia-functions.php:3101
|
3042 |
msgid "1 second"
|
3043 |
msgid_plural "%s seconds"
|
3044 |
msgstr[0] ""
|
3045 |
msgstr[1] ""
|
3046 |
|
3047 |
+
#: app/main/controllers/template/rtmedia-functions.php:3105
|
3048 |
msgid "1 minute"
|
3049 |
msgid_plural "%s minutes"
|
3050 |
msgstr[0] ""
|
3051 |
msgstr[1] ""
|
3052 |
|
3053 |
+
#: app/main/controllers/template/rtmedia-functions.php:3109
|
3054 |
msgid "1 hour"
|
3055 |
msgid_plural "%s hours"
|
3056 |
msgstr[0] ""
|
3057 |
msgstr[1] ""
|
3058 |
|
3059 |
+
#: app/main/controllers/template/rtmedia-functions.php:3709
|
3060 |
#. translators: date format, see http:php.net/date
|
3061 |
msgid "View Conversation"
|
3062 |
msgstr ""
|
3063 |
|
3064 |
#: app/main/controllers/upload/RTMediaUploadView.php:78
|
3065 |
+
msgid "Privacy:"
|
3066 |
msgstr ""
|
3067 |
|
3068 |
#: app/main/controllers/upload/RTMediaUploadView.php:85
|
3145 |
msgid "Album List"
|
3146 |
msgstr ""
|
3147 |
|
3148 |
+
#: templates/media/album-gallery.php:75
|
3149 |
+
#: templates/media/media-single-edit.php:63
|
3150 |
+
#: templates/media/media-single.php:165
|
3151 |
+
msgid "Sorry !! There's no media found for the request !!"
|
3152 |
+
msgstr ""
|
3153 |
+
|
3154 |
#: templates/media/album-single-edit.php:14
|
3155 |
msgid "Edit Album : "
|
3156 |
msgstr ""
|
3206 |
msgid "Sorry !! You can not edit this album."
|
3207 |
msgstr ""
|
3208 |
|
3209 |
+
#: templates/media/media-gallery.php:17 templates/media/media-gallery.php:37
|
3210 |
msgid "Media Gallery"
|
3211 |
msgstr ""
|
3212 |
|
3213 |
+
#: templates/media/media-gallery.php:92
|
3214 |
+
msgid "Oops !! There's no media found for the request !!"
|
3215 |
+
msgstr ""
|
3216 |
+
|
3217 |
#: templates/media/media-single-edit.php:48
|
3218 |
msgid "Save"
|
3219 |
msgstr ""
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
|
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 4.1
|
8 |
Tested up to: 4.7.2
|
9 |
-
Stable tag: 4.3
|
10 |
|
11 |
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
@@ -137,6 +137,20 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
137 |
|
138 |
== Changelog ==
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
= 4.3 [Feb 14, 2017] =
|
141 |
|
142 |
* NEW FEATURES
|
@@ -1319,8 +1333,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
1319 |
|
1320 |
== Upgrade Notice ==
|
1321 |
|
1322 |
-
= 4.3 =
|
1323 |
-
|
1324 |
|
1325 |
== Sponsors ==
|
1326 |
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 4.1
|
8 |
Tested up to: 4.7.2
|
9 |
+
Stable tag: 4.3.1
|
10 |
|
11 |
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
137 |
|
138 |
== Changelog ==
|
139 |
|
140 |
+
= 4.3.1 [Feb 23, 2017] =
|
141 |
+
|
142 |
+
* ENHANCEMENTS
|
143 |
+
|
144 |
+
* Remove media titles from media tab
|
145 |
+
* Change text in rtMedia setting for comment media
|
146 |
+
* Added: Filter to change user id while fetching user's album list
|
147 |
+
|
148 |
+
* FIXED
|
149 |
+
|
150 |
+
* Pagination and navigation fix in media tab
|
151 |
+
* Warnings when uploading media in activity comment
|
152 |
+
* Privacy for reported media in moderation
|
153 |
+
|
154 |
= 4.3 [Feb 14, 2017] =
|
155 |
|
156 |
* NEW FEATURES
|
1333 |
|
1334 |
== Upgrade Notice ==
|
1335 |
|
1336 |
+
= 4.3.1 =
|
1337 |
+
Remove media title & fixed pagination in media tab along with several other bugs fixed. Please update/re-save the permalinks after the plugin update.
|
1338 |
|
1339 |
== Sponsors ==
|
1340 |
|
templates/media/album-gallery.php
CHANGED
@@ -72,7 +72,7 @@ $rand_id = rand( 0, 1000 );
|
|
72 |
<?php } else { ?>
|
73 |
<p class="rtmedia-no-media-found">
|
74 |
<?php
|
75 |
-
|
76 |
?>
|
77 |
</p>
|
78 |
<?php } ?>
|
72 |
<?php } else { ?>
|
73 |
<p class="rtmedia-no-media-found">
|
74 |
<?php
|
75 |
+
apply_filters( 'rtmedia_no_media_found_message_filter', esc_html_e( 'Sorry !! There\'s no media found for the request !!', 'buddypress-media' ) );
|
76 |
?>
|
77 |
</p>
|
78 |
<?php } ?>
|
templates/media/media-gallery-item.php
CHANGED
@@ -35,7 +35,7 @@ if ( isset( $is_edit_allowed[0] ) ) {
|
|
35 |
</div>
|
36 |
|
37 |
<?php if ( apply_filters( 'rtmedia_media_gallery_show_media_title', true ) ) { ?>
|
38 |
-
<div class="rtmedia-item-title">
|
39 |
<h4 title="<?php echo esc_attr( rtmedia_title() ); ?>">
|
40 |
<?php echo esc_html( rtmedia_title() ); ?>
|
41 |
</h4>
|
35 |
</div>
|
36 |
|
37 |
<?php if ( apply_filters( 'rtmedia_media_gallery_show_media_title', true ) ) { ?>
|
38 |
+
<div class="rtmedia-item-title <?php echo esc_html( rtmedia_show_title() ); ?>" >
|
39 |
<h4 title="<?php echo esc_attr( rtmedia_title() ); ?>">
|
40 |
<?php echo esc_html( rtmedia_title() ); ?>
|
41 |
</h4>
|
templates/media/media-gallery.php
CHANGED
@@ -13,13 +13,18 @@ $rand_id = rand( 0, 1000 );
|
|
13 |
if ( isset( $rtmedia_query->is_gallery_shortcode ) && true === $rtmedia_query->is_gallery_shortcode ) { // if gallery is displayed using gallery shortcode
|
14 |
?>
|
15 |
<div id="rtm-gallery-title-container" class="clearfix">
|
16 |
-
<h2 class="rtm-gallery-title"
|
|
|
|
|
|
|
|
|
|
|
17 |
<div id="rtm-media-options" class="rtm-media-options">
|
18 |
<?php do_action( 'rtmedia_media_gallery_shortcode_actions' ); ?>
|
19 |
</div>
|
20 |
</div>
|
21 |
|
22 |
-
<?php do_action( '
|
23 |
|
24 |
<?php } else {
|
25 |
?>
|
@@ -33,11 +38,15 @@ $rand_id = rand( 0, 1000 );
|
|
33 |
}
|
34 |
?>
|
35 |
</h2>
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
38 |
</div>
|
39 |
|
40 |
-
<?php do_action( '
|
41 |
|
42 |
<div id="rtm-media-gallery-uploader" class="rtm-media-gallery-uploader">
|
43 |
<?php rtmedia_uploader( array( 'is_up_shortcode' => false ) ); ?>
|
@@ -80,10 +89,11 @@ $rand_id = rand( 0, 1000 );
|
|
80 |
<?php } else { ?>
|
81 |
<p class="rtmedia-no-media-found">
|
82 |
<?php
|
83 |
-
|
84 |
?>
|
85 |
</p>
|
86 |
-
<?php }
|
|
|
87 |
|
88 |
<?php do_action( 'rtmedia_after_media_gallery' ); ?>
|
89 |
|
13 |
if ( isset( $rtmedia_query->is_gallery_shortcode ) && true === $rtmedia_query->is_gallery_shortcode ) { // if gallery is displayed using gallery shortcode
|
14 |
?>
|
15 |
<div id="rtm-gallery-title-container" class="clearfix">
|
16 |
+
<h2 class="rtm-gallery-title">
|
17 |
+
<?php esc_html_e( 'Media Gallery', 'buddypress-media' ); ?>
|
18 |
+
</h2>
|
19 |
+
|
20 |
+
<?php do_action( 'rtmedia_gallery_after_title' ); ?>
|
21 |
+
|
22 |
<div id="rtm-media-options" class="rtm-media-options">
|
23 |
<?php do_action( 'rtmedia_media_gallery_shortcode_actions' ); ?>
|
24 |
</div>
|
25 |
</div>
|
26 |
|
27 |
+
<?php do_action( 'rtmedia_gallery_after_title_container' ); ?>
|
28 |
|
29 |
<?php } else {
|
30 |
?>
|
38 |
}
|
39 |
?>
|
40 |
</h2>
|
41 |
+
|
42 |
+
<?php do_action( 'rtmedia_gallery_after_title' ); ?>
|
43 |
+
|
44 |
+
<div id="rtm-media-options" class="rtm-media-options">
|
45 |
+
<?php do_action( 'rtmedia_media_gallery_actions' ); ?>
|
46 |
+
</div>
|
47 |
</div>
|
48 |
|
49 |
+
<?php do_action( 'rtmedia_gallery_after_title_container' ); ?>
|
50 |
|
51 |
<div id="rtm-media-gallery-uploader" class="rtm-media-gallery-uploader">
|
52 |
<?php rtmedia_uploader( array( 'is_up_shortcode' => false ) ); ?>
|
89 |
<?php } else { ?>
|
90 |
<p class="rtmedia-no-media-found">
|
91 |
<?php
|
92 |
+
apply_filters( 'rtmedia_no_media_found_message_filter', esc_html_e( 'Oops !! There\'s no media found for the request !!','buddypress-media' ) );
|
93 |
?>
|
94 |
</p>
|
95 |
+
<?php } // End if().
|
96 |
+
?>
|
97 |
|
98 |
<?php do_action( 'rtmedia_after_media_gallery' ); ?>
|
99 |
|
templates/media/media-single-edit.php
CHANGED
@@ -60,10 +60,10 @@
|
|
60 |
?>
|
61 |
<p class="rtmedia-no-media-found">
|
62 |
<?php
|
63 |
-
|
64 |
?>
|
65 |
</p>
|
66 |
<?php
|
67 |
-
endif;
|
68 |
?>
|
69 |
</div>
|
60 |
?>
|
61 |
<p class="rtmedia-no-media-found">
|
62 |
<?php
|
63 |
+
apply_filters( 'rtmedia_no_media_found_message_filter', esc_html_e( 'Sorry !! There\'s no media found for the request !!','buddypress-media' ) );
|
64 |
?>
|
65 |
</p>
|
66 |
<?php
|
67 |
+
endif; // End if().
|
68 |
?>
|
69 |
</div>
|
templates/media/media-single.php
CHANGED
@@ -162,7 +162,7 @@
|
|
162 |
|
163 |
<?php else : ?>
|
164 |
<p class="rtmedia-no-media-found"><?php
|
165 |
-
|
166 |
?>
|
167 |
</p>
|
168 |
<?php endif; ?>
|
162 |
|
163 |
<?php else : ?>
|
164 |
<p class="rtmedia-no-media-found"><?php
|
165 |
+
apply_filters( 'rtmedia_no_media_found_message_filter', esc_html_e( 'Sorry !! There\'s no media found for the request !!','buddypress-media' ) );
|
166 |
?>
|
167 |
</p>
|
168 |
<?php endif; ?>
|