rtMedia for WordPress, BuddyPress and bbPress - Version 4.3

Version Description

Now upload media in comment & fixed rtMedia shortcode pagination along with several other bugs. Please update/re-save the permalinks after the plugin update.

=

Download this release

Release Info

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

Code changes from version 4.2.1 to 4.3

Files changed (44) hide show
  1. app/admin/RTMediaAdmin.php +13 -0
  2. app/admin/RTMediaFormHandler.php +33 -0
  3. app/assets/admin/js/admin.min.js +1 -1
  4. app/assets/admin/js/settings.js +4 -4
  5. app/assets/css/rtmedia.css +76 -13
  6. app/assets/css/rtmedia.min.css +1 -1
  7. app/assets/css/sass/_activity.scss +16 -0
  8. app/assets/css/sass/_buddypress.scss +27 -6
  9. app/assets/css/sass/_popup.scss +9 -1
  10. app/assets/css/sass/_rtm.scss +13 -1
  11. app/assets/js/rtMedia.backbone.js +859 -78
  12. app/assets/js/rtMedia.js +52 -29
  13. app/assets/js/rtmedia.min.js +2 -2
  14. app/helper/RTMediaActivityModel.php +84 -1
  15. app/helper/RTMediaSettings.php +5 -0
  16. app/helper/RTMediaSupport.php +0 -3
  17. app/helper/rtUploadAttachment.php +4 -3
  18. app/main/RTMedia.php +96 -1
  19. app/main/contexts/RTMediaContext.php +8 -2
  20. app/main/controllers/activity/RTMediaActivity.php +16 -7
  21. app/main/controllers/activity/RTMediaBuddyPressActivity.php +89 -10
  22. app/main/controllers/media/RTMediaComment.php +149 -18
  23. app/main/controllers/media/RTMediaLike.php +25 -0
  24. app/main/controllers/media/RTMediaMedia.php +77 -2
  25. app/main/controllers/privacy/RTMediaPrivacy.php +10 -1
  26. app/main/controllers/shortcodes/RTMediaGalleryShortcode.php +63 -19
  27. app/main/controllers/template/RTMediaNav.php +10 -1
  28. app/main/controllers/template/RTMediaTemplate.php +110 -25
  29. app/main/controllers/template/rtmedia-actions.php +135 -29
  30. app/main/controllers/template/rtmedia-ajax-actions.php +143 -2
  31. app/main/controllers/template/rtmedia-filters.php +65 -0
  32. app/main/controllers/template/rtmedia-functions.php +349 -66
  33. app/main/controllers/upload/RTMediaUploadEndpoint.php +98 -0
  34. app/main/controllers/upload/RTMediaUploadView.php +51 -2
  35. app/main/interactions/RTMediaInteraction.php +1 -1
  36. app/main/routers/query/RTMediaQuery.php +17 -0
  37. index.php +10 -2
  38. languages/buddypress-media.po +438 -401
  39. readme.txt +31 -6
  40. templates/media/album-gallery-item.php +1 -1
  41. templates/media/album-gallery.php +8 -1
  42. templates/media/media-gallery.php +8 -1
  43. templates/media/media-single.php +2 -11
  44. templates/upload/comment-media.php +106 -0
