rtMedia for WordPress, BuddyPress and bbPress - Version 4.5.8

Version Description

rtMedia 4.5.8, with fixes for, media duplication when posted from the lightbox, upload terms and direct media upload compability on activity comment and media caption overlapping issue on Legacy template with some UI fixes.

=

Download this release

Release Info

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

Code changes from version 4.5.7 to 4.5.8

app/assets/admin/css/admin.css CHANGED
@@ -250,6 +250,12 @@
250
.rtm-option-wrapper .form-table .rtm-form-radio label {
251
margin-top: 5px !important;
252
}
253
.rtm-option-wrapper textarea,
254
.rtm-option-wrapper select,
255
.rtm-option-wrapper input[type=text],
@@ -719,6 +725,7 @@ input[type=checkbox]:checked ~ .switch-label:after {
719
background: white;
720
border-radius: 10px;
721
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
722
background-image: -webkit-linear-gradient(top, white 40%, #f0f0f0);
723
background-image: linear-gradient(to bottom, white 40%, #f0f0f0);
724
-webkit-transition: left 0.15s ease-out;
@@ -735,6 +742,7 @@ input[type=checkbox]:checked ~ .switch-label:after {
735
background: #f9f9f9;
736
border-radius: 6px;
737
box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
738
background-image: -webkit-linear-gradient(top, #eee, white);
739
background-image: linear-gradient(to bottom, #eee, white);
740
}
250
.rtm-option-wrapper .form-table .rtm-form-radio label {
251
margin-top: 5px !important;
252
}
253
+ .rtm-option-wrapper .form-table .wp-picker-input-wrap label {
254
+ display: inline;
255
+ }
256
+ .rtm-option-wrapper .form-table .wp-picker-clear {
257
+ margin-left: 5px;
258
+ }
259
.rtm-option-wrapper textarea,
260
.rtm-option-wrapper select,
261
.rtm-option-wrapper input[type=text],
725
background: white;
726
border-radius: 10px;
727
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
728
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(40%, white), to(#f0f0f0));
729
background-image: -webkit-linear-gradient(top, white 40%, #f0f0f0);
730
background-image: linear-gradient(to bottom, white 40%, #f0f0f0);
731
-webkit-transition: left 0.15s ease-out;
742
background: #f9f9f9;
743
border-radius: 6px;
744
box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
745
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(white));
746
background-image: -webkit-linear-gradient(top, #eee, white);
747
background-image: linear-gradient(to bottom, #eee, white);
748
}
app/assets/admin/css/admin.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}.clearfix:after{content:"";display:table;clear:both}.rtm-row-container{padding-top:10px}.rtm-admin-tab-container{display:table;width:100%}.rtm-admin-tab-container .rtm-tabs-content{background:#fff;border-left:1px solid #e7e7e7;display:table-cell;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-admin-tab-container .rtm-tabs-content #debug tbody{display:block;height:400px;overflow-y:auto}.rtm-admin-tab-container .rtm-tabs-content #debug .rtm-download-debuginfo{float:right;margin-top:14px}.rtm-setting-container{background-color:#f5f5f5;border:1px solid #dedede;box-shadow:0 1px 1px rgba(0,0,0,0.04);margin-top:10px}.rtm-sidebar .postbox .hndle{cursor:default}.rtm-tabs{display:table-cell;list-style:none;margin:0;min-height:300px;width:202px}.rtm-button-container{background:#f3f3f3;border-bottom:1px solid #dedede;box-shadow:0 1px 0 #fcfcfc inset;overflow:hidden;padding:6px 10px 6px 6px;position:relative;text-align:right}.rtm-button-container.bottom{background:#eee;border-top:1px solid #e7e7e7;box-shadow:0 0 0;z-index:999}#mce-EMAIL{width:100%}#mc-embedded-subscribe{display:block;margin:10px auto 0;width:100%}.license-row{box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.license-column,.license-column{box-sizing:border-box;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:.5rem;padding-left:.5rem}.large-4{-ms-flex-preferred-size:33.33333333%;flex-basis:33.33333333%;max-width:33.33333333%}@media screen and (max-width: 768px){.medium-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media screen and (max-width: 667px){.small-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}.rtm-social-links a{display:inline-block;margin:4px 0 4px 4px;text-decoration:none}.nav-tab.rtm-premium{background:#e74c3c;color:white;letter-spacing:0.5px}.rtm-setting-title{border-bottom:1px solid #eee;font-size:22px;font-weight:400;line-height:1;margin-bottom:20px;margin-top:0;padding-bottom:14px;display:none}.rtm-setting-title.rtm-show{display:block}.rtm-option-wrapper{margin-bottom:40px}.rtm-option-wrapper:last-child{margin-bottom:20px}.rtm-setting-title+.rtm-option-wrapper{margin-top:0}.rtm-option-wrapper:last-child{border-bottom:0}.rtm-option-wrapper .form-table{clear:none}.rtm-option-wrapper .rtm-field-wrap{float:left}.rtm-option-wrapper a{text-decoration:none}.rtm-option-wrapper .form-table th{color:#444;font-size:13px;font-weight:400;padding:5px 30px 5px 0;vertical-align:top;width:48%}.rtm-option-wrapper .form-table td{font-size:13px;padding:0 0 5px;vertical-align:top}.rtm-option-wrapper .form-table td fieldset label{display:block;margin:0 !important}.rtm-option-wrapper .form-table .rtm-form-radio label{margin-top:5px !important}.rtm-option-wrapper textarea,.rtm-option-wrapper select,.rtm-option-wrapper input[type=text],.rtm-option-wrapper input[type=number]{border-radius:3px}.rtm-option-wrapper input[type=number]{width:60px}.rtm-option-wrapper .rt-form-radio{height:28px;line-height:24px}.rtm-option-wrapper .rt-form-radio label:first-child{margin-right:12px !important}.rtm-option-wrapper .dashicons-info{color:#aaa;font-size:14px;height:26px;line-height:26px;position:relative}.rtm-option-wrapper .rtm-debug-info{margin-top:32px}.rtm-option-wrapper .rtm-debug-info tr{border-bottom:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:first-child{border-top:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:nth-child(2n){background-color:#f8f8f8}.rtm-option-wrapper .rtm-debug-info th{border-right:1px solid #eee;font-weight:600;width:auto}.rtm-option-wrapper .rtm-debug-info th,.rtm-option-wrapper .rtm-debug-info td{padding:10px}.rtm-option-wrapper .rtm-form-link{line-height:26px}.rtm-option-title{border-bottom:1px solid #eee;font-size:14px;letter-spacing:0.02rem;margin-bottom:12px;margin-top:0;padding:0 0 6px;text-transform:uppercase}.rtm-sidebar .button{display:block;opacity:0.8;position:relative;text-decoration:none}.rtm-social-share .dashicons{font-size:18px;position:absolute;right:10px;top:4px}.rtm-social-share .twitter .dashicons{color:#45b0e3}.rtm-social-share .facebook .dashicons{color:#3b5998}.rtm-social-share .wordpress .dashicons{color:#21759b}.rtm-social-share .rss .dashicons{color:#FF6600}.rtm-social-share p:last-child{margin-bottom:0}.rtm-notice{background:rgba(238,238,238,0.8);color:#777;font-size:12px;line-height:1.6;margin-top:10px;overflow:hidden;padding:0 10px}.rtm-notice p{font-size:inherit;line-height:inherit;margin:10px 0}.rtm-warning{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;padding:10px 15px}.rtmedia-theme-warning{margin-bottom:26px}.rtm-success{background-color:#dff0d8;border-bottom:1px solid #e7e7e7;color:#468847;margin:0;padding:8px 35px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.rtm-fly-warning{border-bottom:0;left:-10px;letter-spacing:1px;line-height:22px;margin-bottom:0;padding:14px 25px;position:absolute;top:-5px}.rtm-field-wrap{max-width:92%;position:relative;overflow:hidden;display:inline-block}.rtm-field-wrap input[type=file]{font-size:100px;position:absolute;left:0;top:0;opacity:0;width:75px;height:24px}#rtmedia-types .form-table th{line-height:26px;padding:5px 0 20px;width:33%}#rtmedia-types .form-table td{padding:0 0 12px}#rtmedia-custom-css-settings .form-table th{width:35%}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:92%}#rtmedia-custom-css-settings textarea{height:300px;width:100%}.rtm-img-size-setting .form-table th{border-bottom:1px solid #eee;padding-bottom:10px;padding-top:10px;width:20%}.rtm-img-size-setting .form-table tr:nth-child(2) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(4){border-bottom:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(4) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(5) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(6) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(7){border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(7) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-last-child(2) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:last-child{border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:last-child td{padding-top:20px;padding-bottom:20px}.rtm-img-size-setting .form-table .rtm-row-title{font-weight:600}#rtmedia-privacy .rt-form-radio{font-size:12px}#rtmedia-privacy .rt-form-radio strong{font-size:13px}.rtm-addon-license{border:1px solid #ddd;margin:.5rem 0;background-color:#fff}.rtm-addon-license .title{background-color:#fafafa;border-bottom:1px solid #ddd;margin:0;padding:15px 10px}.rtm-addon-license .license-inner{padding:10px}form.license-form{padding:0;margin:0}form.license-form input[type="text"]{width:100%;max-width:100%;height:35px;line-height:35px}form.license-form input[type="submit"]{margin:10px 0 0}.license-message{margin:15px 0 0 0;padding:8px}.license-message.warning{background:rgba(255,185,0,0.1);border:1px solid #ffb900}.license-message.success{background:rgba(70,180,80,0.1);border:1px solid #46b450}.license-message.info{background:rgba(0,160,210,0.1);border:1px solid #00a0d2}.license-message.alert{background:rgba(220,50,50,0.1);border:1px solid #dc3232}.rtml-submit-wrapper .submit{margin-left:8px;margin-right:8px;margin-top:0;padding-top:0;padding-bottom:10px}#rtmedia-encoding-usage strong{display:inline-block;min-width:120px}#rtmedia-encoding-usage p{overflow:hidden}.encoding-used,.encoding-remaining{background:#7AD03A;float:right;height:12px;margin-top:3px;width:12px}.encoding-remaining{background:#dedede}#rtprogressbar{background:#dedede;height:10px;position:relative}#rtprogressbar div{background:#7AD03A;height:10px;left:0;position:absolute}.rtm-tabs li{margin:0}.rtm-tabs li.error{border-left:4px solid #dc3232}.rtm-tabs a{border-bottom:1px solid #e7e7e7;border-top:1px solid #f2f2f2;color:#222;display:block;font-weight:700;outline:none;opacity:0.8;padding:10px 4px 10px 14px;position:relative;text-decoration:none;z-index:10}.rtm-tabs a:hover{background:#eee;color:#269ad6;margin-right:0;opacity:1;width:auto}.rtm-tabs a:focus{background:#fff;box-shadow:0 0 0}.rtm-tabs .active{background:white;position:relative}.rtm-tabs .active:after{background:#fff;content:' ';height:100%;position:absolute;right:-1px;top:0;width:1px}.rtm-tabs .active a{border-top-color:#fff;color:#222;opacity:1}.rtm-tabs .active a:hover{background:#fff}.rtm-tabs span{display:block;padding:0 0 0 25px}.rtm-tabs .dashicons{font-size:14px;height:auto;line-height:1;margin-top:3px;position:absolute;vertical-align:middle;width:auto}.rtm-horizotanl-tabs .rtm-tabs{list-style:none;margin:0;display:block;width:auto;min-height:0}.rtm-horizotanl-tabs .rtm-tabs-content{border-left:none;background:#fff;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-horizotanl-tabs .rtm-tabs a{border-bottom:none}.rtm-horizotanl-tabs .rtm-tabs li{display:inline-block}.rtm-horizotanl-tabs.rtm-admin-tab-container{width:100%;display:block}.switch{position:relative;display:inline-block;vertical-align:top;width:58px;height:22px;padding:3px;border-radius:18px}.switch input[type=checkbox]{position:absolute;top:0;left:0;opacity:0}.switch-label{position:relative;display:block;height:inherit;color:#fff;font-size:12px;text-transform:uppercase;background:#b4b4b4;border-radius:inherit;-webkit-transition:0.15s ease-out;transition:0.15s ease-out;-webkit-transition-property:opacity background;transition-property:opacity background}.switch-label:before,.switch-label:after{position:absolute;top:50%;margin-top:-.5em;line-height:1;-webkit-transition:inherit;transition:inherit}.switch-label:before{content:attr(data-off);right:11px;color:#fff}.switch-label:after{content:attr(data-on);left:11px;opacity:0}input[type=checkbox]:checked ~ .switch-label{background:#33a7d1}input[type=checkbox]:checked ~ .switch-label:before{opacity:0}input[type=checkbox]:checked ~ .switch-label:after{opacity:1}.switch-handle{position:absolute;top:5px;left:5px;width:18px;height:18px;background:white;border-radius:10px;box-shadow:1px 1px 5px rgba(0,0,0,0.2);background-image:-webkit-linear-gradient(top, #fff 40%, #f0f0f0);background-image:linear-gradient(to bottom, #fff 40%, #f0f0f0);-webkit-transition:left 0.15s ease-out;transition:left 0.15s ease-out}.switch-handle:before{content:'';position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:#f9f9f9;border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,0.02);background-image:-webkit-linear-gradient(top, #eee, #fff);background-image:linear-gradient(to bottom, #eee, #fff)}input[type=checkbox]:checked ~ .switch-handle{left:41px;box-shadow:-1px 1px 5px rgba(0,0,0,0.2)}.rtm-tooltip{display:inline-block;margin-left:3px;position:relative}.rtm-tooltip:hover .rtm-tip-top,.rtm-tooltip:hover .rtm-tip{margin-left:0;opacity:1;visibility:visible}.rtm-tooltip .rtm-title{border-bottom:1px dotted;padding-bottom:2px}.rtm-tip-top,.rtm-tip{background:#fffAF0;border:1px solid #f5deaf;border-radius:3px;font-size:12px;left:24px;margin-top:-4px;margin-left:-10px;line-height:1.5;opacity:0;padding:6px 12px;position:absolute;top:0;visibility:hidden;width:210px;z-index:9999;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s}.rtm-tip-top{bottom:26px;left:auto;right:-66px;top:auto;width:200px}.rtm-tip-top:after,.rtm-tip-top:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip-top:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip-top:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:8px;margin-left:-8px}.rtm-extensions .dashicons{font-size:12px;margin-left:-4px;position:relative;top:-3px}.rtm-extensions.rtm-set-top .dashicons{top:1px}.rtm-plugin-card.plugin-card{margin:1%;overflow:hidden;width:48%}.rtm-plugin-card.plugin-card .rtm-logo{float:left;margin-right:10px;max-width:200px;width:auto}.rtm-plugin-card.plugin-card .rtm-logo img{height:auto;max-width:120px}.rtm-plugin-card.plugin-card .desc,.rtm-plugin-card.plugin-card .name{margin-left:0;margin-right:0;overflow:hidden}.rtm-plugin-card.plugin-card h4{margin-bottom:0;margin-top:0}.rtm-plugin-card.plugin-card a{text-decoration:none}.rtm-plugin-card.plugin-card .rtm-live-demo{margin-right:10px}.rtm-plugin-card.plugin-card .price{color:#269ad6;font-size:22px;line-height:1.2}#rtm-plugins .rtm-option-title{margin-top:50px}#rtm-plugins .rtm-setting-title+.rtm-option-title{margin-top:0}#rtm-plugins .plugin-card-top{padding:10px}.rtm-encoding-table{border-collapse:collapse;clear:none}.rtm-encoding-table th,.rtm-encoding-table td{border:1px solid #e7e7e7}.rtm-encoding-table th{font-size:13px;font-weight:600}.rtm-theme-browser .rtm-themes{clear:none;padding:0}.rtm-theme-browser .rtm-themes .rtm-theme{width:48%}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(even){margin-right:0 !important}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(3n){margin-right:4%}.admin-bar .theme-overlay .theme-wrap{z-index:99999}.rtm-support-container{min-height:300px}.rtm-support-form .rtm-form-filed{clear:both;margin:15px 0}.rtm-support-form label{float:left;width:15%}.rtm-support-form .bp-media-textarea{height:80px}.rtm-button-wrapper{padding-left:15%}.rtm-page-container{background:#fff;overflow:hidden;padding:20px}.rtm-pro-feature-list li{box-sizing:border-box;float:left;padding:0 10px 20px;width:33%}.rtm-pro-feature-list .rtm-icon-wrap{float:left;margin-top:15px;width:30px}.rtm-pro-feature-list .dashicons{font-size:18px}.rtm-pro-feature-list .rtm-title{font-size:18px;margin-left:30px;margin-top:0px}.rtm-pro-feature-list .rtm-content{font-size:14px;line-height:25px;margin-left:30px;color:#8a8a8a;width:auto}.rtm-update-to-pro{text-align:center}.rtm-button{background-color:#269ad6;border:0;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;letter-spacing:1px;line-height:1;margin-bottom:10px;padding:12px 26px;text-align:center;text-decoration:none;text-transform:uppercase}.rtm-button:hover,.rtm-button:focus{background-color:#228ac0;color:#fff}.rtm-button.large{font-size:16px;margin-bottom:20px;padding:20px 40px}.rtm-button.rtm-button-success{background-color:#2ecc71}.rtm-button.rtm-button-success:hover,.rtm-button.rtm-button-success:focus{background-color:#2fab41}.rtm-hire-points{font-size:14px;margin-bottom:24px}@media only screen and (min-width: 1025px){.rtm-setting-container{float:left;width:78.2%}.rtm-sidebar{float:right;width:20%}.rtm-sidebar .postbox{min-width:0}.rtm-field-wrap{max-width:92%}.rtm-tip:after,.rtm-tip:before{right:100%;top:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-right-color:#fffAF0;border-width:6px;margin-top:-6px}.rtm-tip:before{border-color:rgba(221,204,170,0);border-right-color:#f5deaf;border-width:7px;margin-top:-7px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{float:left;width:40%}}@media only screen and (min-width: 641px) and (max-width: 1024px){.rtm-sidebar{width:100%}.rtm-sidebar .postbox{display:inline-block;margin-left:5px;vertical-align:top}.rtm-sidebar .postbox:first-child{margin-left:0}}@media screen and (max-width: 1024px){.rtm-tip{bottom:26px;left:auto;right:-102px;top:auto;width:200px}.rtm-tip:after,.rtm-tip:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:7px;margin-left:-7px}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:100%}.rtm-field-wrap input[type=text]{max-width:140px !important}.theme-browser .theme:nth-child(2n+1){margin-right:4%}.rtmedia-settings-submit{margin-bottom:0 !important}}@media only screen and (min-width: 641px){.rtm-pro-feature-list li:nth-child(3n+1){clear:left}}@media screen and (min-width: 421px) and (max-width: 782px){.rtm-option-wrapper .form-table td{display:table-cell}.rtm-option-wrapper .form-table th{display:table-cell}}@media only screen and (max-width: 640px){.rtm-pro-feature-list li{width:50%}.rtm-pro-feature-list li:nth-child(2n+1){clear:left}.rtm-tabs{width:40px}.rtm-tabs li{width:40px}.rtm-tabs a{height:18px}.rtm-tabs a:hover{width:140px}.rtm-tabs a:hover span{display:block}.rtm-tabs span{display:none;padding:0 0 0 28px;position:absolute}.rtm-support-form label{width:100%;margin-bottom:5px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{width:70%}.rtm-button-wrapper{padding-left:0}}@media screen and (max-width: 481px){.rtm-plugin-card.plugin-card .rtm-logo{display:inline-block;float:none}.rtm-theme-browser .rtm-themes .rtm-theme{margin:0 0 20px;width:100%}}@media screen and (max-width: 420px){.rtm-option-wrapper .form-table th{padding-bottom:15px;width:100%}#rtmedia-types .form-table th,#rtmedia-custom-css-settings .form-table th{width:100%}.rtm-pro-feature-list li{width:100%}.rtm-tip-top{right:-115px}}body.rtl .rtm-tabs a{padding:10px 32px 10px 4px}body.rtl .rtm-tabs .dashicons{right:10px}body.rtl .rtm-social-share .dashicons{left:10px;right:auto}body.rtl .rtm-option-wrapper .rtm-field-wrap{float:right}body.rtl .rtm-tip-top,body.rtl .rtm-tip{left:auto;right:24px}body.rtl .rtm-tip-top:after,body.rtl .rtm-tip-top:before,body.rtl .rtm-tip:after,body.rtl .rtm-tip:before{display:none}body.rtl .rtm-edit-td,body.rtl .rtm-delete-td{float:right;margin-left:0}body.rtl .rtm-edit-td{margin-right:-15px}body.rtl #rtmedia-membership span.float-right{float:left}body.rtl .theme-browser .theme{float:left;margin:0 4% 4% 0}.rtmedia-license .rtm-tabs span{padding:0}
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}.clearfix:after{content:"";display:table;clear:both}.rtm-row-container{padding-top:10px}.rtm-admin-tab-container{display:table;width:100%}.rtm-admin-tab-container .rtm-tabs-content{background:#fff;border-left:1px solid #e7e7e7;display:table-cell;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-admin-tab-container .rtm-tabs-content #debug tbody{display:block;height:400px;overflow-y:auto}.rtm-admin-tab-container .rtm-tabs-content #debug .rtm-download-debuginfo{float:right;margin-top:14px}.rtm-setting-container{background-color:#f5f5f5;border:1px solid #dedede;box-shadow:0 1px 1px rgba(0,0,0,0.04);margin-top:10px}.rtm-sidebar .postbox .hndle{cursor:default}.rtm-tabs{display:table-cell;list-style:none;margin:0;min-height:300px;width:202px}.rtm-button-container{background:#f3f3f3;border-bottom:1px solid #dedede;box-shadow:0 1px 0 #fcfcfc inset;overflow:hidden;padding:6px 10px 6px 6px;position:relative;text-align:right}.rtm-button-container.bottom{background:#eee;border-top:1px solid #e7e7e7;box-shadow:0 0 0;z-index:999}#mce-EMAIL{width:100%}#mc-embedded-subscribe{display:block;margin:10px auto 0;width:100%}.license-row{box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.license-column,.license-column{box-sizing:border-box;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:.5rem;padding-left:.5rem}.large-4{-ms-flex-preferred-size:33.33333333%;flex-basis:33.33333333%;max-width:33.33333333%}@media screen and (max-width: 768px){.medium-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media screen and (max-width: 667px){.small-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}.rtm-social-links a{display:inline-block;margin:4px 0 4px 4px;text-decoration:none}.nav-tab.rtm-premium{background:#e74c3c;color:white;letter-spacing:0.5px}.rtm-setting-title{border-bottom:1px solid #eee;font-size:22px;font-weight:400;line-height:1;margin-bottom:20px;margin-top:0;padding-bottom:14px;display:none}.rtm-setting-title.rtm-show{display:block}.rtm-option-wrapper{margin-bottom:40px}.rtm-option-wrapper:last-child{margin-bottom:20px}.rtm-setting-title+.rtm-option-wrapper{margin-top:0}.rtm-option-wrapper:last-child{border-bottom:0}.rtm-option-wrapper .form-table{clear:none}.rtm-option-wrapper .rtm-field-wrap{float:left}.rtm-option-wrapper a{text-decoration:none}.rtm-option-wrapper .form-table th{color:#444;font-size:13px;font-weight:400;padding:5px 30px 5px 0;vertical-align:top;width:48%}.rtm-option-wrapper .form-table td{font-size:13px;padding:0 0 5px;vertical-align:top}.rtm-option-wrapper .form-table td fieldset label{display:block;margin:0 !important}.rtm-option-wrapper .form-table .rtm-form-radio label{margin-top:5px !important}.rtm-option-wrapper .form-table .wp-picker-input-wrap label{display:inline}.rtm-option-wrapper .form-table .wp-picker-clear{margin-left:5px}.rtm-option-wrapper textarea,.rtm-option-wrapper select,.rtm-option-wrapper input[type=text],.rtm-option-wrapper input[type=number]{border-radius:3px}.rtm-option-wrapper input[type=number]{width:60px}.rtm-option-wrapper .rt-form-radio{height:28px;line-height:24px}.rtm-option-wrapper .rt-form-radio label:first-child{margin-right:12px !important}.rtm-option-wrapper .dashicons-info{color:#aaa;font-size:14px;height:26px;line-height:26px;position:relative}.rtm-option-wrapper .rtm-debug-info{margin-top:32px}.rtm-option-wrapper .rtm-debug-info tr{border-bottom:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:first-child{border-top:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:nth-child(2n){background-color:#f8f8f8}.rtm-option-wrapper .rtm-debug-info th{border-right:1px solid #eee;font-weight:600;width:auto}.rtm-option-wrapper .rtm-debug-info th,.rtm-option-wrapper .rtm-debug-info td{padding:10px}.rtm-option-wrapper .rtm-form-link{line-height:26px}.rtm-option-title{border-bottom:1px solid #eee;font-size:14px;letter-spacing:0.02rem;margin-bottom:12px;margin-top:0;padding:0 0 6px;text-transform:uppercase}.rtm-sidebar .button{display:block;opacity:0.8;position:relative;text-decoration:none}.rtm-social-share .dashicons{font-size:18px;position:absolute;right:10px;top:4px}.rtm-social-share .twitter .dashicons{color:#45b0e3}.rtm-social-share .facebook .dashicons{color:#3b5998}.rtm-social-share .wordpress .dashicons{color:#21759b}.rtm-social-share .rss .dashicons{color:#FF6600}.rtm-social-share p:last-child{margin-bottom:0}.rtm-notice{background:rgba(238,238,238,0.8);color:#777;font-size:12px;line-height:1.6;margin-top:10px;overflow:hidden;padding:0 10px}.rtm-notice p{font-size:inherit;line-height:inherit;margin:10px 0}.rtm-warning{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;padding:10px 15px}.rtmedia-theme-warning{margin-bottom:26px}.rtm-success{background-color:#dff0d8;border-bottom:1px solid #e7e7e7;color:#468847;margin:0;padding:8px 35px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.rtm-fly-warning{border-bottom:0;left:-10px;letter-spacing:1px;line-height:22px;margin-bottom:0;padding:14px 25px;position:absolute;top:-5px}.rtm-field-wrap{max-width:92%;position:relative;overflow:hidden;display:inline-block}.rtm-field-wrap input[type=file]{font-size:100px;position:absolute;left:0;top:0;opacity:0;width:75px;height:24px}#rtmedia-types .form-table th{line-height:26px;padding:5px 0 20px;width:33%}#rtmedia-types .form-table td{padding:0 0 12px}#rtmedia-custom-css-settings .form-table th{width:35%}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:92%}#rtmedia-custom-css-settings textarea{height:300px;width:100%}.rtm-img-size-setting .form-table th{border-bottom:1px solid #eee;padding-bottom:10px;padding-top:10px;width:20%}.rtm-img-size-setting .form-table tr:nth-child(2) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(4){border-bottom:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(4) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(5) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(6) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(7){border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(7) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-last-child(2) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:last-child{border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:last-child td{padding-top:20px;padding-bottom:20px}.rtm-img-size-setting .form-table .rtm-row-title{font-weight:600}#rtmedia-privacy .rt-form-radio{font-size:12px}#rtmedia-privacy .rt-form-radio strong{font-size:13px}.rtm-addon-license{border:1px solid #ddd;margin:.5rem 0;background-color:#fff}.rtm-addon-license .title{background-color:#fafafa;border-bottom:1px solid #ddd;margin:0;padding:15px 10px}.rtm-addon-license .license-inner{padding:10px}form.license-form{padding:0;margin:0}form.license-form input[type="text"]{width:100%;max-width:100%;height:35px;line-height:35px}form.license-form input[type="submit"]{margin:10px 0 0}.license-message{margin:15px 0 0 0;padding:8px}.license-message.warning{background:rgba(255,185,0,0.1);border:1px solid #ffb900}.license-message.success{background:rgba(70,180,80,0.1);border:1px solid #46b450}.license-message.info{background:rgba(0,160,210,0.1);border:1px solid #00a0d2}.license-message.alert{background:rgba(220,50,50,0.1);border:1px solid #dc3232}.rtml-submit-wrapper .submit{margin-left:8px;margin-right:8px;margin-top:0;padding-top:0;padding-bottom:10px}#rtmedia-encoding-usage strong{display:inline-block;min-width:120px}#rtmedia-encoding-usage p{overflow:hidden}.encoding-used,.encoding-remaining{background:#7AD03A;float:right;height:12px;margin-top:3px;width:12px}.encoding-remaining{background:#dedede}#rtprogressbar{background:#dedede;height:10px;position:relative}#rtprogressbar div{background:#7AD03A;height:10px;left:0;position:absolute}.rtm-tabs li{margin:0}.rtm-tabs li.error{border-left:4px solid #dc3232}.rtm-tabs a{border-bottom:1px solid #e7e7e7;border-top:1px solid #f2f2f2;color:#222;display:block;font-weight:700;outline:none;opacity:0.8;padding:10px 4px 10px 14px;position:relative;text-decoration:none;z-index:10}.rtm-tabs a:hover{background:#eee;color:#269ad6;margin-right:0;opacity:1;width:auto}.rtm-tabs a:focus{background:#fff;box-shadow:0 0 0}.rtm-tabs .active{background:white;position:relative}.rtm-tabs .active:after{background:#fff;content:' ';height:100%;position:absolute;right:-1px;top:0;width:1px}.rtm-tabs .active a{border-top-color:#fff;color:#222;opacity:1}.rtm-tabs .active a:hover{background:#fff}.rtm-tabs span{display:block;padding:0 0 0 25px}.rtm-tabs .dashicons{font-size:14px;height:auto;line-height:1;margin-top:3px;position:absolute;vertical-align:middle;width:auto}.rtm-horizotanl-tabs .rtm-tabs{list-style:none;margin:0;display:block;width:auto;min-height:0}.rtm-horizotanl-tabs .rtm-tabs-content{border-left:none;background:#fff;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-horizotanl-tabs .rtm-tabs a{border-bottom:none}.rtm-horizotanl-tabs .rtm-tabs li{display:inline-block}.rtm-horizotanl-tabs.rtm-admin-tab-container{width:100%;display:block}.switch{position:relative;display:inline-block;vertical-align:top;width:58px;height:22px;padding:3px;border-radius:18px}.switch input[type=checkbox]{position:absolute;top:0;left:0;opacity:0}.switch-label{position:relative;display:block;height:inherit;color:#fff;font-size:12px;text-transform:uppercase;background:#b4b4b4;border-radius:inherit;-webkit-transition:0.15s ease-out;transition:0.15s ease-out;-webkit-transition-property:opacity background;transition-property:opacity background}.switch-label:before,.switch-label:after{position:absolute;top:50%;margin-top:-.5em;line-height:1;-webkit-transition:inherit;transition:inherit}.switch-label:before{content:attr(data-off);right:11px;color:#fff}.switch-label:after{content:attr(data-on);left:11px;opacity:0}input[type=checkbox]:checked ~ .switch-label{background:#33a7d1}input[type=checkbox]:checked ~ .switch-label:before{opacity:0}input[type=checkbox]:checked ~ .switch-label:after{opacity:1}.switch-handle{position:absolute;top:5px;left:5px;width:18px;height:18px;background:white;border-radius:10px;box-shadow:1px 1px 5px rgba(0,0,0,0.2);background-image:-webkit-gradient(linear, left top, left bottom, color-stop(40%, #fff), to(#f0f0f0));background-image:-webkit-linear-gradient(top, #fff 40%, #f0f0f0);background-image:linear-gradient(to bottom, #fff 40%, #f0f0f0);-webkit-transition:left 0.15s ease-out;transition:left 0.15s ease-out}.switch-handle:before{content:'';position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:#f9f9f9;border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,0.02);background-image:-webkit-gradient(linear, left top, left bottom, from(#eee), to(#fff));background-image:-webkit-linear-gradient(top, #eee, #fff);background-image:linear-gradient(to bottom, #eee, #fff)}input[type=checkbox]:checked ~ .switch-handle{left:41px;box-shadow:-1px 1px 5px rgba(0,0,0,0.2)}.rtm-tooltip{display:inline-block;margin-left:3px;position:relative}.rtm-tooltip:hover .rtm-tip-top,.rtm-tooltip:hover .rtm-tip{margin-left:0;opacity:1;visibility:visible}.rtm-tooltip .rtm-title{border-bottom:1px dotted;padding-bottom:2px}.rtm-tip-top,.rtm-tip{background:#fffAF0;border:1px solid #f5deaf;border-radius:3px;font-size:12px;left:24px;margin-top:-4px;margin-left:-10px;line-height:1.5;opacity:0;padding:6px 12px;position:absolute;top:0;visibility:hidden;width:210px;z-index:9999;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s}.rtm-tip-top{bottom:26px;left:auto;right:-66px;top:auto;width:200px}.rtm-tip-top:after,.rtm-tip-top:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip-top:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip-top:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:8px;margin-left:-8px}.rtm-extensions .dashicons{font-size:12px;margin-left:-4px;position:relative;top:-3px}.rtm-extensions.rtm-set-top .dashicons{top:1px}.rtm-plugin-card.plugin-card{margin:1%;overflow:hidden;width:48%}.rtm-plugin-card.plugin-card .rtm-logo{float:left;margin-right:10px;max-width:200px;width:auto}.rtm-plugin-card.plugin-card .rtm-logo img{height:auto;max-width:120px}.rtm-plugin-card.plugin-card .desc,.rtm-plugin-card.plugin-card .name{margin-left:0;margin-right:0;overflow:hidden}.rtm-plugin-card.plugin-card h4{margin-bottom:0;margin-top:0}.rtm-plugin-card.plugin-card a{text-decoration:none}.rtm-plugin-card.plugin-card .rtm-live-demo{margin-right:10px}.rtm-plugin-card.plugin-card .price{color:#269ad6;font-size:22px;line-height:1.2}#rtm-plugins .rtm-option-title{margin-top:50px}#rtm-plugins .rtm-setting-title+.rtm-option-title{margin-top:0}#rtm-plugins .plugin-card-top{padding:10px}.rtm-encoding-table{border-collapse:collapse;clear:none}.rtm-encoding-table th,.rtm-encoding-table td{border:1px solid #e7e7e7}.rtm-encoding-table th{font-size:13px;font-weight:600}.rtm-theme-browser .rtm-themes{clear:none;padding:0}.rtm-theme-browser .rtm-themes .rtm-theme{width:48%}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(even){margin-right:0 !important}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(3n){margin-right:4%}.admin-bar .theme-overlay .theme-wrap{z-index:99999}.rtm-support-container{min-height:300px}.rtm-support-form .rtm-form-filed{clear:both;margin:15px 0}.rtm-support-form label{float:left;width:15%}.rtm-support-form .bp-media-textarea{height:80px}.rtm-button-wrapper{padding-left:15%}.rtm-page-container{background:#fff;overflow:hidden;padding:20px}.rtm-pro-feature-list li{box-sizing:border-box;float:left;padding:0 10px 20px;width:33%}.rtm-pro-feature-list .rtm-icon-wrap{float:left;margin-top:15px;width:30px}.rtm-pro-feature-list .dashicons{font-size:18px}.rtm-pro-feature-list .rtm-title{font-size:18px;margin-left:30px;margin-top:0px}.rtm-pro-feature-list .rtm-content{font-size:14px;line-height:25px;margin-left:30px;color:#8a8a8a;width:auto}.rtm-update-to-pro{text-align:center}.rtm-button{background-color:#269ad6;border:0;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;letter-spacing:1px;line-height:1;margin-bottom:10px;padding:12px 26px;text-align:center;text-decoration:none;text-transform:uppercase}.rtm-button:hover,.rtm-button:focus{background-color:#228ac0;color:#fff}.rtm-button.large{font-size:16px;margin-bottom:20px;padding:20px 40px}.rtm-button.rtm-button-success{background-color:#2ecc71}.rtm-button.rtm-button-success:hover,.rtm-button.rtm-button-success:focus{background-color:#2fab41}.rtm-hire-points{font-size:14px;margin-bottom:24px}@media only screen and (min-width: 1025px){.rtm-setting-container{float:left;width:78.2%}.rtm-sidebar{float:right;width:20%}.rtm-sidebar .postbox{min-width:0}.rtm-field-wrap{max-width:92%}.rtm-tip:after,.rtm-tip:before{right:100%;top:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-right-color:#fffAF0;border-width:6px;margin-top:-6px}.rtm-tip:before{border-color:rgba(221,204,170,0);border-right-color:#f5deaf;border-width:7px;margin-top:-7px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{float:left;width:40%}}@media only screen and (min-width: 641px) and (max-width: 1024px){.rtm-sidebar{width:100%}.rtm-sidebar .postbox{display:inline-block;margin-left:5px;vertical-align:top}.rtm-sidebar .postbox:first-child{margin-left:0}}@media screen and (max-width: 1024px){.rtm-tip{bottom:26px;left:auto;right:-102px;top:auto;width:200px}.rtm-tip:after,.rtm-tip:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:7px;margin-left:-7px}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:100%}.rtm-field-wrap input[type=text]{max-width:140px !important}.theme-browser .theme:nth-child(2n+1){margin-right:4%}.rtmedia-settings-submit{margin-bottom:0 !important}}@media only screen and (min-width: 641px){.rtm-pro-feature-list li:nth-child(3n+1){clear:left}}@media screen and (min-width: 421px) and (max-width: 782px){.rtm-option-wrapper .form-table td{display:table-cell}.rtm-option-wrapper .form-table th{display:table-cell}}@media only screen and (max-width: 640px){.rtm-pro-feature-list li{width:50%}.rtm-pro-feature-list li:nth-child(2n+1){clear:left}.rtm-tabs{width:40px}.rtm-tabs li{width:40px}.rtm-tabs a{height:18px}.rtm-tabs a:hover{width:140px}.rtm-tabs a:hover span{display:block}.rtm-tabs span{display:none;padding:0 0 0 28px;position:absolute}.rtm-support-form label{width:100%;margin-bottom:5px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{width:70%}.rtm-button-wrapper{padding-left:0}}@media screen and (max-width: 481px){.rtm-plugin-card.plugin-card .rtm-logo{display:inline-block;float:none}.rtm-theme-browser .rtm-themes .rtm-theme{margin:0 0 20px;width:100%}}@media screen and (max-width: 420px){.rtm-option-wrapper .form-table th{padding-bottom:15px;width:100%}#rtmedia-types .form-table th,#rtmedia-custom-css-settings .form-table th{width:100%}.rtm-pro-feature-list li{width:100%}.rtm-tip-top{right:-115px}}body.rtl .rtm-tabs a{padding:10px 32px 10px 4px}body.rtl .rtm-tabs .dashicons{right:10px}body.rtl .rtm-social-share .dashicons{left:10px;right:auto}body.rtl .rtm-option-wrapper .rtm-field-wrap{float:right}body.rtl .rtm-tip-top,body.rtl .rtm-tip{left:auto;right:24px}body.rtl .rtm-tip-top:after,body.rtl .rtm-tip-top:before,body.rtl .rtm-tip:after,body.rtl .rtm-tip:before{display:none}body.rtl .rtm-edit-td,body.rtl .rtm-delete-td{float:right;margin-left:0}body.rtl .rtm-edit-td{margin-right:-15px}body.rtl #rtmedia-membership span.float-right{float:left}body.rtl .theme-browser .theme{float:left;margin:0 4% 4% 0}.rtmedia-license .rtm-tabs span{padding:0}
app/assets/admin/css/sass/_components.scss CHANGED
@@ -82,8 +82,20 @@
82
margin-top: 5px !important;
83
}
84
}
85
}
86
87
textarea,
88
select,
89
input[type=text],
82
margin-top: 5px !important;
83
}
84
}
85
+
86
+ .wp-picker-input-wrap {
87
+ label {
88
+ display: inline;
89
+ }
90
+ }
91
+
92
+ .wp-picker-clear {
93
+ margin-left : 5px;
94
+ }
95
+
96
}
97
98
+
99
textarea,
100
select,
101
input[type=text],
app/assets/admin/js/admin.min.js CHANGED
@@ -3,4 +3,4 @@
3
* @package rtMedia
4
*/
5
6
- 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;if(c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick(),!0==("false"!==c.$elem.attr("data-hash"))){var e=b.location.hash;e&&c.$elem.find("li").find('a[href="'+e+'"]').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");d.find("a").on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");if(a(f).removeClass("hide"),1==("false"!==c.$elem.attr("data-hash"))){var g=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(g)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){this.$elem.find("li").find("a").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){if("13"==(a.keyCode?a.keyCode:a.which))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*\(?([^;]+?)\)?;/);if(null!=c){if(null!=c[0])return jQuery("#rtmedia-custom-css").after('<div id="rtcss-notice" class="error"><p>'+rtmedia_admin_strings.wrong_css_input+"</p></div>"),!1}})});var rtMediaAdmin=new Object;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){j=a.target.files,g(a)}function g(a){a.stopPropagation(),a.preventDefault();var b=new FormData;void 0!==a&&void 0!==a.target&&void 0!==a.target.name&&"rtFileInput"===a.target.name&&b.append("import_export_control",a.target.name),jQuery.each(j,function(a,c){b.append(a,c)});var c=jQuery("#rtmedia_admin_upload_nonce").val();void 0!==c&&""!==c&&b.append("rtmedia_admin_upload_nonce",c),b.append("action","rtmedia_admin_upload"),jQuery.ajax({url:rtmedia_admin_ajax,type:"POST",data:b,cache:!1,processData:!1,contentType:!1,success:function(a){if(a.hasOwnProperty("rtm_response")&&a.hasOwnProperty("rtm_response_msg")){jQuery("#rtm-setting-msg").remove();var b=jQuery("<div/>",{id:"rtm-setting-msg",class:"rtm-fly-warning"});"success"===a.rtm_response?(b.addClass("rtm-success rtm-save-settings-msg"),b.text(a.rtm_response_msg),jQuery(".rtm-button-container.top").append(b),location.reload()):"error"===a.rtm_response&&(b.addClass("rtm-warning"),b.text(a.rtm_response_msg),jQuery(".rtm-button-container.top").append(b),b.delay(3e3).fadeOut(100))}if(void 0===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=a("#rtm-licenses");h.length>0&&h.find(".license-inner:first input:first").focus();var i=document.createElement("div");i.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(i);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(i);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&&void 0!==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&&void 0!==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&&void 0!==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,""),-1==b.toString().indexOf("&apikey="+a.apikey)&&(b+="&apikey="+a.apikey),-1==b.toString().indexOf("&update=true")&&(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=3;return void function a(){b.css("background-color","#EE0000"),setTimeout(function(){b.css("background-color","#FFEBE8"),--d&&setTimeout(a,500)},500)}()}if(jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),!jQuery(".bpm-ajax-loader").length){var e={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(e))}$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 d=1;d<=$values.steps[0];d++)$count=5,d==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:d,action:"rtmedia_rt_album_import",count:$count,values:$values,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$data[d]=newvals;var f=jQuery.Deferred();f.resolve(),jQuery.each($data,function(a,b){f=f.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)});void 0!==rtmedia_on_label&&rtmedia_on_label,void 0!==rtmedia_off_label&&rtmedia_off_label;var j;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){if("false"==(b=b.trim()))return alert(rtmedia_admin_support_strings.all_fields_error),!1;a("#rtmedia_service_contact_container").empty(),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("#rtm-export-button").click(function(){data={action:"rtmedia_export_settings"},jQuery.post(ajaxurl,data,function(a){var b="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(a)),c=document.createElement("a");c.setAttribute("href",b),c.setAttribute("download","rtm-settings.json"),jQuery("body").append(c),c.click(),c.remove()})}),jQuery("#rtm-export-data-button").click(function(){window.location.href="/wp-admin/tools.php?page=export_personal_data"}),jQuery("#rtm-erase-data-button").click(function(){window.location.href="/wp-admin/tools.php?page=remove_personal_data"})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
3
* @package rtMedia
4
*/
5
6
+ "function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(n,s){var r={init:function(e,t){var r=this;r.elem=t,r.$elem=n(t),r.options=n.extend({},n.fn.rtTab.options,e),r.rtTabs()},rtTabs:function(){var t=this,e=t.options.activeTab;if(t.$elem.find("li:nth-child("+e+")").addClass("active"),t.rtTabContent(activeTabContent="yes"),t.rtClick(),!0==("false"!==t.$elem.attr("data-hash"))){var r=s.location.hash;r&&t.$elem.find("li").find('a[href="'+r+'"]').trigger("click"),n(s).on("hashchange",function(){var e=s.location.hash;t.$elem.find("li").find('a[href="'+e+'"]').trigger("click")})}},rtClick:function(){var a=this,i=a.$elem.find("li");i.find("a").on("click",function(e){e.preventDefault(),i.removeClass("active"),a.rtTabContent(),n(this).parent().addClass("active");var t=n(this).attr("href");if(n(t).removeClass("hide"),!0==("false"!==a.$elem.attr("data-hash"))){var r=n(s).scrollTop();location.hash=n(this).attr("href"),n(s).scrollTop(r)}"function"==typeof a.options.onComplete&&a.options.onComplete.apply(a.elem,arguments)})},rtTabContent:function(r){this.$elem.find("li").find("a").each(function(){var e=n(this),t=e.attr("href");"yes"===r&&e.parent().hasClass("active")||n(t).addClass("hide")})}};n.fn.rtTab=function(t){return this.each(function(){var e=Object.create(r);e.init(t,this),n.data(this,"rtTab",e)})},n.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document),jQuery(document).ready(function(a){var e=document.createElement("div");e.setAttribute("class","rtm-warning rtm-fly-warning hide"),a(".rtm-tabs").rtTab(),a('input[name^="rtmedia-options"]').on("change",function(){a(".rtm-save-settings-msg").remove(),0===a(".rtm-fly-warning").length&&(e.innerText=rtmedia_admin_strings.settings_changed,a(".rtm-button-container.top").prepend(e),a(".rtm-fly-warning").slideDown())}),a(".rtm-img-size-setting .form-table tr:nth-child(7) td:last-child").attr("colspan","3"),a(".rtm-field-wrap .switch input[type=checkbox]").each(function(){var e=a(this);e.parents("table").attr("data-depends")||(e.is(":checked")?(e.parents("table").next(".rtm-notice").slideDown(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideDown()})):(e.parents("table").next(".rtm-notice").slideUp(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideUp()}))),e.parents("tr").next("tr").attr("data-depends")&&(e.is(":checked")?e.parents("tr").next("tr").slideDown():e.parents("tr").next("tr").slideUp())}),a(".rtm-field-wrap .switch input[type=checkbox]").on("change",function(){var e=a(this);e.parents("table").attr("data-depends")||(e.parents("table").next(".rtm-notice").slideToggle(),e.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideToggle()})),e.parents("tr").next("tr").attr("data-depends")&&e.parents("tr").next("tr").slideToggle()});new(Backbone.View.extend({el:a(".bp-media-admin"),events:{"click .rtm-theme":"render","click .rtm-close":"close","click .rtm-previous":"previousTheme","click .rtm-next":"nextTheme",keyup:"keyEvent"},initialize:function(){_.bindAll(this,"render","close","nextTheme","previousTheme","keyEvent"),this.keyEvent()},render:function(e){a(".rtm-theme").removeClass("rtm-modal-open");var t=a(e.currentTarget).addClass("rtm-modal-open").find(".rtm-theme-content").html();if(a(".rtm-theme-overlay")[0])a(".rtm-theme-overlay").show(),a(this.el).find(".rtm-theme-content-wrap").empty().append(t);else{var r={themeContent:t};a(this.el).append(rtMediaAdmin.templates.rtm_theme_overlay(r))}a(e.currentTarget).is(":first-child")?a(".rtm-previous").addClass("disabled"):a(e.currentTarget).is(":last-child")?a(".rtm-next").addClass("disabled"):a(".rtm-next, .rtm-previous").removeClass("disabled")},close:function(){a(".rtm-theme").removeClass("rtm-modal-open"),a(".rtm-theme-overlay").hide(),a(".rtm-next, .rtm-previous").removeClass("disabled")},nextTheme:function(e){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1},previousTheme:function(e){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1},keyEvent:function(){a("body").on("keyup",function(e){return 39===e.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1):37===e.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(e.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1):void(27===e.keyCode&&a(".rtm-close").trigger("click"))})}}));jQuery("#rtm-licenses .regular-text").each(function(){jQuery(this).keypress(function(e){if("13"==(e.keyCode?e.keyCode:e.which))return!1})}),jQuery("#bp_media_settings_form").on("submit",function(e){jQuery("#rtcss-notice").remove();var t=jQuery("#rtmedia-custom-css").val().match(/@import\s*(url)?\s*\(?([^;]+?)\)?;/);if(null!=t&&null!=t[0])return jQuery("#rtmedia-custom-css").after('<div id="rtcss-notice" class="error"><p>'+rtmedia_admin_strings.wrong_css_input+"</p></div>"),!1})});var rtMediaAdmin=new Object;function rtmedia_addon_do_not_show(){jQuery.post(rtmedia_admin_ajax,{action:"rtmedia_addon_popup_not_show_again"},function(e){jQuery("#TB_window").remove(),jQuery("#TB_overlay").remove()})}rtMediaAdmin.templates={rtm_image:wp.template("rtm-image"),rtm_msg_div:wp.template("rtm-msg-div"),rtm_album_favourites_importer:wp.template("rtm-album-favourites-importer"),rtm_map_mapping_failure:wp.template("rtm-map-mapping-failure"),rtm_p_tag:wp.template("rtm-p-tag"),rtm_theme_overlay:wp.template("rtm-theme-overlay")},jQuery(document).ready(function(v){var e=v("#rtm-licenses");0<e.length&&e.find(".license-inner:first input:first").focus();var t=document.createElement("div");function n(n){return jQuery.getJSON(ajaxurl,n,function(e){if(favorites=!1,e){var t=Math.ceil((5*parseInt(e.page)+parseInt(n.values.finished))/parseInt(n.values.total)*100);comments_total=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.total").html(),users_total=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.total").html(),media_total=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.total").html(),comments_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(),users_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html();var r=Math.ceil((parseInt(e.comments)+parseInt(comments_finished))/parseInt(comments_total)*100),a=Math.ceil(parseInt(e.users)/parseInt(users_total)*100);(100<t||100==t)&&(t=100,favorites=!0),jQuery(".bp-album-media #rtprogressbar>div").css("width",t+"%"),jQuery(".bp-album-comments #rtprogressbar>div").css("width",r+"%"),jQuery(".bp-album-users #rtprogressbar>div").css("width",a+"%"),media_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(),parseInt(media_finished)<parseInt(media_total)&&jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(parseInt(media_finished)+n.count),jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(parseInt(e.comments)+parseInt(comments_finished)),jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html(parseInt(e.users)),favorites&&(favorite_data={action:"rtmedia_rt_album_import_favorites",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},jQuery.post(ajaxurl,favorite_data,function(e){if(!e.hasOwnProperty(favorites)||0===e.favorites&&"0"===e.favorites)window.setTimeout(s,2e3);else{if(!jQuery(".bp-album-favorites").length){var t={users:e.users};jQuery(".bp-album-comments").after(rtMediaAdmin.templates.rtm_album_favourites_importer(t))}$favorites={},0!=e.offset||"0"!=e.offset?start=1*e.offset+1:start=1;for(var r=start;r<=e.users;r++)$count=1,r==e.users&&($count=parseInt(e.users%$count),0==$count&&($count=1)),newvals={action:"rtmedia_rt_album_import_step_favorites",offset:1*(r-1),redirect:r==e.users,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$favorites[r]=newvals;var a=jQuery.Deferred();a.resolve(),jQuery.each($favorites,function(e,t){a=a.pipe(function(){return function(e){return jQuery.post(ajaxurl,e,function(e){redirect=!1,favorites_total=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.total").html(),favorites_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(),jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(parseInt(favorites_finished)+1);var t=Math.ceil(parseInt(favorites_finished+1)/parseInt(favorites_total)*100);(100<t||100==t)&&(t=100,redirect=!0),jQuery(".bp-album-favorites #rtprogressbar>div").css("width",t+"%"),redirect&&window.setTimeout(s,2e3)})}(t)})})}},"json"))}else if(n.hasOwnProperty(page)){var i={msg:"Row "+e.page+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(i))}else{i={msg:rtmedia_admin_strings.request_failed};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(i))}})}function s(){window.location=document.URL}t.className="support_form_loader",0<v(".rtm-save-settings-msg").length&&setTimeout(function(){v(".rtm-save-settings-msg").remove()},1e4),jQuery("#spread-the-word").on("click","#bp-media-add-linkback",function(){var e={action:"rtmedia_linkback",linkback:jQuery("#bp-media-add-linkback:checked").length};jQuery.post(rtmedia_admin_ajax,e,function(e){})}),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(t);var e={action:"rtmedia_select_request",form:jQuery(this).val()};jQuery.post(ajaxurl,e,function(e){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(e).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(t);jQuery.post(ajaxurl,{action:"rtmedia_cancel_request"},function(e){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(e).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(e){var t=!0,r=new RegExp("^[0-9]+quot;);jQuery("input[name*='defaultSizes']").each(function(e){if(!r.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(e){return e.toUpperCase()})),t=!1});var a=jQuery('input[name^="rtmedia-options[general_videothumbs]"]');if(t&&0<a.length&&void 0!==a){var i="",n=0;if(a.val()<=0?(i+=rtmedia_admin_strings.video_thumbnail_error,n=2):r.test(a.val())||(i+=rtmedia_admin_strings.video_thumbnail_invalid_value+" "+Math.round(a.val())+".",n=Math.round(a.val())),""!=i)return alert(i),a.val(n),t=!1}var s=jQuery('input[name^="rtmedia-options[general_jpeg_image_quality]"]');if(t&&0<s.length&&void 0!==s){i="";var o=0;if(s.val()<=0?(i+=rtmedia_admin_strings.jpeg_quality_negative_error,o=90):100<s.val()?(i+=rtmedia_admin_strings.jpeg_quality_percentage_error,o=100):r.test(s.val())||(i+=rtmedia_admin_strings.jpeg_quality_invalid_value+" "+Math.round(s.val())+".",o=Math.round(s.val())),""!=i)return alert(i),s.val(o),t=!1}var m=jQuery('input[name^="rtmedia-options[general_perPageMedia]"]');if(t&&0<m.length&&void 0!==m){i="";var u=0;if(m.val()<1?(i+=rtmedia_admin_strings.per_page_media_negative_value,u=10):jQuery.isNumeric(m.val())&&Math.floor(m.val())!=m.val()&&(i+=rtmedia_admin_strings.per_page_media_positive_error+" "+Math.round(m.val())+".",u=Math.round(m.val())),""!=i)return alert(i),m.val(u),t=!1}t||e.preventDefault()}),jQuery(document).on("click","#bpm-services .encoding-try-now,#rtm-services .encoding-try-now",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.are_you_sure)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_free_encoding_subscribe"};jQuery.getJSON(ajaxurl,t,function(e){if(void 0===e.error&&e.apikey){var t=window.location.href,r=window.location.hash;t=t.replace(r,""),document.location.href=t+"&apikey="+e.apikey+r}else{jQuery(".encoding-try-now").next().remove(),jQuery("#settings-error-encoding-error").remove();var a={id:"settings-error-encoding-error",msg:e.error,class:"error"};jQuery("#bp-media-settings-boxes").before(rtMediaAdmin.templates.rtm_msg_div(a))}})}}),jQuery(document).on("click","#api-key-submit",function(e){if(e.preventDefault(),0==jQuery(this).next("img").length){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t))}t={action:"rtmedia_enter_api_key",apikey:jQuery("#new-api-key").val()};jQuery.getJSON(ajaxurl,t,function(e){if(void 0===e.error&&e.apikey){var t=window.location.href,r=window.location.hash;-1==(t=t.replace(r,"")).toString().indexOf("&apikey="+e.apikey)&&(t+="&apikey="+e.apikey),-1==t.toString().indexOf("&update=true")&&(t+="&update=true"),document.location.href=t+r}else{jQuery("#settings-error-api-key-error").remove();var a={id:"settings-error-api-key-error",msg:e.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(a))}jQuery("#api-key-submit").next("img").remove()})}),jQuery(document).on("click","#disable-encoding",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.disable_encoding)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_disable_encoding"};jQuery.post(ajaxurl,t,function(e){if(e){if(jQuery(".settings-error-encoding-disabled").remove(),0<jQuery("#settings-encoding-successfully-updated").length)jQuery("#settings-encoding-successfully-updated p").html(e);else{var t={id:"settings-encoding-successfully-updated",msg:e,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}jQuery("#rtmedia-encoding-usage").hide(),jQuery("#disable-encoding").next("img").remove(),jQuery("#disable-encoding").hide(),jQuery("#enable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();t={id:"settings-error-encoding-disabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}})}}),jQuery(document).on("click","#enable-encoding",function(e){if(e.preventDefault(),confirm(rtmedia_admin_strings.enable_encoding)){var t={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t));t={action:"rtmedia_enable_encoding"};jQuery.post(ajaxurl,t,function(e){if(e){if(jQuery(".settings-error-encoding-enabled").remove(),0<jQuery("#settings-encoding-successfully-updated").length)jQuery("#settings-encoding-successfully-updated p").html(e);else{var t={id:"settings-encoding-successfully-updated",msg:e,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}jQuery("#enable-encoding").next("img").remove(),jQuery("#enable-encoding").hide(),jQuery("#disable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();t={id:"settings-error-encoding-enabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t))}})}}),jQuery(".bp-media-encoding-table").on("click",".bpm-unsubscribe",function(e){e.preventDefault(),jQuery("#bpm-unsubscribe-dialog").dialog({dialogClass:"wp-dialog",modal:!0,buttons:{Unsubscribe:function(){jQuery(this).dialog("close");var e={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(".bpm-unsubscribe").after(rtMediaAdmin.templates.rtm_image(e));e={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,e,function(e){if(void 0===e.error&&e.updated){jQuery(".bpm-unsubscribe").next().remove(),jQuery(".bpm-unsubscribe").after(e.form),jQuery(".bpm-unsubscribe").remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var t={id:"settings-unsubscribed-successfully",msg:e.updated,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t)),window.location.hash="#settings-unsubscribed-successfully"}else{jQuery(".bpm-unsubscribe").next().remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();t={id:"settings-unsubscribe-error",msg:e.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(t)),window.location.hash="#settings-unsubscribe-error"}})}}})}),jQuery("#bpmedia-bpalbumimporter").on("change","#bp-album-import-accept",function(){jQuery(".bp-album-import-accept").toggleClass("i-accept"),jQuery(".bp-album-importer-wizard").slideToggle()}),jQuery("#rtprivacyinstall").click(function(e){e.preventDefault(),$progress_parent=jQuery("#rtprivacyinstaller"),$progress_parent.find(".rtprivacytype").each(function(){if($type=jQuery(this).attr("id"),"total"==$type){$values=[],jQuery(this).find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),$data={};for(var e=1;e<=$values.steps[0];e++)$count=20,e==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=20)),newvals={page:e,action:"rtmedia_privacy_install",count:$count,values:$values},$data[e]=newvals;var r=jQuery.Deferred();r.resolve(),jQuery.each($data,function(e,t){r=r.pipe(function(){return function(i){return jQuery.post(ajaxurl,i,function(e){if(0!=e){var t=!1,r=Math.ceil((20*parseInt(e)+parseInt(i.values.finished))/parseInt(i.values.total)*100);100<r&&(r=100,t=!0),jQuery("#rtprogressbar>div").css("width",r+"%"),finished=jQuery("#rtprivacyinstaller span.finished").html(),jQuery("#rtprivacyinstaller span.finished").html(parseInt(finished)+i.count),t&&jQuery.post(ajaxurl,{action:"rtmedia_privacy_redirect"},function(e){window.location=settings_url})}else{var a={msg:"Row "+e+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(a))}})}(t)})})}})}),jQuery("#bpmedia-bpalbumimport-cleanup").click(function(e){e.preventDefault(),jQuery.post(ajaxurl,{action:"rtmedia_rt_album_cleanup",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},function(e){window.location=settings_rt_album_import_url})}),jQuery("#bpmedia-bpalbumimporter").on("click","#bpmedia-bpalbumimport",function(e){if(e.preventDefault(),jQuery("#bp-album-import-accept").prop("checked")){if(jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),!jQuery(".bpm-ajax-loader").length){var t={src:rtmedia_admin_url+"images/wpspin_light.gif",class:"bpm-ajax-loader",norefresh:rtmedia_admin_strings.no_refresh};jQuery(this).after(rtMediaAdmin.templates.rtm_image(t))}$progress_parent=jQuery("#bpmedia-bpalbumimport"),$values=[],jQuery(this).parent().find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),0==$values.steps[0]&&($values.steps[0]=1),$data={};for(i=1;i<=$values.steps[0];i++)$count=5,i==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:i,action:"rtmedia_rt_album_import",count:$count,values:$values,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$data[i]=newvals;var r=jQuery.Deferred();r.resolve(),jQuery.each($data,function(e,t){r=r.pipe(function(){return n(t)})})}else{jQuery("html, body").animate({scrollTop:jQuery("#bp-album-import-accept").offset().top},500);var a=jQuery(".bp-album-import-accept"),i=3;(function e(){a.css("background-color","#EE0000"),setTimeout(function(){a.css("background-color","#FFEBE8"),--i&&setTimeout(e,500)},500)})()}}),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(e){e.preventDefault();var t={action:"rtmedia_convert_videos_form",email:jQuery(".email").val(),url:jQuery(".url").val(),choice:jQuery('input[name="choice"]:checked').val(),interested:jQuery('input[name="interested"]:checked').val()};return jQuery.post(ajaxurl,t,function(e){var t={msg:e,strong:"yes"};jQuery("#video-transcoding-main-container").html(rtMediaAdmin.templates.rtm_p_tag(t))}),!1}),jQuery("#bpmedia-bpalbumimporter").on("click",".deactivate-bp-album",function(e){e.preventDefault(),$bpalbum=jQuery(this);var t={action:"rtmedia_rt_album_deactivate",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()};jQuery.get(ajaxurl,t,function(e){if(e)location.reload();else{var t={msg:rtmedia_admin_strings.something_went_wrong};$bpalbum.parent().after(rtMediaAdmin.templates.rtm_p_tag(t))}})}),jQuery(".updated").on("click",".bpm-hide-encoding-notice",function(){var e={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(e));e={action:"rtmedia_hide_encoding_notice"};jQuery.post(ajaxurl,e,function(e){e&&jQuery(".bpm-hide-encoding-notice").closest(".updated").remove()})}),jQuery("#rtmedia-bp-enable-activity").is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0),jQuery("#rtmedia-bp-enable-activity").on("click",function(e){jQuery(this).is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0)});var a;void 0!==rtmedia_on_label&&rtmedia_on_label,void 0!==rtmedia_off_label&&rtmedia_off_label,jQuery("input[type=file]").on("change",function(e){a=e.target.files,function(e){e.stopPropagation(),e.preventDefault();var r=new FormData;void 0!==e&&void 0!==e.target&&void 0!==e.target.name&&"rtFileInput"===e.target.name&&r.append("import_export_control",e.target.name);jQuery.each(a,function(e,t){r.append(e,t)});var t=jQuery("#rtmedia_admin_upload_nonce").val();void 0!==t&&""!==t&&r.append("rtmedia_admin_upload_nonce",t);r.append("action","rtmedia_admin_upload"),jQuery.ajax({url:rtmedia_admin_ajax,type:"POST",data:r,cache:!1,processData:!1,contentType:!1,success:function(e){if(e.hasOwnProperty("rtm_response")&&e.hasOwnProperty("rtm_response_msg")){jQuery("#rtm-setting-msg").remove();var t=jQuery("<div/>",{id:"rtm-setting-msg",class:"rtm-fly-warning"});"success"===e.rtm_response?(t.addClass("rtm-success rtm-save-settings-msg"),t.text(e.rtm_response_msg),jQuery(".rtm-button-container.top").append(t),location.reload()):"error"===e.rtm_response&&(t.addClass("rtm-warning"),t.text(e.rtm_response_msg),jQuery(".rtm-button-container.top").append(t),t.delay(3e3).fadeOut(100))}if(void 0===e.error){if(e.exceed_size_msg)return jQuery("#debuglog").val(""),alert(e.exceed_size_msg),!1;jQuery("#debuglog_temp_path").val(e.debug_attachmanet)}else jQuery("#debuglog").val(""),alert("ERRORS: "+e.error)}})}(e)}),jQuery("#rtmedia-submit-request").click(function(){var e=jQuery("#name").val(),t=jQuery("#email").val(),r=jQuery("#website").val(),a=jQuery("#subject").val(),i=jQuery("#details").val(),n=jQuery('input[name="request_type"]').val(),s=jQuery('input[name="request_id"]').val(),o=jQuery('input[name="server_address"]').val(),m=jQuery('input[name="ip_address"]').val(),u=jQuery('input[name="server_type"]').val(),d=jQuery('input[name="user_agent"]').val(),l={name:e,email:t,website:r,subject:a,details:i,request_id:s,request_type:"premium_support",server_address:o,ip_address:m,server_type:u,user_agent:d,debuglog_temp_path:jQuery('input[name="debuglog_temp_path"]').val()};if("bug_report"==n){var p=jQuery("#wp_admin_username").val();if(""==p)return alert(rtmedia_admin_support_strings.wp_admin_username_error),!1;var c=jQuery("#wp_admin_pwd").val();if(""==c)return alert(rtmedia_admin_support_strings.wp_admin_pwd_error),!1;var _=jQuery("#ssh_ftp_host").val();if(""==_)return alert(rtmedia_admin_support_strings.ssh_ftp_host_error),!1;var f=jQuery("#ssh_ftp_username").val();if(""==f)return alert(rtmedia_admin_support_strings.ssh_ftp_username_error),!1;var b=jQuery("#ssh_ftp_pwd").val();if(""==b)return alert(rtmedia_admin_support_strings.ssh_ftp_pwd_error),!1;l={name:e,email:t,website:r,subject:a,details:i,request_id:s,request_type:"premium_support",server_address:o,ip_address:m,server_type:u,user_agent:d,wp_admin_username:p,wp_admin_pwd:c,ssh_ftp_host:_,ssh_ftp_username:f,ssh_ftp_pwd:b}}for(formdata in l){if(""==l[formdata]&&"debuglog_temp_path"!=formdata)return alert("Please enter "+formdata.replace("_"," ")+" field."),!1;if(""==l[formdata]&&"debuglog_temp_path"==formdata)return alert("Please upload attachment."),!1}return data={action:"rtmedia_submit_request",form_data:l,support_wpnonce:jQuery("#support_wpnonce").val()},jQuery.post(ajaxurl,data,function(e){if("false"==(e=e.trim()))return alert(rtmedia_admin_support_strings.all_fields_error),!1;v("#rtmedia_service_contact_container").empty(),v("#rtmedia_service_contact_container").append(e)}),!1}),jQuery("#cancel-request").click(function(){return!1}),jQuery(".rtm_enable_masonry_view input[type=checkbox]").is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide(),jQuery(".rtm_enable_masonry_view input[type=checkbox]").on("click",function(e){jQuery(this).is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide()}),jQuery("#rtm-masonry-change-thumbnail-info").click(function(e){jQuery("html, body").animate({scrollTop:0},"500","swing")}),jQuery("#rtm-export-button").click(function(){data={action:"rtmedia_export_settings"},jQuery.post(ajaxurl,data,function(e){var t="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e)),r=document.createElement("a");r.setAttribute("href",t),r.setAttribute("download","rtm-settings.json"),jQuery("body").append(r),r.click(),r.remove()})}),jQuery("#rtm-export-data-button").click(function(){window.location.href="/wp-admin/tools.php?page=export_personal_data"}),jQuery("#rtm-erase-data-button").click(function(){window.location.href="/wp-admin/tools.php?page=remove_personal_data"})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
app/assets/css/rtmedia.css CHANGED
@@ -152,6 +152,13 @@ body.media.buddypress {
152
margin-left: 50px;
153
padding-left: 15px;
154
}
155
156
#buddypress form#whats-new-form #whats-new-content.active #whats-new-options[style] #whats-new-post-in-box {
157
margin-top: 0;
@@ -260,6 +267,7 @@ form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.r
260
#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title {
261
min-width: 100%;
262
margin-top: 1px;
263
}
264
265
.rtm-plupload-list:empty {
@@ -1185,6 +1193,11 @@ img.mfp-img {
1185
min-height: 200px;
1186
min-width: 200px;
1187
}
1188
.mfp-content .rtm-single-meta {
1189
background: #FFFFFF;
1190
overflow: hidden;
@@ -1715,6 +1728,12 @@ img.mfp-img {
1715
border-bottom: 0;
1716
padding-bottom: 0;
1717
}
1718
1719
.rtmedia-activity-container .rtmedia-item-actions {
1720
display: none;
@@ -1858,6 +1877,20 @@ a.rtmedia-comment-link.rtmedia-comments-link {
1858
display: initial;
1859
}
1860
1861
.rtmedia-album-edit .rtm-checkbox-wrap {
1862
background: rgba(255, 255, 255, 0.9);
1863
height: 30px;
152
margin-left: 50px;
153
padding-left: 15px;
154
}
155
+ #buddypress ul.activity-list li.activity-item .activity-comments .rtmedia-uploader-div .rtm-plupload-list .plupload_queue_li {
156
+ padding: 5px;
157
+ }
158
+ #buddypress ul.activity-list li.activity-item .activity-comments .rtmedia-uploader-div .rtm-plupload-list .rtm-upload-edit-desc {
159
+ background: #fff;
160
+ border: solid 1px #ccc;
161
+ }
162
163
#buddypress form#whats-new-form #whats-new-content.active #whats-new-options[style] #whats-new-post-in-box {
164
margin-top: 0;
267
#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title {
268
min-width: 100%;
269
margin-top: 1px;
270
+ display: block;
271
}
272
273
.rtm-plupload-list:empty {
1193
min-height: 200px;
1194
min-width: 200px;
1195
}
1196
+ .mfp-content .rtm-lightbox-container .rtm-plupload-list .rtm-upload-edit-desc {
1197
+ background: #fff;
1198
+ min-height: 70px;
1199
+ width: 100px;
1200
+ }
1201
.mfp-content .rtm-single-meta {
1202
background: #FFFFFF;
1203
overflow: hidden;
1728
border-bottom: 0;
1729
padding-bottom: 0;
1730
}
1731
+ #buddypress .activity #activity-stream li.plupload_queue_li {
1732
+ padding: 5px;
1733
+ }
1734
+ #buddypress .activity #activity-stream li.plupload_queue_li .plupload_file_name .rtm-upload-edit-desc-wrapper textarea {
1735
+ width: 100px;
1736
+ }
1737
1738
.rtmedia-activity-container .rtmedia-item-actions {
1739
display: none;
1877
display: initial;
1878
}
1879
1880
+ .mejs-poster.mejs-layer {
1881
+ height: 0 !important;
1882
+ }
1883
+
1884
+ .bp-legacy #buddypress #activity-stream .rtmedia-item-title {
1885
+ margin: 0px;
1886
+ }
1887
+ .bp-legacy #buddypress #activity-stream .rtmedia-item-title p {
1888
+ margin: 0px;
1889
+ }
1890
+ .bp-legacy #buddypress #activity-stream .media-type-video .rtmedia-item-title {
1891
+ margin: -20px;
1892
+ }
1893
+
1894
.rtmedia-album-edit .rtm-checkbox-wrap {
1895
background: rgba(255, 255, 255, 0.9);
1896
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-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}#buddypress form#whats-new-form #whats-new-content.active #whats-new-options[style] #whats-new-post-in-box{margin-top:0}#whats-new-post-in-box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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{width:150px;text-align:center}.rtmedia-list-item>a .rtmedia-item-thumbnail img{display:inline-block;max-height:inherit}#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;z-index:1;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:15px;margin-bottom:5px;overflow:hidden}.plupload_file_progress{background:#7AD03A;height:100%;font-size:10px;line-height:15px;text-align:center;word-wrap:initial}.rtm-form .rtm-field-wrap{margin-bottom:20px}#buddypress a.rtm-button-back{padding:3px 10px}#buddypress div.rtmedia-page-no.rtm-page-number a.rtmedia-page-link.button{padding:5px 10px}.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-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{line-height:1.5}.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:3px 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}.rtmedia-actions-before-description>div{margin-bottom:5px}input.imgedit-submit-btn{display:none}.rtmedia-no-media-found,.rtmedia-list-media{min-height:95px}.privacy_message_wrapper{background:rgba(0,0,0,0.95);z-index:999;color:#fff;display:block;position:fixed;width:100%;padding:5px}.privacy_message_wrapper p{margin:20px 25px;width:-webkit-calc( 100% - 100px );width:calc( 100% - 100px );max-width:100%;font-size:85%;text-align:justify;word-wrap:break-word;display:inline-block}.privacy_message_wrapper p a{color:#fff;text-decoration:underline}.privacy_message_wrapper p a:hover{color:#000}.privacy_message_wrapper #close_rtm_privacy_message{margin:0px;float:right;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;display:inline-block;color:inherit;font-size:25px}.privacy_message_wrapper #close_rtm_privacy_message:hover{cursor:pointer}.hide_privacy_wrapper{display:none}.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:40%;margin-left:40%;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:32%}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25%;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:44%}.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 .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-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}#buddypress #rtm-media-options-list .rtm-options form button{font-size:14px}#buddypress #rtm-media-options-list .rtm-options i{line-height:1.7}.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 4px 0 0;padding:7px 0;position:relative}.rtmedia-media{margin:0 auto}.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{height:340px;list-style:none;margin:0;overflow:auto;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}.rt_media_comment_form textarea{display:inline-block;margin-bottom:5px}.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%}#mobile-swipe-overlay{position:absolute;display:none;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(255,255,255,0.7);z-index:15;cursor:pointer}#mobile-swipe-overlay .swipe-icon{position:absolute;top:30%;left:50%;font-size:50px;color:#000;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);width:200px}#mobile-swipe-overlay .swipe-icon img{width:100%}#mobile-swipe-overlay .swipe-tootlip{font-weight:800;position:absolute;padding:20px;top:45%;width:100%;text-align:center}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}.rtmedia-activity-container .rtmedia-list.masonry{list-style:none;padding:0}.rtmedia-activity-container .rtmedia-list.masonry p{display:none}.rtmedia-activity-container .rtmedia-list.masonry:after{content:'';display:block;clear:both}.rtmedia-activity-container .rtmedia-list-item.masonry-brick{display:inline-block;float:left;width:32%;padding:0 !important}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container{min-width:33% !important;margin:0 0 5px 0;width:100% !important}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls{width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-time-total{display:none}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider{width:20%;padding-left:5px}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total{width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-time-loaded{display:none}.rtmedia-activity-container .rtmedia-list-item.masonry-brick img{display:block;max-width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .rtmedia-item-title{display:none}#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}#whats-new-options{opacity:0;display:none}#whats-new-options .rtmedia-uploader-div{opacity:0;display:none;visibility:hidden}.bp-nouveau .activity-update-form .rtmedia-uploader-div{margin-left:8.5%}.bp-nouveau .activity-update-form .rtmedia-plupload-container{width:25%}.bp-nouveau .activity-update-form .rtmedia-upload-terms #rtmedia_upload_terms_conditions{margin-left:20px}.bp-nouveau .activity-update-form #aw-whats-new-submit{margin-top:15px}.ac-form .rtmedia-uploader-div,.rt_media_comment_form .rtmedia-uploader-div{opacity:1;display:block;visibility:visible}#whats-new-options{opacity:0;display:none}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}.rtm-media-type-music .rtmedia-media{width:100%}.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}#item-body .imgedit-settings .imgedit-group-top h2{display:inline-block;margin:0}.rtmedia-container .rtmedia-image-editor-cotnainer label{display:inline-block;float:none;margin-right:0}.rtmedia-container .rtmedia-image-editor-cotnainer .dashicons-editor-help{padding:0;height:auto;margin-top:10px}.rtmedia-container .rtmedia-image-editor-cotnainer .hidden{display:none}.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{margin:0 8px 0 0}.imgedit-crop.disabled:hover{background-position:-9px -31px}.imgedit-crop:hover{background-position:-9px -1px}.imgedit-rleft{margin:0 3px}.imgedit-rleft.disabled:hover{background-position:-46px -31px}.imgedit-rleft:hover{background-position:-46px -1px}.imgedit-rright{margin:0 8px 0 3px}.imgedit-rright.disabled:hover{background-position:-77px -31px}.imgedit-rright:hover{background-position:-77px -1px}.imgedit-flipv{margin:0 3px}.imgedit-flipv.disabled:hover{background-position:-115px -31px}.imgedit-flipv:hover{background-position:-115px -1px}.imgedit-fliph{margin:0 8px 0 3px}.imgedit-fliph.disabled:hover{background-position:-147px -31px}.imgedit-fliph:hover{background-position:-147px -1px}.imgedit-undo{margin:0 3px}.imgedit-undo.disabled:hover{background-position:-184px -31px}.imgedit-undo:hover{background-position:-184px -1px}.imgedit-redo{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}h2.rtm-gallery-title{margin:10px 0}.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.rtm-media-search-enable>*:nth-last-child(2){border-right:none}.rtm-media-options{line-height:1.4;margin-bottom:10px;clear:both}.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}#buddypress .media_search.media_search .search_by{margin-top:3px}.bp-legacy.media #buddypress #item-header-cover-image .user-nicename{margin-bottom:20px}.bp-legacy.media #buddypress div#item-header div#item-header-content ul li,.bp-legacy.media #buddypress div#item-header div#item-header-content ul div{float:left;margin:2px 10px}.bp-legacy.media #buddypress div#item-header div#item-header-content button,.bp-legacy.media #buddypress div#item-header div#item-header-content a{background:#fff;border:1px solid #ccc;color:#767676;font-size:small;cursor:pointer;outline:none;padding:4px 10px;text-align:center;text-decoration:none}.bp-legacy.media #buddypress div#item-header div#item-header-content button:hover,.bp-legacy.media #buddypress div#item-header div#item-header-content a:hover{background:#ededed;border:1px solid #bbb;color:#555;outline:none}.bp-nouveau.media .entry-title{font-size:34px;font-weight:inherit;margin-bottom:0}.bp-nouveau.media .entry-title a{color:#767676}.bp-nouveau.media #buddypress #item-header-cover-image .user-nicename{margin-top:15px;margin-bottom:30px}.bp-nouveau.media #buddypress div#item-header div#item-header-content ul li,.bp-nouveau.media #buddypress div#item-header div#item-header-content ul div{float:left;margin:2px 10px}.bp-nouveau.media #buddypress div#item-header div#item-header-content button,.bp-nouveau.media #buddypress div#item-header div#item-header-content a{background:#fff;border-color:#ccc;border-style:solid;border-width:1px;color:#555;cursor:pointer;font-size:inherit;font-weight:400;outline:none;padding:0.3em 0.5em;text-align:center;text-decoration:none;width:auto}.bp-nouveau.media #buddypress div#item-header div#item-header-content button:hover,.bp-nouveau.media #buddypress div#item-header div#item-header-content a:hover{background:#ededed;border-color:#999999;color:#333;outline:none;text-decoration:none}.media_search.media_search{float:right;border:1px solid #ccc;margin-left:5px;padding:3px 0}.media_search.media_search .media_search_input{width:200px;outline:0;max-width:200px;margin:0;box-shadow:none;padding:5px 6px;border:none;background:transparent;float:left;max-height:30px}.media_search.media_search #media_fatch_loader.load{float:left;width:20px;height:30px;position:relative}.media_search.media_search #media_fatch_loader.load:before{content:'';border-radius:50%;border:1px solid #aaa;border-top-color:rgba(255,255,255,0.9);animation:spinner .8s linear infinite;-webkit-animation:spinner .8s linear infinite;position:absolute;width:15px;height:15px;top:24%}.media_search.media_search .search_option{padding:0;background:transparent;color:#000;margin-bottom:0;line-height:1;border:none}.media_search.media_search .media_search_remove.search_option{display:none}.media_search.media_search .media_search_remove.search_option i{margin-top:4px}.media_search.media_search .search_by{background:transparent;margin-top:3px;float:left;width:auto;margin-bottom:0;height:auto;padding-top:0;padding-bottom:0}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}.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 #item-body{padding:0 20px}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/mejs-controls.png") no-repeat}#buddypress .mejs-controls .mejs-play>button{background-position:0 0}#buddypress .mejs-controls .mejs-pause>button{background-position:-20px 0}#buddypress .mejs-controls .mejs-unmute>button{background-position:-40px 0}#buddypress .mejs-controls .mejs-mute>button{background-position:-60px 0}#buddypress .mejs-controls .mejs-fullscreen-button>button{background-position:-80px 0}#buddypress .mejs-controls .mejs-unfullscreen>button{background-position:-100px 0}#buddypress .mejs-controls .mejs-replay>button{background-position:-160px 0}.mejs-container .mejs-controls .mejs-time{padding:15px 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:-webkit-box;display:-ms-flexbox;display:flex;table-layout:fixed;width:100%;min-height:473px}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:-webkit-box;display:-ms-flexbox;display:flex;width:66.6667%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfp-content .rtm-single-meta{display:block;width:33.3333%;padding:20px}.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}#buddypress ul.activity-list li.activity-item .activity-comments .rtmedia-uploader-div .rtm-plupload-list .plupload_queue_li{padding:5px}#buddypress ul.activity-list li.activity-item .activity-comments .rtmedia-uploader-div .rtm-plupload-list .rtm-upload-edit-desc{background:#fff;border:solid 1px #ccc}#buddypress form#whats-new-form #whats-new-content.active #whats-new-options[style] #whats-new-post-in-box{margin-top:0}#whats-new-post-in-box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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{width:150px;text-align:center}.rtmedia-list-item>a .rtmedia-item-thumbnail img{display:inline-block;max-height:inherit}#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;z-index:1;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;display:block}.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:15px;margin-bottom:5px;overflow:hidden}.plupload_file_progress{background:#7AD03A;height:100%;font-size:10px;line-height:15px;text-align:center;word-wrap:initial}.rtm-form .rtm-field-wrap{margin-bottom:20px}#buddypress a.rtm-button-back{padding:3px 10px}#buddypress div.rtmedia-page-no.rtm-page-number a.rtmedia-page-link.button{padding:5px 10px}.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-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{line-height:1.5}.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:3px 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}.rtmedia-actions-before-description>div{margin-bottom:5px}input.imgedit-submit-btn{display:none}.rtmedia-no-media-found,.rtmedia-list-media{min-height:95px}.privacy_message_wrapper{background:rgba(0,0,0,0.95);z-index:999;color:#fff;display:block;position:fixed;width:100%;padding:5px}.privacy_message_wrapper p{margin:20px 25px;width:-webkit-calc( 100% - 100px );width:calc( 100% - 100px );max-width:100%;font-size:85%;text-align:justify;word-wrap:break-word;display:inline-block}.privacy_message_wrapper p a{color:#fff;text-decoration:underline}.privacy_message_wrapper p a:hover{color:#000}.privacy_message_wrapper #close_rtm_privacy_message{margin:0px;float:right;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;display:inline-block;color:inherit;font-size:25px}.privacy_message_wrapper #close_rtm_privacy_message:hover{cursor:pointer}.hide_privacy_wrapper{display:none}.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:40%;margin-left:40%;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:32%}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25%;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:44%}.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-lightbox-container .rtm-plupload-list .rtm-upload-edit-desc{background:#fff;min-height:70px;width:100px}.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 .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-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}#buddypress #rtm-media-options-list .rtm-options form button{font-size:14px}#buddypress #rtm-media-options-list .rtm-options i{line-height:1.7}.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 4px 0 0;padding:7px 0;position:relative}.rtmedia-media{margin:0 auto}.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{height:340px;list-style:none;margin:0;overflow:auto;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}.rt_media_comment_form textarea{display:inline-block;margin-bottom:5px}.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%}#mobile-swipe-overlay{position:absolute;display:none;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(255,255,255,0.7);z-index:15;cursor:pointer}#mobile-swipe-overlay .swipe-icon{position:absolute;top:30%;left:50%;font-size:50px;color:#000;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);width:200px}#mobile-swipe-overlay .swipe-icon img{width:100%}#mobile-swipe-overlay .swipe-tootlip{font-weight:800;position:absolute;padding:20px;top:45%;width:100%;text-align:center}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}.rtmedia-activity-container .rtmedia-list.masonry{list-style:none;padding:0}.rtmedia-activity-container .rtmedia-list.masonry p{display:none}.rtmedia-activity-container .rtmedia-list.masonry:after{content:'';display:block;clear:both}.rtmedia-activity-container .rtmedia-list-item.masonry-brick{display:inline-block;float:left;width:32%;padding:0 !important}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container{min-width:33% !important;margin:0 0 5px 0;width:100% !important}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls{width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-time-total{display:none}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider{width:20%;padding-left:5px}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total{width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-time-loaded{display:none}.rtmedia-activity-container .rtmedia-list-item.masonry-brick img{display:block;max-width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .rtmedia-item-title{display:none}#buddypress ul.rtmedia-list li{border-bottom:0;padding-bottom:0}#buddypress .activity #activity-stream li.plupload_queue_li{padding:5px}#buddypress .activity #activity-stream li.plupload_queue_li .plupload_file_name .rtm-upload-edit-desc-wrapper textarea{width:100px}.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}#whats-new-options{opacity:0;display:none}#whats-new-options .rtmedia-uploader-div{opacity:0;display:none;visibility:hidden}.bp-nouveau .activity-update-form .rtmedia-uploader-div{margin-left:8.5%}.bp-nouveau .activity-update-form .rtmedia-plupload-container{width:25%}.bp-nouveau .activity-update-form .rtmedia-upload-terms #rtmedia_upload_terms_conditions{margin-left:20px}.bp-nouveau .activity-update-form #aw-whats-new-submit{margin-top:15px}.ac-form .rtmedia-uploader-div,.rt_media_comment_form .rtmedia-uploader-div{opacity:1;display:block;visibility:visible}#whats-new-options{opacity:0;display:none}a.rtmedia-comment-link{display:none}a.rtmedia-comment-link.rtmedia-comments-link{display:initial}.mejs-poster.mejs-layer{height:0 !important}.bp-legacy #buddypress #activity-stream .rtmedia-item-title{margin:0px}.bp-legacy #buddypress #activity-stream .rtmedia-item-title p{margin:0px}.bp-legacy #buddypress #activity-stream .media-type-video .rtmedia-item-title{margin:-20px}.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}.rtm-media-type-music .rtmedia-media{width:100%}.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}#item-body .imgedit-settings .imgedit-group-top h2{display:inline-block;margin:0}.rtmedia-container .rtmedia-image-editor-cotnainer label{display:inline-block;float:none;margin-right:0}.rtmedia-container .rtmedia-image-editor-cotnainer .dashicons-editor-help{padding:0;height:auto;margin-top:10px}.rtmedia-container .rtmedia-image-editor-cotnainer .hidden{display:none}.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{margin:0 8px 0 0}.imgedit-crop.disabled:hover{background-position:-9px -31px}.imgedit-crop:hover{background-position:-9px -1px}.imgedit-rleft{margin:0 3px}.imgedit-rleft.disabled:hover{background-position:-46px -31px}.imgedit-rleft:hover{background-position:-46px -1px}.imgedit-rright{margin:0 8px 0 3px}.imgedit-rright.disabled:hover{background-position:-77px -31px}.imgedit-rright:hover{background-position:-77px -1px}.imgedit-flipv{margin:0 3px}.imgedit-flipv.disabled:hover{background-position:-115px -31px}.imgedit-flipv:hover{background-position:-115px -1px}.imgedit-fliph{margin:0 8px 0 3px}.imgedit-fliph.disabled:hover{background-position:-147px -31px}.imgedit-fliph:hover{background-position:-147px -1px}.imgedit-undo{margin:0 3px}.imgedit-undo.disabled:hover{background-position:-184px -31px}.imgedit-undo:hover{background-position:-184px -1px}.imgedit-redo{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}h2.rtm-gallery-title{margin:10px 0}.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.rtm-media-search-enable>*:nth-last-child(2){border-right:none}.rtm-media-options{line-height:1.4;margin-bottom:10px;clear:both}.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}#buddypress .media_search.media_search .search_by{margin-top:3px}.bp-legacy.media #buddypress #item-header-cover-image .user-nicename{margin-bottom:20px}.bp-legacy.media #buddypress div#item-header div#item-header-content ul li,.bp-legacy.media #buddypress div#item-header div#item-header-content ul div{float:left;margin:2px 10px}.bp-legacy.media #buddypress div#item-header div#item-header-content button,.bp-legacy.media #buddypress div#item-header div#item-header-content a{background:#fff;border:1px solid #ccc;color:#767676;font-size:small;cursor:pointer;outline:none;padding:4px 10px;text-align:center;text-decoration:none}.bp-legacy.media #buddypress div#item-header div#item-header-content button:hover,.bp-legacy.media #buddypress div#item-header div#item-header-content a:hover{background:#ededed;border:1px solid #bbb;color:#555;outline:none}.bp-nouveau.media .entry-title{font-size:34px;font-weight:inherit;margin-bottom:0}.bp-nouveau.media .entry-title a{color:#767676}.bp-nouveau.media #buddypress #item-header-cover-image .user-nicename{margin-top:15px;margin-bottom:30px}.bp-nouveau.media #buddypress div#item-header div#item-header-content ul li,.bp-nouveau.media #buddypress div#item-header div#item-header-content ul div{float:left;margin:2px 10px}.bp-nouveau.media #buddypress div#item-header div#item-header-content button,.bp-nouveau.media #buddypress div#item-header div#item-header-content a{background:#fff;border-color:#ccc;border-style:solid;border-width:1px;color:#555;cursor:pointer;font-size:inherit;font-weight:400;outline:none;padding:0.3em 0.5em;text-align:center;text-decoration:none;width:auto}.bp-nouveau.media #buddypress div#item-header div#item-header-content button:hover,.bp-nouveau.media #buddypress div#item-header div#item-header-content a:hover{background:#ededed;border-color:#999999;color:#333;outline:none;text-decoration:none}.media_search.media_search{float:right;border:1px solid #ccc;margin-left:5px;padding:3px 0}.media_search.media_search .media_search_input{width:200px;outline:0;max-width:200px;margin:0;box-shadow:none;padding:5px 6px;border:none;background:transparent;float:left;max-height:30px}.media_search.media_search #media_fatch_loader.load{float:left;width:20px;height:30px;position:relative}.media_search.media_search #media_fatch_loader.load:before{content:'';border-radius:50%;border:1px solid #aaa;border-top-color:rgba(255,255,255,0.9);animation:spinner .8s linear infinite;-webkit-animation:spinner .8s linear infinite;position:absolute;width:15px;height:15px;top:24%}.media_search.media_search .search_option{padding:0;background:transparent;color:#000;margin-bottom:0;line-height:1;border:none}.media_search.media_search .media_search_remove.search_option{display:none}.media_search.media_search .media_search_remove.search_option i{margin-top:4px}.media_search.media_search .search_by{background:transparent;margin-top:3px;float:left;width:auto;margin-bottom:0;height:auto;padding-top:0;padding-bottom:0}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}.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 #item-body{padding:0 20px}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/mejs-controls.png") no-repeat}#buddypress .mejs-controls .mejs-play>button{background-position:0 0}#buddypress .mejs-controls .mejs-pause>button{background-position:-20px 0}#buddypress .mejs-controls .mejs-unmute>button{background-position:-40px 0}#buddypress .mejs-controls .mejs-mute>button{background-position:-60px 0}#buddypress .mejs-controls .mejs-fullscreen-button>button{background-position:-80px 0}#buddypress .mejs-controls .mejs-unfullscreen>button{background-position:-100px 0}#buddypress .mejs-controls .mejs-replay>button{background-position:-160px 0}.mejs-container .mejs-controls .mejs-time{padding:15px 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:-webkit-box;display:-ms-flexbox;display:flex;table-layout:fixed;width:100%;min-height:473px}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:-webkit-box;display:-ms-flexbox;display:flex;width:66.6667%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfp-content .rtm-single-meta{display:block;width:33.3333%;padding:20px}.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
@@ -73,12 +73,33 @@
73
74
}
75
76
- // remove border and padding
77
- #buddypress ul.rtmedia-list li {
78
- border-bottom: 0;
79
- padding-bottom: 0;
80
}
81
82
// hide unnecessory div
83
.rtmedia-activity-container {
84
.rtmedia-item-actions {
@@ -252,3 +273,28 @@ a.rtmedia-comment-link{
252
a.rtmedia-comment-link.rtmedia-comments-link{
253
display: initial;
254
}
73
74
}
75
76
+ #buddypress {
77
+ // Remove border and padding.
78
+ ul.rtmedia-list {
79
+ li {
80
+ border-bottom: 0;
81
+ padding-bottom: 0;
82
+ }
83
+ }
84
+
85
+ // Fix UI for media pl-upload preview.
86
+ .activity {
87
+ #activity-stream {
88
+ li.plupload_queue_li {
89
+ padding: 5px;
90
+ .plupload_file_name {
91
+ .rtm-upload-edit-desc-wrapper{
92
+ textarea {
93
+ width: 100px;
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
}
101
102
+
103
// hide unnecessory div
104
.rtmedia-activity-container {
105
.rtmedia-item-actions {
273
a.rtmedia-comment-link.rtmedia-comments-link{
274
display: initial;
275
}
276
+
277
+ // MediaElement.js poster size fix.
278
+ .mejs-poster.mejs-layer {
279
+ height: 0!important;
280
+ }
281
+
282
+ // Media title fix on legacy.
283
+ .bp-legacy {
284
+ #buddypress {
285
+ #activity-stream {
286
+ .rtmedia-item-title{
287
+ margin: 0px;
288
+ p {
289
+ margin : 0px;
290
+ }
291
+ }
292
+
293
+ .media-type-video {
294
+ .rtmedia-item-title{
295
+ margin: -20px;
296
+ }
297
+ }
298
+ }
299
+ }
300
+ }
app/assets/css/sass/_buddypress.scss CHANGED
@@ -74,6 +74,16 @@ body.media.buddypress {
74
color: #767676;
75
margin-left: 50px;
76
padding-left: 15px;
77
}
78
}
79
}
74
color: #767676;
75
margin-left: 50px;
76
padding-left: 15px;
77
+
78
+ .rtm-plupload-list {
79
+ .plupload_queue_li {
80
+ padding: 5px;
81
+ }
82
+ .rtm-upload-edit-desc {
83
+ background: #fff;
84
+ border : solid 1px #ccc;
85
+ }
86
+ }
87
}
88
}
89
}
app/assets/css/sass/_popup.scss CHANGED
@@ -30,6 +30,14 @@
30
min-width: 200px;
31
}
32
}
33
}
34
35
.rtm-single-meta {
30
min-width: 200px;
31
}
32
}
33
+
34
+ .rtm-plupload-list {
35
+ .rtm-upload-edit-desc {
36
+ background: #fff;
37
+ min-height: 70px;
38
+ width: 100px;
39
+ }
40
+ }
41
}
42
43
.rtm-single-meta {
app/assets/css/sass/_rtm.scss CHANGED
@@ -111,6 +111,7 @@ form .rtmedia-container .rtm-plupload-list,
111
input.rtm-upload-edit-title {
112
min-width: 100%;
113
margin-top: 1px;
114
}
115
}
116
}
111
input.rtm-upload-edit-title {
112
min-width: 100%;
113
margin-top: 1px;
114
+ display: block;
115
}
116
}
117
}
app/assets/js/admin-upload-terms.min.js CHANGED
@@ -3,4 +3,4 @@
3
* @package rtMedia
4
*/
5
6
- jQuery(document).ready(function(a){function b(a,b){var c=jQuery(a);if(c.focus(),c.css("border-color","red"),c.parent().length>0&&"error_msg"!==c.parent().attr("class")){var d=jQuery("<span />").attr("style","display:block").addClass("error_msg").html(b);c.after(d)}return return_code=!1,!1}function c(){!0===d.prop("checked")||!0===e.prop("checked")?(f.closest(".form-table").slideDown(),g.closest(".form-table").slideDown(),h.closest(".form-table").slideDown()):(f.closest(".form-table").slideUp(),g.closest(".form-table").slideUp(),h.closest(".form-table").slideUp()),!0===i.prop("checked")?j.closest(".form-table").slideDown():j.closest(".form-table").slideUp()}var d=jQuery('input[name^="rtmedia-options[general_enable_upload_terms]"]'),e=jQuery('input[name^="rtmedia-options[activity_enable_upload_terms]"]'),f=jQuery('input[name^="rtmedia-options[general_upload_terms_page_link]"]'),g=jQuery('input[name^="rtmedia-options[general_upload_terms_message]"]'),h=jQuery('input[name^="rtmedia-options[general_upload_terms_error_message]"]'),i=jQuery('input[name^="rtmedia-options[general_upload_terms_show_pricacy_message]"]'),j=jQuery('textarea[name^="rtmedia-options[general_upload_terms_privacy_message]"]');c(),jQuery('input[name^="rtmedia-options[general_enable_upload_terms]"], input[name^="rtmedia-options[activity_enable_upload_terms]"], input[name^="rtmedia-options[general_upload_terms_show_pricacy_message]"]').change(function(){c()}),jQuery("#bp-media-settings-boxes").on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(a){if(d.length>0&&void 0!==d||e.length>0&&"string"!==e){var c="";if(!0===d.prop("checked")||!0===e.prop("checked")){if(jQuery(".error_msg").remove(),jQuery(".rtm-form-text").css("border-color","#ddd"),!/^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?#x2F;i.test(f.val()))return c+=rtm_upload_terms_error_msgs.valid_url,b(f,c);if(""===g.val().trim())return c+=rtm_upload_terms_error_msgs.terms_msg,b(g,c);if(""===h.val().trim())return c+=rtm_upload_terms_error_msgs.error_msg,b(h,c)}}if(i.length>0&&void 0!==i){var c="";if(i.prop("checked")&&(jQuery(".error_msg").remove(),""==j.val().trim()))return c+=rtm_upload_terms_error_msgs.privacy_msg,b(j,c)}})});
3
* @package rtMedia
4
*/
5
6
+ jQuery(document).ready(function(e){var t=jQuery('input[name^="rtmedia-options[general_enable_upload_terms]"]'),s=jQuery('input[name^="rtmedia-options[activity_enable_upload_terms]"]'),a=jQuery('input[name^="rtmedia-options[general_upload_terms_page_link]"]'),o=jQuery('input[name^="rtmedia-options[general_upload_terms_message]"]'),m=jQuery('input[name^="rtmedia-options[general_upload_terms_error_message]"]'),i=jQuery('input[name^="rtmedia-options[general_upload_terms_show_pricacy_message]"]'),n=jQuery('textarea[name^="rtmedia-options[general_upload_terms_privacy_message]"]');function l(e,r){var t=jQuery(e);if(t.focus(),t.css("border-color","red"),0<t.parent().length&&"error_msg"!==t.parent().attr("class")){var s=jQuery("<span />").attr("style","display:block").addClass("error_msg").html(r);t.after(s)}return return_code=!1}function r(){!0===t.prop("checked")||!0===s.prop("checked")?(a.closest(".form-table").slideDown(),o.closest(".form-table").slideDown(),m.closest(".form-table").slideDown()):(a.closest(".form-table").slideUp(),o.closest(".form-table").slideUp(),m.closest(".form-table").slideUp()),!0===i.prop("checked")?n.closest(".form-table").slideDown():n.closest(".form-table").slideUp()}r(),jQuery('input[name^="rtmedia-options[general_enable_upload_terms]"], input[name^="rtmedia-options[activity_enable_upload_terms]"], input[name^="rtmedia-options[general_upload_terms_show_pricacy_message]"]').change(function(){r()}),jQuery("#bp-media-settings-boxes").on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(e){if(0<t.length&&void 0!==t||0<s.length&&"string"!==s){var r="";if(!0===t.prop("checked")||!0===s.prop("checked")){if(jQuery(".error_msg").remove(),jQuery(".rtm-form-text").css("border-color","#ddd"),!/^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?#x2F;i.test(a.val()))return r+=rtm_upload_terms_error_msgs.valid_url,l(a,r);if(""===o.val().trim())return r+=rtm_upload_terms_error_msgs.terms_msg,l(o,r);if(""===m.val().trim())return r+=rtm_upload_terms_error_msgs.error_msg,l(m,r)}}if(0<i.length&&void 0!==i){r="";if(i.prop("checked")&&(jQuery(".error_msg").remove(),""==n.val().trim()))return r+=rtm_upload_terms_error_msgs.privacy_msg,l(n,r)}})});
app/assets/js/rtMedia.backbone.js CHANGED
@@ -1154,6 +1154,9 @@ jQuery( document ).ready( function( $ ) {
1154
objUploadView.uploader.bind( 'FilesAdded', function( upl, rfiles ) {
1155
//$("#aw-whats-new-submit").attr('disabled', 'disabled');
1156
1157
$.each( rfiles, function( i, file ) {
1158
1159
//Set file title along with file
@@ -1931,7 +1934,13 @@ function rtmedia_selected_file_list( plupload, file, uploader, error, comment_me
1931
rtmedia_plupload_file += '</li>';
1932
1933
jQuery( rtmedia_plupload_file ).appendTo( rtmedia_uploader_filelist );
1934
- jQuery( '#whats-new' ).focus();
1935
var type = file.type;
1936
var media_title = file.name;
1937
var ext = media_title.substring( media_title.lastIndexOf( '.' ) + 1, media_title.length );
@@ -1963,7 +1972,17 @@ function rtmedia_selected_file_list( plupload, file, uploader, error, comment_me
1963
} else {
1964
jQuery.each( rtmedia_exteansions, function( key, value ) {
1965
if ( value.indexOf( ext ) >= 0 ) {
1966
- jQuery( '<img src="' + rtmedia_media_thumbs[ key ] + '" />' ).appendTo( '#file_thumb_' + file.id );
1967
1968
return false;
1969
}
@@ -2449,7 +2468,6 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
2449
while (upl.files.length > 1) {
2450
upl.removeFile(upl.files[0]);
2451
}
2452
-
2453
/* remove the last file that has being added to the comment media */
2454
commentObj[ widget_id ].upload_remove_array = [ ];
2455
jQuery( '#rtmedia_uploader_filelist-'+widget_id+' li.plupload_queue_li' ).remove();
@@ -2592,11 +2610,8 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
2592
rtMediaHook.call( 'rtmedia_js_after_files_added', [ upl, rfiles ] );
2593
2594
if ( 'undefined' != typeof rtmedia_direct_upload_enabled && '1' == rtmedia_direct_upload_enabled ) {
2595
- var allow_upload = rtMediaHook.call( 'rtmedia_js_upload_file', true );
2596
- if ( false == allow_upload ) {
2597
- return false;
2598
- }
2599
2600
/* when direct upload is enable */
2601
jQuery( '.'+rtmedia_comment_media_submit+widget_id ).trigger( 'click' );
2602
}
@@ -2655,7 +2670,7 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
2655
2656
ext = tmp_array[tmp_array.length - 1];
2657
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 ) ) ) {
2658
- rtmedia_selected_file_list( plupload, err.file, up, err );
2659
}
2660
}
2661
} else {
@@ -2665,7 +2680,6 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
2665
2666
rtmedia_selected_file_list( plupload, err.file, '', err, widget_id );
2667
}
2668
-
2669
jQuery( '.plupload_delete-'+widget_id ).on( 'click', function( e ) {
2670
e.preventDefault();
2671
1154
objUploadView.uploader.bind( 'FilesAdded', function( upl, rfiles ) {
1155
//$("#aw-whats-new-submit").attr('disabled', 'disabled');
1156
1157
+ //Remove focusout when media is added in activity post.
1158
+ jQuery( '#whats-new-form' ).unbind( 'focusout' );
1159
+
1160
$.each( rfiles, function( i, file ) {
1161
1162
//Set file title along with file
1934
rtmedia_plupload_file += '</li>';
1935
1936
jQuery( rtmedia_plupload_file ).appendTo( rtmedia_uploader_filelist );
1937
+
1938
+ if ( comment_media_id ) {
1939
+ jQuery( '#rtmedia-comment-media-upload-' + comment_media_id ).focus();
1940
+ } else {
1941
+ jQuery( '#whats-new' ).focus();
1942
+ }
1943
+
1944
var type = file.type;
1945
var media_title = file.name;
1946
var ext = media_title.substring( media_title.lastIndexOf( '.' ) + 1, media_title.length );
1972
} else {
1973
jQuery.each( rtmedia_exteansions, function( key, value ) {
1974
if ( value.indexOf( ext ) >= 0 ) {
1975
+
1976
+ var media_thumbnail = '';
1977
+
1978
+ // Below condition is to show docs and files addon thumbnail.
1979
+ if ( rtmedia_media_thumbs[ ext ] ) {
1980
+ media_thumbnail = rtmedia_media_thumbs[ ext ];
1981
+ } else {
1982
+ media_thumbnail = rtmedia_media_thumbs[ key ];
1983
+ }
1984
+
1985
+ jQuery( '<img />', { src: media_thumbnail } ).appendTo( '#file_thumb_' + file.id );
1986
1987
return false;
1988
}
2468
while (upl.files.length > 1) {
2469
upl.removeFile(upl.files[0]);
2470
}
2471
/* remove the last file that has being added to the comment media */
2472
commentObj[ widget_id ].upload_remove_array = [ ];
2473
jQuery( '#rtmedia_uploader_filelist-'+widget_id+' li.plupload_queue_li' ).remove();
2610
rtMediaHook.call( 'rtmedia_js_after_files_added', [ upl, rfiles ] );
2611
2612
if ( 'undefined' != typeof rtmedia_direct_upload_enabled && '1' == rtmedia_direct_upload_enabled ) {
2613
2614
+ $( '.rtmedia-comment-media-submit-' + widget_id ).focus();
2615
/* when direct upload is enable */
2616
jQuery( '.'+rtmedia_comment_media_submit+widget_id ).trigger( 'click' );
2617
}
2670
2671
ext = tmp_array[tmp_array.length - 1];
2672
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 ) ) ) {
2673
+ rtmedia_selected_file_list( plupload, err.file, up, err, widget_id );
2674
}
2675
}
2676
} else {
2680
2681
rtmedia_selected_file_list( plupload, err.file, '', err, widget_id );
2682
}
2683
jQuery( '.plupload_delete-'+widget_id ).on( 'click', function( e ) {
2684
e.preventDefault();
2685
app/assets/js/rtm-upload-terms.min.js CHANGED
@@ -3,4 +3,4 @@
3
* @package rtMedia
4
*/
5
6
- function rtp_display_terms_warning(a,b){if(!jQuery(".rt_alert_msg").length){var c=jQuery("<span />").attr("style","color:red; display:block; clear:both;").addClass("rt_alert_msg").empty().append(b);a.after(c)}}function handle_privacy_message(){jQuery("#close_rtm_privacy_message").on("click",function(a){jQuery(".privacy_message_wrapper").fadeOut("slow",function(a){jQuery(".privacy_message_wrapper").remove(),jQuery.cookie("rtm_show_privacy_message","view",{expires:1,path:"/"})})})}"object"==typeof rtMediaHook&&(rtMediaHook.register("rtmedia_js_upload_file",function(a){if(!1===a)return a;var b=jQuery("#rtmedia_upload_terms_conditions");return!(b.length>0&&!b.is(":checked"))||(rtp_display_terms_warning(b.parent(".rtmedia-upload-terms"),rtmedia_upload_terms_data.message),!1)}),rtMediaHook.register("rtmedia_js_before_activity_added",function(a){var b,c,d=jQuery("#aw-whats-new-submit");if(void 0!==a&&!1!==a&&void 0!==a.src&&"activity"===a.src?(c=jQuery("#whats-new-form"),b=c.find("#rtmedia_upload_terms_conditions")):b=jQuery("#rtmedia_upload_terms_conditions"),b.length>0){if(b.removeAttr("disabled"),0==a)return d.removeAttr("disabled"),d.removeClass("loading"),a;if(!b.is(":checked"))return d.removeAttr("disabled"),d.removeClass("loading"),void 0!==a&&!1!==a&&void 0!==a.src&&"activity"===a.src?rtp_display_terms_warning(c.find(".rtmedia-upload-terms"),rtmedia_upload_terms_data.message):rtp_display_terms_warning(b.parent(".rtmedia-upload-terms"),rtmedia_upload_terms_data.message),!1}return!0}),rtMediaHook.register("rtmedia_js_after_file_upload",function(){var a=jQuery("#rtmedia-upload-container #rtmedia_upload_terms_conditions");return a.length>0&&(a.removeAttr("checked"),jQuery(".rt_alert_msg").remove()),!0}),rtMediaHook.register("rtmedia_js_after_activity_added",function(){var a=$("#rtmedia_upload_terms_conditions");a&&a.is(":checked")&&a.prop("checked",!1)})),jQuery(document).ready(function(){var a=jQuery("#rtmedia_upload_terms_conditions");a.length&&a.on("click",function(){var b=jQuery(".start-media-upload");if(b.length&&b.focus(),a.is(":checked")){var c=a.siblings("span.rt_alert_msg");0<c.length?c.remove():a.parent().siblings("span.rt_alert_msg").remove()}else rtp_display_terms_warning(a.parent(".rtmedia-upload-terms"),rtmedia_upload_terms_data.message);if("undefined"!=typeof rtmedia_direct_upload_enabled&&"1"==rtmedia_direct_upload_enabled){var d=jQuery("#aw-whats-new-submit");d.length>0?(""!==jQuery("#whats-new").val().trim()||jQuery("#rtmedia_uploader_filelist").children("li").length>0)&&d.trigger("click"):jQuery(".start-media-upload").trigger("click")}})}),jQuery(document).ready(function(){handle_privacy_message()});
3
* @package rtMedia
4
*/
5
6
+ function rtp_display_terms_warning(e,r){if(!jQuery(".rt_alert_msg").length){var t=jQuery("<span />").attr("style","color:red; display:block; clear:both;").addClass("rt_alert_msg").empty().append(r);e.after(t)}}function handle_privacy_message(){jQuery("#close_rtm_privacy_message").on("click",function(e){jQuery(".privacy_message_wrapper").fadeOut("slow",function(e){jQuery(".privacy_message_wrapper").remove(),jQuery.cookie("rtm_show_privacy_message","view",{expires:1,path:"/"})})})}"object"==typeof rtMediaHook&&(rtMediaHook.register("rtmedia_js_upload_file",function(e){if(!1===e)return e;var r=jQuery("#rtmedia_upload_terms_conditions");return!(0<r.length&&!r.is(":checked"))||(rtp_display_terms_warning(r.parent(".rtmedia-upload-terms"),rtmedia_upload_terms_data.message),!1)}),rtMediaHook.register("rtmedia_js_before_activity_added",function(e){var r,t,a=jQuery("#aw-whats-new-submit");if(0<(r=void 0!==e&&!1!==e&&void 0!==e.src&&"activity"===e.src?(t=jQuery("#whats-new-form")).find("#rtmedia_upload_terms_conditions"):jQuery("#rtmedia_upload_terms_conditions")).length){if(r.removeAttr("disabled"),0==e)return a.removeAttr("disabled"),a.removeClass("loading"),e;if(!r.is(":checked"))return a.removeAttr("disabled"),a.removeClass("loading"),void 0!==e&&!1!==e&&void 0!==e.src&&"activity"===e.src?rtp_display_terms_warning(t.find(".rtmedia-upload-terms"),rtmedia_upload_terms_data.message):rtp_display_terms_warning(r.parent(".rtmedia-upload-terms"),rtmedia_upload_terms_data.message),!1}return!0}),rtMediaHook.register("rtmedia_js_after_file_upload",function(){var e=jQuery("#rtmedia-upload-container #rtmedia_upload_terms_conditions");return 0<e.length&&(e.removeAttr("checked"),jQuery(".rt_alert_msg").remove()),!0}),rtMediaHook.register("rtmedia_js_after_activity_added",function(){var e=$("#rtmedia_upload_terms_conditions");e&&e.is(":checked")&&e.prop("checked",!1)})),jQuery(document).ready(function(){var a=jQuery("#rtmedia_upload_terms_conditions");a.length&&a.on("click",function(){var e=jQuery(".start-media-upload");if(e.length&&e.focus(),a.is(":checked")){var r=a.siblings("span.rt_alert_msg");0<r.length?r.remove():a.parent().siblings("span.rt_alert_msg").remove()}else rtp_display_terms_warning(a.parent(".rtmedia-upload-terms"),rtmedia_upload_terms_data.message);if("undefined"!=typeof rtmedia_direct_upload_enabled&&"1"==rtmedia_direct_upload_enabled){var t=jQuery("#aw-whats-new-submit");0<t.length?(""!==jQuery("#whats-new").val().trim()||0<jQuery("#rtmedia_uploader_filelist").children("li").length)&&t.trigger("click"):jQuery(".start-media-upload").trigger("click")}})}),jQuery(document).ready(function(){handle_privacy_message()});
app/assets/js/rtmedia.min.js CHANGED
@@ -3,5 +3,4 @@
3
* @package rtMedia
4
*/
5
6
- function apply_rtMagnificPopup(a){jQuery("document").ready(function(b){var c="";if(c="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled){var d,e,f=!1;b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length>0&&b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(a).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",fixedContentPos:!0,fixedBgPos:!0,tLoading:c+" #%curr%...",mainClass:"mfp-img-mobile",preload:[1,3],closeOnBgClick:!0,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:"",preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(a){return a.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){a=jQuery.magnificPopup.instance,1===jQuery(a.items).size()&&jQuery(".mfp-arrow").remove();var a=jQuery.magnificPopup.instance,c=a.currItem.el,g=c.parent();if(g.is("li")||(g=g.parent()),(g.is(":nth-last-child(2)")||g.is(":last-child"))&&g.find("a").hasClass("rtmedia-list-item-a")){g.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&(f||(d=a.ev.children(),f=!0,e=nextpage),jQuery("#rtMedia-galary-next").click())}var h=a.items.length;if(a.index==h-1&&!g.is(":last-child"))return void c.click();var i={};"undefined"!=typeof _wpmejsSettings&&(i.pluginPath=_wpmejsSettings.pluginPath);var j=jQuery(".rtmedia-container .rtmedia-single-meta").height(),k=!1;void 0!==a&&void 0!==a.probablyMobile&&1==a.probablyMobile&&(k=!0),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("autoplay",!0),k&&b(".mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("muted",!1),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,hideVolumeOnTouchDevices:!1,features:["playpause","progress","current","volume","fullscreen"],defaultVideoHeight:270,alwaysShowControls:k,enableAutosize:!0,clickToPlayPause:!0,videoHeight:-1,success:function(a,c){a.addEventListener("loadeddata",function(c){var d=b(a).height(),e=b(window).height(),f=jQuery("div.rtm-ltb-action-container").height(),f=f+50,g=j-f;d>e&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+g+"px !important; transition:0.2s")},!1),k&&b(a).hasClass("wp-video-shortcode")?jQuery("body").on("touchstart",".mejs-overlay-button",function(b){a.paused?a.play():a.pause()}):a.pause()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),"undefined"!=typeof bp&&void 0!==bp.mentions&&void 0!==bp.mentions.users&&(b("#atwho-container #atwho-ground-comment_content").remove(),b("#comment_content").bp_mentions(bp.mentions.users)),rtmedia_reset_video_and_audio_for_popup(),apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container")},open:function(){var a=jQuery(".mfp-bg"),b=jQuery(".mfp-wrap");a.height(a.height()+b.height())},close:function(a){f&&(mfp.ev.empty(),mfp.ev.append(d),nextpage=e,f=!1,nextpage>1&&jQuery("#rtMedia-galary-next").show()),rtmedia_single_page_popup_close()},BeforeChange:function(a){}}})}jQuery(document).ajaxComplete(function(){jQuery("[id^=imgedit-leaving]").filter(function(){var a=jQuery(this).text();jQuery(this).text(a.replace("OK","Save"))})})})}function rtmedia_init_action_dropdown(a){var b,c;jQuery(a+" .click-nav > span,"+a+" .click-nav > div").toggleClass("no-js js"),jQuery(a+" .click-nav .js ul").hide(),jQuery(a+" .click-nav .clicker").click(function(a){b=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),c=jQuery(this).next("ul"),jQuery.each(b,function(a,b){jQuery(b).html()!=c.html()&&jQuery(b).hide()}),jQuery(c).toggle(),a.stopPropagation()})}function bp_media_create_element(a){return!1}function rtmedia_version_compare(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);e<f;e++){if(c[e]&&!d[e]&&parseInt(c[e])>0||parseInt(c[e])>parseInt(d[e]))return!0;if(d[e]&&!c[e]&&parseInt(d[e])>0||parseInt(c[e])<parseInt(d[e]))return!1}return!0}function rtm_is_element_exist(a){return jQuery(a).length>0}function rtm_masonry_reload(a){setTimeout(function(){a.masonry("reload")},250)}function rtm_search_media_text_validation(){""===jQuery("#media_search_input").val()?jQuery("#media_search").css("cursor","not-allowed"):jQuery("#media_search").css("cursor","pointer")}function rtmediaGetParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null==c?"":decodeURIComponent(c[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(a,b,c){var d="rtmedia-success";"warning"==b&&(d="rtmedia-warning");var e=!1;jQuery(".rtmedia-message-container").each(function(a,b){return b=jQuery(b),c&&b.hasClass("rtmedia-empty-comment-error-class")?(b.remove(),e=!0,!1):void 0!==c||b.hasClass("rtmedia-empty-comment-error-class")?void 0:(b.remove(),e=!0,!1)});var f=jQuery("<div>",{title:"Click to dismiss",class:"rtmedia-message-container"+(c?" rtmedia-empty-comment-error-class":""),style:"margin:1em 0;"}),g=jQuery("<span>",{class:d});g.html(a),g.appendTo(f);var h;c?(h=jQuery("#rt_media_comment_form"),jQuery("#comment_content").focus()):void 0===c&&(h=jQuery(".rtmedia-single-media .rtmedia-media"),h.css("opacity","0.2")),h.after(f),e&&(g.css({border:"2px solid #884646"}),setTimeout(function(){g.css({border:"none"})},500)),setTimeout(function(){f.remove(),void 0===c&&h.css("opacity","1")},3e3),f.click(function(){f.remove(),void 0===c&&h.css("opacity","1")})}function rtmedia_gallery_action_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning");jQuery("body").append('<div class="rtmedia-gallery-alert-container"> </div>'),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-gallery-alert-container").remove()},3e3),jQuery(".rtmedia-gallery-message-box").click(function(){jQuery(".rtmedia-gallery-alert-container").remove()})}function rtmedia_activity_masonry(){jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list").masonry({itemSelector:".rtmedia-list-item",gutter:7});var a=0,b=setInterval(function(){a+=1,5===a&&clearInterval(b),jQuery.each(jQuery(".rtmedia-activity-container .rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list"))},1e3)}function get_parameter(a,b){if(!a)return!1;b||(b=window.location.href);var a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),c=a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null!==e&&e[1]}function rtm_upload_terms_activity(){if(jQuery("#rtmedia_upload_terms_conditions").length>0){jQuery("#bp-nouveau-activity-form").on("click","#aw-whats-new-submit",function(a){var b=jQuery("#whats-new-form"),c=b.find("#rtmedia_upload_terms_conditions");if(0!==c.length&&!1===c.prop("checked")&&0===b.find("#message").length){a.preventDefault();var d=b.find(".rtmedia-upload-terms");rtp_display_terms_warning(d,rtmedia_upload_terms_check_terms_message)}});var a=jQuery("#whats-new-form");a.length>0&&jQuery("#whats-new-form, #rtmedia_upload_terms_conditions").on("click",function(b){a.find("input:hidden").each(function(){jQuery(this).prop("disabled",!1)})})}}!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h=function(){},i=!!window.jQuery,j=a(window),k=function(a,c){b.ev.on("mfp"+a+".mfp",c)},l=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},m=function(c,d){b.ev.triggerHandler("mfp"+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},n=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},o=function(){a.magnificPopup.instance||(b=new h,b.init(),a.magnificPopup.instance=b)},p=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};h.prototype={constructor:h,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=p(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(!1===c.isObj){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=l("bg").on("click.mfp",function(){b.close()}),b.wrap=l("wrap").attr("tabindex",-1).on("click.mfp",function(a){b._checkIfClose(a.target)&&b.close()}),b.container=l("container",b.wrap)),b.contentContainer=l("content"),b.st.preloader&&(b.preloader=l("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var o=i[e];o=o.charAt(0).toUpperCase()+o.slice(1),b["init"+o].call(b)}m("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(k("MarkupParse",function(a,b,c,d){c.close_replaceWith=n(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(n())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:j.scrollTop(),position:"absolute"}),(!1===b.st.fixedBgPos||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup.mfp",function(a){27===a.keyCode&&b.close()}),j.on("resize.mfp",function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var p=b.wH=j.height(),q={};if(b.fixedContentPos&&b._hasScrollBar(p)){var r=b._getScrollbarSize();r&&(q.marginRight=r)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):q.overflow="hidden");var s=b.st.mainClass;return b.isIE7&&(s+=" mfp-ie7"),s&&b._addClassToMFP(s),b.updateItemHTML(),m("BuildControls"),a("html").css(q),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP("mfp-ready"),b._setFocus()):b.bgOverlay.addClass("mfp-ready"),d.on("focusin.mfp",b._onFocusIn)},16),b.isOpen=!0,b.updateSize(p),m("Open"),c},close:function(){b.isOpen&&(m("BeforeClose"),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP("mfp-removing"),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){m("Close");var c="mfp-removing mfp-ready ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup.mfp focusin.mfp"),b.ev.off(".mfp"),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&!0!==b.currTemplate[b.currItem.type]||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,m("AfterClose")},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||j.height();b.fixedContentPos||b.wrap.css("height",b.wH),m("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(m("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=!!b.st[d]&&b.st[d].markup;m("FirstMarkupParse",f),b.currTemplate[d]=!f||a(f)}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,m("Change",c),e=c.type,b.container.prepend(b.contentContainer),m("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&!0===b.currTemplate[c]?b.content.find(".mfp-close").length||b.content.append(n()):b.content=a:b.content="",m("BeforeAppend"),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,m("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){if((void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick)||2!==c.which&&!c.ctrlKey&&!c.metaKey){var f=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(b))return!0}else if(j.width()<f)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};m("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass("mfp-prevent-close")){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||j.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return b._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),m("MarkupParse",[b,c,d]),a.each(c,function(a,c){if(void 0===c||!1===c)return!0;if(e=a.split("_"),e.length>1){var d=b.find(".mfp-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(".mfp-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(b,c){return o(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){o();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=i?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),i?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var q,r,s,t=function(){s&&(r.after(s.addClass(q)).detach(),s=null)};a.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push("inline"),k("Close.inline",function(){t()})},getInline:function(c,d){if(t(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(r||(q=e.hiddenClass,r=l(q),q="mfp-"+q),s=f.after(r).detach().removeClass(q)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var u,v=function(){u&&a(document.body).removeClass(u)},w=function(){v(),b.req&&b.req.abort()};a.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push("ajax"),u=b.st.ajax.cursor,k("Close.ajax",w),k("BeforeChange.ajax",w)},getAjax:function(c){u&&a(document.body).addClass(u),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};m("ParseAjax",g),b.appendContent(a(g.data),"ajax"),c.finished=!0,v(),b._setFocus(),setTimeout(function(){b.wrap.addClass("mfp-ready")},16),b.updateStatus("ready"),m("AjaxContentAdded")},error:function(){v(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var x,y=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),k("Open"+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),k("Close"+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),j.off("resize.mfp")}),k("Resize"+d,b.resizeImage),b.isLowIE&&k("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,x&&clearInterval(x),a.isCheckingImgSize=!1,m("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){x&&clearInterval(x),x=setInterval(function(){if(d.naturalWidth>0)return void b._onImageHasSize(a);c>200&&clearInterval(x),c++,3===c?e(10):40===c?e(50):100===c&&e(500)},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,m("ImageLoadComplete")):(e++,e<200?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:y(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(x&&clearInterval(x),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var z,A=function(){return void 0===z&&(z=void 0!==document.createElement("p").style.MozTransform),z};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,h=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},i=function(){b.content.css("visibility","visible")};k("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),!(a=b._getItemToZoom()))return void i();f=h(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){i(),setTimeout(function(){f.remove(),a=f=null,m("ZoomAnimationEnded")},16)},g)},16)}}),k("BeforeClose"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(!(a=b._getItemToZoom()))return;f=h(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),k("Close"+d,function(){b._allowZoom()&&(i(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return!!b.currItem.hasSize&&b.currItem.img},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(i?d.innerHeight():d[0].offsetHeight)-g-f};return A()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var B=function(a){if(b.currTemplate.iframe){var c=b.currTemplate.iframe.find("iframe");c.length&&(a||(c[0].src="//about:blank"),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push("iframe"),k("BeforeChange",function(a,b,c){b!==c&&("iframe"===b?B():"iframe"===c&&B(!0))}),k("Close.iframe",function(){B()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){if(e.indexOf(this.index)>-1)return this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var C=function(a){var c=b.items.length;return a>c-1?a-c:a<0?c+a:a},D=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);if(b.direction=!0,!c||!c.enabled)return!1;f+=" mfp-gallery",k("Open"+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){if(b.items.length>1)return b.next(),!1}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),k("UpdateStatus"+e,function(a,c){c.text&&(c.text=D(c.text,b.currItem.index,b.items.length))}),k("MarkupParse"+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?D(c.tCounter,f.index,g):""}),k("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(l("b",e[0],!1,!0),l("a",e[0],!1,!0),l("b",f[0],!1,!0),l("a",f[0],!1,!0)),b.container.append(e.add(f))}}),k("Change"+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),k("Close"+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})},next:function(){b.direction=!0,b.index=C(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=C(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=C(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),m("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,m("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});a.magnificPopup.registerModule("retina",{options:{replaceSrc:function(a){return a.src.replace(/\.\w+#x2F;,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(k("ImageHasSize.retina",function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),k("ElementParse.retina",function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b="ontouchstart"in window,c=function(){j.off("touchmove"+d+" touchend"+d)},d=".mfpFastClick";a.fn.mfpFastClick=function(e){return a(this).each(function(){var f,g=a(this);if(b){var h,i,k,l,m,n;g.on("touchstart"+d,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],i=m.clientX,k=m.clientY,j.on("touchmove"+d,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-i)>10||Math.abs(m.clientY-k)>10)&&(l=!0,c())}).on("touchend"+d,function(a){c(),l||n>1||(f=!0,a.preventDefault(),clearTimeout(h),h=setTimeout(function(){f=!1},1e3),e())})})}g.on("click"+d,function(){f||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+d+" click"+d),b&&j.off("touchmove"+d+" touchend"+d)}}(),o()}),"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;if(c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick(),!0==("false"!==c.$elem.attr("data-hash"))){var e=b.location.hash;e&&c.$elem.find("li").find('a[href="'+e+'"]').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");d.find("a").on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");if(a(f).removeClass("hide"),1==("false"!==c.$elem.attr("data-hash"))){var g=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(g)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){this.$elem.find("li").find("a").each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var rtMagnificPopup,rtm_masonry_container,comment_media=!1,rtMediaHook={hooks:[],is_break:!1,register:function(a,b){void 0===rtMediaHook.hooks[a]&&(rtMediaHook.hooks[a]=[]),rtMediaHook.hooks[a].push(b)},call:function(a,arguments){if(void 0!==rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](arguments))return rtMediaHook.is_break=!0,!1;return!0}};jQuery("document").ready(function(a){function b(){if(jQuery("#rtmedia-media-view-form").length>0){var a=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(a,{},function(a){})}}function c(){var a=jQuery.magnificPopup.instance,b=a.probablyMobile,c=e("rtmedia-touch-swipe-tooltip");b&&""===c?(jQuery("#mobile-swipe-overlay").show(),jQuery("#mobile-swipe-overlay").on("click",function(a){d("rtmedia-touch-swipe-tooltip",!0,365),jQuery(this).hide(),jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click")}),jQuery("#mobile-swipe-overlay").swipe({swipe:function(a,b,c,e,f,g){d("rtmedia-touch-swipe-tooltip",!0,365),jQuery("#mobile-swipe-overlay").hide(),
7
- jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click")},threshold:0})):jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click"),jQuery(".mfp-arrow-right").on("click",function(b){a.next()}),jQuery(".mfp-arrow-left").on("click",function(b){a.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(b,c,d,e,f){a.next()},swipeRight:function(b,c,d,e,f){a.prev()},threshold:0})}function d(a,b,c){var d=new Date;d.setTime(d.getTime()+24*c*60*60*1e3);var e="expires="+d.toUTCString();document.cookie=a+"="+b+";"+e+";path=/"}function e(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(b))return e.substring(b.length,e.length)}return""}function f(){jQuery(".mfp-arrow-right").hide(),jQuery(".mfp-arrow-left").hide(),jQuery(document).unbind("keydown")}function g(){rtmedia_disable_popup_navigation("#comment_content")}function h(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}jQuery(document).ajaxComplete(function(a,b,c){if("legacy"!==bp_template_pack&&bp_template_pack){var d=get_parameter("action",c.data);"activity_filter"!==d&&"post_update"!==d&&"get_single_activity_content"!==d&&"activity_get_older_updates"!==d||"undefined"==typeof rtmedia_masonry_layout||"true"!==rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!==rtmedia_masonry_layout_activity?"activity_filter"!==d&&"post_update"!==d&&"get_single_activity_content"!==d&&"activity_get_older_updates"!==d||setTimeout(function(){apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),rtmedia_activity_stream_comment_media()},1e3):setTimeout(function(){apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),rtmedia_activity_masonry(),rtmedia_activity_stream_comment_media()},1e3)}}),jQuery(".rtmedia-uploader-div").css({opacity:"1",display:"block",visibility:"visible"}),jQuery(" #whats-new-options ").css({opacity:"1"}),void 0!==a.fn.rtTab&&a(".rtm-tabs").rtTab(),jQuery(".rtmedia-modal-link").length>0&&a(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),a("#rt_media_comment_form").submit(function(b){return""!=a.trim(a("#comment_content").val())||(0==jQuery("#rtmedia-single-media-container").length?rtmedia_gallery_action_alert_message(rtmedia_empty_comment_msg,"warning"):rtmedia_single_media_alert_message(rtmedia_empty_comment_msg,"warning"),!1)}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||void 0===b.data||void 0===b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){"function"==typeof d&&d(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}else if("get_single_activity_content"==b.data.action){var d=b.success;a.success=function(a){"function"==typeof d&&d(a),setTimeout(function(){apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||void 0===b.data||void 0===b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){"function"==typeof d&&d(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,defaultVideoHeight:270}),setTimeout(function(){rtmedia_activity_stream_comment_media()},900),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(a){jQuery(this).toggleClass("unselect-all").toggleClass("select-all"),jQuery(this).attr("title",rtmedia_unselect_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!0)}),jQuery(".rtmedia-list-item").addClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".unselect-all",function(a){jQuery(this).toggleClass("select-all").toggleClass("unselect-all"),jQuery(this).attr("title",rtmedia_select_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!1)}),jQuery(".rtmedia-list-item").removeClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".rtmedia-move",function(a){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(b){if($albumname=jQuery("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$album_description=jQuery("#rtmedia_album_description"),$context=jQuery.trim(jQuery("#rtmedia_album_context").val()),$context_id=jQuery.trim(jQuery("#rtmedia_album_context_id").val()),$privacy=jQuery.trim(jQuery("#rtmedia_select_album_privacy").val()),$create_album_nonce=jQuery.trim(jQuery("#rtmedia_create_album_nonce").val()),""!=$albumname){var c={action:"rtmedia_create_album",name:$albumname,description:$album_description.val(),context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(c.privacy=$privacy),a("#rtmedia_create_new_album").attr("disabled","disabled");var d=a("#rtmedia_create_new_album").html();a("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,c,function(b){if(void 0!==b.album){b=jQuery.trim(b.album);var c=!0;$album_description.val(""),a("#rtmedia_album_name").focus(),jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){if(jQuery(this).attr("value")===$context)return c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,d='<optgroup value="'+$context+'" label="'+a+'"><option value="'+b+'">'+$albumname+"</option></optgroup>";jQuery(this).append(d)}}),jQuery('select.rtmedia-user-album-list option[value="'+b+'"]').prop("selected",!0),jQuery(".rtmedia-create-new-album-container").slideToggle(),jQuery("#rtmedia_album_name").val(""),jQuery("#rtmedia-create-album-modal").append("<div class='rtmedia-success rtmedia-create-album-alert'><b>"+$albumname+"</b>"+rtmedia_album_created_msg+"</div>"),setTimeout(function(){jQuery(".rtmedia-create-album-alert").remove()},4e3),setTimeout(function(){galleryObj.reloadView(),jQuery(".close-reveal-modal").click()},2e3)}else void 0!==b.error?rtmedia_gallery_action_alert_message(b.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");a("#rtmedia_create_new_album").removeAttr("disabled"),a("#rtmedia_create_new_album").html(d)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_delete_confirmation)&&jQuery(this).closest("form").attr("action","../../../"+rtmedia_media_slug+"/delete").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-move-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery("#buddypress").on("change",".rtm-activity-privacy-opt",function(){var a=jQuery(this).attr("id");a=a.split("-"),a=a[a.length-1];var b=this;data={activity_id:a,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(a){var c="",d="";"true"==a?(c=rtmedia_main_js_strings.privacy_update_success,d="success"):(c=rtmedia_main_js_strings.privacy_update_error,d="fail"),jQuery(b).after('<p class="rtm-ac-privacy-updated '+d+'">'+c+"</p>"),setTimeout(function(){jQuery(b).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),jQuery(".media_search_input").on("keyup",function(){rtm_search_media_text_validation()}),b(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){b(),h(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&0==comment_media?c():f(),g(),rtmedia_disable_popup_navigation_comment_media_focus();var d=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*d,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*d,"over-flow":"hidden"}),rtmedia_init_action_dropdown(".rtm-lightbox-container .rtmedia-actions"),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var e=a(".rtm-gallery-title"),i="";""!=(i=a.isEmptyObject(e)?a("#subnav.item-list-tabs li.selected ").html():e.html())&&a(".rtm-ltb-gallery-title .ltb-title").html(i);var j=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(j),!0});var i=jQuery("#drag-drop-area"),j=jQuery("#whats-new");i.html();jQuery("#rtmedia-upload-container").after("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&jQuery("#whats-new-textarea").append("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),jQuery(document).on("dragover",function(a){a.preventDefault(),a.target!=this&&(jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&j.addClass("rtm-drag-drop-active"),i.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show())}).on("dragleave",function(a){if(a.preventDefault(),0!=a.originalEvent.pageX&&0!=a.originalEvent.pageY)return!1;"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(j.removeClass("rtm-drag-drop-active"),j.removeAttr("style")),i.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(a){a.preventDefault(),jQuery(".bp-suggestions").focus(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(j.removeClass("rtm-drag-drop-active"),j.removeAttr("style")),i.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(a){a.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(""),a(document).click(function(){a(".click-nav ul").is(":visible")&&a(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").length>0&&a(".rtm-more").shorten({showChars:200}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&"undefined"!=typeof rtmedia_masonry_layout_activity&&"true"==rtmedia_masonry_layout_activity&&rtmedia_activity_masonry(),jQuery(document).ajaxComplete(function(a,b,c){var d=get_parameter("action",c.data);"post_update"!==d&&"get_single_activity_content"!==d&&"activity_get_older_updates"!==d||"undefined"==typeof rtmedia_masonry_layout||"true"!=rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!=rtmedia_masonry_layout_activity||rtmedia_activity_masonry()}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&(rtm_masonry_container=jQuery(".rtmedia-container .rtmedia-list"),rtm_masonry_container.masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())})),jQuery(".rtm-uploader-tabs").length>0&&jQuery(".rtm-uploader-tabs li").click(function(a){jQuery(this).hasClass("active")||(jQuery(this).siblings().removeClass("active"),jQuery(this).parents(".rtm-uploader-tabs").siblings().hide(),class_name=jQuery(this).attr("class"),jQuery(this).parents(".rtm-uploader-tabs").siblings('[data-id="'+class_name+'"]').show(),jQuery(this).addClass("active"),"rtm-upload-tab"!=class_name?jQuery("div.moxie-shim").hide():jQuery("div.moxie-shim").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(a){a.preventDefault();var b="Are you sure you want to delete this media?";if("undefined"!=typeof rtmedia_media_delete_confirmation&&(b=rtmedia_media_delete_confirmation),confirm(b)){var c=jQuery(this).closest("li"),d=jQuery("#rtmedia_media_delete_nonce").val(),e={action:"delete_uploaded_media",nonce:d,media_id:c.attr("id")};jQuery.ajax({url:ajaxurl,type:"post",data:e,success:function(a){"1"==a?(rtmedia_gallery_action_alert_message(rtmedia_main_js_strings.file_delete_success,"success"),c.remove(),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)):rtmedia_gallery_action_alert_message(rtmedia_file_not_deleted,"warning")}})}})}),function(a){a.fn.shorten=function(b){"use strict";var c={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return b&&a.extend(c,b),!(a(this).data("jquery.shorten")&&!c.force)&&(a(this).data("jquery.shorten",!0),a(document).off("click",".morelink"),a(document).on({click:function(){var b=a(this);return b.hasClass("less")?(b.removeClass("less"),b.html(c.moreText),b.parent().prev().hide(0,function(){b.parent().prev().prev().show()}).hide(0,function(){c.onLess()})):(b.addClass("less"),b.html(c.lessText),b.parent().prev().show(0,function(){b.parent().prev().prev().hide()}).show(0,function(){c.onMore()})),!1}},".morelink"),this.each(function(){var b=a(this),d=b.html();if(b.text().length>c.showChars+c.minHideChars){var e=d.substr(0,c.showChars);if(e.indexOf("<")>=0){for(var f=!1,g="",h=0,i=[],k=null,l=0,m=0;m<=c.showChars;l++)if("<"!=d[l]||f||(f=!0,k=d.substring(l+1,d.indexOf(">",l)),"/"==k[0]?k!="/"+i[0]?c.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":i.shift():"br"!=k.toLowerCase()&&i.unshift(k)),f&&">"==d[l]&&(f=!1),f)g+=d.charAt(l);else if(m++,h<=c.showChars)g+=d.charAt(l),h++;else if(i.length>0){for(j=0;j<i.length;j++)g+="</"+i[j]+">";break}e=a("<div/>").html(g+'<span class="ellip">'+c.ellipsesText+"</span>").html()}else e+=c.ellipsesText;var n='<div class="shortcontent">'+e+'</div><div class="allcontent">'+d+'</div><span><a href="javascript://nop/" class="morelink">'+c.moreText+"</a></span>";b.html(n),b.find(".allcontent").hide(),a(".shortcontent p:last",b).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container),rtm_search_media_text_validation(),check_condition("search")&&jQuery("#media_search_remove").show()},jQuery(document).ready(function(){rtm_upload_terms_activity(),jQuery("body").hasClass("has-sidebar")&&0===jQuery("#secondary").length&&(jQuery(".rtmedia-single-container").length||jQuery(".rtmedia-container").length)&&jQuery("body").removeClass("has-sidebar")});
3
* @package rtMedia
4
*/
5
6
+ var rtMagnificPopup,rtm_masonry_container;!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(d){function e(){}function m(e,t){y.ev.on(i+e+b,t)}function u(e,t,i,a){var r=document.createElement("div");return r.className="mfp-"+e,i&&(r.innerHTML=i),a?t&&t.appendChild(r):(r=d(r),t&&r.appendTo(t)),r}function p(e,t){y.ev.triggerHandler(i+e,t),y.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),y.st.callbacks[e]&&y.st.callbacks[e].apply(y,d.isArray(t)?t:[t]))}function f(e){return e===t&&y.currTemplate.closeBtn||(y.currTemplate.closeBtn=d(y.st.closeMarkup.replace("%title%",y.st.tClose)),t=e),y.currTemplate.closeBtn}function n(){d.magnificPopup.instance||((y=new e).init(),d.magnificPopup.instance=y)}var y,a,_,r,v,t,l="Close",c="BeforeClose",g="MarkupParse",h="Open",o="Change",i="mfp",b="."+i,j="mfp-ready",s="mfp-removing",w="mfp-prevent-close",Q=!!window.jQuery,C=d(window);e.prototype={constructor:e,init:function(){var e=navigator.appVersion;y.isIE7=-1!==e.indexOf("MSIE 7."),y.isIE8=-1!==e.indexOf("MSIE 8."),y.isLowIE=y.isIE7||y.isIE8,y.isAndroid=/android/gi.test(e),y.isIOS=/iphone|ipad|ipod/gi.test(e),y.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),y.probablyMobile=y.isAndroid||y.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),_=d(document),y.popupsCache={}},open:function(e){var t;if(!1===e.isObj){y.items=e.items.toArray(),y.index=0;var i,a=e.items;for(t=0;t<a.length;t++)if((i=a[t]).parsed&&(i=i.el[0]),i===e.el[0]){y.index=t;break}}else y.items=d.isArray(e.items)?e.items:[e.items],y.index=e.index||0;if(!y.isOpen){y.types=[],v="",e.mainEl&&e.mainEl.length?y.ev=e.mainEl.eq(0):y.ev=_,e.key?(y.popupsCache[e.key]||(y.popupsCache[e.key]={}),y.currTemplate=y.popupsCache[e.key]):y.currTemplate={},y.st=d.extend(!0,{},d.magnificPopup.defaults,e),y.fixedContentPos="auto"===y.st.fixedContentPos?!y.probablyMobile:y.st.fixedContentPos,y.st.modal&&(y.st.closeOnContentClick=!1,y.st.closeOnBgClick=!1,y.st.showCloseBtn=!1,y.st.enableEscapeKey=!1),y.bgOverlay||(y.bgOverlay=u("bg").on("click"+b,function(){y.close()}),y.wrap=u("wrap").attr("tabindex",-1).on("click"+b,function(e){y._checkIfClose(e.target)&&y.close()}),y.container=u("container",y.wrap)),y.contentContainer=u("content"),y.st.preloader&&(y.preloader=u("preloader",y.container,y.st.tLoading));var r=d.magnificPopup.modules;for(t=0;t<r.length;t++){var n=r[t];n=n.charAt(0).toUpperCase()+n.slice(1),y["init"+n].call(y)}p("BeforeOpen"),y.st.showCloseBtn&&(y.st.closeBtnInside?(m(g,function(e,t,i,a){i.close_replaceWith=f(a.type)}),v+=" mfp-close-btn-in"):y.wrap.append(f())),y.st.alignTop&&(v+=" mfp-align-top"),y.fixedContentPos?y.wrap.css({overflow:y.st.overflowY,overflowX:"hidden",overflowY:y.st.overflowY}):y.wrap.css({top:C.scrollTop(),position:"absolute"}),!1!==y.st.fixedBgPos&&("auto"!==y.st.fixedBgPos||y.fixedContentPos)||y.bgOverlay.css({height:_.height(),position:"absolute"}),y.st.enableEscapeKey&&_.on("keyup"+b,function(e){27===e.keyCode&&y.close()}),C.on("resize"+b,function(){y.updateSize()}),y.st.closeOnContentClick||(v+=" mfp-auto-cursor"),v&&y.wrap.addClass(v);var o=y.wH=C.height(),s={};if(y.fixedContentPos&&y._hasScrollBar(o)){var l=y._getScrollbarSize();l&&(s.marginRight=l)}y.fixedContentPos&&(y.isIE7?d("body, html").css("overflow","hidden"):s.overflow="hidden");var c=y.st.mainClass;return y.isIE7&&(c+=" mfp-ie7"),c&&y._addClassToMFP(c),y.updateItemHTML(),p("BuildControls"),d("html").css(s),y.bgOverlay.add(y.wrap).prependTo(y.st.prependTo||d(document.body)),y._lastFocusedEl=document.activeElement,setTimeout(function(){y.content?(y._addClassToMFP(j),y._setFocus()):y.bgOverlay.addClass(j),_.on("focusin"+b,y._onFocusIn)},16),y.isOpen=!0,y.updateSize(o),p(h),e}y.updateItemHTML()},close:function(){y.isOpen&&(p(c),y.isOpen=!1,y.st.removalDelay&&!y.isLowIE&&y.supportsTransition?(y._addClassToMFP(s),setTimeout(function(){y._close()},y.st.removalDelay)):y._close())},_close:function(){p(l);var e=s+" "+j+" ";if(y.bgOverlay.detach(),y.wrap.detach(),y.container.empty(),y.st.mainClass&&(e+=y.st.mainClass+" "),y._removeClassFromMFP(e),y.fixedContentPos){var t={marginRight:""};y.isIE7?d("body, html").css("overflow",""):t.overflow="",d("html").css(t)}_.off("keyup.mfp focusin"+b),y.ev.off(b),y.wrap.attr("class","mfp-wrap").removeAttr("style"),y.bgOverlay.attr("class","mfp-bg"),y.container.attr("class","mfp-container"),!y.st.showCloseBtn||y.st.closeBtnInside&&!0!==y.currTemplate[y.currItem.type]||y.currTemplate.closeBtn&&y.currTemplate.closeBtn.detach(),y._lastFocusedEl&&d(y._lastFocusedEl).focus(),y.currItem=null,y.content=null,y.currTemplate=null,y.prevHeight=0,p("AfterClose")},updateSize:function(e){if(y.isIOS){var t=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*t;y.wrap.css("height",i),y.wH=i}else y.wH=e||C.height();y.fixedContentPos||y.wrap.css("height",y.wH),p("Resize")},updateItemHTML:function(){var e=y.items[y.index];y.contentContainer.detach(),y.content&&y.content.detach(),e.parsed||(e=y.parseEl(y.index));var t=e.type;if(p("BeforeChange",[y.currItem?y.currItem.type:"",t]),y.currItem=e,!y.currTemplate[t]){var i=!!y.st[t]&&y.st[t].markup;p("FirstMarkupParse",i),y.currTemplate[t]=!i||d(i)}r&&r!==e.type&&y.container.removeClass("mfp-"+r+"-holder");var a=y["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,y.currTemplate[t]);y.appendContent(a,t),e.preloaded=!0,p(o,e),r=e.type,y.container.prepend(y.contentContainer),p("AfterChange")},appendContent:function(e,t){(y.content=e)?y.st.showCloseBtn&&y.st.closeBtnInside&&!0===y.currTemplate[t]?y.content.find(".mfp-close").length||y.content.append(f()):y.content=e:y.content="",p("BeforeAppend"),y.container.addClass("mfp-"+t+"-holder"),y.contentContainer.append(y.content)},parseEl:function(e){var t,i=y.items[e];if((i=i.tagName?{el:d(i)}:(t=i.type,{data:i,src:i.src})).el){for(var a=y.types,r=0;r<a.length;r++)if(i.el.hasClass("mfp-"+a[r])){t=a[r];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=t||y.st.type||"inline",i.index=e,i.parsed=!0,y.items[e]=i,p("ElementParse",i),y.items[e]},addGroup:function(t,i){function e(e){e.mfpEl=this,y._openClick(e,t,i)}var a="click.magnificPopup";(i=i||{}).mainEl=t,i.items?(i.isObj=!0,t.off(a).on(a,e)):(i.isObj=!1,i.delegate?t.off(a).on(a,i.delegate,e):(i.items=t).off(a).on(a,e))},_openClick:function(e,t,i){if((void 0!==i.midClick?i.midClick:d.magnificPopup.defaults.midClick)||2!==e.which&&!e.ctrlKey&&!e.metaKey){var a=void 0!==i.disableOn?i.disableOn:d.magnificPopup.defaults.disableOn;if(a)if(d.isFunction(a)){if(!a.call(y))return!0}else if(C.width()<a)return!0;e.type&&(e.preventDefault(),y.isOpen&&e.stopPropagation()),i.el=d(e.mfpEl),i.delegate&&(i.items=t.find(i.delegate)),y.open(i)}},updateStatus:function(e,t){if(y.preloader){a!==e&&y.container.removeClass("mfp-s-"+a),t||"loading"!==e||(t=y.st.tLoading);var i={status:e,text:t};p("UpdateStatus",i),e=i.status,t=i.text,y.preloader.html(t),y.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),y.container.addClass("mfp-s-"+e),a=e}},_checkIfClose:function(e){if(!d(e).hasClass(w)){var t=y.st.closeOnContentClick,i=y.st.closeOnBgClick;if(t&&i)return!0;if(!y.content||d(e).hasClass("mfp-close")||y.preloader&&e===y.preloader[0])return!0;if(e===y.content[0]||d.contains(y.content[0],e)){if(t)return!0}else if(i&&d.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){y.bgOverlay.addClass(e),y.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),y.wrap.removeClass(e)},_hasScrollBar:function(e){return(y.isIE7?_.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(y.st.focus?y.content.find(y.st.focus).eq(0):y.wrap).focus()},_onFocusIn:function(e){if(e.target!==y.wrap[0]&&!d.contains(y.wrap[0],e.target))return y._setFocus(),!1},_parseMarkup:function(r,e,t){var n;t.data&&(e=d.extend(t.data,e)),p(g,[r,e,t]),d.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(n=e.split("_")).length){var i=r.find(b+"-"+n[0]);if(0<i.length){var a=n[1];"replaceWith"===a?i[0]!==t[0]&&i.replaceWith(t):"img"===a?i.is("img")?i.attr("src",t):i.replaceWith('<img src="'+t+'" class="'+i.attr("class")+'" />'):i.attr(n[1],t)}}else r.find(b+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===y.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),y.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return y.scrollbarSize}},d.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return n(),(e=e?d.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return d.magnificPopup.instance&&d.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(d.magnificPopup.defaults[e]=t.options),d.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},d.fn.magnificPopup=function(e){n();var t=d(this);if("string"==typeof e)if("open"===e){var i,a=Q?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;i=a.items?a.items[r]:(i=t,a.delegate&&(i=i.find(a.delegate)),i.eq(r)),y._openClick({mfpEl:i},t,a)}else y.isOpen&&y[e].apply(y,Array.prototype.slice.call(arguments,1));else e=d.extend(!0,{},e),Q?t.data("magnificPopup",e):t[0].magnificPopup=e,y.addGroup(t,e);return t};function k(){I&&(T.after(I.addClass(x)).detach(),I=null)}var x,T,I,M="inline";d.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){y.types.push(M),m(l+"."+M,function(){k()})},getInline:function(e,t){if(k(),e.src){var i=y.st.inline,a=d(e.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(T||(x=i.hiddenClass,T=u(x),x="mfp-"+x),I=a.after(T).detach().removeClass(x)),y.updateStatus("ready")}else y.updateStatus("error",i.tNotFound),a=d("<div>");return e.inlineElement=a}return y.updateStatus("ready"),y._parseMarkup(t,{},e),t}}});function P(){S&&d(document.body).removeClass(S)}function E(){P(),y.req&&y.req.abort()}var S,O="ajax";d.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){y.types.push(O),S=y.st.ajax.cursor,m(l+"."+O,E),m("BeforeChange."+O,E)},getAjax:function(r){S&&d(document.body).addClass(S),y.updateStatus("loading");var e=d.extend({url:r.src,success:function(e,t,i){var a={data:e,xhr:i};p("ParseAjax",a),y.appendContent(d(a.data),O),r.finished=!0,P(),y._setFocus(),setTimeout(function(){y.wrap.addClass(j)},16),y.updateStatus("ready"),p("AjaxContentAdded")},error:function(){P(),r.finished=r.loadError=!0,y.updateStatus("error",y.st.ajax.tError.replace("%url%",r.src))}},y.st.ajax.settings);return y.req=d.ajax(e),""}}});var z;d.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=y.st.image,t=".image";y.types.push("image"),m(h+t,function(){"image"===y.currItem.type&&e.cursor&&d(document.body).addClass(e.cursor)}),m(l+t,function(){e.cursor&&d(document.body).removeClass(e.cursor),C.off("resize"+b)}),m("Resize"+t,y.resizeImage),y.isLowIE&&m("AfterChange",y.resizeImage)},resizeImage:function(){var e=y.currItem;if(e&&e.img&&y.st.image.verticalFit){var t=0;y.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",y.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,p("ImageHasSize",e),e.imgHidden&&(y.content&&y.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var i=0,a=t.img[0],r=function(e){z&&clearInterval(z),z=setInterval(function(){0<a.naturalWidth?y._onImageHasSize(t):(200<i&&clearInterval(z),3===++i?r(10):40===i?r(50):100===i&&r(500))},e)};r(1)},getImage:function(e,t){var i=0,a=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===y.currItem&&(y._onImageHasSize(e),y.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,p("ImageLoadComplete")):++i<200?setTimeout(a,100):r())},r=function(){e&&(e.img.off(".mfploader"),e===y.currItem&&(y._onImageHasSize(e),y.updateStatus("error",n.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},n=y.st.image,o=t.find(".mfp-img");if(o.length){var s=document.createElement("img");s.className="mfp-img",e.el&&e.el.find("img").length&&(s.alt=e.el.find("img").attr("alt")),e.img=d(s).on("load.mfploader",a).on("error.mfploader",r),s.src=e.src,o.is("img")&&(e.img=e.img.clone()),0<(s=e.img[0]).naturalWidth?e.hasSize=!0:s.width||(e.hasSize=!1)}return y._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=y.st.image.titleSrc;if(t){if(d.isFunction(t))return t.call(y,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),y.resizeImage(),e.hasSize?(z&&clearInterval(z),e.loadError?(t.addClass("mfp-loading"),y.updateStatus("error",n.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),y.updateStatus("ready"))):(y.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),y.findImageSize(e))),t}}});var H;d.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=y.st.zoom,t=".zoom";if(n.enabled&&y.supportsTransition){function i(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,a={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return a["-webkit-"+r]=a["-moz-"+r]=a["-o-"+r]=a[r]=i,t.css(a),t}function a(){y.content.css("visibility","visible")}var r,o,s=n.duration;m("BuildControls"+t,function(){if(y._allowZoom()){if(clearTimeout(r),y.content.css("visibility","hidden"),!(e=y._getItemToZoom()))return void a();(o=i(e)).css(y._getOffset()),y.wrap.append(o),r=setTimeout(function(){o.css(y._getOffset(!0)),r=setTimeout(function(){a(),setTimeout(function(){o.remove(),e=o=null,p("ZoomAnimationEnded")},16)},s)},16)}}),m(c+t,function(){if(y._allowZoom()){if(clearTimeout(r),y.st.removalDelay=s,!e){if(!(e=y._getItemToZoom()))return;o=i(e)}o.css(y._getOffset(!0)),y.wrap.append(o),y.content.css("visibility","hidden"),setTimeout(function(){o.css(y._getOffset())},16)}}),m(l+t,function(){y._allowZoom()&&(a(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===y.currItem.type},_getItemToZoom:function(){return!!y.currItem.hasSize&&y.currItem.img},_getOffset:function(e){var t,i=(t=e?y.currItem.img:y.st.zoom.opener(y.currItem.el||y.currItem)).offset(),a=parseInt(t.css("padding-top"),10),r=parseInt(t.css("padding-bottom"),10);i.top-=d(window).scrollTop()-a;var n={width:t.width(),height:(Q?t.innerHeight():t[0].offsetHeight)-r-a};return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H?n["-moz-transform"]=n.transform="translate("+i.left+"px,"+i.top+"px)":(n.left=i.left,n.top=i.top),n}}});function B(e){if(y.currTemplate[A]){var t=y.currTemplate[A].find("iframe");t.length&&(e||(t[0].src="//about:blank"),y.isIE8&&t.css("display",e?"block":"none"))}}var A="iframe";d.magnificPopup.registerModule(A,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){y.types.push(A),m("BeforeChange",function(e,t,i){t!==i&&(t===A?B():i===A&&B(!0))}),m(l+"."+A,function(){B()})},getIframe:function(e,t){var i=e.src,a=y.st.iframe;d.each(a.patterns,function(){if(-1<i.indexOf(this.index))return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var r={};return a.srcAction&&(r[a.srcAction]=i),y._parseMarkup(t,r,e),y.updateStatus("ready"),t}}});function L(e){var t=y.items.length;return t-1<e?e-t:e<0?t+e:e}function $(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)}d.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=y.st.gallery,e=".mfp-gallery",r=Boolean(d.fn.mfpFastClick);if(y.direction=!0,!n||!n.enabled)return!1;v+=" mfp-gallery",m(h+e,function(){n.navigateByImgClick&&y.wrap.on("click"+e,".mfp-img",function(){if(1<y.items.length)return y.next(),!1}),_.on("keydown"+e,function(e){37===e.keyCode?y.prev():39===e.keyCode&&y.next()})}),m("UpdateStatus"+e,function(e,t){t.text&&(t.text=$(t.text,y.currItem.index,y.items.length))}),m(g+e,function(e,t,i,a){var r=y.items.length;i.counter=1<r?$(n.tCounter,a.index,r):""}),m("BuildControls"+e,function(){if(1<y.items.length&&n.arrows&&!y.arrowLeft){var e=n.arrowMarkup,t=y.arrowLeft=d(e.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(w),i=y.arrowRight=d(e.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(w),a=r?"mfpFastClick":"click";t[a](function(){y.prev()}),i[a](function(){y.next()}),y.isIE7&&(u("b",t[0],!1,!0),u("a",t[0],!1,!0),u("b",i[0],!1,!0),u("a",i[0],!1,!0)),y.container.append(t.add(i))}}),m(o+e,function(){y._preloadTimeout&&clearTimeout(y._preloadTimeout),y._preloadTimeout=setTimeout(function(){y.preloadNearbyImages(),y._preloadTimeout=null},16)}),m(l+e,function(){_.off(e),y.wrap.off("click"+e),y.arrowLeft&&r&&y.arrowLeft.add(y.arrowRight).destroyMfpFastClick(),y.arrowRight=y.arrowLeft=null})},next:function(){y.direction=!0,y.index=L(y.index+1),y.updateItemHTML()},prev:function(){y.direction=!1,y.index=L(y.index-1),y.updateItemHTML()},goTo:function(e){y.direction=e>=y.index,y.index=e,y.updateItemHTML()},preloadNearbyImages:function(){var e,t=y.st.gallery.preload,i=Math.min(t[0],y.items.length),a=Math.min(t[1],y.items.length);for(e=1;e<=(y.direction?a:i);e++)y._preloadItem(y.index+e);for(e=1;e<=(y.direction?i:a);e++)y._preloadItem(y.index-e)},_preloadItem:function(e){if(e=L(e),!y.items[e].preloaded){var t=y.items[e];t.parsed||(t=y.parseEl(e)),p("LazyLoad",t),"image"===t.type&&(t.img=d('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,p("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var F,D,R="retina";function W(){C.off("touchmove"+D+" touchend"+D)}d.magnificPopup.registerModule(R,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+#x2F;,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(1<window.devicePixelRatio){var i=y.st.retina,a=i.ratio;1<(a=isNaN(a)?a():a)&&(m("ImageHasSize."+R,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/a,width:"100%"})}),m("ElementParse."+R,function(e,t){t.src=i.replaceSrc(t,a)}))}}}}),F="ontouchstart"in window,D=".mfpFastClick",d.fn.mfpFastClick=function(l){return d(this).each(function(){var t,i,a,r,n,o,s,e=d(this);F&&e.on("touchstart"+D,function(e){n=!1,s=1,o=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],a=o.clientX,r=o.clientY,C.on("touchmove"+D,function(e){o=e.originalEvent?e.originalEvent.touches:e.touches,s=o.length,o=o[0],(10<Math.abs(o.clientX-a)||10<Math.abs(o.clientY-r))&&(n=!0,W())}).on("touchend"+D,function(e){W(),n||1<s||(t=!0,e.preventDefault(),clearTimeout(i),i=setTimeout(function(){t=!1},1e3),l())})}),e.on("click"+D,function(){t||l()})})},d.fn.destroyMfpFastClick=function(){d(this).off("touchstart"+D+" click"+D),F&&C.off("touchmove"+D+" touchend"+D)},n()}),"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(n,o){var i={init:function(e,t){this.elem=t,this.$elem=n(t),this.options=n.extend({},n.fn.rtTab.options,e),this.rtTabs()},rtTabs:function(){var t=this,e=t.options.activeTab;if(t.$elem.find("li:nth-child("+e+")").addClass("active"),t.rtTabContent(activeTabContent="yes"),t.rtClick(),!0==("false"!==t.$elem.attr("data-hash"))){var i=o.location.hash;i&&t.$elem.find("li").find('a[href="'+i+'"]').trigger("click"),n(o).on("hashchange",function(){var e=o.location.hash;t.$elem.find("li").find('a[href="'+e+'"]').trigger("click")})}},rtClick:function(){var a=this,r=a.$elem.find("li");r.find("a").on("click",function(e){e.preventDefault(),r.removeClass("active"),a.rtTabContent(),n(this).parent().addClass("active");var t=n(this).attr("href");if(n(t).removeClass("hide"),!0==("false"!==a.$elem.attr("data-hash"))){var i=n(o).scrollTop();location.hash=n(this).attr("href"),n(o).scrollTop(i)}"function"==typeof a.options.onComplete&&a.options.onComplete.apply(a.elem,arguments)})},rtTabContent:function(i){this.$elem.find("li").find("a").each(function(){var e=n(this),t=e.attr("href");"yes"===i&&e.parent().hasClass("active")||n(t).addClass("hide")})}};n.fn.rtTab=function(t){return this.each(function(){var e=Object.create(i);e.init(t,this),n.data(this,"rtTab",e)})},n.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var comment_media=!1;function apply_rtMagnificPopup(t){jQuery("document").ready(function(s){var e="";if(e="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled){var n,l,c=!1;0<s(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length&&s(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(t).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",fixedContentPos:!0,fixedBgPos:!0,tLoading:e+" #%curr%...",mainClass:"mfp-img-mobile",preload:[1,3],closeOnBgClick:!0,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:"",preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return e.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){e=jQuery.magnificPopup.instance,1===jQuery(e.items).size()&&jQuery(".mfp-arrow").remove();var e=jQuery.magnificPopup.instance,t=e.currItem.el,i=t.parent();if(i.is("li")||(i=i.parent()),(i.is(":nth-last-child(2)")||i.is(":last-child"))&&i.find("a").hasClass("rtmedia-list-item-a")){i.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&(c||(n=e.ev.children(),c=!0,l=nextpage),jQuery("#rtMedia-galary-next").click())}var a=e.items.length;if(e.index!=a-1||i.is(":last-child")){"undefined"!=typeof _wpmejsSettings&&_wpmejsSettings.pluginPath;var o=jQuery(".rtmedia-container .rtmedia-single-meta").height(),r=!1;void 0!==e&&void 0!==e.probablyMobile&&1==e.probablyMobile&&(r=!0),s(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("autoplay",!0),r&&s(".mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("muted",!1),s(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,hideVolumeOnTouchDevices:!1,features:["playpause","progress","current","volume","fullscreen"],defaultVideoHeight:270,alwaysShowControls:r,enableAutosize:!0,clickToPlayPause:!0,videoHeight:-1,success:function(n,e){n.addEventListener("loadeddata",function(e){var t=s(n).height(),i=s(window).height(),a=jQuery("div.rtm-ltb-action-container").height(),r=o-(a=a+50);i<t&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+r+"px !important; transition:0.2s")},!1),r&&s(n).hasClass("wp-video-shortcode")?jQuery("body").on("touchstart",".mejs-overlay-button",function(e){n.paused?n.play():n.pause()}):n.pause()}}),s(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),"undefined"!=typeof bp&&void 0!==bp.mentions&&void 0!==bp.mentions.users&&(s("#atwho-container #atwho-ground-comment_content").remove(),s("#comment_content").bp_mentions(bp.mentions.users)),rtmedia_reset_video_and_audio_for_popup(),apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container")}else t.click()},open:function(){var e=jQuery(".mfp-bg"),t=jQuery(".mfp-wrap");e.height(e.height()+t.height())},close:function(e){c&&(mfp.ev.empty(),mfp.ev.append(n),nextpage=l,c=!1,1<nextpage&&jQuery("#rtMedia-galary-next").show()),rtmedia_single_page_popup_close()},BeforeChange:function(e){}}})}jQuery(document).ajaxComplete(function(){jQuery("[id^=imgedit-leaving]").filter(function(){var e=jQuery(this).text();jQuery(this).text(e.replace("OK","Save"))})})})}var rtMediaHook={hooks:[],is_break:!1,register:function(e,t){void 0===rtMediaHook.hooks[e]&&(rtMediaHook.hooks[e]=[]),rtMediaHook.hooks[e].push(t)},call:function(e,arguments){if(void 0!==rtMediaHook.hooks[e])for(i=0;i<rtMediaHook.hooks[e].length;++i)if(1!=rtMediaHook.hooks[e][i](arguments))return!(rtMediaHook.is_break=!0);return!0}};function rtmedia_init_action_dropdown(e){var t,i;jQuery(e+" .click-nav > span,"+e+" .click-nav > div").toggleClass("no-js js"),jQuery(e+" .click-nav .js ul").hide(),jQuery(e+" .click-nav .clicker").click(function(e){t=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),i=jQuery(this).next("ul"),jQuery.each(t,function(e,t){jQuery(t).html()!=i.html()&&jQuery(t).hide()}),jQuery(i).toggle(),e.stopPropagation()})}function bp_media_create_element(e){return!1}function rtmedia_version_compare(e,t){if(typeof e+typeof t!="stringstring")return!1;for(var i=e.split("."),a=t.split("."),r=0,n=Math.max(i.length,a.length);r<n;r++){if(i[r]&&!a[r]&&0<parseInt(i[r])||parseInt(i[r])>parseInt(a[r]))return!0;if(a[r]&&!i[r]&&0<parseInt(a[r])||parseInt(i[r])<parseInt(a[r]))return!1}return!0}function rtm_is_element_exist(e){return 0<jQuery(e).length}function rtm_masonry_reload(e){setTimeout(function(){e.masonry("reload")},250)}function rtm_search_media_text_validation(){""===jQuery("#media_search_input").val()?jQuery("#media_search").css("cursor","not-allowed"):jQuery("#media_search").css("cursor","pointer")}function rtmediaGetParameterByName(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null==t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(e,t,i){var a="rtmedia-success";"warning"==t&&(a="rtmedia-warning");var r=!1;jQuery(".rtmedia-message-container").each(function(e,t){return t=jQuery(t),i&&t.hasClass("rtmedia-empty-comment-error-class")?(t.remove(),!(r=!0)):void 0!==i||t.hasClass("rtmedia-empty-comment-error-class")?void 0:(t.remove(),!(r=!0))});var n,o=jQuery("<div>",{title:"Click to dismiss",class:"rtmedia-message-container"+(i?" rtmedia-empty-comment-error-class":""),style:"margin:1em 0;"}),s=jQuery("<span>",{class:a});s.html(e),s.appendTo(o),i?(n=jQuery("#rt_media_comment_form"),jQuery("#comment_content").focus()):void 0===i&&(n=jQuery(".rtmedia-single-media .rtmedia-media")).css("opacity","0.2"),n.after(o),r&&(s.css({border:"2px solid #884646"}),setTimeout(function(){s.css({border:"none"})},500)),setTimeout(function(){o.remove(),void 0===i&&n.css("opacity","1")},3e3),o.click(function(){o.remove(),void 0===i&&n.css("opacity","1")})}function rtmedia_gallery_action_alert_message(e,t){var i="rtmedia-success";"warning"==t&&(i="rtmedia-warning");jQuery("body").append('<div class="rtmedia-gallery-alert-container"> </div>'),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+i+"'>"+e+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-gallery-alert-container").remove()},3e3),jQuery(".rtmedia-gallery-message-box").click(function(){jQuery(".rtmedia-gallery-alert-container").remove()})}function rtmedia_activity_masonry(){jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list").masonry({itemSelector:".rtmedia-list-item",gutter:7});var e=0,t=setInterval(function(){5===(e+=1)&&clearInterval(t),jQuery.each(jQuery(".rtmedia-activity-container .rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list"))},1e3)}function get_parameter(e,t){if(!e)return!1;t=t||window.location.href;e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp(e+"=([^&#]*)").exec(t);return null!==i&&i[1]}function rtm_upload_terms_activity(){if(0<jQuery("#rtmedia_upload_terms_conditions").length){jQuery("#bp-nouveau-activity-form").on("click","#aw-whats-new-submit",function(e){var t=jQuery("#whats-new-form"),i=t.find("#rtmedia_upload_terms_conditions");if(0!==i.length&&!1===i.prop("checked")&&0===t.find("#message").length){e.preventDefault();var a=t.find(".rtmedia-upload-terms");rtp_display_terms_warning(a,rtmedia_upload_terms_check_terms_message)}});var t=jQuery("#whats-new-form");0<t.length&&jQuery("#whats-new-form, #rtmedia_upload_terms_conditions").on("click",function(e){t.find("input:hidden").each(function(){jQuery(this).prop("disabled",!1)})})}}jQuery("document").ready(function(n){function r(){if(0<jQuery("#rtmedia-media-view-form").length){var e=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(e,{},function(e){})}}function o(e,t,i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3);var r="expires="+a.toUTCString();document.cookie=e+"="+t+";"+r+";path=/"}jQuery(document).ajaxComplete(function(e,t,i){if("legacy"!==bp_template_pack&&bp_template_pack){var a=get_parameter("action",i.data);"activity_filter"!==a&&"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||"undefined"==typeof rtmedia_masonry_layout||"true"!==rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!==rtmedia_masonry_layout_activity?"activity_filter"!==a&&"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||setTimeout(function(){apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),rtmedia_activity_stream_comment_media()},1e3):setTimeout(function(){apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),rtmedia_activity_masonry(),rtmedia_activity_stream_comment_media()},1e3)}}),jQuery(".rtmedia-uploader-div").css({opacity:"1",display:"block",visibility:"visible"}),jQuery(" #whats-new-options ").css({opacity:"1"}),void 0!==n.fn.rtTab&&n(".rtm-tabs").rtTab(),0<jQuery(".rtmedia-modal-link").length&&n(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),n("#rt_media_comment_form").submit(function(e){return""!=n.trim(n("#comment_content").val())||(0==jQuery("#rtmedia-single-media-container").length?rtmedia_gallery_action_alert_message(rtmedia_empty_comment_msg,"warning"):rtmedia_single_media_alert_message(rtmedia_empty_comment_msg,"warning"),!1)}),n("li.rtmedia-list-item p a").each(function(e){n(this).addClass("no-popup")}),n("li.rtmedia-list-item p a").each(function(e){n(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(e,t,i){try{if(null==t.data||void 0===t.data||void 0===t.data.action)return!0}catch(e){return!0}if("activity_get_older_updates"==t.data.action){var a=t.success;e.success=function(e){"function"==typeof a&&a(e),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}else if("get_single_activity_content"==t.data.action){a=t.success;e.success=function(e){"function"==typeof a&&a(e),setTimeout(function(){apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(e,t,i){try{if(null==t.data||void 0===t.data||void 0===t.data.action)return!0}catch(e){return!0}if("activity_get_older_updates"==t.data.action){var a=t.success;e.success=function(e){"function"==typeof a&&a(e),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({classPrefix:"mejs-",defaultVideoWidth:480,defaultVideoHeight:270}),setTimeout(function(){rtmedia_activity_stream_comment_media()},900),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(e){jQuery(this).toggleClass("unselect-all").toggleClass("select-all"),jQuery(this).attr("title",rtmedia_unselect_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!0)}),jQuery(".rtmedia-list-item").addClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".unselect-all",function(e){jQuery(this).toggleClass("select-all").toggleClass("unselect-all"),jQuery(this).attr("title",rtmedia_select_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!1)}),jQuery(".rtmedia-list-item").removeClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".rtmedia-move",function(e){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(e){if($albumname=jQuery("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$album_description=jQuery("#rtmedia_album_description"),$context=jQuery.trim(jQuery("#rtmedia_album_context").val()),$context_id=jQuery.trim(jQuery("#rtmedia_album_context_id").val()),$privacy=jQuery.trim(jQuery("#rtmedia_select_album_privacy").val()),$create_album_nonce=jQuery.trim(jQuery("#rtmedia_create_album_nonce").val()),""!=$albumname){var t={action:"rtmedia_create_album",name:$albumname,description:$album_description.val(),context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(t.privacy=$privacy),n("#rtmedia_create_new_album").attr("disabled","disabled");var r=n("#rtmedia_create_new_album").html();n("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,t,function(i){if(void 0!==i.album){i=jQuery.trim(i.album);var a=!0;$album_description.val(""),n("#rtmedia_album_name").focus(),jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){if(jQuery(this).attr("value")===$context)return a=!1,void jQuery(this).append('<option value="'+i+'">'+$albumname+"</option>")}),a){var e=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,t='<optgroup value="'+$context+'" label="'+e+'"><option value="'+i+'">'+$albumname+"</option></optgroup>";jQuery(this).append(t)}}),jQuery('select.rtmedia-user-album-list option[value="'+i+'"]').prop("selected",!0),jQuery(".rtmedia-create-new-album-container").slideToggle(),jQuery("#rtmedia_album_name").val(""),jQuery("#rtmedia-create-album-modal").append("<div class='rtmedia-success rtmedia-create-album-alert'><b>"+$albumname+"</b>"+rtmedia_album_created_msg+"</div>"),setTimeout(function(){jQuery(".rtmedia-create-album-alert").remove()},4e3),setTimeout(function(){galleryObj.reloadView(),jQuery(".close-reveal-modal").click()},2e3)}else void 0!==i.error?rtmedia_gallery_action_alert_message(i.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");n("#rtmedia_create_new_album").removeAttr("disabled"),n("#rtmedia_create_new_album").html(r)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(e){0<jQuery(".rtmedia-list :checkbox:checked").length?confirm(rtmedia_selected_media_delete_confirmation)&&jQuery(this).closest("form").attr("action","../../../"+rtmedia_media_slug+"/delete").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-move-selected",function(e){0<jQuery(".rtmedia-list :checkbox:checked").length?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery("#buddypress").on("change",".rtm-activity-privacy-opt",function(){var e=jQuery(this).attr("id");e=(e=e.split("-"))[e.length-1];var a=this;data={activity_id:e,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(e){var t="",i="";i="true"==e?(t=rtmedia_main_js_strings.privacy_update_success,"success"):(t=rtmedia_main_js_strings.privacy_update_error,"fail"),jQuery(a).after('<p class="rtm-ac-privacy-updated '+i+'">'+t+"</p>"),setTimeout(function(){jQuery(a).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),jQuery(".media_search_input").on("keyup",function(){rtm_search_media_text_validation()}),r(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){r(),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(e){e.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),mfp=jQuery.magnificPopup.instance,1<jQuery(mfp.items).size()&&0==comment_media?function(){var n=jQuery.magnificPopup.instance,e=n.probablyMobile,t=function(e){for(var t=e+"=",i=document.cookie.split(";"),a=0;a<i.length;a++){for(var r=i[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}("rtmedia-touch-swipe-tooltip");e&&""===t?(jQuery("#mobile-swipe-overlay").show(),jQuery("#mobile-swipe-overlay").on("click",function(e){o("rtmedia-touch-swipe-tooltip",!0,365),jQuery(this).hide(),jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click")}),jQuery("#mobile-swipe-overlay").swipe({swipe:function(e,t,i,a,r,n){o("rtmedia-touch-swipe-tooltip",!0,365),jQuery("#mobile-swipe-overlay").hide(),jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click")},threshold:0})):jQuery("#rtmedia-single-media-container .mejs-playpause-button").trigger("click");jQuery(".mfp-arrow-right").on("click",function(e){n.next()}),jQuery(".mfp-arrow-left").on("click",function(e){n.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(e,t,i,a,r){n.next()},swipeRight:function(e,t,i,a,r){n.prev()},threshold:0})}():(jQuery(".mfp-arrow-right").hide(),jQuery(".mfp-arrow-left").hide(),jQuery(document).unbind("keydown")),rtmedia_disable_popup_navigation("#comment_content"),rtmedia_disable_popup_navigation_comment_media_focus();var e=n(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*e,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*e,"over-flow":"hidden"}),rtmedia_init_action_dropdown(".rtm-lightbox-container .rtmedia-actions"),jQuery(".rtmedia-comment-link").on("click",function(e){e.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var t=n(".rtm-gallery-title"),i="";""!=(i=n.isEmptyObject(t)?n("#subnav.item-list-tabs li.selected ").html():t.html())&&n(".rtm-ltb-gallery-title .ltb-title").html(i);var a=n("#subnav.item-list-tabs li.selected span").html();return n("li.total").html(a),!0});var t=jQuery("#drag-drop-area"),i=jQuery("#whats-new");t.html();jQuery("#rtmedia-upload-container").after("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&jQuery("#whats-new-textarea").append("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),jQuery(document).on("dragover",function(e){e.preventDefault(),e.target!=this&&(jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&i.addClass("rtm-drag-drop-active"),t.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show())}).on("dragleave",function(e){if(e.preventDefault(),0!=e.originalEvent.pageX&&0!=e.originalEvent.pageY)return!1;"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(i.removeClass("rtm-drag-drop-active"),i.removeAttr("style")),t.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(e){e.preventDefault(),jQuery(".bp-suggestions").focus(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(i.removeClass("rtm-drag-drop-active"),i.removeAttr("style")),t.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(e){e.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(e){e.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(""),n(document).click(function(){n(".click-nav ul").is(":visible")&&n(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(e){e.preventDefault(),jQuery("#comment_content").focus()}),0<jQuery(".rtm-more").length&&n(".rtm-more").shorten({showChars:200}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&"undefined"!=typeof rtmedia_masonry_layout_activity&&"true"==rtmedia_masonry_layout_activity&&rtmedia_activity_masonry(),jQuery(document).ajaxComplete(function(e,t,i){var a=get_parameter("action",i.data);"post_update"!==a&&"get_single_activity_content"!==a&&"activity_get_older_updates"!==a||"undefined"==typeof rtmedia_masonry_layout||"true"!=rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!=rtmedia_masonry_layout_activity||rtmedia_activity_masonry()}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&((rtm_masonry_container=jQuery(".rtmedia-container .rtmedia-list")).masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(e,t){jQuery(t).width(jQuery(t).siblings(".rtmedia-item-thumbnail").children("img").width())})),0<jQuery(".rtm-uploader-tabs").length&&jQuery(".rtm-uploader-tabs li").click(function(e){jQuery(this).hasClass("active")||(jQuery(this).siblings().removeClass("active"),jQuery(this).parents(".rtm-uploader-tabs").siblings().hide(),class_name=jQuery(this).attr("class"),jQuery(this).parents(".rtm-uploader-tabs").siblings('[data-id="'+class_name+'"]').show(),jQuery(this).addClass("active"),"rtm-upload-tab"!=class_name?jQuery("div.moxie-shim").hide():jQuery("div.moxie-shim").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(e){e.preventDefault();var t="Are you sure you want to delete this media?";if("undefined"!=typeof rtmedia_media_delete_confirmation&&(t=rtmedia_media_delete_confirmation),confirm(t)){var i=jQuery(this).closest("li"),a={action:"delete_uploaded_media",nonce:jQuery("#rtmedia_media_delete_nonce").val(),media_id:i.attr("id")};jQuery.ajax({url:ajaxurl,type:"post",data:a,success:function(e){"1"==e?(rtmedia_gallery_action_alert_message(rtmedia_main_js_strings.file_delete_success,"success"),i.remove(),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)):rtmedia_gallery_action_alert_message(rtmedia_file_not_deleted,"warning")}})}})}),function(u){u.fn.shorten=function(e){"use strict";var m={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return e&&u.extend(m,e),!(u(this).data("jquery.shorten")&&!m.force)&&(u(this).data("jquery.shorten",!0),u(document).off("click",".morelink"),u(document).on({click:function(){var e=u(this);return e.hasClass("less")?(e.removeClass("less"),e.html(m.moreText),e.parent().prev().hide(0,function(){e.parent().prev().prev().show()}).hide(0,function(){m.onLess()})):(e.addClass("less"),e.html(m.lessText),e.parent().prev().show(0,function(){e.parent().prev().prev().hide()}).show(0,function(){m.onMore()})),!1}},".morelink"),this.each(function(){var e=u(this),t=e.html();if(e.text().length>m.showChars+m.minHideChars){var i=t.substr(0,m.showChars);if(0<=i.indexOf("<")){for(var a=!1,r="",n=0,o=[],s=null,l=0,c=0;c<=m.showChars;l++)if("<"!=t[l]||a||(a=!0,"/"==(s=t.substring(l+1,t.indexOf(">",l)))[0]?s!="/"+o[0]?m.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":o.shift():"br"!=s.toLowerCase()&&o.unshift(s)),a&&">"==t[l]&&(a=!1),a)r+=t.charAt(l);else if(c++,n<=m.showChars)r+=t.charAt(l),n++;else if(0<o.length){for(j=0;j<o.length;j++)r+="</"+o[j]+">";break}i=u("<div/>").html(r+'<span class="ellip">'+m.ellipsesText+"</span>").html()}else i+=m.ellipsesText;var d='<div class="shortcontent">'+i+'</div><div class="allcontent">'+t+'</div><span><a href="javascript://nop/" class="morelink">'+m.moreText+"</a></span>";e.html(d),e.find(".allcontent").hide(),u(".shortcontent p:last",e).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container),rtm_search_media_text_validation(),check_condition("search")&&jQuery("#media_search_remove").show()},jQuery(document).ready(function(){rtm_upload_terms_activity(),jQuery("body").hasClass("has-sidebar")&&0===jQuery("#secondary").length&&(jQuery(".rtmedia-single-container").length||jQuery(".rtmedia-container").length)&&jQuery("body").removeClass("has-sidebar")});
app/main/RTMedia.php CHANGED
@@ -1153,6 +1153,14 @@ class RTMedia {
1153
foreach ( $this->allowed_types as $key_type => $value_type ) {
1154
$rtmedia_media_thumbs[ $key_type ] = $value_type['thumbnail'];
1155
}
1156
wp_localize_script( 'rtmedia-backbone', 'rtmedia_media_thumbs', $rtmedia_media_thumbs );
1157
wp_localize_script( 'rtmedia-backbone', 'rtmedia_set_featured_image_msg', esc_html__( 'Featured media set successfully.', 'buddypress-media' ) );
1158
wp_localize_script( 'rtmedia-backbone', 'rtmedia_unset_featured_image_msg', esc_html__( 'Featured media removed successfully.', 'buddypress-media' ) );
@@ -1335,8 +1343,13 @@ class RTMedia {
1335
$rtmedia_router = new RTMediaRouter();
1336
if ( ! empty( $rtmedia_router->query_vars ) ) {
1337
$wp_current_stylesheet = get_stylesheet();
1338
- wp_enqueue_style( 'bp-neavuaue-stylesheet-theme', BP_PLUGIN_URL . 'bp-templates/bp-legacy/css/'. $wp_current_stylesheet . ".min.css" );
1339
- wp_enqueue_style( 'bp-neavuaue-stylesheet-buddypress', BP_PLUGIN_URL . 'bp-templates/bp-legacy/css/buddypress.min.css', '' );
1340
}
1341
}
1342
}
1153
foreach ( $this->allowed_types as $key_type => $value_type ) {
1154
$rtmedia_media_thumbs[ $key_type ] = $value_type['thumbnail'];
1155
}
1156
+
1157
+ /**
1158
+ * Filter to add docs and files thumbnails.
1159
+ *
1160
+ * This filter is used by only rtmedia-docs-files addon.
1161
+ * */
1162
+ $rtmedia_media_thumbs = apply_filters( 'rtmedia_add_docs_thumbs', $rtmedia_media_thumbs );
1163
+
1164
wp_localize_script( 'rtmedia-backbone', 'rtmedia_media_thumbs', $rtmedia_media_thumbs );
1165
wp_localize_script( 'rtmedia-backbone', 'rtmedia_set_featured_image_msg', esc_html__( 'Featured media set successfully.', 'buddypress-media' ) );
1166
wp_localize_script( 'rtmedia-backbone', 'rtmedia_unset_featured_image_msg', esc_html__( 'Featured media removed successfully.', 'buddypress-media' ) );
1343
$rtmedia_router = new RTMediaRouter();
1344
if ( ! empty( $rtmedia_router->query_vars ) ) {
1345
$wp_current_stylesheet = get_stylesheet();
1346
+
1347
+ // If file is already exists in buddypress then enqueue it.
1348
+ if ( file_exists( sprintf( '%sbp-templates/bp-legacy/css/%s.min.css', BP_PLUGIN_DIR, $wp_current_stylesheet ) ) ) {
1349
+ wp_enqueue_style( 'bp-nouveau-stylesheet-theme', BP_PLUGIN_URL . 'bp-templates/bp-legacy/css/' . $wp_current_stylesheet . '.min.css' );
1350
+ }
1351
+
1352
+ wp_enqueue_style( 'bp-nouveau-stylesheet-buddypress', BP_PLUGIN_URL . 'bp-templates/bp-legacy/css/buddypress.min.css', '' );
1353
}
1354
}
1355
}
app/main/controllers/activity/RTMediaBuddyPressActivity.php CHANGED
@@ -1015,51 +1015,22 @@ class RTMediaBuddyPressActivity {
1015
}
1016
1017
/**
1018
- * Makes the comments hidden (private) if the parent comment's
1019
- * privacy is set to private.
1020
*
1021
* @param string $comment_id Activity id of the comment.
1022
* @param array $r Array of arguments.
1023
*/
1024
public function rtm_check_privacy_for_comments( $comment_id, $r ) {
1025
- global $wpdb;
1026
1027
if ( empty( $r ) || empty( $comment_id ) || ( ! is_array( $r ) ) ) {
1028
return;
1029
}
1030
1031
- $db_prefix = $wpdb->get_blog_prefix();
1032
- $table_name = 'rt_rtm_activity';
1033
$activity_id = $r['activity_id'];
1034
$user_id = $r['user_id'];
1035
$privacy_id = bp_activity_get_meta( $activity_id, 'rtmedia_privacy' );
1036
- $blog_id = get_current_blog_id();
1037
-
1038
- if ( '60' === $privacy_id ) {
1039
- $row_values_rtm_media = array(
1040
- 'activity_id' => $comment_id,
1041
- 'user_id' => $user_id,
1042
- 'privacy' => $privacy_id,
1043
- 'blog_id' => $blog_id,
1044
- );
1045
1046
- $wpdb->insert(
1047
- $db_prefix . $table_name,
1048
- $row_values_rtm_media
1049
- );
1050
-
1051
- $table_name = 'bp_activity_meta';
1052
- $row_values_activity_meta = array(
1053
- 'id' => '',
1054
- 'activity_id' => $comment_id,
1055
- 'meta_key' => 'rtmedia_privacy',
1056
- 'meta_value' => 60,
1057
- );
1058
-
1059
- $wpdb->insert(
1060
- $db_prefix . $table_name,
1061
- $row_values_activity_meta
1062
- );
1063
- }
1064
}
1065
}
1015
}
1016
1017
/**
1018
+ * Set the privacy for comment activity.
1019
*
1020
* @param string $comment_id Activity id of the comment.
1021
* @param array $r Array of arguments.
1022
*/
1023
public function rtm_check_privacy_for_comments( $comment_id, $r ) {
1024
1025
if ( empty( $r ) || empty( $comment_id ) || ( ! is_array( $r ) ) ) {
1026
return;
1027
}
1028
1029
$activity_id = $r['activity_id'];
1030
$user_id = $r['user_id'];
1031
$privacy_id = bp_activity_get_meta( $activity_id, 'rtmedia_privacy' );
1032
1033
+ $rtm_activity_model = new RTMediaActivityModel();
1034
+ $rtm_activity_model->set_privacy( $comment_id, $user_id, $privacy_id );
1035
}
1036
}
app/main/controllers/shortcodes/RTMediaGalleryShortcode.php CHANGED
@@ -80,6 +80,7 @@ class RTMediaGalleryShortcode {
80
$request_uri = rtm_get_server_var( 'REQUEST_URI', 'FILTER_SANITIZE_URL' );
81
$url = rtmedia_get_upload_url( $request_uri );
82
83
$params = array(
84
'url' => $url,
85
'runtimes' => 'html5,flash,html4',
@@ -92,7 +93,7 @@ class RTMediaGalleryShortcode {
92
'extensions' => get_rtmedia_allowed_upload_type(),
93
),
94
) ),
95
- 'max_file_size' => ( wp_max_upload_size() ) / ( 1024 * 1024 ) . 'M',
96
'multipart' => true,
97
'urlstream_upload' => true,
98
'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
@@ -107,10 +108,7 @@ class RTMediaGalleryShortcode {
107
'mode' => 'file_upload',
108
'rtmedia_upload_nonce' => RTMediaUploadView::upload_nonce_generator( false, true ),
109
) ),
110
- 'max_file_size_msg' => apply_filters( 'rtmedia_plupload_file_size_msg', min( array(
111
- ini_get( 'upload_max_filesize' ),
112
- ini_get( 'post_max_size' ),
113
- ) ) ),
114
);
115
116
$params = apply_filters( 'rtmedia_modify_upload_params', $params );
80
$request_uri = rtm_get_server_var( 'REQUEST_URI', 'FILTER_SANITIZE_URL' );
81
$url = rtmedia_get_upload_url( $request_uri );
82
83
+ $upload_max_size = ( wp_max_upload_size() ) / ( 1024 * 1024 ) . 'M';
84
$params = array(
85
'url' => $url,
86
'runtimes' => 'html5,flash,html4',
93
'extensions' => get_rtmedia_allowed_upload_type(),
94
),
95
) ),
96
+ 'max_file_size' => $upload_max_size,
97
'multipart' => true,
98
'urlstream_upload' => true,
99
'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
108
'mode' => 'file_upload',
109
'rtmedia_upload_nonce' => RTMediaUploadView::upload_nonce_generator( false, true ),
110
) ),
111
+ 'max_file_size_msg' => apply_filters( 'rtmedia_plupload_file_size_msg', $upload_max_size ),
112
);
113
114
$params = apply_filters( 'rtmedia_modify_upload_params', $params );
app/main/controllers/template/RTMediaTemplate.php CHANGED
@@ -733,6 +733,9 @@ class RTMediaTemplate {
733
'comment_sync',
734
), 10, 2 );
735
736
if ( function_exists( 'bp_activity_new_comment' ) ) {
737
/* comment content add to new */
738
$activity_content = $comment_content_old;
733
'comment_sync',
734
), 10, 2 );
735
736
+ // Remove duplicate media from activity.
737
+ remove_filter( 'bp_activity_content_before_save', array( $rtmedia_buddypress_activity, 'bp_activity_content_before_save' ) );
738
+
739
if ( function_exists( 'bp_activity_new_comment' ) ) {
740
/* comment content add to new */
741
$activity_content = $comment_content_old;
app/main/controllers/template/rtmedia-functions.php CHANGED
@@ -672,7 +672,7 @@ function rtmedia_image( $size = 'rt_media_thumbnail', $id = false, $recho = true
672
global $rtmedia;
673
674
// Getting the extension of the uploaded file
675
- $extension = rtmedia_get_extension();
676
677
// Checking if custom thumbnail for this file extension is set or not
678
if ( isset( $rtmedia->allowed_types[ $media_object->media_type ] ) && isset( $rtmedia->allowed_types[ $media_object->media_type ]['ext_thumb'] ) && isset( $rtmedia->allowed_types[ $media_object->media_type ]['ext_thumb'][ $extension ] ) ) {
672
global $rtmedia;
673
674
// Getting the extension of the uploaded file
675
+ $extension = rtmedia_get_extension( $media_object->media_id );
676
677
// Checking if custom thumbnail for this file extension is set or not
678
if ( isset( $rtmedia->allowed_types[ $media_object->media_type ] ) && isset( $rtmedia->allowed_types[ $media_object->media_type ]['ext_thumb'] ) && isset( $rtmedia->allowed_types[ $media_object->media_type ]['ext_thumb'][ $extension ] ) ) {
index.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
- Version: 4.5.7
7
Author: rtCamp
8
Text Domain: buddypress-media
9
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -22,7 +22,7 @@ if ( ! defined( 'RTMEDIA_VERSION' ) ) {
22
* The version of the plugin
23
*
24
*/
25
- define( 'RTMEDIA_VERSION', '4.5.7' );
26
}
27
28
if ( ! defined( 'RTMEDIA_PATH' ) ) {
3
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
+ Version: 4.5.8
7
Author: rtCamp
8
Text Domain: buddypress-media
9
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
22
* The version of the plugin
23
*
24
*/
25
+ define( 'RTMEDIA_VERSION', '4.5.8' );
26
}
27
28
if ( ! defined( 'RTMEDIA_PATH' ) ) {
languages/buddypress-media.po CHANGED
@@ -2,9 +2,9 @@
2
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.7\n"
6
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7
- "POT-Creation-Date: 2019-06-10 12:30:20+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
@@ -147,7 +147,7 @@ msgstr ""
147
#: app/admin/RTMediaAdmin.php:761 app/admin/RTMediaAdmin.php:1267
148
#: app/admin/RTMediaAdmin.php:1268 app/importers/RTMediaActivityUpgrade.php:128
149
#: app/importers/RTMediaMigration.php:68 app/main/RTMedia.php:1060
150
- #: app/main/RTMedia.php:1624
151
msgid "rtMedia"
152
msgstr ""
153
@@ -2301,7 +2301,7 @@ msgstr ""
2301
msgid "Album"
2302
msgstr ""
2303
2304
- #: app/main/RTMedia.php:769 app/main/RTMedia.php:1177
2305
#: app/main/controllers/media/RTMediaAlbum.php:53
2306
#: app/main/controllers/media/RTMediaAlbum.php:65
2307
msgid "Albums"
@@ -2417,16 +2417,16 @@ msgstr ""
2417
#: app/main/RTMedia.php:1138
2418
#: app/main/controllers/media/RTMediaGalleryItemAction.php:63
2419
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
2420
- #: app/main/controllers/template/rtmedia-functions.php:1168
2421
- #: app/main/controllers/template/rtmedia-functions.php:1187
2422
msgid "Edit"
2423
msgstr ""
2424
2425
#: app/main/RTMedia.php:1139
2426
#: app/main/controllers/media/RTMediaGalleryItemAction.php:67
2427
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
2428
- #: app/main/controllers/template/rtmedia-functions.php:2087
2429
- #: app/main/controllers/template/rtmedia-functions.php:2096
2430
#: templates/media/album-single-edit.php:78
2431
msgid "Delete"
2432
msgstr ""
@@ -2467,51 +2467,51 @@ msgstr ""
2467
msgid "This media is uploaded. Are you sure you want to delete this media?"
2468
msgstr ""
2469
2470
- #: app/main/RTMedia.php:1157
2471
msgid "Featured media set successfully."
2472
msgstr ""
2473
2474
- #: app/main/RTMedia.php:1158
2475
msgid "Featured media removed successfully."
2476
msgstr ""
2477
2478
- #: app/main/RTMedia.php:1160
2479
msgid "Title:"
2480
msgstr ""
2481
2482
- #: app/main/RTMedia.php:1161
2483
msgid "Description:"
2484
msgstr ""
2485
2486
- #: app/main/RTMedia.php:1163
2487
msgid "Oops !! There's no media found for the request !!"
2488
msgstr ""
2489
2490
- #: app/main/RTMedia.php:1167
2491
msgid "Edit File Name"
2492
msgstr ""
2493
2494
- #: app/main/RTMedia.php:1178
2495
msgid "Privacy updated successfully."
2496
msgstr ""
2497
2498
- #: app/main/RTMedia.php:1179
2499
msgid "Couldn't change privacy, please try again."
2500
msgstr ""
2501
2502
- #: app/main/RTMedia.php:1180
2503
msgid "file deleted successfully."
2504
msgstr ""
2505
2506
- #: app/main/RTMedia.php:1217
2507
msgid "There are some uploads in progress. Do you want to cancel them?"
2508
msgstr ""
2509
2510
- #: app/main/RTMedia.php:1219
2511
msgid "Media upload is disabled. Please Enable at least one media type to proceed."
2512
msgstr ""
2513
2514
- #: app/main/RTMedia.php:1321
2515
msgid "Adding media in Comments is not allowed"
2516
msgstr ""
2517
@@ -2519,48 +2519,48 @@ msgstr ""
2519
msgid "I agree to"
2520
msgstr ""
2521
2522
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:453
2523
msgid "Media Files"
2524
msgstr ""
2525
2526
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:491
2527
#: app/main/controllers/media/RTMediaComment.php:175
2528
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:102
2529
- #: app/main/controllers/template/rtmedia-functions.php:2126
2530
msgid "You are not allowed to upload/attach media."
2531
msgstr ""
2532
2533
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:626
2534
msgid "%s added a %s"
2535
msgstr ""
2536
2537
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:633
2538
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:635
2539
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:229
2540
msgid "%s added %d %s"
2541
msgstr ""
2542
2543
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:688
2544
msgid "%1$s liked a %2$s in the group %3$s"
2545
msgstr ""
2546
2547
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:691
2548
msgid "%1$s liked their %2$s"
2549
msgstr ""
2550
2551
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:695
2552
msgid "%1$s liked %2$s's %3$s"
2553
msgstr ""
2554
2555
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:785
2556
msgid "%1$s commented on a %2$s in the group %3$s"
2557
msgstr ""
2558
2559
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:788
2560
msgid "%1$s commented on their %2$s"
2561
msgstr ""
2562
2563
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:792
2564
msgid "%1$s commented on %2$s's %3$s"
2565
msgstr ""
2566
@@ -2973,7 +2973,7 @@ msgstr ""
2973
msgid "Default Privacy"
2974
msgstr ""
2975
2976
- #: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:278
2977
msgid "You do not have sufficient privileges to view this gallery"
2978
msgstr ""
2979
@@ -3001,7 +3001,7 @@ msgstr ""
3001
#: app/main/controllers/template/RTMediaTemplate.php:392
3002
#: app/main/controllers/template/RTMediaTemplate.php:485
3003
#: app/main/controllers/template/RTMediaTemplate.php:583
3004
- #: app/main/controllers/template/RTMediaTemplate.php:784
3005
msgid "Ooops !!! Invalid access. No nonce was found !!"
3006
msgstr ""
3007
@@ -3120,7 +3120,7 @@ msgid "Please swipe for more media."
3120
msgstr ""
3121
3122
#: app/main/controllers/template/rtmedia-ajax-actions.php:88
3123
- #: app/main/controllers/template/rtmedia-functions.php:2026
3124
msgid "Comment"
3125
msgstr ""
3126
@@ -3136,197 +3136,197 @@ msgstr ""
3136
msgid "Delete Album"
3137
msgstr ""
3138
3139
- #: app/main/controllers/template/rtmedia-filters.php:866
3140
- #: app/main/controllers/template/rtmedia-functions.php:4391
3141
msgid "rtMedia Shortcode Uploads"
3142
msgstr ""
3143
3144
- #: app/main/controllers/template/rtmedia-filters.php:870
3145
- #: app/main/controllers/template/rtmedia-functions.php:4271
3146
msgid "rtMedia Activities"
3147
msgstr ""
3148
3149
- #: app/main/controllers/template/rtmedia-filters.php:874
3150
msgid "rtMedia Comments"
3151
msgstr ""
3152
3153
- #: app/main/controllers/template/rtmedia-filters.php:878
3154
- #: app/main/controllers/template/rtmedia-functions.php:4619
3155
msgid "rtMedia Media Views"
3156
msgstr ""
3157
3158
- #: app/main/controllers/template/rtmedia-filters.php:882
3159
- #: app/main/controllers/template/rtmedia-functions.php:4720
3160
msgid "rtMedia Media Likes"
3161
msgstr ""
3162
3163
- #: app/main/controllers/template/rtmedia-filters.php:903
3164
msgid "rtMedia Eraser"
3165
msgstr ""
3166
3167
- #: app/main/controllers/template/rtmedia-filters.php:907
3168
msgid "rtMedia Likes Eraser"
3169
msgstr ""
3170
3171
- #: app/main/controllers/template/rtmedia-filters.php:911
3172
msgid "rtMedia Album Eraser"
3173
msgstr ""
3174
3175
- #: app/main/controllers/template/rtmedia-functions.php:1250
3176
msgid "There are no comments on this media yet."
3177
msgstr ""
3178
3179
- #: app/main/controllers/template/rtmedia-functions.php:1282
3180
msgid "Show all %s comments"
3181
msgstr ""
3182
3183
- #: app/main/controllers/template/rtmedia-functions.php:1315
3184
msgid "Delete Comment"
3185
msgstr ""
3186
3187
- #: app/main/controllers/template/rtmedia-functions.php:1654
3188
msgid "Go to page no : "
3189
msgstr ""
3190
3191
- #: app/main/controllers/template/rtmedia-functions.php:1659
3192
msgid "Go"
3193
msgstr ""
3194
3195
- #: app/main/controllers/template/rtmedia-functions.php:2024
3196
msgid "Type Comment..."
3197
msgstr ""
3198
3199
- #: app/main/controllers/template/rtmedia-functions.php:2087
3200
- #: app/main/controllers/template/rtmedia-functions.php:2096
3201
msgid "Delete Media"
3202
msgstr ""
3203
3204
- #: app/main/controllers/template/rtmedia-functions.php:2344
3205
msgid "Profile Albums"
3206
msgstr ""
3207
3208
- #: app/main/controllers/template/rtmedia-functions.php:2348
3209
- #: app/main/controllers/template/rtmedia-functions.php:2393
3210
msgid "Group Albums"
3211
msgstr ""
3212
3213
- #: app/main/controllers/template/rtmedia-functions.php:2573
3214
msgid "Privacy : "
3215
msgstr ""
3216
3217
- #: app/main/controllers/template/rtmedia-functions.php:2923
3218
msgid "You like this"
3219
msgstr ""
3220
3221
- #: app/main/controllers/template/rtmedia-functions.php:2935
3222
msgid "You and "
3223
msgstr ""
3224
3225
- #: app/main/controllers/template/rtmedia-functions.php:2958
3226
msgid " person likes this"
3227
msgid_plural " people like this"
3228
msgstr[0] ""
3229
msgstr[1] ""
3230
3231
- #: app/main/controllers/template/rtmedia-functions.php:3065
3232
msgid "Public"
3233
msgstr ""
3234
3235
- #: app/main/controllers/template/rtmedia-functions.php:3070
3236
msgid "All members"
3237
msgstr ""
3238
3239
- #: app/main/controllers/template/rtmedia-functions.php:3075
3240
msgid "Your friends"
3241
msgstr ""
3242
3243
- #: app/main/controllers/template/rtmedia-functions.php:3080
3244
msgid "Only you"
3245
msgstr ""
3246
3247
- #: app/main/controllers/template/rtmedia-functions.php:3085
3248
msgid "Blocked temporarily"
3249
msgstr ""
3250
3251
- #: app/main/controllers/template/rtmedia-functions.php:3138
3252
msgid "%s ago "
3253
msgstr ""
3254
3255
- #: app/main/controllers/template/rtmedia-functions.php:3152
3256
msgid "1 second"
3257
msgid_plural "%s seconds"
3258
msgstr[0] ""
3259
msgstr[1] ""
3260
3261
- #: app/main/controllers/template/rtmedia-functions.php:3156
3262
msgid "1 minute"
3263
msgid_plural "%s minutes"
3264
msgstr[0] ""
3265
msgstr[1] ""
3266
3267
- #: app/main/controllers/template/rtmedia-functions.php:3160
3268
msgid "1 hour"
3269
msgid_plural "%s hours"
3270
msgstr[0] ""
3271
msgstr[1] ""
3272
3273
- #: app/main/controllers/template/rtmedia-functions.php:3760
3274
#. translators: date format, see http:php.net/date
3275
msgid "View Conversation"
3276
msgstr ""
3277
3278
- #: app/main/controllers/template/rtmedia-functions.php:4299
3279
msgid "Activity Date"
3280
msgstr ""
3281
3282
- #: app/main/controllers/template/rtmedia-functions.php:4303
3283
msgid "Activity Content"
3284
msgstr ""
3285
3286
- #: app/main/controllers/template/rtmedia-functions.php:4307
3287
- #: app/main/controllers/template/rtmedia-functions.php:4530
3288
msgid "Attachments"
3289
msgstr ""
3290
3291
- #: app/main/controllers/template/rtmedia-functions.php:4400
3292
msgid "Media Upload Date"
3293
msgstr ""
3294
3295
- #: app/main/controllers/template/rtmedia-functions.php:4404
3296
msgid "Media Title"
3297
msgstr ""
3298
3299
- #: app/main/controllers/template/rtmedia-functions.php:4408
3300
- #: app/main/controllers/template/rtmedia-functions.php:4623
3301
- #: app/main/controllers/template/rtmedia-functions.php:4724
3302
msgid "Media URL"
3303
msgstr ""
3304
3305
- #: app/main/controllers/template/rtmedia-functions.php:4412
3306
msgid "Album Title"
3307
msgstr ""
3308
3309
- #: app/main/controllers/template/rtmedia-functions.php:4500
3310
msgid "rtMedia Activity Comments"
3311
msgstr ""
3312
3313
- #: app/main/controllers/template/rtmedia-functions.php:4522
3314
msgid "Comment Date"
3315
msgstr ""
3316
3317
- #: app/main/controllers/template/rtmedia-functions.php:4526
3318
msgid "Comment Content"
3319
msgstr ""
3320
3321
- #: app/main/controllers/template/rtmedia-functions.php:4627
3322
msgid "Number of Views"
3323
msgstr ""
3324
3325
- #: app/main/controllers/template/rtmedia-functions.php:4631
3326
msgid "Date of First View"
3327
msgstr ""
3328
3329
- #: app/main/controllers/template/rtmedia-functions.php:4728
3330
msgid "Date"
3331
msgstr ""
3332
2
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.8\n"
6
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7
+ "POT-Creation-Date: 2019-08-06 10:41:32+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
147
#: app/admin/RTMediaAdmin.php:761 app/admin/RTMediaAdmin.php:1267
148
#: app/admin/RTMediaAdmin.php:1268 app/importers/RTMediaActivityUpgrade.php:128
149
#: app/importers/RTMediaMigration.php:68 app/main/RTMedia.php:1060
150
+ #: app/main/RTMedia.php:1637
151
msgid "rtMedia"
152
msgstr ""
153
2301
msgid "Album"
2302
msgstr ""
2303
2304
+ #: app/main/RTMedia.php:769 app/main/RTMedia.php:1185
2305
#: app/main/controllers/media/RTMediaAlbum.php:53
2306
#: app/main/controllers/media/RTMediaAlbum.php:65
2307
msgid "Albums"
2417
#: app/main/RTMedia.php:1138
2418
#: app/main/controllers/media/RTMediaGalleryItemAction.php:63
2419
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
2420
+ #: app/main/controllers/template/rtmedia-functions.php:1174
2421
+ #: app/main/controllers/template/rtmedia-functions.php:1193
2422
msgid "Edit"
2423
msgstr ""
2424
2425
#: app/main/RTMedia.php:1139
2426
#: app/main/controllers/media/RTMediaGalleryItemAction.php:67
2427
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
2428
+ #: app/main/controllers/template/rtmedia-functions.php:2093
2429
+ #: app/main/controllers/template/rtmedia-functions.php:2102
2430
#: templates/media/album-single-edit.php:78
2431
msgid "Delete"
2432
msgstr ""
2467
msgid "This media is uploaded. Are you sure you want to delete this media?"
2468
msgstr ""
2469
2470
+ #: app/main/RTMedia.php:1165
2471
msgid "Featured media set successfully."
2472
msgstr ""
2473
2474
+ #: app/main/RTMedia.php:1166
2475
msgid "Featured media removed successfully."
2476
msgstr ""
2477
2478
+ #: app/main/RTMedia.php:1168
2479
msgid "Title:"
2480
msgstr ""
2481
2482
+ #: app/main/RTMedia.php:1169
2483
msgid "Description:"
2484
msgstr ""
2485
2486
+ #: app/main/RTMedia.php:1171
2487
msgid "Oops !! There's no media found for the request !!"
2488
msgstr ""
2489
2490
+ #: app/main/RTMedia.php:1175
2491
msgid "Edit File Name"
2492
msgstr ""
2493
2494
+ #: app/main/RTMedia.php:1186
2495
msgid "Privacy updated successfully."
2496
msgstr ""
2497
2498
+ #: app/main/RTMedia.php:1187
2499
msgid "Couldn't change privacy, please try again."
2500
msgstr ""
2501
2502
+ #: app/main/RTMedia.php:1188
2503
msgid "file deleted successfully."
2504
msgstr ""
2505
2506
+ #: app/main/RTMedia.php:1225
2507
msgid "There are some uploads in progress. Do you want to cancel them?"
2508
msgstr ""
2509
2510
+ #: app/main/RTMedia.php:1227
2511
msgid "Media upload is disabled. Please Enable at least one media type to proceed."
2512
msgstr ""
2513
2514
+ #: app/main/RTMedia.php:1329
2515
msgid "Adding media in Comments is not allowed"
2516
msgstr ""
2517
2519
msgid "I agree to"
2520
msgstr ""
2521
2522
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:463
2523
msgid "Media Files"
2524
msgstr ""
2525
2526
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:501
2527
#: app/main/controllers/media/RTMediaComment.php:175
2528
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:102
2529
+ #: app/main/controllers/template/rtmedia-functions.php:2132
2530
msgid "You are not allowed to upload/attach media."
2531
msgstr ""
2532
2533
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:636
2534
msgid "%s added a %s"
2535
msgstr ""
2536
2537
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:643
2538
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:645
2539
#: app/main/controllers/upload/RTMediaUploadEndpoint.php:229
2540
msgid "%s added %d %s"
2541
msgstr ""
2542
2543
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:698
2544
msgid "%1$s liked a %2$s in the group %3$s"
2545
msgstr ""
2546
2547
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:701
2548
msgid "%1$s liked their %2$s"
2549
msgstr ""
2550
2551
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:705
2552
msgid "%1$s liked %2$s's %3$s"
2553
msgstr ""
2554
2555
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:795
2556
msgid "%1$s commented on a %2$s in the group %3$s"
2557
msgstr ""
2558
2559
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:798
2560
msgid "%1$s commented on their %2$s"
2561
msgstr ""
2562
2563
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:802
2564
msgid "%1$s commented on %2$s's %3$s"
2565
msgstr ""
2566
2973
msgid "Default Privacy"
2974
msgstr ""
2975
2976
+ #: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:276
2977
msgid "You do not have sufficient privileges to view this gallery"
2978
msgstr ""
2979
3001
#: app/main/controllers/template/RTMediaTemplate.php:392
3002
#: app/main/controllers/template/RTMediaTemplate.php:485
3003
#: app/main/controllers/template/RTMediaTemplate.php:583
3004
+ #: app/main/controllers/template/RTMediaTemplate.php:787
3005
msgid "Ooops !!! Invalid access. No nonce was found !!"
3006
msgstr ""
3007
3120
msgstr ""
3121
3122
#: app/main/controllers/template/rtmedia-ajax-actions.php:88
3123
+ #: app/main/controllers/template/rtmedia-functions.php:2032
3124
msgid "Comment"
3125
msgstr ""
3126
3136
msgid "Delete Album"
3137
msgstr ""
3138
3139
+ #: app/main/controllers/template/rtmedia-filters.php:853
3140
+ #: app/main/controllers/template/rtmedia-functions.php:4397
3141
msgid "rtMedia Shortcode Uploads"
3142
msgstr ""
3143
3144
+ #: app/main/controllers/template/rtmedia-filters.php:857
3145
+ #: app/main/controllers/template/rtmedia-functions.php:4277
3146
msgid "rtMedia Activities"
3147
msgstr ""
3148
3149
+ #: app/main/controllers/template/rtmedia-filters.php:861
3150
msgid "rtMedia Comments"
3151
msgstr ""
3152
3153
+ #: app/main/controllers/template/rtmedia-filters.php:865
3154
+ #: app/main/controllers/template/rtmedia-functions.php:4625
3155
msgid "rtMedia Media Views"
3156
msgstr ""
3157
3158
+ #: app/main/controllers/template/rtmedia-filters.php:869
3159
+ #: app/main/controllers/template/rtmedia-functions.php:4726
3160
msgid "rtMedia Media Likes"
3161
msgstr ""
3162
3163
+ #: app/main/controllers/template/rtmedia-filters.php:890
3164
msgid "rtMedia Eraser"
3165
msgstr ""
3166
3167
+ #: app/main/controllers/template/rtmedia-filters.php:894
3168
msgid "rtMedia Likes Eraser"
3169
msgstr ""
3170
3171
+ #: app/main/controllers/template/rtmedia-filters.php:898
3172
msgid "rtMedia Album Eraser"
3173
msgstr ""
3174
3175
+ #: app/main/controllers/template/rtmedia-functions.php:1256
3176
msgid "There are no comments on this media yet."
3177
msgstr ""
3178
3179
+ #: app/main/controllers/template/rtmedia-functions.php:1288
3180
msgid "Show all %s comments"
3181
msgstr ""
3182
3183
+ #: app/main/controllers/template/rtmedia-functions.php:1321
3184
msgid "Delete Comment"
3185
msgstr ""
3186
3187
+ #: app/main/controllers/template/rtmedia-functions.php:1660
3188
msgid "Go to page no : "
3189
msgstr ""
3190
3191
+ #: app/main/controllers/template/rtmedia-functions.php:1665
3192
msgid "Go"
3193
msgstr ""
3194
3195
+ #: app/main/controllers/template/rtmedia-functions.php:2030
3196
msgid "Type Comment..."
3197
msgstr ""
3198
3199
+ #: app/main/controllers/template/rtmedia-functions.php:2093
3200
+ #: app/main/controllers/template/rtmedia-functions.php:2102
3201
msgid "Delete Media"
3202
msgstr ""
3203
3204
+ #: app/main/controllers/template/rtmedia-functions.php:2350
3205
msgid "Profile Albums"
3206
msgstr ""
3207
3208
+ #: app/main/controllers/template/rtmedia-functions.php:2354
3209
+ #: app/main/controllers/template/rtmedia-functions.php:2399
3210
msgid "Group Albums"
3211
msgstr ""
3212
3213
+ #: app/main/controllers/template/rtmedia-functions.php:2579
3214
msgid "Privacy : "
3215
msgstr ""
3216
3217
+ #: app/main/controllers/template/rtmedia-functions.php:2929
3218
msgid "You like this"
3219
msgstr ""
3220
3221
+ #: app/main/controllers/template/rtmedia-functions.php:2941
3222
msgid "You and "
3223
msgstr ""
3224
3225
+ #: app/main/controllers/template/rtmedia-functions.php:2964
3226
msgid " person likes this"
3227
msgid_plural " people like this"
3228
msgstr[0] ""
3229
msgstr[1] ""
3230
3231
+ #: app/main/controllers/template/rtmedia-functions.php:3071
3232
msgid "Public"
3233
msgstr ""
3234
3235
+ #: app/main/controllers/template/rtmedia-functions.php:3076
3236
msgid "All members"
3237
msgstr ""
3238
3239
+ #: app/main/controllers/template/rtmedia-functions.php:3081
3240
msgid "Your friends"
3241
msgstr ""
3242
3243
+ #: app/main/controllers/template/rtmedia-functions.php:3086
3244
msgid "Only you"
3245
msgstr ""
3246
3247
+ #: app/main/controllers/template/rtmedia-functions.php:3091
3248
msgid "Blocked temporarily"
3249
msgstr ""
3250
3251
+ #: app/main/controllers/template/rtmedia-functions.php:3144
3252
msgid "%s ago "
3253
msgstr ""
3254
3255
+ #: app/main/controllers/template/rtmedia-functions.php:3158
3256
msgid "1 second"
3257
msgid_plural "%s seconds"
3258
msgstr[0] ""
3259
msgstr[1] ""
3260
3261
+ #: app/main/controllers/template/rtmedia-functions.php:3162
3262
msgid "1 minute"
3263
msgid_plural "%s minutes"
3264
msgstr[0] ""
3265
msgstr[1] ""
3266
3267
+ #: app/main/controllers/template/rtmedia-functions.php:3166
3268
msgid "1 hour"
3269
msgid_plural "%s hours"
3270
msgstr[0] ""
3271
msgstr[1] ""
3272
3273
+ #: app/main/controllers/template/rtmedia-functions.php:3766
3274
#. translators: date format, see http:php.net/date
3275
msgid "View Conversation"
3276
msgstr ""
3277
3278
+ #: app/main/controllers/template/rtmedia-functions.php:4305
3279
msgid "Activity Date"
3280
msgstr ""
3281
3282
+ #: app/main/controllers/template/rtmedia-functions.php:4309
3283
msgid "Activity Content"
3284
msgstr ""
3285
3286
+ #: app/main/controllers/template/rtmedia-functions.php:4313
3287
+ #: app/main/controllers/template/rtmedia-functions.php:4536
3288
msgid "Attachments"
3289
msgstr ""
3290
3291
+ #: app/main/controllers/template/rtmedia-functions.php:4406
3292
msgid "Media Upload Date"
3293
msgstr ""
3294
3295
+ #: app/main/controllers/template/rtmedia-functions.php:4410
3296
msgid "Media Title"
3297
msgstr ""
3298
3299
+ #: app/main/controllers/template/rtmedia-functions.php:4414
3300
+ #: app/main/controllers/template/rtmedia-functions.php:4629
3301
+ #: app/main/controllers/template/rtmedia-functions.php:4730
3302
msgid "Media URL"
3303
msgstr ""
3304
3305
+ #: app/main/controllers/template/rtmedia-functions.php:4418
3306
msgid "Album Title"
3307
msgstr ""
3308
3309
+ #: app/main/controllers/template/rtmedia-functions.php:4506
3310
msgid "rtMedia Activity Comments"
3311
msgstr ""
3312
3313
+ #: app/main/controllers/template/rtmedia-functions.php:4528
3314
msgid "Comment Date"
3315
msgstr ""
3316
3317
+ #: app/main/controllers/template/rtmedia-functions.php:4532
3318
msgid "Comment Content"
3319
msgstr ""
3320
3321
+ #: app/main/controllers/template/rtmedia-functions.php:4633
3322
msgid "Number of Views"
3323
msgstr ""
3324
3325
+ #: app/main/controllers/template/rtmedia-functions.php:4637
3326
msgid "Date of First View"
3327
msgstr ""
3328
3329
+ #: app/main/controllers/template/rtmedia-functions.php:4734
3330
msgid "Date"
3331
msgstr ""
3332
readme.txt CHANGED
@@ -4,8 +4,8 @@ Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, i
4
License: GPLv2 or later
5
License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
Requires at least: WordPress 4.1
7
- Tested up to: 5.2.1
8
- Stable tag: 4.5.7
9
10
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
11
@@ -134,6 +134,17 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
134
135
== Changelog ==
136
137
= 4.5.7 [June 12, 2019] =
138
139
* NEW
@@ -1603,8 +1614,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
1603
1604
== Upgrade Notice ==
1605
1606
- = 4.5.7 =
1607
- rtMedia 4.5.7, with fixes for, media duplication in the lightbox, multiple media upload for non-admin roles, some UI fixes along with introduced new filters.
1608
1609
== Sponsors ==
1610
4
License: GPLv2 or later
5
License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
Requires at least: WordPress 4.1
7
+ Tested up to: 5.2.2
8
+ Stable tag: 4.5.8
9
10
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
11
134
135
== Changelog ==
136
137
+ = 4.5.8 [August 7, 2019] =
138
+
139
+ * FIXED
140
+
141
+ * Duplicate media creation when posted from lightbox and activity creation for media comments kept off from settings
142
+ * Upload terms and direct upload compatibility while commenting from activity
143
+ * Overlapped media file name in BuddyPress Legacy template
144
+ * Issue with uploader container which gets hidden after media upload on activity page
145
+ * Fix default theme css enqueue for BuddyPress templates.
146
+ * Minor UI bug Fixes
147
+
148
= 4.5.7 [June 12, 2019] =
149
150
* NEW
1614
1615
== Upgrade Notice ==
1616
1617
+ = 4.5.8 =
1618
+ rtMedia 4.5.8, with fixes for, media duplication when posted from the lightbox, upload terms and direct media upload compability on activity comment and media caption overlapping issue on Legacy template with some UI fixes.
1619
1620
== Sponsors ==
1621