app/admin/RTMediaAdmin.php CHANGED
@@ -182,6 +182,19 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
182
include $filename;
183
echo '</script>';
184
}
185
}
186
187
function modify_medialibrary_permalink( $action, $post ) {
182
include $filename;
183
echo '</script>';
184
}
185
+
186
+ if( isset( $_GET['page'] ) && 'rtmedia-settings' == sanitize_text_field( $_GET['page'] ) ){
187
+ global $rtmedia;
188
+ $display = apply_filters( 'rtmedia_disable_media_in_commented_media', true );
189
+ if ( isset( $rtmedia->options ) && isset( $rtmedia->options['buddypress_enableOnComment'] ) && 1 == $rtmedia->options['buddypress_enableOnComment'] && $display ) { ?>
190
+ <style type="text/css">
191
+ .rtm-option-wrapper .form-table[data-depends="buddypress_enableOnComment"] {
192
+ display: none !important;
193
+ }
194
+ </style>
195
+ <?php
196
+ }
197
+ }
198
}
199
200
function modify_medialibrary_permalink( $action, $post ) {
app/admin/RTMediaFormHandler.php CHANGED
@@ -297,6 +297,16 @@ class RTMediaFormHandler {
297
),
298
'group' => '10',
299
),
300
'general_enableLightbox' => array(
301
'title' => esc_html__( 'Use lightbox to display media', 'buddypress-media' ),
302
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
@@ -374,6 +384,7 @@ class RTMediaFormHandler {
374
$render_options = apply_filters( 'rtmedia_display_content_add_itmes', $render_options, $options );
375
$general_group = array();
376
$general_group[10] = esc_html__( 'Single Media View', 'buddypress-media' );
377
$general_group[15] = esc_html__( 'List Media View', 'buddypress-media' );
378
$general_group[18] = esc_html__( 'Masonry View', 'buddypress-media' );
379
$general_group[19] = esc_html__( 'Direct Upload', 'buddypress-media' );
@@ -1006,6 +1017,27 @@ class RTMediaFormHandler {
1006
),
1007
'group' => 10,
1008
),
1009
'rtmedia-activity-feed-limit' => array(
1010
'title' => esc_html__( 'Number of media items to show in activity stream', 'buddypress-media' ),
1011
'callback' => array( 'RTMediaFormHandler', 'number' ),
@@ -1081,6 +1113,7 @@ class RTMediaFormHandler {
1081
1082
$general_group = array();
1083
$general_group[10] = 'Integration With BuddyPress Features';
1084
$general_group[50] = 'Album Settings';
1085
$general_group = apply_filters( 'rtmedia_buddypress_setting_group', $general_group );
1086
297
),
298
'group' => '10',
299
),
300
+ 'general_enableLikes' => array(
301
+ 'title' => __( 'Enable likes for media', 'buddypress-media' ),
302
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
303
+ 'args' => array(
304
+ 'key' => 'general_enableLikes',
305
+ 'value' => $options['general_enableLikes'],
306
+ 'desc' => __( 'You may want to disable like feature if you had enabled rating feature.', 'buddypress-media' ),
307
+ ),
308
+ 'group' => '11',
309
+ ),
310
'general_enableLightbox' => array(
311
'title' => esc_html__( 'Use lightbox to display media', 'buddypress-media' ),
312
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
384
$render_options = apply_filters( 'rtmedia_display_content_add_itmes', $render_options, $options );
385
$general_group = array();
386
$general_group[10] = esc_html__( 'Single Media View', 'buddypress-media' );
387
+ $general_group[11] = esc_html__( 'Media Likes', 'buddypress-media' );
388
$general_group[15] = esc_html__( 'List Media View', 'buddypress-media' );
389
$general_group[18] = esc_html__( 'Masonry View', 'buddypress-media' );
390
$general_group[19] = esc_html__( 'Direct Upload', 'buddypress-media' );
1017
),
1018
'group' => 10,
1019
),
1020
+ 'buddypress_enableOnComment' => array(
1021
+ 'title' => esc_html__( 'Allow upload to Comment', 'buddypress-media' ),
1022
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1023
+ 'args' => array(
1024
+ 'key' => 'buddypress_enableOnComment',
1025
+ 'value' => $options['buddypress_enableOnComment'],
1026
+ 'desc' => esc_html__( 'Enable Media in Comment', 'buddypress-media' ),
1027
+ ),
1028
+ 'group' => 660,
1029
+ ),
1030
+ 'rtmedia_disable_media_in_commented_media' => array(
1031
+ 'title' => esc_html__( 'Disable upload to 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__( 'Enable Media in Comment', 'buddypress-media' ),
1037
+ ),
1038
+ 'group' => 660,
1039
+ 'depends' => 'buddypress_enableOnComment',
1040
+ ),
1041
'rtmedia-activity-feed-limit' => array(
1042
'title' => esc_html__( 'Number of media items to show in activity stream', 'buddypress-media' ),
1043
'callback' => array( 'RTMediaFormHandler', 'number' ),
1113
1114
$general_group = array();
1115
$general_group[10] = 'Integration With BuddyPress Features';
1116
+ $general_group[660] = 'Comment Media';
1117
$general_group[50] = 'Album Settings';
1118
$general_group = apply_filters( 'rtmedia_buddypress_setting_group', $general_group );
1119
app/assets/admin/js/admin.min.js CHANGED
@@ -2,4 +2,4 @@
2
* rtMedia JavaScript Library
3
* @package rtMedia
4
*/
5
- function rtmedia_addon_do_not_show(){var a={action:"rtmedia_addon_popup_not_show_again"};jQuery.post(rtmedia_admin_ajax,a,function(a){jQuery("#TB_window").remove(),jQuery("#TB_overlay").remove()})}"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),jQuery(document).ready(function(a){var b=document.createElement("div");b.setAttribute("class","rtm-warning rtm-fly-warning hide"),a(".rtm-tabs").rtTab(),a('input[name^="rtmedia-options"]').on("change",function(){a(".rtm-save-settings-msg").remove(),0===a(".rtm-fly-warning").length&&(b.innerText=rtmedia_admin_strings.settings_changed,a(".rtm-button-container.top").prepend(b),a(".rtm-fly-warning").slideDown())}),a(".rtm-img-size-setting .form-table tr:nth-child(7) td:last-child").attr("colspan","3"),a(".rtm-field-wrap .switch input[type=checkbox]").each(function(){var b=a(this);b.parents("table").attr("data-depends")||(b.is(":checked")?(b.parents("table").next(".rtm-notice").slideDown(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideDown()})):(b.parents("table").next(".rtm-notice").slideUp(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideUp()}))),b.parents("tr").next("tr").attr("data-depends")&&(b.is(":checked")?b.parents("tr").next("tr").slideDown():b.parents("tr").next("tr").slideUp())}),a(".rtm-field-wrap .switch input[type=checkbox]").on("change",function(){var b=a(this);b.parents("table").attr("data-depends")||(b.parents("table").next(".rtm-notice").slideToggle(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideToggle()})),b.parents("tr").next("tr").attr("data-depends")&&b.parents("tr").next("tr").slideToggle()});var c=Backbone.View.extend({el:a(".bp-media-admin"),events:{"click .rtm-theme":"render","click .rtm-close":"close","click .rtm-previous":"previousTheme","click .rtm-next":"nextTheme",keyup:"keyEvent"},initialize:function(){_.bindAll(this,"render","close","nextTheme","previousTheme","keyEvent"),this.keyEvent()},render:function(b){a(".rtm-theme").removeClass("rtm-modal-open");var c=a(b.currentTarget).addClass("rtm-modal-open").find(".rtm-theme-content").html();if(a(".rtm-theme-overlay")[0])a(".rtm-theme-overlay").show(),a(this.el).find(".rtm-theme-content-wrap").empty().append(c);else{var d={themeContent:c};a(this.el).append(rtMediaAdmin.templates.rtm_theme_overlay(d))}a(b.currentTarget).is(":first-child")?a(".rtm-previous").addClass("disabled"):a(b.currentTarget).is(":last-child")?a(".rtm-next").addClass("disabled"):a(".rtm-next, .rtm-previous").removeClass("disabled")},close:function(){a(".rtm-theme").removeClass("rtm-modal-open"),a(".rtm-theme-overlay").hide(),a(".rtm-next, .rtm-previous").removeClass("disabled")},nextTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1},previousTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1},keyEvent:function(){a("body").on("keyup",function(b){return 39===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1):37===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1):void(27===b.keyCode&&a(".rtm-close").trigger("click"))})}});new c;jQuery("#rtm-licenses .regular-text").each(function(){jQuery(this).keypress(function(a){var b=a.keyCode?a.keyCode:a.which;if("13"==b)return!1})}),jQuery("#bp_media_settings_form").on("submit",function(a){jQuery("#rtcss-notice").remove();var b=jQuery("#rtmedia-custom-css").val(),c=b.match(/@import\s*(url)?\s*\(?([^;]+?)\)?;/),d=c[0];if(null!=d)return jQuery("#rtmedia-custom-css").after('<div id="rtcss-notice" class="error"><p>'+rtmedia_admin_strings.wrong_css_input+"</p></div>"),!1})});var rtMediaAdmin=new Object;rtMediaAdmin.templates={rtm_image:wp.template("rtm-image"),rtm_msg_div:wp.template("rtm-msg-div"),rtm_album_favourites_importer:wp.template("rtm-album-favourites-importer"),rtm_map_mapping_failure:wp.template("rtm-map-mapping-failure"),rtm_p_tag:wp.template("rtm-p-tag"),rtm_theme_overlay:wp.template("rtm-theme-overlay")},jQuery(document).ready(function(a){function b(a){return jQuery.post(ajaxurl,a,function(b){if(0!=b){var c=!1,d=Math.ceil((20*parseInt(b)+parseInt(a.values.finished))/parseInt(a.values.total)*100);d>100&&(d=100,c=!0),jQuery("#rtprogressbar>div").css("width",d+"%"),finished=jQuery("#rtprivacyinstaller span.finished").html(),jQuery("#rtprivacyinstaller span.finished").html(parseInt(finished)+a.count),c&&jQuery.post(ajaxurl,{action:"rtmedia_privacy_redirect"},function(a){window.location=settings_url})}else{var e={msg:"Row "+b+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(e))}})}function c(a){return jQuery.getJSON(ajaxurl,a,function(b){if(favorites=!1,b){var c=Math.ceil((5*parseInt(b.page)+parseInt(a.values.finished))/parseInt(a.values.total)*100);comments_total=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.total").html(),users_total=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.total").html(),media_total=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.total").html(),comments_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(),users_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html();var f=Math.ceil((parseInt(b.comments)+parseInt(comments_finished))/parseInt(comments_total)*100),g=Math.ceil(parseInt(b.users)/parseInt(users_total)*100);(c>100||100==c)&&(c=100,favorites=!0),jQuery(".bp-album-media #rtprogressbar>div").css("width",c+"%"),jQuery(".bp-album-comments #rtprogressbar>div").css("width",f+"%"),jQuery(".bp-album-users #rtprogressbar>div").css("width",g+"%"),media_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(),parseInt(media_finished)<parseInt(media_total)&&jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(parseInt(media_finished)+a.count),jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(parseInt(b.comments)+parseInt(comments_finished)),jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html(parseInt(b.users)),favorites&&(favorite_data={action:"rtmedia_rt_album_import_favorites",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},jQuery.post(ajaxurl,favorite_data,function(a){if(!a.hasOwnProperty(favorites)||0===a.favorites&&"0"===a.favorites)window.setTimeout(e,2e3);else{if(!jQuery(".bp-album-favorites").length){var b={users:a.users};jQuery(".bp-album-comments").after(rtMediaAdmin.templates.rtm_album_favourites_importer(b))}$favorites={},0!=a.offset||"0"!=a.offset?start=1*a.offset+1:start=1;for(var c=start;c<=a.users;c++)$count=1,c==a.users&&($count=parseInt(a.users%$count),0==$count&&($count=1)),newvals={action:"rtmedia_rt_album_import_step_favorites",offset:1*(c-1),redirect:c==a.users,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$favorites[c]=newvals;var f=jQuery.Deferred();f.resolve(),jQuery.each($favorites,function(a,b){f=f.pipe(function(){return d(b)})})}},"json"))}else if(a.hasOwnProperty(page)){var h={msg:"Row "+b.page+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(h))}else{var h={msg:rtmedia_admin_strings.request_failed};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(h))}})}function d(a){return jQuery.post(ajaxurl,a,function(a){redirect=!1,favorites_total=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.total").html(),favorites_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(),jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(parseInt(favorites_finished)+1);var b=Math.ceil(parseInt(favorites_finished+1)/parseInt(favorites_total)*100);(b>100||100==b)&&(b=100,redirect=!0),jQuery(".bp-album-favorites #rtprogressbar>div").css("width",b+"%"),redirect&&window.setTimeout(e,2e3)})}function e(){window.location=document.URL}function f(a){k=a.target.files,g(a)}function g(a){a.stopPropagation(),a.preventDefault();var b=new FormData;jQuery.each(k,function(a,c){b.append(a,c)}),jQuery.ajax({url:rtmedia_fileupload_url,type:"POST",data:b,cache:!1,dataType:"json",processData:!1,contentType:!1,success:function(a){if("undefined"==typeof a.error){if(a.exceed_size_msg)return jQuery("#debuglog").val(""),alert(a.exceed_size_msg),!1;jQuery("#debuglog_temp_path").val(a.debug_attachmanet)}else jQuery("#debuglog").val(""),alert("ERRORS: "+a.error)}})}var h=document.createElement("div");h.className="support_form_loader",a(".rtm-save-settings-msg").length>0&&setTimeout(function(){a(".rtm-save-settings-msg").remove()},1e4),jQuery("#spread-the-word").on("click","#bp-media-add-linkback",function(){var a={action:"rtmedia_linkback",linkback:jQuery("#bp-media-add-linkback:checked").length};jQuery.post(rtmedia_admin_ajax,a,function(a){})}),jQuery("#bp-media-settings-boxes").on("change","#select-request",function(){if(jQuery(this).val()){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(h);var a={action:"rtmedia_select_request",form:jQuery(this).val()};jQuery.post(ajaxurl,a,function(a){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(a).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("click","#cancel-request",function(){if(jQuery(this).val()){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(h);var a={action:"rtmedia_cancel_request"};jQuery.post(ajaxurl,a,function(a){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(a).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(a){var b=!0,c=new RegExp("^[0-9]+quot;);jQuery("input[name*='defaultSizes']").each(function(a){if(!c.test(jQuery(this).val()))return alert("Invalid value for "+jQuery(this).attr("name").replace("rtmedia-options[defaultSizes_","").replace("]","").replace(/_/g," ").replace(/(\b)([a-zA-Z] )/g,function(a){return a.toUpperCase()})),b=!1,!1});var d=jQuery('input[name^="rtmedia-options[general_videothumbs]"]');if(b&&d.length>0&&"undefined"!=typeof d){var e="",f=0;if(d.val()<=0?(e+=rtmedia_admin_strings.video_thumbnail_error,f=2):c.test(d.val())||(e+=rtmedia_admin_strings.video_thumbnail_invalid_value+" "+Math.round(d.val())+".",f=Math.round(d.val())),""!=e)return alert(e),d.val(f),b=!1,!1}var g=jQuery('input[name^="rtmedia-options[general_jpeg_image_quality]"]');if(b&&g.length>0&&"undefined"!=typeof g){var e="",h=0;if(g.val()<=0?(e+=rtmedia_admin_strings.jpeg_quality_negative_error,h=90):g.val()>100?(e+=rtmedia_admin_strings.jpeg_quality_percentage_error,h=100):c.test(g.val())||(e+=rtmedia_admin_strings.jpeg_quality_invalid_value+" "+Math.round(g.val())+".",h=Math.round(g.val())),""!=e)return alert(e),g.val(h),b=!1,!1}var i=jQuery('input[name^="rtmedia-options[general_perPageMedia]"]');if(b&&i.length>0&&"undefined"!=typeof i){var e="",j=0;if(i.val()<1?(e+=rtmedia_admin_strings.per_page_media_negative_value,j=10):jQuery.isNumeric(i.val())&&Math.floor(i.val())!=i.val()&&(e+=rtmedia_admin_strings.per_page_media_positive_error+" "+Math.round(i.val())+".",j=Math.round(i.val())),""!=e)return alert(e),i.val(j),b=!1,!1}b||a.preventDefault()}),jQuery(document).on("click","#bpm-services .encoding-try-now,#rtm-services .encoding-try-now",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.are_you_sure)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_free_encoding_subscribe"};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),document.location.href=b+"&apikey="+a.apikey+c}else{jQuery(".encoding-try-now").next().remove(),jQuery("#settings-error-encoding-error").remove();var d={id:"settings-error-encoding-error",msg:a.error,class:"error"};jQuery("#bp-media-settings-boxes").before(rtMediaAdmin.templates.rtm_msg_div(d))}})}}),jQuery(document).on("click","#api-key-submit",function(a){if(a.preventDefault(),0==jQuery(this).next("img").length){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b))}var b={action:"rtmedia_enter_api_key",apikey:jQuery("#new-api-key").val()};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),b.toString().indexOf("&apikey="+a.apikey)==-1&&(b+="&apikey="+a.apikey),b.toString().indexOf("&update=true")==-1&&(b+="&update=true"),document.location.href=b+c}else{jQuery("#settings-error-api-key-error").remove();var d={id:"settings-error-api-key-error",msg:a.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(d))}jQuery("#api-key-submit").next("img").remove()})}),jQuery(document).on("click","#disable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.disable_encoding)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_disable_encoding"};jQuery.post(ajaxurl,b,function(a){if(a){if(jQuery(".settings-error-encoding-disabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0)jQuery("#settings-encoding-successfully-updated p").html(a);else{var b={id:"settings-encoding-successfully-updated",msg:a,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}jQuery("#rtmedia-encoding-usage").hide(),jQuery("#disable-encoding").next("img").remove(),jQuery("#disable-encoding").hide(),jQuery("#enable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();var b={id:"settings-error-encoding-disabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}})}}),jQuery(document).on("click","#enable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.enable_encoding)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_enable_encoding"};jQuery.post(ajaxurl,b,function(a){if(a){if(jQuery(".settings-error-encoding-enabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0)jQuery("#settings-encoding-successfully-updated p").html(a);else{var b={id:"settings-encoding-successfully-updated",msg:a,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}jQuery("#enable-encoding").next("img").remove(),jQuery("#enable-encoding").hide(),jQuery("#disable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();var b={id:"settings-error-encoding-enabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}})}}),jQuery(".bp-media-encoding-table").on("click",".bpm-unsubscribe",function(a){a.preventDefault(),jQuery("#bpm-unsubscribe-dialog").dialog({dialogClass:"wp-dialog",modal:!0,buttons:{Unsubscribe:function(){jQuery(this).dialog("close");var a={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(".bpm-unsubscribe").after(rtMediaAdmin.templates.rtm_image(a));var a={action:"rtmedia_unsubscribe_encoding_service",note:jQuery("#bpm-unsubscribe-note").val(),plan:jQuery(".bpm-unsubscribe").attr("data-plan"),price:jQuery(".bpm-unsubscribe").attr("data-price")};jQuery.getJSON(ajaxurl,a,function(a){if(void 0===a.error&&a.updated){jQuery(".bpm-unsubscribe").next().remove(),jQuery(".bpm-unsubscribe").after(a.form),jQuery(".bpm-unsubscribe").remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var b={id:"settings-unsubscribed-successfully",msg:a.updated,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b)),window.location.hash="#settings-unsubscribed-successfully"}else{jQuery(".bpm-unsubscribe").next().remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var b={id:"settings-unsubscribe-error",msg:a.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b)),window.location.hash="#settings-unsubscribe-error"}})}}})}),jQuery("#bpmedia-bpalbumimporter").on("change","#bp-album-import-accept",function(){jQuery(".bp-album-import-accept").toggleClass("i-accept"),jQuery(".bp-album-importer-wizard").slideToggle()}),jQuery("#rtprivacyinstall").click(function(a){a.preventDefault(),$progress_parent=jQuery("#rtprivacyinstaller"),$progress_parent.find(".rtprivacytype").each(function(){if($type=jQuery(this).attr("id"),"total"==$type){$values=[],jQuery(this).find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),$data={};for(var a=1;a<=$values.steps[0];a++)$count=20,a==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=20)),newvals={page:a,action:"rtmedia_privacy_install",count:$count,values:$values},$data[a]=newvals;var c=jQuery.Deferred();c.resolve(),jQuery.each($data,function(a,d){c=c.pipe(function(){return b(d)})})}})}),jQuery("#bpmedia-bpalbumimport-cleanup").click(function(a){a.preventDefault(),jQuery.post(ajaxurl,{action:"rtmedia_rt_album_cleanup",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},function(a){window.location=settings_rt_album_import_url})}),jQuery("#bpmedia-bpalbumimporter").on("click","#bpmedia-bpalbumimport",function(a){if(a.preventDefault(),!jQuery("#bp-album-import-accept").prop("checked")){jQuery("html, body").animate({scrollTop:jQuery("#bp-album-import-accept").offset().top},500);var b=jQuery(".bp-album-import-accept"),d=500,e="#FFEBE8",f=3;return void function a(){b.css("background-color","#EE0000"),setTimeout(function(){b.css("background-color",e),--f&&setTimeout(a,d)},d)}()}if(jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),!jQuery(".bpm-ajax-loader").length){var g={src:rtmedia_admin_url+"images/wpspin_light.gif",class:"bpm-ajax-loader",norefresh:rtmedia_admin_strings.no_refresh};jQuery(this).after(rtMediaAdmin.templates.rtm_image(g))}$progress_parent=jQuery("#bpmedia-bpalbumimport"),$values=[],jQuery(this).parent().find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),0==$values.steps[0]&&($values.steps[0]=1),$data={};for(var f=1;f<=$values.steps[0];f++)$count=5,f==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:f,action:"rtmedia_rt_album_import",count:$count,values:$values,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$data[f]=newvals;var h=jQuery.Deferred();h.resolve(),jQuery.each($data,function(a,b){h=h.pipe(function(){return c(b)})})}),jQuery("#bp-media-settings-boxes").on("click",".interested",function(){jQuery(".interested-container").removeClass("hidden"),jQuery(".choice-free").attr("required","required")}),jQuery("#bp-media-settings-boxes").on("click",".not-interested",function(){jQuery(".interested-container").addClass("hidden"),jQuery(".choice-free").removeAttr("required")}),jQuery("#video-transcoding-main-container").on("click",".video-transcoding-survey",function(a){a.preventDefault();var b={action:"rtmedia_convert_videos_form",email:jQuery(".email").val(),url:jQuery(".url").val(),choice:jQuery('input[name="choice"]:checked').val(),interested:jQuery('input[name="interested"]:checked').val()};return jQuery.post(ajaxurl,b,function(a){var b={msg:a,strong:"yes"};jQuery("#video-transcoding-main-container").html(rtMediaAdmin.templates.rtm_p_tag(b))}),!1}),jQuery("#bpmedia-bpalbumimporter").on("click",".deactivate-bp-album",function(a){a.preventDefault(),$bpalbum=jQuery(this);var b={action:"rtmedia_rt_album_deactivate",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()};jQuery.get(ajaxurl,b,function(a){if(a)location.reload();else{var b={msg:rtmedia_admin_strings.something_went_wrong};$bpalbum.parent().after(rtMediaAdmin.templates.rtm_p_tag(b))}})}),jQuery(".updated").on("click",".bpm-hide-encoding-notice",function(){var a={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(a));var a={action:"rtmedia_hide_encoding_notice"};jQuery.post(ajaxurl,a,function(a){a&&jQuery(".bpm-hide-encoding-notice").closest(".updated").remove()})}),jQuery("#rtmedia-bp-enable-activity").is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0),jQuery("#rtmedia-bp-enable-activity").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0)});var i="",j="";void 0!==rtmedia_on_label&&(i='data-on-label="'+rtmedia_on_label+'"'),void 0!==rtmedia_off_label&&(j='data-off-label="'+rtmedia_off_label+'"');var k;jQuery("input[type=file]").on("change",f),jQuery("#rtmedia-submit-request").click(function(){var b=jQuery("#name").val(),c=jQuery("#email").val(),d=jQuery("#website").val(),e=jQuery("#phone").val(),f=jQuery("#subject").val(),g=jQuery("#details").val(),h=jQuery('input[name="request_type"]').val(),i=jQuery('input[name="request_id"]').val(),j=jQuery('input[name="server_address"]').val(),k=jQuery('input[name="ip_address"]').val(),l=jQuery('input[name="server_type"]').val(),m=jQuery('input[name="user_agent"]').val(),n=jQuery('input[name="debuglog_temp_path"]').val(),o={name:b,email:c,website:d,phone:e,subject:f,details:g,request_id:i,request_type:"premium_support",server_address:j,ip_address:k,server_type:l,user_agent:m,debuglog_temp_path:n};if("bug_report"==h){var p=jQuery("#wp_admin_username").val();if(""==p)return alert(rtmedia_admin_support_strings.wp_admin_username_error),!1;var q=jQuery("#wp_admin_pwd").val();if(""==q)return alert(rtmedia_admin_support_strings.wp_admin_pwd_error),!1;var r=jQuery("#ssh_ftp_host").val();if(""==r)return alert(rtmedia_admin_support_strings.ssh_ftp_host_error),!1;var s=jQuery("#ssh_ftp_username").val();if(""==s)return alert(rtmedia_admin_support_strings.ssh_ftp_username_error),!1;var t=jQuery("#ssh_ftp_pwd").val();if(""==t)return alert(rtmedia_admin_support_strings.ssh_ftp_pwd_error),!1;o={name:b,email:c,website:d,phone:e,subject:f,details:g,request_id:i,request_type:"premium_support",server_address:j,ip_address:k,server_type:l,user_agent:m,wp_admin_username:p,wp_admin_pwd:q,ssh_ftp_host:r,ssh_ftp_username:s,ssh_ftp_pwd:t}}for(formdata in o)if(""==o[formdata]&&"phone"!=formdata)return alert("Please enter "+formdata.replace("_"," ")+" field."),!1;return data={action:"rtmedia_submit_request",form_data:o,support_wpnonce:jQuery("#support_wpnonce").val()},jQuery.post(ajaxurl,data,function(b){return b=b.trim(),"false"==b?(alert(rtmedia_admin_support_strings.all_fields_error),!1):(a("#rtmedia_service_contact_container").empty(),void a("#rtmedia_service_contact_container").append(b))}),!1}),jQuery("#cancel-request").click(function(){return!1}),jQuery(".rtm_enable_masonry_view input[type=checkbox]").is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide(),jQuery(".rtm_enable_masonry_view input[type=checkbox]").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide()}),jQuery("#rtm-masonry-change-thumbnail-info").click(function(a){jQuery("html, body").animate({scrollTop:0},"500","swing")})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
2
* rtMedia JavaScript Library
3
* @package rtMedia
4
*/
5
+ function rtmedia_addon_do_not_show(){var a={action:"rtmedia_addon_popup_not_show_again"};jQuery.post(rtmedia_admin_ajax,a,function(a){jQuery("#TB_window").remove(),jQuery("#TB_overlay").remove()})}"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),jQuery(document).ready(function(a){var b=document.createElement("div");b.setAttribute("class","rtm-warning rtm-fly-warning hide"),a(".rtm-tabs").rtTab(),a('input[name^="rtmedia-options"]').on("change",function(){a(".rtm-save-settings-msg").remove(),0===a(".rtm-fly-warning").length&&(b.innerText=rtmedia_admin_strings.settings_changed,a(".rtm-button-container.top").prepend(b),a(".rtm-fly-warning").slideDown())}),a(".rtm-img-size-setting .form-table tr:nth-child(7) td:last-child").attr("colspan","3"),a(".rtm-field-wrap .switch input[type=checkbox]").each(function(){var b=a(this);b.parents("table").attr("data-depends")||(b.is(":checked")?(b.parents("table").next(".rtm-notice").slideDown(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideDown()})):(b.parents("table").next(".rtm-notice").slideUp(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideUp()}))),b.parents("tr").next("tr").attr("data-depends")&&(b.is(":checked")?b.parents("tr").next("tr").slideDown():b.parents("tr").next("tr").slideUp())}),a(".rtm-field-wrap .switch input[type=checkbox]").on("change",function(){var b=a(this);b.parents("table").attr("data-depends")||(b.parents("table").next(".rtm-notice").slideToggle(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideToggle()})),b.parents("tr").next("tr").attr("data-depends")&&b.parents("tr").next("tr").slideToggle()});var c=Backbone.View.extend({el:a(".bp-media-admin"),events:{"click .rtm-theme":"render","click .rtm-close":"close","click .rtm-previous":"previousTheme","click .rtm-next":"nextTheme",keyup:"keyEvent"},initialize:function(){_.bindAll(this,"render","close","nextTheme","previousTheme","keyEvent"),this.keyEvent()},render:function(b){a(".rtm-theme").removeClass("rtm-modal-open");var c=a(b.currentTarget).addClass("rtm-modal-open").find(".rtm-theme-content").html();if(a(".rtm-theme-overlay")[0])a(".rtm-theme-overlay").show(),a(this.el).find(".rtm-theme-content-wrap").empty().append(c);else{var d={themeContent:c};a(this.el).append(rtMediaAdmin.templates.rtm_theme_overlay(d))}a(b.currentTarget).is(":first-child")?a(".rtm-previous").addClass("disabled"):a(b.currentTarget).is(":last-child")?a(".rtm-next").addClass("disabled"):a(".rtm-next, .rtm-previous").removeClass("disabled")},close:function(){a(".rtm-theme").removeClass("rtm-modal-open"),a(".rtm-theme-overlay").hide(),a(".rtm-next, .rtm-previous").removeClass("disabled")},nextTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1},previousTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1},keyEvent:function(){a("body").on("keyup",function(b){return 39===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1):37===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1):void(27===b.keyCode&&a(".rtm-close").trigger("click"))})}});new c;jQuery("#rtm-licenses .regular-text").each(function(){jQuery(this).keypress(function(a){var b=a.keyCode?a.keyCode:a.which;if("13"==b)return!1})}),jQuery("#bp_media_settings_form").on("submit",function(a){jQuery("#rtcss-notice").remove();var b=jQuery("#rtmedia-custom-css").val(),c=b.match(/@import\s*(url)?\s*\(?([^;]+?)\)?;/),d=c[0];if(null!=d)return jQuery("#rtmedia-custom-css").after('<div id="rtcss-notice" class="error"><p>'+rtmedia_admin_strings.wrong_css_input+"</p></div>"),!1})});var rtMediaAdmin=new Object;rtMediaAdmin.templates={rtm_image:wp.template("rtm-image"),rtm_msg_div:wp.template("rtm-msg-div"),rtm_album_favourites_importer:wp.template("rtm-album-favourites-importer"),rtm_map_mapping_failure:wp.template("rtm-map-mapping-failure"),rtm_p_tag:wp.template("rtm-p-tag"),rtm_theme_overlay:wp.template("rtm-theme-overlay")},jQuery(document).ready(function(a){function b(a){return jQuery.post(ajaxurl,a,function(b){if(0!=b){var c=!1,d=Math.ceil((20*parseInt(b)+parseInt(a.values.finished))/parseInt(a.values.total)*100);d>100&&(d=100,c=!0),jQuery("#rtprogressbar>div").css("width",d+"%"),finished=jQuery("#rtprivacyinstaller span.finished").html(),jQuery("#rtprivacyinstaller span.finished").html(parseInt(finished)+a.count),c&&jQuery.post(ajaxurl,{action:"rtmedia_privacy_redirect"},function(a){window.location=settings_url})}else{var e={msg:"Row "+b+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(e))}})}function c(a){return jQuery.getJSON(ajaxurl,a,function(b){if(favorites=!1,b){var c=Math.ceil((5*parseInt(b.page)+parseInt(a.values.finished))/parseInt(a.values.total)*100);comments_total=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.total").html(),users_total=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.total").html(),media_total=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.total").html(),comments_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(),users_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html();var f=Math.ceil((parseInt(b.comments)+parseInt(comments_finished))/parseInt(comments_total)*100),g=Math.ceil(parseInt(b.users)/parseInt(users_total)*100);(c>100||100==c)&&(c=100,favorites=!0),jQuery(".bp-album-media #rtprogressbar>div").css("width",c+"%"),jQuery(".bp-album-comments #rtprogressbar>div").css("width",f+"%"),jQuery(".bp-album-users #rtprogressbar>div").css("width",g+"%"),media_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(),parseInt(media_finished)<parseInt(media_total)&&jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(parseInt(media_finished)+a.count),jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(parseInt(b.comments)+parseInt(comments_finished)),jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html(parseInt(b.users)),favorites&&(favorite_data={action:"rtmedia_rt_album_import_favorites",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},jQuery.post(ajaxurl,favorite_data,function(a){if(!a.hasOwnProperty(favorites)||0===a.favorites&&"0"===a.favorites)window.setTimeout(e,2e3);else{if(!jQuery(".bp-album-favorites").length){var b={users:a.users};jQuery(".bp-album-comments").after(rtMediaAdmin.templates.rtm_album_favourites_importer(b))}$favorites={},0!=a.offset||"0"!=a.offset?start=1*a.offset+1:start=1;for(var c=start;c<=a.users;c++)$count=1,c==a.users&&($count=parseInt(a.users%$count),0==$count&&($count=1)),newvals={action:"rtmedia_rt_album_import_step_favorites",offset:1*(c-1),redirect:c==a.users,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$favorites[c]=newvals;var f=jQuery.Deferred();f.resolve(),jQuery.each($favorites,function(a,b){f=f.pipe(function(){return d(b)})})}},"json"))}else if(a.hasOwnProperty(page)){var h={msg:"Row "+b.page+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(h))}else{var h={msg:rtmedia_admin_strings.request_failed};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(h))}})}function d(a){return jQuery.post(ajaxurl,a,function(a){redirect=!1,favorites_total=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.total").html(),favorites_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(),jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(parseInt(favorites_finished)+1);var b=Math.ceil(parseInt(favorites_finished+1)/parseInt(favorites_total)*100);(b>100||100==b)&&(b=100,redirect=!0),jQuery(".bp-album-favorites #rtprogressbar>div").css("width",b+"%"),redirect&&window.setTimeout(e,2e3)})}function e(){window.location=document.URL}function f(a){k=a.target.files,g(a)}function g(a){a.stopPropagation(),a.preventDefault();var b=new FormData;jQuery.each(k,function(a,c){b.append(a,c)}),jQuery.ajax({url:rtmedia_fileupload_url,type:"POST",data:b,cache:!1,dataType:"json",processData:!1,contentType:!1,success:function(a){if("undefined"==typeof a.error){if(a.exceed_size_msg)return jQuery("#debuglog").val(""),alert(a.exceed_size_msg),!1;jQuery("#debuglog_temp_path").val(a.debug_attachmanet)}else jQuery("#debuglog").val(""),alert("ERRORS: "+a.error)}})}var h=document.createElement("div");h.className="support_form_loader",a(".rtm-save-settings-msg").length>0&&setTimeout(function(){a(".rtm-save-settings-msg").remove()},1e4),jQuery("#spread-the-word").on("click","#bp-media-add-linkback",function(){var a={action:"rtmedia_linkback",linkback:jQuery("#bp-media-add-linkback:checked").length};jQuery.post(rtmedia_admin_ajax,a,function(a){})}),jQuery("#bp-media-settings-boxes").on("change","#select-request",function(){if(jQuery(this).val()){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(h);var a={action:"rtmedia_select_request",form:jQuery(this).val()};jQuery.post(ajaxurl,a,function(a){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(a).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("click","#cancel-request",function(){if(jQuery(this).val()){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(h);var a={action:"rtmedia_cancel_request"};jQuery.post(ajaxurl,a,function(a){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(a).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(a){var b=!0,c=new RegExp("^[0-9]+quot;);jQuery("input[name*='defaultSizes']").each(function(a){if(!c.test(jQuery(this).val()))return alert("Invalid value for "+jQuery(this).attr("name").replace("rtmedia-options[defaultSizes_","").replace("]","").replace(/_/g," ").replace(/(\b)([a-zA-Z] )/g,function(a){return a.toUpperCase()})),b=!1,!1});var d=jQuery('input[name^="rtmedia-options[general_videothumbs]"]');if(b&&d.length>0&&"undefined"!=typeof d){var e="",f=0;if(d.val()<=0?(e+=rtmedia_admin_strings.video_thumbnail_error,f=2):c.test(d.val())||(e+=rtmedia_admin_strings.video_thumbnail_invalid_value+" "+Math.round(d.val())+".",f=Math.round(d.val())),""!=e)return alert(e),d.val(f),b=!1,!1}var g=jQuery('input[name^="rtmedia-options[general_jpeg_image_quality]"]');if(b&&g.length>0&&"undefined"!=typeof g){var e="",h=0;if(g.val()<=0?(e+=rtmedia_admin_strings.jpeg_quality_negative_error,h=90):g.val()>100?(e+=rtmedia_admin_strings.jpeg_quality_percentage_error,h=100):c.test(g.val())||(e+=rtmedia_admin_strings.jpeg_quality_invalid_value+" "+Math.round(g.val())+".",h=Math.round(g.val())),""!=e)return alert(e),g.val(h),b=!1,!1}var i=jQuery('input[name^="rtmedia-options[general_perPageMedia]"]');if(b&&i.length>0&&"undefined"!=typeof i){var e="",j=0;if(i.val()<1?(e+=rtmedia_admin_strings.per_page_media_negative_value,j=10):jQuery.isNumeric(i.val())&&Math.floor(i.val())!=i.val()&&(e+=rtmedia_admin_strings.per_page_media_positive_error+" "+Math.round(i.val())+".",j=Math.round(i.val())),""!=e)return alert(e),i.val(j),b=!1,!1}b||a.preventDefault()}),jQuery(document).on("click","#bpm-services .encoding-try-now,#rtm-services .encoding-try-now",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.are_you_sure)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_free_encoding_subscribe"};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),document.location.href=b+"&apikey="+a.apikey+c}else{jQuery(".encoding-try-now").next().remove(),jQuery("#settings-error-encoding-error").remove();var d={id:"settings-error-encoding-error",msg:a.error,class:"error"};jQuery("#bp-media-settings-boxes").before(rtMediaAdmin.templates.rtm_msg_div(d))}})}}),jQuery(document).on("click","#api-key-submit",function(a){if(a.preventDefault(),0==jQuery(this).next("img").length){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b))}var b={action:"rtmedia_enter_api_key",apikey:jQuery("#new-api-key").val()};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),b.toString().indexOf("&apikey="+a.apikey)==-1&&(b+="&apikey="+a.apikey),b.toString().indexOf("&update=true")==-1&&(b+="&update=true"),document.location.href=b+c}else{jQuery("#settings-error-api-key-error").remove();var d={id:"settings-error-api-key-error",msg:a.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(d))}jQuery("#api-key-submit").next("img").remove()})}),jQuery(document).on("click","#disable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.disable_encoding)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_disable_encoding"};jQuery.post(ajaxurl,b,function(a){if(a){if(jQuery(".settings-error-encoding-disabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0)jQuery("#settings-encoding-successfully-updated p").html(a);else{var b={id:"settings-encoding-successfully-updated",msg:a,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}jQuery("#rtmedia-encoding-usage").hide(),jQuery("#disable-encoding").next("img").remove(),jQuery("#disable-encoding").hide(),jQuery("#enable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();var b={id:"settings-error-encoding-disabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}})}}),jQuery(document).on("click","#enable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.enable_encoding)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_enable_encoding"};jQuery.post(ajaxurl,b,function(a){if(a){if(jQuery(".settings-error-encoding-enabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0)jQuery("#settings-encoding-successfully-updated p").html(a);else{var b={id:"settings-encoding-successfully-updated",msg:a,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}jQuery("#enable-encoding").next("img").remove(),jQuery("#enable-encoding").hide(),jQuery("#disable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();var b={id:"settings-error-encoding-enabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}})}}),jQuery(".bp-media-encoding-table").on("click",".bpm-unsubscribe",function(a){a.preventDefault(),jQuery("#bpm-unsubscribe-dialog").dialog({dialogClass:"wp-dialog",modal:!0,buttons:{Unsubscribe:function(){jQuery(this).dialog("close");var a={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(".bpm-unsubscribe").after(rtMediaAdmin.templates.rtm_image(a));var a={action:"rtmedia_unsubscribe_encoding_service",note:jQuery("#bpm-unsubscribe-note").val(),plan:jQuery(".bpm-unsubscribe").attr("data-plan"),price:jQuery(".bpm-unsubscribe").attr("data-price")};jQuery.getJSON(ajaxurl,a,function(a){if(void 0===a.error&&a.updated){jQuery(".bpm-unsubscribe").next().remove(),jQuery(".bpm-unsubscribe").after(a.form),jQuery(".bpm-unsubscribe").remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var b={id:"settings-unsubscribed-successfully",msg:a.updated,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b)),window.location.hash="#settings-unsubscribed-successfully"}else{jQuery(".bpm-unsubscribe").next().remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var b={id:"settings-unsubscribe-error",msg:a.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b)),window.location.hash="#settings-unsubscribe-error"}})}}})}),jQuery("#bpmedia-bpalbumimporter").on("change","#bp-album-import-accept",function(){jQuery(".bp-album-import-accept").toggleClass("i-accept"),jQuery(".bp-album-importer-wizard").slideToggle()}),jQuery("#rtprivacyinstall").click(function(a){a.preventDefault(),$progress_parent=jQuery("#rtprivacyinstaller"),$progress_parent.find(".rtprivacytype").each(function(){if($type=jQuery(this).attr("id"),"total"==$type){$values=[],jQuery(this).find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),$data={};for(var a=1;a<=$values.steps[0];a++)$count=20,a==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=20)),newvals={page:a,action:"rtmedia_privacy_install",count:$count,values:$values},$data[a]=newvals;var c=jQuery.Deferred();c.resolve(),jQuery.each($data,function(a,d){c=c.pipe(function(){return b(d)})})}})}),jQuery("#bpmedia-bpalbumimport-cleanup").click(function(a){a.preventDefault(),jQuery.post(ajaxurl,{action:"rtmedia_rt_album_cleanup",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},function(a){window.location=settings_rt_album_import_url})}),jQuery("#bpmedia-bpalbumimporter").on("click","#bpmedia-bpalbumimport",function(a){if(a.preventDefault(),!jQuery("#bp-album-import-accept").prop("checked")){jQuery("html, body").animate({scrollTop:jQuery("#bp-album-import-accept").offset().top},500);var b=jQuery(".bp-album-import-accept"),d=500,e="#FFEBE8",f=3;return void function a(){b.css("background-color","#EE0000"),setTimeout(function(){b.css("background-color",e),--f&&setTimeout(a,d)},d)}()}if(jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),!jQuery(".bpm-ajax-loader").length){var g={src:rtmedia_admin_url+"images/wpspin_light.gif",class:"bpm-ajax-loader",norefresh:rtmedia_admin_strings.no_refresh};jQuery(this).after(rtMediaAdmin.templates.rtm_image(g))}$progress_parent=jQuery("#bpmedia-bpalbumimport"),$values=[],jQuery(this).parent().find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),0==$values.steps[0]&&($values.steps[0]=1),$data={};for(var f=1;f<=$values.steps[0];f++)$count=5,f==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:f,action:"rtmedia_rt_album_import",count:$count,values:$values,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$data[f]=newvals;var h=jQuery.Deferred();h.resolve(),jQuery.each($data,function(a,b){h=h.pipe(function(){return c(b)})})}),jQuery("#bp-media-settings-boxes").on("click",".interested",function(){jQuery(".interested-container").removeClass("hidden"),jQuery(".choice-free").attr("required","required")}),jQuery("#bp-media-settings-boxes").on("click",".not-interested",function(){jQuery(".interested-container").addClass("hidden"),jQuery(".choice-free").removeAttr("required")}),jQuery("#video-transcoding-main-container").on("click",".video-transcoding-survey",function(a){a.preventDefault();var b={action:"rtmedia_convert_videos_form",email:jQuery(".email").val(),url:jQuery(".url").val(),choice:jQuery('input[name="choice"]:checked').val(),interested:jQuery('input[name="interested"]:checked').val()};return jQuery.post(ajaxurl,b,function(a){var b={msg:a,strong:"yes"};jQuery("#video-transcoding-main-container").html(rtMediaAdmin.templates.rtm_p_tag(b))}),!1}),jQuery("#bpmedia-bpalbumimporter").on("click",".deactivate-bp-album",function(a){a.preventDefault(),$bpalbum=jQuery(this);var b={action:"rtmedia_rt_album_deactivate",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()};jQuery.get(ajaxurl,b,function(a){if(a)location.reload();else{var b={msg:rtmedia_admin_strings.something_went_wrong};$bpalbum.parent().after(rtMediaAdmin.templates.rtm_p_tag(b))}})}),jQuery(".updated").on("click",".bpm-hide-encoding-notice",function(){var a={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(a));var a={action:"rtmedia_hide_encoding_notice"};jQuery.post(ajaxurl,a,function(a){a&&jQuery(".bpm-hide-encoding-notice").closest(".updated").remove()})}),jQuery("#rtmedia-bp-enable-activity").is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0),jQuery("#rtmedia-bp-enable-activity").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0)});var i="",j="";void 0!==rtmedia_on_label&&(i='data-on-label="'+rtmedia_on_label+'"'),void 0!==rtmedia_off_label&&(j='data-off-label="'+rtmedia_off_label+'"');var k;jQuery("input[type=file]").on("change",f),jQuery("#rtmedia-submit-request").click(function(){var b=jQuery("#name").val(),c=jQuery("#email").val(),d=jQuery("#website").val(),e=jQuery("#subject").val(),f=jQuery("#details").val(),g=jQuery('input[name="request_type"]').val(),h=jQuery('input[name="request_id"]').val(),i=jQuery('input[name="server_address"]').val(),j=jQuery('input[name="ip_address"]').val(),k=jQuery('input[name="server_type"]').val(),l=jQuery('input[name="user_agent"]').val(),m=jQuery('input[name="debuglog_temp_path"]').val(),n={name:b,email:c,website:d,subject:e,details:f,request_id:h,request_type:"premium_support",server_address:i,ip_address:j,server_type:k,user_agent:l,debuglog_temp_path:m};if("bug_report"==g){var o=jQuery("#wp_admin_username").val();if(""==o)return alert(rtmedia_admin_support_strings.wp_admin_username_error),!1;var p=jQuery("#wp_admin_pwd").val();if(""==p)return alert(rtmedia_admin_support_strings.wp_admin_pwd_error),!1;var q=jQuery("#ssh_ftp_host").val();if(""==q)return alert(rtmedia_admin_support_strings.ssh_ftp_host_error),!1;var r=jQuery("#ssh_ftp_username").val();if(""==r)return alert(rtmedia_admin_support_strings.ssh_ftp_username_error),!1;var s=jQuery("#ssh_ftp_pwd").val();if(""==s)return alert(rtmedia_admin_support_strings.ssh_ftp_pwd_error),!1;n={name:b,email:c,website:d,subject:e,details:f,request_id:h,request_type:"premium_support",server_address:i,ip_address:j,server_type:k,user_agent:l,wp_admin_username:o,wp_admin_pwd:p,ssh_ftp_host:q,ssh_ftp_username:r,ssh_ftp_pwd:s}}for(formdata in n){if(""==n[formdata]&&"debuglog_temp_path"!=formdata)return alert("Please enter "+formdata.replace("_"," ")+" field."),!1;if(""==n[formdata]&&"debuglog_temp_path"==formdata)return alert("Please upload attachment."),!1}return data={action:"rtmedia_submit_request",form_data:n,support_wpnonce:jQuery("#support_wpnonce").val()},jQuery.post(ajaxurl,data,function(b){return b=b.trim(),"false"==b?(alert(rtmedia_admin_support_strings.all_fields_error),!1):(a("#rtmedia_service_contact_container").empty(),void a("#rtmedia_service_contact_container").append(b))}),!1}),jQuery("#cancel-request").click(function(){return!1}),jQuery(".rtm_enable_masonry_view input[type=checkbox]").is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide(),jQuery(".rtm_enable_masonry_view input[type=checkbox]").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide()}),jQuery("#rtm-masonry-change-thumbnail-info").click(function(a){jQuery("html, body").animate({scrollTop:0},"500","swing")})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
app/assets/admin/js/settings.js CHANGED
@@ -766,7 +766,6 @@ jQuery( document ).ready( function ( $ ) {
766
var name = jQuery( '#name' ).val();
767
var email = jQuery( '#email' ).val();
768
var website = jQuery( '#website' ).val();
769
- var phone = jQuery( '#phone' ).val();
770
var subject = jQuery( '#subject' ).val();
771
var details = jQuery( '#details' ).val();
772
var request_type = jQuery( 'input[name="request_type"]' ).val();
@@ -780,7 +779,6 @@ jQuery( document ).ready( function ( $ ) {
780
name: name,
781
email: email,
782
website: website,
783
- phone: phone,
784
subject: subject,
785
details: details,
786
request_id: request_id,
@@ -821,7 +819,6 @@ jQuery( document ).ready( function ( $ ) {
821
name: name,
822
email: email,
823
website: website,
824
- phone: phone,
825
subject: subject,
826
details: details,
827
request_id: request_id,
@@ -838,9 +835,12 @@ jQuery( document ).ready( function ( $ ) {
838
};
839
}
840
for ( formdata in form_data ) {
841
- if ( form_data[ formdata ] == "" && formdata != 'phone' ) {
842
alert( "Please enter " + formdata.replace( "_", " " ) + " field." );
843
return false;
844
}
845
}
846
data = {
766
var name = jQuery( '#name' ).val();
767
var email = jQuery( '#email' ).val();
768
var website = jQuery( '#website' ).val();
769
var subject = jQuery( '#subject' ).val();
770
var details = jQuery( '#details' ).val();
771
var request_type = jQuery( 'input[name="request_type"]' ).val();
779
name: name,
780
email: email,
781
website: website,
782
subject: subject,
783
details: details,
784
request_id: request_id,
819
name: name,
820
email: email,
821
website: website,
822
subject: subject,
823
details: details,
824
request_id: request_id,
835
};
836
}
837
for ( formdata in form_data ) {
838
+ if ( form_data[ formdata ] == "" && formdata != 'debuglog_temp_path' ) {
839
alert( "Please enter " + formdata.replace( "_", " " ) + " field." );
840
return false;
841
+ } else if ( form_data[ formdata ] == "" && formdata == 'debuglog_temp_path' ) {
842
+ alert( "Please upload attachment." );
843
+ return false;
844
}
845
}
846
data = {
app/assets/css/rtmedia.css CHANGED
@@ -93,6 +93,13 @@
93
width: 100%;
94
}
95
96
#buddypress #whats-new-options {
97
height: auto !important;
98
overflow: hidden;
@@ -140,6 +147,12 @@ body.media.buddypress {
140
text-decoration: none;
141
}
142
143
.rtmedia-container {
144
box-sizing: border-box;
145
}
@@ -168,14 +181,18 @@ body.media.buddypress {
168
display: inline-block;
169
}
170
171
- #rtmedia-uploader-form .rtm-plupload-list, #rtmedia_uploader_filelist {
172
list-style: none;
173
margin-left: -4px;
174
margin-right: -4px;
175
padding-left: 0;
176
padding-top: 10px;
177
}
178
- #rtmedia-uploader-form .rtm-plupload-list li, #rtmedia_uploader_filelist li {
179
background: #EEEEEE;
180
float: left;
181
margin: 4px;
@@ -183,27 +200,45 @@ body.media.buddypress {
183
padding: 5px;
184
position: relative;
185
}
186
- #rtmedia-uploader-form .rtm-plupload-list li.upload-error, #rtmedia_uploader_filelist li.upload-error {
187
border: 1px solid red;
188
}
189
- #rtmedia-uploader-form .rtm-plupload-list img, #rtmedia_uploader_filelist img {
190
max-width: 100%;
191
}
192
- #rtmedia-uploader-form .rtm-plupload-list canvas, #rtmedia_uploader_filelist canvas {
193
display: block;
194
max-width: 100%;
195
}
196
- #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title, #rtmedia_uploader_filelist .rtm-upload-edit-title {
197
font-size: 12px;
198
}
199
- #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc, #rtmedia_uploader_filelist .rtm-upload-edit-desc {
200
font-size: 12px;
201
display: block;
202
}
203
- #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label, #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label, #rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label, #rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label {
204
display: block;
205
}
206
- #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title, #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title, #rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title, #rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title {
207
min-width: 100%;
208
margin-top: 1px;
209
}
@@ -217,6 +252,16 @@ body.media.buddypress {
217
clear: both;
218
}
219
220
button#rtmedia-add-media-button-post-update {
221
padding: 3px 6px;
222
}
@@ -1046,6 +1091,10 @@ img.mfp-img {
1046
overflow-y: auto;
1047
margin: 5px 0; */
1048
}
1049
.mfp-content .rtm-single-meta {
1050
background: #FFFFFF;
1051
overflow: hidden;
@@ -1286,7 +1335,8 @@ img.mfp-img {
1286
float: left;
1287
margin-right: 10px;
1288
}
1289
- .rtmedia-actions-before-comments .rtmedia-comment-link, #buddypress .rtmedia-actions-before-comments .rtmedia-like {
1290
border: 0;
1291
font-size: 13px;
1292
font-weight: normal;
@@ -1294,7 +1344,8 @@ img.mfp-img {
1294
padding: 0;
1295
text-transform: none;
1296
}
1297
- .rtmedia-actions-before-comments .rtmedia-comment-link:hover, #buddypress .rtmedia-actions-before-comments .rtmedia-like:hover {
1298
background: transparent;
1299
}
1300
@@ -1394,12 +1445,12 @@ img.mfp-img {
1394
}
1395
1396
.rtm-media-single-comments {
1397
- background-color: #edeff4;
1398
bottom: 20px;
1399
padding: 10px;
1400
width: 100%;
1401
}
1402
.rtm-media-single-comments textarea {
1403
font-size: 12px;
1404
line-height: 14px;
1405
max-height: 40px;
@@ -1530,6 +1581,10 @@ img.mfp-img {
1530
float: right;
1531
}
1532
1533
.rtmedia-plupload-container {
1534
position: relative;
1535
float: left;
@@ -1544,7 +1599,7 @@ img.mfp-img {
1544
margin-right: 10px;
1545
}
1546
1547
- .rtmedia-list-item.media-type-document, .rtmedia-list-item.media-type-music, .rtmedia-list-item.media-type-video {
1548
display: inline-block;
1549
}
1550
@@ -1578,6 +1633,14 @@ img.mfp-img {
1578
text-decoration: underline;
1579
}
1580
1581
.rtmedia-album-edit .rtm-checkbox-wrap {
1582
background: rgba(255, 255, 255, 0.9);
1583
height: 30px;
93
width: 100%;
94
}
95
96
+ #buddypress #whats-new-form .rtmedia-uploader-div {
97
+ display: none;
98
+ }
99
+ #buddypress #whats-new-form #whats-new-options .rtmedia-uploader-div {
100
+ display: block;
101
+ }
102
+
103
#buddypress #whats-new-options {
104
height: auto !important;
105
overflow: hidden;
147
text-decoration: none;
148
}
149
150
+ #buddypress ul.activity-list li.activity-item .activity-comments .rtmedia-uploader-div {
151
+ color: #767676;
152
+ margin-left: 50px;
153
+ padding-left: 15px;
154
+ }
155
+
156
.rtmedia-container {
157
box-sizing: border-box;
158
}
181
display: inline-block;
182
}
183
184
+ #rtmedia-uploader-form .rtm-plupload-list,
185
+ form .rtmedia-container .rtm-plupload-list,
186
+ #rtmedia_uploader_filelist {
187
list-style: none;
188
margin-left: -4px;
189
margin-right: -4px;
190
padding-left: 0;
191
padding-top: 10px;
192
}
193
+ #rtmedia-uploader-form .rtm-plupload-list li,
194
+ form .rtmedia-container .rtm-plupload-list li,
195
+ #rtmedia_uploader_filelist li {
196
background: #EEEEEE;
197
float: left;
198
margin: 4px;
200
padding: 5px;
201
position: relative;
202
}
203
+ #rtmedia-uploader-form .rtm-plupload-list li.upload-error,
204
+ form .rtmedia-container .rtm-plupload-list li.upload-error,
205
+ #rtmedia_uploader_filelist li.upload-error {
206
border: 1px solid red;
207
}
208
+ #rtmedia-uploader-form .rtm-plupload-list img,
209
+ form .rtmedia-container .rtm-plupload-list img,
210
+ #rtmedia_uploader_filelist img {
211
max-width: 100%;
212
}
213
+ #rtmedia-uploader-form .rtm-plupload-list canvas,
214
+ form .rtmedia-container .rtm-plupload-list canvas,
215
+ #rtmedia_uploader_filelist canvas {
216
display: block;
217
max-width: 100%;
218
}
219
+ #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,
220
+ form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title,
221
+ #rtmedia_uploader_filelist .rtm-upload-edit-title {
222
font-size: 12px;
223
}
224
+ #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,
225
+ form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc,
226
+ #rtmedia_uploader_filelist .rtm-upload-edit-desc {
227
font-size: 12px;
228
display: block;
229
}
230
+ #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label, #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,
231
+ form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title-wrapper label,
232
+ form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,
233
+ #rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,
234
+ #rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label {
235
display: block;
236
}
237
+ #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title, #rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,
238
+ form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,
239
+ form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,
240
+ #rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,
241
+ #rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title {
242
min-width: 100%;
243
margin-top: 1px;
244
}
252
clear: both;
253
}
254
255
+ .rtm-upload-button-wrapper button.rtmedia-comment-media-upload,
256
+ button.rtmedia-comment-media-upload {
257
+ padding: 3px 6px;
258
+ }
259
+ .rtm-upload-button-wrapper button.rtmedia-comment-media-upload .dashicons,
260
+ button.rtmedia-comment-media-upload .dashicons {
261
+ font-size: 18px;
262
+ line-height: 20px;
263
+ }
264
+
265
button#rtmedia-add-media-button-post-update {
266
padding: 3px 6px;
267
}
1091
overflow-y: auto;
1092
margin: 5px 0; */
1093
}
1094
+ .mfp-content .rtm-lightbox-container .rtmedia-comment-media-list .mejs-container.mejs-video {
1095
+ min-height: 200px;
1096
+ min-width: 200px;
1097
+ }
1098
.mfp-content .rtm-single-meta {
1099
background: #FFFFFF;
1100
overflow: hidden;
1335
float: left;
1336
margin-right: 10px;
1337
}
1338
+ .rtmedia-actions-before-comments .rtmedia-comment-link,
1339
+ .rtmedia-actions-before-comments .rtmedia-view-conversation, #buddypress .rtmedia-actions-before-comments .rtmedia-like {
1340
border: 0;
1341
font-size: 13px;
1342
font-weight: normal;
1344
padding: 0;
1345
text-transform: none;
1346
}
1347
+ .rtmedia-actions-before-comments .rtmedia-comment-link:hover,
1348
+ .rtmedia-actions-before-comments .rtmedia-view-conversation:hover, #buddypress .rtmedia-actions-before-comments .rtmedia-like:hover {
1349
background: transparent;
1350
}
1351
1445
}
1446
1447
.rtm-media-single-comments {
1448
bottom: 20px;
1449
padding: 10px;
1450
width: 100%;
1451
}
1452
.rtm-media-single-comments textarea {
1453
+ background-color: #edeff4;
1454
font-size: 12px;
1455
line-height: 14px;
1456
max-height: 40px;
1581
float: right;
1582
}
1583
1584
+ form.rt_media_comment_form .rtmedia-plupload-container {
1585
+ overflow: hidden;
1586
+ }
1587
+
1588
.rtmedia-plupload-container {
1589
position: relative;
1590
float: left;
1599
margin-right: 10px;
1600
}
1601
1602
+ .rtmedia-list-item.media-type-photo, .rtmedia-list-item.media-type-document, .rtmedia-list-item.media-type-music, .rtmedia-list-item.media-type-video {
1603
display: inline-block;
1604
}
1605
1633
text-decoration: underline;
1634
}
1635
1636
+ a.rtmedia-comment-link {
1637
+ display: none;
1638
+ }
1639
+
1640
+ a.rtmedia-comment-link.rtmedia-comments-link {
1641
+ display: initial;
1642
+ }
1643
+
1644
.rtmedia-album-edit .rtm-checkbox-wrap {
1645
background: rgba(255, 255, 255, 0.9);
1646
height: 30px;
app/assets/css/rtmedia.min.css CHANGED
@@ -1 +1 @@
1
- .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.rtmedia-success,.rtmedia-warning{margin:10px 0;padding:8px 14px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5);border-bottom:1px solid #e7e7e7;cursor:pointer}.rtmedia-success{background-color:#dff0d8;color:#468847}.rtmedia-warning{background-color:#F0D8DD;color:#884646}.clearfix:after{content:"";display:table;clear:both}#buddypress form#whats-new-form textarea{box-sizing:border-box;min-height:70px;width:100%}#buddypress #whats-new-options{height:auto !important;overflow:hidden}#buddypress form#whats-new-form p.activity-greeting{line-height:1}#buddypress form#whats-new-form #whats-new-options select{border:1px solid #ccc;font-size:13px;margin-top:0;padding:3px 2px}#whats-new-submit #aw-whats-new-submit{font-size:12px;line-height:18px;padding:4px 6px}#whats-new-post-in-box{float:left;font-size:13px}#buddypress form#whats-new-form #whats-new-submit{margin-top:0}#whats-new-textarea{margin-bottom:10px}body.media.buddypress{overflow-y:auto}#buddypress input[type=submit]:focus{background:#ededed;border:1px solid #bbb;color:#555;outline:0;text-decoration:none}.rtmedia-container{box-sizing:border-box}.rtmedia-container *,.rtmedia-container *:before,.rtmedia-container *:after{box-sizing:inherit}.rtmedia-list.rtmedia-list{list-style:none;margin:0;padding:0}.rtmedia-list-item>a{border:0;display:inline-block;text-decoration:none}.rtmedia-list-item>a:focus{outline:0}.rtmedia-list-item>a+p{display:none}.rtmedia-list-item>a .rtmedia-item-thumbnail img{display:inline-block}#rtmedia-uploader-form .rtm-plupload-list,#rtmedia_uploader_filelist{list-style:none;margin-left:-4px;margin-right:-4px;padding-left:0;padding-top:10px}#rtmedia-uploader-form .rtm-plupload-list li,#rtmedia_uploader_filelist li{background:#eee;float:left;margin:4px;max-width:110px;padding:5px;position:relative}#rtmedia-uploader-form .rtm-plupload-list li.upload-error,#rtmedia_uploader_filelist li.upload-error{border:1px solid red}#rtmedia-uploader-form .rtm-plupload-list img,#rtmedia_uploader_filelist img{max-width:100%}#rtmedia-uploader-form .rtm-plupload-list canvas,#rtmedia_uploader_filelist canvas{display:block;max-width:100%}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title{font-size:12px}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,#rtmedia_uploader_filelist .rtm-upload-edit-desc{font-size:12px;display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label{display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title{min-width:100%;margin-top:1px}.rtm-plupload-list:empty{display:none}.rtmedia-uploader-div,.rtmedia-uploader{clear:both}button#rtmedia-add-media-button-post-update{padding:3px 6px}button#rtmedia-add-media-button-post-update .dashicons{font-size:18px;line-height:20px}.plupload_file_name{font-size:11px;font-weight:bold;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plupload_file_size{color:#666;font-size:10px}.plupload_file_action{background:#eee;position:absolute;height:18px;right:4px;top:0;width:18px;z-index:10}.plupload_file_action .dashicons{color:#DD3D36;cursor:pointer;font-size:16px;height:18px;padding:2px 1px;width:18px}.plupload_file_status{height:18px;overflow:hidden;position:relative}.plupload_file_progress{background:#7AD03A;height:4px;position:absolute;top:0}.rtm-form .rtm-field-wrap{margin-bottom:20px}.rtmedia_next_prev{padding:0 10px}.rtm-page-number{float:left}.rtm-page-number .rtm-label{line-height:30px}.rtm-page-number .rtm-label,.rtm-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{float:left}.rtm-pagination{background:transparent;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:left;width:100%;padding:10px 0}.rtm-pagination .rtm-paginate{float:right;font-size:15px}.rtm-pagination .rtm-paginate a,.rtm-pagination .rtm-paginate span{display:inline-block;line-height:1;margin:0 2px;padding:8px;text-decoration:none}.rtm-pagination .rtm-paginate a.rtmedia-page-link{padding:8px}.rtm-pagination .dashicons{font-size:14px;height:auto;line-height:1.2;margin:0;padding:0;width:auto}#rtmedia_go_to_num{font-size:16px;margin:0 5px;padding:4px 5px;width:80px}.rtmedia-upload-not-allowed{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;margin-bottom:20px;padding:10px 15px}.plupload_file_name{position:relative}.plupload_file_name .dashicons{background:#eee;color:#DD3D36;cursor:pointer;font-size:14px;height:auto;padding:0 2px 0 5px;position:absolute;right:0;top:0;width:auto}.plupload_file_name .dashicons-yes{color:#7AD03A}.rtmedia-gallery-item-actions{background-color:rgba(0,0,0,0.6);opacity:0;position:absolute;text-align:center;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s;width:100%;z-index:9}.rtmedia-gallery-item-actions a{border:0;box-shadow:0 0 0;color:#fff;display:inline-block;font-size:12px;outline:none;padding:4px;text-align:left;text-decoration:none;text-transform:uppercase}.rtmedia-gallery-item-actions .dashicons{font-size:17px;margin-right:2px;position:relative;top:1px}.rtmedia-gallery-item-actions .dashicons-trash{font-size:15px}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-gallery-item-actions{opacity:1}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-bulk-edit-item-wrap+.rtmedia-gallery-item-actions{opacity:0}.rtmedia-footer-link{clear:both;overflow:hidden;padding:16px 0;position:relative;text-align:center}.rtmedia-text-link-decoration,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span{text-decoration:none}.rtmedia-text-link-decoration:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span:hover{text-decoration:underline}.rtmedia-container .rtmedia-edit-list-media-table{max-height:300px;overflow-y:auto}.rtmedia-container .rtmedia-edit-list-media-table thead tr{background-color:#50A1D7}.rtmedia-container .rtmedia-edit-list-media-table thead th{text-align:center;color:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(odd){background:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(even){background:#DCDCDC}table.rtmedia-edit-media-list tr{line-height:30px}table.rtmedia-edit-media-list tr th{color:#333;padding:4px 10px;line-height:20px}table.rtmedia-edit-media-list tr .rtm-edit-media-list-heading{width:44%}table.rtmedia-edit-media-list tr .rtm-edit-media-list-title-heading{width:56%}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title{padding:4px;font-size:14px;line-height:24px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a{text-decoration:none;color:#333}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a{color:#333;font-size:13px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span{color:#FF0000;cursor:pointer;font-size:13px}.rtm-hide{display:none}.rtmedia-list-item .rtmedia-album-media-count{position:absolute;top:0;right:0;background-color:black;color:white;padding:0 5px}.rtm-tabs.rtm-tabs{border-bottom:1px solid #eee;list-style:none;margin:0 0 20px;padding:0}.rtm-tabs li{border:1px solid #eee;border-bottom:0;float:left;margin:0 5px;padding:0}.rtm-tabs a{border:0;display:block;padding:5px 15px;text-decoration:none}.rtm-tabs a:focus{background:transparent;box-shadow:0 0 0}.rtm-tabs .active{position:relative}.rtm-tabs .active:after{background:#fff;bottom:-1px;content:' ';height:1px;left:0;position:absolute;width:100%}.rtm-tabs .dashicons{font-size:16px;height:auto;line-height:20px;margin-right:8px;width:auto}.rtmedia-edit-media-tabs .rtm-tabs a{border-bottom:0 none}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:104211;overflow:hidden;position:fixed;background:rgba(0,0,0,0.9)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:104311;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;max-width:84%;margin:0 auto;right:0;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{background:#fff;color:#999;cursor:pointer;font-size:24px;font-style:normal;height:30px;line-height:30px;padding:0;position:absolute;right:1px;text-align:center;text-decoration:none;text-indent:2px;top:0;width:32px;z-index:12}.mfp-close:hover,.mfp-close:focus{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{cursor:pointer;position:absolute;opacity:0.65;filter:alpha(opacity=65);margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent;opacity:0;z-index:10;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .mfp-arrow{opacity:1}@media (max-device-width: 640px){.mfp-arrow{display:none}.rtm-single-media:hover .mfp-arrow{display:none}}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1;filter:alpha(opacity=100)}.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after,.mfp-arrow .mfp-a{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before,.mfp-arrow .mfp-b{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after,.mfp-arrow-left .mfp-a{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after,.mfp-arrow-right .mfp-a{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before,.mfp-arrow-right .mfp-b{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}.mfp-preloader{position:absolute;top:50%;left:0;right:0;margin-top:-36px;z-index:1044;font-size:0;width:36px;height:36px;margin-left:auto;margin-right:auto}.mfp-preloader:before{content:'Loading…';position:absolute;width:30px;height:30px}.mfp-preloader:not(:required):before{content:'';border-radius:50%;border:3px solid rgba(255,255,255,0.27);border-top-color:rgba(255,255,255,0.9);animation:spinner .6s linear infinite;-webkit-animation:spinner .6s linear infinite}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}#atwho-container #atwho-ground-comment_content .atwho-view{z-index:2147483647}.mfp-content .rtm-lightbox-container{background:#000;margin:0 auto;position:relative}.mfp-content .rtm-single-meta{background:#fff;overflow:hidden;padding:20px 20px 110px;position:relative;vertical-align:top}.rtm-single-media{overflow:hidden;position:relative;text-align:center;vertical-align:middle}.rtm-single-media .mejs-container{margin:0 auto;max-width:inherit}.rtm-single-media .rtmedia-message-container{position:absolute;top:45%;left:0;right:0;margin-left:auto;margin-right:auto}@media (max-device-width: 640px){.rtm-single-media .rtmedia-message-container{top:25%}}.rtm-ltb-action-container{background-color:rgba(0,0,0,0.6);bottom:0;color:#fff;line-height:38px;opacity:0;padding:0 10px;position:absolute;width:100%;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}@media (max-device-width: 640px){.rtm-ltb-action-container{clear:both;position:relative;opacity:1}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);display:block;font-family:inherit;font-weight:normal;line-height:24px;margin:0;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button:hover{background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.8)}#buddypress #rtmedia-single-media-container.rtmedia-single-media .rtm-options .button{color:#333;margin:0 auto;padding:0 4px 0 0}#buddypress #rtm-media-options-list .rtm-options form button{font-size:small}#buddypress #rtm-media-options-list .rtm-options .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);float:left;font-family:inherit;font-weight:normal;line-height:24px;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}.rtm-options.rtm-options{background:#666;color:#fff;display:none;font-size:14px;list-style:none;margin:0;padding:8px 10px;position:absolute;left:0;top:38px;width:190px;z-index:10}.rtm-options li{margin:0;overflow:hidden;padding:2px 0}.rtm-media-options .rtm-options:after{bottom:100%;left:20px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#666;border-width:6px;margin-left:-6px}.mfp-content .rtm-options{background:#fff;color:#333;bottom:38px;right:0;left:auto;top:auto}.mfp-content .rtm-options:after{top:100%;right:22px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:6px;margin-left:-6px}.rtm-options .dashicons{font-size:14px;line-height:24px;margin-right:2px}.rtm-media-options .rtm-options a{border:0;color:#fff;display:block;text-decoration:none}.rtm-ltb-title{color:rgba(255,255,255,0.7);float:left;font-size:13px}.rtm-ltb-title a{color:inherit}.rtm-ltb-title a:hover{border-bottom:1px dotted;color:#fff}.rtm-item-actions{float:right}.rtm-item-actions>div,.rtm-item-actions>form{float:left;margin:0 2px;padding:7px 0;position:relative}.rtmedia-media img{display:inline-block;max-height:inherit;height:auto;max-width:100%;width:auto}@media only screen and (max-device-width: 1024px){.rtmedia-media{margin:40px 0}}.rtm-user-meta-details .username{font-size:16px;line-height:1;margin-bottom:6px}.userprofile{float:left;margin:0 16px 16px 0;max-width:54px}.userprofile a{display:block}.userprofile img{height:auto;max-width:100%}.rtm-time-privacy{color:#999;font-size:12px}.rtm-time-privacy .dashicons{font-size:14px;line-height:1.5;margin-top:-2px}.rtmedia-actions-before-comments>span{float:left;margin-right:10px}.rtmedia-actions-before-comments .rtmedia-comment-link,#buddypress .rtmedia-actions-before-comments .rtmedia-like{border:0;font-size:13px;font-weight:normal;line-height:2;padding:0;text-transform:none}.rtmedia-actions-before-comments .rtmedia-comment-link:hover,#buddypress .rtmedia-actions-before-comments .rtmedia-like:hover{background:transparent}.rtmedia-comment-user-pic{float:left;margin-right:10px;max-width:36px}.rtmedia-comment-user-pic img{height:auto;max-width:100%}.rtm-like-comments-info{position:relative}.rtm-like-comments-info:after{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(237,239,244,0);border-bottom-color:#edeff4;border-width:4px;margin-left:-4px}.rtm-comment-list.rtm-comment-list{list-style:none;margin:0;padding:0}.rtm-comment-list li{background:#edeff4;font-size:12px;margin-bottom:1px;padding:10px;position:relative}.rtm-comment-list li:hover .rtmedia-delete-comment{opacity:1}.rtm-comment-list .rtmedia-no-comments{margin:0;padding:5px 10px}.rtmedia-like-info{background:#edeff4;font-size:12px;margin-bottom:1px;padding:5px 10px;position:relative}.rtm-comment-wrap{overflow:hidden}.rtm-comment-wrap .rtmedia-comment-author{font-weight:700}.rtm-comment-wrap .rtmedia-comment-date{color:#999;font-size:11px}.rtmedia-comment-content{margin-top:2px}.rtmedia-delete-comment{color:#999;cursor:pointer;font-size:16px;opacity:0;position:absolute;right:5px;top:5px}.rtmedia-comment-content p{margin:0}.rtmedia-comment-details{line-height:1.5;margin-top:-3px}.rtmedia-item-comments textarea{font-size:14px;padding:4px}.rtm-media-single-comments{background-color:#edeff4;bottom:20px;padding:10px;width:100%}.rtm-media-single-comments textarea{font-size:12px;line-height:14px;max-height:40px;min-height:30px;padding:4px}.rtmedia-popup{background:#fff;margin:20px auto;max-width:600px;padding:20px;position:relative;width:auto}.rtmedia-popup .rtm-modal-title{font-size:24px;margin-bottom:20px;margin-top:0}.rtmedia-popup label{display:block;margin-bottom:5px}#rtm-modal-container p{margin-bottom:10px}#rtm-mejs-video-container{margin:0 auto}.rtmedia-media-name{float:left;max-width:140px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.rtm-single-media.rtm-media-type-video{padding-bottom:40px;padding-top:40px}.rtmedia-gallery-alert-container{position:fixed;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,0.6);z-index:999997}.rtmedia-gallery-message-box{position:fixed;top:40%;left:50%;margin-left:auto;margin-right:auto;z-index:999999}.rtmedia-gallery-message-box span{position:relative;left:-50%}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}#buddypress ul.rtmedia-list li{border-bottom:0;padding-bottom:0}.rtmedia-activity-container .rtmedia-item-actions{display:none}.rtmedia-activity-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title a{border:0;color:#666;font-size:13px;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}#rtmedia-whts-new-upload-container div{left:0 !important;position:absolute;top:0 !important}#aw-whats-new-submit,.rtmedia-add-media-button{display:block}.rtm-drag-drop-active{border:4px dashed green !important;display:block;height:100%;opacity:0.5;z-index:9999}#rtm-drop-files-title{background:rgba(0,0,0,0.2);display:none;font-size:14px;height:100%;padding:20px;position:absolute;top:0;width:100%}#rtSelectPrivacy{float:right}.rtmedia-plupload-container{position:relative;float:left}.rtm-upload-button-wrapper{float:left;margin-right:5px}#rtmedia-action-update{margin-right:10px}.rtmedia-list-item.media-type-document,.rtmedia-list-item.media-type-music,.rtmedia-list-item.media-type-video{display:inline-block}.media-type-music .mejs-container{margin-bottom:10px}.previous-pagination{float:left;margin-top:10px}.next-pagination{float:right;margin-top:10px}@media screen and (max-width: 500px){#activity-stream li .media-type-video{width:100%}#activity-stream li .media-type-video .mejs-video{max-width:100%;min-width:100%}}#rtmedia_show_all_comment{cursor:pointer}#rtmedia_show_all_comment:hover{text-decoration:underline}.rtmedia-album-edit .rtm-checkbox-wrap{background:rgba(255,255,255,0.9);height:30px;line-height:1;padding:10px;position:absolute;z-index:10}.rtmedia-album-edit .rtmedia-item-selector{position:relative;top:-7px}.rtmedia-album-edit .rtmedia-move-container{display:none}.rtm-single-actions.rtm-item-actions{float:none}.media-item .describe{border-collapse:collapse;width:100%;border-top-style:solid;border-top-width:1px;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:bold}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:bold}.media-upload-form th.label label{font-weight:bold;margin:0.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}abbr.required{border:medium none;text-decoration:none}.media-item .describe input[type="text"],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.media-item .edit-attachment,.describe-toggle-on,.describe-toggle-off{display:block;line-height:36px;float:right;margin-right:15px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}#media-items .media-item{border-style:solid;border-width:1px;min-height:36px;position:relative;margin-top:-1px;width:100%}#media-items{width:623px}.media-new-php #media-items{margin:1em 0}#media-items:empty{border:0 none}.media-item .filename{line-height:36px;overflow:hidden;padding:0 10px}.media-item .error-div{padding-left:10px}.media-item .pinkynail{float:left;margin:2px 2px 0;max-width:40px;max-height:32px}.media-item .startopen,.media-item .startclosed{display:none}.media-item .original{position:relative;height:34px}.media-item .progress{float:right;height:22px;margin:6px 10px 0 0;width:200px;line-height:2em;padding:0;overflow:hidden;margin-bottom:2px;border:1px solid #d1d1d1;background:#f7f7f7;background-image:-webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));background-image:-webkit-linear-gradient(bottom, #fff, #f7f7f7);background-image:linear-gradient(to top, #fff, #f7f7f7);border-radius:3px;box-shadow:inset 0 0 3px rgba(0,0,0,0.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-24px;background-color:#8cc1e9;background-image:-webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));background-image:-webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);background-image:linear-gradient(to top, #72a7cf, #8cc1e9);border-radius:3px;box-shadow:0 0 3px rgba(0,0,0,0.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0 8px;text-shadow:0 1px 0 rgba(255,255,255,0.4);color:rgba(0,0,0,0.6)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}.media-upload-form .media-item.error{margin:0;padding:0}.media-upload-form .media-item.error p,.media-item .error-div{line-height:16px;margin:5px 10px;padding:0}.media-item .error-div a.dismiss{display:block;float:right;margin:5px 4px 0 15px}.find-box{width:600px;height:300px;overflow:hidden;padding:33px 0 51px;position:absolute;z-index:1000}.find-box-head{cursor:move;font-weight:bold;height:2em;line-height:2em;padding:1px 12px;position:absolute;top:5px;width:100%}.find-box-inside{overflow:auto;padding:6px;height:100%}.find-box-search{overflow:hidden;padding:9px;position:relative}.find-box-search .spinner{float:none;left:125px;position:absolute;top:9px}#find-posts-input{float:left;width:140px;height:24px}#find-posts-search{float:left;margin:1px 4px 0 3px}#find-posts-response{margin:8px 0;padding:0 1px 6px}#find-posts-response table{width:100%}#find-posts-response .found-radio{padding:3px 0 0 8px;width:15px}.find-box-buttons{padding:8px;overflow:hidden}.find-box #resize-se{position:absolute;right:1px;bottom:1px}.ui-find-overlay{position:absolute;top:0;left:0;background-color:#000;opacity:0.6;filter:alpha(opacity=60)}ul#dismissed-updates{display:none}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-0.5em 0 2em 0}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border-width:1px;border-style:solid;line-height:1.8em;word-spacing:3px;border-radius:6px}.drag-drop #drag-drop-area{border:4px dashed #DDDDDD;height:200px}.drag-drop .drag-drop-inside{margin:70px auto 0;width:250px}.drag-drop-inside p{color:#aaa;font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}#plupload-upload-ui{position:relative}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative}.imgedit-settings p{margin:8px 0}.post-php .imgedit-wrap table{width:100%}.describe .imgedit-wrap table td,.wp_attachment_holder .imgedit-wrap table td{vertical-align:top;padding-top:0}.describe .imgedit-wrap table td.imgedit-settings{padding:0 5px}.wp_attachment_holder .imgedit-wrap table td.imgedit-settings{width:250px}td.imgedit-settings input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;background:#fff url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat scroll 22px 10px;background-size:16px 16px;opacity:0.7;filter:alpha(opacity=70);width:100%;height:500px;display:none}.spinner{background:url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat;background-size:16px 16px;display:none;float:right;opacity:0.7;filter:alpha(opacity=70);width:16px;height:16px;margin:5px 5px 0}.no-float{float:none}.media-disabled,.imgedit-settings .disabled{color:grey}.wp_attachment_image,.A1B1{overflow:hidden}.wp_attachment_image .button,.A1B1 .button{float:left}.no-js .wp_attachment_image .button{display:none}.wp_attachment_image .spinner,.A1B1 .spinner{float:left;padding:0 4px 4px;vertical-align:bottom}.imgedit-menu{margin:0 0 12px;min-width:300px}.imgedit-menu div{float:left;width:32px;height:32px}.imgedit-crop-wrap{position:relative}.imgedit-crop{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -9px -31px;margin:0 8px 0 0}.imgedit-crop.disabled:hover{background-position:-9px -31px}.imgedit-crop:hover{background-position:-9px -1px}.imgedit-rleft{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -46px -31px;margin:0 3px}.imgedit-rleft.disabled:hover{background-position:-46px -31px}.imgedit-rleft:hover{background-position:-46px -1px}.imgedit-rright{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -77px -31px;margin:0 8px 0 3px}.imgedit-rright.disabled:hover{background-position:-77px -31px}.imgedit-rright:hover{background-position:-77px -1px}.imgedit-flipv{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -115px -31px;margin:0 3px}.imgedit-flipv.disabled:hover{background-position:-115px -31px}.imgedit-flipv:hover{background-position:-115px -1px}.imgedit-fliph{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -147px -31px;margin:0 8px 0 3px}.imgedit-fliph.disabled:hover{background-position:-147px -31px}.imgedit-fliph:hover{background-position:-147px -1px}.imgedit-undo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -184px -31px;margin:0 3px}.imgedit-undo.disabled:hover{background-position:-184px -31px}.imgedit-undo:hover{background-position:-184px -1px}.imgedit-redo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -215px -31px;margin:0 8px 0 3px}.imgedit-redo.disabled:hover{background-position:-215px -31px}.imgedit-redo:hover{background-position:-215px -1px}.imgedit-applyto img{margin:0 8px 0 0}.imgedit-group h3{font-size:18px}.imgedit-group .dashicons{border:0;line-height:1.2}.imgedit-group-top{margin:5px 0}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block}.imgedit-help{display:none;font-style:italic;margin-bottom:8px}a.imgedit-help-toggle{text-decoration:none}.form-table td.imgedit-response{padding:0}.imgedit-submit{margin:8px 0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle}.wp_attachment_details{margin-bottom:20px}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:0.5}.bp-media-image-editor-cotnainer{margin-top:35px}.wp_attachment_image .bp-media-image-edit{float:left}.wp_attachment_image .spinner{display:none}.bp-media-image-editor-cotnainer .hidden{display:none}.bp-media-image-editor-cotnainer div.updated{margin:5px 0 15px;background-color:#ffffe0;border-color:#e6db55;padding:0 .6em;border-radius:3px;border-width:1px;border-style:solid}.bp-media-image-editor-cotnainer div.updated p{margin:.5em 0;padding:2px}body article.bp_members.bp_member .entry-content,body div.bp_members.bp_member .entry-content{width:100%}.rtm-media-gallery-uploader{display:none}.rtmedia-uploader .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;color:#AAAAAA;margin-top:20px;padding:25px 0}.rtmedia-uploader .drag-drop.dragover{border-color:#83b4d8}.rtmedia-uploader .drag-drop .drag-drop-info{font-size:20px;line-height:24px}.rtmedia-uploader .drag-drop .rtm-select-files span{vertical-align:middle}.rtmedia-uploader .drag-drop .rtm-seperator{margin:0px 20px}.rtmedia-uploader .drag-drop .start-media-upload{display:none;margin-top:20px}.rtmedia-uploader .drag-drop .rtm-file-size-limit{vertical-align:middle;font-size:16px;line-height:24px}.rtm-uploader-main-wrapper .rtm-uploader-tabs{margin-bottom:10px;text-align:left}.rtm-uploader-main-wrapper ul{border-bottom:1px solid #CCC}.rtm-uploader-main-wrapper li{margin:0 0 -1px 10px;display:inline-block;padding:5px 10px;line-height:25px;background-color:#e4e4e4;border:1px solid #CCC}.rtm-uploader-main-wrapper li.active{background:transparent;border-left:1px solid #CCC;border-top:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #fafafa}.rtm-uploader-main-wrapper li:hover{cursor:pointer}.rtmedia-container .rtmedia-list{margin:10px -5px}.rtmedia-container .rtmedia-list .rtmedia-list-item{float:left;margin:5px;position:relative}.rtmedia-container .rtmedia-list .rtmedia-list-item>a{display:block}.rtmedia-container .rtmedia-list .rtmedia_time{background-color:#000;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:14px;opacity:0.75;padding:0 4px;position:absolute;right:2px;top:2px}.rtmedia-container .rtmedia-list img{vertical-align:top}.rtmedia-container .rtmedia-list .rtmedia-item-title h4{color:#666;font-size:12px;font-weight:normal;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.rtm-load-more{background:#eee;text-align:center}.rtmedia-container .rtm-load-more a{border:0;padding:10px 0}.rtm-load-more .rtm-media-loading{padding:10px 0}.rtm-media-options{line-height:1.4;margin-bottom:10px}.rtm-media-options>div{display:inline-block;cursor:pointer}.rtm-media-options .rtm-media-options-list{margin-right:5px;padding-right:10px;position:relative}.rtm-media-options>*{border-right:1px solid #999}.rtm-media-options>*:last-child{border-right:none}.rtm-media-options .dashicons{font-size:inherit;line-height:1.4}.rtmedia-upload-media-link{cursor:pointer}a.rtmedia-upload-media-link{border:none}.rtm-album-privacy span{font-size:16px;display:inline-block;margin:0 20px 20px 20px;vertical-align:top}.rtm-album-privacy label{margin-right:8px}.rtm-album-privacy .dashicons{font-size:16px;line-height:1.6;margin-right:5px}#rtm-media-options-list .rtmedia-delete-album{background:transparent;border:0;color:#fff;font-family:inherit;font-size:inherit;font-weight:inherit;padding:0;text-transform:inherit}#rtm-media-options-list .rtmedia-delete-album:hover{background:transparent;border:0;color:#fff}.rtmedia-single-container button.rtmedia-like{background-color:transparent;color:inherit}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mejs-container .mejs-controls .mejs-time{padding:10px 3px 0;content:''}.rtmedia-activity-container .mejs-playpause-button.mejs-play button:before,.rtmedia-activity-container .mejs-playpause-button.mejs-pause button:before,.rtmedia-activity-container .mejs-volume-button.mejs-mute button:before,.rtmedia-activity-container .mejs-fullscreen-button button:before,.rtmedia-media .mejs-playpause-button.mejs-play button:before,.rtmedia-media .mejs-playpause-button.mejs-pause button:before,.rtmedia-media .mejs-volume-button.mejs-mute button:before,.rtmedia-media .mejs-fullscreen-button button:before{content:''}@media only screen and (min-width: 1025px){.mfp-content .rtm-lightbox-container{display:table;table-layout:fixed;width:100%}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:table-cell;width:66.6667%}.mfp-content .rtm-single-meta{display:table-cell;width:33.3333%;padding:20px;height:473px}.mfp-content .rtm-single-meta .rtmedia-scroll{height:100%;overflow-X:hidden}}.rtl #rtSelectPrivacy{float:left}.rtl .rtmedia-plupload-container{float:right}.rtl .rtm-upload-button-wrapper{float:right}.rtl #whats-new-post-in-box{float:right}.rtl .describe-toggle-off{float:left}.rtl .media-item .pinkynail{float:right}.rtl .media-item .progress{float:left}.rtl .media-item .error-div a.dismiss{float:left}.rtl #find-posts-input{float:right}.rtl #find-posts-search{float:right}.rtl .spinner{float:left}.rtl .wp_attachment_image .button,.rtl .A1B1 .button{float:right}.rtl .wp_attachment_image .spinner,.rtl .A1B1 .spinner{float:right}.rtl .imgedit-menu div{float:right}.rtl .wp_attachment_image .bp-media-image-edit{float:right}.rtl .rtmedia-container .rtmedia-list .rtmedia-list-item{float:right}.rtl #buddypress #rtm-media-options-list .rtm-options .button{float:right}.rtl .rtm-ltb-title{float:right}.rtl .rtm-item-actions{float:left}.rtl .rtm-item-actions>div,.rtl .rtm-item-actions>form{float:right}.rtl .userprofile{float:right}.rtl .rtmedia-actions-before-comments>span{float:right}.rtl .rtmedia-comment-user-pic{float:right}.rtl .rtmedia-media-name{float:right}.rtl #rtmedia-uploader-form .rtm-plupload-list li,.rtl #rtmedia_uploader_filelist li{float:right}.rtl .rtm-page-number{float:right}.rtl .rtm-page-number .rtmedia-page-link{float:right}.rtl .rtm-pagination{float:right}.rtl .rtm-pagination .rtm-paginate{float:left}.rtl .rtm-tabs li{float:right}.rtl .alignleft{float:right}.rtl .alignright{float:left}
1
+ .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.rtmedia-success,.rtmedia-warning{margin:10px 0;padding:8px 14px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5);border-bottom:1px solid #e7e7e7;cursor:pointer}.rtmedia-success{background-color:#dff0d8;color:#468847}.rtmedia-warning{background-color:#F0D8DD;color:#884646}.clearfix:after{content:"";display:table;clear:both}#buddypress form#whats-new-form textarea{box-sizing:border-box;min-height:70px;width:100%}#buddypress #whats-new-form .rtmedia-uploader-div{display:none}#buddypress #whats-new-form #whats-new-options .rtmedia-uploader-div{display:block}#buddypress #whats-new-options{height:auto !important;overflow:hidden}#buddypress form#whats-new-form p.activity-greeting{line-height:1}#buddypress form#whats-new-form #whats-new-options select{border:1px solid #ccc;font-size:13px;margin-top:0;padding:3px 2px}#whats-new-submit #aw-whats-new-submit{font-size:12px;line-height:18px;padding:4px 6px}#whats-new-post-in-box{float:left;font-size:13px}#buddypress form#whats-new-form #whats-new-submit{margin-top:0}#whats-new-textarea{margin-bottom:10px}body.media.buddypress{overflow-y:auto}#buddypress input[type=submit]:focus{background:#ededed;border:1px solid #bbb;color:#555;outline:0;text-decoration:none}#buddypress ul.activity-list li.activity-item .activity-comments .rtmedia-uploader-div{color:#767676;margin-left:50px;padding-left:15px}.rtmedia-container{box-sizing:border-box}.rtmedia-container *,.rtmedia-container *:before,.rtmedia-container *:after{box-sizing:inherit}.rtmedia-list.rtmedia-list{list-style:none;margin:0;padding:0}.rtmedia-list-item>a{border:0;display:inline-block;text-decoration:none}.rtmedia-list-item>a:focus{outline:0}.rtmedia-list-item>a+p{display:none}.rtmedia-list-item>a .rtmedia-item-thumbnail img{display:inline-block}#rtmedia-uploader-form .rtm-plupload-list,form .rtmedia-container .rtm-plupload-list,#rtmedia_uploader_filelist{list-style:none;margin-left:-4px;margin-right:-4px;padding-left:0;padding-top:10px}#rtmedia-uploader-form .rtm-plupload-list li,form .rtmedia-container .rtm-plupload-list li,#rtmedia_uploader_filelist li{background:#eee;float:left;margin:4px;max-width:110px;padding:5px;position:relative}#rtmedia-uploader-form .rtm-plupload-list li.upload-error,form .rtmedia-container .rtm-plupload-list li.upload-error,#rtmedia_uploader_filelist li.upload-error{border:1px solid red}#rtmedia-uploader-form .rtm-plupload-list img,form .rtmedia-container .rtm-plupload-list img,#rtmedia_uploader_filelist img{max-width:100%}#rtmedia-uploader-form .rtm-plupload-list canvas,form .rtmedia-container .rtm-plupload-list canvas,#rtmedia_uploader_filelist canvas{display:block;max-width:100%}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title{font-size:12px}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc,#rtmedia_uploader_filelist .rtm-upload-edit-desc{font-size:12px;display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title-wrapper label,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label{display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title{min-width:100%;margin-top:1px}.rtm-plupload-list:empty{display:none}.rtmedia-uploader-div,.rtmedia-uploader{clear:both}.rtm-upload-button-wrapper button.rtmedia-comment-media-upload,button.rtmedia-comment-media-upload{padding:3px 6px}.rtm-upload-button-wrapper button.rtmedia-comment-media-upload .dashicons,button.rtmedia-comment-media-upload .dashicons{font-size:18px;line-height:20px}button#rtmedia-add-media-button-post-update{padding:3px 6px}button#rtmedia-add-media-button-post-update .dashicons{font-size:18px;line-height:20px}.plupload_file_name{font-size:11px;font-weight:bold;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plupload_file_size{color:#666;font-size:10px}.plupload_file_action{background:#eee;position:absolute;height:18px;right:4px;top:0;width:18px;z-index:10}.plupload_file_action .dashicons{color:#DD3D36;cursor:pointer;font-size:16px;height:18px;padding:2px 1px;width:18px}.plupload_file_status{height:18px;overflow:hidden;position:relative}.plupload_file_progress{background:#7AD03A;height:4px;position:absolute;top:0}.rtm-form .rtm-field-wrap{margin-bottom:20px}.rtmedia_next_prev{padding:0 10px}.rtm-page-number{float:left}.rtm-page-number .rtm-label{line-height:30px}.rtm-page-number .rtm-label,.rtm-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{float:left}.rtm-pagination{background:transparent;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:left;width:100%;padding:10px 0}.rtm-pagination .rtm-paginate{float:right;font-size:15px}.rtm-pagination .rtm-paginate a,.rtm-pagination .rtm-paginate span{display:inline-block;line-height:1;margin:0 2px;padding:8px;text-decoration:none}.rtm-pagination .rtm-paginate a.rtmedia-page-link{padding:8px}.rtm-pagination .dashicons{font-size:14px;height:auto;line-height:1.2;margin:0;padding:0;width:auto}#rtmedia_go_to_num{font-size:16px;margin:0 5px;padding:4px 5px;width:80px}.rtmedia-upload-not-allowed{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;margin-bottom:20px;padding:10px 15px}.plupload_file_name{position:relative}.plupload_file_name .dashicons{background:#eee;color:#DD3D36;cursor:pointer;font-size:14px;height:auto;padding:0 2px 0 5px;position:absolute;right:0;top:0;width:auto}.plupload_file_name .dashicons-yes{color:#7AD03A}.rtmedia-gallery-item-actions{background-color:rgba(0,0,0,0.6);opacity:0;position:absolute;text-align:center;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s;width:100%;z-index:9}.rtmedia-gallery-item-actions a{border:0;box-shadow:0 0 0;color:#fff;display:inline-block;font-size:12px;outline:none;padding:4px;text-align:left;text-decoration:none;text-transform:uppercase}.rtmedia-gallery-item-actions .dashicons{font-size:17px;margin-right:2px;position:relative;top:1px}.rtmedia-gallery-item-actions .dashicons-trash{font-size:15px}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-gallery-item-actions{opacity:1}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-bulk-edit-item-wrap+.rtmedia-gallery-item-actions{opacity:0}.rtmedia-footer-link{clear:both;overflow:hidden;padding:16px 0;position:relative;text-align:center}.rtmedia-text-link-decoration,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span{text-decoration:none}.rtmedia-text-link-decoration:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span:hover{text-decoration:underline}.rtmedia-container .rtmedia-edit-list-media-table{max-height:300px;overflow-y:auto}.rtmedia-container .rtmedia-edit-list-media-table thead tr{background-color:#50A1D7}.rtmedia-container .rtmedia-edit-list-media-table thead th{text-align:center;color:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(odd){background:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(even){background:#DCDCDC}table.rtmedia-edit-media-list tr{line-height:30px}table.rtmedia-edit-media-list tr th{color:#333;padding:4px 10px;line-height:20px}table.rtmedia-edit-media-list tr .rtm-edit-media-list-heading{width:44%}table.rtmedia-edit-media-list tr .rtm-edit-media-list-title-heading{width:56%}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title{padding:4px;font-size:14px;line-height:24px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a{text-decoration:none;color:#333}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a{color:#333;font-size:13px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span{color:#FF0000;cursor:pointer;font-size:13px}.rtm-hide{display:none}.rtmedia-list-item .rtmedia-album-media-count{position:absolute;top:0;right:0;background-color:black;color:white;padding:0 5px}.rtm-tabs.rtm-tabs{border-bottom:1px solid #eee;list-style:none;margin:0 0 20px;padding:0}.rtm-tabs li{border:1px solid #eee;border-bottom:0;float:left;margin:0 5px;padding:0}.rtm-tabs a{border:0;display:block;padding:5px 15px;text-decoration:none}.rtm-tabs a:focus{background:transparent;box-shadow:0 0 0}.rtm-tabs .active{position:relative}.rtm-tabs .active:after{background:#fff;bottom:-1px;content:' ';height:1px;left:0;position:absolute;width:100%}.rtm-tabs .dashicons{font-size:16px;height:auto;line-height:20px;margin-right:8px;width:auto}.rtmedia-edit-media-tabs .rtm-tabs a{border-bottom:0 none}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:104211;overflow:hidden;position:fixed;background:rgba(0,0,0,0.9)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:104311;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;max-width:84%;margin:0 auto;right:0;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{background:#fff;color:#999;cursor:pointer;font-size:24px;font-style:normal;height:30px;line-height:30px;padding:0;position:absolute;right:1px;text-align:center;text-decoration:none;text-indent:2px;top:0;width:32px;z-index:12}.mfp-close:hover,.mfp-close:focus{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{cursor:pointer;position:absolute;opacity:0.65;filter:alpha(opacity=65);margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent;opacity:0;z-index:10;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .mfp-arrow{opacity:1}@media (max-device-width: 640px){.mfp-arrow{display:none}.rtm-single-media:hover .mfp-arrow{display:none}}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1;filter:alpha(opacity=100)}.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after,.mfp-arrow .mfp-a{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before,.mfp-arrow .mfp-b{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after,.mfp-arrow-left .mfp-a{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after,.mfp-arrow-right .mfp-a{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before,.mfp-arrow-right .mfp-b{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}.mfp-preloader{position:absolute;top:50%;left:0;right:0;margin-top:-36px;z-index:1044;font-size:0;width:36px;height:36px;margin-left:auto;margin-right:auto}.mfp-preloader:before{content:'Loading…';position:absolute;width:30px;height:30px}.mfp-preloader:not(:required):before{content:'';border-radius:50%;border:3px solid rgba(255,255,255,0.27);border-top-color:rgba(255,255,255,0.9);animation:spinner .6s linear infinite;-webkit-animation:spinner .6s linear infinite}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}#atwho-container #atwho-ground-comment_content .atwho-view{z-index:2147483647}.mfp-content .rtm-lightbox-container{background:#000;margin:0 auto;position:relative}.mfp-content .rtm-lightbox-container .rtmedia-comment-media-list .mejs-container.mejs-video{min-height:200px;min-width:200px}.mfp-content .rtm-single-meta{background:#fff;overflow:hidden;padding:20px 20px 110px;position:relative;vertical-align:top}.rtm-single-media{overflow:hidden;position:relative;text-align:center;vertical-align:middle}.rtm-single-media .mejs-container{margin:0 auto;max-width:inherit}.rtm-single-media .rtmedia-message-container{position:absolute;top:45%;left:0;right:0;margin-left:auto;margin-right:auto}@media (max-device-width: 640px){.rtm-single-media .rtmedia-message-container{top:25%}}.rtm-ltb-action-container{background-color:rgba(0,0,0,0.6);bottom:0;color:#fff;line-height:38px;opacity:0;padding:0 10px;position:absolute;width:100%;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}@media (max-device-width: 640px){.rtm-ltb-action-container{clear:both;position:relative;opacity:1}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);display:block;font-family:inherit;font-weight:normal;line-height:24px;margin:0;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button:hover{background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.8)}#buddypress #rtmedia-single-media-container.rtmedia-single-media .rtm-options .button{color:#333;margin:0 auto;padding:0 4px 0 0}#buddypress #rtm-media-options-list .rtm-options form button{font-size:small}#buddypress #rtm-media-options-list .rtm-options .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);float:left;font-family:inherit;font-weight:normal;line-height:24px;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}.rtm-options.rtm-options{background:#666;color:#fff;display:none;font-size:14px;list-style:none;margin:0;padding:8px 10px;position:absolute;left:0;top:38px;width:190px;z-index:10}.rtm-options li{margin:0;overflow:hidden;padding:2px 0}.rtm-media-options .rtm-options:after{bottom:100%;left:20px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#666;border-width:6px;margin-left:-6px}.mfp-content .rtm-options{background:#fff;color:#333;bottom:38px;right:0;left:auto;top:auto}.mfp-content .rtm-options:after{top:100%;right:22px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:6px;margin-left:-6px}.rtm-options .dashicons{font-size:14px;line-height:24px;margin-right:2px}.rtm-media-options .rtm-options a{border:0;color:#fff;display:block;text-decoration:none}.rtm-ltb-title{color:rgba(255,255,255,0.7);float:left;font-size:13px}.rtm-ltb-title a{color:inherit}.rtm-ltb-title a:hover{border-bottom:1px dotted;color:#fff}.rtm-item-actions{float:right}.rtm-item-actions>div,.rtm-item-actions>form{float:left;margin:0 2px;padding:7px 0;position:relative}.rtmedia-media img{display:inline-block;max-height:inherit;height:auto;max-width:100%;width:auto}@media only screen and (max-device-width: 1024px){.rtmedia-media{margin:40px 0}}.rtm-user-meta-details .username{font-size:16px;line-height:1;margin-bottom:6px}.userprofile{float:left;margin:0 16px 16px 0;max-width:54px}.userprofile a{display:block}.userprofile img{height:auto;max-width:100%}.rtm-time-privacy{color:#999;font-size:12px}.rtm-time-privacy .dashicons{font-size:14px;line-height:1.5;margin-top:-2px}.rtmedia-actions-before-comments>span{float:left;margin-right:10px}.rtmedia-actions-before-comments .rtmedia-comment-link,.rtmedia-actions-before-comments .rtmedia-view-conversation,#buddypress .rtmedia-actions-before-comments .rtmedia-like{border:0;font-size:13px;font-weight:normal;line-height:2;padding:0;text-transform:none}.rtmedia-actions-before-comments .rtmedia-comment-link:hover,.rtmedia-actions-before-comments .rtmedia-view-conversation:hover,#buddypress .rtmedia-actions-before-comments .rtmedia-like:hover{background:transparent}.rtmedia-comment-user-pic{float:left;margin-right:10px;max-width:36px}.rtmedia-comment-user-pic img{height:auto;max-width:100%}.rtm-like-comments-info{position:relative}.rtm-like-comments-info:after{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(237,239,244,0);border-bottom-color:#edeff4;border-width:4px;margin-left:-4px}.rtm-comment-list.rtm-comment-list{list-style:none;margin:0;padding:0}.rtm-comment-list li{background:#edeff4;font-size:12px;margin-bottom:1px;padding:10px;position:relative}.rtm-comment-list li:hover .rtmedia-delete-comment{opacity:1}.rtm-comment-list .rtmedia-no-comments{margin:0;padding:5px 10px}.rtmedia-like-info{background:#edeff4;font-size:12px;margin-bottom:1px;padding:5px 10px;position:relative}.rtm-comment-wrap{overflow:hidden}.rtm-comment-wrap .rtmedia-comment-author{font-weight:700}.rtm-comment-wrap .rtmedia-comment-date{color:#999;font-size:11px}.rtmedia-comment-content{margin-top:2px}.rtmedia-delete-comment{color:#999;cursor:pointer;font-size:16px;opacity:0;position:absolute;right:5px;top:5px}.rtmedia-comment-content p{margin:0}.rtmedia-comment-details{line-height:1.5;margin-top:-3px}.rtmedia-item-comments textarea{font-size:14px;padding:4px}.rtm-media-single-comments{bottom:20px;padding:10px;width:100%}.rtm-media-single-comments textarea{background-color:#edeff4;font-size:12px;line-height:14px;max-height:40px;min-height:30px;padding:4px}.rtmedia-popup{background:#fff;margin:20px auto;max-width:600px;padding:20px;position:relative;width:auto}.rtmedia-popup .rtm-modal-title{font-size:24px;margin-bottom:20px;margin-top:0}.rtmedia-popup label{display:block;margin-bottom:5px}#rtm-modal-container p{margin-bottom:10px}#rtm-mejs-video-container{margin:0 auto}.rtmedia-media-name{float:left;max-width:140px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.rtm-single-media.rtm-media-type-video{padding-bottom:40px;padding-top:40px}.rtmedia-gallery-alert-container{position:fixed;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,0.6);z-index:999997}.rtmedia-gallery-message-box{position:fixed;top:40%;left:50%;margin-left:auto;margin-right:auto;z-index:999999}.rtmedia-gallery-message-box span{position:relative;left:-50%}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}#buddypress ul.rtmedia-list li{border-bottom:0;padding-bottom:0}.rtmedia-activity-container .rtmedia-item-actions{display:none}.rtmedia-activity-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title a{border:0;color:#666;font-size:13px;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}#rtmedia-whts-new-upload-container div{left:0 !important;position:absolute;top:0 !important}#aw-whats-new-submit,.rtmedia-add-media-button{display:block}.rtm-drag-drop-active{border:4px dashed green !important;display:block;height:100%;opacity:0.5;z-index:9999}#rtm-drop-files-title{background:rgba(0,0,0,0.2);display:none;font-size:14px;height:100%;padding:20px;position:absolute;top:0;width:100%}#rtSelectPrivacy{float:right}form.rt_media_comment_form .rtmedia-plupload-container{overflow:hidden}.rtmedia-plupload-container{position:relative;float:left}.rtm-upload-button-wrapper{float:left;margin-right:5px}#rtmedia-action-update{margin-right:10px}.rtmedia-list-item.media-type-photo,.rtmedia-list-item.media-type-document,.rtmedia-list-item.media-type-music,.rtmedia-list-item.media-type-video{display:inline-block}.media-type-music .mejs-container{margin-bottom:10px}.previous-pagination{float:left;margin-top:10px}.next-pagination{float:right;margin-top:10px}@media screen and (max-width: 500px){#activity-stream li .media-type-video{width:100%}#activity-stream li .media-type-video .mejs-video{max-width:100%;min-width:100%}}#rtmedia_show_all_comment{cursor:pointer}#rtmedia_show_all_comment:hover{text-decoration:underline}a.rtmedia-comment-link{display:none}a.rtmedia-comment-link.rtmedia-comments-link{display:initial}.rtmedia-album-edit .rtm-checkbox-wrap{background:rgba(255,255,255,0.9);height:30px;line-height:1;padding:10px;position:absolute;z-index:10}.rtmedia-album-edit .rtmedia-item-selector{position:relative;top:-7px}.rtmedia-album-edit .rtmedia-move-container{display:none}.rtm-single-actions.rtm-item-actions{float:none}.media-item .describe{border-collapse:collapse;width:100%;border-top-style:solid;border-top-width:1px;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:bold}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:bold}.media-upload-form th.label label{font-weight:bold;margin:0.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}abbr.required{border:medium none;text-decoration:none}.media-item .describe input[type="text"],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.media-item .edit-attachment,.describe-toggle-on,.describe-toggle-off{display:block;line-height:36px;float:right;margin-right:15px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}#media-items .media-item{border-style:solid;border-width:1px;min-height:36px;position:relative;margin-top:-1px;width:100%}#media-items{width:623px}.media-new-php #media-items{margin:1em 0}#media-items:empty{border:0 none}.media-item .filename{line-height:36px;overflow:hidden;padding:0 10px}.media-item .error-div{padding-left:10px}.media-item .pinkynail{float:left;margin:2px 2px 0;max-width:40px;max-height:32px}.media-item .startopen,.media-item .startclosed{display:none}.media-item .original{position:relative;height:34px}.media-item .progress{float:right;height:22px;margin:6px 10px 0 0;width:200px;line-height:2em;padding:0;overflow:hidden;margin-bottom:2px;border:1px solid #d1d1d1;background:#f7f7f7;background-image:-webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));background-image:-webkit-linear-gradient(bottom, #fff, #f7f7f7);background-image:linear-gradient(to top, #fff, #f7f7f7);border-radius:3px;box-shadow:inset 0 0 3px rgba(0,0,0,0.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-24px;background-color:#8cc1e9;background-image:-webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));background-image:-webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);background-image:linear-gradient(to top, #72a7cf, #8cc1e9);border-radius:3px;box-shadow:0 0 3px rgba(0,0,0,0.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0 8px;text-shadow:0 1px 0 rgba(255,255,255,0.4);color:rgba(0,0,0,0.6)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}.media-upload-form .media-item.error{margin:0;padding:0}.media-upload-form .media-item.error p,.media-item .error-div{line-height:16px;margin:5px 10px;padding:0}.media-item .error-div a.dismiss{display:block;float:right;margin:5px 4px 0 15px}.find-box{width:600px;height:300px;overflow:hidden;padding:33px 0 51px;position:absolute;z-index:1000}.find-box-head{cursor:move;font-weight:bold;height:2em;line-height:2em;padding:1px 12px;position:absolute;top:5px;width:100%}.find-box-inside{overflow:auto;padding:6px;height:100%}.find-box-search{overflow:hidden;padding:9px;position:relative}.find-box-search .spinner{float:none;left:125px;position:absolute;top:9px}#find-posts-input{float:left;width:140px;height:24px}#find-posts-search{float:left;margin:1px 4px 0 3px}#find-posts-response{margin:8px 0;padding:0 1px 6px}#find-posts-response table{width:100%}#find-posts-response .found-radio{padding:3px 0 0 8px;width:15px}.find-box-buttons{padding:8px;overflow:hidden}.find-box #resize-se{position:absolute;right:1px;bottom:1px}.ui-find-overlay{position:absolute;top:0;left:0;background-color:#000;opacity:0.6;filter:alpha(opacity=60)}ul#dismissed-updates{display:none}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-0.5em 0 2em 0}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border-width:1px;border-style:solid;line-height:1.8em;word-spacing:3px;border-radius:6px}.drag-drop #drag-drop-area{border:4px dashed #DDDDDD;height:200px}.drag-drop .drag-drop-inside{margin:70px auto 0;width:250px}.drag-drop-inside p{color:#aaa;font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}#plupload-upload-ui{position:relative}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative}.imgedit-settings p{margin:8px 0}.post-php .imgedit-wrap table{width:100%}.describe .imgedit-wrap table td,.wp_attachment_holder .imgedit-wrap table td{vertical-align:top;padding-top:0}.describe .imgedit-wrap table td.imgedit-settings{padding:0 5px}.wp_attachment_holder .imgedit-wrap table td.imgedit-settings{width:250px}td.imgedit-settings input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;background:#fff url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat scroll 22px 10px;background-size:16px 16px;opacity:0.7;filter:alpha(opacity=70);width:100%;height:500px;display:none}.spinner{background:url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat;background-size:16px 16px;display:none;float:right;opacity:0.7;filter:alpha(opacity=70);width:16px;height:16px;margin:5px 5px 0}.no-float{float:none}.media-disabled,.imgedit-settings .disabled{color:grey}.wp_attachment_image,.A1B1{overflow:hidden}.wp_attachment_image .button,.A1B1 .button{float:left}.no-js .wp_attachment_image .button{display:none}.wp_attachment_image .spinner,.A1B1 .spinner{float:left;padding:0 4px 4px;vertical-align:bottom}.imgedit-menu{margin:0 0 12px;min-width:300px}.imgedit-menu div{float:left;width:32px;height:32px}.imgedit-crop-wrap{position:relative}.imgedit-crop{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -9px -31px;margin:0 8px 0 0}.imgedit-crop.disabled:hover{background-position:-9px -31px}.imgedit-crop:hover{background-position:-9px -1px}.imgedit-rleft{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -46px -31px;margin:0 3px}.imgedit-rleft.disabled:hover{background-position:-46px -31px}.imgedit-rleft:hover{background-position:-46px -1px}.imgedit-rright{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -77px -31px;margin:0 8px 0 3px}.imgedit-rright.disabled:hover{background-position:-77px -31px}.imgedit-rright:hover{background-position:-77px -1px}.imgedit-flipv{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -115px -31px;margin:0 3px}.imgedit-flipv.disabled:hover{background-position:-115px -31px}.imgedit-flipv:hover{background-position:-115px -1px}.imgedit-fliph{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -147px -31px;margin:0 8px 0 3px}.imgedit-fliph.disabled:hover{background-position:-147px -31px}.imgedit-fliph:hover{background-position:-147px -1px}.imgedit-undo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -184px -31px;margin:0 3px}.imgedit-undo.disabled:hover{background-position:-184px -31px}.imgedit-undo:hover{background-position:-184px -1px}.imgedit-redo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -215px -31px;margin:0 8px 0 3px}.imgedit-redo.disabled:hover{background-position:-215px -31px}.imgedit-redo:hover{background-position:-215px -1px}.imgedit-applyto img{margin:0 8px 0 0}.imgedit-group h3{font-size:18px}.imgedit-group .dashicons{border:0;line-height:1.2}.imgedit-group-top{margin:5px 0}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block}.imgedit-help{display:none;font-style:italic;margin-bottom:8px}a.imgedit-help-toggle{text-decoration:none}.form-table td.imgedit-response{padding:0}.imgedit-submit{margin:8px 0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle}.wp_attachment_details{margin-bottom:20px}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:0.5}.bp-media-image-editor-cotnainer{margin-top:35px}.wp_attachment_image .bp-media-image-edit{float:left}.wp_attachment_image .spinner{display:none}.bp-media-image-editor-cotnainer .hidden{display:none}.bp-media-image-editor-cotnainer div.updated{margin:5px 0 15px;background-color:#ffffe0;border-color:#e6db55;padding:0 .6em;border-radius:3px;border-width:1px;border-style:solid}.bp-media-image-editor-cotnainer div.updated p{margin:.5em 0;padding:2px}body article.bp_members.bp_member .entry-content,body div.bp_members.bp_member .entry-content{width:100%}.rtm-media-gallery-uploader{display:none}.rtmedia-uploader .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;color:#AAAAAA;margin-top:20px;padding:25px 0}.rtmedia-uploader .drag-drop.dragover{border-color:#83b4d8}.rtmedia-uploader .drag-drop .drag-drop-info{font-size:20px;line-height:24px}.rtmedia-uploader .drag-drop .rtm-select-files span{vertical-align:middle}.rtmedia-uploader .drag-drop .rtm-seperator{margin:0px 20px}.rtmedia-uploader .drag-drop .start-media-upload{display:none;margin-top:20px}.rtmedia-uploader .drag-drop .rtm-file-size-limit{vertical-align:middle;font-size:16px;line-height:24px}.rtm-uploader-main-wrapper .rtm-uploader-tabs{margin-bottom:10px;text-align:left}.rtm-uploader-main-wrapper ul{border-bottom:1px solid #CCC}.rtm-uploader-main-wrapper li{margin:0 0 -1px 10px;display:inline-block;padding:5px 10px;line-height:25px;background-color:#e4e4e4;border:1px solid #CCC}.rtm-uploader-main-wrapper li.active{background:transparent;border-left:1px solid #CCC;border-top:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #fafafa}.rtm-uploader-main-wrapper li:hover{cursor:pointer}.rtmedia-container .rtmedia-list{margin:10px -5px}.rtmedia-container .rtmedia-list .rtmedia-list-item{float:left;margin:5px;position:relative}.rtmedia-container .rtmedia-list .rtmedia-list-item>a{display:block}.rtmedia-container .rtmedia-list .rtmedia_time{background-color:#000;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:14px;opacity:0.75;padding:0 4px;position:absolute;right:2px;top:2px}.rtmedia-container .rtmedia-list img{vertical-align:top}.rtmedia-container .rtmedia-list .rtmedia-item-title h4{color:#666;font-size:12px;font-weight:normal;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.rtm-load-more{background:#eee;text-align:center}.rtmedia-container .rtm-load-more a{border:0;padding:10px 0}.rtm-load-more .rtm-media-loading{padding:10px 0}.rtm-media-options{line-height:1.4;margin-bottom:10px}.rtm-media-options>div{display:inline-block;cursor:pointer}.rtm-media-options .rtm-media-options-list{margin-right:5px;padding-right:10px;position:relative}.rtm-media-options>*{border-right:1px solid #999}.rtm-media-options>*:last-child{border-right:none}.rtm-media-options .dashicons{font-size:inherit;line-height:1.4}.rtmedia-upload-media-link{cursor:pointer}a.rtmedia-upload-media-link{border:none}.rtm-album-privacy span{font-size:16px;display:inline-block;margin:0 20px 20px 20px;vertical-align:top}.rtm-album-privacy label{margin-right:8px}.rtm-album-privacy .dashicons{font-size:16px;line-height:1.6;margin-right:5px}#rtm-media-options-list .rtmedia-delete-album{background:transparent;border:0;color:#fff;font-family:inherit;font-size:inherit;font-weight:inherit;padding:0;text-transform:inherit}#rtm-media-options-list .rtmedia-delete-album:hover{background:transparent;border:0;color:#fff}.rtmedia-single-container button.rtmedia-like{background-color:transparent;color:inherit}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mejs-container .mejs-controls .mejs-time{padding:10px 3px 0;content:''}.rtmedia-activity-container .mejs-playpause-button.mejs-play button:before,.rtmedia-activity-container .mejs-playpause-button.mejs-pause button:before,.rtmedia-activity-container .mejs-volume-button.mejs-mute button:before,.rtmedia-activity-container .mejs-fullscreen-button button:before,.rtmedia-media .mejs-playpause-button.mejs-play button:before,.rtmedia-media .mejs-playpause-button.mejs-pause button:before,.rtmedia-media .mejs-volume-button.mejs-mute button:before,.rtmedia-media .mejs-fullscreen-button button:before{content:''}@media only screen and (min-width: 1025px){.mfp-content .rtm-lightbox-container{display:table;table-layout:fixed;width:100%}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:table-cell;width:66.6667%}.mfp-content .rtm-single-meta{display:table-cell;width:33.3333%;padding:20px;height:473px}.mfp-content .rtm-single-meta .rtmedia-scroll{height:100%;overflow-X:hidden}}.rtl #rtSelectPrivacy{float:left}.rtl .rtmedia-plupload-container{float:right}.rtl .rtm-upload-button-wrapper{float:right}.rtl #whats-new-post-in-box{float:right}.rtl .describe-toggle-off{float:left}.rtl .media-item .pinkynail{float:right}.rtl .media-item .progress{float:left}.rtl .media-item .error-div a.dismiss{float:left}.rtl #find-posts-input{float:right}.rtl #find-posts-search{float:right}.rtl .spinner{float:left}.rtl .wp_attachment_image .button,.rtl .A1B1 .button{float:right}.rtl .wp_attachment_image .spinner,.rtl .A1B1 .spinner{float:right}.rtl .imgedit-menu div{float:right}.rtl .wp_attachment_image .bp-media-image-edit{float:right}.rtl .rtmedia-container .rtmedia-list .rtmedia-list-item{float:right}.rtl #buddypress #rtm-media-options-list .rtm-options .button{float:right}.rtl .rtm-ltb-title{float:right}.rtl .rtm-item-actions{float:left}.rtl .rtm-item-actions>div,.rtl .rtm-item-actions>form{float:right}.rtl .userprofile{float:right}.rtl .rtmedia-actions-before-comments>span{float:right}.rtl .rtmedia-comment-user-pic{float:right}.rtl .rtmedia-media-name{float:right}.rtl #rtmedia-uploader-form .rtm-plupload-list li,.rtl #rtmedia_uploader_filelist li{float:right}.rtl .rtm-page-number{float:right}.rtl .rtm-page-number .rtmedia-page-link{float:right}.rtl .rtm-pagination{float:right}.rtl .rtm-pagination .rtm-paginate{float:left}.rtl .rtm-tabs li{float:right}.rtl .alignleft{float:right}.rtl .alignright{float:left}
app/assets/css/sass/_activity.scss CHANGED
@@ -77,6 +77,10 @@
77
float: right;
78
}
79
80
.rtmedia-plupload-container {
81
position: relative;
82
float: left;
@@ -93,6 +97,7 @@
93
94
// Video/Music title make center align
95
.rtmedia-list-item {
96
&.media-type-document,
97
&.media-type-music,
98
&.media-type-video {
@@ -135,3 +140,14 @@
135
text-decoration: underline;
136
}
137
}
77
float: right;
78
}
79
80
+ form.rt_media_comment_form .rtmedia-plupload-container {
81
+ overflow: hidden;
82
+ }
83
+
84
.rtmedia-plupload-container {
85
position: relative;
86
float: left;
97
98
// Video/Music title make center align
99
.rtmedia-list-item {
100
+ &.media-type-photo,
101
&.media-type-document,
102
&.media-type-music,
103
&.media-type-video {
140
text-decoration: underline;
141
}
142
}
143
+
144
+
145
+
146
+ a.rtmedia-comment-link{
147
+ display: none;
148
+ }
149
+
150
+
151
+ a.rtmedia-comment-link.rtmedia-comments-link{
152
+ display: initial;
153
+ }
app/assets/css/sass/_buddypress.scss CHANGED
@@ -9,6 +9,17 @@
9
width: 100%;
10
}
11
12
#buddypress #whats-new-options {
13
height: auto !important;
14
overflow: hidden;
@@ -50,9 +61,19 @@ body.media.buddypress {
50
}
51
52
#buddypress input[type=submit]:focus {
53
- background: #ededed;
54
- border: 1px solid #bbb;
55
- color: #555;
56
- outline: 0;
57
- text-decoration: none;
58
- }
9
width: 100%;
10
}
11
12
+ #buddypress #whats-new-form {
13
+ .rtmedia-uploader-div {
14
+ display: none;
15
+ }
16
+
17
+ #whats-new-options .rtmedia-uploader-div {
18
+ display: block;
19
+ }
20
+ }
21
+
22
+
23
#buddypress #whats-new-options {
24
height: auto !important;
25
overflow: hidden;
61
}
62
63
#buddypress input[type=submit]:focus {
64
+ background: #ededed;
65
+ border: 1px solid #bbb;
66
+ color: #555;
67
+ outline: 0;
68
+ text-decoration: none;
69
+ }
70
+
71
+ #buddypress ul.activity-list li.activity-item {
72
+ .activity-comments {
73
+ .rtmedia-uploader-div {
74
+ color: #767676;
75
+ margin-left: 50px;
76
+ padding-left: 15px;
77
+ }
78
+ }
79
+ }
app/assets/css/sass/_popup.scss CHANGED
@@ -23,6 +23,13 @@
23
margin: 5px 0; */
24
}
25
}
26
}
27
28
.rtm-single-meta {
@@ -323,6 +330,7 @@
323
}
324
325
.rtmedia-comment-link,
326
#buddypress & .rtmedia-like {
327
border: 0;
328
font-size: 13px;
@@ -455,7 +463,6 @@
455
}
456
457
.rtm-media-single-comments {
458
- background-color: #edeff4;
459
bottom: 20px;
460
padding: 10px;
461
@@ -463,6 +470,7 @@
463
width: 100%;
464
465
textarea {
466
font-size: 12px;
467
line-height: 14px;
468
max-height: 40px;
23
margin: 5px 0; */
24
}
25
}
26
+
27
+ .rtmedia-comment-media-list {
28
+ .mejs-container.mejs-video {
29
+ min-height: 200px;
30
+ min-width: 200px;
31
+ }
32
+ }
33
}
34
35
.rtm-single-meta {
330
}
331
332
.rtmedia-comment-link,
333
+ .rtmedia-view-conversation,
334
#buddypress & .rtmedia-like {
335
border: 0;
336
font-size: 13px;
463
}
464
465
.rtm-media-single-comments {
466
bottom: 20px;
467
padding: 10px;
468
470
width: 100%;
471
472
textarea {
473
+ background-color: #edeff4;
474
font-size: 12px;
475
line-height: 14px;
476
max-height: 40px;
app/assets/css/sass/_rtm.scss CHANGED
@@ -59,7 +59,9 @@
59
}
60
61
// Uploader
62
- #rtmedia-uploader-form .rtm-plupload-list, #rtmedia_uploader_filelist {
63
list-style: none;
64
margin-left: -4px;
65
margin-right: -4px;
@@ -120,6 +122,16 @@
120
clear: both;
121
}
122
123
button#rtmedia-add-media-button-post-update {
124
padding: 3px 6px;
125
59
}
60
61
// Uploader
62
+ #rtmedia-uploader-form .rtm-plupload-list,
63
+ form .rtmedia-container .rtm-plupload-list,
64
+ #rtmedia_uploader_filelist {
65
list-style: none;
66
margin-left: -4px;
67
margin-right: -4px;
122
clear: both;
123
}
124
125
+ .rtm-upload-button-wrapper button.rtmedia-comment-media-upload,
126
+ button.rtmedia-comment-media-upload {
127
+ padding: 3px 6px;
128
+
129
+ .dashicons {
130
+ font-size: 18px;
131
+ line-height: 20px;
132
+ }
133
+ }
134
+
135
button#rtmedia-add-media-button-post-update {
136
padding: 3px 6px;
137
app/assets/js/rtMedia.backbone.js CHANGED
@@ -63,8 +63,8 @@ jQuery( function( $ ) {
63
'height': 0,
64
'rt_permalink': false,
65
'duration': '0:00'
66
- // "next" : -1,
67
- // "prev" : -1
68
}
69
70
} );
@@ -166,16 +166,20 @@ jQuery( function( $ ) {
166
} );
167
//Element.show();
168
169
rtMediaHook.call( 'rtmedia_after_gallery_load' );
170
171
- jQuery( '.rtmedia-container .rtmedia_next_prev .rtm-pagination' ).remove();
172
- jQuery( '.rtmedia-container .rtmedia_next_prev .clear' ).remove();
173
- jQuery( '.rtmedia-container .rtmedia_next_prev .rtm-media-loading' ).remove();
174
- jQuery( '.rtmedia-container .rtmedia_next_prev br' ).remove();
175
- jQuery( '.rtmedia-container .rtmedia_next_prev' ).append( response.pagination );
176
177
if ( jQuery( '.rtm-uploader-main-wrapper div.rtm-upload-url' ).is( ':visible' ) == false ) {
178
- jQuery( '.rtmedia-container .rtmedia-list' ).css( 'opacity', '1' );
179
jQuery( '#rtm-media-gallery-uploader' ).slideUp();
180
}
181
}
@@ -246,7 +250,6 @@ jQuery( function( $ ) {
246
}
247
},
248
appendTo: function( media ) {
249
- //Console.log("append");
250
var mediaView = new rtMedia.MediaView( {
251
model: media
252
} );
@@ -266,7 +269,13 @@ jQuery( function( $ ) {
266
}
267
$( this ).hide();
268
e.preventDefault();
269
- galleryObj.getNext( nextpage, $( this ).parent().parent().parent(), $( this ) );
270
} );
271
272
/**
@@ -287,61 +296,72 @@ jQuery( function( $ ) {
287
if ( e.keyCode == 13 ) {
288
e.preventDefault();
289
290
- if ( jQuery( '.rtm-media-loading' ).length == 0 ) {
291
- $( '.rtm-pagination' ).before( '<div class=\'rtm-media-loading\'><img src=\'' + rMedia_loading_media + '\' /></div>' );
292
} else {
293
- jQuery( '.rtm-media-loading' ).show();
294
}
295
296
- if ( parseInt( $( '#rtmedia_go_to_num' ).val() ) > parseInt( $( '#rtmedia_last_page' ).val() ) ) {
297
- nextpage = parseInt( $( '#rtmedia_last_page' ).val() );
298
} else {
299
- nextpage = parseInt( $( '#rtmedia_go_to_num' ).val() );
300
}
301
302
- galleryObj.getNext( nextpage, $( this ).parent().parent().parent().parent().parent(), $( this ).parent().parent() );
303
304
return false;
305
}
306
} );
307
308
- $( document ).on( 'click', '.rtmedia-page-link', function( e ) {
309
- /* Get current clicked href value */
310
- href = $( this ).attr( 'href' );
311
312
- if ( jQuery( '.rtm-media-loading' ).length == 0 ) {
313
- $( '.rtm-pagination' ).before( '<div class=\'rtm-media-loading\'><img src=\'' + rMedia_loading_media + '\' /></div>' );
314
- } else {
315
- jQuery( '.rtm-media-loading' ).show();
316
- }
317
318
- e.preventDefault();
319
- if ( $( this ).data( 'page-type' ) == 'page' ) {
320
- nextpage = $( this ).data( 'page' );
321
- } else if ( $( this ).data( 'page-type' ) == 'prev' ) {
322
- if ( nextpage == -1 ) {
323
- nextpage = parseInt( $( '#rtmedia_last_page' ).val() ) - 1;
324
} else {
325
- nextpage -= 2;
326
}
327
- } else if ( $( this ).data( 'page-type' ) == 'num' ) {
328
- if ( parseInt( $( '#rtmedia_go_to_num' ).val() ) > parseInt( $( '#rtmedia_last_page' ).val() ) ) {
329
- nextpage = parseInt( $( '#rtmedia_last_page' ).val() );
330
- } else {
331
- nextpage = parseInt( $( '#rtmedia_go_to_num' ).val() );
332
- }
333
334
- /* Set page url for input type num pagination */
335
- page_base_url = $( this ).data( 'page-base-url' );
336
- href = page_base_url + nextpage;
337
}
338
339
- if ( $( this ).data( 'page-type' ) == 'num' ) {
340
- galleryObj.getNext( nextpage, $( this ).parent().parent().parent().parent().parent(), $( this ).parent().parent() );
341
- } else {
342
- galleryObj.getNext( nextpage, $( this ).parent().parent().parent().parent().parent(), $( this ).parent().parent() );
343
- }
344
- change_rtBrowserAddressUrl( href, '' );
345
346
} );
347
@@ -775,9 +795,9 @@ jQuery( document ).ready( function( $ ) {
775
// When user changes the value in activity "post in" dropdown, hide the privacy dropdown and show when posting in profile.
776
jQuery( '#whats-new-post-in' ).on( 'change', function( e ) {
777
if ( jQuery( this ).val() == '0' ) {
778
- jQuery( '#rtmedia-action-update .privacy' ).prop( 'disabled', false ).show();
779
} else {
780
- jQuery( '#rtmedia-action-update .privacy' ).prop( 'disabled', true ).hide();
781
}
782
} );
783
@@ -791,18 +811,18 @@ jQuery( document ).ready( function( $ ) {
791
objUploadView.initUploader();
792
793
setTimeout( function() {
794
- if ( $( '#rtmedia-add-media-button-post-update' ).length > 0 ) {
795
- $( '#whats-new-options' ).prepend( $( '.rtmedia-plupload-container' ) );
796
- if ( $( '#rtm-file_upload-ui .privacy' ).length > 0 ) {
797
- $( '.rtmedia-plupload-container' ).append( $( '#rtm-file_upload-ui .privacy' ) );
798
}
799
- $( '#rtmedia-whts-new-upload-container > div' ).css( 'top', '0' );
800
- $( '#rtmedia-whts-new-upload-container > div' ).css( 'left', '0' );
801
}
802
}, 100 );
803
804
- if ( $( '#whats-new-options' ).length > 0 && $( '.rtmedia-uploader-div' ).length > 0 ) {
805
- $( '#whats-new-options' ).append( $( '.rtmedia-uploader-div' ) );
806
}
807
808
$( '#whats-new-form' ).on( 'click', '#rtmedia-add-media-button-post-update', function( e ) {
@@ -1043,14 +1063,14 @@ jQuery( document ).ready( function( $ ) {
1043
$.each( objUploadView.upload_remove_array, function( i, rfile ) {
1044
if ( up.getFile( rfile ) ) {
1045
up.removeFile( up.getFile( rfile ) );
1046
- }
1047
} );
1048
1049
var object = '';
1050
var item_id = jQuery( '#whats-new-post-in' ).val();
1051
if ( item_id == undefined ) {
1052
item_id = 0;
1053
- }
1054
if ( item_id > 0 ) {
1055
object = 'group';
1056
} else {
@@ -1068,15 +1088,15 @@ jQuery( document ).ready( function( $ ) {
1068
}
1069
1070
// If privacy dropdown is not disabled, then get the privacy value of the update
1071
- if ( jQuery( 'select.privacy' ).prop( 'disabled' ) === false ) {
1072
- up.settings.multipart_params.privacy = jQuery( 'select.privacy' ).val();
1073
}
1074
} );
1075
1076
objUploadView.uploader.bind( 'UploadComplete', function( up, files ) {
1077
media_uploading = true;
1078
$( '#aw-whats-new-submit' ).click();
1079
- $( '#rtmedia_uploader_filelist li.plupload_queue_li' ).remove();
1080
//$("#aw-whats-new-submit").removeAttr('disabled');
1081
window.onbeforeunload = null;
1082
} );
@@ -1118,10 +1138,10 @@ jQuery( document ).ready( function( $ ) {
1118
1119
var dynamic_privacy = '';
1120
1121
- if ( jQuery( 'select.privacy' ).not( '.rtm-activity-privacy-opt' ).length > 0 ) {
1122
- dynamic_privacy = jQuery( 'select.privacy' ).not( '.rtm-activity-privacy-opt' ).val();
1123
- } else if ( jQuery( 'input[name="privacy"]' ).length > 0 ) {
1124
- dynamic_privacy = jQuery( 'input[name="privacy"]' ).val();
1125
}
1126
1127
options.data += '&rtmedia-privacy=' + dynamic_privacy;
@@ -1135,8 +1155,8 @@ jQuery( document ).ready( function( $ ) {
1135
var allowActivityPost = rtMediaHook.call( 'rtmedia_js_before_activity_added', true );
1136
1137
if ( ! allowActivityPost ) {
1138
- $( '#rtmedia_upload_terms_conditions' ).removeAttr( 'disabled' );
1139
- $( '#rtmedia-whts-new-upload-container' ).find( 'input' ).removeAttr( 'disabled' );
1140
1141
return false;
1142
}
@@ -1193,7 +1213,7 @@ jQuery( document ).ready( function( $ ) {
1193
}
1194
objUploadView.uploader.refresh();
1195
$( '#rtmedia-whts-new-upload-container > div' ).css( { 'top': '0', 'left': '0' } );
1196
- $( '#rtMedia-update-queue-list' ).html( '' );
1197
//$("#div-attache-rtmedia").hide();
1198
apply_rtMagnificPopup( jQuery( '.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.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' ) );
1199
jQuery( 'ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode' ).mediaelementplayer( {
@@ -1206,9 +1226,13 @@ jQuery( document ).ready( function( $ ) {
1206
// if set, overrides <video height>
1207
//videoHeight: 1
1208
} );
1209
rtMediaHook.call( 'rtmedia_js_after_activity_added', [ ] );
1210
}
1211
1212
$( '#whats-new-post-in' ).removeAttr( 'disabled' );
1213
$( '#rtmedia-add-media-button-post-update' ).removeAttr( 'disabled' );
1214
// Enabled TextBox color back to normal
@@ -1258,21 +1282,41 @@ jQuery( document ).ready( function( $ ) {
1258
} );
1259
}
1260
} );
1261
/**
1262
* RtMedia Comment Js
1263
*/
1264
jQuery( document ).ready( function( $ ) {
1265
jQuery( document ).on( 'click', '#rt_media_comment_form #rt_media_comment_submit', function( e ) {
1266
- var comment_content_el = jQuery( '#comment_content' );
1267
- var comment_form_el = jQuery( '#rt_media_comment_form' );
1268
var that = this;
1269
1270
- e.preventDefault();
1271
- if ( $.trim( $( '#comment_content' ).val() ) == '' ) {
1272
rtmedia_single_media_alert_message( rtmedia_empty_comment_msg, 'warning' );
1273
return false;
1274
}
1275
1276
$( this ).attr( 'disabled', 'disabled' );
1277
1278
// Sanitize comment content and escape html tags
@@ -1284,10 +1328,29 @@ jQuery( document ).ready( function( $ ) {
1284
data: comment_form_el.serialize() + '&rtajax=true',
1285
success: function( data ) {
1286
$( '#rtmedia-no-comments' ).remove();
1287
$( '#rtmedia_comment_ul' ).append( data );
1288
comment_content_el.val( '' );
1289
- $( that ).removeAttr( 'disabled' );
1290
rtMediaHook.call( 'rtmedia_js_after_comment_added', [ ] );
1291
}
1292
} );
1293
@@ -1321,7 +1384,7 @@ jQuery( document ).ready( function( $ ) {
1321
current_comment.closest( 'li' ).remove();
1322
} );
1323
} else {
1324
- current_comment.css( 'opacity', '1' );
1325
}
1326
rtMediaHook.call( 'rtmedia_js_after_comment_deleted', [ ] );
1327
}
@@ -1409,9 +1472,13 @@ jQuery( document ).ready( function( $ ) {
1409
};
1410
} );
1411
1412
- function rtmedia_selected_file_list( plupload, file, uploader, error ) {
1413
var icon = '', err_msg = '', upload_progress = '', title = '';
1414
1415
if ( error == '' ) {
1416
upload_progress = '<div class="plupload_file_progress ui-widget-header" style="width: 0%;">';
1417
upload_progress += '</div>';
@@ -1439,7 +1506,7 @@ function rtmedia_selected_file_list( plupload, file, uploader, error ) {
1439
rtmedia_plupload_file += icon;
1440
rtmedia_plupload_file += '</div>';
1441
rtmedia_plupload_file += '<div class="plupload_file_action">';
1442
- rtmedia_plupload_file += '<div class="plupload_action_icon ui-icon plupload_delete">';
1443
rtmedia_plupload_file += '<span class="remove-from-queue dashicons dashicons-dismiss"></span>';
1444
rtmedia_plupload_file += '</div>';
1445
rtmedia_plupload_file += '</div>';
@@ -1450,7 +1517,7 @@ function rtmedia_selected_file_list( plupload, file, uploader, error ) {
1450
rtmedia_plupload_file += '</div>';
1451
rtmedia_plupload_file += '</li>';
1452
1453
- jQuery( rtmedia_plupload_file ).appendTo( '#rtmedia_uploader_filelist' );
1454
var type = file.type;
1455
var media_title = file.name;
1456
var ext = media_title.substring( media_title.lastIndexOf( '.' ) + 1, media_title.length );
@@ -1498,3 +1565,717 @@ function change_rtBrowserAddressUrl( url, page ) {
1498
history.pushState( obj, obj.Page, obj.Url );
1499
}
1500
}
63
'height': 0,
64
'rt_permalink': false,
65
'duration': '0:00'
66
+ //"next": -1,
67
+ //"prev": -1
68
}
69
70
} );
166
} );
167
//Element.show();
168
169
+ // get current gallery container object
170
+ var current_gallery = galleryViewObj.$el.parents( '.rtmedia-container' );
171
+ var current_gallery_id = current_gallery.attr( 'id' );
172
+
173
rtMediaHook.call( 'rtmedia_after_gallery_load' );
174
175
+ jQuery( '#' + current_gallery_id + ' .rtmedia_next_prev .rtm-pagination' ).remove();
176
+ jQuery( '#' + current_gallery_id + ' .rtmedia_next_prev .clear' ).remove();
177
+ jQuery( '#' + current_gallery_id + ' .rtmedia_next_prev .rtm-media-loading' ).remove();
178
+ jQuery( '#' + current_gallery_id + ' .rtmedia_next_prev br' ).remove();
179
+ jQuery( '#' + current_gallery_id + ' .rtmedia_next_prev' ).append( response.pagination );
180
181
if ( jQuery( '.rtm-uploader-main-wrapper div.rtm-upload-url' ).is( ':visible' ) == false ) {
182
+ jQuery( '#' + current_gallery_id + ' .rtmedia-list' ).css( 'opacity', '1' );
183
jQuery( '#rtm-media-gallery-uploader' ).slideUp();
184
}
185
}
250
}
251
},
252
appendTo: function( media ) {
253
var mediaView = new rtMedia.MediaView( {
254
model: media
255
} );
269
}
270
$( this ).hide();
271
e.preventDefault();
272
+
273
+ //commented beacuse it was creating a problem when gallery shortcode was used with bulk edit
274
+ //galleryObj.getNext( nextpage, $( this ).parent().parent().parent(), $( this ) );
275
+
276
+ //Added beacuse it was creating a problem when gallery shortcode was used with bulk edit
277
+ var parent_object = $( this ).closest( '.rtmedia-container' ).parent();
278
+ galleryObj.getNext( nextpage, parent_object, $( this ) );
279
} );
280
281
/**
296
if ( e.keyCode == 13 ) {
297
e.preventDefault();
298
299
+ var current_gallery = $(this).parents( '.rtmedia-container' );
300
+ var current_gallery_id = current_gallery.attr( 'id' );
301
+
302
+
303
+ if ( $( '#' + current_gallery_id + ' .rtm-media-loading' ).length == 0 ) {
304
+ $( '#' + current_gallery_id + ' .rtm-pagination' ).before( '<div class=\'rtm-media-loading\'><img src=\'' + rMedia_loading_media + '\' /></div>' );
305
} else {
306
+ $( '#' + current_gallery_id + ' .rtm-media-loading' ).show();
307
}
308
309
+ if ( parseInt( $( '#' + current_gallery_id + ' #rtmedia_go_to_num' ).val() ) > parseInt( $( '#' + current_gallery_id + ' #rtmedia_last_page' ).val() ) ) {
310
+ nextpage = parseInt( $( '#' + current_gallery_id + ' #rtmedia_last_page' ).val() );
311
} else {
312
+ nextpage = parseInt( $( '#' + current_gallery_id + ' #rtmedia_go_to_num' ).val() );
313
}
314
315
+ var page_base_url = $( '#' + current_gallery_id + ' .rtmedia-page-no .rtmedia-page-link' ).data( 'page-base-url' );
316
+ var href = page_base_url + nextpage;
317
+ change_rtBrowserAddressUrl( href, '' );
318
319
+ galleryObj.getNext( nextpage, $( this ).parents( '.rtmedia_gallery_wrapper' ), $( this ).parents( '.rtm-pagination' ) );
320
return false;
321
}
322
} );
323
324
+ $( document ).on( 'click', '.rtmedia-page-link', function( e ) {
325
326
+ /* Get current clicked href value */
327
+ href = $( this ).attr( 'href' );
328
329
+ var current_gallery = $(this).parents( '.rtmedia-container' );
330
+ var current_gallery_id = current_gallery.attr( 'id' );
331
+
332
+ if ( $( '#' + current_gallery_id + ' .rtm-media-loading' ).length == 0 ) {
333
+ $( '#' + current_gallery_id + ' .rtm-pagination' ).before( '<div class=\'rtm-media-loading\'><img src=\'' + rMedia_loading_media + '\' /></div>' );
334
} else {
335
+ $( '#' + current_gallery_id + ' .rtm-media-loading' ).show();
336
+ }
337
+
338
+ e.preventDefault();
339
+ if ( $( this ).data( 'page-type' ) == 'page' ) {
340
+ nextpage = $( this ).data( 'page' );
341
+ } else if ( $( this ).data( 'page-type' ) == 'prev' ) {
342
+ if ( nextpage == -1 ) {
343
+ nextpage = parseInt( $( '#' + current_gallery_id + ' #rtmedia_last_page' ).val() ) - 1;
344
+ } else {
345
+ nextpage -= 2;
346
+ }
347
+ } else if ( $( this ).data( 'page-type' ) == 'num' ) {
348
+ if ( parseInt( $( '#' + current_gallery_id + ' #rtmedia_go_to_num' ).val() ) > parseInt( $( '#rtmedia_last_page' ).val() ) ) {
349
+ nextpage = parseInt( $( '#' + current_gallery_id + ' #rtmedia_last_page' ).val() );
350
+ } else {
351
+ nextpage = parseInt( $( '#' + current_gallery_id + ' #rtmedia_go_to_num' ).val() );
352
}
353
354
+ /* Set page url for input type num pagination */
355
+ page_base_url = $( this ).data( 'page-base-url' );
356
+ href = page_base_url + nextpage;
357
+ }
358
+ if ( $( this ).data( 'page-type' ) == 'num' ) {
359
+ galleryObj.getNext( nextpage, $( this ).parents( '.rtmedia_gallery_wrapper' ), $( this ).parents( '.rtm-pagination' ) );
360
+ } else {
361
+ galleryObj.getNext( nextpage, $( this ).parents( '.rtmedia_gallery_wrapper' ), $( this ).parents( '.rtm-pagination' ) );
362
}
363
364
+ change_rtBrowserAddressUrl( href, '' );
365
366
} );
367
795
// When user changes the value in activity "post in" dropdown, hide the privacy dropdown and show when posting in profile.
796
jQuery( '#whats-new-post-in' ).on( 'change', function( e ) {
797
if ( jQuery( this ).val() == '0' ) {
798
+ jQuery( '#whats-new-form #rtmedia-action-update .privacy' ).prop( 'disabled', false ).show();
799
} else {
800
+ jQuery( '#whats-new-form #rtmedia-action-update .privacy' ).prop( 'disabled', true ).hide();
801
}
802
} );
803
811
objUploadView.initUploader();
812
813
setTimeout( function() {
814
+ if ( $( '#whats-new-form #rtmedia-add-media-button-post-update' ).length > 0 ) {
815
+ $( '#whats-new-options' ).prepend( $( '#whats-new-form .rtmedia-plupload-container' ) );
816
+ if ( $( '#whats-new-form #rtm-file_upload-ui .privacy' ).length > 0 ) {
817
+ $( '#whats-new-form .rtmedia-plupload-container' ).append( $( '#whats-new-form #rtm-file_upload-ui .privacy' ) );
818
}
819
+ $( '#whats-new-form #rtmedia-whts-new-upload-container > div' ).css( 'top', '0' );
820
+ $( '#whats-new-form #rtmedia-whts-new-upload-container > div' ).css( 'left', '0' );
821
}
822
}, 100 );
823
824
+ if ( $( '#whats-new-options' ).length > 0 && $( '#whats-new-form .rtmedia-uploader-div' ).length > 0 ) {
825
+ $( '#whats-new-options' ).append( $( '#whats-new-form .rtmedia-uploader-div' ) );
826
}
827
828
$( '#whats-new-form' ).on( 'click', '#rtmedia-add-media-button-post-update', function( e ) {
1063
$.each( objUploadView.upload_remove_array, function( i, rfile ) {
1064
if ( up.getFile( rfile ) ) {
1065
up.removeFile( up.getFile( rfile ) );
1066
+ }
1067
} );
1068
1069
var object = '';
1070
var item_id = jQuery( '#whats-new-post-in' ).val();
1071
if ( item_id == undefined ) {
1072
item_id = 0;
1073
+ }
1074
if ( item_id > 0 ) {
1075
object = 'group';
1076
} else {
1088
}
1089
1090
// If privacy dropdown is not disabled, then get the privacy value of the update
1091
+ if ( jQuery( '#whats-new-form select.privacy' ).prop( 'disabled' ) === false ) {
1092
+ up.settings.multipart_params.privacy = jQuery( '#whats-new-form select.privacy' ).val();
1093
}
1094
} );
1095
1096
objUploadView.uploader.bind( 'UploadComplete', function( up, files ) {
1097
media_uploading = true;
1098
$( '#aw-whats-new-submit' ).click();
1099
+ $( '#whats-new-form #rtmedia_uploader_filelist li.plupload_queue_li' ).remove();
1100
//$("#aw-whats-new-submit").removeAttr('disabled');
1101
window.onbeforeunload = null;
1102
} );
1138
1139
var dynamic_privacy = '';
1140
1141
+ if ( jQuery( '#whats-new-form select.privacy' ).not( '.rtm-activity-privacy-opt' ).length > 0 ) {
1142
+ dynamic_privacy = jQuery( '#whats-new-form select.privacy' ).not( '.rtm-activity-privacy-opt' ).val();
1143
+ } else if ( jQuery( '#whats-new-form input[name="privacy"]' ).length > 0 ) {
1144
+ dynamic_privacy = jQuery( '#whats-new-form input[name="privacy"]' ).val();
1145
}
1146
1147
options.data += '&rtmedia-privacy=' + dynamic_privacy;
1155
var allowActivityPost = rtMediaHook.call( 'rtmedia_js_before_activity_added', true );
1156
1157
if ( ! allowActivityPost ) {
1158
+ $( '#whats-new-form #rtmedia_upload_terms_conditions' ).removeAttr( 'disabled' );
1159
+ $( '#whats-new-form #rtmedia-whts-new-upload-container' ).find( 'input' ).removeAttr( 'disabled' );
1160
1161
return false;
1162
}
1213
}
1214
objUploadView.uploader.refresh();
1215
$( '#rtmedia-whts-new-upload-container > div' ).css( { 'top': '0', 'left': '0' } );
1216
+ $( '#whats-new-form #rtMedia-update-queue-list' ).html( '' );
1217
//$("#div-attache-rtmedia").hide();
1218
apply_rtMagnificPopup( jQuery( '.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.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' ) );
1219
jQuery( 'ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode' ).mediaelementplayer( {
1226
// if set, overrides <video height>
1227
//videoHeight: 1
1228
} );
1229
+
1230
+
1231
rtMediaHook.call( 'rtmedia_js_after_activity_added', [ ] );
1232
}
1233
1234
+ rtmedia_on_activity_add();
1235
+
1236
$( '#whats-new-post-in' ).removeAttr( 'disabled' );
1237
$( '#rtmedia-add-media-button-post-update' ).removeAttr( 'disabled' );
1238
// Enabled TextBox color back to normal
1282
} );
1283
}
1284
} );
1285
+
1286
+
1287
+
1288
/**
1289
* RtMedia Comment Js
1290
*/
1291
jQuery( document ).ready( function( $ ) {
1292
jQuery( document ).on( 'click', '#rt_media_comment_form #rt_media_comment_submit', function( e ) {
1293
var that = this;
1294
+ var widget_id = jQuery( this ).attr( 'widget_id' );
1295
+ var comment_form_el = jQuery( this ).closest('form');
1296
+ var comment_content_el = comment_form_el.find( '#comment_content' );
1297
+
1298
+ var show_error = false;
1299
+ var content = jQuery.trim( comment_content_el.val() );
1300
+
1301
+ comment_attached_id = comment_form_el.find( 'input[name="rtMedia_attached_files[]"]' ).val();
1302
+ if ( typeof comment_attached_id == 'undefined' && content == '' ) {
1303
+ show_error = 1;
1304
+ }else{
1305
+ if( comment_attached_id == '' && content == '' ){
1306
+ show_error = 2;
1307
+ }
1308
+ }
1309
+
1310
+ if( show_error ){
1311
1312
rtmedia_single_media_alert_message( rtmedia_empty_comment_msg, 'warning' );
1313
+
1314
+ rtmedia_comment_media_input_button( widget_id, false );
1315
+
1316
return false;
1317
}
1318
1319
+
1320
$( this ).attr( 'disabled', 'disabled' );
1321
1322
// Sanitize comment content and escape html tags
1328
data: comment_form_el.serialize() + '&rtajax=true',
1329
success: function( data ) {
1330
$( '#rtmedia-no-comments' ).remove();
1331
+
1332
$( '#rtmedia_comment_ul' ).append( data );
1333
+
1334
comment_content_el.val( '' );
1335
+
1336
+ rtmedia_comment_media_remove_hidden_media_id( widget_id );
1337
+
1338
+ rtmedia_comment_media_textbox_val( widget_id, false );
1339
+
1340
+ rtmedia_comment_media_input_button( widget_id, false );
1341
+
1342
+ rtmedia_apply_popup_to_media();
1343
+
1344
+ rtmedia_reset_video_and_audio_for_popup();
1345
+
1346
rtMediaHook.call( 'rtmedia_js_after_comment_added', [ ] );
1347
+ },
1348
+ error: function( data ) {
1349
+
1350
+ /* Act on the event */
1351
+ rtmedia_comment_media_input_button( widget_id, false );
1352
+
1353
+ rtmedia_comment_media_remove_hidden_media_id( widget_id );
1354
}
1355
} );
1356
1384
current_comment.closest( 'li' ).remove();
1385
} );
1386
} else {
1387
+ current_comment_parent.css( 'opacity', '1' );
1388
}
1389
rtMediaHook.call( 'rtmedia_js_after_comment_deleted', [ ] );
1390
}
1472
};
1473
} );
1474
1475
+
1476
+ function rtmedia_selected_file_list( plupload, file, uploader, error, comment_media_id ) {
1477
var icon = '', err_msg = '', upload_progress = '', title = '';
1478
1479
+ rtmedia_uploader_filelist = (typeof comment_media_id === "undefined") ? "#rtmedia_uploader_filelist" : "#rtmedia_uploader_filelist-"+comment_media_id;
1480
+ plupload_delete = (typeof comment_media_id === "undefined") ? "plupload_delete" : "plupload_delete-"+comment_media_id;
1481
+
1482
if ( error == '' ) {
1483
upload_progress = '<div class="plupload_file_progress ui-widget-header" style="width: 0%;">';
1484
upload_progress += '</div>';
1506
rtmedia_plupload_file += icon;
1507
rtmedia_plupload_file += '</div>';
1508
rtmedia_plupload_file += '<div class="plupload_file_action">';
1509
+ rtmedia_plupload_file += '<div class="plupload_action_icon ui-icon '+plupload_delete+'">';
1510
rtmedia_plupload_file += '<span class="remove-from-queue dashicons dashicons-dismiss"></span>';
1511
rtmedia_plupload_file += '</div>';
1512
rtmedia_plupload_file += '</div>';
1517
rtmedia_plupload_file += '</div>';
1518
rtmedia_plupload_file += '</li>';
1519
1520
+ jQuery( rtmedia_plupload_file ).appendTo( rtmedia_uploader_filelist );
1521
var type = file.type;
1522
var media_title = file.name;
1523
var ext = media_title.substring( media_title.lastIndexOf( '.' ) + 1, media_title.length );
1565
history.pushState( obj, obj.Page, obj.Url );
1566
}
1567
}
1568
+
1569
+
1570
+
1571
+ /*
1572
+ * To change this template, choose Tools | Templates
1573
+ * and open the template in the editor.
1574
+ */
1575
+ var commentObj = {};
1576
+ var plupload_comment_main = {};
1577
+ var comment_media_wrapper = 'comment-media-wrapper-';
1578
+ var rtmedia_comment_media_submit = 'rtmedia-comment-media-submit-';
1579
+ var comment_media_add_button = 'rtmedia-comment-media-upload-';
1580
+ var comment_media_uplaod_media = 'rtMedia-start-upload-';
1581
+
1582
+
1583
+ jQuery(document).ready(function($) {
1584
+
1585
+ rtMediaHook.register( 'rtmedia_js_popup_after_content_added', function() {
1586
+ var popup_upload_comment = jQuery( '.rtmedia-single-container .rtmedia-single-meta .rtm-media-single-comments form' );
1587
+ rtmedia_comment_media_upload( popup_upload_comment );
1588
+ rtmedia_apply_popup_to_media();
1589
+ return true;
1590
+ } );
1591
+
1592
+ rtmedia_apply_popup_to_media();
1593
+ rtmedia_comment_media_single_page();
1594
+ rtmedia_activity_comment_js_add_media_id();
1595
+ rtmedia_activity_stream_comment_media();
1596
+ rtmedia_buddypress_load_newest_button_click();
1597
+ });
1598
+
1599
+
1600
+ function rtmedia_reset_video_and_audio(){
1601
+ jQuery( 'ul.activity-list li.activity-item div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.activity-item div.rtmedia-item-thumbnail > video.wp-video-shortcode' ).mediaelementplayer( {
1602
+ // If the <video width> is not specified, this is the default
1603
+ defaultVideoWidth: 480,
1604
+ // If the <video height> is not specified, this is the default
1605
+ defaultVideoHeight: 270
1606
+ } );
1607
+ }
1608
+
1609
+
1610
+ function rtmedia_on_activity_add(){
1611
+ setTimeout( function() {
1612
+ rtmedia_activity_stream_comment_media();
1613
+
1614
+ rtmedia_reset_video_and_audio();
1615
+
1616
+ rtmedia_apply_popup_to_media();
1617
+
1618
+ }, 1500 );
1619
+ }
1620
+
1621
+
1622
+ function rtmedia_single_page_popup_close(){
1623
+ /* on close of popup resize the video height */
1624
+ if( typeof rtmedia_media_size_config != 'undefined' ){
1625
+ if( typeof rtmedia_media_size_config.video.activity_media != 'undefined' ){
1626
+ jQuery( '.rtmedia-single-container .rtmedia-comment-media-container .mejs-container.mejs-video' ).css({
1627
+ 'height': rtmedia_media_size_config.video.activity_media.height,
1628
+ 'width': rtmedia_media_size_config.video.activity_media.width
1629
+ });
1630
+ }
1631
+ }
1632
+ }
1633
+
1634
+ function rtmedia_reset_video_and_audio_for_popup(){
1635
+ jQuery( '.rtm-lightbox-container .rtmedia-comments-container ul.rtm-comment-list li.rtmedia-comment div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, .rtm-lightbox-container .rtmedia-comments-container ul.rtm-comment-list li.rtmedia-comment div.rtmedia-item-thumbnail > video.wp-video-shortcode' ).mediaelementplayer( {
1636
+ // If the <video width> is not specified, this is the default
1637
+ defaultVideoWidth: 200,
1638
+ // If the <video height> is not specified, this is the default
1639
+ defaultVideoHeight: 200
1640
+ } );
1641
+ }
1642
+
1643
+
1644
+ function rtmedia_comment_media_uplaod_button_disble( widget_id, $value ){
1645
+ if( typeof $value != 'undefined' ){
1646
+ jQuery( '#'+comment_media_add_button+widget_id ).prop( 'disabled', $value );
1647
+ }
1648
+ }
1649
+
1650
+ function rtmedia_apply_popup_to_media(){
1651
+ if ( typeof( rtmedia_lightbox_enabled ) != 'undefined' && rtmedia_lightbox_enabled == '1' ) {
1652
+ apply_rtMagnificPopup( '.rtmedia-comment-media-container ul.rtmedia-comment-media-list, .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' );
1653
+ }
1654
+ }
1655
+
1656
+
1657
+ function rtmedia_comment_media_enable_diable_media_comment( that ){
1658
+ var widget_id = jQuery( that ).attr( 'widget_id' );
1659
+ if( typeof widget_id != 'undefined' ){
1660
+ rtmedia_comment_media_uplaod_button_disble( widget_id, false );
1661
+ }else{
1662
+ jQuery( '.rt_media_comment_form_with_media .rtmedia-comment-media-upload' ).prop( 'disabled', false );
1663
+ }
1664
+ }
1665
+
1666
+
1667
+ function rtmedia_add_comment_media_button_click( widget_id ){
1668
+ jQuery( '.'+rtmedia_comment_media_submit+widget_id ).on( 'click', function( e ){
1669
+ e.preventDefault();
1670
+ var media = jQuery( this ).attr( 'media' );
1671
+ if( typeof media != 'undefined' && media == 1 ){
1672
+
1673
+ rtmedia_comment_media_input_button( widget_id, true );
1674
+
1675
+ rtmedia_comment_media_textbox_val( widget_id, true );
1676
+
1677
+ jQuery( this ).attr( 'media', 0 );
1678
+
1679
+ commentObj[ widget_id ].uploadFiles();
1680
+ return false;
1681
+ }
1682
+ });
1683
+ }
1684
+
1685
+
1686
+ function rtmedia_comment_media_input_button( widget_id, $value ){
1687
+
1688
+ rtmedia_comment_media_upload_button_post_disable( widget_id, $value );
1689
+
1690
+ rtmedia_comment_media_uplaod_button_disble( widget_id, $value );
1691
+
1692
+ rtmedia_uploaded_media_edit_disable( widget_id, $value );
1693
+ }
1694
+
1695
+
1696
+
1697
+ function rtmedia_uploaded_media_edit_disable( widget_id, $value ){
1698
+ if( $value ){
1699
+ jQuery( '.'+comment_media_wrapper+widget_id ).find( '.plupload_filelist_content .dashicons' ).hide()
1700
+ jQuery( '.'+comment_media_wrapper+widget_id ).find( '.plupload_file_action' ).hide()
1701
+ }else{
1702
+ jQuery( '.'+comment_media_wrapper+widget_id ).find( '.plupload_file_action' ).show()
1703
+ jQuery( '.'+comment_media_wrapper+widget_id ).find( '.plupload_filelist_content .dashicons' ).show()
1704
+ }
1705
+ }
1706
+
1707
+ function rtmedia_disable_comment_textbox( widget_id, value ){
1708
+ var form_class = '.'+comment_media_wrapper+widget_id;
1709
+ if( jQuery( form_class ).length > 0 ){
1710
+ comment_string = jQuery( form_class ).find( 'textarea' ).val();
1711
+ if( comment_string.includes( '&nbsp;' ) ){
1712
+ jQuery( form_class ).find('textarea.ac-input').val( '' );
1713
+ }
1714
+
1715
+ jQuery( form_class ).find( 'textarea' ).prop('disabled', value );
1716
+ jQuery( form_class ).find( 'textarea' ).css( 'color', '' );
1717
+ }
1718
+ }
1719
+
1720
+
1721
+ function rtmedia_comment_media_textbox_val( widget_id, $value ){
1722
+ var form_class = '.'+comment_media_wrapper+widget_id;
1723
+ if( jQuery( form_class ).length > 0 ){
1724
+ if( jQuery( form_class ).find('textarea.ac-input').length > 0 ){
1725
+ if( $value == true ){
1726
+ var textarea = jQuery( form_class ).find('textarea.ac-input').val();
1727
+ if( textarea == "" ){
1728
+ jQuery( form_class ).find('textarea.ac-input').val( '&nbsp;' );
1729
+ jQuery( form_class ).find( 'textarea' ).css( 'color', 'transparent' );
1730
+ }
1731
+ }else{
1732
+ jQuery( form_class ).find('textarea.ac-input').val( '' );
1733
+ jQuery( form_class ).find( 'textarea' ).css( 'color', '' );
1734
+ }
1735
+ }
1736
+ }
1737
+ }
1738
+
1739
+
1740
+ function rtmedia_comment_media_upload_button_post_disable( widget_id, $value ){
1741
+ if( typeof $value != 'undefined' ){
1742
+ jQuery( '.'+rtmedia_comment_media_submit+widget_id ).prop( 'disabled', $value );
1743
+ if( $value == true ){
1744
+ jQuery( '.'+rtmedia_comment_media_submit+widget_id ).closest( 'div.ac-reply-content' ).find( 'a.ac-reply-cancel' ).attr("disabled", "disabled");
1745
+ }else{
1746
+ jQuery( '.'+rtmedia_comment_media_submit+widget_id ).closest( 'div.ac-reply-content' ).find( 'a.ac-reply-cancel' ).removeAttr("disabled");
1747
+ }
1748
+ }
1749
+ }
1750
+
1751
+
1752
+
1753
+ function rtmedia_comment_media_remove_hidden_media_id( widget_id ){
1754
+ jQuery( '.'+comment_media_wrapper+widget_id ).find( 'input[name="rtMedia_attached_files[]"]' ).remove();
1755
+ }
1756
+
1757
+
1758
+
1759
+ function rtmedia_activity_comment_js_add_media_id(){
1760
+ jQuery.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
1761
+ // Modify options, control originalOptions, store jqXHR, etc
1762
+ try {
1763
+ if ( originalOptions.data == null || typeof ( originalOptions.data ) == 'undefined' || typeof ( originalOptions.data.action ) == 'undefined' ) {
1764
+ return true;
1765
+ }
1766
+ } catch ( e ) {
1767
+ return true;
1768
+ }
1769
+
1770
+ if ( originalOptions.data.action == 'new_activity_comment' ) {
1771
+ widget_id = 'activity-'+originalOptions.data.form_id
1772
+
1773
+ var rtmedia_disable_media = 1;
1774
+ if( typeof rtmedia_disable_media_in_commented_media != 'undefined' ){
1775
+ rtmedia_disable_media = rtmedia_disable_media_in_commented_media;
1776
+ }
1777
+
1778
+ var temp = jQuery( '.'+comment_media_wrapper+widget_id ).find( 'input[name="rtMedia_attached_files[]"]' ).val();
1779
+
1780
+ if( typeof temp == 'undefined' ){
1781
+ temp = 0;
1782
+ }
1783
+
1784
+ if( typeof temp == '' ){
1785
+ temp = 0;
1786
+ }
1787
+ options.data += '&rtMedia_attached_files[]=' + temp;
1788
+ options.data += '&rtmedia_disable_media_in_commented_media=' + rtmedia_disable_media;
1789
+
1790
+ activity_attachemnt_ids = temp;
1791
+
1792
+ var orignalSuccess = originalOptions.success;
1793
+
1794
+ options.beforeSend = function() {
1795
+ if ( originalOptions.data.action == 'new_activity_comment' ) {
1796
+
1797
+ if( rtmedia_disable_media == 1 ){
1798
+ if( originalOptions.data.form_id != originalOptions.data.comment_id && temp > 0 ){
1799
+ jQuery( '.'+comment_media_wrapper+widget_id ).append('<div id="message" class="error bp-ajax-message" style="display: block;"><p> ' + rtmedia_disable_media_in_commented_media_text + ' </p></div>')
1800
+ jQuery( '.'+comment_media_wrapper+widget_id ).removeAttr( 'disabled' );
1801
+
1802
+ rtmedia_comment_media_input_button( widget_id, false );
1803
+
1804
+ rtmedia_disable_comment_textbox( widget_id, false );
1805
+
1806
+ return false;
1807
+ }
1808
+ }
1809
+ }
1810
+ };
1811
+ options.success = function( response ) {
1812
+ orignalSuccess( response );
1813
+ if ( response[0] + response[1] == '-1' ) {
1814
+ //Error
1815
+
1816
+ } else {
1817
+ if ( originalOptions.data.action == 'new_activity_comment' ) {
1818
+
1819
+ rtmedia_comment_media_remove_hidden_media_id( widget_id );
1820
+
1821
+ rtmedia_comment_media_textbox_val( widget_id, false );
1822
+
1823
+ rtmedia_comment_media_input_button( widget_id, false );
1824
+
1825
+ setTimeout( function() {
1826
+ rtmedia_apply_popup_to_media();
1827
+
1828
+ rtmedia_reset_video_and_audio();
1829
+
1830
+ }, 500 );
1831
+
1832
+ rtMediaHook.call( 'rtmedia_js_after_comment_added', [ ] );
1833
+ }
1834
+ }
1835
+
1836
+ };
1837
+ options.error = function() {
1838
+ if ( originalOptions.data.action == 'new_activity_comment' ) {
1839
+
1840
+ rtmedia_comment_media_remove_hidden_media_id( widget_id );
1841
+
1842
+ rtmedia_comment_media_textbox_val( widget_id, false );
1843
+
1844
+ rtmedia_comment_media_input_button( widget_id, false );
1845
+ }
1846
+ };
1847
+ }
1848
+ } );
1849
+ }
1850
+
1851
+
1852
+ function rtmedia_buddypress_load_newest_button_click(){
1853
+ jQuery( 'body #buddypress' ).on('click', 'ul.activity-list li.load-newest a', function(e) {
1854
+ e.preventDefault();
1855
+ /* add the popup to the images */
1856
+ rtmedia_apply_popup_to_media();
1857
+ /* add the uplaod button to the new activity */
1858
+ rtmedia_activity_stream_comment_media();
1859
+ });
1860
+ }
1861
+
1862
+
1863
+ function rtmedia_comment_media_upload_button_class( widget_id ){
1864
+ jQuery( 'form.'+comment_media_wrapper+widget_id ).find( 'input[type="submit"].rt_media_comment_submit' ).addClass( rtmedia_comment_media_submit+widget_id );
1865
+ jQuery( 'form.'+comment_media_wrapper+widget_id ).find( 'input[name="ac_form_submit"]' ).addClass( rtmedia_comment_media_submit+widget_id );
1866
+ rtmedia_add_widget_id_in_submit_button( widget_id );
1867
+ }
1868
+
1869
+ function rtmedia_add_widget_id_in_submit_button( widget_id ){
1870
+ jQuery( '.'+rtmedia_comment_media_submit+widget_id ).attr( 'widget_id', widget_id );
1871
+ }
1872
+
1873
+
1874
+
1875
+ function rtmedia_comment_media_upload_button_has_media( widget_id ,$value ){
1876
+ if( typeof $value != 'undefined' ){
1877
+ jQuery( '.'+rtmedia_comment_media_submit+widget_id ).attr( 'media', $value );
1878
+ }
1879
+ }
1880
+
1881
+ function rtmedia_comment_media_media_id( widget_id, media_id ){
1882
+ if ( jQuery( '.'+comment_media_wrapper+widget_id ).find( '#rtmedia_attached_id_' + media_id ).length < 1 ) {
1883
+
1884
+ rtmedia_comment_media_remove_hidden_media_id( widget_id );
1885
+
1886
+ jQuery( '.'+comment_media_wrapper+widget_id ).append( '<input type=\'hidden\' name=\'rtMedia_attached_files[]\' data-mode=\'rtmedia-update\' id=\'rtmedia_attached_id_' + media_id + '\' value=\'' +
1887
+ media_id + '\' />' );
1888
+ }
1889
+ }
1890
+
1891
+ function rtmedia_add_comment_media_button_trigger( widget_id ){
1892
+ if( jQuery( '.'+rtmedia_comment_media_submit+widget_id ).length > 0 ){
1893
+ jQuery( '.'+rtmedia_comment_media_submit+widget_id ).trigger('click');
1894
+ }
1895
+ }
1896
+
1897
+
1898
+ function renderUploadercomment_media( widget_id, parent_id_type ) {
1899
+ var button = comment_media_add_button+widget_id;
1900
+
1901
+ //sidebar widget uploader config script
1902
+ if ( jQuery( '#'+button ).length > 0 && jQuery( "#"+button ).closest( 'form' ).find( 'input[type="file"]' ).length == 0 ) {
1903
+
1904
+ jQuery( '#'+button ).closest('form').addClass( comment_media_wrapper+widget_id );
1905
+
1906
+
1907
+ rtmedia_comment_media_upload_button_class( widget_id );
1908
+
1909
+ if ( typeof rtMedia_update_plupload_comment == 'undefined' ) {
1910
+ return false;
1911
+ }
1912
+
1913
+ var plupload_comment = rtMedia_update_plupload_comment
1914
+ plupload_comment.browse_button = button;
1915
+ plupload_comment.container = 'rtmedia-comment-media-upload-container-'+widget_id;
1916
+
1917
+
1918
+ plupload_comment_main[ widget_id ] = plupload_comment;
1919
+
1920
+ commentObj[widget_id] = new UploadView(eval( plupload_comment_main[ widget_id ] ));
1921
+
1922
+ commentObj[widget_id].initUploader(false);
1923
+
1924
+
1925
+
1926
+ var form_html = jQuery( "."+comment_media_wrapper+widget_id );
1927
+ if( jQuery( form_html ).find('div.rtmedia-plupload-container').length ){
1928
+ if( parent_id_type == "activity" ){
1929
+ form_html.find('.ac-reply-content .ac-textarea').after( form_html.find('div.rtmedia-plupload-container .rtmedia-comment-media-upload') );
1930
+ }
1931
+
1932
+ if( parent_id_type == "rtmedia" ){
1933
+ form_html.find('textarea').after( form_html.find('div.rtmedia-plupload-container .rtmedia-comment-media-upload') );
1934
+ }
1935
+ }
1936
+
1937
+
1938
+ jQuery("#"+comment_media_uplaod_media+widget_id).hide();
1939
+
1940
+ jQuery("#"+comment_media_uplaod_media+widget_id).click(function(e) {
1941
+
1942
+ //Enable 'post update' button when media get select
1943
+ rtmedia_comment_media_upload_button_post_disable( widget_id, true );
1944
+
1945
+ commentObj[widget_id].uploadFiles(e);
1946
+ commentObj[ widget_id ].uploader.refresh();
1947
+ });
1948
+
1949
+ rtmedia_add_comment_media_button_click( widget_id );
1950
+
1951
+
1952
+ commentObj[widget_id].uploader.bind('FilesAdded', function(upl, rfiles) {
1953
+
1954
+ /* doest not allow multipal uplaod in comment media */
1955
+ while (upl.files.length > 1) {
1956
+ upl.removeFile(upl.files[0]);
1957
+ }
1958
+
1959
+ /* remove the last file that has being added to the comment media */
1960
+ commentObj[ widget_id ].upload_remove_array = [ ];
1961
+ jQuery( '#rtmedia_uploader_filelist-'+widget_id+' li.plupload_queue_li' ).remove();
1962
+
1963
+ rtmedia_comment_media_upload_button_has_media( widget_id, 1 );
1964
+
1965
+ jQuery.each( rfiles, function( i, file ) {
1966
+
1967
+ //Set file title along with file
1968
+ rtm_file_name_array = file.name.split( '.' );
1969
+ file.title = rtm_file_name_array[0];
1970
+
1971
+ var hook_respo = rtMediaHook.call( 'rtmedia_js_file_added', [ upl, file, '#rtmedia_uploader_filelist-'+widget_id ] );
1972
+
1973
+ if ( hook_respo == false ) {
1974
+ file.status = -1;
1975
+ commentObj[ widget_id ].upload_remove_array.push( file.id );
1976
+ return true;
1977
+ }
1978
+
1979
+ if ( commentObj[ widget_id ].uploader.settings.max_file_size < file.size ) {
1980
+ return true;
1981
+ }
1982
+
1983
+ var tmp_array = file.name.split( '.' );
1984
+
1985
+ if ( rtmedia_version_compare( rtm_wp_version, '3.9' ) ) { // Plupload getting updated in 3.9
1986
+ var ext_array = commentObj[ widget_id ].uploader.settings.filters.mime_types[0].extensions.split( ',' );
1987
+ } else {
1988
+ var ext_array = commentObj[ widget_id ].uploader.settings.filters[0].extensions.split( ',' );
1989
+ }
1990
+ if ( tmp_array.length > 1 ) {
1991
+ var ext = tmp_array[tmp_array.length - 1];
1992
+ ext = ext.toLowerCase();
1993
+ if ( jQuery.inArray( ext, ext_array ) === -1 ) {
1994
+ return true;
1995
+ }
1996
+ } else {
1997
+ return true;
1998
+ }
1999
+
2000
+ rtmedia_selected_file_list( plupload, file, '', '', widget_id );
2001
+
2002
+ //Delete Function
2003
+ jQuery( "#" + file.id + " .plupload_delete-" + widget_id + " .remove-from-queue" ).click( function ( e ) {
2004
+ e.preventDefault();
2005
+
2006
+ /* submit button with no media */
2007
+ jQuery( "."+rtmedia_comment_media_submit+widget_id ).attr( 'media', '0' );
2008
+
2009
+ commentObj[widget_id].uploader.removeFile(upl.getFile(file.id));
2010
+ jQuery("#" + file.id).remove();
2011
+ return false;
2012
+ });
2013
+
2014
+ // To change the name of the uploading file
2015
+ jQuery( '#label_' + file.id ).click( function( e ) {
2016
+ e.preventDefault();
2017
+
2018
+ rtm_file_label = this;
2019
+
2020
+ rtm_file_title_id = 'text_' + file.id;
2021
+ rtm_file_title_input = '#' + rtm_file_title_id;
2022
+
2023
+ rtm_file_title_wrapper_id = 'rtm_title_wp_' + file.id;
2024
+ rtm_file_title_wrapper = '#' + rtm_file_title_wrapper_id;
2025
+
2026
+ rtm_file_desc_id = 'rtm_desc_' + file.id;
2027
+ rtm_file_desc_input = '#' + rtm_file_desc_id;
2028
+
2029
+ rtm_file_desc_wrapper_id = 'rtm_desc_wp_' + file.id;
2030
+ rtm_file_desc_wrapper = '#' + rtm_file_desc_wrapper_id;
2031
+
2032
+ rtm_file_save_id = 'save_' + file.id;
2033
+ rtm_file_save_el = '#' + rtm_file_save_id;
2034
+
2035
+ jQuery( rtm_file_label ).hide();
2036
+ jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' ).hide();
2037
+
2038
+ // Show/create text box to edit media title
2039
+ if ( jQuery( rtm_file_title_input ).length === 0 ) {
2040
+ jQuery( rtm_file_label ).parent( '.plupload_file_name' ).prepend( '<div id="' + rtm_file_title_wrapper_id + '" class="rtm-upload-edit-title-wrapper"><label>' + rtmedia_edit_media_info_upload.title + '</label><input type="text" class="rtm-upload-edit-title" id="' + rtm_file_title_id + '" value="' + file.title + '" style="width: 75%;" /></div><div id="' + rtm_file_desc_wrapper_id + '" class="rtm-upload-edit-desc-wrapper"><label>' + rtmedia_edit_media_info_upload.description + '</label><textarea class="rtm-upload-edit-desc" id="' + rtm_file_desc_id + '"></textarea></div><span id="' + rtm_file_save_id + '" title="Save Change" class="rtmicon dashicons dashicons-yes"></span>' );
2041
+ } else {
2042
+ jQuery( rtm_file_title_wrapper ).show();
2043
+ jQuery( rtm_file_desc_wrapper ).show();
2044
+ jQuery( rtm_file_save_el ).show();
2045
+ }
2046
+
2047
+ jQuery( rtm_file_title_input ).focus();
2048
+
2049
+ } );
2050
+
2051
+ rtm_file_save_id = 'save_' + file.id;
2052
+ rtm_file_save_el = '#' + rtm_file_save_id;
2053
+ jQuery( document.body ).on('click', rtm_file_save_el , function( e ) {
2054
+ e.preventDefault();
2055
+ rtm_file_title_id = 'text_' + file.id;
2056
+ rtm_file_title_input = '#' + rtm_file_title_id;
2057
+
2058
+ rtm_file_desc_id = 'rtm_desc_' + file.id;
2059
+ rtm_file_desc_input = '#' + rtm_file_desc_id;
2060
+
2061
+ rtm_file_title_wrapper_id = 'rtm_title_wp_' + file.id;
2062
+ rtm_file_title_wrapper = '#' + rtm_file_title_wrapper_id;
2063
+
2064
+ rtm_file_desc_wrapper_id = 'rtm_desc_wp_' + file.id;
2065
+ rtm_file_desc_wrapper = '#' + rtm_file_desc_wrapper_id;
2066
+
2067
+ var file_title_val = jQuery( rtm_file_title_input ).val();
2068
+ var file_desc_val = jQuery( rtm_file_desc_input ).val();
2069
+
2070
+ rtm_file_label = '#label_' + file.id;
2071
+
2072
+ var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
2073
+
2074
+ if ( file_title_val != '' ) {
2075
+ file_name_wrapper_el.text( file_title_val + '.' + rtm_file_name_array[ 1 ] );
2076
+ file.title = file_title_val;
2077
+ }
2078
+
2079
+ if ( file_desc_val != '' ) {
2080
+ file.description = file_desc_val;
2081
+ }
2082
+
2083
+ jQuery( rtm_file_title_wrapper ).hide();
2084
+ jQuery( rtm_file_desc_wrapper ).hide();
2085
+ file_name_wrapper_el.show();
2086
+ jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
2087
+ jQuery( rtm_file_label ).show();
2088
+ jQuery( this ).hide();
2089
+ } );
2090
+ } );
2091
+
2092
+ jQuery.each( commentObj[ widget_id ].upload_remove_array, function( i, rfile ) {
2093
+ if ( upl.getFile( rfile ) ) {
2094
+ upl.removeFile( upl.getFile( rfile ) );
2095
+ }
2096
+ } );
2097
+
2098
+ rtMediaHook.call( 'rtmedia_js_after_files_added', [ upl, rfiles ] );
2099
+
2100
+ if ( typeof rtmedia_direct_upload_enabled != 'undefined' && rtmedia_direct_upload_enabled == '1' ) {
2101
+
2102
+ var allow_upload = rtMediaHook.call( 'rtmedia_js_upload_file', true );
2103
+ if ( allow_upload == false ) {
2104
+ return false;
2105
+ }
2106
+
2107
+ /* when direct upload is enable */
2108
+ jQuery( '.'+rtmedia_comment_media_submit+widget_id ).trigger( 'click' );
2109
+ }
2110
+ });
2111
+
2112
+
2113
+ commentObj[ widget_id ].uploader.bind( 'FileUploaded', function( up, file, res ) {
2114
+ if ( /MSIE (\d+\.\d+);/.test( navigator.userAgent ) ) { //Test for MSIE x.x;
2115
+ var ieversion = new Number( RegExp.jQuery1 ); // Capture x.x portion and store as a number
2116
+
2117
+ if ( ieversion < 10 ) {
2118
+ try {
2119
+ if ( typeof JSON.parse( res.response ) !== 'undefined' ) {
2120
+ res.status = 200;
2121
+ }
2122
+ } catch ( e ) {
2123
+ }
2124
+ }
2125
+ }
2126
+
2127
+ if ( res.status == 200 ) {
2128
+ try {
2129
+ var objIds = JSON.parse( res.response );
2130
+ jQuery.each( objIds, function( key, val ) {
2131
+ /* after id of the images get */
2132
+ rtmedia_comment_media_upload_button_post_disable( widget_id, false );
2133
+ rtmedia_comment_media_media_id( widget_id, val );
2134
+ rtmedia_add_comment_media_button_trigger( widget_id );
2135
+ } );
2136
+ } catch ( e ) {
2137
+
2138
+ }
2139
+ rtMediaHook.call( 'rtmedia_js_after_file_upload', [ up, file, res.response ] );
2140
+ }
2141
+ } );
2142
+
2143
+
2144
+ commentObj[ widget_id ].uploader.bind( 'Error', function( up, err ) {
2145
+
2146
+ rtmedia_comment_media_upload_button_post_disable( widget_id, false );
2147
+
2148
+ if ( err.code == -600 ) { //File size error // if file size is greater than server's max allowed size
2149
+ var tmp_array;
2150
+ var ext = tr = '';
2151
+ tmp_array = err.file.name.split( '.' );
2152
+ if ( tmp_array.length > 1 ) {
2153
+
2154
+ ext = tmp_array[tmp_array.length - 1];
2155
+ if ( ! ( typeof ( up.settings.upload_size ) != 'undefined' && typeof ( up.settings.upload_size[ext] ) != 'undefined' && ( up.settings.upload_size[ext]['size'] < 1 || ( up.settings.upload_size[ext]['size'] * 1024 * 1024 ) >= err.file.size ) ) ) {
2156
+ rtmedia_selected_file_list( plupload, err.file, up, err );
2157
+ }
2158
+ }
2159
+ } else {
2160
+ if ( err.code == -601 ) { // File extension error
2161
+ err.message = rtmedia_file_extension_error_msg;
2162
+ }
2163
+
2164
+ rtmedia_selected_file_list( plupload, err.file, '', err, widget_id );
2165
+ }
2166
+
2167
+ jQuery( '.plupload_delete-'+widget_id ).on( 'click', function( e ) {
2168
+ e.preventDefault();
2169
+
2170
+ /* submit button with no media */
2171
+ jQuery( "."+rtmedia_comment_media_submit+widget_id ).attr( 'media', '0' );
2172
+
2173
+ jQuery( this ).parent().parent( 'li' ).remove();
2174
+ } );
2175
+
2176
+ return false;
2177
+ } );
2178
+
2179
+
2180
+ commentObj[ widget_id ].uploader.bind( 'BeforeUpload', function( up, files ) {
2181
+ jQuery.each( commentObj[ widget_id ].upload_remove_array, function( i, rfile ) {
2182
+ if ( up.getFile( rfile ) ) {
2183
+ up.removeFile( up.getFile( rfile ) );
2184
+ }
2185
+ } );
2186
+
2187
+ item_id = 0;
2188
+ object = 'profile';
2189
+
2190
+ up.settings.multipart_params.context = object;
2191
+ up.settings.multipart_params.comment_media_activity_id = widget_id;
2192
+ up.settings.multipart_params.context_id = item_id;
2193
+ up.settings.multipart_params.rtmedia_update = true;
2194
+ up.settings.multipart_params.activity_id = 'null';
2195
+ up.settings.multipart_params.title = files.title.split( '.' )[ 0 ];
2196
+
2197
+ if ( typeof files.description != 'undefined' ) {
2198
+ up.settings.multipart_params.description = files.description;
2199
+ } else {
2200
+ up.settings.multipart_params.description = '';
2201
+ }
2202
+ } );
2203
+
2204
+ commentObj[ widget_id ].uploader.bind( 'UploadComplete', function( up, files ) {
2205
+
2206
+ jQuery( '#rtmedia_uploader_filelist-'+widget_id+' li').remove();
2207
+
2208
+ window.onbeforeunload = null;
2209
+ } );
2210
+
2211
+ commentObj[ widget_id ].uploader.bind( 'UploadProgress', function( up, file ) {
2212
+ jQuery( '#' + file.id + ' .plupload_file_status' ).html( '<div class="plupload_file_progress ui-widget-header" style="width: ' + file.percent + '%;"></div>' );
2213
+ jQuery( '#' + file.id ).addClass( 'upload-progress' );
2214
+ if ( file.percent == 100 ) {
2215
+ jQuery( '#' + file.id ).toggleClass( 'upload-success' );
2216
+ }
2217
+
2218
+ window.onbeforeunload = function( evt ) {
2219
+ var message = rtmedia_upload_progress_error_message;
2220
+ return message;
2221
+ };
2222
+ } );
2223
+
2224
+ commentObj[widget_id].uploader.refresh();//refresh the uploader for opera/IE fix on media page
2225
+ }
2226
+ }
2227
+
2228
+ function rtmedia_comment_media_upload( upload_comment ){
2229
+ if( typeof upload_comment != 'undefined' ){
2230
+ if( jQuery( upload_comment ).find( '.rt_upload_hf_upload_parent_id' ).length > 0 ){
2231
+ var parent_id = jQuery( upload_comment ).find( '.rt_upload_hf_upload_parent_id' ).val();
2232
+ var parent_id_type = jQuery( upload_comment ).find( '.rt_upload_hf_upload_parent_id_type' ).val();
2233
+ if( typeof parent_id != 'undefined' && typeof parent_id_type != 'undefined' ){
2234
+ var widget_id = parent_id_type+ '-' +parent_id;
2235
+
2236
+ renderUploadercomment_media( widget_id , parent_id_type );
2237
+ }
2238
+ }
2239
+ }
2240
+ }
2241
+
2242
+
2243
+ function rtmedia_activity_stream_comment_media(){
2244
+ jQuery('#buddypress ul#activity-stream li.activity-item').each(function () {
2245
+ if( jQuery( this ).find( '.rt_upload_hf_upload_parent_id' ).length && jQuery( this ).find( '.rt_upload_hf_upload_parent_id_type' ).length ){
2246
+ rtmedia_comment_media_upload( this );
2247
+ }
2248
+ });
2249
+ }
2250
+
2251
+
2252
+
2253