Version Description
Requires BuddyPress 1.7 or higher, if using BuddyPress. Album media count, @mention functionality on media comments, Next previous link on media page and bug.
=
Download this release
Release Info
Developer | mangeshp |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 4.2 |
Comparing to | |
See all releases |
Code changes from version 4.1.7 to 4.2
- Local +0 -0
- app/admin/RTMediaAdmin.php +2 -1
- app/assets/admin/css/admin.css +9 -0
- app/assets/admin/css/admin.min.css +1 -1
- app/assets/admin/css/sass/_layout.scss +14 -0
- app/assets/admin/js/admin.min.js +1 -1
- app/assets/admin/js/settings.js +50 -1
- app/assets/css/rtmedia.css +55 -0
- app/assets/css/rtmedia.min.css +1 -1
- app/assets/css/sass/_activity.scss +51 -23
- app/assets/css/sass/_buddypress.scss +8 -0
- app/assets/css/sass/_popup.scss +20 -0
- app/assets/css/sass/_rtm.scss +11 -0
- app/assets/js/rtMedia.backbone.js +428 -335
- app/assets/js/rtMedia.js +33 -8
- app/assets/js/rtmedia.min.js +2 -2
- app/helper/RTMediaCommentNotification.php +2 -3
- app/helper/RTMediaLicense.php +13 -1
- app/helper/RTMediaSupport.php +130 -24
- app/helper/db/RTDBModel.php +0 -1
- app/helper/rtUploadAttachment.php +43 -0
- app/importers/RTMediaMediaSizeImporter.php +2 -1
- app/importers/RTMediaMigration.php +1 -1
- app/main/RTMedia.php +29 -1
- app/main/controllers/activity/RTMediaBuddyPressActivity.php +160 -161
- app/main/controllers/media/RTMediaComment.php +2 -2
- app/main/controllers/media/RTMediaLike.php +18 -1
- app/main/controllers/media/RTMediaLoginPopup.php +1 -1
- app/main/controllers/template/RTMediaNav.php +17 -10
- app/main/controllers/template/RTMediaTemplate.php +5 -1
- app/main/controllers/template/rtmedia-actions.php +273 -12
- app/main/controllers/template/rtmedia-filters.php +93 -51
- app/main/controllers/template/rtmedia-functions.php +251 -53
- app/main/routers/query/RTMediaQuery.php +80 -80
- index.php +1 -1
- languages/buddypress-media.po +325 -245
- readme.txt +43 -5
- templates/media/album-gallery-item.php +13 -8
- templates/media/media-single.php +11 -3
Local
ADDED
File without changes
|
app/admin/RTMediaAdmin.php
CHANGED
@@ -863,7 +863,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
|
|
863 |
wp_localize_script( 'rtmedia-admin', 'rtmedia_off_label', esc_html__( 'OFF', 'buddypress-media' ) );
|
864 |
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_ajax', $admin_ajax );
|
865 |
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_url', admin_url() );
|
866 |
-
|
|
|
867 |
|
868 |
$rtmedia_admin_strings = array(
|
869 |
'no_refresh' => esc_html__( 'Please do not refresh this page.', 'buddypress-media' ),
|
863 |
wp_localize_script( 'rtmedia-admin', 'rtmedia_off_label', esc_html__( 'OFF', 'buddypress-media' ) );
|
864 |
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_ajax', $admin_ajax );
|
865 |
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_url', admin_url() );
|
866 |
+
/* path for file upload using ajax */
|
867 |
+
wp_localize_script( 'rtmedia-admin', 'rtmedia_fileupload_url', RTMEDIA_URL.'app/helper/rtUploadAttachment.php' );
|
868 |
|
869 |
$rtmedia_admin_strings = array(
|
870 |
'no_refresh' => esc_html__( 'Please do not refresh this page.', 'buddypress-media' ),
|
app/assets/admin/css/admin.css
CHANGED
@@ -83,6 +83,15 @@
|
|
83 |
padding: 20px 30px;
|
84 |
vertical-align: top;
|
85 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
.rtm-setting-container {
|
88 |
background-color: #f5f5f5;
|
83 |
padding: 20px 30px;
|
84 |
vertical-align: top;
|
85 |
}
|
86 |
+
.rtm-admin-tab-container .rtm-tabs-content #debug tbody {
|
87 |
+
display: block;
|
88 |
+
height: 400px;
|
89 |
+
overflow-y: auto;
|
90 |
+
}
|
91 |
+
.rtm-admin-tab-container .rtm-tabs-content #debug .rtm-download-debuginfo {
|
92 |
+
float: right;
|
93 |
+
margin-top: 14px;
|
94 |
+
}
|
95 |
|
96 |
.rtm-setting-container {
|
97 |
background-color: #f5f5f5;
|
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-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-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}#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 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-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}#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}
|
app/assets/admin/css/sass/_layout.scss
CHANGED
@@ -16,6 +16,20 @@ $container-min-height: 300px;
|
|
16 |
min-height: $container-min-height;
|
17 |
padding: 20px 30px;
|
18 |
vertical-align: top;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
}
|
21 |
|
16 |
min-height: $container-min-height;
|
17 |
padding: 20px 30px;
|
18 |
vertical-align: top;
|
19 |
+
|
20 |
+
#debug {
|
21 |
+
tbody {
|
22 |
+
display: block;
|
23 |
+
height: 400px;
|
24 |
+
overflow-y: auto;
|
25 |
+
}
|
26 |
+
|
27 |
+
.rtm-download-debuginfo {
|
28 |
+
float: right;
|
29 |
+
margin-top: 14px;
|
30 |
+
}
|
31 |
+
}
|
32 |
+
|
33 |
}
|
34 |
}
|
35 |
|
app/assets/admin/js/admin.min.js
CHANGED
@@ -2,4 +2,4 @@
|
|
2 |
* rtMedia JavaScript Library
|
3 |
* @package rtMedia
|
4 |
*/
|
5 |
-
function rtmedia_addon_do_not_show(){var a={action:"rtmedia_addon_popup_not_show_again"};jQuery.post(rtmedia_admin_ajax,a,function(a){jQuery("#TB_window").remove(),jQuery("#TB_overlay").remove()})}"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick();var e="false"!==c.$elem.attr("data-hash");if(e===!0){var f=b.location.hash;f&&c.$elem.find("li").find('a[href="'+f+'"]').trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find('a[href="'+a+'"]').trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li"),e=d.find("a");e.on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");a(f).removeClass("hide");var g="false"!==c.$elem.attr("data-hash");if(g===!0){var h=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(h)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){var c=this,d=c.$elem.find("li"),e=d.find("a");e.each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document),jQuery(document).ready(function(a){var b=document.createElement("div");b.setAttribute("class","rtm-warning rtm-fly-warning hide"),a(".rtm-tabs").rtTab(),a('input[name^="rtmedia-options"]').on("change",function(){a(".rtm-save-settings-msg").remove(),0===a(".rtm-fly-warning").length&&(b.innerText=rtmedia_admin_strings.settings_changed,a(".rtm-button-container.top").prepend(b),a(".rtm-fly-warning").slideDown())}),a(".rtm-img-size-setting .form-table tr:nth-child(7) td:last-child").attr("colspan","3"),a(".rtm-field-wrap .switch input[type=checkbox]").each(function(){var b=a(this);b.parents("table").attr("data-depends")||(b.is(":checked")?(b.parents("table").next(".rtm-notice").slideDown(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideDown()})):(b.parents("table").next(".rtm-notice").slideUp(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideUp()}))),b.parents("tr").next("tr").attr("data-depends")&&(b.is(":checked")?b.parents("tr").next("tr").slideDown():b.parents("tr").next("tr").slideUp())}),a(".rtm-field-wrap .switch input[type=checkbox]").on("change",function(){var b=a(this);b.parents("table").attr("data-depends")||(b.parents("table").next(".rtm-notice").slideToggle(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideToggle()})),b.parents("tr").next("tr").attr("data-depends")&&b.parents("tr").next("tr").slideToggle()});var c=Backbone.View.extend({el:a(".bp-media-admin"),events:{"click .rtm-theme":"render","click .rtm-close":"close","click .rtm-previous":"previousTheme","click .rtm-next":"nextTheme",keyup:"keyEvent"},initialize:function(){_.bindAll(this,"render","close","nextTheme","previousTheme","keyEvent"),this.keyEvent()},render:function(b){a(".rtm-theme").removeClass("rtm-modal-open");var c=a(b.currentTarget).addClass("rtm-modal-open").find(".rtm-theme-content").html();if(a(".rtm-theme-overlay")[0])a(".rtm-theme-overlay").show(),a(this.el).find(".rtm-theme-content-wrap").empty().append(c);else{var d={themeContent:c};a(this.el).append(rtMediaAdmin.templates.rtm_theme_overlay(d))}a(b.currentTarget).is(":first-child")?a(".rtm-previous").addClass("disabled"):a(b.currentTarget).is(":last-child")?a(".rtm-next").addClass("disabled"):a(".rtm-next, .rtm-previous").removeClass("disabled")},close:function(){a(".rtm-theme").removeClass("rtm-modal-open"),a(".rtm-theme-overlay").hide(),a(".rtm-next, .rtm-previous").removeClass("disabled")},nextTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1},previousTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1},keyEvent:function(){a("body").on("keyup",function(b){return 39===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1):37===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1):void(27===b.keyCode&&a(".rtm-close").trigger("click"))})}});new c});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}var f=document.createElement("div");f.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(f);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(f);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]+$");jQuery("input[name*='defaultSizes']").each(function(a){if(!c.test(jQuery(this).val()))return alert("Invalid value for "+jQuery(this).attr("name").replace("rtmedia-options[defaultSizes_","").replace("]","").replace(/_/g," ").replace(/(\b)([a-zA-Z] )/g,function(a){return a.toUpperCase()})),b=!1,!1});var d=jQuery('input[name^="rtmedia-options[general_videothumbs]"]');if(b&&d.length>0&&"undefined"!=typeof d){var e="",f=0;if(d.val()<=0?(e+=rtmedia_admin_strings.video_thumbnail_error,f=2):c.test(d.val())||(e+=rtmedia_admin_strings.video_thumbnail_invalid_value+" "+Math.round(d.val())+".",f=Math.round(d.val())),""!=e)return alert(e),d.val(f),b=!1,!1}var g=jQuery('input[name^="rtmedia-options[general_jpeg_image_quality]"]');if(b&&g.length>0&&"undefined"!=typeof g){var e="",h=0;if(g.val()<=0?(e+=rtmedia_admin_strings.jpeg_quality_negative_error,h=90):g.val()>100?(e+=rtmedia_admin_strings.jpeg_quality_percentage_error,h=100):c.test(g.val())||(e+=rtmedia_admin_strings.jpeg_quality_invalid_value+" "+Math.round(g.val())+".",h=Math.round(g.val())),""!=e)return alert(e),g.val(h),b=!1,!1}var i=jQuery('input[name^="rtmedia-options[general_perPageMedia]"]');if(b&&i.length>0&&"undefined"!=typeof i){var e="",j=0;if(i.val()<1?(e+=rtmedia_admin_strings.per_page_media_negative_value,j=10):jQuery.isNumeric(i.val())&&Math.floor(i.val())!=i.val()&&(e+=rtmedia_admin_strings.per_page_media_positive_error+" "+Math.round(i.val())+".",j=Math.round(i.val())),""!=e)return alert(e),i.val(j),b=!1,!1}b||a.preventDefault()}),jQuery(document).on("click","#bpm-services .encoding-try-now,#rtm-services .encoding-try-now",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.are_you_sure)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_free_encoding_subscribe"};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),document.location.href=b+"&apikey="+a.apikey+c}else{jQuery(".encoding-try-now").next().remove(),jQuery("#settings-error-encoding-error").remove();var d={id:"settings-error-encoding-error",msg:a.error,class:"error"};jQuery("#bp-media-settings-boxes").before(rtMediaAdmin.templates.rtm_msg_div(d))}})}}),jQuery(document).on("click","#api-key-submit",function(a){if(a.preventDefault(),0==jQuery(this).next("img").length){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b))}var b={action:"rtmedia_enter_api_key",apikey:jQuery("#new-api-key").val()};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),b.toString().indexOf("&apikey="+a.apikey)==-1&&(b+="&apikey="+a.apikey),b.toString().indexOf("&update=true")==-1&&(b+="&update=true"),document.location.href=b+c}else{jQuery("#settings-error-api-key-error").remove();var d={id:"settings-error-api-key-error",msg:a.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(d))}jQuery("#api-key-submit").next("img").remove()})}),jQuery(document).on("click","#disable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.disable_encoding)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_disable_encoding"};jQuery.post(ajaxurl,b,function(a){if(a){if(jQuery(".settings-error-encoding-disabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0)jQuery("#settings-encoding-successfully-updated p").html(a);else{var b={id:"settings-encoding-successfully-updated",msg:a,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}jQuery("#rtmedia-encoding-usage").hide(),jQuery("#disable-encoding").next("img").remove(),jQuery("#disable-encoding").hide(),jQuery("#enable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();var b={id:"settings-error-encoding-disabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}})}}),jQuery(document).on("click","#enable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.enable_encoding)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_enable_encoding"};jQuery.post(ajaxurl,b,function(a){if(a){if(jQuery(".settings-error-encoding-enabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0)jQuery("#settings-encoding-successfully-updated p").html(a);else{var b={id:"settings-encoding-successfully-updated",msg:a,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}jQuery("#enable-encoding").next("img").remove(),jQuery("#enable-encoding").hide(),jQuery("#disable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();var b={id:"settings-error-encoding-enabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}})}}),jQuery(".bp-media-encoding-table").on("click",".bpm-unsubscribe",function(a){a.preventDefault(),jQuery("#bpm-unsubscribe-dialog").dialog({dialogClass:"wp-dialog",modal:!0,buttons:{Unsubscribe:function(){jQuery(this).dialog("close");var a={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(".bpm-unsubscribe").after(rtMediaAdmin.templates.rtm_image(a));var a={action:"rtmedia_unsubscribe_encoding_service",note:jQuery("#bpm-unsubscribe-note").val(),plan:jQuery(".bpm-unsubscribe").attr("data-plan"),price:jQuery(".bpm-unsubscribe").attr("data-price")};jQuery.getJSON(ajaxurl,a,function(a){if(void 0===a.error&&a.updated){jQuery(".bpm-unsubscribe").next().remove(),jQuery(".bpm-unsubscribe").after(a.form),jQuery(".bpm-unsubscribe").remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var b={id:"settings-unsubscribed-successfully",msg:a.updated,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b)),window.location.hash="#settings-unsubscribed-successfully"}else{jQuery(".bpm-unsubscribe").next().remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var b={id:"settings-unsubscribe-error",msg:a.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b)),window.location.hash="#settings-unsubscribe-error"}})}}})}),jQuery("#bpmedia-bpalbumimporter").on("change","#bp-album-import-accept",function(){jQuery(".bp-album-import-accept").toggleClass("i-accept"),jQuery(".bp-album-importer-wizard").slideToggle()}),jQuery("#rtprivacyinstall").click(function(a){a.preventDefault(),$progress_parent=jQuery("#rtprivacyinstaller"),$progress_parent.find(".rtprivacytype").each(function(){if($type=jQuery(this).attr("id"),"total"==$type){$values=[],jQuery(this).find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),$data={};for(var a=1;a<=$values.steps[0];a++)$count=20,a==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=20)),newvals={page:a,action:"rtmedia_privacy_install",count:$count,values:$values},$data[a]=newvals;var c=jQuery.Deferred();c.resolve(),jQuery.each($data,function(a,d){c=c.pipe(function(){return b(d)})})}})}),jQuery("#bpmedia-bpalbumimport-cleanup").click(function(a){a.preventDefault(),jQuery.post(ajaxurl,{action:"rtmedia_rt_album_cleanup",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},function(a){window.location=settings_rt_album_import_url})}),jQuery("#bpmedia-bpalbumimporter").on("click","#bpmedia-bpalbumimport",function(a){if(a.preventDefault(),!jQuery("#bp-album-import-accept").prop("checked")){jQuery("html, body").animate({scrollTop:jQuery("#bp-album-import-accept").offset().top},500);var b=jQuery(".bp-album-import-accept"),d=500,e="#FFEBE8",f=3;return void function a(){b.css("background-color","#EE0000"),setTimeout(function(){b.css("background-color",e),--f&&setTimeout(a,d)},d)}()}if(jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),!jQuery(".bpm-ajax-loader").length){var g={src:rtmedia_admin_url+"images/wpspin_light.gif",class:"bpm-ajax-loader",norefresh:rtmedia_admin_strings.no_refresh};jQuery(this).after(rtMediaAdmin.templates.rtm_image(g))}$progress_parent=jQuery("#bpmedia-bpalbumimport"),$values=[],jQuery(this).parent().find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),0==$values.steps[0]&&($values.steps[0]=1),$data={};for(var f=1;f<=$values.steps[0];f++)$count=5,f==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:f,action:"rtmedia_rt_album_import",count:$count,values:$values,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$data[f]=newvals;var h=jQuery.Deferred();h.resolve(),jQuery.each($data,function(a,b){h=h.pipe(function(){return c(b)})})}),jQuery("#bp-media-settings-boxes").on("click",".interested",function(){jQuery(".interested-container").removeClass("hidden"),jQuery(".choice-free").attr("required","required")}),jQuery("#bp-media-settings-boxes").on("click",".not-interested",function(){jQuery(".interested-container").addClass("hidden"),jQuery(".choice-free").removeAttr("required")}),jQuery("#video-transcoding-main-container").on("click",".video-transcoding-survey",function(a){a.preventDefault();var b={action:"rtmedia_convert_videos_form",email:jQuery(".email").val(),url:jQuery(".url").val(),choice:jQuery('input[name="choice"]:checked').val(),interested:jQuery('input[name="interested"]:checked').val()};return jQuery.post(ajaxurl,b,function(a){var b={msg:a,strong:"yes"};jQuery("#video-transcoding-main-container").html(rtMediaAdmin.templates.rtm_p_tag(b))}),!1}),jQuery("#bpmedia-bpalbumimporter").on("click",".deactivate-bp-album",function(a){a.preventDefault(),$bpalbum=jQuery(this);var b={action:"rtmedia_rt_album_deactivate",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()};jQuery.get(ajaxurl,b,function(a){if(a)location.reload();else{var b={msg:rtmedia_admin_strings.something_went_wrong};$bpalbum.parent().after(rtMediaAdmin.templates.rtm_p_tag(b))}})}),jQuery(".updated").on("click",".bpm-hide-encoding-notice",function(){var a={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(a));var a={action:"rtmedia_hide_encoding_notice"};jQuery.post(ajaxurl,a,function(a){a&&jQuery(".bpm-hide-encoding-notice").closest(".updated").remove()})}),jQuery("#rtmedia-bp-enable-activity").is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0),jQuery("#rtmedia-bp-enable-activity").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0)});var g="",h="";void 0!==rtmedia_on_label&&(g='data-on-label="'+rtmedia_on_label+'"'),void 0!==rtmedia_off_label&&(h='data-off-label="'+rtmedia_off_label+'"'),jQuery("#rtmedia-submit-request").click(function(){var b=jQuery("#name").val(),c=jQuery("#email").val(),d=jQuery("#website").val(),e=jQuery("#phone").val(),f=jQuery("#subject").val(),g=jQuery("#details").val(),h=jQuery('input[name="request_type"]').val(),i=jQuery('input[name="request_id"]').val(),j=jQuery('input[name="server_address"]').val(),k=jQuery('input[name="ip_address"]').val(),l=jQuery('input[name="server_type"]').val(),m=jQuery('input[name="user_agent"]').val(),n={name:b,email:c,website:d,phone:e,subject:f,details:g,request_id:i,request_type:"premium_support",server_address:j,ip_address:k,server_type:l,user_agent:m};if("bug_report"==h){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,phone:e,subject:f,details:g,request_id:i,request_type:"premium_support",server_address:j,ip_address:k,server_type:l,user_agent:m,wp_admin_username:o,wp_admin_pwd:p,ssh_ftp_host:q,ssh_ftp_username:r,ssh_ftp_pwd:s}}for(formdata in n)if(""==n[formdata]&&"phone"!=formdata)return alert("Please enter "+formdata.replace("_"," ")+" field."),!1;return data={action:"rtmedia_submit_request",form_data:n,support_wpnonce:jQuery("#support_wpnonce").val()},jQuery.post(ajaxurl,data,function(b){return b=b.trim(),"false"==b?(alert(rtmedia_admin_support_strings.all_fields_error),!1):(a("#rtmedia_service_contact_container").empty(),void a("#rtmedia_service_contact_container").append(b))}),!1}),jQuery("#cancel-request").click(function(){return!1}),jQuery(".rtm_enable_masonry_view input[type=checkbox]").is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide(),jQuery(".rtm_enable_masonry_view input[type=checkbox]").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide()}),jQuery("#rtm-masonry-change-thumbnail-info").click(function(a){jQuery("html, body").animate({scrollTop:0},"500","swing")})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
|
2 |
* rtMedia JavaScript Library
|
3 |
* @package rtMedia
|
4 |
*/
|
5 |
+
function rtmedia_addon_do_not_show(){var a={action:"rtmedia_addon_popup_not_show_again"};jQuery.post(rtmedia_admin_ajax,a,function(a){jQuery("#TB_window").remove(),jQuery("#TB_overlay").remove()})}"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick();var e="false"!==c.$elem.attr("data-hash");if(e===!0){var f=b.location.hash;f&&c.$elem.find("li").find('a[href="'+f+'"]').trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find('a[href="'+a+'"]').trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li"),e=d.find("a");e.on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");a(f).removeClass("hide");var g="false"!==c.$elem.attr("data-hash");if(g===!0){var h=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(h)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){var c=this,d=c.$elem.find("li"),e=d.find("a");e.each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document),jQuery(document).ready(function(a){var b=document.createElement("div");b.setAttribute("class","rtm-warning rtm-fly-warning hide"),a(".rtm-tabs").rtTab(),a('input[name^="rtmedia-options"]').on("change",function(){a(".rtm-save-settings-msg").remove(),0===a(".rtm-fly-warning").length&&(b.innerText=rtmedia_admin_strings.settings_changed,a(".rtm-button-container.top").prepend(b),a(".rtm-fly-warning").slideDown())}),a(".rtm-img-size-setting .form-table tr:nth-child(7) td:last-child").attr("colspan","3"),a(".rtm-field-wrap .switch input[type=checkbox]").each(function(){var b=a(this);b.parents("table").attr("data-depends")||(b.is(":checked")?(b.parents("table").next(".rtm-notice").slideDown(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideDown()})):(b.parents("table").next(".rtm-notice").slideUp(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideUp()}))),b.parents("tr").next("tr").attr("data-depends")&&(b.is(":checked")?b.parents("tr").next("tr").slideDown():b.parents("tr").next("tr").slideUp())}),a(".rtm-field-wrap .switch input[type=checkbox]").on("change",function(){var b=a(this);b.parents("table").attr("data-depends")||(b.parents("table").next(".rtm-notice").slideToggle(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideToggle()})),b.parents("tr").next("tr").attr("data-depends")&&b.parents("tr").next("tr").slideToggle()});var c=Backbone.View.extend({el:a(".bp-media-admin"),events:{"click .rtm-theme":"render","click .rtm-close":"close","click .rtm-previous":"previousTheme","click .rtm-next":"nextTheme",keyup:"keyEvent"},initialize:function(){_.bindAll(this,"render","close","nextTheme","previousTheme","keyEvent"),this.keyEvent()},render:function(b){a(".rtm-theme").removeClass("rtm-modal-open");var c=a(b.currentTarget).addClass("rtm-modal-open").find(".rtm-theme-content").html();if(a(".rtm-theme-overlay")[0])a(".rtm-theme-overlay").show(),a(this.el).find(".rtm-theme-content-wrap").empty().append(c);else{var d={themeContent:c};a(this.el).append(rtMediaAdmin.templates.rtm_theme_overlay(d))}a(b.currentTarget).is(":first-child")?a(".rtm-previous").addClass("disabled"):a(b.currentTarget).is(":last-child")?a(".rtm-next").addClass("disabled"):a(".rtm-next, .rtm-previous").removeClass("disabled")},close:function(){a(".rtm-theme").removeClass("rtm-modal-open"),a(".rtm-theme-overlay").hide(),a(".rtm-next, .rtm-previous").removeClass("disabled")},nextTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1},previousTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1},keyEvent:function(){a("body").on("keyup",function(b){return 39===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1):37===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1):void(27===b.keyCode&&a(".rtm-close").trigger("click"))})}});new c});var rtMediaAdmin=new Object;rtMediaAdmin.templates={rtm_image:wp.template("rtm-image"),rtm_msg_div:wp.template("rtm-msg-div"),rtm_album_favourites_importer:wp.template("rtm-album-favourites-importer"),rtm_map_mapping_failure:wp.template("rtm-map-mapping-failure"),rtm_p_tag:wp.template("rtm-p-tag"),rtm_theme_overlay:wp.template("rtm-theme-overlay")},jQuery(document).ready(function(a){function b(a){return jQuery.post(ajaxurl,a,function(b){if(0!=b){var c=!1,d=Math.ceil((20*parseInt(b)+parseInt(a.values.finished))/parseInt(a.values.total)*100);d>100&&(d=100,c=!0),jQuery("#rtprogressbar>div").css("width",d+"%"),finished=jQuery("#rtprivacyinstaller span.finished").html(),jQuery("#rtprivacyinstaller span.finished").html(parseInt(finished)+a.count),c&&jQuery.post(ajaxurl,{action:"rtmedia_privacy_redirect"},function(a){window.location=settings_url})}else{var e={msg:"Row "+b+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(e))}})}function c(a){return jQuery.getJSON(ajaxurl,a,function(b){if(favorites=!1,b){var c=Math.ceil((5*parseInt(b.page)+parseInt(a.values.finished))/parseInt(a.values.total)*100);comments_total=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.total").html(),users_total=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.total").html(),media_total=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.total").html(),comments_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(),users_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html();var f=Math.ceil((parseInt(b.comments)+parseInt(comments_finished))/parseInt(comments_total)*100),g=Math.ceil(parseInt(b.users)/parseInt(users_total)*100);(c>100||100==c)&&(c=100,favorites=!0),jQuery(".bp-album-media #rtprogressbar>div").css("width",c+"%"),jQuery(".bp-album-comments #rtprogressbar>div").css("width",f+"%"),jQuery(".bp-album-users #rtprogressbar>div").css("width",g+"%"),media_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(),parseInt(media_finished)<parseInt(media_total)&&jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(parseInt(media_finished)+a.count),jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(parseInt(b.comments)+parseInt(comments_finished)),jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html(parseInt(b.users)),favorites&&(favorite_data={action:"rtmedia_rt_album_import_favorites",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},jQuery.post(ajaxurl,favorite_data,function(a){if(!a.hasOwnProperty(favorites)||0===a.favorites&&"0"===a.favorites)window.setTimeout(e,2e3);else{if(!jQuery(".bp-album-favorites").length){var b={users:a.users};jQuery(".bp-album-comments").after(rtMediaAdmin.templates.rtm_album_favourites_importer(b))}$favorites={},0!=a.offset||"0"!=a.offset?start=1*a.offset+1:start=1;for(var c=start;c<=a.users;c++)$count=1,c==a.users&&($count=parseInt(a.users%$count),0==$count&&($count=1)),newvals={action:"rtmedia_rt_album_import_step_favorites",offset:1*(c-1),redirect:c==a.users,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$favorites[c]=newvals;var f=jQuery.Deferred();f.resolve(),jQuery.each($favorites,function(a,b){f=f.pipe(function(){return d(b)})})}},"json"))}else if(a.hasOwnProperty(page)){var h={msg:"Row "+b.page+" failed."};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(h))}else{var h={msg:rtmedia_admin_strings.request_failed};jQuery("#map_progress_msgs").html(rtMediaAdmin.templates.rtm_map_mapping_failure(h))}})}function d(a){return jQuery.post(ajaxurl,a,function(a){redirect=!1,favorites_total=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.total").html(),favorites_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(),jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(parseInt(favorites_finished)+1);var b=Math.ceil(parseInt(favorites_finished+1)/parseInt(favorites_total)*100);(b>100||100==b)&&(b=100,redirect=!0),jQuery(".bp-album-favorites #rtprogressbar>div").css("width",b+"%"),redirect&&window.setTimeout(e,2e3)})}function e(){window.location=document.URL}function f(a){k=a.target.files,g(a)}function g(a){a.stopPropagation(),a.preventDefault();var b=new FormData;jQuery.each(k,function(a,c){b.append(a,c)}),jQuery.ajax({url:rtmedia_fileupload_url,type:"POST",data:b,cache:!1,dataType:"json",processData:!1,contentType:!1,success:function(a){if("undefined"==typeof a.error){if(a.exceed_size_msg)return jQuery("#debuglog").val(""),alert(a.exceed_size_msg),!1;jQuery("#debuglog_temp_path").val(a.debug_attachmanet)}else jQuery("#debuglog").val(""),alert("ERRORS: "+a.error)}})}var h=document.createElement("div");h.className="support_form_loader",a(".rtm-save-settings-msg").length>0&&setTimeout(function(){a(".rtm-save-settings-msg").remove()},1e4),jQuery("#spread-the-word").on("click","#bp-media-add-linkback",function(){var a={action:"rtmedia_linkback",linkback:jQuery("#bp-media-add-linkback:checked").length};jQuery.post(rtmedia_admin_ajax,a,function(a){})}),jQuery("#bp-media-settings-boxes").on("change","#select-request",function(){if(jQuery(this).val()){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(h);var a={action:"rtmedia_select_request",form:jQuery(this).val()};jQuery.post(ajaxurl,a,function(a){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(a).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("click","#cancel-request",function(){if(jQuery(this).val()){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(h);var a={action:"rtmedia_cancel_request"};jQuery.post(ajaxurl,a,function(a){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(a).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(a){var b=!0,c=new RegExp("^[0-9]+$");jQuery("input[name*='defaultSizes']").each(function(a){if(!c.test(jQuery(this).val()))return alert("Invalid value for "+jQuery(this).attr("name").replace("rtmedia-options[defaultSizes_","").replace("]","").replace(/_/g," ").replace(/(\b)([a-zA-Z] )/g,function(a){return a.toUpperCase()})),b=!1,!1});var d=jQuery('input[name^="rtmedia-options[general_videothumbs]"]');if(b&&d.length>0&&"undefined"!=typeof d){var e="",f=0;if(d.val()<=0?(e+=rtmedia_admin_strings.video_thumbnail_error,f=2):c.test(d.val())||(e+=rtmedia_admin_strings.video_thumbnail_invalid_value+" "+Math.round(d.val())+".",f=Math.round(d.val())),""!=e)return alert(e),d.val(f),b=!1,!1}var g=jQuery('input[name^="rtmedia-options[general_jpeg_image_quality]"]');if(b&&g.length>0&&"undefined"!=typeof g){var e="",h=0;if(g.val()<=0?(e+=rtmedia_admin_strings.jpeg_quality_negative_error,h=90):g.val()>100?(e+=rtmedia_admin_strings.jpeg_quality_percentage_error,h=100):c.test(g.val())||(e+=rtmedia_admin_strings.jpeg_quality_invalid_value+" "+Math.round(g.val())+".",h=Math.round(g.val())),""!=e)return alert(e),g.val(h),b=!1,!1}var i=jQuery('input[name^="rtmedia-options[general_perPageMedia]"]');if(b&&i.length>0&&"undefined"!=typeof i){var e="",j=0;if(i.val()<1?(e+=rtmedia_admin_strings.per_page_media_negative_value,j=10):jQuery.isNumeric(i.val())&&Math.floor(i.val())!=i.val()&&(e+=rtmedia_admin_strings.per_page_media_positive_error+" "+Math.round(i.val())+".",j=Math.round(i.val())),""!=e)return alert(e),i.val(j),b=!1,!1}b||a.preventDefault()}),jQuery(document).on("click","#bpm-services .encoding-try-now,#rtm-services .encoding-try-now",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.are_you_sure)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_free_encoding_subscribe"};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),document.location.href=b+"&apikey="+a.apikey+c}else{jQuery(".encoding-try-now").next().remove(),jQuery("#settings-error-encoding-error").remove();var d={id:"settings-error-encoding-error",msg:a.error,class:"error"};jQuery("#bp-media-settings-boxes").before(rtMediaAdmin.templates.rtm_msg_div(d))}})}}),jQuery(document).on("click","#api-key-submit",function(a){if(a.preventDefault(),0==jQuery(this).next("img").length){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b))}var b={action:"rtmedia_enter_api_key",apikey:jQuery("#new-api-key").val()};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),b.toString().indexOf("&apikey="+a.apikey)==-1&&(b+="&apikey="+a.apikey),b.toString().indexOf("&update=true")==-1&&(b+="&update=true"),document.location.href=b+c}else{jQuery("#settings-error-api-key-error").remove();var d={id:"settings-error-api-key-error",msg:a.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(d))}jQuery("#api-key-submit").next("img").remove()})}),jQuery(document).on("click","#disable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.disable_encoding)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_disable_encoding"};jQuery.post(ajaxurl,b,function(a){if(a){if(jQuery(".settings-error-encoding-disabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0)jQuery("#settings-encoding-successfully-updated p").html(a);else{var b={id:"settings-encoding-successfully-updated",msg:a,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}jQuery("#rtmedia-encoding-usage").hide(),jQuery("#disable-encoding").next("img").remove(),jQuery("#disable-encoding").hide(),jQuery("#enable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();var b={id:"settings-error-encoding-disabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}})}}),jQuery(document).on("click","#enable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.enable_encoding)){var b={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(b));var b={action:"rtmedia_enable_encoding"};jQuery.post(ajaxurl,b,function(a){if(a){if(jQuery(".settings-error-encoding-enabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0)jQuery("#settings-encoding-successfully-updated p").html(a);else{var b={id:"settings-encoding-successfully-updated",msg:a,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}jQuery("#enable-encoding").next("img").remove(),jQuery("#enable-encoding").hide(),jQuery("#disable-encoding").show()}else{jQuery("#settings-error-encoding-disabled").remove();var b={id:"settings-error-encoding-enabled",msg:rtmedia_admin_strings.something_went_wrong,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b))}})}}),jQuery(".bp-media-encoding-table").on("click",".bpm-unsubscribe",function(a){a.preventDefault(),jQuery("#bpm-unsubscribe-dialog").dialog({dialogClass:"wp-dialog",modal:!0,buttons:{Unsubscribe:function(){jQuery(this).dialog("close");var a={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(".bpm-unsubscribe").after(rtMediaAdmin.templates.rtm_image(a));var a={action:"rtmedia_unsubscribe_encoding_service",note:jQuery("#bpm-unsubscribe-note").val(),plan:jQuery(".bpm-unsubscribe").attr("data-plan"),price:jQuery(".bpm-unsubscribe").attr("data-price")};jQuery.getJSON(ajaxurl,a,function(a){if(void 0===a.error&&a.updated){jQuery(".bpm-unsubscribe").next().remove(),jQuery(".bpm-unsubscribe").after(a.form),jQuery(".bpm-unsubscribe").remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var b={id:"settings-unsubscribed-successfully",msg:a.updated,class:"updated"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b)),window.location.hash="#settings-unsubscribed-successfully"}else{jQuery(".bpm-unsubscribe").next().remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove();var b={id:"settings-unsubscribe-error",msg:a.error,class:"error"};jQuery("h2:first").after(rtMediaAdmin.templates.rtm_msg_div(b)),window.location.hash="#settings-unsubscribe-error"}})}}})}),jQuery("#bpmedia-bpalbumimporter").on("change","#bp-album-import-accept",function(){jQuery(".bp-album-import-accept").toggleClass("i-accept"),jQuery(".bp-album-importer-wizard").slideToggle()}),jQuery("#rtprivacyinstall").click(function(a){a.preventDefault(),$progress_parent=jQuery("#rtprivacyinstaller"),$progress_parent.find(".rtprivacytype").each(function(){if($type=jQuery(this).attr("id"),"total"==$type){$values=[],jQuery(this).find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),$data={};for(var a=1;a<=$values.steps[0];a++)$count=20,a==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=20)),newvals={page:a,action:"rtmedia_privacy_install",count:$count,values:$values},$data[a]=newvals;var c=jQuery.Deferred();c.resolve(),jQuery.each($data,function(a,d){c=c.pipe(function(){return b(d)})})}})}),jQuery("#bpmedia-bpalbumimport-cleanup").click(function(a){a.preventDefault(),jQuery.post(ajaxurl,{action:"rtmedia_rt_album_cleanup",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},function(a){window.location=settings_rt_album_import_url})}),jQuery("#bpmedia-bpalbumimporter").on("click","#bpmedia-bpalbumimport",function(a){if(a.preventDefault(),!jQuery("#bp-album-import-accept").prop("checked")){jQuery("html, body").animate({scrollTop:jQuery("#bp-album-import-accept").offset().top},500);var b=jQuery(".bp-album-import-accept"),d=500,e="#FFEBE8",f=3;return void function a(){b.css("background-color","#EE0000"),setTimeout(function(){b.css("background-color",e),--f&&setTimeout(a,d)},d)}()}if(jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),!jQuery(".bpm-ajax-loader").length){var g={src:rtmedia_admin_url+"images/wpspin_light.gif",class:"bpm-ajax-loader",norefresh:rtmedia_admin_strings.no_refresh};jQuery(this).after(rtMediaAdmin.templates.rtm_image(g))}$progress_parent=jQuery("#bpmedia-bpalbumimport"),$values=[],jQuery(this).parent().find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),0==$values.steps[0]&&($values.steps[0]=1),$data={};for(var f=1;f<=$values.steps[0];f++)$count=5,f==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:f,action:"rtmedia_rt_album_import",count:$count,values:$values,rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()},$data[f]=newvals;var h=jQuery.Deferred();h.resolve(),jQuery.each($data,function(a,b){h=h.pipe(function(){return c(b)})})}),jQuery("#bp-media-settings-boxes").on("click",".interested",function(){jQuery(".interested-container").removeClass("hidden"),jQuery(".choice-free").attr("required","required")}),jQuery("#bp-media-settings-boxes").on("click",".not-interested",function(){jQuery(".interested-container").addClass("hidden"),jQuery(".choice-free").removeAttr("required")}),jQuery("#video-transcoding-main-container").on("click",".video-transcoding-survey",function(a){a.preventDefault();var b={action:"rtmedia_convert_videos_form",email:jQuery(".email").val(),url:jQuery(".url").val(),choice:jQuery('input[name="choice"]:checked').val(),interested:jQuery('input[name="interested"]:checked').val()};return jQuery.post(ajaxurl,b,function(a){var b={msg:a,strong:"yes"};jQuery("#video-transcoding-main-container").html(rtMediaAdmin.templates.rtm_p_tag(b))}),!1}),jQuery("#bpmedia-bpalbumimporter").on("click",".deactivate-bp-album",function(a){a.preventDefault(),$bpalbum=jQuery(this);var b={action:"rtmedia_rt_album_deactivate",rtm_wpnonce:jQuery("#bpaimporter_wpnonce").val()};jQuery.get(ajaxurl,b,function(a){if(a)location.reload();else{var b={msg:rtmedia_admin_strings.something_went_wrong};$bpalbum.parent().after(rtMediaAdmin.templates.rtm_p_tag(b))}})}),jQuery(".updated").on("click",".bpm-hide-encoding-notice",function(){var a={src:rtmedia_admin_url+"images/wpspin_light.gif"};jQuery(this).after(rtMediaAdmin.templates.rtm_image(a));var a={action:"rtmedia_hide_encoding_notice"};jQuery.post(ajaxurl,a,function(a){a&&jQuery(".bpm-hide-encoding-notice").closest(".updated").remove()})}),jQuery("#rtmedia-bp-enable-activity").is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0),jQuery("#rtmedia-bp-enable-activity").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0)});var i="",j="";void 0!==rtmedia_on_label&&(i='data-on-label="'+rtmedia_on_label+'"'),void 0!==rtmedia_off_label&&(j='data-off-label="'+rtmedia_off_label+'"');var k;jQuery("input[type=file]").on("change",f),jQuery("#rtmedia-submit-request").click(function(){var b=jQuery("#name").val(),c=jQuery("#email").val(),d=jQuery("#website").val(),e=jQuery("#phone").val(),f=jQuery("#subject").val(),g=jQuery("#details").val(),h=jQuery('input[name="request_type"]').val(),i=jQuery('input[name="request_id"]').val(),j=jQuery('input[name="server_address"]').val(),k=jQuery('input[name="ip_address"]').val(),l=jQuery('input[name="server_type"]').val(),m=jQuery('input[name="user_agent"]').val(),n=jQuery('input[name="debuglog_temp_path"]').val(),o={name:b,email:c,website:d,phone:e,subject:f,details:g,request_id:i,request_type:"premium_support",server_address:j,ip_address:k,server_type:l,user_agent:m,debuglog_temp_path:n};if("bug_report"==h){var p=jQuery("#wp_admin_username").val();if(""==p)return alert(rtmedia_admin_support_strings.wp_admin_username_error),!1;var q=jQuery("#wp_admin_pwd").val();if(""==q)return alert(rtmedia_admin_support_strings.wp_admin_pwd_error),!1;var r=jQuery("#ssh_ftp_host").val();if(""==r)return alert(rtmedia_admin_support_strings.ssh_ftp_host_error),!1;var s=jQuery("#ssh_ftp_username").val();if(""==s)return alert(rtmedia_admin_support_strings.ssh_ftp_username_error),!1;var t=jQuery("#ssh_ftp_pwd").val();if(""==t)return alert(rtmedia_admin_support_strings.ssh_ftp_pwd_error),!1;o={name:b,email:c,website:d,phone:e,subject:f,details:g,request_id:i,request_type:"premium_support",server_address:j,ip_address:k,server_type:l,user_agent:m,wp_admin_username:p,wp_admin_pwd:q,ssh_ftp_host:r,ssh_ftp_username:s,ssh_ftp_pwd:t}}for(formdata in o)if(""==o[formdata]&&"phone"!=formdata)return alert("Please enter "+formdata.replace("_"," ")+" field."),!1;return data={action:"rtmedia_submit_request",form_data:o,support_wpnonce:jQuery("#support_wpnonce").val()},jQuery.post(ajaxurl,data,function(b){return b=b.trim(),"false"==b?(alert(rtmedia_admin_support_strings.all_fields_error),!1):(a("#rtmedia_service_contact_container").empty(),void a("#rtmedia_service_contact_container").append(b))}),!1}),jQuery("#cancel-request").click(function(){return!1}),jQuery(".rtm_enable_masonry_view input[type=checkbox]").is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide(),jQuery(".rtm_enable_masonry_view input[type=checkbox]").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide()}),jQuery("#rtm-masonry-change-thumbnail-info").click(function(a){jQuery("html, body").animate({scrollTop:0},"500","swing")})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
|
app/assets/admin/js/settings.js
CHANGED
@@ -752,6 +752,15 @@ jQuery( document ).ready( function ( $ ) {
|
|
752 |
if ( rtmedia_off_label !== undefined )
|
753 |
offData = 'data-off-label="' + rtmedia_off_label + '"';
|
754 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
755 |
jQuery( '#rtmedia-submit-request' ).click( function () {
|
756 |
var flag = true;
|
757 |
var name = jQuery( '#name' ).val();
|
@@ -766,6 +775,7 @@ jQuery( document ).ready( function ( $ ) {
|
|
766 |
var ip_address = jQuery( 'input[name="ip_address"]' ).val();
|
767 |
var server_type = jQuery( 'input[name="server_type"]' ).val();
|
768 |
var user_agent = jQuery( 'input[name="user_agent"]' ).val();
|
|
|
769 |
var form_data = {
|
770 |
name: name,
|
771 |
email: email,
|
@@ -778,7 +788,8 @@ jQuery( document ).ready( function ( $ ) {
|
|
778 |
server_address: server_address,
|
779 |
ip_address: ip_address,
|
780 |
server_type: server_type,
|
781 |
-
user_agent: user_agent
|
|
|
782 |
};
|
783 |
if ( request_type == "bug_report" ) {
|
784 |
var wp_admin_username = jQuery( '#wp_admin_username' ).val();
|
@@ -849,6 +860,44 @@ jQuery( document ).ready( function ( $ ) {
|
|
849 |
return false;
|
850 |
} );
|
851 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
852 |
jQuery( '#cancel-request' ).click( function () {
|
853 |
return false;
|
854 |
} );
|
752 |
if ( rtmedia_off_label !== undefined )
|
753 |
offData = 'data-off-label="' + rtmedia_off_label + '"';
|
754 |
|
755 |
+
var files;
|
756 |
+
/* upload file immediately after selecting it */
|
757 |
+
jQuery( 'input[type=file]' ).on( 'change', rtmedia_prepare_upload );
|
758 |
+
|
759 |
+
function rtmedia_prepare_upload( event ) {
|
760 |
+
files = event.target.files;
|
761 |
+
rtmedia_upload_files( event );
|
762 |
+
}
|
763 |
+
|
764 |
jQuery( '#rtmedia-submit-request' ).click( function () {
|
765 |
var flag = true;
|
766 |
var name = jQuery( '#name' ).val();
|
775 |
var ip_address = jQuery( 'input[name="ip_address"]' ).val();
|
776 |
var server_type = jQuery( 'input[name="server_type"]' ).val();
|
777 |
var user_agent = jQuery( 'input[name="user_agent"]' ).val();
|
778 |
+
var debuglog_temp_path = jQuery( 'input[name="debuglog_temp_path"]' ).val();
|
779 |
var form_data = {
|
780 |
name: name,
|
781 |
email: email,
|
788 |
server_address: server_address,
|
789 |
ip_address: ip_address,
|
790 |
server_type: server_type,
|
791 |
+
user_agent: user_agent,
|
792 |
+
debuglog_temp_path: debuglog_temp_path
|
793 |
};
|
794 |
if ( request_type == "bug_report" ) {
|
795 |
var wp_admin_username = jQuery( '#wp_admin_username' ).val();
|
860 |
return false;
|
861 |
} );
|
862 |
|
863 |
+
/* Upload file to temporary folder */
|
864 |
+
function rtmedia_upload_files( event ) {
|
865 |
+
event.stopPropagation(); // Stop stuff happening
|
866 |
+
event.preventDefault(); // Totally stop stuff happening
|
867 |
+
|
868 |
+
/* Create a formdata object and add the files */
|
869 |
+
var data = new FormData();
|
870 |
+
jQuery.each( files, function( key, value ) {
|
871 |
+
data.append( key, value );
|
872 |
+
});
|
873 |
+
|
874 |
+
jQuery.ajax ({
|
875 |
+
url: rtmedia_fileupload_url,
|
876 |
+
type: 'POST',
|
877 |
+
data: data,
|
878 |
+
cache: false,
|
879 |
+
dataType: 'json',
|
880 |
+
processData: false,
|
881 |
+
contentType: false,
|
882 |
+
success: function( data ) {
|
883 |
+
|
884 |
+
if( typeof data.error === 'undefined' ) {
|
885 |
+
if ( data.exceed_size_msg ) {
|
886 |
+
jQuery( '#debuglog' ).val( '' );
|
887 |
+
alert( data.exceed_size_msg );
|
888 |
+
return false;
|
889 |
+
}
|
890 |
+
/* if file uploaded successfully, then set that path into a hidden field. */
|
891 |
+
jQuery('#debuglog_temp_path').val( data.debug_attachmanet );
|
892 |
+
} else {
|
893 |
+
jQuery( '#debuglog' ).val( '' );
|
894 |
+
/* Show error in alert box. */
|
895 |
+
alert( 'ERRORS: ' + data.error );
|
896 |
+
}
|
897 |
+
}
|
898 |
+
});
|
899 |
+
}
|
900 |
+
|
901 |
jQuery( '#cancel-request' ).click( function () {
|
902 |
return false;
|
903 |
} );
|
app/assets/css/rtmedia.css
CHANGED
@@ -132,6 +132,14 @@ body.media.buddypress {
|
|
132 |
overflow-y: auto;
|
133 |
}
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
.rtmedia-container {
|
136 |
box-sizing: border-box;
|
137 |
}
|
@@ -476,6 +484,15 @@ table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span {
|
|
476 |
display: none;
|
477 |
}
|
478 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
.rtm-tabs.rtm-tabs {
|
480 |
border-bottom: 1px solid #EEEEEE;
|
481 |
list-style: none;
|
@@ -1012,6 +1029,13 @@ img.mfp-img {
|
|
1012 |
padding-right: 6px;
|
1013 |
}
|
1014 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1015 |
.mfp-content .rtm-lightbox-container {
|
1016 |
background: #000000;
|
1017 |
margin: 0 auto;
|
@@ -1104,6 +1128,10 @@ img.mfp-img {
|
|
1104 |
padding: 0 4px 0 0;
|
1105 |
}
|
1106 |
|
|
|
|
|
|
|
|
|
1107 |
#buddypress #rtm-media-options-list .rtm-options .button {
|
1108 |
background: transparent;
|
1109 |
border: 0 none;
|
@@ -1251,6 +1279,7 @@ img.mfp-img {
|
|
1251 |
.rtm-time-privacy .dashicons {
|
1252 |
font-size: 14px;
|
1253 |
line-height: 1.5;
|
|
|
1254 |
}
|
1255 |
|
1256 |
.rtmedia-actions-before-comments > span {
|
@@ -1523,6 +1552,32 @@ img.mfp-img {
|
|
1523 |
margin-bottom: 10px;
|
1524 |
}
|
1525 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1526 |
.rtmedia-album-edit .rtm-checkbox-wrap {
|
1527 |
background: rgba(255, 255, 255, 0.9);
|
1528 |
height: 30px;
|
132 |
overflow-y: auto;
|
133 |
}
|
134 |
|
135 |
+
#buddypress input[type=submit]:focus {
|
136 |
+
background: #ededed;
|
137 |
+
border: 1px solid #bbb;
|
138 |
+
color: #555;
|
139 |
+
outline: 0;
|
140 |
+
text-decoration: none;
|
141 |
+
}
|
142 |
+
|
143 |
.rtmedia-container {
|
144 |
box-sizing: border-box;
|
145 |
}
|
484 |
display: none;
|
485 |
}
|
486 |
|
487 |
+
.rtmedia-list-item .rtmedia-album-media-count {
|
488 |
+
position: absolute;
|
489 |
+
top: 0;
|
490 |
+
right: 0;
|
491 |
+
background-color: black;
|
492 |
+
color: white;
|
493 |
+
padding: 0 5px;
|
494 |
+
}
|
495 |
+
|
496 |
.rtm-tabs.rtm-tabs {
|
497 |
border-bottom: 1px solid #EEEEEE;
|
498 |
list-style: none;
|
1029 |
padding-right: 6px;
|
1030 |
}
|
1031 |
}
|
1032 |
+
/*
|
1033 |
+
* popup autocomplete
|
1034 |
+
*/
|
1035 |
+
#atwho-container #atwho-ground-comment_content .atwho-view {
|
1036 |
+
z-index: 2147483647;
|
1037 |
+
}
|
1038 |
+
|
1039 |
.mfp-content .rtm-lightbox-container {
|
1040 |
background: #000000;
|
1041 |
margin: 0 auto;
|
1128 |
padding: 0 4px 0 0;
|
1129 |
}
|
1130 |
|
1131 |
+
#buddypress #rtm-media-options-list .rtm-options form button {
|
1132 |
+
font-size: small;
|
1133 |
+
}
|
1134 |
+
|
1135 |
#buddypress #rtm-media-options-list .rtm-options .button {
|
1136 |
background: transparent;
|
1137 |
border: 0 none;
|
1279 |
.rtm-time-privacy .dashicons {
|
1280 |
font-size: 14px;
|
1281 |
line-height: 1.5;
|
1282 |
+
margin-top: -2px;
|
1283 |
}
|
1284 |
|
1285 |
.rtmedia-actions-before-comments > span {
|
1552 |
margin-bottom: 10px;
|
1553 |
}
|
1554 |
|
1555 |
+
.previous-pagination {
|
1556 |
+
float: left;
|
1557 |
+
margin-top: 10px;
|
1558 |
+
}
|
1559 |
+
|
1560 |
+
.next-pagination {
|
1561 |
+
float: right;
|
1562 |
+
margin-top: 10px;
|
1563 |
+
}
|
1564 |
+
|
1565 |
+
@media screen and (max-width: 500px) {
|
1566 |
+
#activity-stream li .media-type-video {
|
1567 |
+
width: 100%;
|
1568 |
+
}
|
1569 |
+
#activity-stream li .media-type-video .mejs-video {
|
1570 |
+
max-width: 100%;
|
1571 |
+
min-width: 100%;
|
1572 |
+
}
|
1573 |
+
}
|
1574 |
+
#rtmedia_show_all_comment {
|
1575 |
+
cursor: pointer;
|
1576 |
+
}
|
1577 |
+
#rtmedia_show_all_comment:hover {
|
1578 |
+
text-decoration: underline;
|
1579 |
+
}
|
1580 |
+
|
1581 |
.rtmedia-album-edit .rtm-checkbox-wrap {
|
1582 |
background: rgba(255, 255, 255, 0.9);
|
1583 |
height: 30px;
|
app/assets/css/rtmedia.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.rtmedia-success,.rtmedia-warning{margin:10px 0;padding:8px 14px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5);border-bottom:1px solid #e7e7e7;cursor:pointer}.rtmedia-success{background-color:#dff0d8;color:#468847}.rtmedia-warning{background-color:#F0D8DD;color:#884646}.clearfix:after{content:"";display:table;clear:both}#buddypress form#whats-new-form textarea{box-sizing:border-box;min-height:70px;width:100%}#buddypress #whats-new-options{height:auto !important;overflow:hidden}#buddypress form#whats-new-form p.activity-greeting{line-height:1}#buddypress form#whats-new-form #whats-new-options select{border:1px solid #ccc;font-size:13px;margin-top:0;padding:3px 2px}#whats-new-submit #aw-whats-new-submit{font-size:12px;line-height:18px;padding:4px 6px}#whats-new-post-in-box{float:left;font-size:13px}#buddypress form#whats-new-form #whats-new-submit{margin-top:0}#whats-new-textarea{margin-bottom:10px}body.media.buddypress{overflow-y:auto}.rtmedia-container{box-sizing:border-box}.rtmedia-container *,.rtmedia-container *:before,.rtmedia-container *:after{box-sizing:inherit}.rtmedia-list.rtmedia-list{list-style:none;margin:0;padding:0}.rtmedia-list-item>a{border:0;display:inline-block;text-decoration:none}.rtmedia-list-item>a:focus{outline:0}.rtmedia-list-item>a+p{display:none}.rtmedia-list-item>a .rtmedia-item-thumbnail img{display:inline-block}#rtmedia-uploader-form .rtm-plupload-list,#rtmedia_uploader_filelist{list-style:none;margin-left:-4px;margin-right:-4px;padding-left:0;padding-top:10px}#rtmedia-uploader-form .rtm-plupload-list li,#rtmedia_uploader_filelist li{background:#eee;float:left;margin:4px;max-width:110px;padding:5px;position:relative}#rtmedia-uploader-form .rtm-plupload-list li.upload-error,#rtmedia_uploader_filelist li.upload-error{border:1px solid red}#rtmedia-uploader-form .rtm-plupload-list img,#rtmedia_uploader_filelist img{max-width:100%}#rtmedia-uploader-form .rtm-plupload-list canvas,#rtmedia_uploader_filelist canvas{display:block;max-width:100%}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title{font-size:12px}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,#rtmedia_uploader_filelist .rtm-upload-edit-desc{font-size:12px;display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label{display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title{min-width:100%;margin-top:1px}.rtm-plupload-list:empty{display:none}.rtmedia-uploader-div,.rtmedia-uploader{clear:both}button#rtmedia-add-media-button-post-update{padding:3px 6px}button#rtmedia-add-media-button-post-update .dashicons{font-size:18px;line-height:20px}.plupload_file_name{font-size:11px;font-weight:bold;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plupload_file_size{color:#666;font-size:10px}.plupload_file_action{background:#eee;position:absolute;height:18px;right:4px;top:0;width:18px;z-index:10}.plupload_file_action .dashicons{color:#DD3D36;cursor:pointer;font-size:16px;height:18px;padding:2px 1px;width:18px}.plupload_file_status{height:18px;overflow:hidden;position:relative}.plupload_file_progress{background:#7AD03A;height:4px;position:absolute;top:0}.rtm-form .rtm-field-wrap{margin-bottom:20px}.rtmedia_next_prev{padding:0 10px}.rtm-page-number{float:left}.rtm-page-number .rtm-label{line-height:30px}.rtm-page-number .rtm-label,.rtm-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{float:left}.rtm-pagination{background:transparent;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:left;width:100%;padding:10px 0}.rtm-pagination .rtm-paginate{float:right;font-size:15px}.rtm-pagination .rtm-paginate a,.rtm-pagination .rtm-paginate span{display:inline-block;line-height:1;margin:0 2px;padding:8px;text-decoration:none}.rtm-pagination .rtm-paginate a.rtmedia-page-link{padding:8px}.rtm-pagination .dashicons{font-size:14px;height:auto;line-height:1.2;margin:0;padding:0;width:auto}#rtmedia_go_to_num{font-size:16px;margin:0 5px;padding:4px 5px;width:80px}.rtmedia-upload-not-allowed{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;margin-bottom:20px;padding:10px 15px}.plupload_file_name{position:relative}.plupload_file_name .dashicons{background:#eee;color:#DD3D36;cursor:pointer;font-size:14px;height:auto;padding:0 2px 0 5px;position:absolute;right:0;top:0;width:auto}.plupload_file_name .dashicons-yes{color:#7AD03A}.rtmedia-gallery-item-actions{background-color:rgba(0,0,0,0.6);opacity:0;position:absolute;text-align:center;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s;width:100%;z-index:9}.rtmedia-gallery-item-actions a{border:0;box-shadow:0 0 0;color:#fff;display:inline-block;font-size:12px;outline:none;padding:4px;text-align:left;text-decoration:none;text-transform:uppercase}.rtmedia-gallery-item-actions .dashicons{font-size:17px;margin-right:2px;position:relative;top:1px}.rtmedia-gallery-item-actions .dashicons-trash{font-size:15px}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-gallery-item-actions{opacity:1}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-bulk-edit-item-wrap+.rtmedia-gallery-item-actions{opacity:0}.rtmedia-footer-link{clear:both;overflow:hidden;padding:16px 0;position:relative;text-align:center}.rtmedia-text-link-decoration,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span{text-decoration:none}.rtmedia-text-link-decoration:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span:hover{text-decoration:underline}.rtmedia-container .rtmedia-edit-list-media-table{max-height:300px;overflow-y:auto}.rtmedia-container .rtmedia-edit-list-media-table thead tr{background-color:#50A1D7}.rtmedia-container .rtmedia-edit-list-media-table thead th{text-align:center;color:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(odd){background:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(even){background:#DCDCDC}table.rtmedia-edit-media-list tr{line-height:30px}table.rtmedia-edit-media-list tr th{color:#333;padding:4px 10px;line-height:20px}table.rtmedia-edit-media-list tr .rtm-edit-media-list-heading{width:44%}table.rtmedia-edit-media-list tr .rtm-edit-media-list-title-heading{width:56%}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title{padding:4px;font-size:14px;line-height:24px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a{text-decoration:none;color:#333}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a{color:#333;font-size:13px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span{color:#FF0000;cursor:pointer;font-size:13px}.rtm-hide{display:none}.rtm-tabs.rtm-tabs{border-bottom:1px solid #eee;list-style:none;margin:0 0 20px;padding:0}.rtm-tabs li{border:1px solid #eee;border-bottom:0;float:left;margin:0 5px;padding:0}.rtm-tabs a{border:0;display:block;padding:5px 15px;text-decoration:none}.rtm-tabs a:focus{background:transparent;box-shadow:0 0 0}.rtm-tabs .active{position:relative}.rtm-tabs .active:after{background:#fff;bottom:-1px;content:' ';height:1px;left:0;position:absolute;width:100%}.rtm-tabs .dashicons{font-size:16px;height:auto;line-height:20px;margin-right:8px;width:auto}.rtmedia-edit-media-tabs .rtm-tabs a{border-bottom:0 none}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:104211;overflow:hidden;position:fixed;background:rgba(0,0,0,0.9)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:104311;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;max-width:84%;margin:0 auto;right:0;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{background:#fff;color:#999;cursor:pointer;font-size:24px;font-style:normal;height:30px;line-height:30px;padding:0;position:absolute;right:1px;text-align:center;text-decoration:none;text-indent:2px;top:0;width:32px;z-index:12}.mfp-close:hover,.mfp-close:focus{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{cursor:pointer;position:absolute;opacity:0.65;filter:alpha(opacity=65);margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent;opacity:0;z-index:10;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .mfp-arrow{opacity:1}@media (max-device-width: 640px){.mfp-arrow{display:none}.rtm-single-media:hover .mfp-arrow{display:none}}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1;filter:alpha(opacity=100)}.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after,.mfp-arrow .mfp-a{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before,.mfp-arrow .mfp-b{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after,.mfp-arrow-left .mfp-a{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after,.mfp-arrow-right .mfp-a{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before,.mfp-arrow-right .mfp-b{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}.mfp-preloader{position:absolute;top:50%;left:0;right:0;margin-top:-36px;z-index:1044;font-size:0;width:36px;height:36px;margin-left:auto;margin-right:auto}.mfp-preloader:before{content:'Loading…';position:absolute;width:30px;height:30px}.mfp-preloader:not(:required):before{content:'';border-radius:50%;border:3px solid rgba(255,255,255,0.27);border-top-color:rgba(255,255,255,0.9);animation:spinner .6s linear infinite;-webkit-animation:spinner .6s linear infinite}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-content .rtm-lightbox-container{background:#000;margin:0 auto;position:relative}.mfp-content .rtm-single-meta{background:#fff;overflow:hidden;padding:20px 20px 110px;position:relative;vertical-align:top}.rtm-single-media{overflow:hidden;position:relative;text-align:center;vertical-align:middle}.rtm-single-media .mejs-container{margin:0 auto;max-width:inherit}.rtm-single-media .rtmedia-message-container{position:absolute;top:45%;left:0;right:0;margin-left:auto;margin-right:auto}@media (max-device-width: 640px){.rtm-single-media .rtmedia-message-container{top:25%}}.rtm-ltb-action-container{background-color:rgba(0,0,0,0.6);bottom:0;color:#fff;line-height:38px;opacity:0;padding:0 10px;position:absolute;width:100%;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}@media (max-device-width: 640px){.rtm-ltb-action-container{clear:both;position:relative;opacity:1}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);display:block;font-family:inherit;font-weight:normal;line-height:24px;margin:0;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button:hover{background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.8)}#buddypress #rtmedia-single-media-container.rtmedia-single-media .rtm-options .button{color:#333;margin:0 auto;padding:0 4px 0 0}#buddypress #rtm-media-options-list .rtm-options .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);float:left;font-family:inherit;font-weight:normal;line-height:24px;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}.rtm-options.rtm-options{background:#666;color:#fff;display:none;font-size:14px;list-style:none;margin:0;padding:8px 10px;position:absolute;left:0;top:38px;width:190px;z-index:10}.rtm-options li{margin:0;overflow:hidden;padding:2px 0}.rtm-media-options .rtm-options:after{bottom:100%;left:20px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#666;border-width:6px;margin-left:-6px}.mfp-content .rtm-options{background:#fff;color:#333;bottom:38px;right:0;left:auto;top:auto}.mfp-content .rtm-options:after{top:100%;right:22px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:6px;margin-left:-6px}.rtm-options .dashicons{font-size:14px;line-height:24px;margin-right:2px}.rtm-media-options .rtm-options a{border:0;color:#fff;display:block;text-decoration:none}.rtm-ltb-title{color:rgba(255,255,255,0.7);float:left;font-size:13px}.rtm-ltb-title a{color:inherit}.rtm-ltb-title a:hover{border-bottom:1px dotted;color:#fff}.rtm-item-actions{float:right}.rtm-item-actions>div,.rtm-item-actions>form{float:left;margin:0 2px;padding:7px 0;position:relative}.rtmedia-media img{display:inline-block;max-height:inherit;height:auto;max-width:100%;width:auto}@media only screen and (max-device-width: 1024px){.rtmedia-media{margin:40px 0}}.rtm-user-meta-details .username{font-size:16px;line-height:1;margin-bottom:6px}.userprofile{float:left;margin:0 16px 16px 0;max-width:54px}.userprofile a{display:block}.userprofile img{height:auto;max-width:100%}.rtm-time-privacy{color:#999;font-size:12px}.rtm-time-privacy .dashicons{font-size:14px;line-height:1.5}.rtmedia-actions-before-comments>span{float:left;margin-right:10px}.rtmedia-actions-before-comments .rtmedia-comment-link,#buddypress .rtmedia-actions-before-comments .rtmedia-like{border:0;font-size:13px;font-weight:normal;line-height:2;padding:0;text-transform:none}.rtmedia-actions-before-comments .rtmedia-comment-link:hover,#buddypress .rtmedia-actions-before-comments .rtmedia-like:hover{background:transparent}.rtmedia-comment-user-pic{float:left;margin-right:10px;max-width:36px}.rtmedia-comment-user-pic img{height:auto;max-width:100%}.rtm-like-comments-info{position:relative}.rtm-like-comments-info:after{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(237,239,244,0);border-bottom-color:#edeff4;border-width:4px;margin-left:-4px}.rtm-comment-list.rtm-comment-list{list-style:none;margin:0;padding:0}.rtm-comment-list li{background:#edeff4;font-size:12px;margin-bottom:1px;padding:10px;position:relative}.rtm-comment-list li:hover .rtmedia-delete-comment{opacity:1}.rtm-comment-list .rtmedia-no-comments{margin:0;padding:5px 10px}.rtmedia-like-info{background:#edeff4;font-size:12px;margin-bottom:1px;padding:5px 10px;position:relative}.rtm-comment-wrap{overflow:hidden}.rtm-comment-wrap .rtmedia-comment-author{font-weight:700}.rtm-comment-wrap .rtmedia-comment-date{color:#999;font-size:11px}.rtmedia-comment-content{margin-top:2px}.rtmedia-delete-comment{color:#999;cursor:pointer;font-size:16px;opacity:0;position:absolute;right:5px;top:5px}.rtmedia-comment-content p{margin:0}.rtmedia-comment-details{line-height:1.5;margin-top:-3px}.rtmedia-item-comments textarea{font-size:14px;padding:4px}.rtm-media-single-comments{background-color:#edeff4;bottom:20px;padding:10px;width:100%}.rtm-media-single-comments textarea{font-size:12px;line-height:14px;max-height:40px;min-height:30px;padding:4px}.rtmedia-popup{background:#fff;margin:20px auto;max-width:600px;padding:20px;position:relative;width:auto}.rtmedia-popup .rtm-modal-title{font-size:24px;margin-bottom:20px;margin-top:0}.rtmedia-popup label{display:block;margin-bottom:5px}#rtm-modal-container p{margin-bottom:10px}#rtm-mejs-video-container{margin:0 auto}.rtmedia-media-name{float:left;max-width:140px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.rtm-single-media.rtm-media-type-video{padding-bottom:40px;padding-top:40px}.rtmedia-gallery-alert-container{position:fixed;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,0.6);z-index:999997}.rtmedia-gallery-message-box{position:fixed;top:40%;left:50%;margin-left:auto;margin-right:auto;z-index:999999}.rtmedia-gallery-message-box span{position:relative;left:-50%}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}#buddypress ul.rtmedia-list li{border-bottom:0;padding-bottom:0}.rtmedia-activity-container .rtmedia-item-actions{display:none}.rtmedia-activity-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title a{border:0;color:#666;font-size:13px;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}#rtmedia-whts-new-upload-container div{left:0 !important;position:absolute;top:0 !important}#aw-whats-new-submit,.rtmedia-add-media-button{display:block}.rtm-drag-drop-active{border:4px dashed green !important;display:block;height:100%;opacity:0.5;z-index:9999}#rtm-drop-files-title{background:rgba(0,0,0,0.2);display:none;font-size:14px;height:100%;padding:20px;position:absolute;top:0;width:100%}#rtSelectPrivacy{float:right}.rtmedia-plupload-container{position:relative;float:left}.rtm-upload-button-wrapper{float:left;margin-right:5px}#rtmedia-action-update{margin-right:10px}.rtmedia-list-item.media-type-document,.rtmedia-list-item.media-type-music,.rtmedia-list-item.media-type-video{display:inline-block}.media-type-music .mejs-container{margin-bottom:10px}.rtmedia-album-edit .rtm-checkbox-wrap{background:rgba(255,255,255,0.9);height:30px;line-height:1;padding:10px;position:absolute;z-index:10}.rtmedia-album-edit .rtmedia-item-selector{position:relative;top:-7px}.rtmedia-album-edit .rtmedia-move-container{display:none}.rtm-single-actions.rtm-item-actions{float:none}.media-item .describe{border-collapse:collapse;width:100%;border-top-style:solid;border-top-width:1px;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:bold}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:bold}.media-upload-form th.label label{font-weight:bold;margin:0.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}abbr.required{border:medium none;text-decoration:none}.media-item .describe input[type="text"],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.media-item .edit-attachment,.describe-toggle-on,.describe-toggle-off{display:block;line-height:36px;float:right;margin-right:15px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}#media-items .media-item{border-style:solid;border-width:1px;min-height:36px;position:relative;margin-top:-1px;width:100%}#media-items{width:623px}.media-new-php #media-items{margin:1em 0}#media-items:empty{border:0 none}.media-item .filename{line-height:36px;overflow:hidden;padding:0 10px}.media-item .error-div{padding-left:10px}.media-item .pinkynail{float:left;margin:2px 2px 0;max-width:40px;max-height:32px}.media-item .startopen,.media-item .startclosed{display:none}.media-item .original{position:relative;height:34px}.media-item .progress{float:right;height:22px;margin:6px 10px 0 0;width:200px;line-height:2em;padding:0;overflow:hidden;margin-bottom:2px;border:1px solid #d1d1d1;background:#f7f7f7;background-image:-webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));background-image:-webkit-linear-gradient(bottom, #fff, #f7f7f7);background-image:linear-gradient(to top, #fff, #f7f7f7);border-radius:3px;box-shadow:inset 0 0 3px rgba(0,0,0,0.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-24px;background-color:#8cc1e9;background-image:-webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));background-image:-webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);background-image:linear-gradient(to top, #72a7cf, #8cc1e9);border-radius:3px;box-shadow:0 0 3px rgba(0,0,0,0.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0 8px;text-shadow:0 1px 0 rgba(255,255,255,0.4);color:rgba(0,0,0,0.6)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}.media-upload-form .media-item.error{margin:0;padding:0}.media-upload-form .media-item.error p,.media-item .error-div{line-height:16px;margin:5px 10px;padding:0}.media-item .error-div a.dismiss{display:block;float:right;margin:5px 4px 0 15px}.find-box{width:600px;height:300px;overflow:hidden;padding:33px 0 51px;position:absolute;z-index:1000}.find-box-head{cursor:move;font-weight:bold;height:2em;line-height:2em;padding:1px 12px;position:absolute;top:5px;width:100%}.find-box-inside{overflow:auto;padding:6px;height:100%}.find-box-search{overflow:hidden;padding:9px;position:relative}.find-box-search .spinner{float:none;left:125px;position:absolute;top:9px}#find-posts-input{float:left;width:140px;height:24px}#find-posts-search{float:left;margin:1px 4px 0 3px}#find-posts-response{margin:8px 0;padding:0 1px 6px}#find-posts-response table{width:100%}#find-posts-response .found-radio{padding:3px 0 0 8px;width:15px}.find-box-buttons{padding:8px;overflow:hidden}.find-box #resize-se{position:absolute;right:1px;bottom:1px}.ui-find-overlay{position:absolute;top:0;left:0;background-color:#000;opacity:0.6;filter:alpha(opacity=60)}ul#dismissed-updates{display:none}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-0.5em 0 2em 0}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border-width:1px;border-style:solid;line-height:1.8em;word-spacing:3px;border-radius:6px}.drag-drop #drag-drop-area{border:4px dashed #DDDDDD;height:200px}.drag-drop .drag-drop-inside{margin:70px auto 0;width:250px}.drag-drop-inside p{color:#aaa;font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}#plupload-upload-ui{position:relative}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative}.imgedit-settings p{margin:8px 0}.post-php .imgedit-wrap table{width:100%}.describe .imgedit-wrap table td,.wp_attachment_holder .imgedit-wrap table td{vertical-align:top;padding-top:0}.describe .imgedit-wrap table td.imgedit-settings{padding:0 5px}.wp_attachment_holder .imgedit-wrap table td.imgedit-settings{width:250px}td.imgedit-settings input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;background:#fff url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat scroll 22px 10px;background-size:16px 16px;opacity:0.7;filter:alpha(opacity=70);width:100%;height:500px;display:none}.spinner{background:url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat;background-size:16px 16px;display:none;float:right;opacity:0.7;filter:alpha(opacity=70);width:16px;height:16px;margin:5px 5px 0}.no-float{float:none}.media-disabled,.imgedit-settings .disabled{color:grey}.wp_attachment_image,.A1B1{overflow:hidden}.wp_attachment_image .button,.A1B1 .button{float:left}.no-js .wp_attachment_image .button{display:none}.wp_attachment_image .spinner,.A1B1 .spinner{float:left;padding:0 4px 4px;vertical-align:bottom}.imgedit-menu{margin:0 0 12px;min-width:300px}.imgedit-menu div{float:left;width:32px;height:32px}.imgedit-crop-wrap{position:relative}.imgedit-crop{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -9px -31px;margin:0 8px 0 0}.imgedit-crop.disabled:hover{background-position:-9px -31px}.imgedit-crop:hover{background-position:-9px -1px}.imgedit-rleft{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -46px -31px;margin:0 3px}.imgedit-rleft.disabled:hover{background-position:-46px -31px}.imgedit-rleft:hover{background-position:-46px -1px}.imgedit-rright{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -77px -31px;margin:0 8px 0 3px}.imgedit-rright.disabled:hover{background-position:-77px -31px}.imgedit-rright:hover{background-position:-77px -1px}.imgedit-flipv{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -115px -31px;margin:0 3px}.imgedit-flipv.disabled:hover{background-position:-115px -31px}.imgedit-flipv:hover{background-position:-115px -1px}.imgedit-fliph{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -147px -31px;margin:0 8px 0 3px}.imgedit-fliph.disabled:hover{background-position:-147px -31px}.imgedit-fliph:hover{background-position:-147px -1px}.imgedit-undo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -184px -31px;margin:0 3px}.imgedit-undo.disabled:hover{background-position:-184px -31px}.imgedit-undo:hover{background-position:-184px -1px}.imgedit-redo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -215px -31px;margin:0 8px 0 3px}.imgedit-redo.disabled:hover{background-position:-215px -31px}.imgedit-redo:hover{background-position:-215px -1px}.imgedit-applyto img{margin:0 8px 0 0}.imgedit-group h3{font-size:18px}.imgedit-group .dashicons{border:0;line-height:1.2}.imgedit-group-top{margin:5px 0}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block}.imgedit-help{display:none;font-style:italic;margin-bottom:8px}a.imgedit-help-toggle{text-decoration:none}.form-table td.imgedit-response{padding:0}.imgedit-submit{margin:8px 0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle}.wp_attachment_details{margin-bottom:20px}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:0.5}.bp-media-image-editor-cotnainer{margin-top:35px}.wp_attachment_image .bp-media-image-edit{float:left}.wp_attachment_image .spinner{display:none}.bp-media-image-editor-cotnainer .hidden{display:none}.bp-media-image-editor-cotnainer div.updated{margin:5px 0 15px;background-color:#ffffe0;border-color:#e6db55;padding:0 .6em;border-radius:3px;border-width:1px;border-style:solid}.bp-media-image-editor-cotnainer div.updated p{margin:.5em 0;padding:2px}body article.bp_members.bp_member .entry-content,body div.bp_members.bp_member .entry-content{width:100%}.rtm-media-gallery-uploader{display:none}.rtmedia-uploader .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;color:#AAAAAA;margin-top:20px;padding:25px 0}.rtmedia-uploader .drag-drop.dragover{border-color:#83b4d8}.rtmedia-uploader .drag-drop .drag-drop-info{font-size:20px;line-height:24px}.rtmedia-uploader .drag-drop .rtm-select-files span{vertical-align:middle}.rtmedia-uploader .drag-drop .rtm-seperator{margin:0px 20px}.rtmedia-uploader .drag-drop .start-media-upload{display:none;margin-top:20px}.rtmedia-uploader .drag-drop .rtm-file-size-limit{vertical-align:middle;font-size:16px;line-height:24px}.rtm-uploader-main-wrapper .rtm-uploader-tabs{margin-bottom:10px;text-align:left}.rtm-uploader-main-wrapper ul{border-bottom:1px solid #CCC}.rtm-uploader-main-wrapper li{margin:0 0 -1px 10px;display:inline-block;padding:5px 10px;line-height:25px;background-color:#e4e4e4;border:1px solid #CCC}.rtm-uploader-main-wrapper li.active{background:transparent;border-left:1px solid #CCC;border-top:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #fafafa}.rtm-uploader-main-wrapper li:hover{cursor:pointer}.rtmedia-container .rtmedia-list{margin:10px -5px}.rtmedia-container .rtmedia-list .rtmedia-list-item{float:left;margin:5px;position:relative}.rtmedia-container .rtmedia-list .rtmedia-list-item>a{display:block}.rtmedia-container .rtmedia-list .rtmedia_time{background-color:#000;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:14px;opacity:0.75;padding:0 4px;position:absolute;right:2px;top:2px}.rtmedia-container .rtmedia-list img{vertical-align:top}.rtmedia-container .rtmedia-list .rtmedia-item-title h4{color:#666;font-size:12px;font-weight:normal;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.rtm-load-more{background:#eee;text-align:center}.rtmedia-container .rtm-load-more a{border:0;padding:10px 0}.rtm-load-more .rtm-media-loading{padding:10px 0}.rtm-media-options{line-height:1.4;margin-bottom:10px}.rtm-media-options>div{display:inline-block;cursor:pointer}.rtm-media-options .rtm-media-options-list{margin-right:5px;padding-right:10px;position:relative}.rtm-media-options>*{border-right:1px solid #999}.rtm-media-options>*:last-child{border-right:none}.rtm-media-options .dashicons{font-size:inherit;line-height:1.4}.rtmedia-upload-media-link{cursor:pointer}a.rtmedia-upload-media-link{border:none}.rtm-album-privacy span{font-size:16px;display:inline-block;margin:0 20px 20px 20px;vertical-align:top}.rtm-album-privacy label{margin-right:8px}.rtm-album-privacy .dashicons{font-size:16px;line-height:1.6;margin-right:5px}#rtm-media-options-list .rtmedia-delete-album{background:transparent;border:0;color:#fff;font-family:inherit;font-size:inherit;font-weight:inherit;padding:0;text-transform:inherit}#rtm-media-options-list .rtmedia-delete-album:hover{background:transparent;border:0;color:#fff}.rtmedia-single-container button.rtmedia-like{background-color:transparent;color:inherit}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mejs-container .mejs-controls .mejs-time{padding:10px 3px 0;content:''}.rtmedia-activity-container .mejs-playpause-button.mejs-play button:before,.rtmedia-activity-container .mejs-playpause-button.mejs-pause button:before,.rtmedia-activity-container .mejs-volume-button.mejs-mute button:before,.rtmedia-activity-container .mejs-fullscreen-button button:before,.rtmedia-media .mejs-playpause-button.mejs-play button:before,.rtmedia-media .mejs-playpause-button.mejs-pause button:before,.rtmedia-media .mejs-volume-button.mejs-mute button:before,.rtmedia-media .mejs-fullscreen-button button:before{content:''}@media only screen and (min-width: 1025px){.mfp-content .rtm-lightbox-container{display:table;table-layout:fixed;width:100%}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:table-cell;width:66.6667%}.mfp-content .rtm-single-meta{display:table-cell;width:33.3333%;padding:20px;height:473px}.mfp-content .rtm-single-meta .rtmedia-scroll{height:100%;overflow-X:hidden}}.rtl #rtSelectPrivacy{float:left}.rtl .rtmedia-plupload-container{float:right}.rtl .rtm-upload-button-wrapper{float:right}.rtl #whats-new-post-in-box{float:right}.rtl .describe-toggle-off{float:left}.rtl .media-item .pinkynail{float:right}.rtl .media-item .progress{float:left}.rtl .media-item .error-div a.dismiss{float:left}.rtl #find-posts-input{float:right}.rtl #find-posts-search{float:right}.rtl .spinner{float:left}.rtl .wp_attachment_image .button,.rtl .A1B1 .button{float:right}.rtl .wp_attachment_image .spinner,.rtl .A1B1 .spinner{float:right}.rtl .imgedit-menu div{float:right}.rtl .wp_attachment_image .bp-media-image-edit{float:right}.rtl .rtmedia-container .rtmedia-list .rtmedia-list-item{float:right}.rtl #buddypress #rtm-media-options-list .rtm-options .button{float:right}.rtl .rtm-ltb-title{float:right}.rtl .rtm-item-actions{float:left}.rtl .rtm-item-actions>div,.rtl .rtm-item-actions>form{float:right}.rtl .userprofile{float:right}.rtl .rtmedia-actions-before-comments>span{float:right}.rtl .rtmedia-comment-user-pic{float:right}.rtl .rtmedia-media-name{float:right}.rtl #rtmedia-uploader-form .rtm-plupload-list li,.rtl #rtmedia_uploader_filelist li{float:right}.rtl .rtm-page-number{float:right}.rtl .rtm-page-number .rtmedia-page-link{float:right}.rtl .rtm-pagination{float:right}.rtl .rtm-pagination .rtm-paginate{float:left}.rtl .rtm-tabs li{float:right}.rtl .alignleft{float:right}.rtl .alignright{float:left}
|
1 |
+
.alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.rtmedia-success,.rtmedia-warning{margin:10px 0;padding:8px 14px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5);border-bottom:1px solid #e7e7e7;cursor:pointer}.rtmedia-success{background-color:#dff0d8;color:#468847}.rtmedia-warning{background-color:#F0D8DD;color:#884646}.clearfix:after{content:"";display:table;clear:both}#buddypress form#whats-new-form textarea{box-sizing:border-box;min-height:70px;width:100%}#buddypress #whats-new-options{height:auto !important;overflow:hidden}#buddypress form#whats-new-form p.activity-greeting{line-height:1}#buddypress form#whats-new-form #whats-new-options select{border:1px solid #ccc;font-size:13px;margin-top:0;padding:3px 2px}#whats-new-submit #aw-whats-new-submit{font-size:12px;line-height:18px;padding:4px 6px}#whats-new-post-in-box{float:left;font-size:13px}#buddypress form#whats-new-form #whats-new-submit{margin-top:0}#whats-new-textarea{margin-bottom:10px}body.media.buddypress{overflow-y:auto}#buddypress input[type=submit]:focus{background:#ededed;border:1px solid #bbb;color:#555;outline:0;text-decoration:none}.rtmedia-container{box-sizing:border-box}.rtmedia-container *,.rtmedia-container *:before,.rtmedia-container *:after{box-sizing:inherit}.rtmedia-list.rtmedia-list{list-style:none;margin:0;padding:0}.rtmedia-list-item>a{border:0;display:inline-block;text-decoration:none}.rtmedia-list-item>a:focus{outline:0}.rtmedia-list-item>a+p{display:none}.rtmedia-list-item>a .rtmedia-item-thumbnail img{display:inline-block}#rtmedia-uploader-form .rtm-plupload-list,#rtmedia_uploader_filelist{list-style:none;margin-left:-4px;margin-right:-4px;padding-left:0;padding-top:10px}#rtmedia-uploader-form .rtm-plupload-list li,#rtmedia_uploader_filelist li{background:#eee;float:left;margin:4px;max-width:110px;padding:5px;position:relative}#rtmedia-uploader-form .rtm-plupload-list li.upload-error,#rtmedia_uploader_filelist li.upload-error{border:1px solid red}#rtmedia-uploader-form .rtm-plupload-list img,#rtmedia_uploader_filelist img{max-width:100%}#rtmedia-uploader-form .rtm-plupload-list canvas,#rtmedia_uploader_filelist canvas{display:block;max-width:100%}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title{font-size:12px}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,#rtmedia_uploader_filelist .rtm-upload-edit-desc{font-size:12px;display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label{display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title{min-width:100%;margin-top:1px}.rtm-plupload-list:empty{display:none}.rtmedia-uploader-div,.rtmedia-uploader{clear:both}button#rtmedia-add-media-button-post-update{padding:3px 6px}button#rtmedia-add-media-button-post-update .dashicons{font-size:18px;line-height:20px}.plupload_file_name{font-size:11px;font-weight:bold;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plupload_file_size{color:#666;font-size:10px}.plupload_file_action{background:#eee;position:absolute;height:18px;right:4px;top:0;width:18px;z-index:10}.plupload_file_action .dashicons{color:#DD3D36;cursor:pointer;font-size:16px;height:18px;padding:2px 1px;width:18px}.plupload_file_status{height:18px;overflow:hidden;position:relative}.plupload_file_progress{background:#7AD03A;height:4px;position:absolute;top:0}.rtm-form .rtm-field-wrap{margin-bottom:20px}.rtmedia_next_prev{padding:0 10px}.rtm-page-number{float:left}.rtm-page-number .rtm-label{line-height:30px}.rtm-page-number .rtm-label,.rtm-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{float:left}.rtm-pagination{background:transparent;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:left;width:100%;padding:10px 0}.rtm-pagination .rtm-paginate{float:right;font-size:15px}.rtm-pagination .rtm-paginate a,.rtm-pagination .rtm-paginate span{display:inline-block;line-height:1;margin:0 2px;padding:8px;text-decoration:none}.rtm-pagination .rtm-paginate a.rtmedia-page-link{padding:8px}.rtm-pagination .dashicons{font-size:14px;height:auto;line-height:1.2;margin:0;padding:0;width:auto}#rtmedia_go_to_num{font-size:16px;margin:0 5px;padding:4px 5px;width:80px}.rtmedia-upload-not-allowed{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;margin-bottom:20px;padding:10px 15px}.plupload_file_name{position:relative}.plupload_file_name .dashicons{background:#eee;color:#DD3D36;cursor:pointer;font-size:14px;height:auto;padding:0 2px 0 5px;position:absolute;right:0;top:0;width:auto}.plupload_file_name .dashicons-yes{color:#7AD03A}.rtmedia-gallery-item-actions{background-color:rgba(0,0,0,0.6);opacity:0;position:absolute;text-align:center;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s;width:100%;z-index:9}.rtmedia-gallery-item-actions a{border:0;box-shadow:0 0 0;color:#fff;display:inline-block;font-size:12px;outline:none;padding:4px;text-align:left;text-decoration:none;text-transform:uppercase}.rtmedia-gallery-item-actions .dashicons{font-size:17px;margin-right:2px;position:relative;top:1px}.rtmedia-gallery-item-actions .dashicons-trash{font-size:15px}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-gallery-item-actions{opacity:1}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-bulk-edit-item-wrap+.rtmedia-gallery-item-actions{opacity:0}.rtmedia-footer-link{clear:both;overflow:hidden;padding:16px 0;position:relative;text-align:center}.rtmedia-text-link-decoration,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span{text-decoration:none}.rtmedia-text-link-decoration:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span:hover{text-decoration:underline}.rtmedia-container .rtmedia-edit-list-media-table{max-height:300px;overflow-y:auto}.rtmedia-container .rtmedia-edit-list-media-table thead tr{background-color:#50A1D7}.rtmedia-container .rtmedia-edit-list-media-table thead th{text-align:center;color:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(odd){background:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(even){background:#DCDCDC}table.rtmedia-edit-media-list tr{line-height:30px}table.rtmedia-edit-media-list tr th{color:#333;padding:4px 10px;line-height:20px}table.rtmedia-edit-media-list tr .rtm-edit-media-list-heading{width:44%}table.rtmedia-edit-media-list tr .rtm-edit-media-list-title-heading{width:56%}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title{padding:4px;font-size:14px;line-height:24px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a{text-decoration:none;color:#333}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a{color:#333;font-size:13px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span{color:#FF0000;cursor:pointer;font-size:13px}.rtm-hide{display:none}.rtmedia-list-item .rtmedia-album-media-count{position:absolute;top:0;right:0;background-color:black;color:white;padding:0 5px}.rtm-tabs.rtm-tabs{border-bottom:1px solid #eee;list-style:none;margin:0 0 20px;padding:0}.rtm-tabs li{border:1px solid #eee;border-bottom:0;float:left;margin:0 5px;padding:0}.rtm-tabs a{border:0;display:block;padding:5px 15px;text-decoration:none}.rtm-tabs a:focus{background:transparent;box-shadow:0 0 0}.rtm-tabs .active{position:relative}.rtm-tabs .active:after{background:#fff;bottom:-1px;content:' ';height:1px;left:0;position:absolute;width:100%}.rtm-tabs .dashicons{font-size:16px;height:auto;line-height:20px;margin-right:8px;width:auto}.rtmedia-edit-media-tabs .rtm-tabs a{border-bottom:0 none}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:104211;overflow:hidden;position:fixed;background:rgba(0,0,0,0.9)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:104311;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;max-width:84%;margin:0 auto;right:0;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{background:#fff;color:#999;cursor:pointer;font-size:24px;font-style:normal;height:30px;line-height:30px;padding:0;position:absolute;right:1px;text-align:center;text-decoration:none;text-indent:2px;top:0;width:32px;z-index:12}.mfp-close:hover,.mfp-close:focus{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{cursor:pointer;position:absolute;opacity:0.65;filter:alpha(opacity=65);margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent;opacity:0;z-index:10;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .mfp-arrow{opacity:1}@media (max-device-width: 640px){.mfp-arrow{display:none}.rtm-single-media:hover .mfp-arrow{display:none}}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1;filter:alpha(opacity=100)}.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after,.mfp-arrow .mfp-a{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before,.mfp-arrow .mfp-b{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after,.mfp-arrow-left .mfp-a{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after,.mfp-arrow-right .mfp-a{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before,.mfp-arrow-right .mfp-b{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}.mfp-preloader{position:absolute;top:50%;left:0;right:0;margin-top:-36px;z-index:1044;font-size:0;width:36px;height:36px;margin-left:auto;margin-right:auto}.mfp-preloader:before{content:'Loading…';position:absolute;width:30px;height:30px}.mfp-preloader:not(:required):before{content:'';border-radius:50%;border:3px solid rgba(255,255,255,0.27);border-top-color:rgba(255,255,255,0.9);animation:spinner .6s linear infinite;-webkit-animation:spinner .6s linear infinite}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}#atwho-container #atwho-ground-comment_content .atwho-view{z-index:2147483647}.mfp-content .rtm-lightbox-container{background:#000;margin:0 auto;position:relative}.mfp-content .rtm-single-meta{background:#fff;overflow:hidden;padding:20px 20px 110px;position:relative;vertical-align:top}.rtm-single-media{overflow:hidden;position:relative;text-align:center;vertical-align:middle}.rtm-single-media .mejs-container{margin:0 auto;max-width:inherit}.rtm-single-media .rtmedia-message-container{position:absolute;top:45%;left:0;right:0;margin-left:auto;margin-right:auto}@media (max-device-width: 640px){.rtm-single-media .rtmedia-message-container{top:25%}}.rtm-ltb-action-container{background-color:rgba(0,0,0,0.6);bottom:0;color:#fff;line-height:38px;opacity:0;padding:0 10px;position:absolute;width:100%;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}@media (max-device-width: 640px){.rtm-ltb-action-container{clear:both;position:relative;opacity:1}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);display:block;font-family:inherit;font-weight:normal;line-height:24px;margin:0;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button:hover{background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.8)}#buddypress #rtmedia-single-media-container.rtmedia-single-media .rtm-options .button{color:#333;margin:0 auto;padding:0 4px 0 0}#buddypress #rtm-media-options-list .rtm-options form button{font-size:small}#buddypress #rtm-media-options-list .rtm-options .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);float:left;font-family:inherit;font-weight:normal;line-height:24px;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}.rtm-options.rtm-options{background:#666;color:#fff;display:none;font-size:14px;list-style:none;margin:0;padding:8px 10px;position:absolute;left:0;top:38px;width:190px;z-index:10}.rtm-options li{margin:0;overflow:hidden;padding:2px 0}.rtm-media-options .rtm-options:after{bottom:100%;left:20px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#666;border-width:6px;margin-left:-6px}.mfp-content .rtm-options{background:#fff;color:#333;bottom:38px;right:0;left:auto;top:auto}.mfp-content .rtm-options:after{top:100%;right:22px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:6px;margin-left:-6px}.rtm-options .dashicons{font-size:14px;line-height:24px;margin-right:2px}.rtm-media-options .rtm-options a{border:0;color:#fff;display:block;text-decoration:none}.rtm-ltb-title{color:rgba(255,255,255,0.7);float:left;font-size:13px}.rtm-ltb-title a{color:inherit}.rtm-ltb-title a:hover{border-bottom:1px dotted;color:#fff}.rtm-item-actions{float:right}.rtm-item-actions>div,.rtm-item-actions>form{float:left;margin:0 2px;padding:7px 0;position:relative}.rtmedia-media img{display:inline-block;max-height:inherit;height:auto;max-width:100%;width:auto}@media only screen and (max-device-width: 1024px){.rtmedia-media{margin:40px 0}}.rtm-user-meta-details .username{font-size:16px;line-height:1;margin-bottom:6px}.userprofile{float:left;margin:0 16px 16px 0;max-width:54px}.userprofile a{display:block}.userprofile img{height:auto;max-width:100%}.rtm-time-privacy{color:#999;font-size:12px}.rtm-time-privacy .dashicons{font-size:14px;line-height:1.5;margin-top:-2px}.rtmedia-actions-before-comments>span{float:left;margin-right:10px}.rtmedia-actions-before-comments .rtmedia-comment-link,#buddypress .rtmedia-actions-before-comments .rtmedia-like{border:0;font-size:13px;font-weight:normal;line-height:2;padding:0;text-transform:none}.rtmedia-actions-before-comments .rtmedia-comment-link:hover,#buddypress .rtmedia-actions-before-comments .rtmedia-like:hover{background:transparent}.rtmedia-comment-user-pic{float:left;margin-right:10px;max-width:36px}.rtmedia-comment-user-pic img{height:auto;max-width:100%}.rtm-like-comments-info{position:relative}.rtm-like-comments-info:after{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(237,239,244,0);border-bottom-color:#edeff4;border-width:4px;margin-left:-4px}.rtm-comment-list.rtm-comment-list{list-style:none;margin:0;padding:0}.rtm-comment-list li{background:#edeff4;font-size:12px;margin-bottom:1px;padding:10px;position:relative}.rtm-comment-list li:hover .rtmedia-delete-comment{opacity:1}.rtm-comment-list .rtmedia-no-comments{margin:0;padding:5px 10px}.rtmedia-like-info{background:#edeff4;font-size:12px;margin-bottom:1px;padding:5px 10px;position:relative}.rtm-comment-wrap{overflow:hidden}.rtm-comment-wrap .rtmedia-comment-author{font-weight:700}.rtm-comment-wrap .rtmedia-comment-date{color:#999;font-size:11px}.rtmedia-comment-content{margin-top:2px}.rtmedia-delete-comment{color:#999;cursor:pointer;font-size:16px;opacity:0;position:absolute;right:5px;top:5px}.rtmedia-comment-content p{margin:0}.rtmedia-comment-details{line-height:1.5;margin-top:-3px}.rtmedia-item-comments textarea{font-size:14px;padding:4px}.rtm-media-single-comments{background-color:#edeff4;bottom:20px;padding:10px;width:100%}.rtm-media-single-comments textarea{font-size:12px;line-height:14px;max-height:40px;min-height:30px;padding:4px}.rtmedia-popup{background:#fff;margin:20px auto;max-width:600px;padding:20px;position:relative;width:auto}.rtmedia-popup .rtm-modal-title{font-size:24px;margin-bottom:20px;margin-top:0}.rtmedia-popup label{display:block;margin-bottom:5px}#rtm-modal-container p{margin-bottom:10px}#rtm-mejs-video-container{margin:0 auto}.rtmedia-media-name{float:left;max-width:140px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.rtm-single-media.rtm-media-type-video{padding-bottom:40px;padding-top:40px}.rtmedia-gallery-alert-container{position:fixed;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,0.6);z-index:999997}.rtmedia-gallery-message-box{position:fixed;top:40%;left:50%;margin-left:auto;margin-right:auto;z-index:999999}.rtmedia-gallery-message-box span{position:relative;left:-50%}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}#buddypress ul.rtmedia-list li{border-bottom:0;padding-bottom:0}.rtmedia-activity-container .rtmedia-item-actions{display:none}.rtmedia-activity-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title a{border:0;color:#666;font-size:13px;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}#rtmedia-whts-new-upload-container div{left:0 !important;position:absolute;top:0 !important}#aw-whats-new-submit,.rtmedia-add-media-button{display:block}.rtm-drag-drop-active{border:4px dashed green !important;display:block;height:100%;opacity:0.5;z-index:9999}#rtm-drop-files-title{background:rgba(0,0,0,0.2);display:none;font-size:14px;height:100%;padding:20px;position:absolute;top:0;width:100%}#rtSelectPrivacy{float:right}.rtmedia-plupload-container{position:relative;float:left}.rtm-upload-button-wrapper{float:left;margin-right:5px}#rtmedia-action-update{margin-right:10px}.rtmedia-list-item.media-type-document,.rtmedia-list-item.media-type-music,.rtmedia-list-item.media-type-video{display:inline-block}.media-type-music .mejs-container{margin-bottom:10px}.previous-pagination{float:left;margin-top:10px}.next-pagination{float:right;margin-top:10px}@media screen and (max-width: 500px){#activity-stream li .media-type-video{width:100%}#activity-stream li .media-type-video .mejs-video{max-width:100%;min-width:100%}}#rtmedia_show_all_comment{cursor:pointer}#rtmedia_show_all_comment:hover{text-decoration:underline}.rtmedia-album-edit .rtm-checkbox-wrap{background:rgba(255,255,255,0.9);height:30px;line-height:1;padding:10px;position:absolute;z-index:10}.rtmedia-album-edit .rtmedia-item-selector{position:relative;top:-7px}.rtmedia-album-edit .rtmedia-move-container{display:none}.rtm-single-actions.rtm-item-actions{float:none}.media-item .describe{border-collapse:collapse;width:100%;border-top-style:solid;border-top-width:1px;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:bold}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:bold}.media-upload-form th.label label{font-weight:bold;margin:0.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}abbr.required{border:medium none;text-decoration:none}.media-item .describe input[type="text"],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.media-item .edit-attachment,.describe-toggle-on,.describe-toggle-off{display:block;line-height:36px;float:right;margin-right:15px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}#media-items .media-item{border-style:solid;border-width:1px;min-height:36px;position:relative;margin-top:-1px;width:100%}#media-items{width:623px}.media-new-php #media-items{margin:1em 0}#media-items:empty{border:0 none}.media-item .filename{line-height:36px;overflow:hidden;padding:0 10px}.media-item .error-div{padding-left:10px}.media-item .pinkynail{float:left;margin:2px 2px 0;max-width:40px;max-height:32px}.media-item .startopen,.media-item .startclosed{display:none}.media-item .original{position:relative;height:34px}.media-item .progress{float:right;height:22px;margin:6px 10px 0 0;width:200px;line-height:2em;padding:0;overflow:hidden;margin-bottom:2px;border:1px solid #d1d1d1;background:#f7f7f7;background-image:-webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));background-image:-webkit-linear-gradient(bottom, #fff, #f7f7f7);background-image:linear-gradient(to top, #fff, #f7f7f7);border-radius:3px;box-shadow:inset 0 0 3px rgba(0,0,0,0.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-24px;background-color:#8cc1e9;background-image:-webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));background-image:-webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);background-image:linear-gradient(to top, #72a7cf, #8cc1e9);border-radius:3px;box-shadow:0 0 3px rgba(0,0,0,0.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0 8px;text-shadow:0 1px 0 rgba(255,255,255,0.4);color:rgba(0,0,0,0.6)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}.media-upload-form .media-item.error{margin:0;padding:0}.media-upload-form .media-item.error p,.media-item .error-div{line-height:16px;margin:5px 10px;padding:0}.media-item .error-div a.dismiss{display:block;float:right;margin:5px 4px 0 15px}.find-box{width:600px;height:300px;overflow:hidden;padding:33px 0 51px;position:absolute;z-index:1000}.find-box-head{cursor:move;font-weight:bold;height:2em;line-height:2em;padding:1px 12px;position:absolute;top:5px;width:100%}.find-box-inside{overflow:auto;padding:6px;height:100%}.find-box-search{overflow:hidden;padding:9px;position:relative}.find-box-search .spinner{float:none;left:125px;position:absolute;top:9px}#find-posts-input{float:left;width:140px;height:24px}#find-posts-search{float:left;margin:1px 4px 0 3px}#find-posts-response{margin:8px 0;padding:0 1px 6px}#find-posts-response table{width:100%}#find-posts-response .found-radio{padding:3px 0 0 8px;width:15px}.find-box-buttons{padding:8px;overflow:hidden}.find-box #resize-se{position:absolute;right:1px;bottom:1px}.ui-find-overlay{position:absolute;top:0;left:0;background-color:#000;opacity:0.6;filter:alpha(opacity=60)}ul#dismissed-updates{display:none}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-0.5em 0 2em 0}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border-width:1px;border-style:solid;line-height:1.8em;word-spacing:3px;border-radius:6px}.drag-drop #drag-drop-area{border:4px dashed #DDDDDD;height:200px}.drag-drop .drag-drop-inside{margin:70px auto 0;width:250px}.drag-drop-inside p{color:#aaa;font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}#plupload-upload-ui{position:relative}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative}.imgedit-settings p{margin:8px 0}.post-php .imgedit-wrap table{width:100%}.describe .imgedit-wrap table td,.wp_attachment_holder .imgedit-wrap table td{vertical-align:top;padding-top:0}.describe .imgedit-wrap table td.imgedit-settings{padding:0 5px}.wp_attachment_holder .imgedit-wrap table td.imgedit-settings{width:250px}td.imgedit-settings input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;background:#fff url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat scroll 22px 10px;background-size:16px 16px;opacity:0.7;filter:alpha(opacity=70);width:100%;height:500px;display:none}.spinner{background:url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat;background-size:16px 16px;display:none;float:right;opacity:0.7;filter:alpha(opacity=70);width:16px;height:16px;margin:5px 5px 0}.no-float{float:none}.media-disabled,.imgedit-settings .disabled{color:grey}.wp_attachment_image,.A1B1{overflow:hidden}.wp_attachment_image .button,.A1B1 .button{float:left}.no-js .wp_attachment_image .button{display:none}.wp_attachment_image .spinner,.A1B1 .spinner{float:left;padding:0 4px 4px;vertical-align:bottom}.imgedit-menu{margin:0 0 12px;min-width:300px}.imgedit-menu div{float:left;width:32px;height:32px}.imgedit-crop-wrap{position:relative}.imgedit-crop{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -9px -31px;margin:0 8px 0 0}.imgedit-crop.disabled:hover{background-position:-9px -31px}.imgedit-crop:hover{background-position:-9px -1px}.imgedit-rleft{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -46px -31px;margin:0 3px}.imgedit-rleft.disabled:hover{background-position:-46px -31px}.imgedit-rleft:hover{background-position:-46px -1px}.imgedit-rright{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -77px -31px;margin:0 8px 0 3px}.imgedit-rright.disabled:hover{background-position:-77px -31px}.imgedit-rright:hover{background-position:-77px -1px}.imgedit-flipv{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -115px -31px;margin:0 3px}.imgedit-flipv.disabled:hover{background-position:-115px -31px}.imgedit-flipv:hover{background-position:-115px -1px}.imgedit-fliph{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -147px -31px;margin:0 8px 0 3px}.imgedit-fliph.disabled:hover{background-position:-147px -31px}.imgedit-fliph:hover{background-position:-147px -1px}.imgedit-undo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -184px -31px;margin:0 3px}.imgedit-undo.disabled:hover{background-position:-184px -31px}.imgedit-undo:hover{background-position:-184px -1px}.imgedit-redo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -215px -31px;margin:0 8px 0 3px}.imgedit-redo.disabled:hover{background-position:-215px -31px}.imgedit-redo:hover{background-position:-215px -1px}.imgedit-applyto img{margin:0 8px 0 0}.imgedit-group h3{font-size:18px}.imgedit-group .dashicons{border:0;line-height:1.2}.imgedit-group-top{margin:5px 0}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block}.imgedit-help{display:none;font-style:italic;margin-bottom:8px}a.imgedit-help-toggle{text-decoration:none}.form-table td.imgedit-response{padding:0}.imgedit-submit{margin:8px 0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle}.wp_attachment_details{margin-bottom:20px}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:0.5}.bp-media-image-editor-cotnainer{margin-top:35px}.wp_attachment_image .bp-media-image-edit{float:left}.wp_attachment_image .spinner{display:none}.bp-media-image-editor-cotnainer .hidden{display:none}.bp-media-image-editor-cotnainer div.updated{margin:5px 0 15px;background-color:#ffffe0;border-color:#e6db55;padding:0 .6em;border-radius:3px;border-width:1px;border-style:solid}.bp-media-image-editor-cotnainer div.updated p{margin:.5em 0;padding:2px}body article.bp_members.bp_member .entry-content,body div.bp_members.bp_member .entry-content{width:100%}.rtm-media-gallery-uploader{display:none}.rtmedia-uploader .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;color:#AAAAAA;margin-top:20px;padding:25px 0}.rtmedia-uploader .drag-drop.dragover{border-color:#83b4d8}.rtmedia-uploader .drag-drop .drag-drop-info{font-size:20px;line-height:24px}.rtmedia-uploader .drag-drop .rtm-select-files span{vertical-align:middle}.rtmedia-uploader .drag-drop .rtm-seperator{margin:0px 20px}.rtmedia-uploader .drag-drop .start-media-upload{display:none;margin-top:20px}.rtmedia-uploader .drag-drop .rtm-file-size-limit{vertical-align:middle;font-size:16px;line-height:24px}.rtm-uploader-main-wrapper .rtm-uploader-tabs{margin-bottom:10px;text-align:left}.rtm-uploader-main-wrapper ul{border-bottom:1px solid #CCC}.rtm-uploader-main-wrapper li{margin:0 0 -1px 10px;display:inline-block;padding:5px 10px;line-height:25px;background-color:#e4e4e4;border:1px solid #CCC}.rtm-uploader-main-wrapper li.active{background:transparent;border-left:1px solid #CCC;border-top:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #fafafa}.rtm-uploader-main-wrapper li:hover{cursor:pointer}.rtmedia-container .rtmedia-list{margin:10px -5px}.rtmedia-container .rtmedia-list .rtmedia-list-item{float:left;margin:5px;position:relative}.rtmedia-container .rtmedia-list .rtmedia-list-item>a{display:block}.rtmedia-container .rtmedia-list .rtmedia_time{background-color:#000;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:14px;opacity:0.75;padding:0 4px;position:absolute;right:2px;top:2px}.rtmedia-container .rtmedia-list img{vertical-align:top}.rtmedia-container .rtmedia-list .rtmedia-item-title h4{color:#666;font-size:12px;font-weight:normal;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.rtm-load-more{background:#eee;text-align:center}.rtmedia-container .rtm-load-more a{border:0;padding:10px 0}.rtm-load-more .rtm-media-loading{padding:10px 0}.rtm-media-options{line-height:1.4;margin-bottom:10px}.rtm-media-options>div{display:inline-block;cursor:pointer}.rtm-media-options .rtm-media-options-list{margin-right:5px;padding-right:10px;position:relative}.rtm-media-options>*{border-right:1px solid #999}.rtm-media-options>*:last-child{border-right:none}.rtm-media-options .dashicons{font-size:inherit;line-height:1.4}.rtmedia-upload-media-link{cursor:pointer}a.rtmedia-upload-media-link{border:none}.rtm-album-privacy span{font-size:16px;display:inline-block;margin:0 20px 20px 20px;vertical-align:top}.rtm-album-privacy label{margin-right:8px}.rtm-album-privacy .dashicons{font-size:16px;line-height:1.6;margin-right:5px}#rtm-media-options-list .rtmedia-delete-album{background:transparent;border:0;color:#fff;font-family:inherit;font-size:inherit;font-weight:inherit;padding:0;text-transform:inherit}#rtm-media-options-list .rtmedia-delete-album:hover{background:transparent;border:0;color:#fff}.rtmedia-single-container button.rtmedia-like{background-color:transparent;color:inherit}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mejs-container .mejs-controls .mejs-time{padding:10px 3px 0;content:''}.rtmedia-activity-container .mejs-playpause-button.mejs-play button:before,.rtmedia-activity-container .mejs-playpause-button.mejs-pause button:before,.rtmedia-activity-container .mejs-volume-button.mejs-mute button:before,.rtmedia-activity-container .mejs-fullscreen-button button:before,.rtmedia-media .mejs-playpause-button.mejs-play button:before,.rtmedia-media .mejs-playpause-button.mejs-pause button:before,.rtmedia-media .mejs-volume-button.mejs-mute button:before,.rtmedia-media .mejs-fullscreen-button button:before{content:''}@media only screen and (min-width: 1025px){.mfp-content .rtm-lightbox-container{display:table;table-layout:fixed;width:100%}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:table-cell;width:66.6667%}.mfp-content .rtm-single-meta{display:table-cell;width:33.3333%;padding:20px;height:473px}.mfp-content .rtm-single-meta .rtmedia-scroll{height:100%;overflow-X:hidden}}.rtl #rtSelectPrivacy{float:left}.rtl .rtmedia-plupload-container{float:right}.rtl .rtm-upload-button-wrapper{float:right}.rtl #whats-new-post-in-box{float:right}.rtl .describe-toggle-off{float:left}.rtl .media-item .pinkynail{float:right}.rtl .media-item .progress{float:left}.rtl .media-item .error-div a.dismiss{float:left}.rtl #find-posts-input{float:right}.rtl #find-posts-search{float:right}.rtl .spinner{float:left}.rtl .wp_attachment_image .button,.rtl .A1B1 .button{float:right}.rtl .wp_attachment_image .spinner,.rtl .A1B1 .spinner{float:right}.rtl .imgedit-menu div{float:right}.rtl .wp_attachment_image .bp-media-image-edit{float:right}.rtl .rtmedia-container .rtmedia-list .rtmedia-list-item{float:right}.rtl #buddypress #rtm-media-options-list .rtm-options .button{float:right}.rtl .rtm-ltb-title{float:right}.rtl .rtm-item-actions{float:left}.rtl .rtm-item-actions>div,.rtl .rtm-item-actions>form{float:right}.rtl .userprofile{float:right}.rtl .rtmedia-actions-before-comments>span{float:right}.rtl .rtmedia-comment-user-pic{float:right}.rtl .rtmedia-media-name{float:right}.rtl #rtmedia-uploader-form .rtm-plupload-list li,.rtl #rtmedia_uploader_filelist li{float:right}.rtl .rtm-page-number{float:right}.rtl .rtm-page-number .rtmedia-page-link{float:right}.rtl .rtm-pagination{float:right}.rtl .rtm-pagination .rtm-paginate{float:left}.rtl .rtm-tabs li{float:right}.rtl .alignleft{float:right}.rtl .alignright{float:left}
|
app/assets/css/sass/_activity.scss
CHANGED
@@ -6,12 +6,11 @@
|
|
6 |
* {
|
7 |
&,
|
8 |
&:before,
|
9 |
-
|
10 |
-webkit-box-sizing: inherit;
|
11 |
-moz-box-sizing: inherit;
|
12 |
box-sizing: inherit;
|
13 |
}
|
14 |
-
|
15 |
}
|
16 |
}
|
17 |
|
@@ -23,13 +22,11 @@
|
|
23 |
|
24 |
// hide unnecessory div
|
25 |
.rtmedia-activity-container {
|
26 |
-
|
27 |
.rtmedia-item-actions {
|
28 |
display: none;
|
29 |
}
|
30 |
|
31 |
.rtmedia-item-title {
|
32 |
-
|
33 |
&, a {
|
34 |
border: 0;
|
35 |
color: $gray;
|
@@ -41,38 +38,39 @@
|
|
41 |
white-space: nowrap;
|
42 |
}
|
43 |
}
|
44 |
-
|
45 |
}
|
46 |
|
47 |
// Uploader Button
|
48 |
#rtmedia-whts-new-upload-container div {
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
}
|
53 |
|
54 |
#aw-whats-new-submit,
|
55 |
.rtmedia-add-media-button {
|
56 |
-
display: block;
|
|
|
|
|
57 |
}
|
58 |
|
59 |
.rtm-drag-drop-active {
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
}
|
66 |
|
67 |
#rtm-drop-files-title {
|
68 |
background: rgba(0, 0, 0, 0.2);
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
}
|
77 |
|
78 |
#rtSelectPrivacy {
|
@@ -80,7 +78,7 @@
|
|
80 |
}
|
81 |
|
82 |
.rtmedia-plupload-container {
|
83 |
-
|
84 |
float: left;
|
85 |
}
|
86 |
|
@@ -106,4 +104,34 @@
|
|
106 |
.mejs-container {
|
107 |
margin-bottom: 10px;
|
108 |
}
|
109 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
* {
|
7 |
&,
|
8 |
&:before,
|
9 |
+
&:after {
|
10 |
-webkit-box-sizing: inherit;
|
11 |
-moz-box-sizing: inherit;
|
12 |
box-sizing: inherit;
|
13 |
}
|
|
|
14 |
}
|
15 |
}
|
16 |
|
22 |
|
23 |
// hide unnecessory div
|
24 |
.rtmedia-activity-container {
|
|
|
25 |
.rtmedia-item-actions {
|
26 |
display: none;
|
27 |
}
|
28 |
|
29 |
.rtmedia-item-title {
|
|
|
30 |
&, a {
|
31 |
border: 0;
|
32 |
color: $gray;
|
38 |
white-space: nowrap;
|
39 |
}
|
40 |
}
|
|
|
41 |
}
|
42 |
|
43 |
// Uploader Button
|
44 |
#rtmedia-whts-new-upload-container div {
|
45 |
+
left: 0 !important;
|
46 |
+
position: absolute;
|
47 |
+
top: 0 !important;
|
48 |
}
|
49 |
|
50 |
#aw-whats-new-submit,
|
51 |
.rtmedia-add-media-button {
|
52 |
+
display: block;
|
53 |
+
|
54 |
+
// Remove extra space
|
55 |
}
|
56 |
|
57 |
.rtm-drag-drop-active {
|
58 |
+
border: 4px dashed green !important;
|
59 |
+
display: block;
|
60 |
+
height: 100%;
|
61 |
+
opacity: 0.5;
|
62 |
+
z-index: 9999;
|
63 |
}
|
64 |
|
65 |
#rtm-drop-files-title {
|
66 |
background: rgba(0, 0, 0, 0.2);
|
67 |
+
display: none;
|
68 |
+
font-size: 14px;
|
69 |
+
height: 100%;
|
70 |
+
padding: 20px;
|
71 |
+
position: absolute;
|
72 |
+
top: 0;
|
73 |
+
width: 100%;
|
74 |
}
|
75 |
|
76 |
#rtSelectPrivacy {
|
78 |
}
|
79 |
|
80 |
.rtmedia-plupload-container {
|
81 |
+
position: relative;
|
82 |
float: left;
|
83 |
}
|
84 |
|
104 |
.mejs-container {
|
105 |
margin-bottom: 10px;
|
106 |
}
|
107 |
+
}
|
108 |
+
|
109 |
+
.previous-pagination {
|
110 |
+
float: left;
|
111 |
+
margin-top: 10px;
|
112 |
+
}
|
113 |
+
|
114 |
+
.next-pagination {
|
115 |
+
float: right;
|
116 |
+
margin-top: 10px;
|
117 |
+
}
|
118 |
+
|
119 |
+
@media screen and (max-width: 500px) {
|
120 |
+
#activity-stream li .media-type-video {
|
121 |
+
width: 100%;
|
122 |
+
|
123 |
+
.mejs-video {
|
124 |
+
max-width: 100%;
|
125 |
+
min-width: 100%;
|
126 |
+
}
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
//
|
131 |
+
#rtmedia_show_all_comment {
|
132 |
+
cursor: pointer;
|
133 |
+
|
134 |
+
&:hover {
|
135 |
+
text-decoration: underline;
|
136 |
+
}
|
137 |
+
}
|
app/assets/css/sass/_buddypress.scss
CHANGED
@@ -48,3 +48,11 @@
|
|
48 |
body.media.buddypress {
|
49 |
overflow-y: auto;
|
50 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
body.media.buddypress {
|
49 |
overflow-y: auto;
|
50 |
}
|
51 |
+
|
52 |
+
#buddypress input[type=submit]:focus {
|
53 |
+
background: #ededed;
|
54 |
+
border: 1px solid #bbb;
|
55 |
+
color: #555;
|
56 |
+
outline: 0;
|
57 |
+
text-decoration: none;
|
58 |
+
}
|
app/assets/css/sass/_popup.scss
CHANGED
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
// Additional Styles
|
2 |
.mfp-content {
|
3 |
.rtm-lightbox-container {
|
@@ -106,6 +117,14 @@
|
|
106 |
}
|
107 |
}
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
#buddypress #rtm-media-options-list {
|
110 |
.rtm-options {
|
111 |
.button {
|
@@ -293,6 +312,7 @@
|
|
293 |
.dashicons {
|
294 |
font-size: 14px;
|
295 |
line-height: 1.5;
|
|
|
296 |
}
|
297 |
}
|
298 |
|
1 |
+
/*
|
2 |
+
* popup autocomplete
|
3 |
+
*/
|
4 |
+
#atwho-container {
|
5 |
+
#atwho-ground-comment_content {
|
6 |
+
.atwho-view {
|
7 |
+
z-index: 2147483647;
|
8 |
+
}
|
9 |
+
}
|
10 |
+
}
|
11 |
+
|
12 |
// Additional Styles
|
13 |
.mfp-content {
|
14 |
.rtm-lightbox-container {
|
117 |
}
|
118 |
}
|
119 |
|
120 |
+
#buddypress #rtm-media-options-list {
|
121 |
+
.rtm-options {
|
122 |
+
form button {
|
123 |
+
font-size: small;
|
124 |
+
}
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
#buddypress #rtm-media-options-list {
|
129 |
.rtm-options {
|
130 |
.button {
|
312 |
.dashicons {
|
313 |
font-size: 14px;
|
314 |
line-height: 1.5;
|
315 |
+
margin-top: -2px;
|
316 |
}
|
317 |
}
|
318 |
|
app/assets/css/sass/_rtm.scss
CHANGED
@@ -438,3 +438,14 @@ table.rtmedia-edit-media-list {
|
|
438 |
.rtm-hide {
|
439 |
display: none;
|
440 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
438 |
.rtm-hide {
|
439 |
display: none;
|
440 |
}
|
441 |
+
|
442 |
+
.rtmedia-list-item {
|
443 |
+
.rtmedia-album-media-count {
|
444 |
+
position: absolute;
|
445 |
+
top: 0;
|
446 |
+
right: 0;
|
447 |
+
background-color: black;
|
448 |
+
color: white;
|
449 |
+
padding: 0 5px;
|
450 |
+
}
|
451 |
+
}
|
app/assets/js/rtMedia.backbone.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
var galleryObj;
|
2 |
var nextpage = 2;
|
3 |
var upload_sync = false;
|
4 |
-
var activity_id = -
|
5 |
var uploaderObj;
|
6 |
var objUploadView;
|
7 |
var rtmedia_load_template_flag = true;
|
8 |
|
9 |
-
jQuery( function
|
10 |
|
11 |
var o_is_album, o_is_edit_allowed;
|
12 |
-
if ( typeof ( is_album ) ==
|
13 |
-
o_is_album = new Array(
|
14 |
} else {
|
15 |
-
o_is_album = is_album
|
16 |
}
|
17 |
-
if ( typeof ( is_edit_allowed ) ==
|
18 |
-
o_is_edit_allowed = new Array(
|
19 |
} else {
|
20 |
o_is_edit_allowed = is_edit_allowed;
|
21 |
}
|
@@ -25,8 +25,8 @@ jQuery( function ( $ ) {
|
|
25 |
rtMedia = window.rtMedia || { };
|
26 |
|
27 |
rtMedia.Context = Backbone.Model.extend( {
|
28 |
-
url: function
|
29 |
-
var url = rtmedia_media_slug +
|
30 |
|
31 |
if ( ! upload_sync && nextpage > 0 ) {
|
32 |
url += 'pg/' + nextpage + '/';
|
@@ -35,34 +35,34 @@ jQuery( function ( $ ) {
|
|
35 |
return url;
|
36 |
},
|
37 |
defaults: {
|
38 |
-
|
39 |
-
|
40 |
}
|
41 |
} );
|
42 |
|
43 |
rtMedia.Media = Backbone.Model.extend( {
|
44 |
defaults: {
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
// "next" : -1,
|
67 |
// "prev" : -1
|
68 |
}
|
@@ -71,30 +71,30 @@ jQuery( function ( $ ) {
|
|
71 |
|
72 |
rtMedia.Gallery = Backbone.Collection.extend( {
|
73 |
model: rtMedia.Media,
|
74 |
-
url: function
|
75 |
var temp = window.location.pathname;
|
76 |
var url = '';
|
77 |
-
if ( temp.indexOf(
|
78 |
url = rtmedia_media_slug + '/';
|
79 |
} else {
|
80 |
-
if ( temp.indexOf( 'pg/' ) == -
|
81 |
url = temp;
|
82 |
} else {
|
83 |
-
url = window.location.pathname.substr( 0, window.location.pathname.lastIndexOf(
|
84 |
}
|
85 |
}
|
86 |
if ( ! upload_sync && nextpage > 1 ) {
|
87 |
-
if ( url.substr( url.length - 1 ) !=
|
88 |
-
url +=
|
89 |
}
|
90 |
|
91 |
url += 'pg/' + nextpage + '/';
|
92 |
}
|
93 |
return url;
|
94 |
},
|
95 |
-
getNext: function
|
96 |
if ( jQuery( '.rtmedia-no-media-found' ).length > 0 ) {
|
97 |
-
jQuery( '.rtmedia-no-media-found' ).replaceWith(
|
98 |
}
|
99 |
that = this;
|
100 |
if ( rtmedia_load_template_flag == true ) {
|
@@ -104,7 +104,7 @@ jQuery( function ( $ ) {
|
|
104 |
if ( jQuery( '.rtmedia_gallery_wrapper' ).find( 'input[name=lightbox]' ).length > 0 ) {
|
105 |
template_url += '&lightbox=' + jQuery( '.rtmedia_gallery_wrapper' ).find( 'input[name=lightbox]' ).val();
|
106 |
}
|
107 |
-
$(
|
108 |
rtmedia_load_template_flag = false;
|
109 |
that.getNext( page, el, element );
|
110 |
} );
|
@@ -116,36 +116,36 @@ jQuery( function ( $ ) {
|
|
116 |
rtmedia_page: nextpage
|
117 |
};
|
118 |
if ( el == undefined ) {
|
119 |
-
el = jQuery(
|
120 |
}
|
121 |
|
122 |
if ( el != undefined ) {
|
123 |
if ( element != undefined ) {
|
124 |
-
$( element ).parent().parent().prevAll(
|
125 |
-
if ( $( this ).attr(
|
126 |
-
query[ $( this ).attr(
|
127 |
}
|
128 |
} );
|
129 |
}
|
130 |
|
131 |
-
$( el ).find(
|
132 |
-
if ( $( this ).attr(
|
133 |
-
query[ $( this ).attr(
|
134 |
}
|
135 |
} );
|
136 |
}
|
137 |
|
138 |
this.fetch( {
|
139 |
data: query,
|
140 |
-
success: function
|
141 |
jQuery( '.rtm-media-loading' ).hide();
|
142 |
-
var list_el =
|
143 |
|
144 |
-
if ( typeof ( element ) ===
|
145 |
-
if( jQuery( el ).find( '.rtmedia-list' ).length > 0 ) {
|
146 |
list_el = jQuery( el ).find( '.rtmedia-list' );
|
147 |
} else {
|
148 |
-
list_el = $(
|
149 |
}
|
150 |
} else {
|
151 |
list_el = element.parent().siblings( '.rtmedia-list' );
|
@@ -154,7 +154,7 @@ jQuery( function ( $ ) {
|
|
154 |
nextpage = response.next;
|
155 |
|
156 |
if ( nextpage < 1 ) {
|
157 |
-
if ( typeof el ==
|
158 |
jQuery( el ).find( '.rtmedia_next_prev' ).children( '#rtMedia-galary-next' ).hide();
|
159 |
}
|
160 |
//$("#rtMedia-galary-next").show();
|
@@ -164,8 +164,8 @@ jQuery( function ( $ ) {
|
|
164 |
collection: new rtMedia.Gallery( response.data ),
|
165 |
el: list_el
|
166 |
} );
|
167 |
-
//
|
168 |
-
|
169 |
rtMediaHook.call( 'rtmedia_after_gallery_load' );
|
170 |
|
171 |
jQuery( '.rtmedia-container .rtmedia_next_prev .rtm-pagination' ).remove();
|
@@ -173,11 +173,16 @@ jQuery( function ( $ ) {
|
|
173 |
jQuery( '.rtmedia-container .rtmedia_next_prev .rtm-media-loading' ).remove();
|
174 |
jQuery( '.rtmedia-container .rtmedia_next_prev br' ).remove();
|
175 |
jQuery( '.rtmedia-container .rtmedia_next_prev' ).append( response.pagination );
|
|
|
|
|
|
|
|
|
|
|
176 |
}
|
177 |
} );
|
178 |
}
|
179 |
},
|
180 |
-
reloadView: function
|
181 |
upload_sync = true;
|
182 |
nextpage = 1;
|
183 |
jQuery( '.rtmedia-container .rtmedia-list' ).css( 'opacity', '0.5' );
|
@@ -188,20 +193,20 @@ jQuery( function ( $ ) {
|
|
188 |
rtMedia.MediaView = Backbone.View.extend( {
|
189 |
tagName: 'li',
|
190 |
className: 'rtmedia-list-item',
|
191 |
-
initialize: function
|
192 |
-
this.template = _.template( $(
|
193 |
this.model.bind( 'change', this.render );
|
194 |
this.model.bind( 'remove', this.unrender );
|
195 |
this.render();
|
196 |
},
|
197 |
-
render: function
|
198 |
$( this.el ).html( this.template( this.model.toJSON() ) );
|
199 |
return this.el;
|
200 |
},
|
201 |
-
unrender: function
|
202 |
$( this.el ).remove();
|
203 |
},
|
204 |
-
remove: function
|
205 |
this.model.destroy();
|
206 |
}
|
207 |
} );
|
@@ -209,11 +214,11 @@ jQuery( function ( $ ) {
|
|
209 |
rtMedia.GalleryView = Backbone.View.extend( {
|
210 |
tagName: 'ul',
|
211 |
className: 'rtmedia-list',
|
212 |
-
initialize: function
|
213 |
-
this.template = _.template( $(
|
214 |
this.render();
|
215 |
},
|
216 |
-
render: function
|
217 |
|
218 |
that = this;
|
219 |
|
@@ -225,7 +230,7 @@ jQuery( function ( $ ) {
|
|
225 |
$( that.el ).html( '' );
|
226 |
}
|
227 |
|
228 |
-
$.each( this.collection.toJSON(), function
|
229 |
$( that.el ).append( that.template( media ) );
|
230 |
} );
|
231 |
|
@@ -236,12 +241,12 @@ jQuery( function ( $ ) {
|
|
236 |
$( that.el ).siblings( '.rtmedia_next_prev' ).children( '#rtMedia-galary-next' ).show();
|
237 |
//$("#rtMedia-galary-next").show();
|
238 |
}
|
239 |
-
if ( typeof rtmedia_masonry_layout !=
|
240 |
rtm_masonry_reload( rtm_masonry_container );
|
241 |
}
|
242 |
},
|
243 |
-
appendTo: function
|
244 |
-
//
|
245 |
var mediaView = new rtMedia.MediaView( {
|
246 |
model: media
|
247 |
} );
|
@@ -251,11 +256,11 @@ jQuery( function ( $ ) {
|
|
251 |
|
252 |
galleryObj = new rtMedia.Gallery();
|
253 |
|
254 |
-
$(
|
255 |
|
256 |
-
$( document ).on(
|
257 |
if ( jQuery( '.rtm-media-loading' ).length == 0 ) {
|
258 |
-
$( this ).before(
|
259 |
} else {
|
260 |
jQuery( '.rtm-media-loading' ).show();
|
261 |
}
|
@@ -264,12 +269,26 @@ jQuery( function ( $ ) {
|
|
264 |
galleryObj.getNext( nextpage, $( this ).parent().parent().parent(), $( this ) );
|
265 |
} );
|
266 |
|
267 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
if ( e.keyCode == 13 ) {
|
269 |
e.preventDefault();
|
270 |
|
271 |
if ( jQuery( '.rtm-media-loading' ).length == 0 ) {
|
272 |
-
$( '.rtm-pagination' ).before(
|
273 |
} else {
|
274 |
jQuery( '.rtm-media-loading' ).show();
|
275 |
}
|
@@ -286,12 +305,12 @@ jQuery( function ( $ ) {
|
|
286 |
}
|
287 |
} );
|
288 |
|
289 |
-
$( document ).on(
|
290 |
/* Get current clicked href value */
|
291 |
href = $( this ).attr( 'href' );
|
292 |
|
293 |
if ( jQuery( '.rtm-media-loading' ).length == 0 ) {
|
294 |
-
$( '.rtm-pagination' ).before(
|
295 |
} else {
|
296 |
jQuery( '.rtm-media-loading' ).show();
|
297 |
}
|
@@ -300,7 +319,7 @@ jQuery( function ( $ ) {
|
|
300 |
if ( $( this ).data( 'page-type' ) == 'page' ) {
|
301 |
nextpage = $( this ).data( 'page' );
|
302 |
} else if ( $( this ).data( 'page-type' ) == 'prev' ) {
|
303 |
-
if ( nextpage == -
|
304 |
nextpage = parseInt( $( '#rtmedia_last_page' ).val() ) - 1;
|
305 |
} else {
|
306 |
nextpage -= 2;
|
@@ -323,11 +342,11 @@ jQuery( function ( $ ) {
|
|
323 |
galleryObj.getNext( nextpage, $( this ).parent().parent().parent().parent().parent(), $( this ).parent().parent() );
|
324 |
}
|
325 |
change_rtBrowserAddressUrl( href, '' );
|
326 |
-
|
327 |
} );
|
328 |
|
329 |
-
if ( window.location.pathname.indexOf( rtmedia_media_slug ) != -
|
330 |
-
var tempNext = window.location.pathname.substring( window.location.pathname.lastIndexOf(
|
331 |
if ( isNaN( tempNext ) === false ) {
|
332 |
nextpage = parseInt( tempNext ) + 1;
|
333 |
}
|
@@ -335,42 +354,42 @@ jQuery( function ( $ ) {
|
|
335 |
|
336 |
window.UploadView = Backbone.View.extend( {
|
337 |
events: {
|
338 |
-
|
339 |
},
|
340 |
-
initialize: function
|
341 |
this.uploader = new plupload.Uploader( config );
|
342 |
},
|
343 |
-
render: function
|
344 |
|
345 |
},
|
346 |
-
initUploader: function
|
347 |
-
if ( typeof ( a ) !==
|
348 |
-
a = false;//
|
349 |
} this.uploader.init();
|
350 |
//The plupload HTML5 code gives a negative z-index making add files button unclickable
|
351 |
-
$(
|
352 |
zIndex: 0
|
353 |
} );
|
354 |
-
$(
|
355 |
zIndex: 2
|
356 |
} );
|
357 |
if ( a !== false ) {
|
358 |
window.file_size_info = rtmedia_max_file_msg + this.uploader.settings.max_file_size_msg;
|
359 |
-
if ( rtmedia_version_compare( rtm_wp_version,
|
360 |
file_extn = this.uploader.settings.filters.mime_types[0].extensions;
|
361 |
} else {
|
362 |
file_extn = this.uploader.settings.filters[0].extensions;
|
363 |
}
|
364 |
-
window.file_extn_info = rtmedia_allowed_file_formats +
|
365 |
|
366 |
-
var info = window.file_size_info +
|
367 |
-
$(
|
368 |
//$("#rtMedia-upload-button").after("<span>( <strong>" + rtmedia_max_file_msg + "</strong> "+ this.uploader.settings.max_file_size_msg + ")</span>");
|
369 |
}
|
370 |
|
371 |
return this;
|
372 |
},
|
373 |
-
uploadFiles: function
|
374 |
if ( e != undefined ) {
|
375 |
e.preventDefault();
|
376 |
}
|
@@ -380,17 +399,17 @@ jQuery( function ( $ ) {
|
|
380 |
|
381 |
} );
|
382 |
|
383 |
-
if ( $(
|
384 |
-
if ( typeof rtmedia_upload_type_filter ==
|
385 |
rtMedia_plupload_config.filters[0].extensions = rtmedia_upload_type_filter.join();
|
386 |
}
|
387 |
uploaderObj = new UploadView( rtMedia_plupload_config );
|
388 |
uploaderObj.initUploader();
|
389 |
|
390 |
-
uploaderObj.uploader.bind( 'UploadComplete', function
|
391 |
-
activity_id = -
|
392 |
var hook_respo = rtMediaHook.call( 'rtmedia_js_after_files_uploaded' );
|
393 |
-
if ( typeof rtmedia_gallery_reload_on_upload !=
|
394 |
if ( hook_respo != false ) {
|
395 |
galleryObj.reloadView();
|
396 |
}
|
@@ -401,20 +420,20 @@ jQuery( function ( $ ) {
|
|
401 |
window.onbeforeunload = null;
|
402 |
} );
|
403 |
|
404 |
-
uploaderObj.uploader.bind( 'FilesAdded', function
|
405 |
var upload_size_error = false;
|
406 |
-
var upload_error =
|
407 |
-
var upload_error_sep =
|
408 |
var upload_remove_array = [ ];
|
409 |
-
$.each( files, function
|
410 |
-
//
|
411 |
rtm_file_name_array = file.name.split( '.' );
|
412 |
file.title = rtm_file_name_array[0];
|
413 |
|
414 |
-
var hook_respo = rtMediaHook.call( 'rtmedia_js_file_added', [ up, file,
|
415 |
|
416 |
if ( hook_respo == false ) {
|
417 |
-
file.status = -
|
418 |
upload_remove_array.push( file.id );
|
419 |
return true;
|
420 |
}
|
@@ -428,8 +447,8 @@ jQuery( function ( $ ) {
|
|
428 |
if ( uploaderObj.uploader.settings.max_file_size < file.size ) {
|
429 |
return true;
|
430 |
}
|
431 |
-
var tmp_array = file.name.split(
|
432 |
-
if ( rtmedia_version_compare( rtm_wp_version,
|
433 |
var ext_array = uploaderObj.uploader.settings.filters.mime_types[0].extensions.split( ',' );
|
434 |
} else {
|
435 |
var ext_array = uploaderObj.uploader.settings.filters[0].extensions.split( ',' );
|
@@ -437,14 +456,14 @@ jQuery( function ( $ ) {
|
|
437 |
if ( tmp_array.length > 1 ) {
|
438 |
var ext = tmp_array[tmp_array.length - 1];
|
439 |
ext = ext.toLowerCase();
|
440 |
-
if ( jQuery.inArray( ext, ext_array ) === -
|
441 |
return true;
|
442 |
}
|
443 |
} else {
|
444 |
return true;
|
445 |
}
|
446 |
|
447 |
-
if ( rtmedia_version_compare( rtm_wp_version,
|
448 |
uploaderObj.uploader.settings.filters.mime_types[0].title;
|
449 |
} else {
|
450 |
uploaderObj.uploader.settings.filters[0].title;
|
@@ -454,16 +473,16 @@ jQuery( function ( $ ) {
|
|
454 |
rtmedia_selected_file_list( plupload, file, '', '' );
|
455 |
|
456 |
//Delete Function
|
457 |
-
$(
|
458 |
e.preventDefault();
|
459 |
uploaderObj.uploader.removeFile( up.getFile( file.id ) );
|
460 |
-
$(
|
461 |
rtMediaHook.call( 'rtmedia_js_file_remove', [ up, file ] );
|
462 |
return false;
|
463 |
} );
|
464 |
|
465 |
// To change the name of the uploading file
|
466 |
-
$(
|
467 |
e.preventDefault();
|
468 |
|
469 |
rtm_file_label = this;
|
@@ -484,7 +503,7 @@ jQuery( function ( $ ) {
|
|
484 |
jQuery( rtm_file_label ).hide();
|
485 |
jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' ).hide();
|
486 |
|
487 |
-
//
|
488 |
if ( jQuery( rtm_file_title_input ).length === 0 ) {
|
489 |
jQuery( rtm_file_label ).parent( '.plupload_file_name' ).prepend( '<div id="' + rtm_file_title_wrapper_id + '" class="rtm-upload-edit-title-wrapper"><label>' + rtmedia_edit_media_info_upload.title + '</label><input type="text" class="rtm-upload-edit-title" id="' + rtm_file_title_id + '" value="' + file.title + '" style="width: 75%;" /></div><div id="' + rtm_file_desc_wrapper_id + '" class="rtm-upload-edit-desc-wrapper"><label>' + rtmedia_edit_media_info_upload.description + '</label><textarea class="rtm-upload-edit-desc" id="' + rtm_file_desc_id + '"></textarea></div><span id="' + rtm_file_save_id + '" title="Save Change" class="rtmicon dashicons dashicons-yes"></span>' );
|
490 |
} else {
|
@@ -495,32 +514,49 @@ jQuery( function ( $ ) {
|
|
495 |
|
496 |
jQuery( rtm_file_title_input ).focus();
|
497 |
|
498 |
-
//
|
499 |
-
|
500 |
-
|
501 |
-
var file_desc_val = jQuery( rtm_file_desc_input ).val();
|
502 |
-
var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
|
503 |
|
504 |
-
|
505 |
-
file_name_wrapper_el.text( file_title_val + "." + rtm_file_name_array[ 1 ] );
|
506 |
-
file.title = file_title_val;
|
507 |
-
}
|
508 |
|
509 |
-
|
510 |
-
|
511 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
512 |
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' )
|
517 |
-
jQuery( rtm_file_label ).show();
|
518 |
-
jQuery( this ).hide();
|
519 |
} );
|
520 |
} );
|
521 |
} );
|
522 |
|
523 |
-
$.each( upload_remove_array, function
|
524 |
if ( up.getFile( rfile ) ) {
|
525 |
up.removeFile( up.getFile( rfile ) );
|
526 |
}
|
@@ -538,28 +574,28 @@ jQuery( function ( $ ) {
|
|
538 |
|
539 |
} );
|
540 |
|
541 |
-
uploaderObj.uploader.bind( 'Error', function
|
542 |
|
543 |
-
if ( err.code == -
|
544 |
var tmp_array;
|
545 |
var ext = tr = '';
|
546 |
-
tmp_array = err.file.name.split(
|
547 |
if ( tmp_array.length > 1 ) {
|
548 |
ext = tmp_array[tmp_array.length - 1];
|
549 |
-
if ( ! ( typeof ( up.settings.upload_size ) !=
|
550 |
rtmedia_selected_file_list( plupload, err.file, up, err );
|
551 |
}
|
552 |
}
|
553 |
} else {
|
554 |
|
555 |
-
if ( err.code == -
|
556 |
err.message = rtmedia_file_extension_error_msg;
|
557 |
}
|
558 |
|
559 |
rtmedia_selected_file_list( plupload, err.file, '', err );
|
560 |
}
|
561 |
|
562 |
-
jQuery( '.plupload_delete' ).on( 'click', function
|
563 |
e.preventDefault();
|
564 |
jQuery( this ).parent().parent( 'li' ).remove();
|
565 |
} );
|
@@ -567,7 +603,7 @@ jQuery( function ( $ ) {
|
|
567 |
|
568 |
} );
|
569 |
|
570 |
-
jQuery( '.start-media-upload' ).on( 'click', function
|
571 |
e.preventDefault();
|
572 |
|
573 |
/**
|
@@ -583,43 +619,43 @@ jQuery( function ( $ ) {
|
|
583 |
}
|
584 |
} );
|
585 |
|
586 |
-
uploaderObj.uploader.bind( 'UploadProgress', function
|
587 |
//$("#" + file.id + " .plupload_file_status").html(file.percent + "%");
|
588 |
//$( "#" + file.id + " .plupload_file_status" ).html( rtmedia_uploading_msg + '( ' + file.percent + '% )' );
|
589 |
-
$(
|
590 |
-
$(
|
591 |
if ( file.percent == 100 ) {
|
592 |
-
$(
|
593 |
}
|
594 |
|
595 |
-
window.onbeforeunload = function
|
596 |
var message = rtmedia_upload_progress_error_message;
|
597 |
return message;
|
598 |
};
|
599 |
} );
|
600 |
|
601 |
-
uploaderObj.uploader.bind( 'BeforeUpload', function
|
602 |
up.settings.multipart_params.title = file.title.split( '.' )[ 0 ];
|
603 |
|
604 |
-
if ( typeof file.description !=
|
605 |
up.settings.multipart_params.description = file.description;
|
606 |
} else {
|
607 |
up.settings.multipart_params.description = '';
|
608 |
}
|
609 |
|
610 |
-
var privacy = $(
|
611 |
if ( privacy !== undefined ) {
|
612 |
-
up.settings.multipart_params.privacy = $(
|
613 |
}
|
614 |
-
if ( jQuery(
|
615 |
up.settings.multipart_params.redirect = up.files.length;
|
616 |
}
|
617 |
-
jQuery(
|
618 |
-
up.settings.multipart_params[$( this ).attr(
|
619 |
} );
|
620 |
up.settings.multipart_params.activity_id = activity_id;
|
621 |
if ( $( '#rtmedia-uploader-form .rtmedia-user-album-list' ).length > 0 ) {
|
622 |
-
up.settings.multipart_params.album_id = $( '#rtmedia-uploader-form .rtmedia-user-album-list' ).find(
|
623 |
} else if ( $( '#rtmedia-uploader-form .rtmedia-current-album' ).length > 0 ) {
|
624 |
up.settings.multipart_params.album_id = $( '#rtmedia-uploader-form .rtmedia-current-album' ).val();
|
625 |
}
|
@@ -627,13 +663,14 @@ jQuery( function ( $ ) {
|
|
627 |
rtMediaHook.call( 'rtmedia_js_before_file_upload', [up, file] );
|
628 |
} );
|
629 |
|
630 |
-
uploaderObj.uploader.bind( 'FileUploaded', function
|
631 |
-
if ( /MSIE (\d+\.\d+);/.test( navigator.userAgent ) ) { //
|
632 |
-
var ieversion = new Number( RegExp.$1 ) //
|
633 |
|
634 |
if ( ieversion < 10 ) {
|
635 |
-
if ( typeof res.response !==
|
636 |
-
res.status = 200;
|
|
|
637 |
}
|
638 |
}
|
639 |
var rtnObj;
|
@@ -645,27 +682,26 @@ jQuery( function ( $ ) {
|
|
645 |
if ( rtnObj.permalink != '' ) {
|
646 |
$( "#" + file.id + " .plupload_file_name" ).html( "<a href='" + rtnObj.permalink + "' target='_blank' title='" + rtnObj.permalink + "'>" + file.title.substring( 0, 40 ).replace( /(<([^>]+)>)/ig, "" ) + "</a>" );
|
647 |
$( "#" + file.id + " .plupload_media_edit" ).html( "<a href='" + rtnObj.permalink + "edit' target='_blank'><span title='" + rtmedia_edit_media + "'><i class='dashicons dashicons-edit rtmicon'></i> " + rtmedia_edit + "</span></a>" );
|
648 |
-
$( "#" + file.id + " .plupload_delete" ).html( "<span id='" + rtnObj.media_id + "' class='rtmedia-delete-uploaded-media' title='" + rtmedia_delete + "'
|
649 |
}
|
650 |
|
651 |
} catch ( e ) {
|
652 |
-
//
|
653 |
}
|
654 |
if ( res.status == 200 || res.status == 302 ) {
|
655 |
if ( uploaderObj.upload_count == undefined ) {
|
656 |
uploaderObj.upload_count = 1;
|
657 |
} else {
|
658 |
-
uploaderObj.upload_count
|
659 |
}
|
660 |
|
661 |
-
if ( uploaderObj.upload_count == up.files.length && jQuery(
|
662 |
window.location = rtnObj.redirect_url;
|
663 |
}
|
664 |
|
665 |
-
$( "#" + file.id + " .plupload_file_status" ).html( rtmedia_uploaded_msg );
|
666 |
rtMediaHook.call( 'rtmedia_js_after_file_upload', [ up, file, res.response ] );
|
667 |
} else {
|
668 |
-
$(
|
669 |
}
|
670 |
|
671 |
files = up.files;
|
@@ -673,26 +709,26 @@ jQuery( function ( $ ) {
|
|
673 |
|
674 |
} );
|
675 |
|
676 |
-
uploaderObj.uploader.refresh();//
|
677 |
|
678 |
-
$(
|
679 |
uploaderObj.uploadFiles( e );
|
680 |
} );
|
681 |
-
$(
|
682 |
|
683 |
-
jQuery( document ).on( 'click', '#rtm_show_upload_ui', function
|
684 |
jQuery( '#rtm-media-gallery-uploader' ).slideToggle();
|
685 |
-
uploaderObj.uploader.refresh();//
|
686 |
jQuery( '#rtm_show_upload_ui' ).toggleClass( 'primary' );
|
687 |
} );
|
688 |
} else {
|
689 |
-
jQuery( document ).on( 'click', '#rtm_show_upload_ui', function
|
690 |
jQuery( '#rtm-media-gallery-uploader' ).slideToggle();
|
691 |
jQuery( '#rtm_show_upload_ui' ).toggleClass( 'primary' );
|
692 |
} );
|
693 |
}
|
694 |
|
695 |
-
jQuery( document ).on( 'click', '.plupload_delete .rtmedia-delete-uploaded-media', function
|
696 |
var that = $( this );
|
697 |
if ( confirm( rtmedia_delete_uploaded_media ) ) {
|
698 |
var nonce = $( '#rtmedia-upload-container #rtmedia_media_delete_nonce' ).val();
|
@@ -701,9 +737,9 @@ jQuery( function ( $ ) {
|
|
701 |
action: 'delete_uploaded_media',
|
702 |
nonce: nonce,
|
703 |
media_id: media_id
|
704 |
-
}
|
705 |
|
706 |
-
$.post( ajaxurl, data, function
|
707 |
if ( response == '1' ) {
|
708 |
that.closest( 'tr' ).remove();
|
709 |
$( '#' + media_id ).remove();
|
@@ -716,27 +752,32 @@ jQuery( function ( $ ) {
|
|
716 |
|
717 |
/** Activity Update Js **/
|
718 |
|
719 |
-
jQuery( document ).ready( function
|
720 |
-
|
721 |
-
//
|
722 |
-
|
723 |
-
|
724 |
-
|
|
|
|
|
|
|
|
|
|
|
725 |
jQuery( '#aw-whats-new-submit' ).removeAttr( 'disabled' );
|
726 |
}, 100 );
|
727 |
} );
|
728 |
-
jQuery( '#aw-whats-new-submit' ).on( 'click', function
|
729 |
-
setTimeout( function
|
730 |
jQuery( '#aw-whats-new-submit' ).removeAttr( 'disabled' );
|
731 |
}, 100 );
|
732 |
-
} )
|
733 |
|
734 |
-
//
|
735 |
-
jQuery( '#whats-new-post-in' ).on( 'change', function
|
736 |
if ( jQuery( this ).val() == '0' ) {
|
737 |
-
jQuery(
|
738 |
} else {
|
739 |
-
jQuery(
|
740 |
}
|
741 |
} );
|
742 |
|
@@ -745,15 +786,15 @@ jQuery( document ).ready( function ( $ ) {
|
|
745 |
}
|
746 |
var activity_attachemnt_ids = [ ];
|
747 |
|
748 |
-
if ( $(
|
749 |
objUploadView = new UploadView( rtMedia_update_plupload_config );
|
750 |
objUploadView.initUploader();
|
751 |
|
752 |
-
setTimeout( function
|
753 |
-
if ( $(
|
754 |
-
$(
|
755 |
-
if ( $(
|
756 |
-
$(
|
757 |
}
|
758 |
$( '#rtmedia-whts-new-upload-container > div' ).css( 'top', '0' );
|
759 |
$( '#rtmedia-whts-new-upload-container > div' ).css( 'left', '0' );
|
@@ -764,31 +805,31 @@ jQuery( document ).ready( function ( $ ) {
|
|
764 |
$( '#whats-new-options' ).append( $( '.rtmedia-uploader-div' ) );
|
765 |
}
|
766 |
|
767 |
-
$(
|
768 |
objUploadView.uploader.refresh();
|
769 |
$( '#rtmedia-whts-new-upload-container > div' ).css( 'top', '0' );
|
770 |
$( '#rtmedia-whts-new-upload-container > div' ).css( 'left', '0' );
|
771 |
|
772 |
//Enable 'post update' button when media get select
|
773 |
-
$( '#aw-whats-new-submit' ).prop(
|
774 |
} );
|
775 |
-
//
|
776 |
|
777 |
objUploadView.upload_remove_array = [ ];
|
778 |
|
779 |
-
objUploadView.uploader.bind( 'FilesAdded', function
|
780 |
//$("#aw-whats-new-submit").attr('disabled', 'disabled');
|
781 |
|
782 |
-
$.each( rfiles, function
|
783 |
|
784 |
-
//
|
785 |
rtm_file_name_array = file.name.split( '.' );
|
786 |
file.title = rtm_file_name_array[0];
|
787 |
|
788 |
-
var hook_respo = rtMediaHook.call( 'rtmedia_js_file_added', [ upl, file,
|
789 |
|
790 |
if ( hook_respo == false ) {
|
791 |
-
file.status = -
|
792 |
objUploadView.upload_remove_array.push( file.id );
|
793 |
return true;
|
794 |
}
|
@@ -797,9 +838,9 @@ jQuery( document ).ready( function ( $ ) {
|
|
797 |
return true;
|
798 |
}
|
799 |
|
800 |
-
var tmp_array = file.name.split(
|
801 |
|
802 |
-
if ( rtmedia_version_compare( rtm_wp_version,
|
803 |
var ext_array = objUploadView.uploader.settings.filters.mime_types[0].extensions.split( ',' );
|
804 |
} else {
|
805 |
var ext_array = objUploadView.uploader.settings.filters[0].extensions.split( ',' );
|
@@ -807,7 +848,7 @@ jQuery( document ).ready( function ( $ ) {
|
|
807 |
if ( tmp_array.length > 1 ) {
|
808 |
var ext = tmp_array[tmp_array.length - 1];
|
809 |
ext = ext.toLowerCase();
|
810 |
-
if ( jQuery.inArray( ext, ext_array ) === -
|
811 |
return true;
|
812 |
}
|
813 |
} else {
|
@@ -818,26 +859,28 @@ jQuery( document ).ready( function ( $ ) {
|
|
818 |
|
819 |
jQuery( '#whats-new-content' ).css( 'padding-bottom', '0px' );
|
820 |
|
821 |
-
$(
|
822 |
e.preventDefault();
|
823 |
objUploadView.uploader.removeFile( upl.getFile( file.id ) );
|
824 |
-
$(
|
825 |
return false;
|
826 |
} );
|
827 |
|
828 |
// To change the name of the uploading file
|
829 |
-
$(
|
830 |
e.preventDefault();
|
831 |
|
832 |
rtm_file_label = this;
|
833 |
|
834 |
rtm_file_title_id = 'text_' + file.id;
|
835 |
rtm_file_title_input = '#' + rtm_file_title_id;
|
|
|
836 |
rtm_file_title_wrapper_id = 'rtm_title_wp_' + file.id;
|
837 |
rtm_file_title_wrapper = '#' + rtm_file_title_wrapper_id;
|
838 |
|
839 |
rtm_file_desc_id = 'rtm_desc_' + file.id;
|
840 |
rtm_file_desc_input = '#' + rtm_file_desc_id;
|
|
|
841 |
rtm_file_desc_wrapper_id = 'rtm_desc_wp_' + file.id;
|
842 |
rtm_file_desc_wrapper = '#' + rtm_file_desc_wrapper_id;
|
843 |
|
@@ -847,7 +890,7 @@ jQuery( document ).ready( function ( $ ) {
|
|
847 |
jQuery( rtm_file_label ).hide();
|
848 |
jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' ).hide();
|
849 |
|
850 |
-
//
|
851 |
if ( jQuery( rtm_file_title_input ).length === 0 ) {
|
852 |
jQuery( rtm_file_label ).parent( '.plupload_file_name' ).prepend( '<div id="' + rtm_file_title_wrapper_id + '" class="rtm-upload-edit-title-wrapper"><label>' + rtmedia_edit_media_info_upload.title + '</label><input type="text" class="rtm-upload-edit-title" id="' + rtm_file_title_id + '" value="' + file.title + '" style="width: 75%;" /></div><div id="' + rtm_file_desc_wrapper_id + '" class="rtm-upload-edit-desc-wrapper"><label>' + rtmedia_edit_media_info_upload.description + '</label><textarea class="rtm-upload-edit-desc" id="' + rtm_file_desc_id + '"></textarea></div><span id="' + rtm_file_save_id + '" title="Save Change" class="rtmicon dashicons dashicons-yes"></span>' );
|
853 |
} else {
|
@@ -858,55 +901,89 @@ jQuery( document ).ready( function ( $ ) {
|
|
858 |
|
859 |
jQuery( rtm_file_title_input ).focus();
|
860 |
|
861 |
-
|
862 |
-
var file_title_val = jQuery( rtm_file_title_input ).val();
|
863 |
-
var file_desc_val = jQuery( rtm_file_desc_input ).val();
|
864 |
-
var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
|
865 |
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
|
|
|
|
870 |
|
871 |
-
|
872 |
-
|
873 |
-
}
|
874 |
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
882 |
} );
|
883 |
} );
|
884 |
|
885 |
-
$.each( objUploadView.upload_remove_array, function
|
886 |
if ( upl.getFile( rfile ) ) {
|
887 |
upl.removeFile( upl.getFile( rfile ) );
|
888 |
}
|
889 |
} );
|
890 |
|
891 |
-
if ( typeof rtmedia_direct_upload_enabled != 'undefined' && rtmedia_direct_upload_enabled == '1'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
892 |
//Call upload event direct when direct upload is enabled (removed UPLOAD button and its triggered event)
|
893 |
var allow_upload = rtMediaHook.call( 'rtmedia_js_upload_file', true );
|
894 |
|
895 |
if ( allow_upload == false ) {
|
896 |
return false;
|
897 |
}
|
898 |
-
|
899 |
objUploadView.uploadFiles();
|
900 |
}
|
901 |
} );
|
902 |
|
903 |
-
objUploadView.uploader.bind( 'FileUploaded', function
|
904 |
-
if ( /MSIE (\d+\.\d+);/.test( navigator.userAgent ) ) { //
|
905 |
-
var ieversion = new Number( RegExp.$1 ) //
|
906 |
|
907 |
if ( ieversion < 10 ) {
|
908 |
try {
|
909 |
-
if ( typeof JSON.parse( res.response ) !==
|
910 |
res.status = 200;
|
911 |
}
|
912 |
} catch ( e ) {
|
@@ -917,11 +994,11 @@ jQuery( document ).ready( function ( $ ) {
|
|
917 |
if ( res.status == 200 ) {
|
918 |
try {
|
919 |
var objIds = JSON.parse( res.response );
|
920 |
-
$.each( objIds, function
|
921 |
activity_attachemnt_ids.push( val );
|
922 |
-
if ( $(
|
923 |
-
$(
|
924 |
-
|
925 |
}
|
926 |
} );
|
927 |
} catch ( e ) {
|
@@ -931,28 +1008,28 @@ jQuery( document ).ready( function ( $ ) {
|
|
931 |
}
|
932 |
} );
|
933 |
|
934 |
-
objUploadView.uploader.bind( 'Error', function
|
935 |
|
936 |
-
if ( err.code == -
|
937 |
var tmp_array;
|
938 |
var ext = tr = '';
|
939 |
-
tmp_array = err.file.name.split(
|
940 |
if ( tmp_array.length > 1 ) {
|
941 |
|
942 |
ext = tmp_array[tmp_array.length - 1];
|
943 |
-
if ( ! ( typeof ( up.settings.upload_size ) !=
|
944 |
rtmedia_selected_file_list( plupload, err.file, up, err );
|
945 |
}
|
946 |
}
|
947 |
} else {
|
948 |
-
if ( err.code == -
|
949 |
err.message = rtmedia_file_extension_error_msg;
|
950 |
}
|
951 |
|
952 |
rtmedia_selected_file_list( plupload, err.file, '', err );
|
953 |
}
|
954 |
|
955 |
-
jQuery( '.plupload_delete' ).on( 'click', function
|
956 |
e.preventDefault();
|
957 |
jQuery( this ).parent().parent( 'li' ).remove();
|
958 |
} );
|
@@ -961,70 +1038,72 @@ jQuery( document ).ready( function ( $ ) {
|
|
961 |
|
962 |
} );
|
963 |
|
964 |
-
objUploadView.uploader.bind( 'BeforeUpload', function
|
965 |
|
966 |
-
$.each( objUploadView.upload_remove_array, function
|
967 |
if ( up.getFile( rfile ) ) {
|
968 |
-
up.removeFile( up.getFile( rfile ) );
|
|
|
969 |
} );
|
970 |
|
971 |
var object = '';
|
972 |
-
var item_id = jQuery(
|
973 |
if ( item_id == undefined ) {
|
974 |
-
item_id = 0;
|
|
|
975 |
if ( item_id > 0 ) {
|
976 |
-
object =
|
977 |
} else {
|
978 |
-
object =
|
979 |
}
|
980 |
|
981 |
up.settings.multipart_params.context = object;
|
982 |
up.settings.multipart_params.context_id = item_id;
|
983 |
up.settings.multipart_params.title = files.title.split( '.' )[ 0 ];
|
984 |
|
985 |
-
if ( typeof files.description !=
|
986 |
up.settings.multipart_params.description = files.description;
|
987 |
} else {
|
988 |
up.settings.multipart_params.description = '';
|
989 |
}
|
990 |
|
991 |
-
//
|
992 |
-
if ( jQuery(
|
993 |
-
up.settings.multipart_params.privacy = jQuery(
|
994 |
}
|
995 |
} );
|
996 |
|
997 |
-
objUploadView.uploader.bind( 'UploadComplete', function
|
998 |
media_uploading = true;
|
999 |
-
$(
|
1000 |
$( '#rtmedia_uploader_filelist li.plupload_queue_li' ).remove();
|
1001 |
//$("#aw-whats-new-submit").removeAttr('disabled');
|
1002 |
window.onbeforeunload = null;
|
1003 |
} );
|
1004 |
|
1005 |
-
objUploadView.uploader.bind( 'UploadProgress', function
|
1006 |
//$( "#" + file.id + " .plupload_file_status" ).html( rtmedia_uploading_msg + '( ' + file.percent + '% )' );
|
1007 |
-
$(
|
1008 |
-
$(
|
1009 |
if ( file.percent == 100 ) {
|
1010 |
-
$(
|
1011 |
}
|
1012 |
|
1013 |
-
window.onbeforeunload = function
|
1014 |
var message = rtmedia_upload_progress_error_message;
|
1015 |
return message;
|
1016 |
};
|
1017 |
} );
|
1018 |
|
1019 |
-
$(
|
1020 |
|
1021 |
-
var change_flag = false
|
1022 |
var media_uploading = false;
|
1023 |
|
1024 |
-
$.ajaxPrefilter( function
|
1025 |
// Modify options, control originalOptions, store jqXHR, etc
|
1026 |
try {
|
1027 |
-
if ( originalOptions.data == null || typeof ( originalOptions.data ) ==
|
1028 |
return true;
|
1029 |
}
|
1030 |
} catch ( e ) {
|
@@ -1034,7 +1113,7 @@ jQuery( document ).ready( function ( $ ) {
|
|
1034 |
if ( originalOptions.data.action == 'post_update' || originalOptions.data.action == 'activity_widget_filter' ) {
|
1035 |
var temp = activity_attachemnt_ids;
|
1036 |
while ( activity_attachemnt_ids.length > 0 ) {
|
1037 |
-
options.data +=
|
1038 |
}
|
1039 |
|
1040 |
var dynamic_privacy = '';
|
@@ -1045,11 +1124,11 @@ jQuery( document ).ready( function ( $ ) {
|
|
1045 |
dynamic_privacy = jQuery( 'input[name="privacy"]' ).val();
|
1046 |
}
|
1047 |
|
1048 |
-
options.data +=
|
1049 |
activity_attachemnt_ids = temp;
|
1050 |
|
1051 |
var orignalSuccess = originalOptions.success;
|
1052 |
-
options.beforeSend = function
|
1053 |
/**
|
1054 |
* This hook is added for rtMedia Upload Terms plugin to check if it is checked or not for activity
|
1055 |
*/
|
@@ -1063,19 +1142,31 @@ jQuery( document ).ready( function ( $ ) {
|
|
1063 |
}
|
1064 |
|
1065 |
if ( originalOptions.data.action == 'post_update' ) {
|
1066 |
-
if ( $.trim( $(
|
1067 |
/*
|
1068 |
-
*Added $nbsp; as activity text to post activity without TEXT
|
1069 |
* Disabled TextBox color(transparent)
|
|
|
|
|
|
|
|
|
|
|
1070 |
*/
|
1071 |
-
|
1072 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1073 |
}
|
1074 |
}
|
1075 |
if ( ! media_uploading && objUploadView.uploader.files.length > 0 ) {
|
1076 |
-
$(
|
1077 |
-
$(
|
1078 |
-
objUploadView.uploadFiles()
|
1079 |
media_uploading = true;
|
1080 |
return false;
|
1081 |
} else {
|
@@ -1083,21 +1174,21 @@ jQuery( document ).ready( function ( $ ) {
|
|
1083 |
return true;
|
1084 |
}
|
1085 |
|
1086 |
-
}
|
1087 |
-
options.success = function
|
1088 |
orignalSuccess( response );
|
1089 |
if ( response[0] + response[1] == '-1' ) {
|
1090 |
//Error
|
1091 |
|
1092 |
} else {
|
1093 |
if ( originalOptions.data.action == 'activity_widget_filter' ) {
|
1094 |
-
$(
|
1095 |
apply_rtMagnificPopup( jQuery( '.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' ) );
|
1096 |
rtMediaHook.call( 'rtmedia_js_after_activity_added', [ ] );
|
1097 |
} );
|
1098 |
-
$(
|
1099 |
}
|
1100 |
-
jQuery(
|
1101 |
while ( objUploadView.uploader.files.pop() != undefined ) {
|
1102 |
}
|
1103 |
objUploadView.uploader.refresh();
|
@@ -1106,11 +1197,11 @@ jQuery( document ).ready( function ( $ ) {
|
|
1106 |
//$("#div-attache-rtmedia").hide();
|
1107 |
apply_rtMagnificPopup( jQuery( '.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' ) );
|
1108 |
jQuery( 'ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode' ).mediaelementplayer( {
|
1109 |
-
//
|
1110 |
defaultVideoWidth: 480,
|
1111 |
-
//
|
1112 |
-
defaultVideoHeight: 270
|
1113 |
-
//
|
1114 |
//videoWidth: 1,
|
1115 |
// if set, overrides <video height>
|
1116 |
//videoHeight: 1
|
@@ -1118,19 +1209,19 @@ jQuery( document ).ready( function ( $ ) {
|
|
1118 |
rtMediaHook.call( 'rtmedia_js_after_activity_added', [ ] );
|
1119 |
}
|
1120 |
|
1121 |
-
$(
|
1122 |
-
$(
|
1123 |
// Enabled TextBox color back to normal
|
1124 |
-
$(
|
1125 |
|
1126 |
-
}
|
1127 |
}
|
1128 |
} );
|
1129 |
} else {
|
1130 |
-
$.ajaxPrefilter( function
|
1131 |
// Modify options, control originalOptions, store jqXHR, etc
|
1132 |
try {
|
1133 |
-
if ( originalOptions.data == null || typeof ( originalOptions.data ) ==
|
1134 |
return true;
|
1135 |
}
|
1136 |
} catch ( e ) {
|
@@ -1146,55 +1237,55 @@ jQuery( document ).ready( function ( $ ) {
|
|
1146 |
dynamic_privacy = jQuery( 'input[name="privacy"]' ).val();
|
1147 |
}
|
1148 |
|
1149 |
-
options.data +=
|
1150 |
var orignalSuccess = originalOptions.success;
|
1151 |
-
options.success = function
|
1152 |
orignalSuccess( response );
|
1153 |
if ( response[0] + response[1] == '-1' ) {
|
1154 |
//Error
|
1155 |
} else {
|
1156 |
if ( originalOptions.data.action == 'activity_widget_filter' ) {
|
1157 |
-
$(
|
1158 |
}
|
1159 |
}
|
1160 |
|
1161 |
-
$(
|
1162 |
// Enabled TextBox color back to normal
|
1163 |
-
$(
|
1164 |
|
1165 |
-
}
|
1166 |
}
|
1167 |
} );
|
1168 |
}
|
1169 |
} );
|
1170 |
/**
|
1171 |
-
*
|
1172 |
*/
|
1173 |
-
jQuery( document ).ready( function
|
1174 |
-
jQuery( document ).on(
|
1175 |
var comment_content_el = jQuery( '#comment_content' );
|
1176 |
-
var comment_form_el = jQuery(
|
1177 |
var that = this;
|
1178 |
|
1179 |
e.preventDefault();
|
1180 |
-
if ( $.trim( $(
|
1181 |
rtmedia_single_media_alert_message( rtmedia_empty_comment_msg, 'warning' );
|
1182 |
return false;
|
1183 |
}
|
1184 |
|
1185 |
$( this ).attr( 'disabled', 'disabled' );
|
1186 |
|
1187 |
-
//
|
1188 |
comment_content_el.val( jQuery( '<span/>' ).text( jQuery.trim( comment_content_el.val() ) ).html() );
|
1189 |
|
1190 |
$.ajax( {
|
1191 |
-
url: comment_form_el.attr(
|
1192 |
type: 'post',
|
1193 |
-
data: comment_form_el.serialize() +
|
1194 |
-
success: function
|
1195 |
$( '#rtmedia-no-comments' ).remove();
|
1196 |
-
$(
|
1197 |
-
comment_content_el.val(
|
1198 |
$( that ).removeAttr( 'disabled' );
|
1199 |
rtMediaHook.call( 'rtmedia_js_after_comment_added', [ ] );
|
1200 |
}
|
@@ -1204,9 +1295,9 @@ jQuery( document ).ready( function ( $ ) {
|
|
1204 |
} );
|
1205 |
|
1206 |
//Delete comment
|
1207 |
-
jQuery( document ).on( 'click', '.rtmedia-delete-comment', function
|
1208 |
e.preventDefault();
|
1209 |
-
var ask_confirmation = true
|
1210 |
ask_confirmation = rtMediaHook.call( 'rtmedia_js_delete_comment_confirmation', [ ask_confirmation ] );
|
1211 |
if ( ask_confirmation && ! confirm( rtmedia_media_comment_delete_confirmation ) ) {
|
1212 |
return false;
|
@@ -1218,15 +1309,15 @@ jQuery( document ).ready( function ( $ ) {
|
|
1218 |
if ( comment_id == '' || isNaN( comment_id ) ) {
|
1219 |
return false;
|
1220 |
}
|
1221 |
-
var action = current_comment.closest( 'ul' ).data(
|
1222 |
|
1223 |
jQuery.ajax( {
|
1224 |
url: action,
|
1225 |
type: 'post',
|
1226 |
data: { comment_id: comment_id },
|
1227 |
-
success: function
|
1228 |
if ( res != 'undefined' && res == 1 ) {
|
1229 |
-
current_comment.closest( 'li' ).hide( 1000, function
|
1230 |
current_comment.closest( 'li' ).remove();
|
1231 |
} );
|
1232 |
} else {
|
@@ -1238,28 +1329,30 @@ jQuery( document ).ready( function ( $ ) {
|
|
1238 |
|
1239 |
} );
|
1240 |
|
1241 |
-
$( document ).on(
|
1242 |
e.preventDefault();
|
1243 |
var that = this;
|
1244 |
var like_nonce = $( this ).siblings( '#rtm_media_like_nonce' ).val();
|
1245 |
$( this ).attr( 'disabled', 'disabled' );
|
1246 |
-
var url = $( this ).parent().attr(
|
1247 |
-
$( that ).prepend(
|
1248 |
$.ajax( {
|
1249 |
url: url,
|
1250 |
type: 'post',
|
1251 |
data: { json: true, like_nonce: like_nonce },
|
1252 |
-
success: function
|
1253 |
try {
|
1254 |
data = JSON.parse( data );
|
1255 |
} catch ( e ) {
|
1256 |
|
1257 |
}
|
1258 |
$( '.rtmedia-like span' ).html( data.next );
|
|
|
1259 |
$( '.rtm-like-loading' ).remove();
|
1260 |
$( that ).removeAttr( 'disabled' );
|
1261 |
-
|
1262 |
-
|
|
|
1263 |
if ( data.count > 0 ) {
|
1264 |
$( '.rtmedia-like-info' ).removeClass( 'hide' );
|
1265 |
} else {
|
@@ -1269,18 +1362,18 @@ jQuery( document ).ready( function ( $ ) {
|
|
1269 |
} );
|
1270 |
|
1271 |
} );
|
1272 |
-
$( document ).on(
|
1273 |
e.preventDefault();
|
1274 |
var that = this;
|
1275 |
$( this ).attr( 'disabled', 'disabled' );
|
1276 |
var featured_nonce = $( this ).siblings( '#rtm_media_featured_nonce' ).val();
|
1277 |
-
var url = $( this ).parent().attr(
|
1278 |
-
$( that ).prepend(
|
1279 |
$.ajax( {
|
1280 |
url: url,
|
1281 |
type: 'post',
|
1282 |
data: { json:true, featured_nonce:featured_nonce },
|
1283 |
-
success: function
|
1284 |
try {
|
1285 |
data = JSON.parse( data );
|
1286 |
} catch ( e ) {
|
@@ -1290,7 +1383,7 @@ jQuery( document ).ready( function ( $ ) {
|
|
1290 |
if ( data.nonce ) {
|
1291 |
rtmedia_single_media_alert_message( rtmedia_something_wrong_msg, 'warning' );
|
1292 |
} else {
|
1293 |
-
if (data.action) {
|
1294 |
rtmedia_single_media_alert_message( rtmedia_set_featured_image_msg, 'success' );
|
1295 |
} else {
|
1296 |
rtmedia_single_media_alert_message( rtmedia_unset_featured_image_msg, 'success' );
|
@@ -1303,16 +1396,16 @@ jQuery( document ).ready( function ( $ ) {
|
|
1303 |
} );
|
1304 |
|
1305 |
} );
|
1306 |
-
jQuery(
|
1307 |
//$(this).attr("capture", "camera");
|
1308 |
// $(this).attr("accept", $(this).attr("accept") + ';capture=camera');
|
1309 |
|
1310 |
} );
|
1311 |
|
1312 |
-
//
|
1313 |
var _old_fadein = $.fn.fadeIn;
|
1314 |
-
jQuery.fn.fadeIn = function
|
1315 |
-
return _old_fadein.apply( this, arguments ).trigger(
|
1316 |
};
|
1317 |
} );
|
1318 |
|
@@ -1323,13 +1416,13 @@ function rtmedia_selected_file_list( plupload, file, uploader, error ) {
|
|
1323 |
upload_progress = '<div class="plupload_file_progress ui-widget-header" style="width: 0%;">';
|
1324 |
upload_progress += '</div>';
|
1325 |
icon = '<span id="label_' + file.id + '" class="dashicons dashicons-edit rtmicon" title="' + rtmedia_backbone_strings.rtm_edit_file_name + '"></span>';
|
1326 |
-
} else if ( error.code == -
|
1327 |
err_msg = ( uploader != '' ) ? rtmedia_max_file_msg + uploader.settings.max_file_size : window.file_size_info;
|
1328 |
-
title =
|
1329 |
icon = '<i class="dashicons dashicons-info rtmicon" ' + title + '></i>';
|
1330 |
-
} else if ( error.code == -
|
1331 |
err_msg = error.message + '. ' + window.file_extn_info;
|
1332 |
-
title =
|
1333 |
icon = '<i class="dashicons dashicons-info rtmicon" ' + title + '></i>';
|
1334 |
}
|
1335 |
|
@@ -1360,7 +1453,7 @@ function rtmedia_selected_file_list( plupload, file, uploader, error ) {
|
|
1360 |
jQuery( rtmedia_plupload_file ).appendTo( '#rtmedia_uploader_filelist' );
|
1361 |
var type = file.type;
|
1362 |
var media_title = file.name;
|
1363 |
-
var ext = media_title.substring( media_title.lastIndexOf(
|
1364 |
|
1365 |
if ( /image/i.test( type ) ) {
|
1366 |
if ( ext === 'gif' ) {
|
@@ -1368,7 +1461,7 @@ function rtmedia_selected_file_list( plupload, file, uploader, error ) {
|
|
1368 |
} else {
|
1369 |
var img = new mOxie.Image();
|
1370 |
|
1371 |
-
img.onload = function
|
1372 |
this.embed( jQuery( '#file_thumb_' + file.id ).get( 0 ), {
|
1373 |
width: 100,
|
1374 |
height: 60,
|
@@ -1376,11 +1469,11 @@ function rtmedia_selected_file_list( plupload, file, uploader, error ) {
|
|
1376 |
} );
|
1377 |
};
|
1378 |
|
1379 |
-
img.onembedded = function
|
1380 |
this.destroy();
|
1381 |
};
|
1382 |
|
1383 |
-
img.onerror = function
|
1384 |
this.destroy();
|
1385 |
};
|
1386 |
|
@@ -1400,8 +1493,8 @@ function rtmedia_selected_file_list( plupload, file, uploader, error ) {
|
|
1400 |
|
1401 |
/* Change URLin browser without reloading the page */
|
1402 |
function change_rtBrowserAddressUrl( url, page ) {
|
1403 |
-
if ( typeof ( history.pushState ) !=
|
1404 |
var obj = { Page: page, Url: url };
|
1405 |
history.pushState( obj, obj.Page, obj.Url );
|
1406 |
}
|
1407 |
-
}
|
1 |
var galleryObj;
|
2 |
var nextpage = 2;
|
3 |
var upload_sync = false;
|
4 |
+
var activity_id = -1;
|
5 |
var uploaderObj;
|
6 |
var objUploadView;
|
7 |
var rtmedia_load_template_flag = true;
|
8 |
|
9 |
+
jQuery( function( $ ) {
|
10 |
|
11 |
var o_is_album, o_is_edit_allowed;
|
12 |
+
if ( typeof ( is_album ) == 'undefined' ) {
|
13 |
+
o_is_album = new Array( '' );
|
14 |
} else {
|
15 |
+
o_is_album = is_album;
|
16 |
}
|
17 |
+
if ( typeof ( is_edit_allowed ) == 'undefined' ) {
|
18 |
+
o_is_edit_allowed = new Array( '' );
|
19 |
} else {
|
20 |
o_is_edit_allowed = is_edit_allowed;
|
21 |
}
|
25 |
rtMedia = window.rtMedia || { };
|
26 |
|
27 |
rtMedia.Context = Backbone.Model.extend( {
|
28 |
+
url: function() {
|
29 |
+
var url = rtmedia_media_slug + '/';
|
30 |
|
31 |
if ( ! upload_sync && nextpage > 0 ) {
|
32 |
url += 'pg/' + nextpage + '/';
|
35 |
return url;
|
36 |
},
|
37 |
defaults: {
|
38 |
+
'context': 'post',
|
39 |
+
'context_id': false
|
40 |
}
|
41 |
} );
|
42 |
|
43 |
rtMedia.Media = Backbone.Model.extend( {
|
44 |
defaults: {
|
45 |
+
'id': 0,
|
46 |
+
'blog_id': false,
|
47 |
+
'media_id': false,
|
48 |
+
'media_author': false,
|
49 |
+
'media_title': false,
|
50 |
+
'album_id': false,
|
51 |
+
'media_type': 'photo',
|
52 |
+
'activity_id': false,
|
53 |
+
'privacy': 0,
|
54 |
+
'views': 0,
|
55 |
+
'downloads': 0,
|
56 |
+
'ratings_average': 0,
|
57 |
+
'ratings_total': 0,
|
58 |
+
'ratings_count': 0,
|
59 |
+
'likes': 0,
|
60 |
+
'dislikes': 0,
|
61 |
+
'guid': false,
|
62 |
+
'width': 0,
|
63 |
+
'height': 0,
|
64 |
+
'rt_permalink': false,
|
65 |
+
'duration': '0:00'
|
66 |
// "next" : -1,
|
67 |
// "prev" : -1
|
68 |
}
|
71 |
|
72 |
rtMedia.Gallery = Backbone.Collection.extend( {
|
73 |
model: rtMedia.Media,
|
74 |
+
url: function() {
|
75 |
var temp = window.location.pathname;
|
76 |
var url = '';
|
77 |
+
if ( temp.indexOf( '/' + rtmedia_media_slug + '/' ) == -1 ) {
|
78 |
url = rtmedia_media_slug + '/';
|
79 |
} else {
|
80 |
+
if ( temp.indexOf( 'pg/' ) == -1 ) {
|
81 |
url = temp;
|
82 |
} else {
|
83 |
+
url = window.location.pathname.substr( 0, window.location.pathname.lastIndexOf( 'pg/' ) );
|
84 |
}
|
85 |
}
|
86 |
if ( ! upload_sync && nextpage > 1 ) {
|
87 |
+
if ( url.substr( url.length - 1 ) != '/' ) {
|
88 |
+
url += '/';
|
89 |
}
|
90 |
|
91 |
url += 'pg/' + nextpage + '/';
|
92 |
}
|
93 |
return url;
|
94 |
},
|
95 |
+
getNext: function( page, el, element ) {
|
96 |
if ( jQuery( '.rtmedia-no-media-found' ).length > 0 ) {
|
97 |
+
jQuery( '.rtmedia-no-media-found' ).replaceWith( '<ul class=\'rtmedia-list rtmedia-list-media\'></ul>' );
|
98 |
}
|
99 |
that = this;
|
100 |
if ( rtmedia_load_template_flag == true ) {
|
104 |
if ( jQuery( '.rtmedia_gallery_wrapper' ).find( 'input[name=lightbox]' ).length > 0 ) {
|
105 |
template_url += '&lightbox=' + jQuery( '.rtmedia_gallery_wrapper' ).find( 'input[name=lightbox]' ).val();
|
106 |
}
|
107 |
+
$( '#rtmedia-gallery-item-template' ).load( template_url, { backbone: true, is_album: o_is_album, is_edit_allowed: o_is_edit_allowed }, function() {
|
108 |
rtmedia_load_template_flag = false;
|
109 |
that.getNext( page, el, element );
|
110 |
} );
|
116 |
rtmedia_page: nextpage
|
117 |
};
|
118 |
if ( el == undefined ) {
|
119 |
+
el = jQuery( '.rtmedia-list' ).parent().parent();
|
120 |
}
|
121 |
|
122 |
if ( el != undefined ) {
|
123 |
if ( element != undefined ) {
|
124 |
+
$( element ).parent().parent().prevAll( 'input[type=hidden]' ).not( 'input[name=_wp_http_referer], input[name=rtmedia_media_delete_nonce], input[name=rtmedia_bulk_delete_nonce], input[name=bulk-action], input[name=rtmedia_create_album_nonce], input[name=rtmedia_media_nonce], input[name=rtmedia_upload_nonce], input[name=rtmedia_allow_upload_attribute]' ).each( function( e ) {
|
125 |
+
if ( $( this ).attr( 'name' ) ) {
|
126 |
+
query[ $( this ).attr( 'name' ) ] = $( this ).val();
|
127 |
}
|
128 |
} );
|
129 |
}
|
130 |
|
131 |
+
$( el ).find( 'input[type=hidden]' ).not( 'input[name=_wp_http_referer], input[name=rtmedia_media_delete_nonce], input[name=rtmedia_bulk_delete_nonce], input[name=bulk-action], input[name=rtmedia_create_album_nonce], input[name=rtmedia_media_nonce], input[name=rtmedia_upload_nonce], input[name=rtmedia_allow_upload_attribute]' ).each( function( e ) {
|
132 |
+
if ( $( this ).attr( 'name' ) ) {
|
133 |
+
query[ $( this ).attr( 'name' ) ] = $( this ).val();
|
134 |
}
|
135 |
} );
|
136 |
}
|
137 |
|
138 |
this.fetch( {
|
139 |
data: query,
|
140 |
+
success: function( model, response ) {
|
141 |
jQuery( '.rtm-media-loading' ).hide();
|
142 |
+
var list_el = '';
|
143 |
|
144 |
+
if ( typeof ( element ) === 'undefined' ) {
|
145 |
+
if ( jQuery( el ).find( '.rtmedia-list' ).length > 0 ) {
|
146 |
list_el = jQuery( el ).find( '.rtmedia-list' );
|
147 |
} else {
|
148 |
+
list_el = $( '.rtmedia-list' )[0];
|
149 |
}
|
150 |
} else {
|
151 |
list_el = element.parent().siblings( '.rtmedia-list' );
|
154 |
nextpage = response.next;
|
155 |
|
156 |
if ( nextpage < 1 ) {
|
157 |
+
if ( typeof el == 'object' ) {
|
158 |
jQuery( el ).find( '.rtmedia_next_prev' ).children( '#rtMedia-galary-next' ).hide();
|
159 |
}
|
160 |
//$("#rtMedia-galary-next").show();
|
164 |
collection: new rtMedia.Gallery( response.data ),
|
165 |
el: list_el
|
166 |
} );
|
167 |
+
//Element.show();
|
168 |
+
|
169 |
rtMediaHook.call( 'rtmedia_after_gallery_load' );
|
170 |
|
171 |
jQuery( '.rtmedia-container .rtmedia_next_prev .rtm-pagination' ).remove();
|
173 |
jQuery( '.rtmedia-container .rtmedia_next_prev .rtm-media-loading' ).remove();
|
174 |
jQuery( '.rtmedia-container .rtmedia_next_prev br' ).remove();
|
175 |
jQuery( '.rtmedia-container .rtmedia_next_prev' ).append( response.pagination );
|
176 |
+
|
177 |
+
if ( jQuery( '.rtm-uploader-main-wrapper div.rtm-upload-url' ).is( ':visible' ) == false ) {
|
178 |
+
jQuery( '.rtmedia-container .rtmedia-list' ).css( 'opacity', '1' );
|
179 |
+
jQuery( '#rtm-media-gallery-uploader' ).slideUp();
|
180 |
+
}
|
181 |
}
|
182 |
} );
|
183 |
}
|
184 |
},
|
185 |
+
reloadView: function( parent_el ) {
|
186 |
upload_sync = true;
|
187 |
nextpage = 1;
|
188 |
jQuery( '.rtmedia-container .rtmedia-list' ).css( 'opacity', '0.5' );
|
193 |
rtMedia.MediaView = Backbone.View.extend( {
|
194 |
tagName: 'li',
|
195 |
className: 'rtmedia-list-item',
|
196 |
+
initialize: function() {
|
197 |
+
this.template = _.template( $( '#rtmedia-gallery-item-template' ).html() );
|
198 |
this.model.bind( 'change', this.render );
|
199 |
this.model.bind( 'remove', this.unrender );
|
200 |
this.render();
|
201 |
},
|
202 |
+
render: function() {
|
203 |
$( this.el ).html( this.template( this.model.toJSON() ) );
|
204 |
return this.el;
|
205 |
},
|
206 |
+
unrender: function() {
|
207 |
$( this.el ).remove();
|
208 |
},
|
209 |
+
remove: function() {
|
210 |
this.model.destroy();
|
211 |
}
|
212 |
} );
|
214 |
rtMedia.GalleryView = Backbone.View.extend( {
|
215 |
tagName: 'ul',
|
216 |
className: 'rtmedia-list',
|
217 |
+
initialize: function() {
|
218 |
+
this.template = _.template( $( '#rtmedia-gallery-item-template' ).html() );
|
219 |
this.render();
|
220 |
},
|
221 |
+
render: function() {
|
222 |
|
223 |
that = this;
|
224 |
|
230 |
$( that.el ).html( '' );
|
231 |
}
|
232 |
|
233 |
+
$.each( this.collection.toJSON(), function( key, media ) {
|
234 |
$( that.el ).append( that.template( media ) );
|
235 |
} );
|
236 |
|
241 |
$( that.el ).siblings( '.rtmedia_next_prev' ).children( '#rtMedia-galary-next' ).show();
|
242 |
//$("#rtMedia-galary-next").show();
|
243 |
}
|
244 |
+
if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
|
245 |
rtm_masonry_reload( rtm_masonry_container );
|
246 |
}
|
247 |
},
|
248 |
+
appendTo: function( media ) {
|
249 |
+
//Console.log("append");
|
250 |
var mediaView = new rtMedia.MediaView( {
|
251 |
model: media
|
252 |
} );
|
256 |
|
257 |
galleryObj = new rtMedia.Gallery();
|
258 |
|
259 |
+
$( 'body' ).append( '<script id="rtmedia-gallery-item-template" type="text/template"></script>' );
|
260 |
|
261 |
+
$( document ).on( 'click', '#rtMedia-galary-next', function( e ) {
|
262 |
if ( jQuery( '.rtm-media-loading' ).length == 0 ) {
|
263 |
+
$( this ).before( '<div class=\'rtm-media-loading\'><img src=\'' + rMedia_loading_media + '\' /></div>' );
|
264 |
} else {
|
265 |
jQuery( '.rtm-media-loading' ).show();
|
266 |
}
|
269 |
galleryObj.getNext( nextpage, $( this ).parent().parent().parent(), $( this ) );
|
270 |
} );
|
271 |
|
272 |
+
/**
|
273 |
+
* onClick Show all comment
|
274 |
+
* By: Yahil
|
275 |
+
*/
|
276 |
+
$( document ).on( 'click', '#rtmedia_show_all_comment', function() {
|
277 |
+
var show_comment = $( '#rtmedia_show_all_comment' ).parent().next();
|
278 |
+
$( show_comment ).each(function() {
|
279 |
+
$( this ).find('li').each(function() {
|
280 |
+
$(this).removeClass('hide');
|
281 |
+
} );
|
282 |
+
} );
|
283 |
+
$( this ).parent().remove();
|
284 |
+
} );
|
285 |
+
|
286 |
+
$( document ).on( 'keypress', '#rtmedia_go_to_num', function( e ) {
|
287 |
if ( e.keyCode == 13 ) {
|
288 |
e.preventDefault();
|
289 |
|
290 |
if ( jQuery( '.rtm-media-loading' ).length == 0 ) {
|
291 |
+
$( '.rtm-pagination' ).before( '<div class=\'rtm-media-loading\'><img src=\'' + rMedia_loading_media + '\' /></div>' );
|
292 |
} else {
|
293 |
jQuery( '.rtm-media-loading' ).show();
|
294 |
}
|
305 |
}
|
306 |
} );
|
307 |
|
308 |
+
$( document ).on( 'click', '.rtmedia-page-link', function( e ) {
|
309 |
/* Get current clicked href value */
|
310 |
href = $( this ).attr( 'href' );
|
311 |
|
312 |
if ( jQuery( '.rtm-media-loading' ).length == 0 ) {
|
313 |
+
$( '.rtm-pagination' ).before( '<div class=\'rtm-media-loading\'><img src=\'' + rMedia_loading_media + '\' /></div>' );
|
314 |
} else {
|
315 |
jQuery( '.rtm-media-loading' ).show();
|
316 |
}
|
319 |
if ( $( this ).data( 'page-type' ) == 'page' ) {
|
320 |
nextpage = $( this ).data( 'page' );
|
321 |
} else if ( $( this ).data( 'page-type' ) == 'prev' ) {
|
322 |
+
if ( nextpage == -1 ) {
|
323 |
nextpage = parseInt( $( '#rtmedia_last_page' ).val() ) - 1;
|
324 |
} else {
|
325 |
nextpage -= 2;
|
342 |
galleryObj.getNext( nextpage, $( this ).parent().parent().parent().parent().parent(), $( this ).parent().parent() );
|
343 |
}
|
344 |
change_rtBrowserAddressUrl( href, '' );
|
345 |
+
|
346 |
} );
|
347 |
|
348 |
+
if ( window.location.pathname.indexOf( rtmedia_media_slug ) != -1 ) {
|
349 |
+
var tempNext = window.location.pathname.substring( window.location.pathname.lastIndexOf( 'pg/' ) + 5, window.location.pathname.lastIndexOf( '/' ) );
|
350 |
if ( isNaN( tempNext ) === false ) {
|
351 |
nextpage = parseInt( tempNext ) + 1;
|
352 |
}
|
354 |
|
355 |
window.UploadView = Backbone.View.extend( {
|
356 |
events: {
|
357 |
+
'click #rtMedia-start-upload': 'uploadFiles'
|
358 |
},
|
359 |
+
initialize: function( config ) {
|
360 |
this.uploader = new plupload.Uploader( config );
|
361 |
},
|
362 |
+
render: function() {
|
363 |
|
364 |
},
|
365 |
+
initUploader: function( a ) {
|
366 |
+
if ( typeof ( a ) !== 'undefined' ) {
|
367 |
+
a = false;// If rtmediapro widget calls the function, dont show max size note.
|
368 |
} this.uploader.init();
|
369 |
//The plupload HTML5 code gives a negative z-index making add files button unclickable
|
370 |
+
$( '.plupload.html5' ).css( {
|
371 |
zIndex: 0
|
372 |
} );
|
373 |
+
$( '#rtMedia-upload-button' ).css( {
|
374 |
zIndex: 2
|
375 |
} );
|
376 |
if ( a !== false ) {
|
377 |
window.file_size_info = rtmedia_max_file_msg + this.uploader.settings.max_file_size_msg;
|
378 |
+
if ( rtmedia_version_compare( rtm_wp_version, '3.9' ) ) { // Plupload getting updated in 3.9
|
379 |
file_extn = this.uploader.settings.filters.mime_types[0].extensions;
|
380 |
} else {
|
381 |
file_extn = this.uploader.settings.filters[0].extensions;
|
382 |
}
|
383 |
+
window.file_extn_info = rtmedia_allowed_file_formats + ' : ' + file_extn.split( ',' ).join( ', ' );
|
384 |
|
385 |
+
var info = window.file_size_info + '\n' + window.file_extn_info;
|
386 |
+
$( '.rtm-file-size-limit' ).attr( 'title', info );
|
387 |
//$("#rtMedia-upload-button").after("<span>( <strong>" + rtmedia_max_file_msg + "</strong> "+ this.uploader.settings.max_file_size_msg + ")</span>");
|
388 |
}
|
389 |
|
390 |
return this;
|
391 |
},
|
392 |
+
uploadFiles: function( e ) {
|
393 |
if ( e != undefined ) {
|
394 |
e.preventDefault();
|
395 |
}
|
399 |
|
400 |
} );
|
401 |
|
402 |
+
if ( $( '#rtMedia-upload-button' ).length > 0 ) {
|
403 |
+
if ( typeof rtmedia_upload_type_filter == 'object' && rtmedia_upload_type_filter.length > 0 ) {
|
404 |
rtMedia_plupload_config.filters[0].extensions = rtmedia_upload_type_filter.join();
|
405 |
}
|
406 |
uploaderObj = new UploadView( rtMedia_plupload_config );
|
407 |
uploaderObj.initUploader();
|
408 |
|
409 |
+
uploaderObj.uploader.bind( 'UploadComplete', function( up, files ) {
|
410 |
+
activity_id = -1;
|
411 |
var hook_respo = rtMediaHook.call( 'rtmedia_js_after_files_uploaded' );
|
412 |
+
if ( typeof rtmedia_gallery_reload_on_upload != 'undefined' && rtmedia_gallery_reload_on_upload == '1' ) { //Reload gallery view when upload completes if enabled( by default enabled)
|
413 |
if ( hook_respo != false ) {
|
414 |
galleryObj.reloadView();
|
415 |
}
|
420 |
window.onbeforeunload = null;
|
421 |
} );
|
422 |
|
423 |
+
uploaderObj.uploader.bind( 'FilesAdded', function( up, files ) {
|
424 |
var upload_size_error = false;
|
425 |
+
var upload_error = '';
|
426 |
+
var upload_error_sep = '';
|
427 |
var upload_remove_array = [ ];
|
428 |
+
$.each( files, function( i, file ) {
|
429 |
+
//Set file title along with file
|
430 |
rtm_file_name_array = file.name.split( '.' );
|
431 |
file.title = rtm_file_name_array[0];
|
432 |
|
433 |
+
var hook_respo = rtMediaHook.call( 'rtmedia_js_file_added', [ up, file, '#rtmedia_uploader_filelist' ] );
|
434 |
|
435 |
if ( hook_respo == false ) {
|
436 |
+
file.status = -1;
|
437 |
upload_remove_array.push( file.id );
|
438 |
return true;
|
439 |
}
|
447 |
if ( uploaderObj.uploader.settings.max_file_size < file.size ) {
|
448 |
return true;
|
449 |
}
|
450 |
+
var tmp_array = file.name.split( '.' );
|
451 |
+
if ( rtmedia_version_compare( rtm_wp_version, '3.9' ) ) { // Plupload getting updated in 3.9
|
452 |
var ext_array = uploaderObj.uploader.settings.filters.mime_types[0].extensions.split( ',' );
|
453 |
} else {
|
454 |
var ext_array = uploaderObj.uploader.settings.filters[0].extensions.split( ',' );
|
456 |
if ( tmp_array.length > 1 ) {
|
457 |
var ext = tmp_array[tmp_array.length - 1];
|
458 |
ext = ext.toLowerCase();
|
459 |
+
if ( jQuery.inArray( ext, ext_array ) === -1 ) {
|
460 |
return true;
|
461 |
}
|
462 |
} else {
|
463 |
return true;
|
464 |
}
|
465 |
|
466 |
+
if ( rtmedia_version_compare( rtm_wp_version, '3.9' ) ) { // Plupload getting updated in 3.9
|
467 |
uploaderObj.uploader.settings.filters.mime_types[0].title;
|
468 |
} else {
|
469 |
uploaderObj.uploader.settings.filters[0].title;
|
473 |
rtmedia_selected_file_list( plupload, file, '', '' );
|
474 |
|
475 |
//Delete Function
|
476 |
+
$( '#' + file.id + ' .plupload_delete .remove-from-queue' ).click( function( e ) {
|
477 |
e.preventDefault();
|
478 |
uploaderObj.uploader.removeFile( up.getFile( file.id ) );
|
479 |
+
$( '#' + file.id ).remove();
|
480 |
rtMediaHook.call( 'rtmedia_js_file_remove', [ up, file ] );
|
481 |
return false;
|
482 |
} );
|
483 |
|
484 |
// To change the name of the uploading file
|
485 |
+
$( '#label_' + file.id ).click( function( e ) {
|
486 |
e.preventDefault();
|
487 |
|
488 |
rtm_file_label = this;
|
503 |
jQuery( rtm_file_label ).hide();
|
504 |
jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' ).hide();
|
505 |
|
506 |
+
// Show/create text box to edit media title
|
507 |
if ( jQuery( rtm_file_title_input ).length === 0 ) {
|
508 |
jQuery( rtm_file_label ).parent( '.plupload_file_name' ).prepend( '<div id="' + rtm_file_title_wrapper_id + '" class="rtm-upload-edit-title-wrapper"><label>' + rtmedia_edit_media_info_upload.title + '</label><input type="text" class="rtm-upload-edit-title" id="' + rtm_file_title_id + '" value="' + file.title + '" style="width: 75%;" /></div><div id="' + rtm_file_desc_wrapper_id + '" class="rtm-upload-edit-desc-wrapper"><label>' + rtmedia_edit_media_info_upload.description + '</label><textarea class="rtm-upload-edit-desc" id="' + rtm_file_desc_id + '"></textarea></div><span id="' + rtm_file_save_id + '" title="Save Change" class="rtmicon dashicons dashicons-yes"></span>' );
|
509 |
} else {
|
514 |
|
515 |
jQuery( rtm_file_title_input ).focus();
|
516 |
|
517 |
+
// Set media title and description in file object
|
518 |
+
$( '#save_' + file.id ).click( function( e ) {
|
519 |
+
e.preventDefault();
|
|
|
|
|
520 |
|
521 |
+
rtm_file_label = this;
|
|
|
|
|
|
|
522 |
|
523 |
+
rtm_file_title_id = 'text_' + file.id;
|
524 |
+
rtm_file_title_input = '#' + rtm_file_title_id;
|
525 |
+
rtm_file_title_wrapper_id = 'rtm_title_wp_' + file.id;
|
526 |
+
rtm_file_title_wrapper = '#' + rtm_file_title_wrapper_id;
|
527 |
+
|
528 |
+
rtm_file_desc_id = 'rtm_desc_' + file.id;
|
529 |
+
rtm_file_desc_input = '#' + rtm_file_desc_id;
|
530 |
+
rtm_file_desc_wrapper_id = 'rtm_desc_wp_' + file.id;
|
531 |
+
rtm_file_desc_wrapper = '#' + rtm_file_desc_wrapper_id;
|
532 |
+
|
533 |
+
rtm_file_save_id = 'save_' + file.id;
|
534 |
+
rtm_file_save_el = '#' + rtm_file_save_id;
|
535 |
+
|
536 |
+
var file_title_val = jQuery( rtm_file_title_input ).val();
|
537 |
+
var file_desc_val = jQuery( rtm_file_desc_input ).val();
|
538 |
+
var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
|
539 |
+
|
540 |
+
if ( file_title_val != '' ) {
|
541 |
+
file_name_wrapper_el.text( file_title_val + '.' + rtm_file_name_array[ 1 ] );
|
542 |
+
file.title = file_title_val;
|
543 |
+
}
|
544 |
+
|
545 |
+
if ( file_desc_val != '' ) {
|
546 |
+
file.description = file_desc_val;
|
547 |
+
}
|
548 |
+
|
549 |
+
jQuery( rtm_file_title_wrapper ).hide();
|
550 |
+
jQuery( rtm_file_desc_wrapper ).hide();
|
551 |
|
552 |
+
file_name_wrapper_el.show();
|
553 |
+
jQuery( rtm_file_label ).siblings( '#label_' + file.id ).show();
|
554 |
+
jQuery( this ).hide();
|
|
|
|
|
|
|
555 |
} );
|
556 |
} );
|
557 |
} );
|
558 |
|
559 |
+
$.each( upload_remove_array, function( i, rfile ) {
|
560 |
if ( up.getFile( rfile ) ) {
|
561 |
up.removeFile( up.getFile( rfile ) );
|
562 |
}
|
574 |
|
575 |
} );
|
576 |
|
577 |
+
uploaderObj.uploader.bind( 'Error', function( up, err ) {
|
578 |
|
579 |
+
if ( err.code == -600 ) { //File size error // if file size is greater than server's max allowed size
|
580 |
var tmp_array;
|
581 |
var ext = tr = '';
|
582 |
+
tmp_array = err.file.name.split( '.' );
|
583 |
if ( tmp_array.length > 1 ) {
|
584 |
ext = tmp_array[tmp_array.length - 1];
|
585 |
+
if ( ! ( typeof ( up.settings.upload_size ) != 'undefined' && typeof ( up.settings.upload_size[ext] ) != 'undefined' && typeof ( up.settings.upload_size[ext]['size'] ) ) ) {
|
586 |
rtmedia_selected_file_list( plupload, err.file, up, err );
|
587 |
}
|
588 |
}
|
589 |
} else {
|
590 |
|
591 |
+
if ( err.code == -601 ) { // File extension error
|
592 |
err.message = rtmedia_file_extension_error_msg;
|
593 |
}
|
594 |
|
595 |
rtmedia_selected_file_list( plupload, err.file, '', err );
|
596 |
}
|
597 |
|
598 |
+
jQuery( '.plupload_delete' ).on( 'click', function( e ) {
|
599 |
e.preventDefault();
|
600 |
jQuery( this ).parent().parent( 'li' ).remove();
|
601 |
} );
|
603 |
|
604 |
} );
|
605 |
|
606 |
+
jQuery( '.start-media-upload' ).on( 'click', function( e ) {
|
607 |
e.preventDefault();
|
608 |
|
609 |
/**
|
619 |
}
|
620 |
} );
|
621 |
|
622 |
+
uploaderObj.uploader.bind( 'UploadProgress', function( up, file ) {
|
623 |
//$("#" + file.id + " .plupload_file_status").html(file.percent + "%");
|
624 |
//$( "#" + file.id + " .plupload_file_status" ).html( rtmedia_uploading_msg + '( ' + file.percent + '% )' );
|
625 |
+
$( '#' + file.id + ' .plupload_file_status' ).html( '<div class="plupload_file_progress ui-widget-header" style="width: ' + file.percent + '%;"></div>' );
|
626 |
+
$( '#' + file.id ).addClass( 'upload-progress' );
|
627 |
if ( file.percent == 100 ) {
|
628 |
+
$( '#' + file.id ).toggleClass( 'upload-success' );
|
629 |
}
|
630 |
|
631 |
+
window.onbeforeunload = function( evt ) {
|
632 |
var message = rtmedia_upload_progress_error_message;
|
633 |
return message;
|
634 |
};
|
635 |
} );
|
636 |
|
637 |
+
uploaderObj.uploader.bind( 'BeforeUpload', function( up, file ) {
|
638 |
up.settings.multipart_params.title = file.title.split( '.' )[ 0 ];
|
639 |
|
640 |
+
if ( typeof file.description != 'undefined' ) {
|
641 |
up.settings.multipart_params.description = file.description;
|
642 |
} else {
|
643 |
up.settings.multipart_params.description = '';
|
644 |
}
|
645 |
|
646 |
+
var privacy = $( '#rtm-file_upload-ui select.privacy' ).val();
|
647 |
if ( privacy !== undefined ) {
|
648 |
+
up.settings.multipart_params.privacy = $( '#rtm-file_upload-ui select.privacy' ).val();
|
649 |
}
|
650 |
+
if ( jQuery( '#rt_upload_hf_redirect' ).length > 0 ) {
|
651 |
up.settings.multipart_params.redirect = up.files.length;
|
652 |
}
|
653 |
+
jQuery( '#rtmedia-uploader-form input[type=hidden]' ).each( function() {
|
654 |
+
up.settings.multipart_params[$( this ).attr( 'name' )] = $( this ).val();
|
655 |
} );
|
656 |
up.settings.multipart_params.activity_id = activity_id;
|
657 |
if ( $( '#rtmedia-uploader-form .rtmedia-user-album-list' ).length > 0 ) {
|
658 |
+
up.settings.multipart_params.album_id = $( '#rtmedia-uploader-form .rtmedia-user-album-list' ).find( ':selected' ).val();
|
659 |
} else if ( $( '#rtmedia-uploader-form .rtmedia-current-album' ).length > 0 ) {
|
660 |
up.settings.multipart_params.album_id = $( '#rtmedia-uploader-form .rtmedia-current-album' ).val();
|
661 |
}
|
663 |
rtMediaHook.call( 'rtmedia_js_before_file_upload', [up, file] );
|
664 |
} );
|
665 |
|
666 |
+
uploaderObj.uploader.bind( 'FileUploaded', function( up, file, res ) {
|
667 |
+
if ( /MSIE (\d+\.\d+);/.test( navigator.userAgent ) ) { //Test for MSIE x.x;
|
668 |
+
var ieversion = new Number( RegExp.$1 ); // Capture x.x portion and store as a number
|
669 |
|
670 |
if ( ieversion < 10 ) {
|
671 |
+
if ( typeof res.response !== 'undefined' ) {
|
672 |
+
res.status = 200;
|
673 |
+
}
|
674 |
}
|
675 |
}
|
676 |
var rtnObj;
|
682 |
if ( rtnObj.permalink != '' ) {
|
683 |
$( "#" + file.id + " .plupload_file_name" ).html( "<a href='" + rtnObj.permalink + "' target='_blank' title='" + rtnObj.permalink + "'>" + file.title.substring( 0, 40 ).replace( /(<([^>]+)>)/ig, "" ) + "</a>" );
|
684 |
$( "#" + file.id + " .plupload_media_edit" ).html( "<a href='" + rtnObj.permalink + "edit' target='_blank'><span title='" + rtmedia_edit_media + "'><i class='dashicons dashicons-edit rtmicon'></i> " + rtmedia_edit + "</span></a>" );
|
685 |
+
$( "#" + file.id + " .plupload_delete" ).html( "<span id='" + rtnObj.media_id + "' class='rtmedia-delete-uploaded-media dashicons dashicons-dismiss' title='" + rtmedia_delete + "'></span>" );
|
686 |
}
|
687 |
|
688 |
} catch ( e ) {
|
689 |
+
// Console.log('Invalid Activity ID');
|
690 |
}
|
691 |
if ( res.status == 200 || res.status == 302 ) {
|
692 |
if ( uploaderObj.upload_count == undefined ) {
|
693 |
uploaderObj.upload_count = 1;
|
694 |
} else {
|
695 |
+
uploaderObj.upload_count++;
|
696 |
}
|
697 |
|
698 |
+
if ( uploaderObj.upload_count == up.files.length && jQuery( '#rt_upload_hf_redirect' ).length > 0 && jQuery.trim( rtnObj.redirect_url.indexOf( 'http' ) == 0 ) ) {
|
699 |
window.location = rtnObj.redirect_url;
|
700 |
}
|
701 |
|
|
|
702 |
rtMediaHook.call( 'rtmedia_js_after_file_upload', [ up, file, res.response ] );
|
703 |
} else {
|
704 |
+
$( '#' + file.id + ' .plupload_file_status' ).html( rtmedia_upload_failed_msg );
|
705 |
}
|
706 |
|
707 |
files = up.files;
|
709 |
|
710 |
} );
|
711 |
|
712 |
+
uploaderObj.uploader.refresh();//Refresh the uploader for opera/IE fix on media page
|
713 |
|
714 |
+
$( '#rtMedia-start-upload' ).click( function( e ) {
|
715 |
uploaderObj.uploadFiles( e );
|
716 |
} );
|
717 |
+
$( '#rtMedia-start-upload' ).hide();
|
718 |
|
719 |
+
jQuery( document ).on( 'click', '#rtm_show_upload_ui', function() {
|
720 |
jQuery( '#rtm-media-gallery-uploader' ).slideToggle();
|
721 |
+
uploaderObj.uploader.refresh();//Refresh the uploader for opera/IE fix on media page
|
722 |
jQuery( '#rtm_show_upload_ui' ).toggleClass( 'primary' );
|
723 |
} );
|
724 |
} else {
|
725 |
+
jQuery( document ).on( 'click', '#rtm_show_upload_ui', function() {
|
726 |
jQuery( '#rtm-media-gallery-uploader' ).slideToggle();
|
727 |
jQuery( '#rtm_show_upload_ui' ).toggleClass( 'primary' );
|
728 |
} );
|
729 |
}
|
730 |
|
731 |
+
jQuery( document ).on( 'click', '.plupload_delete .rtmedia-delete-uploaded-media', function() {
|
732 |
var that = $( this );
|
733 |
if ( confirm( rtmedia_delete_uploaded_media ) ) {
|
734 |
var nonce = $( '#rtmedia-upload-container #rtmedia_media_delete_nonce' ).val();
|
737 |
action: 'delete_uploaded_media',
|
738 |
nonce: nonce,
|
739 |
media_id: media_id
|
740 |
+
};
|
741 |
|
742 |
+
$.post( ajaxurl, data, function( response ) {
|
743 |
if ( response == '1' ) {
|
744 |
that.closest( 'tr' ).remove();
|
745 |
$( '#' + media_id ).remove();
|
752 |
|
753 |
/** Activity Update Js **/
|
754 |
|
755 |
+
jQuery( document ).ready( function( $ ) {
|
756 |
+
|
757 |
+
// Handling the "post update: button on activity page
|
758 |
+
/**
|
759 |
+
* Commented by : Naveen giri
|
760 |
+
* Reason : Commenting this code because its overriding buddypress functionality
|
761 |
+
* and introducing issue Duplicate activity generation Issue #108.
|
762 |
+
*/
|
763 |
+
/*JQuery( '#aw-whats-new-submit' ).removeAttr( 'disabled' );
|
764 |
+
jQuery( document ).on( 'blur', '#whats-new', function() {
|
765 |
+
setTimeout( function() {
|
766 |
jQuery( '#aw-whats-new-submit' ).removeAttr( 'disabled' );
|
767 |
}, 100 );
|
768 |
} );
|
769 |
+
jQuery( '#aw-whats-new-submit' ).on( 'click', function( e ) {
|
770 |
+
setTimeout( function() {
|
771 |
jQuery( '#aw-whats-new-submit' ).removeAttr( 'disabled' );
|
772 |
}, 100 );
|
773 |
+
} );*/
|
774 |
|
775 |
+
// When user changes the value in activity "post in" dropdown, hide the privacy dropdown and show when posting in profile.
|
776 |
+
jQuery( '#whats-new-post-in' ).on( 'change', function( e ) {
|
777 |
if ( jQuery( this ).val() == '0' ) {
|
778 |
+
jQuery( '#rtmedia-action-update .privacy' ).prop( 'disabled', false ).show();
|
779 |
} else {
|
780 |
+
jQuery( '#rtmedia-action-update .privacy' ).prop( 'disabled', true ).hide();
|
781 |
}
|
782 |
} );
|
783 |
|
786 |
}
|
787 |
var activity_attachemnt_ids = [ ];
|
788 |
|
789 |
+
if ( $( '#rtmedia-add-media-button-post-update' ).length > 0 ) {
|
790 |
objUploadView = new UploadView( rtMedia_update_plupload_config );
|
791 |
objUploadView.initUploader();
|
792 |
|
793 |
+
setTimeout( function() {
|
794 |
+
if ( $( '#rtmedia-add-media-button-post-update' ).length > 0 ) {
|
795 |
+
$( '#whats-new-options' ).prepend( $( '.rtmedia-plupload-container' ) );
|
796 |
+
if ( $( '#rtm-file_upload-ui .privacy' ).length > 0 ) {
|
797 |
+
$( '.rtmedia-plupload-container' ).append( $( '#rtm-file_upload-ui .privacy' ) );
|
798 |
}
|
799 |
$( '#rtmedia-whts-new-upload-container > div' ).css( 'top', '0' );
|
800 |
$( '#rtmedia-whts-new-upload-container > div' ).css( 'left', '0' );
|
805 |
$( '#whats-new-options' ).append( $( '.rtmedia-uploader-div' ) );
|
806 |
}
|
807 |
|
808 |
+
$( '#whats-new-form' ).on( 'click', '#rtmedia-add-media-button-post-update', function( e ) {
|
809 |
objUploadView.uploader.refresh();
|
810 |
$( '#rtmedia-whts-new-upload-container > div' ).css( 'top', '0' );
|
811 |
$( '#rtmedia-whts-new-upload-container > div' ).css( 'left', '0' );
|
812 |
|
813 |
//Enable 'post update' button when media get select
|
814 |
+
$( '#aw-whats-new-submit' ).prop( 'disabled', false );
|
815 |
} );
|
816 |
+
//Whats-new-post-in
|
817 |
|
818 |
objUploadView.upload_remove_array = [ ];
|
819 |
|
820 |
+
objUploadView.uploader.bind( 'FilesAdded', function( upl, rfiles ) {
|
821 |
//$("#aw-whats-new-submit").attr('disabled', 'disabled');
|
822 |
|
823 |
+
$.each( rfiles, function( i, file ) {
|
824 |
|
825 |
+
//Set file title along with file
|
826 |
rtm_file_name_array = file.name.split( '.' );
|
827 |
file.title = rtm_file_name_array[0];
|
828 |
|
829 |
+
var hook_respo = rtMediaHook.call( 'rtmedia_js_file_added', [ upl, file, '#rtmedia_uploader_filelist' ] );
|
830 |
|
831 |
if ( hook_respo == false ) {
|
832 |
+
file.status = -1;
|
833 |
objUploadView.upload_remove_array.push( file.id );
|
834 |
return true;
|
835 |
}
|
838 |
return true;
|
839 |
}
|
840 |
|
841 |
+
var tmp_array = file.name.split( '.' );
|
842 |
|
843 |
+
if ( rtmedia_version_compare( rtm_wp_version, '3.9' ) ) { // Plupload getting updated in 3.9
|
844 |
var ext_array = objUploadView.uploader.settings.filters.mime_types[0].extensions.split( ',' );
|
845 |
} else {
|
846 |
var ext_array = objUploadView.uploader.settings.filters[0].extensions.split( ',' );
|
848 |
if ( tmp_array.length > 1 ) {
|
849 |
var ext = tmp_array[tmp_array.length - 1];
|
850 |
ext = ext.toLowerCase();
|
851 |
+
if ( jQuery.inArray( ext, ext_array ) === -1 ) {
|
852 |
return true;
|
853 |
}
|
854 |
} else {
|
859 |
|
860 |
jQuery( '#whats-new-content' ).css( 'padding-bottom', '0px' );
|
861 |
|
862 |
+
$( '#' + file.id + ' .plupload_delete' ).click( function( e ) {
|
863 |
e.preventDefault();
|
864 |
objUploadView.uploader.removeFile( upl.getFile( file.id ) );
|
865 |
+
$( '#' + file.id ).remove();
|
866 |
return false;
|
867 |
} );
|
868 |
|
869 |
// To change the name of the uploading file
|
870 |
+
$( '#label_' + file.id ).click( function( e ) {
|
871 |
e.preventDefault();
|
872 |
|
873 |
rtm_file_label = this;
|
874 |
|
875 |
rtm_file_title_id = 'text_' + file.id;
|
876 |
rtm_file_title_input = '#' + rtm_file_title_id;
|
877 |
+
|
878 |
rtm_file_title_wrapper_id = 'rtm_title_wp_' + file.id;
|
879 |
rtm_file_title_wrapper = '#' + rtm_file_title_wrapper_id;
|
880 |
|
881 |
rtm_file_desc_id = 'rtm_desc_' + file.id;
|
882 |
rtm_file_desc_input = '#' + rtm_file_desc_id;
|
883 |
+
|
884 |
rtm_file_desc_wrapper_id = 'rtm_desc_wp_' + file.id;
|
885 |
rtm_file_desc_wrapper = '#' + rtm_file_desc_wrapper_id;
|
886 |
|
890 |
jQuery( rtm_file_label ).hide();
|
891 |
jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' ).hide();
|
892 |
|
893 |
+
// Show/create text box to edit media title
|
894 |
if ( jQuery( rtm_file_title_input ).length === 0 ) {
|
895 |
jQuery( rtm_file_label ).parent( '.plupload_file_name' ).prepend( '<div id="' + rtm_file_title_wrapper_id + '" class="rtm-upload-edit-title-wrapper"><label>' + rtmedia_edit_media_info_upload.title + '</label><input type="text" class="rtm-upload-edit-title" id="' + rtm_file_title_id + '" value="' + file.title + '" style="width: 75%;" /></div><div id="' + rtm_file_desc_wrapper_id + '" class="rtm-upload-edit-desc-wrapper"><label>' + rtmedia_edit_media_info_upload.description + '</label><textarea class="rtm-upload-edit-desc" id="' + rtm_file_desc_id + '"></textarea></div><span id="' + rtm_file_save_id + '" title="Save Change" class="rtmicon dashicons dashicons-yes"></span>' );
|
896 |
} else {
|
901 |
|
902 |
jQuery( rtm_file_title_input ).focus();
|
903 |
|
904 |
+
} );
|
|
|
|
|
|
|
905 |
|
906 |
+
rtm_file_save_id = 'save_' + file.id;
|
907 |
+
rtm_file_save_el = '#' + rtm_file_save_id;
|
908 |
+
jQuery( document.body ).on('click', rtm_file_save_el , function( e ) {
|
909 |
+
e.preventDefault();
|
910 |
+
rtm_file_title_id = 'text_' + file.id;
|
911 |
+
rtm_file_title_input = '#' + rtm_file_title_id;
|
912 |
|
913 |
+
rtm_file_desc_id = 'rtm_desc_' + file.id;
|
914 |
+
rtm_file_desc_input = '#' + rtm_file_desc_id;
|
|
|
915 |
|
916 |
+
rtm_file_title_wrapper_id = 'rtm_title_wp_' + file.id;
|
917 |
+
rtm_file_title_wrapper = '#' + rtm_file_title_wrapper_id;
|
918 |
+
|
919 |
+
rtm_file_desc_wrapper_id = 'rtm_desc_wp_' + file.id;
|
920 |
+
rtm_file_desc_wrapper = '#' + rtm_file_desc_wrapper_id;
|
921 |
+
|
922 |
+
var file_title_val = jQuery( rtm_file_title_input ).val();
|
923 |
+
var file_desc_val = jQuery( rtm_file_desc_input ).val();
|
924 |
+
|
925 |
+
rtm_file_label = '#label_' + file.id;
|
926 |
+
|
927 |
+
var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
|
928 |
+
|
929 |
+
if ( file_title_val != '' ) {
|
930 |
+
file_name_wrapper_el.text( file_title_val + '.' + rtm_file_name_array[ 1 ] );
|
931 |
+
file.title = file_title_val;
|
932 |
+
}
|
933 |
+
|
934 |
+
if ( file_desc_val != '' ) {
|
935 |
+
file.description = file_desc_val;
|
936 |
+
}
|
937 |
+
|
938 |
+
jQuery( rtm_file_title_wrapper ).hide();
|
939 |
+
jQuery( rtm_file_desc_wrapper ).hide();
|
940 |
+
file_name_wrapper_el.show();
|
941 |
+
jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
|
942 |
+
jQuery( rtm_file_label ).show();
|
943 |
+
jQuery( this ).hide();
|
944 |
} );
|
945 |
} );
|
946 |
|
947 |
+
$.each( objUploadView.upload_remove_array, function( i, rfile ) {
|
948 |
if ( upl.getFile( rfile ) ) {
|
949 |
upl.removeFile( upl.getFile( rfile ) );
|
950 |
}
|
951 |
} );
|
952 |
|
953 |
+
if ( typeof rtmedia_direct_upload_enabled != 'undefined' && rtmedia_direct_upload_enabled == '1' ) {
|
954 |
+
|
955 |
+
/*
|
956 |
+
* add rtmedia_activity_text_with_attachment condition to filter
|
957 |
+
* if user want media and activity_text both require
|
958 |
+
* By: Yahil
|
959 |
+
*/
|
960 |
+
if ( jQuery.trim( jQuery( "#whats-new" ).val() ) == "" ) {
|
961 |
+
if ( rtmedia_activity_text_with_attachment == 'disable') {
|
962 |
+
$( "#whats-new" ).css( 'color', 'transparent' );
|
963 |
+
$( "#whats-new" ).val( ' ' );
|
964 |
+
} else {
|
965 |
+
jQuery('#whats-new-form').prepend('<div id="message" class="error bp-ajax-message" style="display: block;"><p> ' + rtmedia_empty_activity_msg + ' </p></div>')
|
966 |
+
jQuery( '#whats-new' ).removeAttr( 'disabled' );
|
967 |
+
return false;
|
968 |
+
}
|
969 |
+
}
|
970 |
//Call upload event direct when direct upload is enabled (removed UPLOAD button and its triggered event)
|
971 |
var allow_upload = rtMediaHook.call( 'rtmedia_js_upload_file', true );
|
972 |
|
973 |
if ( allow_upload == false ) {
|
974 |
return false;
|
975 |
}
|
|
|
976 |
objUploadView.uploadFiles();
|
977 |
}
|
978 |
} );
|
979 |
|
980 |
+
objUploadView.uploader.bind( 'FileUploaded', function( up, file, res ) {
|
981 |
+
if ( /MSIE (\d+\.\d+);/.test( navigator.userAgent ) ) { //Test for MSIE x.x;
|
982 |
+
var ieversion = new Number( RegExp.$1 ); // Capture x.x portion and store as a number
|
983 |
|
984 |
if ( ieversion < 10 ) {
|
985 |
try {
|
986 |
+
if ( typeof JSON.parse( res.response ) !== 'undefined' ) {
|
987 |
res.status = 200;
|
988 |
}
|
989 |
} catch ( e ) {
|
994 |
if ( res.status == 200 ) {
|
995 |
try {
|
996 |
var objIds = JSON.parse( res.response );
|
997 |
+
$.each( objIds, function( key, val ) {
|
998 |
activity_attachemnt_ids.push( val );
|
999 |
+
if ( $( '#whats-new-form' ).find( '#rtmedia_attached_id_' + val ).length < 1 ) {
|
1000 |
+
$( '#whats-new-form' ).append( '<input type=\'hidden\' name=\'rtMedia_attached_files[]\' data-mode=\'rtMedia-update\' id=\'rtmedia_attached_id_' + val + '\' value=\'' +
|
1001 |
+
val + '\' />' );
|
1002 |
}
|
1003 |
} );
|
1004 |
} catch ( e ) {
|
1008 |
}
|
1009 |
} );
|
1010 |
|
1011 |
+
objUploadView.uploader.bind( 'Error', function( up, err ) {
|
1012 |
|
1013 |
+
if ( err.code == -600 ) { //File size error // if file size is greater than server's max allowed size
|
1014 |
var tmp_array;
|
1015 |
var ext = tr = '';
|
1016 |
+
tmp_array = err.file.name.split( '.' );
|
1017 |
if ( tmp_array.length > 1 ) {
|
1018 |
|
1019 |
ext = tmp_array[tmp_array.length - 1];
|
1020 |
+
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 ) ) ) {
|
1021 |
rtmedia_selected_file_list( plupload, err.file, up, err );
|
1022 |
}
|
1023 |
}
|
1024 |
} else {
|
1025 |
+
if ( err.code == -601 ) { // File extension error
|
1026 |
err.message = rtmedia_file_extension_error_msg;
|
1027 |
}
|
1028 |
|
1029 |
rtmedia_selected_file_list( plupload, err.file, '', err );
|
1030 |
}
|
1031 |
|
1032 |
+
jQuery( '.plupload_delete' ).on( 'click', function( e ) {
|
1033 |
e.preventDefault();
|
1034 |
jQuery( this ).parent().parent( 'li' ).remove();
|
1035 |
} );
|
1038 |
|
1039 |
} );
|
1040 |
|
1041 |
+
objUploadView.uploader.bind( 'BeforeUpload', function( up, files ) {
|
1042 |
|
1043 |
+
$.each( objUploadView.upload_remove_array, function( i, rfile ) {
|
1044 |
if ( up.getFile( rfile ) ) {
|
1045 |
+
up.removeFile( up.getFile( rfile ) );
|
1046 |
+
}
|
1047 |
} );
|
1048 |
|
1049 |
var object = '';
|
1050 |
+
var item_id = jQuery( '#whats-new-post-in' ).val();
|
1051 |
if ( item_id == undefined ) {
|
1052 |
+
item_id = 0;
|
1053 |
+
}
|
1054 |
if ( item_id > 0 ) {
|
1055 |
+
object = 'group';
|
1056 |
} else {
|
1057 |
+
object = 'profile';
|
1058 |
}
|
1059 |
|
1060 |
up.settings.multipart_params.context = object;
|
1061 |
up.settings.multipart_params.context_id = item_id;
|
1062 |
up.settings.multipart_params.title = files.title.split( '.' )[ 0 ];
|
1063 |
|
1064 |
+
if ( typeof files.description != 'undefined' ) {
|
1065 |
up.settings.multipart_params.description = files.description;
|
1066 |
} else {
|
1067 |
up.settings.multipart_params.description = '';
|
1068 |
}
|
1069 |
|
1070 |
+
// If privacy dropdown is not disabled, then get the privacy value of the update
|
1071 |
+
if ( jQuery( 'select.privacy' ).prop( 'disabled' ) === false ) {
|
1072 |
+
up.settings.multipart_params.privacy = jQuery( 'select.privacy' ).val();
|
1073 |
}
|
1074 |
} );
|
1075 |
|
1076 |
+
objUploadView.uploader.bind( 'UploadComplete', function( up, files ) {
|
1077 |
media_uploading = true;
|
1078 |
+
$( '#aw-whats-new-submit' ).click();
|
1079 |
$( '#rtmedia_uploader_filelist li.plupload_queue_li' ).remove();
|
1080 |
//$("#aw-whats-new-submit").removeAttr('disabled');
|
1081 |
window.onbeforeunload = null;
|
1082 |
} );
|
1083 |
|
1084 |
+
objUploadView.uploader.bind( 'UploadProgress', function( up, file ) {
|
1085 |
//$( "#" + file.id + " .plupload_file_status" ).html( rtmedia_uploading_msg + '( ' + file.percent + '% )' );
|
1086 |
+
$( '#' + file.id + ' .plupload_file_status' ).html( '<div class="plupload_file_progress ui-widget-header" style="width: ' + file.percent + '%;"></div>' );
|
1087 |
+
$( '#' + file.id ).addClass( 'upload-progress' );
|
1088 |
if ( file.percent == 100 ) {
|
1089 |
+
$( '#' + file.id ).toggleClass( 'upload-success' );
|
1090 |
}
|
1091 |
|
1092 |
+
window.onbeforeunload = function( evt ) {
|
1093 |
var message = rtmedia_upload_progress_error_message;
|
1094 |
return message;
|
1095 |
};
|
1096 |
} );
|
1097 |
|
1098 |
+
$( '#rtMedia-start-upload' ).hide();
|
1099 |
|
1100 |
+
var change_flag = false;
|
1101 |
var media_uploading = false;
|
1102 |
|
1103 |
+
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
|
1104 |
// Modify options, control originalOptions, store jqXHR, etc
|
1105 |
try {
|
1106 |
+
if ( originalOptions.data == null || typeof ( originalOptions.data ) == 'undefined' || typeof ( originalOptions.data.action ) == 'undefined' ) {
|
1107 |
return true;
|
1108 |
}
|
1109 |
} catch ( e ) {
|
1113 |
if ( originalOptions.data.action == 'post_update' || originalOptions.data.action == 'activity_widget_filter' ) {
|
1114 |
var temp = activity_attachemnt_ids;
|
1115 |
while ( activity_attachemnt_ids.length > 0 ) {
|
1116 |
+
options.data += '&rtMedia_attached_files[]=' + activity_attachemnt_ids.pop();
|
1117 |
}
|
1118 |
|
1119 |
var dynamic_privacy = '';
|
1124 |
dynamic_privacy = jQuery( 'input[name="privacy"]' ).val();
|
1125 |
}
|
1126 |
|
1127 |
+
options.data += '&rtmedia-privacy=' + dynamic_privacy;
|
1128 |
activity_attachemnt_ids = temp;
|
1129 |
|
1130 |
var orignalSuccess = originalOptions.success;
|
1131 |
+
options.beforeSend = function() {
|
1132 |
/**
|
1133 |
* This hook is added for rtMedia Upload Terms plugin to check if it is checked or not for activity
|
1134 |
*/
|
1142 |
}
|
1143 |
|
1144 |
if ( originalOptions.data.action == 'post_update' ) {
|
1145 |
+
if ( $.trim( $( '#whats-new' ).val() ) == '' && objUploadView.uploader.files.length > 0 ) {
|
1146 |
/*
|
1147 |
+
* Added $nbsp; as activity text to post activity without TEXT
|
1148 |
* Disabled TextBox color(transparent)
|
1149 |
+
* ELSE
|
1150 |
+
* Required Activity text with media
|
1151 |
+
* add rtmedia_activity_text_with_attachment condition to filter
|
1152 |
+
* if user want media and activity_text both require
|
1153 |
+
* By: Yahil
|
1154 |
*/
|
1155 |
+
|
1156 |
+
if ( rtmedia_activity_text_with_attachment == 'disable') {
|
1157 |
+
$( "#whats-new" ).css( 'color', 'transparent' );
|
1158 |
+
$( "#whats-new" ).val( ' ' );
|
1159 |
+
} else {
|
1160 |
+
jQuery('#whats-new-form').prepend('<div id="message" class="error bp-ajax-message" style="display: block;"><p> ' + rtmedia_empty_activity_msg + ' </p></div>')
|
1161 |
+
jQuery( '#whats-new' ).removeAttr( 'disabled' );
|
1162 |
+
return false;
|
1163 |
+
}
|
1164 |
}
|
1165 |
}
|
1166 |
if ( ! media_uploading && objUploadView.uploader.files.length > 0 ) {
|
1167 |
+
$( '#whats-new-post-in' ).attr( 'disabled', 'disabled' );
|
1168 |
+
$( '#rtmedia-add-media-button-post-update' ).attr( 'disabled', 'disabled' );
|
1169 |
+
objUploadView.uploadFiles();
|
1170 |
media_uploading = true;
|
1171 |
return false;
|
1172 |
} else {
|
1174 |
return true;
|
1175 |
}
|
1176 |
|
1177 |
+
};
|
1178 |
+
options.success = function( response ) {
|
1179 |
orignalSuccess( response );
|
1180 |
if ( response[0] + response[1] == '-1' ) {
|
1181 |
//Error
|
1182 |
|
1183 |
} else {
|
1184 |
if ( originalOptions.data.action == 'activity_widget_filter' ) {
|
1185 |
+
$( 'div.activity' ).bind( 'fadeIn', function() {
|
1186 |
apply_rtMagnificPopup( jQuery( '.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' ) );
|
1187 |
rtMediaHook.call( 'rtmedia_js_after_activity_added', [ ] );
|
1188 |
} );
|
1189 |
+
$( 'div.activity' ).fadeIn( 100 );
|
1190 |
}
|
1191 |
+
jQuery( 'input[data-mode=rtMedia-update]' ).remove();
|
1192 |
while ( objUploadView.uploader.files.pop() != undefined ) {
|
1193 |
}
|
1194 |
objUploadView.uploader.refresh();
|
1197 |
//$("#div-attache-rtmedia").hide();
|
1198 |
apply_rtMagnificPopup( jQuery( '.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' ) );
|
1199 |
jQuery( 'ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode' ).mediaelementplayer( {
|
1200 |
+
// If the <video width> is not specified, this is the default
|
1201 |
defaultVideoWidth: 480,
|
1202 |
+
// If the <video height> is not specified, this is the default
|
1203 |
+
defaultVideoHeight: 270
|
1204 |
+
// If set, overrides <video width>
|
1205 |
//videoWidth: 1,
|
1206 |
// if set, overrides <video height>
|
1207 |
//videoHeight: 1
|
1209 |
rtMediaHook.call( 'rtmedia_js_after_activity_added', [ ] );
|
1210 |
}
|
1211 |
|
1212 |
+
$( '#whats-new-post-in' ).removeAttr( 'disabled' );
|
1213 |
+
$( '#rtmedia-add-media-button-post-update' ).removeAttr( 'disabled' );
|
1214 |
// Enabled TextBox color back to normal
|
1215 |
+
$( '#whats-new' ).css( 'color', '' );
|
1216 |
|
1217 |
+
};
|
1218 |
}
|
1219 |
} );
|
1220 |
} else {
|
1221 |
+
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
|
1222 |
// Modify options, control originalOptions, store jqXHR, etc
|
1223 |
try {
|
1224 |
+
if ( originalOptions.data == null || typeof ( originalOptions.data ) == 'undefined' || typeof ( originalOptions.data.action ) == 'undefined' ) {
|
1225 |
return true;
|
1226 |
}
|
1227 |
} catch ( e ) {
|
1237 |
dynamic_privacy = jQuery( 'input[name="privacy"]' ).val();
|
1238 |
}
|
1239 |
|
1240 |
+
options.data += '&rtmedia-privacy=' + dynamic_privacy;
|
1241 |
var orignalSuccess = originalOptions.success;
|
1242 |
+
options.success = function( response ) {
|
1243 |
orignalSuccess( response );
|
1244 |
if ( response[0] + response[1] == '-1' ) {
|
1245 |
//Error
|
1246 |
} else {
|
1247 |
if ( originalOptions.data.action == 'activity_widget_filter' ) {
|
1248 |
+
$( 'div.activity' ).fadeIn( 100 );
|
1249 |
}
|
1250 |
}
|
1251 |
|
1252 |
+
$( '#whats-new-post-in' ).removeAttr( 'disabled' );
|
1253 |
// Enabled TextBox color back to normal
|
1254 |
+
$( '#whats-new' ).css( 'color', '' );
|
1255 |
|
1256 |
+
};
|
1257 |
}
|
1258 |
} );
|
1259 |
}
|
1260 |
} );
|
1261 |
/**
|
1262 |
+
* RtMedia Comment Js
|
1263 |
*/
|
1264 |
+
jQuery( document ).ready( function( $ ) {
|
1265 |
+
jQuery( document ).on( 'click', '#rt_media_comment_form #rt_media_comment_submit', function( e ) {
|
1266 |
var comment_content_el = jQuery( '#comment_content' );
|
1267 |
+
var comment_form_el = jQuery( '#rt_media_comment_form' );
|
1268 |
var that = this;
|
1269 |
|
1270 |
e.preventDefault();
|
1271 |
+
if ( $.trim( $( '#comment_content' ).val() ) == '' ) {
|
1272 |
rtmedia_single_media_alert_message( rtmedia_empty_comment_msg, 'warning' );
|
1273 |
return false;
|
1274 |
}
|
1275 |
|
1276 |
$( this ).attr( 'disabled', 'disabled' );
|
1277 |
|
1278 |
+
// Sanitize comment content and escape html tags
|
1279 |
comment_content_el.val( jQuery( '<span/>' ).text( jQuery.trim( comment_content_el.val() ) ).html() );
|
1280 |
|
1281 |
$.ajax( {
|
1282 |
+
url: comment_form_el.attr( 'action' ),
|
1283 |
type: 'post',
|
1284 |
+
data: comment_form_el.serialize() + '&rtajax=true',
|
1285 |
+
success: function( data ) {
|
1286 |
$( '#rtmedia-no-comments' ).remove();
|
1287 |
+
$( '#rtmedia_comment_ul' ).append( data );
|
1288 |
+
comment_content_el.val( '' );
|
1289 |
$( that ).removeAttr( 'disabled' );
|
1290 |
rtMediaHook.call( 'rtmedia_js_after_comment_added', [ ] );
|
1291 |
}
|
1295 |
} );
|
1296 |
|
1297 |
//Delete comment
|
1298 |
+
jQuery( document ).on( 'click', '.rtmedia-delete-comment', function( e ) {
|
1299 |
e.preventDefault();
|
1300 |
+
var ask_confirmation = true;
|
1301 |
ask_confirmation = rtMediaHook.call( 'rtmedia_js_delete_comment_confirmation', [ ask_confirmation ] );
|
1302 |
if ( ask_confirmation && ! confirm( rtmedia_media_comment_delete_confirmation ) ) {
|
1303 |
return false;
|
1309 |
if ( comment_id == '' || isNaN( comment_id ) ) {
|
1310 |
return false;
|
1311 |
}
|
1312 |
+
var action = current_comment.closest( 'ul' ).data( 'action' );
|
1313 |
|
1314 |
jQuery.ajax( {
|
1315 |
url: action,
|
1316 |
type: 'post',
|
1317 |
data: { comment_id: comment_id },
|
1318 |
+
success: function( res ) {
|
1319 |
if ( res != 'undefined' && res == 1 ) {
|
1320 |
+
current_comment.closest( 'li' ).hide( 1000, function() {
|
1321 |
current_comment.closest( 'li' ).remove();
|
1322 |
} );
|
1323 |
} else {
|
1329 |
|
1330 |
} );
|
1331 |
|
1332 |
+
$( document ).on( 'click', '.rtmedia-like', function( e ) {
|
1333 |
e.preventDefault();
|
1334 |
var that = this;
|
1335 |
var like_nonce = $( this ).siblings( '#rtm_media_like_nonce' ).val();
|
1336 |
$( this ).attr( 'disabled', 'disabled' );
|
1337 |
+
var url = $( this ).parent().attr( 'action' );
|
1338 |
+
$( that ).prepend( '<img class=\'rtm-like-loading\' src=\'' + rMedia_loading_file + '\' style=\'width:10px\' />' );
|
1339 |
$.ajax( {
|
1340 |
url: url,
|
1341 |
type: 'post',
|
1342 |
data: { json: true, like_nonce: like_nonce },
|
1343 |
+
success: function( data ) {
|
1344 |
try {
|
1345 |
data = JSON.parse( data );
|
1346 |
} catch ( e ) {
|
1347 |
|
1348 |
}
|
1349 |
$( '.rtmedia-like span' ).html( data.next );
|
1350 |
+
$( '.rtmedia-like-counter-wrap' ).html( data.person_text );
|
1351 |
$( '.rtm-like-loading' ).remove();
|
1352 |
$( that ).removeAttr( 'disabled' );
|
1353 |
+
|
1354 |
+
//Update the like counter
|
1355 |
+
// $( '.rtmedia-like-counter' ).html( data.count );
|
1356 |
if ( data.count > 0 ) {
|
1357 |
$( '.rtmedia-like-info' ).removeClass( 'hide' );
|
1358 |
} else {
|
1362 |
} );
|
1363 |
|
1364 |
} );
|
1365 |
+
$( document ).on( 'click', '.rtmedia-featured, .rtmedia-group-featured', function( e ) {
|
1366 |
e.preventDefault();
|
1367 |
var that = this;
|
1368 |
$( this ).attr( 'disabled', 'disabled' );
|
1369 |
var featured_nonce = $( this ).siblings( '#rtm_media_featured_nonce' ).val();
|
1370 |
+
var url = $( this ).parent().attr( 'action' );
|
1371 |
+
$( that ).prepend( '<img class=\'rtm-featured-loading\' src=\'' + rMedia_loading_file + '\' />' );
|
1372 |
$.ajax( {
|
1373 |
url: url,
|
1374 |
type: 'post',
|
1375 |
data: { json:true, featured_nonce:featured_nonce },
|
1376 |
+
success: function( data ) {
|
1377 |
try {
|
1378 |
data = JSON.parse( data );
|
1379 |
} catch ( e ) {
|
1383 |
if ( data.nonce ) {
|
1384 |
rtmedia_single_media_alert_message( rtmedia_something_wrong_msg, 'warning' );
|
1385 |
} else {
|
1386 |
+
if ( data.action ) {
|
1387 |
rtmedia_single_media_alert_message( rtmedia_set_featured_image_msg, 'success' );
|
1388 |
} else {
|
1389 |
rtmedia_single_media_alert_message( rtmedia_unset_featured_image_msg, 'success' );
|
1396 |
} );
|
1397 |
|
1398 |
} );
|
1399 |
+
jQuery( '#div-attache-rtmedia' ).find( 'input[type=file]' ).each( function() {
|
1400 |
//$(this).attr("capture", "camera");
|
1401 |
// $(this).attr("accept", $(this).attr("accept") + ';capture=camera');
|
1402 |
|
1403 |
} );
|
1404 |
|
1405 |
+
// Manually trigger fadein event so that we can bind some function on this event. It is used in activity when content getting load via ajax
|
1406 |
var _old_fadein = $.fn.fadeIn;
|
1407 |
+
jQuery.fn.fadeIn = function() {
|
1408 |
+
return _old_fadein.apply( this, arguments ).trigger( 'fadeIn' );
|
1409 |
};
|
1410 |
} );
|
1411 |
|
1416 |
upload_progress = '<div class="plupload_file_progress ui-widget-header" style="width: 0%;">';
|
1417 |
upload_progress += '</div>';
|
1418 |
icon = '<span id="label_' + file.id + '" class="dashicons dashicons-edit rtmicon" title="' + rtmedia_backbone_strings.rtm_edit_file_name + '"></span>';
|
1419 |
+
} else if ( error.code == -600 ) {
|
1420 |
err_msg = ( uploader != '' ) ? rtmedia_max_file_msg + uploader.settings.max_file_size : window.file_size_info;
|
1421 |
+
title = 'title=\'' + err_msg + '\'';
|
1422 |
icon = '<i class="dashicons dashicons-info rtmicon" ' + title + '></i>';
|
1423 |
+
} else if ( error.code == -601 ) {
|
1424 |
err_msg = error.message + '. ' + window.file_extn_info;
|
1425 |
+
title = 'title=\'' + err_msg + '\'';
|
1426 |
icon = '<i class="dashicons dashicons-info rtmicon" ' + title + '></i>';
|
1427 |
}
|
1428 |
|
1453 |
jQuery( rtmedia_plupload_file ).appendTo( '#rtmedia_uploader_filelist' );
|
1454 |
var type = file.type;
|
1455 |
var media_title = file.name;
|
1456 |
+
var ext = media_title.substring( media_title.lastIndexOf( '.' ) + 1, media_title.length );
|
1457 |
|
1458 |
if ( /image/i.test( type ) ) {
|
1459 |
if ( ext === 'gif' ) {
|
1461 |
} else {
|
1462 |
var img = new mOxie.Image();
|
1463 |
|
1464 |
+
img.onload = function() {
|
1465 |
this.embed( jQuery( '#file_thumb_' + file.id ).get( 0 ), {
|
1466 |
width: 100,
|
1467 |
height: 60,
|
1469 |
} );
|
1470 |
};
|
1471 |
|
1472 |
+
img.onembedded = function() {
|
1473 |
this.destroy();
|
1474 |
};
|
1475 |
|
1476 |
+
img.onerror = function() {
|
1477 |
this.destroy();
|
1478 |
};
|
1479 |
|
1493 |
|
1494 |
/* Change URLin browser without reloading the page */
|
1495 |
function change_rtBrowserAddressUrl( url, page ) {
|
1496 |
+
if ( typeof ( history.pushState ) != 'undefined' ) {
|
1497 |
var obj = { Page: page, Url: url };
|
1498 |
history.pushState( obj, obj.Page, obj.Url );
|
1499 |
}
|
1500 |
+
}
|
app/assets/js/rtMedia.js
CHANGED
@@ -35,7 +35,6 @@ function apply_rtMagnificPopup( selector ) {
|
|
35 |
},
|
36 |
callbacks: {
|
37 |
ajaxContentAdded: function() {
|
38 |
-
|
39 |
mfp = jQuery.magnificPopup.instance;
|
40 |
if ( jQuery( mfp.items ).size() === 1 ) {
|
41 |
jQuery( '.mfp-arrow' ).remove();
|
@@ -65,18 +64,35 @@ function apply_rtMagnificPopup( selector ) {
|
|
65 |
if ( typeof _wpmejsSettings !== 'undefined' ) {
|
66 |
settings.pluginPath = _wpmejsSettings.pluginPath;
|
67 |
}
|
|
|
68 |
$( '.mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video' ).mediaelementplayer( {
|
69 |
// If the <video width> is not specified, this is the default
|
70 |
defaultVideoWidth: 480,
|
71 |
// If the <video height> is not specified, this is the default
|
72 |
defaultVideoHeight: 270,
|
|
|
|
|
|
|
73 |
success: function( mediaElement, domObject ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
// Call the play method
|
75 |
mediaElement.play();
|
76 |
}
|
77 |
} );
|
78 |
$( '.mfp-content .mejs-audio .mejs-controls' ).css( 'position', 'relative' );
|
79 |
rtMediaHook.call( 'rtmedia_js_popup_after_content_added', [ ] );
|
|
|
|
|
|
|
80 |
},
|
81 |
close: function( e ) {
|
82 |
//Console.log(e);
|
@@ -88,9 +104,18 @@ function apply_rtMagnificPopup( selector ) {
|
|
88 |
}
|
89 |
} );
|
90 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
} );
|
92 |
}
|
93 |
-
|
94 |
var rtMediaHook = {
|
95 |
hooks: [ ],
|
96 |
is_break: false,
|
@@ -698,8 +723,8 @@ function rtm_masonry_reload( el ) {
|
|
698 |
showChars: 100,
|
699 |
minHideChars: 10,
|
700 |
ellipsesText: '...',
|
701 |
-
moreText:
|
702 |
-
lessText:
|
703 |
onLess: function() {},
|
704 |
onMore: function() {},
|
705 |
errMsg: null,
|
@@ -725,8 +750,8 @@ function rtm_masonry_reload( el ) {
|
|
725 |
$this.removeClass( 'less' );
|
726 |
$this.html( config.moreText );
|
727 |
$this.parent().prev().hide( 0, function() {
|
728 |
-
|
729 |
-
|
730 |
.hide( 0, function() {
|
731 |
config.onLess();
|
732 |
});
|
@@ -734,8 +759,8 @@ function rtm_masonry_reload( el ) {
|
|
734 |
$this.addClass( 'less' );
|
735 |
$this.html( config.lessText );
|
736 |
$this.parent().prev().show( 0, function() {
|
737 |
-
|
738 |
-
|
739 |
.show( 0, function() {
|
740 |
config.onMore();
|
741 |
});
|
35 |
},
|
36 |
callbacks: {
|
37 |
ajaxContentAdded: function() {
|
|
|
38 |
mfp = jQuery.magnificPopup.instance;
|
39 |
if ( jQuery( mfp.items ).size() === 1 ) {
|
40 |
jQuery( '.mfp-arrow' ).remove();
|
64 |
if ( typeof _wpmejsSettings !== 'undefined' ) {
|
65 |
settings.pluginPath = _wpmejsSettings.pluginPath;
|
66 |
}
|
67 |
+
var $single_meta_h = jQuery( ".rtmedia-container .rtmedia-single-meta" ).height();
|
68 |
$( '.mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video' ).mediaelementplayer( {
|
69 |
// If the <video width> is not specified, this is the default
|
70 |
defaultVideoWidth: 480,
|
71 |
// If the <video height> is not specified, this is the default
|
72 |
defaultVideoHeight: 270,
|
73 |
+
enableAutosize: true,
|
74 |
+
// if set, overrides <video height>
|
75 |
+
videoHeight: -1,
|
76 |
success: function( mediaElement, domObject ) {
|
77 |
+
mediaElement.addEventListener('loadeddata', function (e) {
|
78 |
+
var $video_h = $( mediaElement ).height();
|
79 |
+
var $window_h = $( window ).height();
|
80 |
+
var $rtm_ltb = jQuery( "div.rtm-ltb-action-container" ).height();
|
81 |
+
var $rtm_ltb = $rtm_ltb + 50;
|
82 |
+
var $new_video_h = $single_meta_h - $rtm_ltb;
|
83 |
+
if( $video_h > $window_h ){
|
84 |
+
jQuery( ".rtmedia-container #rtmedia-single-media-container .mejs-container" ).attr( "style", 'height:'+$new_video_h+'px !important; transition:0.2s' );
|
85 |
+
}
|
86 |
+
}, false);
|
87 |
// Call the play method
|
88 |
mediaElement.play();
|
89 |
}
|
90 |
} );
|
91 |
$( '.mfp-content .mejs-audio .mejs-controls' ).css( 'position', 'relative' );
|
92 |
rtMediaHook.call( 'rtmedia_js_popup_after_content_added', [ ] );
|
93 |
+
|
94 |
+
$( '#atwho-container #atwho-ground-comment_content' ).remove();
|
95 |
+
$( '#comment_content' ).bp_mentions( bp.mentions.users );
|
96 |
},
|
97 |
close: function( e ) {
|
98 |
//Console.log(e);
|
104 |
}
|
105 |
} );
|
106 |
}
|
107 |
+
/**
|
108 |
+
* string replace Save From ok
|
109 |
+
* By: Yahil
|
110 |
+
*/
|
111 |
+
jQuery( document ).ajaxComplete(function(){
|
112 |
+
jQuery('[id^=imgedit-leaving]').filter(function(){
|
113 |
+
var text = jQuery(this).text();
|
114 |
+
jQuery(this).text(text.replace('OK', 'Save'));
|
115 |
+
});
|
116 |
+
});
|
117 |
} );
|
118 |
}
|
|
|
119 |
var rtMediaHook = {
|
120 |
hooks: [ ],
|
121 |
is_break: false,
|
723 |
showChars: 100,
|
724 |
minHideChars: 10,
|
725 |
ellipsesText: '...',
|
726 |
+
moreText: rtmedia_read_more,
|
727 |
+
lessText: rtmedia__show_less,
|
728 |
onLess: function() {},
|
729 |
onMore: function() {},
|
730 |
errMsg: null,
|
750 |
$this.removeClass( 'less' );
|
751 |
$this.html( config.moreText );
|
752 |
$this.parent().prev().hide( 0, function() {
|
753 |
+
$this.parent().prev().prev().show();
|
754 |
+
})
|
755 |
.hide( 0, function() {
|
756 |
config.onLess();
|
757 |
});
|
759 |
$this.addClass( 'less' );
|
760 |
$this.html( config.lessText );
|
761 |
$this.parent().prev().show( 0, function() {
|
762 |
+
$this.parent().prev().prev().hide();
|
763 |
+
})
|
764 |
.show( 0, function() {
|
765 |
config.onMore();
|
766 |
});
|
app/assets/js/rtmedia.min.js
CHANGED
@@ -2,5 +2,5 @@
|
|
2 |
* rtMedia JavaScript Library
|
3 |
* @package rtMedia
|
4 |
*/
|
5 |
-
function apply_rtMagnificPopup(a){jQuery("document").ready(function(b){var c="";c="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&(b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length>0&&b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(a).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",tLoading:c+" #%curr%...",mainClass:"mfp-img-mobile",preload:[1,3],closeOnBgClick:!0,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:"",preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(a){return a.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){a=jQuery.magnificPopup.instance,1===jQuery(a.items).size()&&jQuery(".mfp-arrow").remove();var a=jQuery.magnificPopup.instance,c=a.currItem.el,d=c.parent();if(d.is("li")||(d=d.parent()),d.is(":nth-last-child(2)")||d.is(":last-child")){d.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&jQuery("#rtMedia-galary-next").click()}var e=a.items.length;if(a.index==e-1&&!d.is(":last-child"))return void c.click();var f={};"undefined"!=typeof _wpmejsSettings&&(f.pluginPath=_wpmejsSettings.pluginPath),b(".mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,success:function(a,b){a.play()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[])},close:function(a){rtmedia_init_action_dropdown()},BeforeChange:function(a){}}}))})}function rtmedia_init_action_dropdown(){var a,b;jQuery(".click-nav > span, .click-nav > div").toggleClass("no-js js"),jQuery(".click-nav .js ul").hide(),jQuery(".click-nav .clicker").click(function(c){a=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),b=jQuery(this).next("ul"),jQuery.each(a,function(a,c){jQuery(c).html()!=b.html()&&jQuery(c).hide()}),jQuery(b).toggle(),c.stopPropagation()})}function bp_media_create_element(a){return!1}function rtmedia_version_compare(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);e<f;e++){if(c[e]&&!d[e]&&parseInt(c[e])>0||parseInt(c[e])>parseInt(d[e]))return!0;if(d[e]&&!c[e]&&parseInt(d[e])>0||parseInt(c[e])<parseInt(d[e]))return!1}return!0}function rtm_is_element_exist(a){return jQuery(a).length>0}function rtm_masonry_reload(a){setTimeout(function(){a.masonry("reload")},250)}function rtmediaGetParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null==c?"":decodeURIComponent(c[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning"),jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","0.2"),jQuery(".rtmedia-single-media .rtmedia-media").after("<div class='rtmedia-message-container'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()},3e3),jQuery(".rtmedia-message-container").click(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()})}function rtmedia_gallery_action_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning");var d='<div class="rtmedia-gallery-alert-container"> </div>';jQuery("body").append(d),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-gallery-alert-container").remove()},3e3),jQuery(".rtmedia-gallery-message-box").click(function(){jQuery(".rtmedia-gallery-alert-container").remove()})}!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=c.indexOf("MSIE 7.")!==-1,b.isIE8=c.indexOf("MSIE 8.")!==-1,b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=!!b.st[d]&&b.st[d].markup;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return b._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,e<200?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return!!b.currItem.hasSize&&b.currItem.img},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){if(e.indexOf(this.index)>-1)return this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:a<0?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,!(!c||!c.enabled)&&(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){if(b.items.length>1)return b.next(),!1}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null}))},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}),"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick();var e="false"!==c.$elem.attr("data-hash");if(e===!0){var f=b.location.hash;f&&c.$elem.find("li").find('a[href="'+f+'"]').trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find('a[href="'+a+'"]').trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li"),e=d.find("a");e.on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");a(f).removeClass("hide");var g="false"!==c.$elem.attr("data-hash");if(g===!0){var h=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(h)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){var c=this,d=c.$elem.find("li"),e=d.find("a");e.each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var rtMagnificPopup,rtm_masonry_container,rtMediaHook={hooks:[],is_break:!1,register:function(a,b){"undefined"==typeof rtMediaHook.hooks[a]&&(rtMediaHook.hooks[a]=[]),rtMediaHook.hooks[a].push(b)},call:function(a,arguments){if("undefined"!=typeof rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](arguments))return rtMediaHook.is_break=!0,!1;return!0}};jQuery("document").ready(function(a){function b(){if(jQuery("#rtmedia-media-view-form").length>0){var a=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(a,{},function(a){})}}function c(){var a=jQuery.magnificPopup.instance;jQuery(".mfp-arrow-right").on("click",function(b){a.next()}),jQuery(".mfp-arrow-left").on("click",function(b){a.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(b,c,d,e,f){a.next()},swipeRight:function(b,c,d,e,f){a.prev()},threshold:0})}function d(){jQuery(document).on("focusin","#comment_content",function(){jQuery(document).unbind("keydown")}),jQuery(document).on("focusout","#comment_content",function(){var a=jQuery.magnificPopup.instance;jQuery(document).on("keydown",function(b){37===b.keyCode?a.prev():39===b.keyCode&&a.next()})})}function e(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}"undefined"!=typeof a.fn.rtTab&&a(".rtm-tabs").rtTab(),jQuery(".rtmedia-modal-link").length>0&&a(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),a("#rt_media_comment_form").submit(function(b){return""!=a.trim(a("#comment_content").val())||(0==jQuery("#rtmedia-single-media-container").length?rtmedia_gallery_action_alert_message(rtmedia_empty_comment_msg,"warning"):rtmedia_single_media_alert_message(rtmedia_empty_comment_msg,"warning"),!1)}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}else if("get_single_activity_content"==b.data.action){var d=b.success;a.success=function(a){d(a),setTimeout(function(){apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270}),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(),
|
6 |
-
$context=jQuery.trim(jQuery("#rtmedia_album_context").val()),$context_id=jQuery.trim(jQuery("#rtmedia_album_context_id").val()),$privacy=jQuery.trim(jQuery("#rtmedia_select_album_privacy").val()),$create_album_nonce=jQuery.trim(jQuery("#rtmedia_create_album_nonce").val()),""!=$albumname){var c={action:"rtmedia_create_album",name:$albumname,context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(c.privacy=$privacy),a("#rtmedia_create_new_album").attr("disabled","disabled");var d=a("#rtmedia_create_new_album").html();a("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,c,function(b){if("undefined"!=typeof b.album){b=jQuery.trim(b.album);var c=!0;jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){if(jQuery(this).attr("value")===$context)return c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,d='<optgroup value="'+$context+'" label="'+a+'"><option value="'+b+'">'+$albumname+"</option></optgroup>";jQuery(this).append(d)}}),jQuery('select.rtmedia-user-album-list option[value="'+b+'"]').prop("selected",!0),jQuery(".rtmedia-create-new-album-container").slideToggle(),jQuery("#rtmedia_album_name").val(""),jQuery("#rtmedia-create-album-modal").append("<div class='rtmedia-success rtmedia-create-album-alert'><b>"+$albumname+"</b>"+rtmedia_album_created_msg+"</div>"),setTimeout(function(){jQuery(".rtmedia-create-album-alert").remove()},4e3),setTimeout(function(){galleryObj.reloadView(),jQuery(".close-reveal-modal").click()},2e3)}else"undefined"!=typeof b.error?rtmedia_gallery_action_alert_message(b.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");a("#rtmedia_create_new_album").removeAttr("disabled"),a("#rtmedia_create_new_album").html(d)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_delete_confirmation)&&jQuery(this).closest("form").attr("action","../../../"+rtmedia_media_slug+"/delete").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-move-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery("#buddypress").on("change",".rtm-activity-privacy-opt",function(){var a=jQuery(this).attr("id");a=a.split("-"),a=a[a.length-1];var b=this;data={activity_id:a,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(a){var c="",d="";"true"==a?(c=rtmedia_main_js_strings.privacy_update_success,d="success"):(c=rtmedia_main_js_strings.privacy_update_error,d="fail"),jQuery(b).after('<p class="rtm-ac-privacy-updated '+d+'">'+c+"</p>"),setTimeout(function(){jQuery(b).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),b(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){b(),e(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&c(),d();var f=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*f,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*f,"over-flow":"hidden"}),rtmedia_init_action_dropdown(),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var g=a(".rtm-gallery-title"),h="";h=a.isEmptyObject(g)?a("#subnav.item-list-tabs li.selected ").html():g.html(),""!=h&&a(".rtm-ltb-gallery-title .ltb-title").html(h);var i=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(i),!0});var f=jQuery("#drag-drop-area"),g=jQuery("#whats-new");f.html();jQuery("#rtmedia-upload-container").after("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&jQuery("#whats-new-textarea").append("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),jQuery(document).on("dragover",function(a){jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&g.addClass("rtm-drag-drop-active"),f.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show()}).on("dragleave",function(a){a.preventDefault(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(g.removeClass("rtm-drag-drop-active"),g.removeAttr("style")),f.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(a){a.preventDefault(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(g.removeClass("rtm-drag-drop-active"),g.removeAttr("style")),f.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(a){a.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(),a(document).click(function(){a(".click-nav ul").is(":visible")&&a(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").length>0&&a(".rtm-more").shorten({showChars:200}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&(rtm_masonry_container=jQuery(".rtmedia-container .rtmedia-list"),rtm_masonry_container.masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())})),jQuery(".rtm-uploader-tabs").length>0&&jQuery(".rtm-uploader-tabs li").click(function(a){jQuery(this).hasClass("active")||(jQuery(this).siblings().removeClass("active"),jQuery(this).parents(".rtm-uploader-tabs").siblings().hide(),class_name=jQuery(this).attr("class"),jQuery(this).parents(".rtm-uploader-tabs").siblings('[data-id="'+class_name+'"]').show(),jQuery(this).addClass("active"),"rtm-upload-tab"!=class_name?jQuery("div.moxie-shim").children("input[type=file]").hide():jQuery("div.moxie-shim").children("input[type=file]").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(a){a.preventDefault();var b="Are you sure you want to delete this media?";if("undefined"!=typeof rtmedia_media_delete_confirmation&&(b=rtmedia_media_delete_confirmation),confirm(b)){var c=jQuery(this).closest("li"),d=jQuery("#rtmedia_media_delete_nonce").val(),e={action:"delete_uploaded_media",nonce:d,media_id:c.attr("id")};jQuery.ajax({url:ajaxurl,type:"post",data:e,success:function(a){"1"==a?(rtmedia_gallery_action_alert_message(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:"Read more",lessText:"Show less",onLess:function(){},onMore:function(){},errMsg:null,force:!1};return b&&a.extend(c,b),!(a(this).data("jquery.shorten")&&!c.force)&&(a(this).data("jquery.shorten",!0),a(document).off("click",".morelink"),a(document).on({click:function(){var b=a(this);return b.hasClass("less")?(b.removeClass("less"),b.html(c.moreText),b.parent().prev().hide(0,function(){b.parent().prev().prev().show()}).hide(0,function(){c.onLess()})):(b.addClass("less"),b.html(c.lessText),b.parent().prev().show(0,function(){b.parent().prev().prev().hide()}).show(0,function(){c.onMore()})),!1}},".morelink"),this.each(function(){var b=a(this),d=b.html(),e=b.text().length;if(e>c.showChars+c.minHideChars){var f=d.substr(0,c.showChars);if(f.indexOf("<")>=0){for(var g=!1,h="",i=0,k=[],l=null,m=0,n=0;n<=c.showChars;m++)if("<"!=d[m]||g||(g=!0,l=d.substring(m+1,d.indexOf(">",m)),"/"==l[0]?l!="/"+k[0]?c.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":k.shift():"br"!=l.toLowerCase()&&k.unshift(l)),g&&">"==d[m]&&(g=!1),g)h+=d.charAt(m);else if(n++,i<=c.showChars)h+=d.charAt(m),i++;else if(k.length>0){for(j=0;j<k.length;j++)h+="</"+k[j]+">";break}f=a("<div/>").html(h+'<span class="ellip">'+c.ellipsesText+"</span>").html()}else f+=c.ellipsesText;var o='<div class="shortcontent">'+f+'</div><div class="allcontent">'+d+'</div><span><a href="javascript://nop/" class="morelink">'+c.moreText+"</a></span>";b.html(o),b.find(".allcontent").hide(),a(".shortcontent p:last",b).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)};
|
2 |
* rtMedia JavaScript Library
|
3 |
* @package rtMedia
|
4 |
*/
|
5 |
+
function apply_rtMagnificPopup(a){jQuery("document").ready(function(b){var c="";c="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&(b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length>0&&b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(a).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",tLoading:c+" #%curr%...",mainClass:"mfp-img-mobile",preload:[1,3],closeOnBgClick:!0,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:"",preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(a){return a.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){a=jQuery.magnificPopup.instance,1===jQuery(a.items).size()&&jQuery(".mfp-arrow").remove();var a=jQuery.magnificPopup.instance,c=a.currItem.el,d=c.parent();if(d.is("li")||(d=d.parent()),d.is(":nth-last-child(2)")||d.is(":last-child")){d.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&jQuery("#rtMedia-galary-next").click()}var e=a.items.length;if(a.index==e-1&&!d.is(":last-child"))return void c.click();var f={};"undefined"!=typeof _wpmejsSettings&&(f.pluginPath=_wpmejsSettings.pluginPath);var g=jQuery(".rtmedia-container .rtmedia-single-meta").height();b(".mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,enableAutosize:!0,videoHeight:-1,success:function(a,c){a.addEventListener("loadeddata",function(c){var d=b(a).height(),e=b(window).height(),f=jQuery("div.rtm-ltb-action-container").height(),f=f+50,h=g-f;d>e&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+h+"px !important; transition:0.2s")},!1),a.play()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),b("#atwho-container #atwho-ground-comment_content").remove(),b("#comment_content").bp_mentions(bp.mentions.users)},close:function(a){rtmedia_init_action_dropdown()},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(){var a,b;jQuery(".click-nav > span, .click-nav > div").toggleClass("no-js js"),jQuery(".click-nav .js ul").hide(),jQuery(".click-nav .clicker").click(function(c){a=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),b=jQuery(this).next("ul"),jQuery.each(a,function(a,c){jQuery(c).html()!=b.html()&&jQuery(c).hide()}),jQuery(b).toggle(),c.stopPropagation()})}function bp_media_create_element(a){return!1}function rtmedia_version_compare(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);e<f;e++){if(c[e]&&!d[e]&&parseInt(c[e])>0||parseInt(c[e])>parseInt(d[e]))return!0;if(d[e]&&!c[e]&&parseInt(d[e])>0||parseInt(c[e])<parseInt(d[e]))return!1}return!0}function rtm_is_element_exist(a){return jQuery(a).length>0}function rtm_masonry_reload(a){setTimeout(function(){a.masonry("reload")},250)}function rtmediaGetParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null==c?"":decodeURIComponent(c[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning"),jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","0.2"),jQuery(".rtmedia-single-media .rtmedia-media").after("<div class='rtmedia-message-container'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()},3e3),jQuery(".rtmedia-message-container").click(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()})}function rtmedia_gallery_action_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning");var d='<div class="rtmedia-gallery-alert-container"> </div>';jQuery("body").append(d),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-gallery-alert-container").remove()},3e3),jQuery(".rtmedia-gallery-message-box").click(function(){jQuery(".rtmedia-gallery-alert-container").remove()})}!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=c.indexOf("MSIE 7.")!==-1,b.isIE8=c.indexOf("MSIE 8.")!==-1,b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=!!b.st[d]&&b.st[d].markup;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return b._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,e<200?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return!!b.currItem.hasSize&&b.currItem.img},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){if(e.indexOf(this.index)>-1)return this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:a<0?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,!(!c||!c.enabled)&&(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){if(b.items.length>1)return b.next(),!1}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null}))},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}),"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick();var e="false"!==c.$elem.attr("data-hash");if(e===!0){var f=b.location.hash;f&&c.$elem.find("li").find('a[href="'+f+'"]').trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find('a[href="'+a+'"]').trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li"),e=d.find("a");e.on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");a(f).removeClass("hide");var g="false"!==c.$elem.attr("data-hash");if(g===!0){var h=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(h)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){var c=this,d=c.$elem.find("li"),e=d.find("a");e.each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var rtMagnificPopup,rtm_masonry_container,rtMediaHook={hooks:[],is_break:!1,register:function(a,b){"undefined"==typeof rtMediaHook.hooks[a]&&(rtMediaHook.hooks[a]=[]),rtMediaHook.hooks[a].push(b)},call:function(a,arguments){if("undefined"!=typeof rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](arguments))return rtMediaHook.is_break=!0,!1;return!0}};jQuery("document").ready(function(a){function b(){if(jQuery("#rtmedia-media-view-form").length>0){var a=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(a,{},function(a){})}}function c(){var a=jQuery.magnificPopup.instance;jQuery(".mfp-arrow-right").on("click",function(b){a.next()}),jQuery(".mfp-arrow-left").on("click",function(b){a.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(b,c,d,e,f){a.next()},swipeRight:function(b,c,d,e,f){a.prev()},threshold:0})}function d(){jQuery(document).on("focusin","#comment_content",function(){jQuery(document).unbind("keydown")}),jQuery(document).on("focusout","#comment_content",function(){var a=jQuery.magnificPopup.instance;jQuery(document).on("keydown",function(b){37===b.keyCode?a.prev():39===b.keyCode&&a.next()})})}function e(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}"undefined"!=typeof a.fn.rtTab&&a(".rtm-tabs").rtTab(),jQuery(".rtmedia-modal-link").length>0&&a(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),a("#rt_media_comment_form").submit(function(b){return""!=a.trim(a("#comment_content").val())||(0==jQuery("#rtmedia-single-media-container").length?rtmedia_gallery_action_alert_message(rtmedia_empty_comment_msg,"warning"):rtmedia_single_media_alert_message(rtmedia_empty_comment_msg,"warning"),!1)}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(d){return!0}if("activity_get_older_updates"==b.data.action){var e=b.success;a.success=function(a){e(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}else if("get_single_activity_content"==b.data.action){var e=b.success;a.success=function(a){e(a),setTimeout(function(){apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||"undefined"==typeof b.data||"undefined"==typeof b.data.action)return!0}catch(d){return!0}if("activity_get_older_updates"==b.data.action){var e=b.success;a.success=function(a){e(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270}),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")}),
|
6 |
+
jQuery(".rtmedia-container").on("click",".unselect-all",function(a){jQuery(this).toggleClass("select-all").toggleClass("unselect-all"),jQuery(this).attr("title",rtmedia_select_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!1)}),jQuery(".rtmedia-list-item").removeClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".rtmedia-move",function(a){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(b){if($albumname=jQuery("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$context=jQuery.trim(jQuery("#rtmedia_album_context").val()),$context_id=jQuery.trim(jQuery("#rtmedia_album_context_id").val()),$privacy=jQuery.trim(jQuery("#rtmedia_select_album_privacy").val()),$create_album_nonce=jQuery.trim(jQuery("#rtmedia_create_album_nonce").val()),""!=$albumname){var c={action:"rtmedia_create_album",name:$albumname,context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(c.privacy=$privacy),a("#rtmedia_create_new_album").attr("disabled","disabled");var d=a("#rtmedia_create_new_album").html();a("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,c,function(b){if("undefined"!=typeof b.album){b=jQuery.trim(b.album);var c=!0;jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){if(jQuery(this).attr("value")===$context)return c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,d='<optgroup value="'+$context+'" label="'+a+'"><option value="'+b+'">'+$albumname+"</option></optgroup>";jQuery(this).append(d)}}),jQuery('select.rtmedia-user-album-list option[value="'+b+'"]').prop("selected",!0),jQuery(".rtmedia-create-new-album-container").slideToggle(),jQuery("#rtmedia_album_name").val(""),jQuery("#rtmedia-create-album-modal").append("<div class='rtmedia-success rtmedia-create-album-alert'><b>"+$albumname+"</b>"+rtmedia_album_created_msg+"</div>"),setTimeout(function(){jQuery(".rtmedia-create-album-alert").remove()},4e3),setTimeout(function(){galleryObj.reloadView(),jQuery(".close-reveal-modal").click()},2e3)}else"undefined"!=typeof b.error?rtmedia_gallery_action_alert_message(b.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");a("#rtmedia_create_new_album").removeAttr("disabled"),a("#rtmedia_create_new_album").html(d)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_delete_confirmation)&&jQuery(this).closest("form").attr("action","../../../"+rtmedia_media_slug+"/delete").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-move-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery("#buddypress").on("change",".rtm-activity-privacy-opt",function(){var a=jQuery(this).attr("id");a=a.split("-"),a=a[a.length-1];var b=this;data={activity_id:a,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(a){var c="",d="";"true"==a?(c=rtmedia_main_js_strings.privacy_update_success,d="success"):(c=rtmedia_main_js_strings.privacy_update_error,d="fail"),jQuery(b).after('<p class="rtm-ac-privacy-updated '+d+'">'+c+"</p>"),setTimeout(function(){jQuery(b).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),b(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){b(),e(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&c(),d();var f=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*f,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*f,"over-flow":"hidden"}),rtmedia_init_action_dropdown(),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var g=a(".rtm-gallery-title"),h="";h=a.isEmptyObject(g)?a("#subnav.item-list-tabs li.selected ").html():g.html(),""!=h&&a(".rtm-ltb-gallery-title .ltb-title").html(h);var i=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(i),!0});var f=jQuery("#drag-drop-area"),g=jQuery("#whats-new");f.html();jQuery("#rtmedia-upload-container").after("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&jQuery("#whats-new-textarea").append("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),jQuery(document).on("dragover",function(a){jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&g.addClass("rtm-drag-drop-active"),f.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show()}).on("dragleave",function(a){a.preventDefault(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(g.removeClass("rtm-drag-drop-active"),g.removeAttr("style")),f.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(a){a.preventDefault(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(g.removeClass("rtm-drag-drop-active"),g.removeAttr("style")),f.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(a){a.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(),a(document).click(function(){a(".click-nav ul").is(":visible")&&a(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").length>0&&a(".rtm-more").shorten({showChars:200}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&(rtm_masonry_container=jQuery(".rtmedia-container .rtmedia-list"),rtm_masonry_container.masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())})),jQuery(".rtm-uploader-tabs").length>0&&jQuery(".rtm-uploader-tabs li").click(function(a){jQuery(this).hasClass("active")||(jQuery(this).siblings().removeClass("active"),jQuery(this).parents(".rtm-uploader-tabs").siblings().hide(),class_name=jQuery(this).attr("class"),jQuery(this).parents(".rtm-uploader-tabs").siblings('[data-id="'+class_name+'"]').show(),jQuery(this).addClass("active"),"rtm-upload-tab"!=class_name?jQuery("div.moxie-shim").children("input[type=file]").hide():jQuery("div.moxie-shim").children("input[type=file]").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(a){a.preventDefault();var b="Are you sure you want to delete this media?";if("undefined"!=typeof rtmedia_media_delete_confirmation&&(b=rtmedia_media_delete_confirmation),confirm(b)){var c=jQuery(this).closest("li"),d=jQuery("#rtmedia_media_delete_nonce").val(),e={action:"delete_uploaded_media",nonce:d,media_id:c.attr("id")};jQuery.ajax({url:ajaxurl,type:"post",data:e,success:function(a){"1"==a?(rtmedia_gallery_action_alert_message(rtmedia_main_js_strings.file_delete_success,"success"),c.remove(),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)):rtmedia_gallery_action_alert_message(rtmedia_file_not_deleted,"warning")}})}})}),function(a){a.fn.shorten=function(b){"use strict";var c={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return b&&a.extend(c,b),!(a(this).data("jquery.shorten")&&!c.force)&&(a(this).data("jquery.shorten",!0),a(document).off("click",".morelink"),a(document).on({click:function(){var b=a(this);return b.hasClass("less")?(b.removeClass("less"),b.html(c.moreText),b.parent().prev().hide(0,function(){b.parent().prev().prev().show()}).hide(0,function(){c.onLess()})):(b.addClass("less"),b.html(c.lessText),b.parent().prev().show(0,function(){b.parent().prev().prev().hide()}).show(0,function(){c.onMore()})),!1}},".morelink"),this.each(function(){var b=a(this),d=b.html(),e=b.text().length;if(e>c.showChars+c.minHideChars){var f=d.substr(0,c.showChars);if(f.indexOf("<")>=0){for(var g=!1,h="",i=0,k=[],l=null,m=0,n=0;n<=c.showChars;m++)if("<"!=d[m]||g||(g=!0,l=d.substring(m+1,d.indexOf(">",m)),"/"==l[0]?l!="/"+k[0]?c.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":k.shift():"br"!=l.toLowerCase()&&k.unshift(l)),g&&">"==d[m]&&(g=!1),g)h+=d.charAt(m);else if(n++,i<=c.showChars)h+=d.charAt(m),i++;else if(k.length>0){for(j=0;j<k.length;j++)h+="</"+k[j]+">";break}f=a("<div/>").html(h+'<span class="ellip">'+c.ellipsesText+"</span>").html()}else f+=c.ellipsesText;var o='<div class="shortcontent">'+f+'</div><div class="allcontent">'+d+'</div><span><a href="javascript://nop/" class="morelink">'+c.moreText+"</a></span>";b.html(o),b.find(".allcontent").hide(),a(".shortcontent p:last",b).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)};
|
app/helper/RTMediaCommentNotification.php
CHANGED
@@ -108,7 +108,7 @@ class RTMediaCommentNotification extends RTMediaNotification {
|
|
108 |
* delete notification of a comment perticular commnet
|
109 |
* @param int $comment_id
|
110 |
*/
|
111 |
-
function remove_comment_notification($comment_id) {
|
112 |
|
113 |
$comment_notification_id = (int) get_comment_meta( $comment_id, 'comment_notification_id', true );
|
114 |
|
@@ -118,7 +118,6 @@ class RTMediaCommentNotification extends RTMediaNotification {
|
|
118 |
}
|
119 |
|
120 |
}
|
121 |
-
|
122 |
}
|
123 |
|
124 |
/**
|
@@ -142,4 +141,4 @@ function rt_comment_notifications_callback( $action, $post_id, $initiator_id, $t
|
|
142 |
);
|
143 |
|
144 |
return apply_filters( 'rtmedia_comment_notifications', $params );
|
145 |
-
}
|
108 |
* delete notification of a comment perticular commnet
|
109 |
* @param int $comment_id
|
110 |
*/
|
111 |
+
function remove_comment_notification( $comment_id ) {
|
112 |
|
113 |
$comment_notification_id = (int) get_comment_meta( $comment_id, 'comment_notification_id', true );
|
114 |
|
118 |
}
|
119 |
|
120 |
}
|
|
|
121 |
}
|
122 |
|
123 |
/**
|
141 |
);
|
142 |
|
143 |
return apply_filters( 'rtmedia_comment_notifications', $params );
|
144 |
+
}
|
app/helper/RTMediaLicense.php
CHANGED
@@ -183,9 +183,21 @@ class RTMediaLicense {
|
|
183 |
|
184 |
break;
|
185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
default :
|
187 |
|
188 |
-
$
|
|
|
|
|
|
|
189 |
break;
|
190 |
}
|
191 |
} else {
|
183 |
|
184 |
break;
|
185 |
|
186 |
+
case 'license_not_activable':
|
187 |
+
|
188 |
+
$class = 'alert';
|
189 |
+
$messages[] = sprintf( __( 'Your license is not activable, please visit <a href="%s">your account page</a>.', 'buddypress-media' ), 'https://rtmedia.io/my-account/' );
|
190 |
+
|
191 |
+
$license_status = 'license-' . $class . '-notice';
|
192 |
+
|
193 |
+
break;
|
194 |
+
|
195 |
default :
|
196 |
|
197 |
+
$class = 'alert';
|
198 |
+
$messages[] = __( 'To receive updates, please enter your valid license key.', 'buddypress-media' );
|
199 |
+
|
200 |
+
$license_status = 'license-' . $class . '-notice';
|
201 |
break;
|
202 |
}
|
203 |
} else {
|
app/helper/RTMediaSupport.php
CHANGED
@@ -34,6 +34,21 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
34 |
if ( isset( $tab ) ) {
|
35 |
$this->curr_sub_tab = $tab;
|
36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
/**
|
@@ -78,7 +93,7 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
78 |
</div>
|
79 |
<?php
|
80 |
}
|
81 |
-
|
82 |
public function rtmedia_cancel_request() {
|
83 |
do_settings_sections( 'rtmedia-support' );
|
84 |
die();
|
@@ -143,21 +158,21 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
143 |
<select name="rtmedia_service_select">
|
144 |
<option
|
145 |
value="premium_support" <?php
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
?>><?php esc_html_e( 'Premium Support', 'buddypress-media' ); ?></option>
|
150 |
<option
|
151 |
value="bug_report" <?php
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
?>><?php esc_html_e( 'Bug Report', 'buddypress-media' ); ?></option>
|
156 |
<option
|
157 |
value="new_feature" <?php
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
?>><?php esc_html_e( 'New Feature', 'buddypress-media' ); ?></option>
|
162 |
</select>
|
163 |
<input name="support_submit" value="<?php esc_attr_e( 'Submit', 'buddypress-media' ); ?>"
|
@@ -235,7 +250,9 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
235 |
if ( is_dir( $template_path . DIRECTORY_SEPARATOR . $value ) ) {
|
236 |
$sub_files = $this->rtmedia_scan_template_files( $template_path . DIRECTORY_SEPARATOR . $value );
|
237 |
foreach ( $sub_files as $sub_file ) {
|
238 |
-
$
|
|
|
|
|
239 |
}
|
240 |
} else {
|
241 |
if ( 'main.php' !== $value ) {
|
@@ -300,6 +317,15 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
300 |
$debug_info[ 'Total ' . ucfirst( $media->media_type ) . 's' ] = $media->count;
|
301 |
}
|
302 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
$this->debug_info = $debug_info;
|
304 |
}
|
305 |
|
@@ -338,6 +364,13 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
338 |
?>
|
339 |
</tbody>
|
340 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
</div><?php
|
342 |
}
|
343 |
|
@@ -402,7 +435,7 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
402 |
public function get_form( $form = '' ) {
|
403 |
//todo: nonce required
|
404 |
if ( empty( $form ) ) {
|
405 |
-
$form = filter_input( INPUT_POST, 'form'. FILTER_SANITIZE_STRING );
|
406 |
$form = isset( $form ) ? $form : 'premium_support';
|
407 |
}
|
408 |
$meta_title = '';
|
@@ -501,6 +534,19 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
501 |
<input type="hidden" name="ip_address" value="<?php echo esc_attr( $remote_addr ); ?>"/>
|
502 |
<input type="hidden" name="server_type" value="<?php echo esc_attr( $server_software ); ?>"/>
|
503 |
<input type="hidden" name="user_agent" value="<?php echo esc_attr( $http_user_agent ); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
</div>
|
505 |
</div><!-- .submit-bug-box -->
|
506 |
|
@@ -613,27 +659,26 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
613 |
';
|
614 |
}
|
615 |
$message .= '</table>';
|
616 |
-
if ( $this->debug_info ) {
|
617 |
-
$message .= '<h3>' . esc_html__( 'Debug Info', 'buddypress-media' ) . '</h3>';
|
618 |
-
$message .= '<table>';
|
619 |
-
foreach ( $this->debug_info as $configuration => $value ) {
|
620 |
-
$message .= '<tr>
|
621 |
-
<td style="vertical-align:top">' . esc_html( $configuration ) . '</td><td>' . $value . '</td>
|
622 |
-
</tr>';
|
623 |
-
}
|
624 |
-
$message .= '</table>';
|
625 |
-
}
|
626 |
$message .= '</body>
|
627 |
</html>';
|
628 |
|
629 |
-
add_filter( 'wp_mail_content_type', array($this,'rtmedia_mail_content_type'));
|
|
|
|
|
|
|
|
|
|
|
630 |
|
631 |
$headers = 'From: ' . $form_data['name'] . ' <' . $form_data['email'] . '>' . "\r\n";
|
632 |
$support_email = 'support@rtcamp.com';
|
633 |
if ( wp_mail( $support_email, '[rtmedia] ' . $mail_type . ' from ' . str_replace( array(
|
634 |
'http://',
|
635 |
'https://',
|
636 |
-
|
|
|
|
|
|
|
|
|
637 |
echo '<div class="rtmedia-success" style="margin:10px 0;">';
|
638 |
if ( 'new_feature' === sanitize_text_field( $form_data['request_type'] ) ) {
|
639 |
echo '<p>' . esc_html__( 'Thank you for your Feedback/Suggestion.', 'buddypress-media' ) . '</p>';
|
@@ -656,6 +701,67 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
|
|
656 |
}
|
657 |
die();
|
658 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
659 |
}
|
660 |
|
661 |
}
|
34 |
if ( isset( $tab ) ) {
|
35 |
$this->curr_sub_tab = $tab;
|
36 |
}
|
37 |
+
|
38 |
+
/* Check if download debug info request is made or not */
|
39 |
+
$nonce = filter_input( INPUT_POST, 'download_debuginfo_wpnonce', FILTER_SANITIZE_STRING );
|
40 |
+
if( isset( $_POST['download_debuginfo'] ) && '1' === $_POST['download_debuginfo'] && is_admin() ) {
|
41 |
+
if ( empty( $nonce ) || ! wp_verify_nonce( $nonce, 'rtmedia-download-debuginfo' ) ) {
|
42 |
+
wp_die(
|
43 |
+
'<h1>' . esc_html__( 'Cheatin\' uh?','buddypress-media' ) . '</h1>' .
|
44 |
+
'<p>' . esc_html__( 'Can not verify request source.','buddypress-media' ) . '</p>'
|
45 |
+
);
|
46 |
+
} else {
|
47 |
+
/* download the debug info */
|
48 |
+
$this->download_debuginfo_as_text();
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
52 |
}
|
53 |
|
54 |
/**
|
93 |
</div>
|
94 |
<?php
|
95 |
}
|
96 |
+
|
97 |
public function rtmedia_cancel_request() {
|
98 |
do_settings_sections( 'rtmedia-support' );
|
99 |
die();
|
158 |
<select name="rtmedia_service_select">
|
159 |
<option
|
160 |
value="premium_support" <?php
|
161 |
+
if ( 'premium_support' === $form ) {
|
162 |
+
echo 'selected';
|
163 |
+
}
|
164 |
?>><?php esc_html_e( 'Premium Support', 'buddypress-media' ); ?></option>
|
165 |
<option
|
166 |
value="bug_report" <?php
|
167 |
+
if ( 'bug_report' === $form ) {
|
168 |
+
echo 'selected';
|
169 |
+
}
|
170 |
?>><?php esc_html_e( 'Bug Report', 'buddypress-media' ); ?></option>
|
171 |
<option
|
172 |
value="new_feature" <?php
|
173 |
+
if ( 'new_feature' === $form ) {
|
174 |
+
echo 'selected';
|
175 |
+
}
|
176 |
?>><?php esc_html_e( 'New Feature', 'buddypress-media' ); ?></option>
|
177 |
</select>
|
178 |
<input name="support_submit" value="<?php esc_attr_e( 'Submit', 'buddypress-media' ); ?>"
|
250 |
if ( is_dir( $template_path . DIRECTORY_SEPARATOR . $value ) ) {
|
251 |
$sub_files = $this->rtmedia_scan_template_files( $template_path . DIRECTORY_SEPARATOR . $value );
|
252 |
foreach ( $sub_files as $sub_file ) {
|
253 |
+
$rt_to_dir_paths = RTMediaTemplate::locate_template( substr( $sub_file, 0, ( count( $sub_file ) - 5 ) ) );
|
254 |
+
$rt_to_dir_path = str_replace( '//', '/', $rt_to_dir_paths );
|
255 |
+
$result[] = str_replace( ABSPATH . 'wp-content/', '', $rt_to_dir_path );
|
256 |
}
|
257 |
} else {
|
258 |
if ( 'main.php' !== $value ) {
|
317 |
$debug_info[ 'Total ' . ucfirst( $media->media_type ) . 's' ] = $media->count;
|
318 |
}
|
319 |
}
|
320 |
+
|
321 |
+
/* get all rtMedia Settings */
|
322 |
+
$rtmedia_options = get_option( 'rtmedia-options' );
|
323 |
+
if ( is_array( $rtmedia_options ) ) {
|
324 |
+
foreach ( $rtmedia_options as $option => $value ) {
|
325 |
+
$debug_info[ ucwords( str_replace( '_', ' ', $option ) ) ] = $value;
|
326 |
+
}
|
327 |
+
}
|
328 |
+
|
329 |
$this->debug_info = $debug_info;
|
330 |
}
|
331 |
|
364 |
?>
|
365 |
</tbody>
|
366 |
</table>
|
367 |
+
<div class="rtm-download-debuginfo">
|
368 |
+
<form action="<?php echo admin_url( 'admin.php?page=rtmedia-support#debug' ); ?>" method="post">
|
369 |
+
<?php wp_nonce_field( 'rtmedia-download-debuginfo','download_debuginfo_wpnonce' ); ?>
|
370 |
+
<input type="hidden" name="download_debuginfo" id="download_debuginfo" value="1" />
|
371 |
+
<input type="submit" value="<?php esc_html_e( 'Download Debug Info', 'buddypress-media' ); ?>" class="button button-primary" />
|
372 |
+
</form>
|
373 |
+
</div>
|
374 |
</div><?php
|
375 |
}
|
376 |
|
435 |
public function get_form( $form = '' ) {
|
436 |
//todo: nonce required
|
437 |
if ( empty( $form ) ) {
|
438 |
+
$form = filter_input( INPUT_POST, 'form' . FILTER_SANITIZE_STRING );
|
439 |
$form = isset( $form ) ? $form : 'premium_support';
|
440 |
}
|
441 |
$meta_title = '';
|
534 |
<input type="hidden" name="ip_address" value="<?php echo esc_attr( $remote_addr ); ?>"/>
|
535 |
<input type="hidden" name="server_type" value="<?php echo esc_attr( $server_software ); ?>"/>
|
536 |
<input type="hidden" name="user_agent" value="<?php echo esc_attr( $http_user_agent ); ?>"/>
|
537 |
+
<input type="hidden" name="debuglog_temp_path" id="debuglog_temp_path" />
|
538 |
+
</div>
|
539 |
+
|
540 |
+
<div class="rtm-form-filed clearfix">
|
541 |
+
<label class="bp-media-label"
|
542 |
+
for="subject"><?php esc_html_e( 'Attachement', 'buddypress-media' ); ?></label>
|
543 |
+
<input id="debuglog" class="bp-media-input" type="file" name="debuglog" />
|
544 |
+
<span class="rtm-tooltip">
|
545 |
+
<i class="dashicons dashicons-info rtmicon"></i>
|
546 |
+
<span class="rtm-tip">
|
547 |
+
<?php esc_html_e( 'Allowed file types are : images, documents and texts.', 'buddypress-media' ); ?>
|
548 |
+
</span>
|
549 |
+
</span>
|
550 |
</div>
|
551 |
</div><!-- .submit-bug-box -->
|
552 |
|
659 |
';
|
660 |
}
|
661 |
$message .= '</table>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
$message .= '</body>
|
663 |
</html>';
|
664 |
|
665 |
+
add_filter( 'wp_mail_content_type', array( $this, 'rtmedia_mail_content_type' ) );
|
666 |
+
|
667 |
+
$debuglog_temp_path = sanitize_text_field( $form_data['debuglog_temp_path'] );
|
668 |
+
/* set attachment path for sending into mail */
|
669 |
+
$attachment_file = ( ! empty( $debuglog_temp_path ) ) ? $debuglog_temp_path : '' ;
|
670 |
+
$attachments = array( $attachment_file );
|
671 |
|
672 |
$headers = 'From: ' . $form_data['name'] . ' <' . $form_data['email'] . '>' . "\r\n";
|
673 |
$support_email = 'support@rtcamp.com';
|
674 |
if ( wp_mail( $support_email, '[rtmedia] ' . $mail_type . ' from ' . str_replace( array(
|
675 |
'http://',
|
676 |
'https://',
|
677 |
+
), '', $form_data['website'] ), stripslashes( $message ), $headers, $attachments ) ) {
|
678 |
+
/* delete file after sending it to mail. */
|
679 |
+
if ( ! empty( $attachment_file ) ) {
|
680 |
+
unlink( $attachment_file );
|
681 |
+
}
|
682 |
echo '<div class="rtmedia-success" style="margin:10px 0;">';
|
683 |
if ( 'new_feature' === sanitize_text_field( $form_data['request_type'] ) ) {
|
684 |
echo '<p>' . esc_html__( 'Thank you for your Feedback/Suggestion.', 'buddypress-media' ) . '</p>';
|
701 |
}
|
702 |
die();
|
703 |
}
|
704 |
+
|
705 |
+
/**
|
706 |
+
* Write debug info as a text file and download it.
|
707 |
+
*
|
708 |
+
* @param void
|
709 |
+
*
|
710 |
+
* @return void
|
711 |
+
*/
|
712 |
+
public function download_debuginfo_as_text() {
|
713 |
+
|
714 |
+
header('Content-disposition: attachment; filename=debuginfo.txt');
|
715 |
+
header('Content-type: text/plain');
|
716 |
+
global $wpdb, $wp_version, $bp;
|
717 |
+
$debug_info = array();
|
718 |
+
$debug_info['Home URL'] = esc_url( home_url() );
|
719 |
+
$debug_info['Site URL'] = esc_url( site_url() );
|
720 |
+
$debug_info['PHP'] = esc_html( PHP_VERSION );
|
721 |
+
$debug_info['MYSQL'] = esc_html( $wpdb->db_version() );
|
722 |
+
$debug_info['WordPress'] = esc_html( $wp_version );
|
723 |
+
$debug_info['BuddyPress'] = esc_html( ( isset( $bp->version ) ) ? $bp->version : '-NA-' );
|
724 |
+
$debug_info['rtMedia'] = esc_html( RTMEDIA_VERSION );
|
725 |
+
$debug_info['OS'] = esc_html( PHP_OS );
|
726 |
+
if ( extension_loaded( 'imagick' ) ) {
|
727 |
+
$imagickobj = new Imagick();
|
728 |
+
$imagick = $message = preg_replace( " #((http|https|ftp)://(\S*?\.\S*?))(\s|\;|\)|\]|\[|\{|\}|,|\"|'|:|\<|$|\.\s)#i", "'<a href=\"$1\" target=\"_blank\">$3</a>$4'", $imagickobj->getversion() );
|
729 |
+
} else {
|
730 |
+
$imagick['versionString'] = 'Not Installed';
|
731 |
+
}
|
732 |
+
$debug_info['Imagick'] = $imagick['versionString'];
|
733 |
+
if ( extension_loaded( 'gd' ) ) {
|
734 |
+
$gd = gd_info();
|
735 |
+
} else {
|
736 |
+
$gd['GD Version'] = 'Not Installed';
|
737 |
+
}
|
738 |
+
$debug_info['GD'] = esc_html( $gd['GD Version'] );
|
739 |
+
$debug_info['[php.ini] post_max_size'] = esc_html( ini_get( 'post_max_size' ) );
|
740 |
+
$debug_info['[php.ini] upload_max_filesize'] = esc_html( ini_get( 'upload_max_filesize' ) );
|
741 |
+
$debug_info['[php.ini] memory_limit'] = esc_html( ini_get( 'memory_limit' ) );
|
742 |
+
$active_theme = wp_get_theme();
|
743 |
+
$debug_info['Theme Name'] = esc_html( $active_theme->Name );
|
744 |
+
$debug_info['Theme Version'] = esc_html( $active_theme->Version );
|
745 |
+
$debug_info['Author URL'] = esc_url( $active_theme->{'Author URI'} );
|
746 |
+
$debug_info['Template Overrides'] = implode( ', '. PHP_EOL . str_repeat( ' ', 50 ) , $this->rtmedia_scan_template_files( RTMEDIA_PATH . '/templates/' ) );
|
747 |
+
$rtmedia_options = get_option( 'rtmedia-options' );
|
748 |
+
$rtmedia_options = array_merge( $debug_info, $rtmedia_options );
|
749 |
+
$i=0;
|
750 |
+
if( ! empty( $rtmedia_options ) ) {
|
751 |
+
echo '==============================================================================' . PHP_EOL;
|
752 |
+
echo '================================== Debug Info ================================' . PHP_EOL;
|
753 |
+
echo '==============================================================================' . PHP_EOL . PHP_EOL . PHP_EOL;
|
754 |
+
|
755 |
+
foreach ( $rtmedia_options as $option => $value ) {
|
756 |
+
echo ucwords( str_replace( '_', ' ', $option ) ) . str_repeat( ' ', 50 - strlen($option) ) . wp_strip_all_tags( $value ) . PHP_EOL;
|
757 |
+
}
|
758 |
+
|
759 |
+
readfile("debuginfo.txt");
|
760 |
+
exit();
|
761 |
+
}
|
762 |
+
|
763 |
+
}
|
764 |
+
|
765 |
}
|
766 |
|
767 |
}
|
app/helper/db/RTDBModel.php
CHANGED
@@ -208,7 +208,6 @@ if ( ! class_exists( 'RTDBModel' ) ) {
|
|
208 |
$sql .= $wpdb->prepare( ' LIMIT %d, %d', $offset, $per_page );
|
209 |
|
210 |
}
|
211 |
-
|
212 |
return $wpdb->get_results( $sql ); // @codingStandardsIgnoreLine
|
213 |
}
|
214 |
|
208 |
$sql .= $wpdb->prepare( ' LIMIT %d, %d', $offset, $per_page );
|
209 |
|
210 |
}
|
|
|
211 |
return $wpdb->get_results( $sql ); // @codingStandardsIgnoreLine
|
212 |
}
|
213 |
|
app/helper/rtUploadAttachment.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
|
3 |
+
require_once( $parse_uri[0] . 'wp-load.php' );
|
4 |
+
$data = array();
|
5 |
+
if ( ! empty( $_FILES ) ) {
|
6 |
+
$error = false;
|
7 |
+
$files = array();
|
8 |
+
/* get wp's uploads directory paths and urls. */
|
9 |
+
$wpuploaddir = wp_upload_dir();
|
10 |
+
/* Folder for uploading temporary debug attachment. i.e SITE_ROOT/wp-content/uploads/rtMedia/tmp */
|
11 |
+
$uploaddir = $wpuploaddir['basedir'] . '/rtMedia/tmp/';
|
12 |
+
|
13 |
+
/* If folder is not there, then create it. */
|
14 |
+
if ( ! is_dir( $uploaddir ) ) {
|
15 |
+
if ( ! mkdir( $uploaddir, 0777, true ) ) {
|
16 |
+
die( 'Failed to create folders...' );
|
17 |
+
}
|
18 |
+
}
|
19 |
+
$allowd_type = array( 'jpg', 'jpeg', 'png', 'gif', 'zip', 'doc', 'docx', 'pdf', 'txt' );
|
20 |
+
/* move file to target folder */
|
21 |
+
foreach ( $_FILES as $file ) {
|
22 |
+
if ( $file['size'] <= 2000000 ) {
|
23 |
+
$ext = pathinfo( basename( $file['name'] ), PATHINFO_EXTENSION );
|
24 |
+
if ( in_array( strtolower( $ext ), $allowd_type ) && move_uploaded_file( $file['tmp_name'], $uploaddir . basename( $file['name'] ) ) ) {
|
25 |
+
$files[] = $uploaddir . $file['name'];
|
26 |
+
} else {
|
27 |
+
$error = true;
|
28 |
+
}
|
29 |
+
} else {
|
30 |
+
$size_error = array( 'exceed_size_msg' => esc_html__( 'You can not upload more than 2 MB.', 'buddypress-media' ) );
|
31 |
+
echo json_encode( $size_error );
|
32 |
+
exit();
|
33 |
+
}
|
34 |
+
}
|
35 |
+
|
36 |
+
$data = ( $error ) ? array( 'error' => esc_html__( 'There was an error uploading your files', 'buddypress-media' ) ) : array( 'debug_attachmanet' => $files );
|
37 |
+
|
38 |
+
} else {
|
39 |
+
$data = array( 'success' => esc_html__( 'Form was submitted', 'buddypress-media' ), 'formData' => $_POST );
|
40 |
+
}
|
41 |
+
/* send response as json format */
|
42 |
+
echo json_encode( $data );
|
43 |
+
exit();
|
app/importers/RTMediaMediaSizeImporter.php
CHANGED
@@ -70,7 +70,7 @@ class RTMediaMediaSizeImporter {
|
|
70 |
|
71 |
function add_rtmedia_media_size_import_notice() {
|
72 |
if ( current_user_can( 'manage_options' ) ) {
|
73 |
-
$this->create_notice( '<p><strong>rtMedia</strong>' . esc_html__( ': Database table structure for rtMedia has been updated. Please ', 'buddypress-media' ) . "<a href='" . esc_url( admin_url( 'admin.php?page=rtmedia-migration-media-size-import&force=true' ) ) . "'>" . esc_html__( 'Click Here', 'buddypress-media' ) . '</a>' . esc_html__( 'to import media sizes. ', 'buddypress-media' ) . "<a href='#' onclick='rtmedia_hide_media_size_import_notice()' style='float:right'>" . esc_html__( 'Hide', 'buddypress-media' ) . '</a> </p>' );
|
74 |
?>
|
75 |
<script type="text/javascript">
|
76 |
function rtmedia_hide_media_size_import_notice() {
|
@@ -90,6 +90,7 @@ class RTMediaMediaSizeImporter {
|
|
90 |
echo '<div class="' . esc_attr( $type ) . ' rtmedia-media-size-import-error">'
|
91 |
. wp_kses( $message, array(
|
92 |
'p' => array(),
|
|
|
93 |
'strong' => array()
|
94 |
) )
|
95 |
. '</div>'; // @codingStandardsIgnoreLine
|
70 |
|
71 |
function add_rtmedia_media_size_import_notice() {
|
72 |
if ( current_user_can( 'manage_options' ) ) {
|
73 |
+
$this->create_notice( '<p><strong>rtMedia</strong>' . esc_html__( ': Database table structure for rtMedia has been updated. Please ', 'buddypress-media' ) . "<a href='" . esc_url( admin_url( 'admin.php?page=rtmedia-migration-media-size-import&force=true' ) ) . "'>" . esc_html__( 'Click Here', 'buddypress-media' ) . '</a>' . esc_html__( ' to import media sizes. ', 'buddypress-media' ) . "<a href='#' onclick='rtmedia_hide_media_size_import_notice()' style='float:right'>" . esc_html__( 'Hide', 'buddypress-media' ) . '</a> </p>' );
|
74 |
?>
|
75 |
<script type="text/javascript">
|
76 |
function rtmedia_hide_media_size_import_notice() {
|
90 |
echo '<div class="' . esc_attr( $type ) . ' rtmedia-media-size-import-error">'
|
91 |
. wp_kses( $message, array(
|
92 |
'p' => array(),
|
93 |
+
'a' => array( 'href' => array(), 'onclick' => array(), 'style' => array() ),
|
94 |
'strong' => array()
|
95 |
) )
|
96 |
. '</div>'; // @codingStandardsIgnoreLine
|
app/importers/RTMediaMigration.php
CHANGED
@@ -103,7 +103,7 @@ class RTMediaMigration {
|
|
103 |
$count = intval( $_SESSION['migration_user_album'] );
|
104 |
|
105 |
if ( $this->table_exists( $bp_prefix . 'bp_groups_groupmeta' ) ) {
|
106 |
-
$sql_album_groupcount = $wpdb->prepare( "select count(*) FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='
|
107 |
$_SESSION['migration_group_album'] = $wpdb->get_var( $sql_album_groupcount ); // @codingStandardsIgnoreLine
|
108 |
$count += intval( $_SESSION['migration_group_album'] );
|
109 |
}
|
103 |
$count = intval( $_SESSION['migration_user_album'] );
|
104 |
|
105 |
if ( $this->table_exists( $bp_prefix . 'bp_groups_groupmeta' ) ) {
|
106 |
+
$sql_album_groupcount = $wpdb->prepare( "select count(*) FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='%s'", 'bp_media_default_album' ); // @codingStandardsIgnoreLine
|
107 |
$_SESSION['migration_group_album'] = $wpdb->get_var( $sql_album_groupcount ); // @codingStandardsIgnoreLine
|
108 |
$count += intval( $_SESSION['migration_group_album'] );
|
109 |
}
|
app/main/RTMedia.php
CHANGED
@@ -209,8 +209,33 @@ class RTMedia {
|
|
209 |
}
|
210 |
$this->add_image_sizes();
|
211 |
$this->set_image_quality();
|
|
|
212 |
}
|
213 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
public function set_image_quality() {
|
215 |
add_filter( 'jpeg_quality', array( $this, 'rtmedia_jpeg_quality' ) );
|
216 |
}
|
@@ -911,7 +936,7 @@ class RTMedia {
|
|
911 |
function create_table_error_notice() {
|
912 |
global $rtmedia_error;
|
913 |
$rtmedia_error = true;
|
914 |
-
echo "<div class='error'><p><strong>" . esc_html__( 'rtMedia', 'buddypress-media' ) .
|
915 |
}
|
916 |
|
917 |
function enqueue_scripts_styles() {
|
@@ -996,6 +1021,9 @@ class RTMedia {
|
|
996 |
wp_localize_script( 'rtmedia-main', 'rtmedia_file_extension_error_msg', esc_html__( 'File not supported', 'buddypress-media' ) );
|
997 |
wp_localize_script( 'rtmedia-main', 'rtmedia_more', esc_html__( 'more', 'buddypress-media' ) );
|
998 |
wp_localize_script( 'rtmedia-main', 'rtmedia_less', esc_html__( 'less', 'buddypress-media' ) );
|
|
|
|
|
|
|
999 |
wp_localize_script( 'rtmedia-main', 'rtmedia_delete_uploaded_media', esc_html__( 'This media is uploaded. Are you sure you want to delete this media?', 'buddypress-media' ) );
|
1000 |
wp_localize_script( 'rtmedia-main', 'rtm_wp_version', get_bloginfo( 'version' ) );
|
1001 |
wp_localize_script( 'rtmedia-backbone', 'rMedia_loading_media', RTMEDIA_URL . 'app/assets/admin/img/boxspinner.gif' );
|
209 |
}
|
210 |
$this->add_image_sizes();
|
211 |
$this->set_image_quality();
|
212 |
+
$this->comment_auto_complete();
|
213 |
}
|
214 |
|
215 |
+
/**
|
216 |
+
* add filter that is being given in the buddypress plugin which add the JS and CSS for autocomplete
|
217 |
+
*
|
218 |
+
* More deatils on: http://hookr.io/functions/bp_activity_maybe_load_mentions_scripts/
|
219 |
+
*/
|
220 |
+
public function comment_auto_complete( $rtmedia_options = false, $bp_media_options = false ) {
|
221 |
+
add_filter( 'bp_activity_maybe_load_mentions_scripts', array( $this, 'rtmedia_bp_activity_maybe_load_mentions_scripts_callback' ), 10001, 2 );
|
222 |
+
}
|
223 |
+
|
224 |
+
|
225 |
+
/**
|
226 |
+
* Always set to true when call on any of the Buddypress Pages
|
227 |
+
*
|
228 |
+
* @param bool $load_mentions
|
229 |
+
* @param bool $$mentions_enabled
|
230 |
+
*
|
231 |
+
* @return bool true
|
232 |
+
*/
|
233 |
+
public function rtmedia_bp_activity_maybe_load_mentions_scripts_callback( $load_mentions, $mentions_enabled ) {
|
234 |
+
$load_mentions = true;
|
235 |
+
return $load_mentions;
|
236 |
+
}
|
237 |
+
|
238 |
+
|
239 |
public function set_image_quality() {
|
240 |
add_filter( 'jpeg_quality', array( $this, 'rtmedia_jpeg_quality' ) );
|
241 |
}
|
936 |
function create_table_error_notice() {
|
937 |
global $rtmedia_error;
|
938 |
$rtmedia_error = true;
|
939 |
+
echo "<div class='error'><p><strong>" . esc_html__( 'rtMedia', 'buddypress-media' ) . '</strong>' . esc_html__( ": Can't Create Database table. Please check create table permission.", 'buddypress-media' ) . '</p></div>';
|
940 |
}
|
941 |
|
942 |
function enqueue_scripts_styles() {
|
1021 |
wp_localize_script( 'rtmedia-main', 'rtmedia_file_extension_error_msg', esc_html__( 'File not supported', 'buddypress-media' ) );
|
1022 |
wp_localize_script( 'rtmedia-main', 'rtmedia_more', esc_html__( 'more', 'buddypress-media' ) );
|
1023 |
wp_localize_script( 'rtmedia-main', 'rtmedia_less', esc_html__( 'less', 'buddypress-media' ) );
|
1024 |
+
wp_localize_script( 'rtmedia-main', 'rtmedia_read_more', esc_html__( 'Read more', 'buddypress-media' ) );
|
1025 |
+
wp_localize_script( 'rtmedia-main', 'rtmedia__show_less', esc_html__( 'Show less', 'buddypress-media' ) );
|
1026 |
+
wp_localize_script( 'rtmedia-main', 'rtmedia_activity_text_with_attachment', apply_filters( 'rtmedia_required_activity_text_with_attachment', 'disable' ) );
|
1027 |
wp_localize_script( 'rtmedia-main', 'rtmedia_delete_uploaded_media', esc_html__( 'This media is uploaded. Are you sure you want to delete this media?', 'buddypress-media' ) );
|
1028 |
wp_localize_script( 'rtmedia-main', 'rtm_wp_version', get_bloginfo( 'version' ) );
|
1029 |
wp_localize_script( 'rtmedia-backbone', 'rMedia_loading_media', RTMEDIA_URL . 'app/assets/admin/img/boxspinner.gif' );
|
app/main/controllers/activity/RTMediaBuddyPressActivity.php
CHANGED
@@ -486,95 +486,95 @@ class RTMediaBuddyPressActivity {
|
|
486 |
* @param $obj RTMediaLike
|
487 |
*/
|
488 |
function activity_after_media_like( $obj ) {
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
|
579 |
/**
|
580 |
* Create BuddyPress activity when user comment on media
|
@@ -582,76 +582,76 @@ class RTMediaBuddyPressActivity {
|
|
582 |
* @param $params array
|
583 |
*/
|
584 |
function activity_after_media_comment( $params ) {
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
}
|
656 |
|
657 |
/**
|
@@ -727,7 +727,7 @@ class RTMediaBuddyPressActivity {
|
|
727 |
$bp = buddypress();
|
728 |
|
729 |
// Get the activity details.
|
730 |
-
$activity = bp_activity_get_specific( array( 'activity_ids' => bp_current_action(), 'show_hidden' => true, 'spam' => 'ham_only'
|
731 |
|
732 |
// 404 if activity does not exist
|
733 |
if ( empty( $activity['activities'][0] ) || bp_action_variables() ) {
|
@@ -771,5 +771,4 @@ class RTMediaBuddyPressActivity {
|
|
771 |
return $has_access;
|
772 |
|
773 |
}
|
774 |
-
|
775 |
}
|
486 |
* @param $obj RTMediaLike
|
487 |
*/
|
488 |
function activity_after_media_like( $obj ) {
|
489 |
+
if ( class_exists( 'BuddyPress' ) ) {
|
490 |
+
global $rtmedia_points_media_id;
|
491 |
+
if ( is_a( $obj, 'RTMediaLike' ) && isset( $obj->action_query->id ) ) {
|
492 |
+
$media_id = $obj->action_query->id;
|
493 |
+
} elseif ( ! empty( $rtmedia_points_media_id ) ) {
|
494 |
+
$media_id = $rtmedia_points_media_id;
|
495 |
+
} else {
|
496 |
+
$media_id = false;
|
497 |
+
}
|
498 |
+
|
499 |
+
$media_obj = $obj->media;
|
500 |
+
|
501 |
+
// Proceed only if we have media to process.
|
502 |
+
if ( false !== $media_id && ( 'profile' === $media_obj->context || 'group' === $media_obj->context ) ) {
|
503 |
+
|
504 |
+
$user_id = $obj->interactor;
|
505 |
+
|
506 |
+
// If $obj->increase is true than request is to like the media.
|
507 |
+
if ( $obj->increase ) {
|
508 |
+
|
509 |
+
// Create activity on media like
|
510 |
+
$user = get_userdata( $user_id );
|
511 |
+
$username = '<a href="' . esc_url( get_rtmedia_user_link( $user_id ) ) . '">' . esc_html( $user->display_name ) . '</a>';
|
512 |
+
|
513 |
+
$media_author = $obj->owner;
|
514 |
+
|
515 |
+
$primary_link = get_rtmedia_permalink( $media_id );
|
516 |
+
|
517 |
+
$media_const = 'RTMEDIA_' . strtoupper( $obj->media->media_type ) . '_LABEL';
|
518 |
+
$media_str = '<a href="' . esc_url( $primary_link ) . '">' . esc_html( constant( $media_const ) ) . '</a>';
|
519 |
+
|
520 |
+
if ( 'group' === $media_obj->context ) {
|
521 |
+
$group_data = groups_get_group( array( 'group_id' => $media_obj->context_id ) );
|
522 |
+
$group_name = '<a href="' . esc_url( bp_get_group_permalink( $group_data ) ) . '">' . esc_html( $group_data->name ) . '</a>';
|
523 |
+
$action = sprintf( esc_html__( '%1$s liked a %2$s in the group %3$s', 'buddypress-media' ), $username, $media_str, $group_name );
|
524 |
+
} else {
|
525 |
+
if ( $user_id === $media_author ) {
|
526 |
+
$action = sprintf( esc_html__( '%1$s liked their %2$s', 'buddypress-media' ), $username, $media_str );
|
527 |
+
} else {
|
528 |
+
$media_author_data = get_userdata( $media_author );
|
529 |
+
$media_author_name = '<a href="' . esc_url( get_rtmedia_user_link( $media_author ) ) . '">' . esc_html( $media_author_data->display_name ) . '</a>';
|
530 |
+
$action = sprintf( esc_html__( '%1$s liked %2$s\'s %3$s', 'buddypress-media' ), $username, $media_author_name, $media_str );
|
531 |
+
}
|
532 |
+
}
|
533 |
+
|
534 |
+
$action = apply_filters( 'rtm_bp_like_activity_action', $action, $media_id, $user_id );
|
535 |
+
$primary_link = get_rtmedia_permalink( $media_id );
|
536 |
+
|
537 |
+
// generate activity arguments.
|
538 |
+
$activity_args = array(
|
539 |
+
'user_id' => $user_id,
|
540 |
+
'action' => $action,
|
541 |
+
'type' => 'rtmedia_like_activity',
|
542 |
+
'primary_link' => $primary_link,
|
543 |
+
'item_id' => $media_id,
|
544 |
+
);
|
545 |
+
|
546 |
+
// set activity component
|
547 |
+
if ( 'group' === $media_obj->context || 'profile' === $media_obj->context ) {
|
548 |
+
$activity_args['component'] = $media_obj->context;
|
549 |
+
if ( 'group' === $media_obj->context ) {
|
550 |
+
$activity_args['component'] = 'groups';
|
551 |
+
$activity_args['item_id'] = $media_obj->context_id;
|
552 |
+
}
|
553 |
+
}
|
554 |
+
|
555 |
+
// add BP activity
|
556 |
+
$activity_id = bp_activity_add( $activity_args );
|
557 |
+
|
558 |
+
// Store activity id into user meta for reference
|
559 |
+
//todo user_attribute
|
560 |
+
update_user_meta( $user_id, 'rtm-bp-media-like-activity-' . $media_id, $activity_id );
|
561 |
+
} else {
|
562 |
+
|
563 |
+
$meta_key = 'rtm-bp-media-like-activity-' . $media_id;
|
564 |
+
// Delete activity when user remove his like.
|
565 |
+
//todo user_attribute
|
566 |
+
$activity_id = get_user_meta( $user_id, $meta_key, true );
|
567 |
+
|
568 |
+
if ( ! empty( $activity_id ) ) {
|
569 |
+
if ( bp_activity_delete( array( 'id' => $activity_id ) ) ) {
|
570 |
+
//todo user_attribute
|
571 |
+
delete_user_meta( $user_id, $meta_key );
|
572 |
+
}
|
573 |
+
}
|
574 |
+
}
|
575 |
+
}
|
576 |
+
}
|
577 |
+
}
|
578 |
|
579 |
/**
|
580 |
* Create BuddyPress activity when user comment on media
|
582 |
* @param $params array
|
583 |
*/
|
584 |
function activity_after_media_comment( $params ) {
|
585 |
+
if ( class_exists( 'BuddyPress' ) ) {
|
586 |
+
if ( isset( $params['comment_post_ID'] ) ) {
|
587 |
+
|
588 |
+
// get media details
|
589 |
+
$media_model = new RTMediaModel();
|
590 |
+
$media_obj = $media_model->get( array( 'media_id' => $params['comment_post_ID'] ) );
|
591 |
+
$media_obj = $media_obj[0];
|
592 |
+
|
593 |
+
// only proceed if corresponding media is exist.
|
594 |
+
if ( ! empty( $media_obj ) && ( 'profile' === $media_obj->context || 'group' === $media_obj->context ) ) {
|
595 |
+
|
596 |
+
$media_id = $media_obj->id;
|
597 |
+
|
598 |
+
$user_id = $params['user_id'];
|
599 |
+
$user = get_userdata( $user_id );
|
600 |
+
$username = '<a href="' . esc_url( get_rtmedia_user_link( $user_id ) ) . '">' . esc_html( $user->display_name ) . '</a>';
|
601 |
+
|
602 |
+
$primary_link = get_rtmedia_permalink( $media_id );
|
603 |
+
|
604 |
+
$media_const = 'RTMEDIA_' . strtoupper( $media_obj->media_type ) . '_LABEL';
|
605 |
+
$media_str = '<a href="' . esc_url( $primary_link ) . '">' . constant( $media_const ) . '</a>';
|
606 |
+
|
607 |
+
$media_author = $media_obj->media_author;
|
608 |
+
|
609 |
+
if ( 'group' === $media_obj->context ) {
|
610 |
+
$group_data = groups_get_group( array( 'group_id' => $media_obj->context_id ) );
|
611 |
+
$group_name = '<a href="' . esc_url( bp_get_group_permalink( $group_data ) ) . '">' . esc_html( $group_data->name ) . '</a>';
|
612 |
+
$action = sprintf( esc_html__( '%1$s commented on a %2$s in the group %3$s', 'buddypress-media' ), $username, $media_str, $group_name );
|
613 |
+
} else {
|
614 |
+
if ( $user_id === $media_author ) {
|
615 |
+
$action = sprintf( esc_html__( '%1$s commented on their %2$s', 'buddypress-media' ), $username, $media_str );
|
616 |
+
} else {
|
617 |
+
$media_author_data = get_userdata( $media_author );
|
618 |
+
$media_author_name = '<a href="' . esc_url( get_rtmedia_user_link( $media_author ) ) . '">' . esc_html( $media_author_data->display_name ) . '</a>';
|
619 |
+
$action = sprintf( esc_html__( '%1$s commented on %2$s\'s %3$s', 'buddypress-media' ), $username, $media_author_name, $media_str );
|
620 |
+
}
|
621 |
+
}
|
622 |
+
|
623 |
+
$comment_content = $params['comment_content'];
|
624 |
+
$wp_comment_id = $params['comment_id'];
|
625 |
+
|
626 |
+
// prepare activity arguments
|
627 |
+
$activity_args = array(
|
628 |
+
'user_id' => $user_id,
|
629 |
+
'action' => $action,
|
630 |
+
'content' => $comment_content,
|
631 |
+
'type' => 'rtmedia_comment_activity',
|
632 |
+
'primary_link' => $primary_link,
|
633 |
+
'item_id' => $media_id,
|
634 |
+
'secondary_item_id' => $wp_comment_id,
|
635 |
+
);
|
636 |
+
|
637 |
+
// set activity component
|
638 |
+
if ( 'group' === $media_obj->context || 'profile' === $media_obj->context ) {
|
639 |
+
$activity_args['component'] = $media_obj->context;
|
640 |
+
if ( 'group' === $media_obj->context ) {
|
641 |
+
$activity_args['component'] = 'groups';
|
642 |
+
$activity_args['item_id'] = $media_obj->context_id;
|
643 |
+
}
|
644 |
+
}
|
645 |
+
|
646 |
+
// create BuddyPress activity
|
647 |
+
$activity_id = bp_activity_add( $activity_args );
|
648 |
+
|
649 |
+
// Store activity id into user meta for reference
|
650 |
+
//todo user_attribute
|
651 |
+
update_user_meta( $user_id, 'rtm-bp-media-comment-activity-' . $media_id . '-' . $wp_comment_id, $activity_id );
|
652 |
+
}
|
653 |
+
}
|
654 |
+
}
|
655 |
}
|
656 |
|
657 |
/**
|
727 |
$bp = buddypress();
|
728 |
|
729 |
// Get the activity details.
|
730 |
+
$activity = bp_activity_get_specific( array( 'activity_ids' => bp_current_action(), 'show_hidden' => true, 'spam' => 'ham_only' ) );
|
731 |
|
732 |
// 404 if activity does not exist
|
733 |
if ( empty( $activity['activities'][0] ) || bp_action_variables() ) {
|
771 |
return $has_access;
|
772 |
|
773 |
}
|
|
|
774 |
}
|
app/main/controllers/media/RTMediaComment.php
CHANGED
@@ -42,7 +42,7 @@ class RTMediaComment {
|
|
42 |
global $current_user;
|
43 |
|
44 |
return $current_user->ID;
|
45 |
-
|
46 |
}
|
47 |
|
48 |
/**
|
@@ -57,7 +57,7 @@ class RTMediaComment {
|
|
57 |
|
58 |
return $current_user->user_login;
|
59 |
|
60 |
-
|
61 |
|
62 |
function add( $attr ) {
|
63 |
global $allowedtags;
|
42 |
global $current_user;
|
43 |
|
44 |
return $current_user->ID;
|
45 |
+
|
46 |
}
|
47 |
|
48 |
/**
|
57 |
|
58 |
return $current_user->user_login;
|
59 |
|
60 |
+
}
|
61 |
|
62 |
function add( $attr ) {
|
63 |
global $allowedtags;
|
app/main/controllers/media/RTMediaLike.php
CHANGED
@@ -14,7 +14,9 @@ class RTMediaLike extends RTMediaUserInteraction {
|
|
14 |
|
15 |
function __construct() {
|
16 |
$args = array(
|
17 |
-
'action'
|
|
|
|
|
18 |
'label' => esc_html__( 'Like', 'buddypress-media' ),
|
19 |
'plural' => esc_html__( 'Likes', 'buddypress-media' ),
|
20 |
'undo_label' => esc_html__( 'Unlike', 'buddypress-media' ),
|
@@ -108,10 +110,25 @@ class RTMediaLike extends RTMediaUserInteraction {
|
|
108 |
$actions --;
|
109 |
$return['next'] = apply_filters( 'rtmedia_' . $this->action . '_label_text', $this->label );
|
110 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
if ( $actions < 0 ) {
|
112 |
$actions = 0;
|
113 |
}
|
114 |
|
|
|
|
|
115 |
$return['count'] = $actions;
|
116 |
$this->model->update( array( 'likes' => $actions ), array( 'id' => $this->action_query->id ) );
|
117 |
global $rtmedia_points_media_id;
|
14 |
|
15 |
function __construct() {
|
16 |
$args = array(
|
17 |
+
'action' => 'like',
|
18 |
+
'person_label' => esc_html__( 'person likes this', 'buddypress-media' ),
|
19 |
+
'person_plural_label' => esc_html__( 'people like this', 'buddypress-media' ),
|
20 |
'label' => esc_html__( 'Like', 'buddypress-media' ),
|
21 |
'plural' => esc_html__( 'Likes', 'buddypress-media' ),
|
22 |
'undo_label' => esc_html__( 'Unlike', 'buddypress-media' ),
|
110 |
$actions --;
|
111 |
$return['next'] = apply_filters( 'rtmedia_' . $this->action . '_label_text', $this->label );
|
112 |
}
|
113 |
+
|
114 |
+
$like_html = '<span class="rtmedia-like-counter"></span>';
|
115 |
+
if( $actions > 0 && function_exists( 'rtmedia_who_like_html' ) ) {
|
116 |
+
$like_html = rtmedia_who_like_html( $actions, $this->increase );
|
117 |
+
}
|
118 |
+
|
119 |
+
/* label for "person/people like this" in media popup" */
|
120 |
+
if( 1 === $actions ){
|
121 |
+
$return['person_text'] = apply_filters( 'rtmedia_' . $this->action . '_person_label_text', $like_html );
|
122 |
+
} else {
|
123 |
+
$return['person_text'] = apply_filters( 'rtmedia_' . $this->action . '_person_label_text', $like_html );
|
124 |
+
}
|
125 |
+
|
126 |
if ( $actions < 0 ) {
|
127 |
$actions = 0;
|
128 |
}
|
129 |
|
130 |
+
|
131 |
+
|
132 |
$return['count'] = $actions;
|
133 |
$this->model->update( array( 'likes' => $actions ), array( 'id' => $this->action_query->id ) );
|
134 |
global $rtmedia_points_media_id;
|
app/main/controllers/media/RTMediaLoginPopup.php
CHANGED
@@ -35,7 +35,7 @@ class RTMediaLoginPopup {
|
|
35 |
|
36 |
function rtmedia_add_upload_album_button_popup() {
|
37 |
if ( ! is_user_logged_in() ) {
|
38 |
-
echo '<span><a href="#rtmedia-login-register-modal" class="primary rtmedia-upload-media-link rtmedia-modal-link" id="rtmedia-login-register-modal" title="' .
|
39 |
}
|
40 |
}
|
41 |
|
35 |
|
36 |
function rtmedia_add_upload_album_button_popup() {
|
37 |
if ( ! is_user_logged_in() ) {
|
38 |
+
echo '<span><a href="#rtmedia-login-register-modal" class="primary rtmedia-upload-media-link rtmedia-modal-link" id="rtmedia-login-register-modal" title="' . apply_filters( 'rtm_album_upload_title_label', __( 'Upload Media', 'buddypress-media' ) ) . '"><i class="dashicons dashicons-upload rtmicon"></i>' . apply_filters( 'rtm_album_upload_label', __( 'Upload', 'buddypress-media' ) ) . '</a></span>';
|
39 |
}
|
40 |
}
|
41 |
|
app/main/controllers/template/RTMediaNav.php
CHANGED
@@ -72,14 +72,21 @@ class RTMediaNav {
|
|
72 |
$media_enabled = apply_filters( 'rtmedia_media_enabled_for_current_group', $media_enabled );
|
73 |
|
74 |
// check if current user can view this group
|
75 |
-
$current_group
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
if ( $media_enabled && $is_visible_to_current_user ) {
|
79 |
-
$group_counts
|
80 |
-
$slug
|
81 |
|
82 |
-
if( isset( $bp->version ) && $bp->version > '2.5.3' ){
|
83 |
|
84 |
/*
|
85 |
* As from BuddyPress 2.6, you can't access $bp->bp_options_nav directly.
|
@@ -211,11 +218,11 @@ class RTMediaNav {
|
|
211 |
$albums = '';
|
212 |
//condition to keep "Album" tab active
|
213 |
if ( array_key_exists( 'media_type', $rtmedia_query->query ) && isset( $rtmedia_query->query['media_type'] ) && ( 'album' === $rtmedia_query->query['media_type'] ) ) {
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
|
220 |
if ( is_rtmedia_album_enable() ) {
|
221 |
|
72 |
$media_enabled = apply_filters( 'rtmedia_media_enabled_for_current_group', $media_enabled );
|
73 |
|
74 |
// check if current user can view this group
|
75 |
+
$current_group = groups_get_current_group();
|
76 |
+
/**
|
77 |
+
* remove `$current_group->is_visible` and add `bp_group_is_visible( $current_group )`
|
78 |
+
* reason : In Buddypress 2.7 `is_visible` return false so we can't display `media` tab on group
|
79 |
+
* issue id : http://git.rtcamp.com/rtmedia/rtMedia/issues/119
|
80 |
+
*/
|
81 |
+
|
82 |
+
// $is_visible_to_current_user = $current_group->is_visible;
|
83 |
+
$is_visible_to_current_user = bp_group_is_visible( $current_group );
|
84 |
|
85 |
if ( $media_enabled && $is_visible_to_current_user ) {
|
86 |
+
$group_counts = $this->actual_counts( $bp->groups->current_group->id, 'group' );
|
87 |
+
$slug = apply_filters( 'rtmedia_group_media_tab_slug', RTMEDIA_MEDIA_SLUG );
|
88 |
|
89 |
+
if ( isset( $bp->version ) && $bp->version > '2.5.3' ) {
|
90 |
|
91 |
/*
|
92 |
* As from BuddyPress 2.6, you can't access $bp->bp_options_nav directly.
|
218 |
$albums = '';
|
219 |
//condition to keep "Album" tab active
|
220 |
if ( array_key_exists( 'media_type', $rtmedia_query->query ) && isset( $rtmedia_query->query['media_type'] ) && ( 'album' === $rtmedia_query->query['media_type'] ) ) {
|
221 |
+
$albums = 'current selected';
|
222 |
+
} elseif ( array_key_exists( 'media_type', $rtmedia_query->action_query ) && isset( $rtmedia_query->action_query->media_type ) && ( 'album' === $rtmedia_query->action_query->media_type ) ) {
|
223 |
+
$albums = 'current selected';
|
224 |
+
|
225 |
+
}
|
226 |
|
227 |
if ( is_rtmedia_album_enable() ) {
|
228 |
|
app/main/controllers/template/RTMediaTemplate.php
CHANGED
@@ -81,7 +81,7 @@ class RTMediaTemplate {
|
|
81 |
if ( $rtmedia_interaction && isset( $rtmedia_interaction->context ) && in_array( $rtmedia_interaction->context->type, array(
|
82 |
'profile',
|
83 |
'group',
|
84 |
-
|
85 |
) {
|
86 |
$this->check_return_edit();
|
87 |
$this->check_return_delete();
|
@@ -664,6 +664,10 @@ class RTMediaTemplate {
|
|
664 |
}
|
665 |
|
666 |
if ( ! empty( $comment_activity_id ) ) {
|
|
|
|
|
|
|
|
|
667 |
update_comment_meta( $id, 'activity_id', $comment_activity_id );
|
668 |
}
|
669 |
$_rt_ajax = filter_input( INPUT_POST, 'rtajax', FILTER_SANITIZE_STRING );
|
81 |
if ( $rtmedia_interaction && isset( $rtmedia_interaction->context ) && in_array( $rtmedia_interaction->context->type, array(
|
82 |
'profile',
|
83 |
'group',
|
84 |
+
), true )
|
85 |
) {
|
86 |
$this->check_return_edit();
|
87 |
$this->check_return_delete();
|
664 |
}
|
665 |
|
666 |
if ( ! empty( $comment_activity_id ) ) {
|
667 |
+
$rtmedia_activity_comment = rtmedia_activity_comment( $comment_activity_id );
|
668 |
+
if ( $rtmedia_activity_comment['content'] ) {
|
669 |
+
update_comment_meta( $id, 'activity_comment_content', $rtmedia_activity_comment['content'] );
|
670 |
+
}
|
671 |
update_comment_meta( $id, 'activity_id', $comment_activity_id );
|
672 |
}
|
673 |
$_rt_ajax = filter_input( INPUT_POST, 'rtajax', FILTER_SANITIZE_STRING );
|
app/main/controllers/template/rtmedia-actions.php
CHANGED
@@ -31,7 +31,6 @@ function rtmedia_author_actions() {
|
|
31 |
echo $output; // @codingStandardsIgnoreLine
|
32 |
}
|
33 |
}
|
34 |
-
|
35 |
}
|
36 |
|
37 |
add_action( 'after_rtmedia_action_buttons', 'rtmedia_author_actions' );
|
@@ -73,7 +72,6 @@ function rtmedia_image_editor_content( $type = 'photo' ) {
|
|
73 |
|
74 |
if ( current_user_can( 'edit_posts' ) ) {
|
75 |
include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
|
76 |
-
|
77 |
$nonce = wp_create_nonce( "image_editor-$media_id" );
|
78 |
$modify_button = '<p><input type="button" class="button rtmedia-image-edit" id="imgedit-open-btn-' . esc_attr( $media_id ) . '" onclick="imageEdit.open( \'' . esc_attr( $media_id ) . '\', \'' . esc_attr( $nonce ) . '\' )" value="' . esc_attr__( 'Modify Image', 'buddypress-media' ) . '"> <span class="spinner"></span></p>';
|
79 |
}
|
@@ -146,7 +144,7 @@ function rtmedia_gallery_options() {
|
|
146 |
if ( ! empty( $options ) ) {
|
147 |
$options_start .= '<div class="click-nav rtm-media-options-list" id="rtm-media-options-list">
|
148 |
<div class="no-js">
|
149 |
-
<div class="clicker rtmedia-action-buttons"><i class="dashicons dashicons-admin-generic rtmicon"></i>' .
|
150 |
<ul class="rtm-options">';
|
151 |
|
152 |
foreach ( $options as $action ) {
|
@@ -275,7 +273,6 @@ function rtmedia_item_select() {
|
|
275 |
}
|
276 |
}
|
277 |
}
|
278 |
-
|
279 |
}
|
280 |
|
281 |
add_action( 'rtmedia_before_item', 'rtmedia_item_select' );
|
@@ -301,19 +298,24 @@ add_action( 'rtmedia_query_actions', 'rtmedia_album_merge_action' );
|
|
301 |
* Add upload button
|
302 |
*/
|
303 |
function add_upload_button() {
|
304 |
-
|
305 |
if ( function_exists( 'bp_is_blog_page' ) && ! bp_is_blog_page() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
if ( function_exists( 'bp_is_user' ) && bp_is_user() && function_exists( 'bp_displayed_user_id' ) && bp_displayed_user_id() === get_current_user_id() ) {
|
307 |
-
echo '<span class="primary rtmedia-upload-media-link" id="rtm_show_upload_ui" title="' .
|
308 |
} else {
|
309 |
if ( function_exists( 'bp_is_group' ) && bp_is_group() ) {
|
310 |
if ( can_user_upload_in_group() ) {
|
311 |
-
echo '<span class="rtmedia-upload-media-link primary" id="rtm_show_upload_ui" title="' .
|
312 |
}
|
313 |
}
|
314 |
}
|
315 |
}
|
316 |
-
|
317 |
}
|
318 |
|
319 |
add_action( 'rtmedia_media_gallery_actions', 'add_upload_button', 99 );
|
@@ -329,7 +331,7 @@ function add_music_cover_art( $file_object, $upload_obj ) {
|
|
329 |
|
330 |
$media_obj = new RTMediaMedia();
|
331 |
$media = $media_obj->model->get( array(
|
332 |
-
'id' => $upload_obj->media_ids[0]
|
333 |
) );
|
334 |
|
335 |
}
|
@@ -358,7 +360,6 @@ function rtmedia_link_in_footer() {
|
|
358 |
</div>
|
359 |
<?php
|
360 |
}
|
361 |
-
|
362 |
}
|
363 |
|
364 |
add_action( 'wp_footer', 'rtmedia_link_in_footer' );
|
@@ -413,7 +414,7 @@ function update_group_media_privacy( $group_id ) {
|
|
413 |
if ( ! empty( $group_id ) && function_exists( 'groups_get_group' ) ) {
|
414 |
//get the buddybress group
|
415 |
$group = groups_get_group( array(
|
416 |
-
'group_id' => $group_id
|
417 |
) );
|
418 |
|
419 |
if ( isset( $group->status ) ) {
|
@@ -564,5 +565,265 @@ function rtmedia_add_media_delete_nonce_shortcode() {
|
|
564 |
}
|
565 |
|
566 |
}
|
567 |
-
|
568 |
add_action( 'rtmedia_pre_template', 'rtmedia_add_media_delete_nonce_shortcode' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
echo $output; // @codingStandardsIgnoreLine
|
32 |
}
|
33 |
}
|
|
|
34 |
}
|
35 |
|
36 |
add_action( 'after_rtmedia_action_buttons', 'rtmedia_author_actions' );
|
72 |
|
73 |
if ( current_user_can( 'edit_posts' ) ) {
|
74 |
include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
|
|
|
75 |
$nonce = wp_create_nonce( "image_editor-$media_id" );
|
76 |
$modify_button = '<p><input type="button" class="button rtmedia-image-edit" id="imgedit-open-btn-' . esc_attr( $media_id ) . '" onclick="imageEdit.open( \'' . esc_attr( $media_id ) . '\', \'' . esc_attr( $nonce ) . '\' )" value="' . esc_attr__( 'Modify Image', 'buddypress-media' ) . '"> <span class="spinner"></span></p>';
|
77 |
}
|
144 |
if ( ! empty( $options ) ) {
|
145 |
$options_start .= '<div class="click-nav rtm-media-options-list" id="rtm-media-options-list">
|
146 |
<div class="no-js">
|
147 |
+
<div class="clicker rtmedia-action-buttons"><i class="dashicons dashicons-admin-generic rtmicon"></i>' . apply_filters( 'rtm_gallery_option_label', __( 'Options', 'buddypress-media' ) ) . '</div>
|
148 |
<ul class="rtm-options">';
|
149 |
|
150 |
foreach ( $options as $action ) {
|
273 |
}
|
274 |
}
|
275 |
}
|
|
|
276 |
}
|
277 |
|
278 |
add_action( 'rtmedia_before_item', 'rtmedia_item_select' );
|
298 |
* Add upload button
|
299 |
*/
|
300 |
function add_upload_button() {
|
|
|
301 |
if ( function_exists( 'bp_is_blog_page' ) && ! bp_is_blog_page() ) {
|
302 |
+
/**
|
303 |
+
* Add filter to transfer "Upload" string,
|
304 |
+
* issue: http://git.rtcamp.com/rtmedia/rtMedia/issues/133
|
305 |
+
* By: Yahil
|
306 |
+
*/
|
307 |
+
$upload_string = apply_filters( 'rtmedia_upload_button_string', __( 'Upload', 'buddypress-media' ) );
|
308 |
+
|
309 |
if ( function_exists( 'bp_is_user' ) && bp_is_user() && function_exists( 'bp_displayed_user_id' ) && bp_displayed_user_id() === get_current_user_id() ) {
|
310 |
+
echo '<span class="primary rtmedia-upload-media-link" id="rtm_show_upload_ui" title="' . apply_filters( 'rtm_gallery_upload_title_label', __( 'Upload Media', 'buddypress-media' ) ) . '"><i class="dashicons dashicons-upload rtmicon"></i>' . apply_filters( 'rtm_gallery_upload_label', __( 'Upload', 'buddypress-media' ) ) . '</span>';
|
311 |
} else {
|
312 |
if ( function_exists( 'bp_is_group' ) && bp_is_group() ) {
|
313 |
if ( can_user_upload_in_group() ) {
|
314 |
+
echo '<span class="rtmedia-upload-media-link primary" id="rtm_show_upload_ui" title="' . apply_filters( 'rtm_gallery_upload_title_label', __( 'Upload Media', 'buddypress-media' ) ) . '"><i class="dashicons dashicons-upload rtmicon"></i>' . apply_filters( 'rtm_gallery_upload_label', __( 'Upload', 'buddypress-media' ) ) . '</span>';
|
315 |
}
|
316 |
}
|
317 |
}
|
318 |
}
|
|
|
319 |
}
|
320 |
|
321 |
add_action( 'rtmedia_media_gallery_actions', 'add_upload_button', 99 );
|
331 |
|
332 |
$media_obj = new RTMediaMedia();
|
333 |
$media = $media_obj->model->get( array(
|
334 |
+
'id' => $upload_obj->media_ids[0],
|
335 |
) );
|
336 |
|
337 |
}
|
360 |
</div>
|
361 |
<?php
|
362 |
}
|
|
|
363 |
}
|
364 |
|
365 |
add_action( 'wp_footer', 'rtmedia_link_in_footer' );
|
414 |
if ( ! empty( $group_id ) && function_exists( 'groups_get_group' ) ) {
|
415 |
//get the buddybress group
|
416 |
$group = groups_get_group( array(
|
417 |
+
'group_id' => $group_id,
|
418 |
) );
|
419 |
|
420 |
if ( isset( $group->status ) ) {
|
565 |
}
|
566 |
|
567 |
}
|
|
|
568 |
add_action( 'rtmedia_pre_template', 'rtmedia_add_media_delete_nonce_shortcode' );
|
569 |
+
|
570 |
+
/**
|
571 |
+
* add function to display pagination on single media page with add_filter
|
572 |
+
* By: Yahil
|
573 |
+
*/
|
574 |
+
|
575 |
+
if ( ! function_exists( 'rtmedia_single_media_pagination' ) ) {
|
576 |
+
function rtmedia_single_media_pagination() {
|
577 |
+
$disable = apply_filters( 'rtmedia_single_media_pagination', false );
|
578 |
+
if ( true === $disable ) {
|
579 |
+
return;
|
580 |
+
}
|
581 |
+
if ( rtmedia_id() ) {
|
582 |
+
$model = new RTMediaModel();
|
583 |
+
|
584 |
+
$media = $model->get_media( array(
|
585 |
+
'id' => rtmedia_id(),
|
586 |
+
), 0, 1 );
|
587 |
+
|
588 |
+
if ( 'profile' == $media[0]->context ) {
|
589 |
+
$media = $model->get_media( array(
|
590 |
+
'media_author' => $media[0]->media_author,
|
591 |
+
'context' => $media[0]->context,
|
592 |
+
) );
|
593 |
+
} else if ( 'group' == $media[0]->context ) {
|
594 |
+
$media = $model->get_media( array(
|
595 |
+
'media_author' => $media[0]->media_author,
|
596 |
+
'context' => $media[0]->context,
|
597 |
+
'context_id' => $media[0]->context_id,
|
598 |
+
) );
|
599 |
+
}
|
600 |
+
|
601 |
+
for ( $i = 0; $i < count( $media ); $i++ ) {
|
602 |
+
if ( rtmedia_id() == $media[ $i ]->id ) {
|
603 |
+
if ( 0 != $i ) {
|
604 |
+
$previous = $media[ $i - 1 ]->id;
|
605 |
+
}
|
606 |
+
if ( count( $media ) != $i + 1 ) {
|
607 |
+
$next = $media[ $i + 1 ]->id;
|
608 |
+
}
|
609 |
+
break;
|
610 |
+
}
|
611 |
+
}
|
612 |
+
}
|
613 |
+
|
614 |
+
$html = '';
|
615 |
+
|
616 |
+
$pagination_label = array(
|
617 |
+
'previous_title' => __( 'Previous', 'buddypress-media' ),
|
618 |
+
'previous_label' => __( 'Previous', 'buddypress-media' ),
|
619 |
+
'next_title' => __( 'Next', 'buddypress-media' ),
|
620 |
+
'next_label' => __( 'Next', 'buddypress-media' ),
|
621 |
+
);
|
622 |
+
|
623 |
+
$pagination_label = apply_filters( 'rtmedia_media_pagination_label', $pagination_label );
|
624 |
+
|
625 |
+
if ( isset( $previous ) && $previous ) {
|
626 |
+
$html .= '<div class="previous-pagination"><a href="' . esc_url( get_rtmedia_permalink( $previous ) ) . '" title="' . esc_html( $pagination_label['previous_title'] ) . '">' . esc_html( $pagination_label['previous_label'] ) . '</a></div>';
|
627 |
+
}
|
628 |
+
if ( isset( $next ) && $next ) {
|
629 |
+
$html .= '<div class="next-pagination"><a href="' . esc_url( get_rtmedia_permalink( $next ) ) . '" title="' . esc_html( $pagination_label['next_title'] ) . '">' . esc_html( $pagination_label['next_label'] ) . '</a></div>';
|
630 |
+
}
|
631 |
+
echo $html; // @codingStandardsIgnoreLine
|
632 |
+
}
|
633 |
+
}
|
634 |
+
|
635 |
+
/**
|
636 |
+
* @param $album_id
|
637 |
+
*
|
638 |
+
* @return array
|
639 |
+
*/
|
640 |
+
function rtm_get_album_media_count( $album_id ) {
|
641 |
+
global $rtmedia_query;
|
642 |
+
|
643 |
+
$args = array();
|
644 |
+
if ( isset( $album_id ) && $album_id ) {
|
645 |
+
$args['album_id'] = $album_id;
|
646 |
+
}
|
647 |
+
if ( isset( $rtmedia_query->query['context'] ) && $rtmedia_query->query['context'] ) {
|
648 |
+
$args['context'] = $rtmedia_query->query['context'];
|
649 |
+
}
|
650 |
+
if ( isset( $rtmedia_query->query['context_id'] ) && $rtmedia_query->query['context_id'] ) {
|
651 |
+
$args['context_id'] = $rtmedia_query->query['context_id'];
|
652 |
+
}
|
653 |
+
|
654 |
+
$rtmedia_model = new RTMediaModel();
|
655 |
+
if ( $args ) {
|
656 |
+
$count = $rtmedia_model->get( $args, false, false, 'media_id desc', true );
|
657 |
+
}
|
658 |
+
return $count;
|
659 |
+
}
|
660 |
+
|
661 |
+
/**
|
662 |
+
* HTML markup for displaying Media Count of album in album list gallery
|
663 |
+
*/
|
664 |
+
function rtm_album_media_count() {
|
665 |
+
|
666 |
+
$rtmedia_album_count_status = array(
|
667 |
+
'status' => true,
|
668 |
+
'before_string' => '',
|
669 |
+
'after_string' => '',
|
670 |
+
);
|
671 |
+
|
672 |
+
/**
|
673 |
+
* rtmedia_string_album_count Filter to update album count status, add string before/after count.
|
674 |
+
*
|
675 |
+
* @since 4.8
|
676 |
+
*
|
677 |
+
* @param array $rtmedia_album_count_status status, before_string, after_string
|
678 |
+
*
|
679 |
+
*/
|
680 |
+
$rtmedia_album_count_status = apply_filters( 'rtmedia_string_album_count', $rtmedia_album_count_status );
|
681 |
+
|
682 |
+
if ( isset( $rtmedia_album_count_status ) && $rtmedia_album_count_status['status'] ) {
|
683 |
+
?>
|
684 |
+
<div class="rtmedia-album-media-count" title="<?php echo rtm_get_album_media_count( rtmedia_id() ) . RTMEDIA_MEDIA_LABEL; ?>"><?php echo esc_html( $rtmedia_album_count_status['before_string'] ) . rtm_get_album_media_count( rtmedia_id() ) . esc_html( $rtmedia_album_count_status['after_string'] ) ?></div>
|
685 |
+
<?php
|
686 |
+
}
|
687 |
+
?>
|
688 |
+
<?php
|
689 |
+
}
|
690 |
+
|
691 |
+
add_action( 'rtmedia_after_album_gallery_item', 'rtm_album_media_count' );
|
692 |
+
|
693 |
+
/**
|
694 |
+
* Get the information ( status, expiry date ) of all the installed addons and store in site option
|
695 |
+
*/
|
696 |
+
function rt_check_addon_status() {
|
697 |
+
$addons = apply_filters( 'rtmedia_license_tabs', array() );
|
698 |
+
|
699 |
+
if ( empty( $addons ) ) {
|
700 |
+
return;
|
701 |
+
}
|
702 |
+
|
703 |
+
foreach ( $addons as $addon ) {
|
704 |
+
|
705 |
+
if ( isset( $addon['args'] ) && isset( $addon['args']['addon_id'] ) && ! empty( $addon['args']['addon_id'] ) ){
|
706 |
+
|
707 |
+
$addon_id = $addon['args']['addon_id'];
|
708 |
+
|
709 |
+
// If license key is not present, remove then remove the status from config
|
710 |
+
// This forces the `Deactivate License` to `Activate License`
|
711 |
+
if ( empty( $addon['args']['license_key'] ) ) {
|
712 |
+
delete_option( 'edd_' . $addon_id . '_license_status' );
|
713 |
+
}
|
714 |
+
|
715 |
+
$addon_data = get_option( 'edd_' . $addon_id . '_active' );
|
716 |
+
|
717 |
+
// Remove the license from the addon if black license/input is provided
|
718 |
+
// This allows user to remove the license from the addon
|
719 |
+
if ( ! empty( $addon_data ) && is_object( $addon_data ) && empty( $addon['args']['license_key'] ) ) {
|
720 |
+
if ( isset( $addon_data->success ) && isset( $addon_data->license ) ) {
|
721 |
+
if ( ( isset( $_POST[ 'edd_' . $addon_id . '_license_key' ] ) && '' == $_POST[ 'edd_' . $addon_id . '_license_key' ] ) || '' == $addon_data->success || 'invalid' == $addon_data->license ) {
|
722 |
+
delete_option( 'edd_' . $addon_id . '_license_status' );
|
723 |
+
delete_option( 'edd_' . $addon_id . '_active' );
|
724 |
+
|
725 |
+
}
|
726 |
+
}
|
727 |
+
}
|
728 |
+
|
729 |
+
}
|
730 |
+
|
731 |
+
if ( ! empty( $addon['args']['license_key'] ) && ! empty( $addon['name'] ) && ! empty( $addon['args']['addon_id'] ) ) {
|
732 |
+
|
733 |
+
$license = $addon['args']['license_key'];
|
734 |
+
|
735 |
+
$addon_name = $addon['name'];
|
736 |
+
|
737 |
+
$addon_active = get_option( 'edd_' . $addon_id . '_active' );
|
738 |
+
|
739 |
+
/**
|
740 |
+
* Perform action before addon activation or license update
|
741 |
+
*
|
742 |
+
* @since 4.2
|
743 |
+
*
|
744 |
+
* @param array $addon Array containing the license_key, addon_id
|
745 |
+
* and addon name
|
746 |
+
* @param object|boolean $addon_active Detailed license data of the addon, or boolean
|
747 |
+
* false if data is not present
|
748 |
+
*/
|
749 |
+
do_action( 'rtmedia_before_addon_activate', $addon, $addon_active );
|
750 |
+
|
751 |
+
if ( isset( $addon_active->expires ) && 'lifetime' != $addon_active->expires ) {
|
752 |
+
$now = current_time( 'timestamp' );
|
753 |
+
$expiration = strtotime( $addon_active->expires, current_time( 'timestamp' ) );
|
754 |
+
|
755 |
+
if ( $now > $expiration ) {
|
756 |
+
|
757 |
+
// Get license key information from the store
|
758 |
+
$license_data = rtmedia_activate_addon_license( $addon );
|
759 |
+
if ( $license_data ) {
|
760 |
+
// Store the data in database
|
761 |
+
update_option( 'edd_' . $addon_id . '_active', $license_data );
|
762 |
+
}
|
763 |
+
|
764 |
+
}
|
765 |
+
}
|
766 |
+
|
767 |
+
// Listen for activate button to be clicked
|
768 |
+
|
769 |
+
// Also check if information about the addon in already fetched from the store
|
770 |
+
// If it's already fetched, then don't send the request again for the information
|
771 |
+
|
772 |
+
if ( ! empty( $addon_active ) && ! isset( $_POST[ 'edd_' . $addon_id . '_license_activate' ] ) ) {
|
773 |
+
continue;
|
774 |
+
}
|
775 |
+
|
776 |
+
// Get license key information from the store
|
777 |
+
$license_data = rtmedia_activate_addon_license( $addon );
|
778 |
+
|
779 |
+
if ( $license_data ) {
|
780 |
+
// Store the data in database
|
781 |
+
update_option( 'edd_' . $addon_id . '_active', $license_data );
|
782 |
+
}
|
783 |
+
}// End if().
|
784 |
+
}// End foreach().
|
785 |
+
}
|
786 |
+
|
787 |
+
add_action( 'admin_init', 'rt_check_addon_status' );
|
788 |
+
|
789 |
+
/**
|
790 |
+
* Display admin notices when license is saved
|
791 |
+
*/
|
792 |
+
function rtmedia_addons_admin_notice() {
|
793 |
+
|
794 |
+
$screen = get_current_screen();
|
795 |
+
|
796 |
+
if ( $screen->id === 'rtmedia_page_rtmedia-license' ) {
|
797 |
+
|
798 |
+
if ( isset( $_POST ) && count( $_POST ) > 0 ) { ?>
|
799 |
+
|
800 |
+
<div class="notice notice-success is-dismissible">
|
801 |
+
<p><?php _e('Settings has been saved successfully.', 'buddypress-media'); ?></p>
|
802 |
+
</div>
|
803 |
+
|
804 |
+
<div class="notice notice-error is-dismissible">
|
805 |
+
<p><?php _e('Refresh the page in case if license data is not showing correct.', 'buddypress-media'); ?></p>
|
806 |
+
</div>
|
807 |
+
<?php
|
808 |
+
}
|
809 |
+
}
|
810 |
+
}
|
811 |
+
add_action('admin_notices', 'rtmedia_addons_admin_notice');
|
812 |
+
|
813 |
+
/**
|
814 |
+
* Function to add buddypress language conversion to Media activities.
|
815 |
+
* It allow language conversion for all activity
|
816 |
+
* type rtmedia_update".
|
817 |
+
*/
|
818 |
+
function rtmedia_activity_register_activity_actions_callback() {
|
819 |
+
$bp = buddypress();
|
820 |
+
bp_activity_set_action(
|
821 |
+
$bp->activity->id,
|
822 |
+
'rtmedia_update',
|
823 |
+
__( 'Posted a status update', 'buddypress-media' ),
|
824 |
+
'bp_activity_format_activity_action_activity_update',
|
825 |
+
__( 'Updates', 'buddypress-media' ),
|
826 |
+
array( 'activity', 'group', 'member', 'member_groups' )
|
827 |
+
);
|
828 |
+
}
|
829 |
+
add_action( 'bp_activity_register_activity_actions', 'rtmedia_activity_register_activity_actions_callback' );
|
app/main/controllers/template/rtmedia-filters.php
CHANGED
@@ -282,7 +282,7 @@ function replace_src_with_transcoded_file_url( $html, $rtmedia_media ) {
|
|
282 |
$final_file_url = wp_get_attachment_url( $attachment_id );
|
283 |
}
|
284 |
|
285 |
-
return preg_replace(
|
286 |
|
287 |
}
|
288 |
|
@@ -347,10 +347,10 @@ function replace_aws_img_urls_from_activity( $html, $rtmedia_media ) {
|
|
347 |
}
|
348 |
|
349 |
if ( ! empty( $thumbnail_url ) ) {
|
350 |
-
$html = preg_replace(
|
351 |
}
|
352 |
}
|
353 |
-
}
|
354 |
return $html;
|
355 |
}
|
356 |
|
@@ -391,7 +391,7 @@ function replace_aws_img_urls_from_activities( $content, $activity = '' ) {
|
|
391 |
$url = '';
|
392 |
$is_img = strpos( $content , '<img ' );
|
393 |
|
394 |
-
$search =
|
395 |
preg_match_all( $search , $content, $url );
|
396 |
|
397 |
if ( ! empty( $is_img ) && ! empty( $url ) && ! empty( $url[1] ) ) {
|
@@ -436,10 +436,9 @@ function replace_aws_img_urls_from_activities( $content, $activity = '' ) {
|
|
436 |
}
|
437 |
$image_url = apply_filters( 'rtmedia_filtered_photo_url', $url, $attachment_id );
|
438 |
$content = str_replace( $url, $image_url, $content );
|
439 |
-
}
|
440 |
-
}
|
441 |
-
|
442 |
-
}
|
443 |
return $content;
|
444 |
}
|
445 |
|
@@ -521,67 +520,110 @@ function rtt_restore_og_wp_image_url( $thumbnail_id, $media_type, $media_id ) {
|
|
521 |
add_filter( 'show_custom_album_cover', 'rtt_restore_og_wp_image_url', 100, 3 );
|
522 |
|
523 |
/**
|
524 |
-
*
|
|
|
|
|
|
|
525 |
*
|
526 |
-
* @
|
527 |
*/
|
528 |
-
function
|
529 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
|
531 |
-
|
532 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
}
|
|
|
|
|
|
|
|
|
534 |
|
535 |
-
|
536 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
|
538 |
-
|
539 |
|
540 |
-
|
541 |
|
542 |
-
|
543 |
|
544 |
-
$
|
|
|
|
|
|
|
545 |
|
546 |
-
|
547 |
-
* Check if information about the addon in already fetched from the store
|
548 |
-
* If it's already fetched, then don't send the request again for the information
|
549 |
-
*/
|
550 |
-
if ( ! empty( $addon_active ) ) {
|
551 |
-
continue;
|
552 |
-
}
|
553 |
|
554 |
-
|
555 |
-
|
556 |
|
557 |
-
|
558 |
-
|
559 |
-
$store_url = "https://rtmedia.io/";
|
560 |
-
}
|
561 |
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
'license' => $license,
|
566 |
-
'item_name' => urlencode( $addon_name ), // the name of our product in EDD
|
567 |
-
'url' => home_url(),
|
568 |
-
);
|
569 |
|
570 |
-
|
571 |
-
|
572 |
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
|
578 |
-
|
579 |
-
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
580 |
|
581 |
-
|
582 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
583 |
}
|
584 |
}
|
|
|
|
|
585 |
}
|
|
|
|
|
586 |
|
587 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
$final_file_url = wp_get_attachment_url( $attachment_id );
|
283 |
}
|
284 |
|
285 |
+
return preg_replace( '/src=["]([^"]+)["]/', "src=\"$final_file_url\"", $html );
|
286 |
|
287 |
}
|
288 |
|
347 |
}
|
348 |
|
349 |
if ( ! empty( $thumbnail_url ) ) {
|
350 |
+
$html = preg_replace( '/src=["]([^"]+)["]/', "src=\"$thumbnail_url\"", $html );
|
351 |
}
|
352 |
}
|
353 |
+
}// End if().
|
354 |
return $html;
|
355 |
}
|
356 |
|
391 |
$url = '';
|
392 |
$is_img = strpos( $content , '<img ' );
|
393 |
|
394 |
+
$search = '/<img.+src=["]([^"]+)["]/';
|
395 |
preg_match_all( $search , $content, $url );
|
396 |
|
397 |
if ( ! empty( $is_img ) && ! empty( $url ) && ! empty( $url[1] ) ) {
|
436 |
}
|
437 |
$image_url = apply_filters( 'rtmedia_filtered_photo_url', $url, $attachment_id );
|
438 |
$content = str_replace( $url, $image_url, $content );
|
439 |
+
}// End if().
|
440 |
+
}// End foreach().
|
441 |
+
}// End if().
|
|
|
442 |
return $content;
|
443 |
}
|
444 |
|
520 |
add_filter( 'show_custom_album_cover', 'rtt_restore_og_wp_image_url', 100, 3 );
|
521 |
|
522 |
/**
|
523 |
+
* Function to edit comment link for media
|
524 |
+
*
|
525 |
+
* @param string $link Media comment link
|
526 |
+
* @param object $comment comment data
|
527 |
*
|
528 |
+
* @return string $link media comment link
|
529 |
*/
|
530 |
+
function rt_get_comment_link_callback( $link, $comment ) {
|
531 |
+
$rtmedia_media_id = rtmedia_id( $comment->comment_post_ID );
|
532 |
+
if ( get_post_type( $comment->comment_post_ID ) == 'attachment' && is_admin() && ! empty( $rtmedia_media_id ) ) {
|
533 |
+
$link = esc_url( get_rtmedia_permalink( $rtmedia_media_id ) ) . '#rtmedia_comment_ul';
|
534 |
+
}
|
535 |
+
return $link;
|
536 |
+
}
|
537 |
+
add_filter( 'get_comment_link', 'rt_get_comment_link_callback', 99, 2 );
|
538 |
|
539 |
+
/**
|
540 |
+
* Function to edit attachment for media
|
541 |
+
*
|
542 |
+
* @param string $permalink attachment permalink
|
543 |
+
* @param array $post_id return attachment post id
|
544 |
+
*
|
545 |
+
* @return string attachment post permalink
|
546 |
+
*/
|
547 |
+
function rtmedia_attachment_link_callback( $permalink, $post_id ) {
|
548 |
+
$rtmedia_media_id = rtmedia_id( $post_id );
|
549 |
+
if ( is_admin() && ! empty( $rtmedia_media_id ) ) {
|
550 |
+
$permalink = esc_url( get_rtmedia_permalink( rtmedia_id( $post_id ) ) ) . '#rtmedia_comment_ul';
|
551 |
}
|
552 |
+
return $permalink;
|
553 |
+
}
|
554 |
+
|
555 |
+
add_filter( 'attachment_link', 'rtmedia_attachment_link_callback', 99,2 );
|
556 |
|
557 |
+
/**
|
558 |
+
* [rtmedia_edit_media_on_database]
|
559 |
+
* Update Media details on database while admin edit reported media
|
560 |
+
* @param [Array] $data Image Details
|
561 |
+
* @param [Number] $post_ID Media ID
|
562 |
+
* @return [array] $data
|
563 |
+
*/
|
564 |
+
function rtmedia_edit_media_on_database( $data, $post_ID ) {
|
565 |
|
566 |
+
$post = get_post( $post_ID );
|
567 |
|
568 |
+
if ( $_REQUEST ) {
|
569 |
|
570 |
+
if ( isset( $_REQUEST['postid'] ) && 'image-editor' == $_REQUEST['action'] && 'edit-attachment' == $_REQUEST['context'] ) {
|
571 |
|
572 |
+
$media = new RTMediaModel();
|
573 |
+
$media_available = $media->get_media( array(
|
574 |
+
'media_id' => $_REQUEST['postid'],
|
575 |
+
), 0, 1 );
|
576 |
|
577 |
+
$media_id = $media_available[0]->id;
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
|
579 |
+
if ( ! empty( $media_available ) ) {
|
580 |
+
$rtmedia_filepath_old = rtmedia_image( 'rt_media_activity_image', $media_id, false );
|
581 |
|
582 |
+
if ( isset( $rtmedia_filepath_old ) ) {
|
583 |
+
$is_valid_url = preg_match( "/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i", $rtmedia_filepath_old );
|
|
|
|
|
584 |
|
585 |
+
if ( $is_valid_url && function_exists( 'bp_is_active' ) && bp_is_active( 'activity' ) ) {
|
586 |
+
$thumbnailinfo = wp_get_attachment_image_src( $post_ID, 'rt_media_activity_image' );
|
587 |
+
$activity_id = rtmedia_activity_id( $media_id );
|
|
|
|
|
|
|
|
|
588 |
|
589 |
+
if ( $post_ID && ! empty( $activity_id ) ) {
|
590 |
+
global $wpdb, $bp;
|
591 |
|
592 |
+
if ( ! empty( $bp->activity ) ) {
|
593 |
+
$media->model = new RTMediaModel();
|
594 |
+
$related_media_data = $media->model->get( array( 'activity_id' => $activity_id ) );
|
595 |
+
$related_media = array();
|
596 |
+
foreach ( $related_media_data as $activity_media ) {
|
597 |
+
$related_media[] = $activity_media->id;
|
598 |
+
}
|
599 |
+
$activity_text = bp_activity_get_meta( $activity_id, 'bp_activity_text' );
|
600 |
+
|
601 |
+
$activity = new RTMediaActivity( $related_media, 0, $activity_text );
|
602 |
|
603 |
+
$activity_content_new = $activity->create_activity_html();
|
|
|
604 |
|
605 |
+
$activity_content = str_replace( $rtmedia_filepath_old, wp_get_attachment_url( $post_ID ), $activity_content_new );
|
606 |
+
|
607 |
+
$wpdb->update( $bp->activity->table_name, array( 'content' => $activity_content ), array( 'id' => $activity_id ) );
|
608 |
+
}
|
609 |
+
}
|
610 |
+
}
|
611 |
+
}
|
612 |
+
}
|
613 |
}
|
614 |
}
|
615 |
+
|
616 |
+
return $data;
|
617 |
}
|
618 |
+
add_filter( 'wp_update_attachment_metadata', 'rtmedia_edit_media_on_database', 10, 2 );
|
619 |
+
|
620 |
|
621 |
+
|
622 |
+
function rtmedia_like_html_you_and_more_like_callback( $like_count, $user_like_it ) {
|
623 |
+
if ( $like_count > 1 && $user_like_it ) {
|
624 |
+
/* if login user has like the comment then less from the total count */
|
625 |
+
$like_count --;
|
626 |
+
}
|
627 |
+
return sprintf( '<span class="rtmedia-like-counter">%s</span>', $like_count );
|
628 |
+
}
|
629 |
+
add_filter( 'rtmedia_like_html_you_and_more_like', 'rtmedia_like_html_you_and_more_like_callback', 10, 2 );
|
app/main/controllers/template/rtmedia-functions.php
CHANGED
@@ -132,7 +132,7 @@ function get_rtmedia_title( $id ) {
|
|
132 |
|
133 |
$rtmedia_model = new RTMediaModel();
|
134 |
$title = $rtmedia_model->get( array(
|
135 |
-
'id' => $id
|
136 |
) );
|
137 |
|
138 |
return $title[0]->media_title;
|
@@ -179,7 +179,7 @@ function rtmedia_author_profile_pic( $show_link = true, $echo = true, $author_id
|
|
179 |
'object' => 'user',
|
180 |
'no_grav' => false,
|
181 |
'html' => false,
|
182 |
-
|
183 |
) {
|
184 |
$profile_pic .= bp_core_fetch_avatar( array(
|
185 |
'item_id' => $author_id,
|
@@ -205,7 +205,7 @@ function rtmedia_author_profile_pic( $show_link = true, $echo = true, $author_id
|
|
205 |
} else {
|
206 |
return $profile_pic;
|
207 |
}
|
208 |
-
}
|
209 |
|
210 |
}
|
211 |
|
@@ -300,7 +300,7 @@ function rtmedia_id( $media_id = false ) {
|
|
300 |
if ( $media_id ) {
|
301 |
$model = new RTMediaModel();
|
302 |
$media = $model->get_media( array(
|
303 |
-
'media_id' => $media_id
|
304 |
), 0, 1 );
|
305 |
|
306 |
if ( isset( $media ) && count( $media ) > 0 ) {
|
@@ -330,7 +330,7 @@ function rtmedia_media_id( $id = false ) {
|
|
330 |
if ( $id ) {
|
331 |
$model = new RTMediaModel();
|
332 |
$media = $model->get_media( array(
|
333 |
-
'id' => $id
|
334 |
), 0, 1 );
|
335 |
|
336 |
return $media[0]->media_id;
|
@@ -356,7 +356,7 @@ function rtmedia_media_ext( $id = false ) {
|
|
356 |
if ( $id ) {
|
357 |
$model = new RTMediaModel();
|
358 |
$media = $model->get_media( array(
|
359 |
-
'id' => $id
|
360 |
), 0, 1 );
|
361 |
|
362 |
if ( isset( $media[0] ) ) {
|
@@ -390,7 +390,7 @@ function rtmedia_activity_id( $id = false ) {
|
|
390 |
if ( $id ) {
|
391 |
$model = new RTMediaModel();
|
392 |
$media = $model->get_media( array(
|
393 |
-
'id' => $id
|
394 |
), 0, 1 );
|
395 |
|
396 |
return $media[0]->activity_id;
|
@@ -416,7 +416,7 @@ function rtmedia_type( $id = false ) {
|
|
416 |
if ( $id ) {
|
417 |
$model = new RTMediaModel();
|
418 |
$media = $model->get_media( array(
|
419 |
-
'id' => $id
|
420 |
), 0, 1 );
|
421 |
|
422 |
if ( isset( $media[0] ) && isset( $media[0]->media_type ) ) {
|
@@ -446,7 +446,7 @@ function rtmedia_cover_art( $id = false ) {
|
|
446 |
if ( $id ) {
|
447 |
$model = new RTMediaModel();
|
448 |
$media = $model->get_media( array(
|
449 |
-
'id' => $id
|
450 |
), 0, 1 );
|
451 |
|
452 |
return $media[0]->cover_art;
|
@@ -574,7 +574,7 @@ function rtmedia_image( $size = 'rt_media_thumbnail', $id = false, $recho = true
|
|
574 |
if ( $id ) {
|
575 |
$model = new RTMediaModel();
|
576 |
$media = $model->get_media( array(
|
577 |
-
'id' => $id
|
578 |
), false, false );
|
579 |
|
580 |
if ( isset( $media[0] ) ) {
|
@@ -661,7 +661,7 @@ function rtmedia_image_alt( $id = false, $echo = true ) {
|
|
661 |
if ( $id ) {
|
662 |
$model = new RTMediaModel();
|
663 |
$media = $model->get_media( array(
|
664 |
-
'id' => $id
|
665 |
), false, false );
|
666 |
|
667 |
if ( isset( $media[0] ) ) {
|
@@ -743,7 +743,7 @@ function rtmedia_album_image( $size = 'thumbnail', $id = false ) {
|
|
743 |
} else {
|
744 |
$media = $model->get_media( array(
|
745 |
'album_id' => $id,
|
746 |
-
'media_type' => 'photo'
|
747 |
), 0, 1 );
|
748 |
}
|
749 |
}
|
@@ -783,7 +783,7 @@ function rtmedia_duration( $id = false ) {
|
|
783 |
if ( $id ) {
|
784 |
$model = new RTMediaModel();
|
785 |
$media = $model->get_media( array(
|
786 |
-
'id' => $id
|
787 |
), false, false );
|
788 |
|
789 |
if ( isset( $media[0] ) ) {
|
@@ -1174,12 +1174,15 @@ function rtmedia_comments( $echo = true ) {
|
|
1174 |
$html = '<ul id="rtmedia_comment_ul" class="rtm-comment-list" data-action="' . esc_url( get_rtmedia_permalink( rtmedia_id() ) ) . 'delete-comment/">';
|
1175 |
$comments = get_comments( array(
|
1176 |
'post_id' => $rtmedia_media->media_id,
|
1177 |
-
'order' => 'ASC'
|
1178 |
) );
|
1179 |
$comment_list = '';
|
|
|
|
|
1180 |
|
1181 |
foreach ( $comments as $comment ) {
|
1182 |
-
$comment_list .= rmedia_single_comment( (array) $comment );
|
|
|
1183 |
}
|
1184 |
|
1185 |
if ( ! empty( $comment_list ) ) {
|
@@ -1199,21 +1202,29 @@ function rtmedia_comments( $echo = true ) {
|
|
1199 |
}
|
1200 |
|
1201 |
/**
|
1202 |
-
* Render single comment
|
1203 |
-
*
|
1204 |
-
* @
|
1205 |
-
* @
|
1206 |
-
*
|
1207 |
-
*
|
1208 |
-
*
|
1209 |
-
* @return string
|
1210 |
*/
|
1211 |
-
function rmedia_single_comment( $comment ) {
|
1212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1213 |
global $allowedtags, $rtmedia_media;
|
1214 |
|
1215 |
-
$html = '';
|
1216 |
-
$html .= '<li class="rtmedia-comment">';
|
1217 |
|
1218 |
if ( $comment['user_id'] ) {
|
1219 |
$user_link = "<a href='" . esc_url( get_rtmedia_user_link( $comment['user_id'] ) ) . "' title='" . esc_attr( rtmedia_get_author_name( $comment['user_id'] ) ) . "'>" . esc_html( rtmedia_get_author_name( $comment['user_id'] ) ) . '</a>';
|
@@ -1232,9 +1243,25 @@ function rmedia_single_comment( $comment ) {
|
|
1232 |
$html .= '<span class ="rtmedia-comment-author">' . $user_name . '</span>';
|
1233 |
$html .= '<span class ="rtmedia-comment-date"> ' . apply_filters( 'rtmedia_comment_date_format', rtmedia_convert_date( $comment['comment_date_gmt'] ), $comment ) . '</span>';
|
1234 |
|
1235 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1236 |
|
1237 |
$html .= '<div class="rtmedia-comment-content">' . wpautop( make_clickable( apply_filters( 'bp_get_activity_content', $comment_string ) ) ) . '</div>';
|
|
|
1238 |
|
1239 |
if ( is_rt_admin() || ( isset( $comment['user_id'] ) && ( get_current_user_id() === intval( $comment['user_id'] ) || intval( $rtmedia_media->media_author ) === get_current_user_id() ) ) || apply_filters( 'rtmedia_allow_comment_delete', false ) ) { // show delete button for comment author and admins
|
1240 |
$html .= '<i data-id="' . esc_attr( $comment['comment_ID'] ) . '" class = "rtmedia-delete-comment dashicons dashicons-no-alt rtmicon" title="' . esc_attr__( 'Delete Comment', 'buddypress-media' ) . '"></i>';
|
@@ -1246,6 +1273,8 @@ function rmedia_single_comment( $comment ) {
|
|
1246 |
|
1247 |
}
|
1248 |
|
|
|
|
|
1249 |
/**
|
1250 |
* Get media comment count using media ID
|
1251 |
*
|
@@ -1419,7 +1448,7 @@ function rtmedia_pagination_page_link( $page_no = '' ) {
|
|
1419 |
if ( function_exists( 'bp_get_current_group_slug' ) ) {
|
1420 |
$link .= $site_url . bp_get_groups_root_slug() . '/' . bp_get_current_group_slug() . '/';
|
1421 |
}
|
1422 |
-
}
|
1423 |
$post = get_post( get_post_field( 'post_parent', $rtmedia_query->media->media_id ) );
|
1424 |
|
1425 |
$link .= $site_url . $post->post_name . '/';
|
@@ -1523,7 +1552,10 @@ function rtmedia_get_pagination_values() {
|
|
1523 |
if ( $paged > 2 && $paged > $range + 1 && $showitems < $pages ) {
|
1524 |
$page_url = $page_base_url . '1';
|
1525 |
|
1526 |
-
$rtmedia_media_pages .= "<a class='rtmedia-page-link' data-page-type='page' data-page='1' href='" . esc_url( $page_url ) . "'>1</a
|
|
|
|
|
|
|
1527 |
}
|
1528 |
|
1529 |
for ( $i = 1; $i <= $pages; $i ++ ) {
|
@@ -1537,7 +1569,11 @@ function rtmedia_get_pagination_values() {
|
|
1537 |
if ( $paged < $pages - 1 && $paged + $range - 1 < $pages && $showitems < $pages ) {
|
1538 |
$page_url = $page_base_url . $pages;
|
1539 |
|
1540 |
-
|
|
|
|
|
|
|
|
|
1541 |
}
|
1542 |
|
1543 |
if ( $paged < $pages && $showitems < $pages ) {
|
@@ -1547,7 +1583,7 @@ function rtmedia_get_pagination_values() {
|
|
1547 |
}
|
1548 |
|
1549 |
$rtmedia_media_pages .= "</div></div>\n";
|
1550 |
-
}
|
1551 |
|
1552 |
return $rtmedia_media_pages;
|
1553 |
|
@@ -1639,7 +1675,7 @@ function is_rtmedia_album( $album_id = false ) {
|
|
1639 |
if ( $album_id ) {
|
1640 |
$rtmedia_model = new RTMediaModel();
|
1641 |
$media = $rtmedia_model->get( array(
|
1642 |
-
'id' => $album_id
|
1643 |
) );
|
1644 |
|
1645 |
if ( is_array( $media ) && isset( $media[0] ) && isset( $media[0]->media_type ) && 'album' === $media[0]->media_type ) {
|
@@ -1713,14 +1749,14 @@ function update_activity_after_thumb_set( $id ) {
|
|
1713 |
$model = new RTMediaModel();
|
1714 |
$media_obj = new RTMediaMedia();
|
1715 |
$media = $model->get( array(
|
1716 |
-
'id' => $id
|
1717 |
) );
|
1718 |
$privacy = $media[0]->privacy;
|
1719 |
$activity_id = rtmedia_activity_id( $id );
|
1720 |
|
1721 |
if ( ! empty( $activity_id ) ) {
|
1722 |
$same_medias = $media_obj->model->get( array(
|
1723 |
-
'activity_id' => $activity_id
|
1724 |
) );
|
1725 |
$update_activity_media = array();
|
1726 |
|
@@ -1737,7 +1773,7 @@ function update_activity_after_thumb_set( $id ) {
|
|
1737 |
if ( ! empty( $activity_old_content ) ) {
|
1738 |
// get old activity content and save in activity meta
|
1739 |
$activity_get = bp_activity_get_specific( array(
|
1740 |
-
'activity_ids' => $activity_id
|
1741 |
) );
|
1742 |
$activity = $activity_get['activities'][0];
|
1743 |
$activity_body = $activity->content;
|
@@ -1758,10 +1794,10 @@ function update_activity_after_thumb_set( $id ) {
|
|
1758 |
$wpdb->update( $bp->activity->table_name, array(
|
1759 |
'type' => 'rtmedia_update',
|
1760 |
'content' => $obj_activity->create_activity_html(),
|
1761 |
-
|
1762 |
-
'id' => $activity_id
|
1763 |
) );
|
1764 |
-
}
|
1765 |
|
1766 |
}
|
1767 |
|
@@ -1817,7 +1853,7 @@ function rtmedia_comment_form() {
|
|
1817 |
if ( is_user_logged_in() ) {
|
1818 |
?>
|
1819 |
<form method="post" id="rt_media_comment_form" class="rt_media_comment_form" action="<?php echo esc_url( get_rtmedia_permalink( rtmedia_id() ) ); ?>comment/">
|
1820 |
-
<textarea style="width:100%" placeholder="<?php esc_attr_e( 'Type Comment...', 'buddypress-media' ); ?>" name="comment_content" id="comment_content"></textarea>
|
1821 |
<input type="submit" id="rt_media_comment_submit" class="rt_media_comment_submit" value="<?php esc_attr_e( 'Comment', 'buddypress-media' ); ?>">
|
1822 |
<?php RTMediaComment::comment_nonce_generator(); ?>
|
1823 |
</form>
|
@@ -1837,7 +1873,7 @@ function rtmedia_get_cover_art_src( $id ) {
|
|
1837 |
|
1838 |
$model = new RTMediaModel();
|
1839 |
$media = $model->get( array(
|
1840 |
-
'id' => $id
|
1841 |
) );
|
1842 |
$cover_art = $media[0]->cover_art;
|
1843 |
|
@@ -2074,7 +2110,7 @@ function rtmedia_global_album_list( $selected_album_id = false ) {
|
|
2074 |
|
2075 |
$option = null;
|
2076 |
$album_objects = $model->get_media( array(
|
2077 |
-
'id' => $global_albums
|
2078 |
), false, false );
|
2079 |
|
2080 |
if ( $album_objects ) {
|
@@ -2627,7 +2663,7 @@ function get_rtmedia_like( $media_id = false ) {
|
|
2627 |
|
2628 |
$mediamodel = new RTMediaModel();
|
2629 |
$actions = $mediamodel->get( array(
|
2630 |
-
'id' => rtmedia_id( $media_id )
|
2631 |
) );
|
2632 |
|
2633 |
if ( isset( $actions[0]->likes ) ) {
|
@@ -2660,13 +2696,91 @@ function show_rtmedia_like_counts() {
|
|
2660 |
}
|
2661 |
?>
|
2662 |
<div class='rtmedia-like-info <?php echo $class; ?>'>
|
2663 |
-
<i class="rtmicon-thumbs-up rtmicon-fw"></i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2664 |
</div>
|
2665 |
<?php
|
2666 |
}
|
2667 |
|
2668 |
}
|
2669 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2670 |
/**
|
2671 |
* Get music cover art
|
2672 |
*
|
@@ -2703,9 +2817,9 @@ function rtm_get_music_cover_art( $media_object ) {
|
|
2703 |
|
2704 |
if ( is_array( $thumb_upload_info ) && ! empty( $thumb_upload_info['url'] ) ) {
|
2705 |
$media_obj->model->update( array(
|
2706 |
-
'cover_art' => $thumb_upload_info['url']
|
2707 |
-
|
2708 |
-
'id' => $id
|
2709 |
) );
|
2710 |
|
2711 |
return $thumb_upload_info['url'];
|
@@ -2713,9 +2827,9 @@ function rtm_get_music_cover_art( $media_object ) {
|
|
2713 |
}
|
2714 |
|
2715 |
$media_obj->model->update( array(
|
2716 |
-
'cover_art' => '-1'
|
2717 |
-
|
2718 |
-
'id' => $id
|
2719 |
) );
|
2720 |
|
2721 |
return false;
|
@@ -2735,7 +2849,6 @@ if ( ! function_exists( 'get_music_cover_art' ) ) {
|
|
2735 |
return false;
|
2736 |
|
2737 |
}
|
2738 |
-
|
2739 |
}
|
2740 |
|
2741 |
/**
|
@@ -2749,7 +2862,7 @@ function get_rtmedia_privacy_symbol( $rtmedia_id = false ) {
|
|
2749 |
|
2750 |
$mediamodel = new RTMediaModel();
|
2751 |
$actions = $mediamodel->get( array(
|
2752 |
-
'id' => rtmedia_id( $rtmedia_id )
|
2753 |
) );
|
2754 |
$privacy = '';
|
2755 |
|
@@ -2833,7 +2946,7 @@ function rtmedia_convert_date( $_date ) {
|
|
2833 |
$length = array( 1, 60, 3600, 86400 );
|
2834 |
$ago_text = esc_html__( '%s ago ', 'buddypress-media' );
|
2835 |
|
2836 |
-
for ( $i = sizeof( $length ) - 1; ( $i >= 0 ) && ( ( $no = $diff / $length[ $i ] ) <= 1 ); $i -- )
|
2837 |
|
2838 |
if ( $i < 0 ) {
|
2839 |
$i = 0;
|
@@ -3319,7 +3432,7 @@ function rtm_get_server_var( $server_key, $filter_type = 'FILTER_SANITIZE_STRING
|
|
3319 |
|
3320 |
if ( function_exists( 'filter_input' ) && filter_has_var( INPUT_SERVER, $server_key ) ) {
|
3321 |
$server_val = filter_input( INPUT_SERVER, $server_key, constant( $filter_type ) );
|
3322 |
-
} elseif( isset( $_SERVER[ $server_key ] ) ) {
|
3323 |
$server_val = $_SERVER[ $server_key ];
|
3324 |
}
|
3325 |
|
@@ -3345,3 +3458,88 @@ function rtt_is_video_exists( $medias, $media_type = 'mp4' ) {
|
|
3345 |
return $medias[ $media_type ][0];
|
3346 |
}
|
3347 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
|
133 |
$rtmedia_model = new RTMediaModel();
|
134 |
$title = $rtmedia_model->get( array(
|
135 |
+
'id' => $id,
|
136 |
) );
|
137 |
|
138 |
return $title[0]->media_title;
|
179 |
'object' => 'user',
|
180 |
'no_grav' => false,
|
181 |
'html' => false,
|
182 |
+
) ) !== bp_core_avatar_default()
|
183 |
) {
|
184 |
$profile_pic .= bp_core_fetch_avatar( array(
|
185 |
'item_id' => $author_id,
|
205 |
} else {
|
206 |
return $profile_pic;
|
207 |
}
|
208 |
+
}// End if().
|
209 |
|
210 |
}
|
211 |
|
300 |
if ( $media_id ) {
|
301 |
$model = new RTMediaModel();
|
302 |
$media = $model->get_media( array(
|
303 |
+
'media_id' => $media_id,
|
304 |
), 0, 1 );
|
305 |
|
306 |
if ( isset( $media ) && count( $media ) > 0 ) {
|
330 |
if ( $id ) {
|
331 |
$model = new RTMediaModel();
|
332 |
$media = $model->get_media( array(
|
333 |
+
'id' => $id,
|
334 |
), 0, 1 );
|
335 |
|
336 |
return $media[0]->media_id;
|
356 |
if ( $id ) {
|
357 |
$model = new RTMediaModel();
|
358 |
$media = $model->get_media( array(
|
359 |
+
'id' => $id,
|
360 |
), 0, 1 );
|
361 |
|
362 |
if ( isset( $media[0] ) ) {
|
390 |
if ( $id ) {
|
391 |
$model = new RTMediaModel();
|
392 |
$media = $model->get_media( array(
|
393 |
+
'id' => $id,
|
394 |
), 0, 1 );
|
395 |
|
396 |
return $media[0]->activity_id;
|
416 |
if ( $id ) {
|
417 |
$model = new RTMediaModel();
|
418 |
$media = $model->get_media( array(
|
419 |
+
'id' => $id,
|
420 |
), 0, 1 );
|
421 |
|
422 |
if ( isset( $media[0] ) && isset( $media[0]->media_type ) ) {
|
446 |
if ( $id ) {
|
447 |
$model = new RTMediaModel();
|
448 |
$media = $model->get_media( array(
|
449 |
+
'id' => $id,
|
450 |
), 0, 1 );
|
451 |
|
452 |
return $media[0]->cover_art;
|
574 |
if ( $id ) {
|
575 |
$model = new RTMediaModel();
|
576 |
$media = $model->get_media( array(
|
577 |
+
'id' => $id,
|
578 |
), false, false );
|
579 |
|
580 |
if ( isset( $media[0] ) ) {
|
661 |
if ( $id ) {
|
662 |
$model = new RTMediaModel();
|
663 |
$media = $model->get_media( array(
|
664 |
+
'id' => $id,
|
665 |
), false, false );
|
666 |
|
667 |
if ( isset( $media[0] ) ) {
|
743 |
} else {
|
744 |
$media = $model->get_media( array(
|
745 |
'album_id' => $id,
|
746 |
+
'media_type' => 'photo',
|
747 |
), 0, 1 );
|
748 |
}
|
749 |
}
|
783 |
if ( $id ) {
|
784 |
$model = new RTMediaModel();
|
785 |
$media = $model->get_media( array(
|
786 |
+
'id' => $id,
|
787 |
), false, false );
|
788 |
|
789 |
if ( isset( $media[0] ) ) {
|
1174 |
$html = '<ul id="rtmedia_comment_ul" class="rtm-comment-list" data-action="' . esc_url( get_rtmedia_permalink( rtmedia_id() ) ) . 'delete-comment/">';
|
1175 |
$comments = get_comments( array(
|
1176 |
'post_id' => $rtmedia_media->media_id,
|
1177 |
+
'order' => 'ASC',
|
1178 |
) );
|
1179 |
$comment_list = '';
|
1180 |
+
$count = count( $comments );
|
1181 |
+
$i = 0;
|
1182 |
|
1183 |
foreach ( $comments as $comment ) {
|
1184 |
+
$comment_list .= rmedia_single_comment( (array) $comment, $count, $i );
|
1185 |
+
$i++;
|
1186 |
}
|
1187 |
|
1188 |
if ( ! empty( $comment_list ) ) {
|
1202 |
}
|
1203 |
|
1204 |
/**
|
1205 |
+
* Render single comment,
|
1206 |
+
* And display show all comment link to display all comment
|
1207 |
+
* @param [array] $comment [comment]
|
1208 |
+
* @param [int] $count [default false other ways comment count]
|
1209 |
+
* @param [int] $i [default false other ways increment with loop]
|
1210 |
+
* By: Yahil
|
|
|
|
|
1211 |
*/
|
1212 |
+
function rmedia_single_comment( $comment, $count = false, $i = false ) {
|
1213 |
|
1214 |
+
$html = '';
|
1215 |
+
$class = '';
|
1216 |
+
if ( isset( $count ) && $count ) {
|
1217 |
+
$hide = $count - 5;
|
1218 |
+
if ( $i < $hide ) {
|
1219 |
+
$class = 'hide';
|
1220 |
+
if ( 0 == $i ) {
|
1221 |
+
echo '<div class="rtmedia-like-info"><span id="rtmedia_show_all_comment"> ' . esc_html( 'Show all ' . $count . ' comments', 'rtmedia' ) . ' </span></div>';
|
1222 |
+
}
|
1223 |
+
}
|
1224 |
+
}
|
1225 |
global $allowedtags, $rtmedia_media;
|
1226 |
|
1227 |
+
$html .= '<li class="rtmedia-comment ' . $class . ' ">';
|
|
|
1228 |
|
1229 |
if ( $comment['user_id'] ) {
|
1230 |
$user_link = "<a href='" . esc_url( get_rtmedia_user_link( $comment['user_id'] ) ) . "' title='" . esc_attr( rtmedia_get_author_name( $comment['user_id'] ) ) . "'>" . esc_html( rtmedia_get_author_name( $comment['user_id'] ) ) . '</a>';
|
1243 |
$html .= '<span class ="rtmedia-comment-author">' . $user_name . '</span>';
|
1244 |
$html .= '<span class ="rtmedia-comment-date"> ' . apply_filters( 'rtmedia_comment_date_format', rtmedia_convert_date( $comment['comment_date_gmt'] ), $comment ) . '</span>';
|
1245 |
|
1246 |
+
$comment_content = $comment['comment_content'];
|
1247 |
+
$activity_comment_content = get_comment_meta( $comment['comment_ID'], 'activity_comment_content', true );
|
1248 |
+
if ( empty( $activity_comment_content ) ) {
|
1249 |
+
$activity_id = (int) get_comment_meta( $comment['comment_ID'], 'activity_id', true );
|
1250 |
+
if ( $activity_id ) {
|
1251 |
+
$rtmedia_activity_comment = rtmedia_activity_comment( $activity_id );
|
1252 |
+
if ( $rtmedia_activity_comment['content'] ) {
|
1253 |
+
$comment_content = $rtmedia_activity_comment['content'];
|
1254 |
+
update_comment_meta( $comment['comment_ID'], 'activity_comment_content', $rtmedia_activity_comment['content'] );
|
1255 |
+
}
|
1256 |
+
}
|
1257 |
+
} else {
|
1258 |
+
$comment_content = $activity_comment_content;
|
1259 |
+
}
|
1260 |
+
|
1261 |
+
$comment_string = wp_kses( $comment_content, $allowedtags );
|
1262 |
|
1263 |
$html .= '<div class="rtmedia-comment-content">' . wpautop( make_clickable( apply_filters( 'bp_get_activity_content', $comment_string ) ) ) . '</div>';
|
1264 |
+
$html .= '<div class="rtmedia-comment-extra">' . apply_filters( 'rtmedia_comment_extra', '', $comment ) . '</div>';
|
1265 |
|
1266 |
if ( is_rt_admin() || ( isset( $comment['user_id'] ) && ( get_current_user_id() === intval( $comment['user_id'] ) || intval( $rtmedia_media->media_author ) === get_current_user_id() ) ) || apply_filters( 'rtmedia_allow_comment_delete', false ) ) { // show delete button for comment author and admins
|
1267 |
$html .= '<i data-id="' . esc_attr( $comment['comment_ID'] ) . '" class = "rtmedia-delete-comment dashicons dashicons-no-alt rtmicon" title="' . esc_attr__( 'Delete Comment', 'buddypress-media' ) . '"></i>';
|
1273 |
|
1274 |
}
|
1275 |
|
1276 |
+
|
1277 |
+
|
1278 |
/**
|
1279 |
* Get media comment count using media ID
|
1280 |
*
|
1448 |
if ( function_exists( 'bp_get_current_group_slug' ) ) {
|
1449 |
$link .= $site_url . bp_get_groups_root_slug() . '/' . bp_get_current_group_slug() . '/';
|
1450 |
}
|
1451 |
+
} elseif ( isset( $rtmedia_query->media->media_id ) ) {
|
1452 |
$post = get_post( get_post_field( 'post_parent', $rtmedia_query->media->media_id ) );
|
1453 |
|
1454 |
$link .= $site_url . $post->post_name . '/';
|
1552 |
if ( $paged > 2 && $paged > $range + 1 && $showitems < $pages ) {
|
1553 |
$page_url = $page_base_url . '1';
|
1554 |
|
1555 |
+
$rtmedia_media_pages .= "<a class='rtmedia-page-link' data-page-type='page' data-page='1' href='" . esc_url( $page_url ) . "'>1</a>";
|
1556 |
+
if ( $paged > 3 ) {
|
1557 |
+
$rtmedia_media_pages .= '<span>...</span>';
|
1558 |
+
}
|
1559 |
}
|
1560 |
|
1561 |
for ( $i = 1; $i <= $pages; $i ++ ) {
|
1569 |
if ( $paged < $pages - 1 && $paged + $range - 1 < $pages && $showitems < $pages ) {
|
1570 |
$page_url = $page_base_url . $pages;
|
1571 |
|
1572 |
+
if ( $paged + 2 < $pages ) {
|
1573 |
+
$rtmedia_media_pages .= '<span>...</span>';
|
1574 |
+
}
|
1575 |
+
|
1576 |
+
$rtmedia_media_pages .= "<a class='rtmedia-page-link' data-page-type='page' data-page='" . esc_attr( $pages ) . "' href='" . esc_url( $page_url ) . "'>" . esc_html( $pages ) . '</a>';
|
1577 |
}
|
1578 |
|
1579 |
if ( $paged < $pages && $showitems < $pages ) {
|
1583 |
}
|
1584 |
|
1585 |
$rtmedia_media_pages .= "</div></div>\n";
|
1586 |
+
}// End if().
|
1587 |
|
1588 |
return $rtmedia_media_pages;
|
1589 |
|
1675 |
if ( $album_id ) {
|
1676 |
$rtmedia_model = new RTMediaModel();
|
1677 |
$media = $rtmedia_model->get( array(
|
1678 |
+
'id' => $album_id,
|
1679 |
) );
|
1680 |
|
1681 |
if ( is_array( $media ) && isset( $media[0] ) && isset( $media[0]->media_type ) && 'album' === $media[0]->media_type ) {
|
1749 |
$model = new RTMediaModel();
|
1750 |
$media_obj = new RTMediaMedia();
|
1751 |
$media = $model->get( array(
|
1752 |
+
'id' => $id,
|
1753 |
) );
|
1754 |
$privacy = $media[0]->privacy;
|
1755 |
$activity_id = rtmedia_activity_id( $id );
|
1756 |
|
1757 |
if ( ! empty( $activity_id ) ) {
|
1758 |
$same_medias = $media_obj->model->get( array(
|
1759 |
+
'activity_id' => $activity_id,
|
1760 |
) );
|
1761 |
$update_activity_media = array();
|
1762 |
|
1773 |
if ( ! empty( $activity_old_content ) ) {
|
1774 |
// get old activity content and save in activity meta
|
1775 |
$activity_get = bp_activity_get_specific( array(
|
1776 |
+
'activity_ids' => $activity_id,
|
1777 |
) );
|
1778 |
$activity = $activity_get['activities'][0];
|
1779 |
$activity_body = $activity->content;
|
1794 |
$wpdb->update( $bp->activity->table_name, array(
|
1795 |
'type' => 'rtmedia_update',
|
1796 |
'content' => $obj_activity->create_activity_html(),
|
1797 |
+
), array(
|
1798 |
+
'id' => $activity_id,
|
1799 |
) );
|
1800 |
+
}// End if().
|
1801 |
|
1802 |
}
|
1803 |
|
1853 |
if ( is_user_logged_in() ) {
|
1854 |
?>
|
1855 |
<form method="post" id="rt_media_comment_form" class="rt_media_comment_form" action="<?php echo esc_url( get_rtmedia_permalink( rtmedia_id() ) ); ?>comment/">
|
1856 |
+
<textarea style="width:100%" placeholder="<?php esc_attr_e( 'Type Comment...', 'buddypress-media' ); ?>" name="comment_content" id="comment_content" class="bp-suggestions ac-input"></textarea>
|
1857 |
<input type="submit" id="rt_media_comment_submit" class="rt_media_comment_submit" value="<?php esc_attr_e( 'Comment', 'buddypress-media' ); ?>">
|
1858 |
<?php RTMediaComment::comment_nonce_generator(); ?>
|
1859 |
</form>
|
1873 |
|
1874 |
$model = new RTMediaModel();
|
1875 |
$media = $model->get( array(
|
1876 |
+
'id' => $id,
|
1877 |
) );
|
1878 |
$cover_art = $media[0]->cover_art;
|
1879 |
|
2110 |
|
2111 |
$option = null;
|
2112 |
$album_objects = $model->get_media( array(
|
2113 |
+
'id' => $global_albums,
|
2114 |
), false, false );
|
2115 |
|
2116 |
if ( $album_objects ) {
|
2663 |
|
2664 |
$mediamodel = new RTMediaModel();
|
2665 |
$actions = $mediamodel->get( array(
|
2666 |
+
'id' => rtmedia_id( $media_id ),
|
2667 |
) );
|
2668 |
|
2669 |
if ( isset( $actions[0]->likes ) ) {
|
2696 |
}
|
2697 |
?>
|
2698 |
<div class='rtmedia-like-info <?php echo $class; ?>'>
|
2699 |
+
<i class="rtmicon-thumbs-up rtmicon-fw"></i>
|
2700 |
+
<span class="rtmedia-like-counter-wrap">
|
2701 |
+
<?php
|
2702 |
+
if ( class_exists( 'RTMediaLike' ) && function_exists( 'rtmedia_who_like_html' ) ) {
|
2703 |
+
$rtmedialike = new RTMediaLike();
|
2704 |
+
echo rtmedia_who_like_html( $count, $rtmedialike->is_liked( rtmedia_id() ) );
|
2705 |
+
}
|
2706 |
+
?>
|
2707 |
+
</span>
|
2708 |
+
<?php
|
2709 |
+
?>
|
2710 |
</div>
|
2711 |
<?php
|
2712 |
}
|
2713 |
|
2714 |
}
|
2715 |
|
2716 |
+
|
2717 |
+
|
2718 |
+
/**
|
2719 |
+
* Print rtmedia who like html
|
2720 |
+
*
|
2721 |
+
* @param int $like_count ( Total like Count )
|
2722 |
+
* @param bool|string $user_like_it ( login user like it or not )
|
2723 |
+
*
|
2724 |
+
* @return string HTML
|
2725 |
+
*/
|
2726 |
+
if( ! function_exists( 'rtmedia_who_like_html' ) ){
|
2727 |
+
function rtmedia_who_like_html( $like_count, $user_like_it ){
|
2728 |
+
$like_count = ( $like_count ) ? $like_count : false;
|
2729 |
+
$user_like_it = ( $user_like_it ) ? true : false;
|
2730 |
+
$like_count_new = $like_count;
|
2731 |
+
$html = "";
|
2732 |
+
if ( $like_count == 1 && $user_like_it ) {
|
2733 |
+
/**
|
2734 |
+
* rtmedia you like text
|
2735 |
+
* @param $html TEXT
|
2736 |
+
* @param int $like_count Total Like
|
2737 |
+
* @param int $user_like_it User Like it or Not
|
2738 |
+
* @return html TEXT to display
|
2739 |
+
*/
|
2740 |
+
$html = apply_filters( 'rtmedia_like_html_you_only_like', esc_html__( 'You like this', 'buddypress-media' ), $like_count, $user_like_it );
|
2741 |
+
} elseif ( $like_count ) {
|
2742 |
+
if ( $like_count > 1 && $user_like_it ) {
|
2743 |
+
/**
|
2744 |
+
* rtmedia you and
|
2745 |
+
* @param $html TEXT
|
2746 |
+
* @param int $like_count Total Like
|
2747 |
+
* @param int $user_like_it User Like it or Not
|
2748 |
+
* @return html TEXT to display
|
2749 |
+
*/
|
2750 |
+
$html .= apply_filters( 'rtmedia_like_html_you_and_more_like', esc_html__( 'You and ', 'buddypress-media' ), $like_count, $user_like_it );
|
2751 |
+
$like_count_new--;
|
2752 |
+
}
|
2753 |
+
|
2754 |
+
/**
|
2755 |
+
* rtmedia Disaply count
|
2756 |
+
* @param int $like_count Total Like
|
2757 |
+
* @param int $user_like_it User Like it or Not
|
2758 |
+
* @return INT Count to display
|
2759 |
+
*/
|
2760 |
+
$html .= apply_filters( 'rtmedia_like_html_you_and_more_like', $like_count, $user_like_it );
|
2761 |
+
|
2762 |
+
/**
|
2763 |
+
* rtmedia person or people likes it
|
2764 |
+
* @param $html TEXT
|
2765 |
+
* @param int $like_count Total Like
|
2766 |
+
* @param int $user_like_it User Like it or Not
|
2767 |
+
* @return html TEXT to display
|
2768 |
+
*/
|
2769 |
+
$html .= apply_filters( 'rtmedia_like_html_othe_likes_this', _n( ' person likes this', ' people like this', $like_count_new, 'buddypress-media' ) ,$like_count, $user_like_it );
|
2770 |
+
}
|
2771 |
+
|
2772 |
+
/**
|
2773 |
+
* rtmedia return whole HTML
|
2774 |
+
* @param $html TEXT
|
2775 |
+
* @param int $like_count Total Like
|
2776 |
+
* @param int $user_like_it User Like it or Not
|
2777 |
+
* @return html TEXT to display
|
2778 |
+
*/
|
2779 |
+
$html = apply_filters( 'rtmedia_who_like_html', $html ,$like_count, $user_like_it );
|
2780 |
+
return $html;
|
2781 |
+
}
|
2782 |
+
}
|
2783 |
+
|
2784 |
/**
|
2785 |
* Get music cover art
|
2786 |
*
|
2817 |
|
2818 |
if ( is_array( $thumb_upload_info ) && ! empty( $thumb_upload_info['url'] ) ) {
|
2819 |
$media_obj->model->update( array(
|
2820 |
+
'cover_art' => $thumb_upload_info['url'],
|
2821 |
+
), array(
|
2822 |
+
'id' => $id,
|
2823 |
) );
|
2824 |
|
2825 |
return $thumb_upload_info['url'];
|
2827 |
}
|
2828 |
|
2829 |
$media_obj->model->update( array(
|
2830 |
+
'cover_art' => '-1',
|
2831 |
+
), array(
|
2832 |
+
'id' => $id,
|
2833 |
) );
|
2834 |
|
2835 |
return false;
|
2849 |
return false;
|
2850 |
|
2851 |
}
|
|
|
2852 |
}
|
2853 |
|
2854 |
/**
|
2862 |
|
2863 |
$mediamodel = new RTMediaModel();
|
2864 |
$actions = $mediamodel->get( array(
|
2865 |
+
'id' => rtmedia_id( $rtmedia_id ),
|
2866 |
) );
|
2867 |
$privacy = '';
|
2868 |
|
2946 |
$length = array( 1, 60, 3600, 86400 );
|
2947 |
$ago_text = esc_html__( '%s ago ', 'buddypress-media' );
|
2948 |
|
2949 |
+
for ( $i = sizeof( $length ) - 1; ( $i >= 0 ) && ( ( $no = $diff / $length[ $i ] ) <= 1 ); $i -- ) {}
|
2950 |
|
2951 |
if ( $i < 0 ) {
|
2952 |
$i = 0;
|
3432 |
|
3433 |
if ( function_exists( 'filter_input' ) && filter_has_var( INPUT_SERVER, $server_key ) ) {
|
3434 |
$server_val = filter_input( INPUT_SERVER, $server_key, constant( $filter_type ) );
|
3435 |
+
} elseif ( isset( $_SERVER[ $server_key ] ) ) {
|
3436 |
$server_val = $_SERVER[ $server_key ];
|
3437 |
}
|
3438 |
|
3458 |
return $medias[ $media_type ][0];
|
3459 |
}
|
3460 |
}
|
3461 |
+
|
3462 |
+
|
3463 |
+
|
3464 |
+
|
3465 |
+
/**
|
3466 |
+
* Return the buddpress activity table content
|
3467 |
+
*
|
3468 |
+
* @param int $activity_id
|
3469 |
+
*
|
3470 |
+
* @return array buddpres_activity
|
3471 |
+
*/
|
3472 |
+
function rtmedia_activity_comment( $activity_id ) {
|
3473 |
+
$activity_id = ( $activity_id ) ? (int) $activity_id : false;
|
3474 |
+
$activity_comment_content = false;
|
3475 |
+
if ( $activity_id ) {
|
3476 |
+
global $wpdb;
|
3477 |
+
global $bp;
|
3478 |
+
$table_name = $bp->activity->table_name;
|
3479 |
+
$activity_comment_content = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $table_name WHERE id = %d", $activity_id ), ARRAY_A );
|
3480 |
+
}
|
3481 |
+
return $activity_comment_content;
|
3482 |
+
}
|
3483 |
+
|
3484 |
+
/**
|
3485 |
+
* Send the request to the rtmedia server for addon license validation
|
3486 |
+
* and activation
|
3487 |
+
*
|
3488 |
+
* @since 4.2
|
3489 |
+
*
|
3490 |
+
* @param array $addon Array containing the license_key, addon_id
|
3491 |
+
* and addon name
|
3492 |
+
*
|
3493 |
+
* @return obejct|boolean Addon license data/status from server or the false on error
|
3494 |
+
*/
|
3495 |
+
function rtmedia_activate_addon_license( $addon = array() ) {
|
3496 |
+
|
3497 |
+
if ( empty( $addon ) || ! is_array( $addon ) || count( $addon ) < 1 ) {
|
3498 |
+
return false;
|
3499 |
+
}
|
3500 |
+
|
3501 |
+
if ( ! isset( $addon['args'] ) ) {
|
3502 |
+
return false;
|
3503 |
+
}
|
3504 |
+
|
3505 |
+
if ( empty( $addon['args']['license_key'] ) || empty( $addon['name'] ) || empty( $addon['args']['addon_id'] ) ) {
|
3506 |
+
return false;
|
3507 |
+
}
|
3508 |
+
|
3509 |
+
|
3510 |
+
$license = $addon['args']['license_key'];
|
3511 |
+
|
3512 |
+
$addon_name = $addon['name'];
|
3513 |
+
|
3514 |
+
$addon_id = $addon['args']['addon_id'];
|
3515 |
+
|
3516 |
+
// Get the store URL from the constant defined in the addon
|
3517 |
+
$store_url = constant( 'EDD_' . strtoupper( $addon_id ) . '_STORE_URL' );
|
3518 |
+
|
3519 |
+
// If store URL not found in the addon, use the default store URL
|
3520 |
+
if ( empty( $store_url ) ) {
|
3521 |
+
$store_url = 'https://rtmedia.io/';
|
3522 |
+
}
|
3523 |
+
|
3524 |
+
// data to send in our API request
|
3525 |
+
$api_params = array(
|
3526 |
+
'edd_action' => 'activate_license',
|
3527 |
+
'license' => $license,
|
3528 |
+
'item_name' => urlencode( $addon_name ), // the name of our product in EDD
|
3529 |
+
'url' => home_url(),
|
3530 |
+
);
|
3531 |
+
|
3532 |
+
// Call the custom API.
|
3533 |
+
$response = wp_remote_get( esc_url_raw( add_query_arg( $api_params, $store_url ) ), array( 'timeout' => 15, 'sslverify' => false ) );
|
3534 |
+
|
3535 |
+
// make sure the response came back okay
|
3536 |
+
if ( is_wp_error( $response ) ) {
|
3537 |
+
return false;
|
3538 |
+
}
|
3539 |
+
|
3540 |
+
// decode the license data
|
3541 |
+
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
3542 |
+
|
3543 |
+
return $license_data;
|
3544 |
+
|
3545 |
+
}
|
app/main/routers/query/RTMediaQuery.php
CHANGED
@@ -108,12 +108,12 @@ class RTMediaQuery {
|
|
108 |
}
|
109 |
|
110 |
function set_media_type() {
|
111 |
-
if ( ! isset( $this->query[
|
112 |
if ( isset( $this->action_query->id ) ) {
|
113 |
$media = $this->model->get( array( 'id' => $this->action_query->id ) );
|
114 |
if ( sizeof( $media ) > 0 ) {
|
115 |
-
$media_type = $media[
|
116 |
-
$this->query[
|
117 |
}
|
118 |
}
|
119 |
} else {
|
@@ -129,7 +129,7 @@ class RTMediaQuery {
|
|
129 |
if ( ! isset( $this->action_query->id ) || $this->is_album() ) {
|
130 |
return false;
|
131 |
} else {
|
132 |
-
if ( isset( $this->query[
|
133 |
return false;
|
134 |
}
|
135 |
}
|
@@ -138,7 +138,7 @@ class RTMediaQuery {
|
|
138 |
}
|
139 |
|
140 |
function is_album() {
|
141 |
-
if ( isset( $this->query[
|
142 |
return true;
|
143 |
}
|
144 |
|
@@ -146,7 +146,7 @@ class RTMediaQuery {
|
|
146 |
}
|
147 |
|
148 |
function is_group_album() {
|
149 |
-
if ( $this->is_album() && ( isset( $this->query[
|
150 |
return true;
|
151 |
}
|
152 |
|
@@ -178,7 +178,7 @@ class RTMediaQuery {
|
|
178 |
}
|
179 |
|
180 |
function is_playlist() {
|
181 |
-
if ( isset( $this->query[
|
182 |
return true;
|
183 |
}
|
184 |
|
@@ -198,7 +198,7 @@ class RTMediaQuery {
|
|
198 |
*/
|
199 |
function set_json_format() {
|
200 |
|
201 |
-
if ( ! empty( $_REQUEST[
|
202 |
$this->format = 'json';
|
203 |
}
|
204 |
}
|
@@ -211,7 +211,7 @@ class RTMediaQuery {
|
|
211 |
}
|
212 |
|
213 |
if ( isset( $raw_query ) && is_array( $raw_query ) && count( $raw_query ) > 1 ) {
|
214 |
-
if ( empty( $raw_query[
|
215 |
$temp_query = array();
|
216 |
for ( $rtCount = 1; $rtCount < count( $raw_query ); $rtCount ++ ) {
|
217 |
$temp_query[] = $raw_query[ $rtCount ];
|
@@ -235,10 +235,10 @@ class RTMediaQuery {
|
|
235 |
$attributes = '';
|
236 |
|
237 |
// The first part of the query /media/{*}/
|
238 |
-
if ( is_array( $raw_query ) && count( $raw_query ) && ! empty( $raw_query[
|
239 |
|
240 |
//set the modifier value beforehand
|
241 |
-
$modifier_value = $raw_query[
|
242 |
|
243 |
if ( 'album' === $modifier_value && ! is_rtmedia_album_enable() ) {
|
244 |
include get_404_template();
|
@@ -292,9 +292,9 @@ class RTMediaQuery {
|
|
292 |
$modifier_type = apply_filters( 'rtmedia_action_query_modifier_type', $modifier_type, $raw_query );
|
293 |
$modifier_value = apply_filters( 'rtmedia_action_query_modifier_value', $modifier_value, $raw_query );
|
294 |
|
295 |
-
if ( isset( $raw_query[
|
296 |
|
297 |
-
$second_modifier = $raw_query[
|
298 |
|
299 |
switch ( $modifier_type ) {
|
300 |
|
@@ -316,8 +316,8 @@ class RTMediaQuery {
|
|
316 |
$action = $second_modifier;
|
317 |
} else {
|
318 |
if ( 'pg' === $second_modifier ) {
|
319 |
-
if ( isset( $raw_query[
|
320 |
-
$pageno = $raw_query[
|
321 |
}
|
322 |
}
|
323 |
}
|
@@ -354,9 +354,9 @@ class RTMediaQuery {
|
|
354 |
|
355 |
//the third part of the query /media/modifier/second_modifier/{*}
|
356 |
|
357 |
-
if ( isset( $raw_query[
|
358 |
|
359 |
-
$third_modifier = $raw_query[
|
360 |
|
361 |
switch ( $modifier_type ) {
|
362 |
|
@@ -401,7 +401,7 @@ class RTMediaQuery {
|
|
401 |
* set action query object
|
402 |
* setting parameters in action query object for pagination
|
403 |
*/
|
404 |
-
$per_page_media = intval( $rtmedia->options[
|
405 |
$per_page_media = intval( apply_filters( 'rtmedia_per_page_media', $per_page_media ) );
|
406 |
|
407 |
$this->action_query = (object) array(
|
@@ -430,18 +430,18 @@ class RTMediaQuery {
|
|
430 |
*/
|
431 |
function &query( $query ) {
|
432 |
$this->original_query = $query;
|
433 |
-
|
434 |
/*
|
435 |
* @chandrapatel commented below code. here we are merging new query vars and previous query vars
|
436 |
* which is cause an issue. For example, First time query vars contains media_type and second time query vars not contain media_type
|
437 |
* then media not listed properly.
|
438 |
-
*
|
439 |
* Later on, renmove this comment and below commented code.
|
440 |
*/
|
441 |
// $this->query = wp_parse_args( $query, $this->query );
|
442 |
-
|
443 |
$this->query = $query;
|
444 |
-
|
445 |
//Set Json
|
446 |
$allowed_query = apply_filters( 'rtmedia_allowed_query', array(
|
447 |
'id',
|
@@ -457,8 +457,8 @@ class RTMediaQuery {
|
|
457 |
'lightbox',
|
458 |
'media_title',
|
459 |
) );
|
460 |
-
if ( isset( $_REQUEST[
|
461 |
-
$rtmedia_shortcode = $_REQUEST[
|
462 |
}
|
463 |
if ( ! empty( $rtmedia_shortcode ) ) {
|
464 |
$query_data = $_REQUEST;
|
@@ -467,9 +467,9 @@ class RTMediaQuery {
|
|
467 |
unset( $query_data[ $key ] );
|
468 |
}
|
469 |
}
|
470 |
-
|
471 |
$this->query = wp_parse_args( $query_data, $this->query );
|
472 |
-
|
473 |
} else {
|
474 |
if ( isset( $this->is_gallery_shortcode ) && true === $this->is_gallery_shortcode ) {
|
475 |
foreach ( $this->query as $key => $val ) {
|
@@ -483,35 +483,35 @@ class RTMediaQuery {
|
|
483 |
* in gallery shortcode with uploader set to true, $this->is_gallery_shortcode won't be set for very first time and hence
|
484 |
* will miss the check for "$this->query['uploader']"
|
485 |
*/
|
486 |
-
if ( isset( $this->query[
|
487 |
-
unset( $this->query[
|
488 |
}
|
489 |
}
|
490 |
|
491 |
-
if ( isset( $this->query[
|
492 |
-
$this->query[
|
493 |
global $wpdb;
|
494 |
//todo cache
|
495 |
$sql_query = "select id from {$wpdb->prefix}bp_activity where item_id = 0 and type = 'rtmedia_update'";
|
496 |
-
$this->query[
|
497 |
}
|
498 |
-
if ( isset( $this->query ) && isset( $this->query[
|
499 |
-
if ( 'true' === $this->query[
|
500 |
$this->shortcode_global = true;
|
501 |
add_filter( 'rtmedia-model-where-query', array(
|
502 |
'RTMediaGalleryShortcode',
|
503 |
'rtmedia_query_where_filter',
|
504 |
), 10, 3 );
|
505 |
-
if ( isset( $this->query[
|
506 |
-
unset( $this->query[
|
507 |
}
|
508 |
-
if ( isset( $this->query[
|
509 |
-
unset( $this->query[
|
510 |
}
|
511 |
//dont unset album id when provided, to show content of a single album
|
512 |
// if ( isset ( $this->query[ "album_id" ] ) )
|
513 |
// unset ( $this->query[ "album_id" ] );
|
514 |
-
if ( isset( $this->query[
|
515 |
//$this->action_query->media_type = "album";
|
516 |
add_filter( 'rtmedia-before-template', array(
|
517 |
&$this,
|
@@ -519,7 +519,7 @@ class RTMediaQuery {
|
|
519 |
), 10, 2 );
|
520 |
}
|
521 |
}
|
522 |
-
unset( $this->query[
|
523 |
}
|
524 |
$this->set_media_type();
|
525 |
$this->media_query = $this->query;
|
@@ -579,7 +579,7 @@ class RTMediaQuery {
|
|
579 |
|
580 |
$this->set_privacy();
|
581 |
if ( $this->is_single() ) {
|
582 |
-
$this->media_query[
|
583 |
}
|
584 |
|
585 |
$allowed_media_types = array();
|
@@ -592,72 +592,72 @@ class RTMediaQuery {
|
|
592 |
//add filter to filter group media when context is profile
|
593 |
//add_filter('rtmedia-model-where-query',array($this,'rtmedia_model_where_query'), 10, 3);
|
594 |
|
595 |
-
if ( isset( $this->media_query[
|
596 |
|
597 |
-
if ( 'profile' === $this->media_query[
|
598 |
|
599 |
if ( ! $this->is_album_gallery() ) {
|
600 |
-
$this->media_query[
|
601 |
} else {
|
602 |
-
$author = $this->media_query[
|
603 |
}
|
604 |
|
605 |
//if it is a media single page, then unset the context and context id
|
606 |
if ( $this->is_single() ) {
|
607 |
-
unset( $this->media_query[
|
608 |
-
unset( $this->media_query[
|
609 |
}
|
610 |
//unset ( $this->media_query[ 'context' ] );
|
611 |
//unset ( $this->media_query[ 'context_id' ] );
|
612 |
} else {
|
613 |
-
if ( 'group' === $this->media_query[
|
614 |
-
$group_id = $this->media_query[
|
615 |
} else {
|
616 |
|
617 |
}
|
618 |
}
|
619 |
|
620 |
// Multiple context_id support
|
621 |
-
if ( isset( $this->media_query[
|
622 |
-
$this->media_query[
|
623 |
'compare' => 'in',
|
624 |
-
'value' => explode( ',', $this->media_query[
|
625 |
);
|
626 |
}
|
627 |
}
|
628 |
|
629 |
// Multiple album_id support
|
630 |
-
if ( isset( $this->media_query[
|
631 |
-
$this->media_query[
|
632 |
'compare' => 'in',
|
633 |
-
'value' => explode( ',', $this->media_query[
|
634 |
);
|
635 |
}
|
636 |
|
637 |
-
if ( isset( $this->media_query[
|
638 |
//Do not include per_page in sql query to get media
|
639 |
-
$this->action_query->per_page_media = intval( $this->media_query[
|
640 |
-
unset( $this->media_query[
|
641 |
}
|
642 |
|
643 |
// lightbox option
|
644 |
-
if ( isset( $this->media_query[
|
645 |
-
if ( 'false' === $this->media_query[
|
646 |
// Add filter to add no-popup class in a tag
|
647 |
add_filter( 'rtmedia_gallery_list_item_a_class', 'rtmedia_add_no_popup_class', 10, 1 );
|
648 |
}
|
649 |
// Unset the lightbox parameter from media query
|
650 |
-
unset( $this->media_query[
|
651 |
}
|
652 |
|
653 |
// media title option
|
654 |
-
if ( isset( $this->media_query[
|
655 |
-
if ( 'false' === $this->media_query[
|
656 |
// Add filter show media title
|
657 |
add_filter( 'rtmedia_media_gallery_show_media_title', 'rtmedia_gallery_do_not_show_media_title', 10, 1 );
|
658 |
}
|
659 |
// Unset the media title parameter from media query
|
660 |
-
unset( $this->media_query[
|
661 |
}
|
662 |
|
663 |
$this->media_query = apply_filters( 'rtmedia_media_query', $this->media_query, $this->action_query, $this->query );
|
@@ -727,18 +727,18 @@ class RTMediaQuery {
|
|
727 |
function album_or_media() {
|
728 |
global $rtmedia;
|
729 |
foreach ( $rtmedia->allowed_types as $value ) {
|
730 |
-
$allowed_media_types[] = $value[
|
731 |
}
|
732 |
|
733 |
-
if ( ! isset( $this->media_query[
|
734 |
if ( isset( $this->action_query->media_type ) && ( in_array( $this->action_query->media_type, $allowed_media_types, true ) || 'album' === $this->action_query->media_type ) ) {
|
735 |
-
$this->media_query[
|
736 |
} else {
|
737 |
-
$this->media_query[
|
738 |
'compare' => 'IN',
|
739 |
'value' => array( 'music', 'video', 'photo' ),
|
740 |
);
|
741 |
-
$this->media_query[
|
742 |
}
|
743 |
}
|
744 |
}
|
@@ -749,14 +749,14 @@ class RTMediaQuery {
|
|
749 |
*/
|
750 |
$order_by = '';
|
751 |
$order = '';
|
752 |
-
if ( isset( $this->media_query[
|
753 |
-
$order = $this->media_query[
|
754 |
-
unset( $this->media_query[
|
755 |
}
|
756 |
|
757 |
-
if ( isset( $this->media_query[
|
758 |
-
$order_by = $this->media_query[
|
759 |
-
unset( $this->media_query[
|
760 |
if ( 'ratings' === $order_by ) {
|
761 |
$order_by = 'ratings_average ' . $order . ', ratings_count';
|
762 |
}
|
@@ -768,14 +768,14 @@ class RTMediaQuery {
|
|
768 |
|
769 |
function populate_album() {
|
770 |
$this->album = $this->media;
|
771 |
-
$this->media_query[
|
772 |
|
773 |
if ( apply_filters( 'rtmedia_unset_action_query_id_album', true ) ) {
|
774 |
unset( $this->action_query->id );
|
775 |
}
|
776 |
|
777 |
-
unset( $this->media_query[
|
778 |
-
unset( $this->media_query[
|
779 |
|
780 |
return $this->populate_media();
|
781 |
}
|
@@ -895,13 +895,13 @@ class RTMediaQuery {
|
|
895 |
* setting up meta query vars
|
896 |
*/
|
897 |
if ( isset( $this->query_vars->meta_query ) ) {
|
898 |
-
$media_post_query_args[
|
899 |
}
|
900 |
/**
|
901 |
* setting up taxonomy query vars
|
902 |
*/
|
903 |
if ( isset( $this->query_vars->tax_query ) ) {
|
904 |
-
$media_post_query_args[
|
905 |
}
|
906 |
|
907 |
/**
|
@@ -1003,7 +1003,7 @@ class RTMediaQuery {
|
|
1003 |
function rewind_media() {
|
1004 |
$this->current_media = - 1;
|
1005 |
if ( $this->action_query->per_page_media > 0 ) {
|
1006 |
-
$this->media = $this->media[
|
1007 |
}
|
1008 |
}
|
1009 |
|
108 |
}
|
109 |
|
110 |
function set_media_type() {
|
111 |
+
if ( ! isset( $this->query['media_type'] ) ) {
|
112 |
if ( isset( $this->action_query->id ) ) {
|
113 |
$media = $this->model->get( array( 'id' => $this->action_query->id ) );
|
114 |
if ( sizeof( $media ) > 0 ) {
|
115 |
+
$media_type = $media[0]->media_type;
|
116 |
+
$this->query['media_type'] = $media_type;
|
117 |
}
|
118 |
}
|
119 |
} else {
|
129 |
if ( ! isset( $this->action_query->id ) || $this->is_album() ) {
|
130 |
return false;
|
131 |
} else {
|
132 |
+
if ( isset( $this->query['media_type'] ) && 'album' === $this->query['media_type'] ) {
|
133 |
return false;
|
134 |
}
|
135 |
}
|
138 |
}
|
139 |
|
140 |
function is_album() {
|
141 |
+
if ( isset( $this->query['media_type'] ) && 'album' === $this->query['media_type'] ) {
|
142 |
return true;
|
143 |
}
|
144 |
|
146 |
}
|
147 |
|
148 |
function is_group_album() {
|
149 |
+
if ( $this->is_album() && ( isset( $this->query['context'] ) && 'group' === $this->query['context'] ) ) {
|
150 |
return true;
|
151 |
}
|
152 |
|
178 |
}
|
179 |
|
180 |
function is_playlist() {
|
181 |
+
if ( isset( $this->query['media_type'] ) && 'playlist' === $this->query['media_type'] ) {
|
182 |
return true;
|
183 |
}
|
184 |
|
198 |
*/
|
199 |
function set_json_format() {
|
200 |
|
201 |
+
if ( ! empty( $_REQUEST['json'] ) ) {
|
202 |
$this->format = 'json';
|
203 |
}
|
204 |
}
|
211 |
}
|
212 |
|
213 |
if ( isset( $raw_query ) && is_array( $raw_query ) && count( $raw_query ) > 1 ) {
|
214 |
+
if ( empty( $raw_query[0] ) && ! empty( $raw_query[1] ) ) {
|
215 |
$temp_query = array();
|
216 |
for ( $rtCount = 1; $rtCount < count( $raw_query ); $rtCount ++ ) {
|
217 |
$temp_query[] = $raw_query[ $rtCount ];
|
235 |
$attributes = '';
|
236 |
|
237 |
// The first part of the query /media/{*}/
|
238 |
+
if ( is_array( $raw_query ) && count( $raw_query ) && ! empty( $raw_query[0] ) ) {
|
239 |
|
240 |
//set the modifier value beforehand
|
241 |
+
$modifier_value = $raw_query[0];
|
242 |
|
243 |
if ( 'album' === $modifier_value && ! is_rtmedia_album_enable() ) {
|
244 |
include get_404_template();
|
292 |
$modifier_type = apply_filters( 'rtmedia_action_query_modifier_type', $modifier_type, $raw_query );
|
293 |
$modifier_value = apply_filters( 'rtmedia_action_query_modifier_value', $modifier_value, $raw_query );
|
294 |
|
295 |
+
if ( isset( $raw_query[1] ) ) {
|
296 |
|
297 |
+
$second_modifier = $raw_query[1];
|
298 |
|
299 |
switch ( $modifier_type ) {
|
300 |
|
316 |
$action = $second_modifier;
|
317 |
} else {
|
318 |
if ( 'pg' === $second_modifier ) {
|
319 |
+
if ( isset( $raw_query[2] ) && is_numeric( $raw_query[2] ) ) {
|
320 |
+
$pageno = $raw_query[2];
|
321 |
}
|
322 |
}
|
323 |
}
|
354 |
|
355 |
//the third part of the query /media/modifier/second_modifier/{*}
|
356 |
|
357 |
+
if ( isset( $raw_query[2] ) ) {
|
358 |
|
359 |
+
$third_modifier = $raw_query[2];
|
360 |
|
361 |
switch ( $modifier_type ) {
|
362 |
|
401 |
* set action query object
|
402 |
* setting parameters in action query object for pagination
|
403 |
*/
|
404 |
+
$per_page_media = intval( $rtmedia->options['general_perPageMedia'] );
|
405 |
$per_page_media = intval( apply_filters( 'rtmedia_per_page_media', $per_page_media ) );
|
406 |
|
407 |
$this->action_query = (object) array(
|
430 |
*/
|
431 |
function &query( $query ) {
|
432 |
$this->original_query = $query;
|
433 |
+
|
434 |
/*
|
435 |
* @chandrapatel commented below code. here we are merging new query vars and previous query vars
|
436 |
* which is cause an issue. For example, First time query vars contains media_type and second time query vars not contain media_type
|
437 |
* then media not listed properly.
|
438 |
+
*
|
439 |
* Later on, renmove this comment and below commented code.
|
440 |
*/
|
441 |
// $this->query = wp_parse_args( $query, $this->query );
|
442 |
+
|
443 |
$this->query = $query;
|
444 |
+
|
445 |
//Set Json
|
446 |
$allowed_query = apply_filters( 'rtmedia_allowed_query', array(
|
447 |
'id',
|
457 |
'lightbox',
|
458 |
'media_title',
|
459 |
) );
|
460 |
+
if ( isset( $_REQUEST['rtmedia_shortcode'] ) ) {
|
461 |
+
$rtmedia_shortcode = $_REQUEST['rtmedia_shortcode'];
|
462 |
}
|
463 |
if ( ! empty( $rtmedia_shortcode ) ) {
|
464 |
$query_data = $_REQUEST;
|
467 |
unset( $query_data[ $key ] );
|
468 |
}
|
469 |
}
|
470 |
+
|
471 |
$this->query = wp_parse_args( $query_data, $this->query );
|
472 |
+
|
473 |
} else {
|
474 |
if ( isset( $this->is_gallery_shortcode ) && true === $this->is_gallery_shortcode ) {
|
475 |
foreach ( $this->query as $key => $val ) {
|
483 |
* in gallery shortcode with uploader set to true, $this->is_gallery_shortcode won't be set for very first time and hence
|
484 |
* will miss the check for "$this->query['uploader']"
|
485 |
*/
|
486 |
+
if ( isset( $this->query['uploader'] ) ) {
|
487 |
+
unset( $this->query['uploader'] );
|
488 |
}
|
489 |
}
|
490 |
|
491 |
+
if ( isset( $this->query['context'] ) && 'activity' === $this->query['context'] ) {
|
492 |
+
$this->query['activity_id'] = array( 'value' );
|
493 |
global $wpdb;
|
494 |
//todo cache
|
495 |
$sql_query = "select id from {$wpdb->prefix}bp_activity where item_id = 0 and type = 'rtmedia_update'";
|
496 |
+
$this->query['activity_id']['value'] = $wpdb->get_col( $sql_query );
|
497 |
}
|
498 |
+
if ( isset( $this->query ) && isset( $this->query['global'] ) ) {
|
499 |
+
if ( 'true' === $this->query['global'] ) {
|
500 |
$this->shortcode_global = true;
|
501 |
add_filter( 'rtmedia-model-where-query', array(
|
502 |
'RTMediaGalleryShortcode',
|
503 |
'rtmedia_query_where_filter',
|
504 |
), 10, 3 );
|
505 |
+
if ( isset( $this->query['context_id'] ) ) {
|
506 |
+
unset( $this->query['context_id'] );
|
507 |
}
|
508 |
+
if ( isset( $this->query['context'] ) ) {
|
509 |
+
unset( $this->query['context'] );
|
510 |
}
|
511 |
//dont unset album id when provided, to show content of a single album
|
512 |
// if ( isset ( $this->query[ "album_id" ] ) )
|
513 |
// unset ( $this->query[ "album_id" ] );
|
514 |
+
if ( isset( $this->query['media_type'] ) && 'album' === $this->query['media_type'] ) {
|
515 |
//$this->action_query->media_type = "album";
|
516 |
add_filter( 'rtmedia-before-template', array(
|
517 |
&$this,
|
519 |
), 10, 2 );
|
520 |
}
|
521 |
}
|
522 |
+
unset( $this->query['global'] );
|
523 |
}
|
524 |
$this->set_media_type();
|
525 |
$this->media_query = $this->query;
|
579 |
|
580 |
$this->set_privacy();
|
581 |
if ( $this->is_single() ) {
|
582 |
+
$this->media_query['id'] = $this->action_query->id;
|
583 |
}
|
584 |
|
585 |
$allowed_media_types = array();
|
592 |
//add filter to filter group media when context is profile
|
593 |
//add_filter('rtmedia-model-where-query',array($this,'rtmedia_model_where_query'), 10, 3);
|
594 |
|
595 |
+
if ( isset( $this->media_query['context'] ) ) {
|
596 |
|
597 |
+
if ( 'profile' === $this->media_query['context'] ) {
|
598 |
|
599 |
if ( ! $this->is_album_gallery() ) {
|
600 |
+
$this->media_query['media_author'] = $this->media_query['context_id'];
|
601 |
} else {
|
602 |
+
$author = $this->media_query['context_id'];
|
603 |
}
|
604 |
|
605 |
//if it is a media single page, then unset the context and context id
|
606 |
if ( $this->is_single() ) {
|
607 |
+
unset( $this->media_query['context'] );
|
608 |
+
unset( $this->media_query['context_id'] );
|
609 |
}
|
610 |
//unset ( $this->media_query[ 'context' ] );
|
611 |
//unset ( $this->media_query[ 'context_id' ] );
|
612 |
} else {
|
613 |
+
if ( 'group' === $this->media_query['context'] ) {
|
614 |
+
$group_id = $this->media_query['context_id'];
|
615 |
} else {
|
616 |
|
617 |
}
|
618 |
}
|
619 |
|
620 |
// Multiple context_id support
|
621 |
+
if ( isset( $this->media_query['context_id'] ) && sizeof( explode( ',', $this->media_query['context_id'] ) ) > 1 ) {
|
622 |
+
$this->media_query['context_id'] = array(
|
623 |
'compare' => 'in',
|
624 |
+
'value' => explode( ',', $this->media_query['context_id'] ),
|
625 |
);
|
626 |
}
|
627 |
}
|
628 |
|
629 |
// Multiple album_id support
|
630 |
+
if ( isset( $this->media_query['album_id'] ) && sizeof( explode( ',', $this->media_query['album_id'] ) ) > 1 ) {
|
631 |
+
$this->media_query['album_id'] = array(
|
632 |
'compare' => 'in',
|
633 |
+
'value' => explode( ',', $this->media_query['album_id'] ),
|
634 |
);
|
635 |
}
|
636 |
|
637 |
+
if ( isset( $this->media_query['per_page'] ) ) {
|
638 |
//Do not include per_page in sql query to get media
|
639 |
+
$this->action_query->per_page_media = intval( $this->media_query['per_page'] );
|
640 |
+
unset( $this->media_query['per_page'] );
|
641 |
}
|
642 |
|
643 |
// lightbox option
|
644 |
+
if ( isset( $this->media_query['lightbox'] ) ) {
|
645 |
+
if ( 'false' === $this->media_query['lightbox'] ) {
|
646 |
// Add filter to add no-popup class in a tag
|
647 |
add_filter( 'rtmedia_gallery_list_item_a_class', 'rtmedia_add_no_popup_class', 10, 1 );
|
648 |
}
|
649 |
// Unset the lightbox parameter from media query
|
650 |
+
unset( $this->media_query['lightbox'] );
|
651 |
}
|
652 |
|
653 |
// media title option
|
654 |
+
if ( isset( $this->media_query['media_title'] ) ) {
|
655 |
+
if ( 'false' === $this->media_query['media_title'] ) {
|
656 |
// Add filter show media title
|
657 |
add_filter( 'rtmedia_media_gallery_show_media_title', 'rtmedia_gallery_do_not_show_media_title', 10, 1 );
|
658 |
}
|
659 |
// Unset the media title parameter from media query
|
660 |
+
unset( $this->media_query['media_title'] );
|
661 |
}
|
662 |
|
663 |
$this->media_query = apply_filters( 'rtmedia_media_query', $this->media_query, $this->action_query, $this->query );
|
727 |
function album_or_media() {
|
728 |
global $rtmedia;
|
729 |
foreach ( $rtmedia->allowed_types as $value ) {
|
730 |
+
$allowed_media_types[] = $value['name'];
|
731 |
}
|
732 |
|
733 |
+
if ( ! isset( $this->media_query['media_type'] ) ) {
|
734 |
if ( isset( $this->action_query->media_type ) && ( in_array( $this->action_query->media_type, $allowed_media_types, true ) || 'album' === $this->action_query->media_type ) ) {
|
735 |
+
$this->media_query['media_type'] = $this->action_query->media_type;
|
736 |
} else {
|
737 |
+
$this->media_query['media_type'] = array(
|
738 |
'compare' => 'IN',
|
739 |
'value' => array( 'music', 'video', 'photo' ),
|
740 |
);
|
741 |
+
$this->media_query['media_type'] = apply_filters( 'rtmedia_query_media_type_filter', $this->media_query['media_type'] ); // can add more types here
|
742 |
}
|
743 |
}
|
744 |
}
|
749 |
*/
|
750 |
$order_by = '';
|
751 |
$order = '';
|
752 |
+
if ( isset( $this->media_query['order'] ) ) {
|
753 |
+
$order = $this->media_query['order'];
|
754 |
+
unset( $this->media_query['order'] );
|
755 |
}
|
756 |
|
757 |
+
if ( isset( $this->media_query['order_by'] ) ) {
|
758 |
+
$order_by = $this->media_query['order_by'];
|
759 |
+
unset( $this->media_query['order_by'] );
|
760 |
if ( 'ratings' === $order_by ) {
|
761 |
$order_by = 'ratings_average ' . $order . ', ratings_count';
|
762 |
}
|
768 |
|
769 |
function populate_album() {
|
770 |
$this->album = $this->media;
|
771 |
+
$this->media_query['album_id'] = $this->action_query->id;
|
772 |
|
773 |
if ( apply_filters( 'rtmedia_unset_action_query_id_album', true ) ) {
|
774 |
unset( $this->action_query->id );
|
775 |
}
|
776 |
|
777 |
+
unset( $this->media_query['id'] );
|
778 |
+
unset( $this->media_query['media_type'] );
|
779 |
|
780 |
return $this->populate_media();
|
781 |
}
|
895 |
* setting up meta query vars
|
896 |
*/
|
897 |
if ( isset( $this->query_vars->meta_query ) ) {
|
898 |
+
$media_post_query_args['meta_query'] = $this->query_vars->meta_query;
|
899 |
}
|
900 |
/**
|
901 |
* setting up taxonomy query vars
|
902 |
*/
|
903 |
if ( isset( $this->query_vars->tax_query ) ) {
|
904 |
+
$media_post_query_args['tax_query'] = $this->query_vars->tax_query;
|
905 |
}
|
906 |
|
907 |
/**
|
1003 |
function rewind_media() {
|
1004 |
$this->current_media = - 1;
|
1005 |
if ( $this->action_query->per_page_media > 0 ) {
|
1006 |
+
$this->media = $this->media[0];
|
1007 |
}
|
1008 |
}
|
1009 |
|
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
6 |
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
|
7 |
-
Version: 4.
|
8 |
Author: rtCamp
|
9 |
Text Domain: buddypress-media
|
10 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
4 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
6 |
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
|
7 |
+
Version: 4.2
|
8 |
Author: rtCamp
|
9 |
Text Domain: buddypress-media
|
10 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
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.1.
|
6 |
"Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -107,7 +107,7 @@ msgstr ""
|
|
107 |
msgid "Comments "
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: app/admin/RTMediaAdmin.php:644 app/main/controllers/media/RTMediaLike.php:
|
111 |
msgid "Likes"
|
112 |
msgstr ""
|
113 |
|
@@ -132,41 +132,41 @@ msgid "Right Now in rtMedia"
|
|
132 |
msgstr ""
|
133 |
|
134 |
#: app/admin/RTMediaAdmin.php:712 app/admin/RTMediaAdmin.php:746
|
135 |
-
#: app/admin/RTMediaAdmin.php:749 app/admin/RTMediaAdmin.php:
|
136 |
-
#: app/admin/RTMediaAdmin.php:
|
137 |
msgid "Settings"
|
138 |
msgstr ""
|
139 |
|
140 |
#: app/admin/RTMediaAdmin.php:714 app/admin/RTMediaAdmin.php:770
|
141 |
-
#: app/admin/RTMediaAdmin.php:773 app/admin/RTMediaAdmin.php:
|
142 |
-
#: app/admin/RTMediaAdmin.php:
|
143 |
-
#: app/helper/RTMediaSupport.php:
|
144 |
msgid "Support"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: app/admin/RTMediaAdmin.php:739 app/admin/RTMediaAdmin.php:
|
148 |
-
#: app/admin/RTMediaAdmin.php:
|
149 |
-
#: app/importers/RTMediaMigration.php:68 app/main/RTMedia.php:
|
150 |
msgid "rtMedia"
|
151 |
msgstr ""
|
152 |
|
153 |
#: app/admin/RTMediaAdmin.php:758 app/admin/RTMediaAdmin.php:761
|
154 |
-
#: app/admin/RTMediaAdmin.php:
|
155 |
msgid "Addons"
|
156 |
msgstr ""
|
157 |
|
158 |
#: app/admin/RTMediaAdmin.php:782 app/admin/RTMediaAdmin.php:785
|
159 |
-
#: app/admin/RTMediaAdmin.php:
|
160 |
msgid "Themes"
|
161 |
msgstr ""
|
162 |
|
163 |
#: app/admin/RTMediaAdmin.php:795 app/admin/RTMediaAdmin.php:798
|
164 |
-
#: app/admin/RTMediaAdmin.php:
|
165 |
msgid "Hire Us"
|
166 |
msgstr ""
|
167 |
|
168 |
#: app/admin/RTMediaAdmin.php:808 app/admin/RTMediaAdmin.php:811
|
169 |
-
#: app/admin/RTMediaAdmin.php:
|
170 |
msgid "Licenses"
|
171 |
msgstr ""
|
172 |
|
@@ -178,281 +178,281 @@ msgstr ""
|
|
178 |
msgid "OFF"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: app/admin/RTMediaAdmin.php:
|
182 |
msgid "Please do not refresh this page."
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: app/admin/RTMediaAdmin.php:
|
186 |
msgid "Something went wrong. Please "
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: app/admin/RTMediaAdmin.php:
|
190 |
msgid "refresh"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: app/admin/RTMediaAdmin.php:
|
194 |
msgid " page."
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: app/admin/RTMediaAdmin.php:
|
198 |
msgid "This will subscribe you to the free plan."
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: app/admin/RTMediaAdmin.php:
|
202 |
msgid "Are you sure you want to disable the encoding service?"
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: app/admin/RTMediaAdmin.php:
|
206 |
msgid "Are you sure you want to enable the encoding service?"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: app/admin/RTMediaAdmin.php:
|
210 |
msgid "Settings have changed, you should save them!"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: app/admin/RTMediaAdmin.php:
|
214 |
msgid ""
|
215 |
"Number of video thumbnails to be generated should be greater than 0 in "
|
216 |
"media sizes settings. Setting it to default value 2."
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: app/admin/RTMediaAdmin.php:
|
220 |
msgid ""
|
221 |
"Invalid value for number of video thumbnails in media sizes settings. "
|
222 |
"Setting it to round value"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: app/admin/RTMediaAdmin.php:
|
226 |
msgid ""
|
227 |
"Number of percentage in JPEG image quality should be greater than 0 in "
|
228 |
"media sizes settings. Setting it to default value 90."
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: app/admin/RTMediaAdmin.php:
|
232 |
msgid ""
|
233 |
"Number of percentage in JPEG image quality should be less than 100 in media "
|
234 |
"sizes settings. Setting it to 100."
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: app/admin/RTMediaAdmin.php:
|
238 |
msgid ""
|
239 |
"Invalid value for percentage in JPEG image quality in media sizes settings. "
|
240 |
"Setting it to round value"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: app/admin/RTMediaAdmin.php:
|
244 |
msgid ""
|
245 |
"Please enter positive integer value only. Setting number of media per page "
|
246 |
"value to default value 10."
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: app/admin/RTMediaAdmin.php:
|
250 |
msgid ""
|
251 |
"Please enter positive integer value only. Setting number of media per page "
|
252 |
"value to round value"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: app/admin/RTMediaAdmin.php:
|
256 |
msgid "Request failed."
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: app/admin/RTMediaAdmin.php:
|
260 |
msgid "Please enter WP Admin Login."
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: app/admin/RTMediaAdmin.php:
|
264 |
msgid "Please enter WP Admin password."
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: app/admin/RTMediaAdmin.php:
|
268 |
msgid "Please enter SSH / FTP host."
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: app/admin/RTMediaAdmin.php:
|
272 |
msgid "Please enter SSH / FTP login."
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: app/admin/RTMediaAdmin.php:
|
276 |
msgid "Please enter SSH / FTP password."
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: app/admin/RTMediaAdmin.php:
|
280 |
msgid "Please fill all the fields."
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: app/admin/RTMediaAdmin.php:
|
284 |
msgid "Empowering The Web With WordPress"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: app/admin/RTMediaAdmin.php:
|
288 |
msgid "Settings saved successfully!"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: app/admin/RTMediaAdmin.php:
|
292 |
msgid "Save Settings"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: app/admin/RTMediaAdmin.php:
|
296 |
msgid "Display"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: app/admin/RTMediaAdmin.php:
|
300 |
msgid "rtMedia BuddyPress"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: app/admin/RTMediaAdmin.php:
|
304 |
msgid "BuddyPress"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: app/admin/RTMediaAdmin.php:
|
308 |
msgid "rtMedia Types"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: app/admin/RTMediaAdmin.php:
|
312 |
msgid "Types"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: app/admin/RTMediaAdmin.php:
|
316 |
msgid "rtMedia Sizes"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: app/admin/RTMediaAdmin.php:
|
320 |
msgid "Media Sizes"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: app/admin/RTMediaAdmin.php:
|
324 |
msgid "rtMedia Privacy"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: app/admin/RTMediaAdmin.php:
|
328 |
#: app/main/controllers/privacy/RTMediaPrivacy.php:417
|
329 |
msgid "Privacy"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: app/admin/RTMediaAdmin.php:
|
333 |
msgid "rtMedia Custom CSS"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: app/admin/RTMediaAdmin.php:
|
337 |
msgid "Custom CSS"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: app/admin/RTMediaAdmin.php:
|
341 |
msgid "Other Settings"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: app/admin/RTMediaAdmin.php:
|
345 |
msgid "I use @rtMediaWP http://rt.cx/rtmedia on %s"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: app/admin/RTMediaAdmin.php:
|
349 |
msgid "Post to Twitter Now"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: app/admin/RTMediaAdmin.php:
|
353 |
msgid "Post to Twitter"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: app/admin/RTMediaAdmin.php:
|
357 |
msgid "Share on Facebook Now"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: app/admin/RTMediaAdmin.php:
|
361 |
msgid "Share on Facebook"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: app/admin/RTMediaAdmin.php:
|
365 |
msgid "Rate rtMedia on Wordpress.org"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: app/admin/RTMediaAdmin.php:
|
369 |
msgid "Rate on Wordpress.org"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: app/admin/RTMediaAdmin.php:
|
373 |
msgid "Subscribe to our Feeds"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: app/admin/RTMediaAdmin.php:
|
377 |
msgid "Spread the Word"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: app/admin/RTMediaAdmin.php:
|
381 |
msgid "Subscribe"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: app/admin/RTMediaAdmin.php:
|
385 |
msgid "Thank you for your time."
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: app/admin/RTMediaAdmin.php:
|
389 |
msgid "Premium Add-ons"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: app/admin/RTMediaAdmin.php:
|
393 |
msgid ""
|
394 |
"You have images enabled on rtMedia but your network allowed filetypes do "
|
395 |
"not permit uploading of %s. Click "
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: app/admin/RTMediaAdmin.php:
|
399 |
-
#: app/admin/RTMediaAdmin.php:
|
400 |
#: app/admin/RTMediaFormHandler.php:446 app/helper/RTMediaSettings.php:297
|
401 |
-
#: app/helper/RTMediaSupport.php:
|
402 |
msgid "here"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: app/admin/RTMediaAdmin.php:
|
406 |
-
#: app/admin/RTMediaAdmin.php:
|
407 |
msgid " to change your settings manually."
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: app/admin/RTMediaAdmin.php:
|
411 |
-
#: app/admin/RTMediaAdmin.php:
|
412 |
msgid "Recommended:"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: app/admin/RTMediaAdmin.php:
|
416 |
-
#: app/admin/RTMediaAdmin.php:
|
417 |
msgid "Update Network Settings Automatically"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: app/admin/RTMediaAdmin.php:
|
421 |
msgid ""
|
422 |
"You have video enabled on BuddyPress Media but your network allowed "
|
423 |
"filetypes do not permit uploading of mp4. Click "
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: app/admin/RTMediaAdmin.php:
|
427 |
msgid ""
|
428 |
"You have audio enabled on BuddyPress Media but your network allowed "
|
429 |
"filetypes do not permit uploading of mp3. Click "
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: app/admin/RTMediaAdmin.php:
|
433 |
msgid "Network settings updated successfully."
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: app/admin/RTMediaAdmin.php:
|
437 |
msgid ""
|
438 |
"Please update rtMedia template files if you have overridden the default "
|
439 |
"rtMedia templates in your theme. If not, you can ignore and hide this "
|
440 |
"notice."
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: app/admin/RTMediaAdmin.php:
|
444 |
#: app/importers/RTMediaMediaSizeImporter.php:73
|
445 |
#: app/importers/RTMediaMigration.php:68
|
446 |
msgid "Hide"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: app/admin/RTMediaAdmin.php:
|
450 |
msgid ""
|
451 |
"Your license keys can be found on <a href=\"%s\">my-account</a> page. For "
|
452 |
"more details, please refer to <a href=\"%s\">License documentation</a> page."
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: app/admin/RTMediaAdmin.php:
|
456 |
msgid ""
|
457 |
"We found an invalid or expired license key for an rtMedia add-on. Please go "
|
458 |
"to the <a href=\"%s\">Licenses page</a> to fix this issue."
|
@@ -1316,22 +1316,28 @@ msgid ""
|
|
1316 |
"possible upgrades</a> now."
|
1317 |
msgstr ""
|
1318 |
|
1319 |
-
#: app/helper/RTMediaLicense.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1320 |
msgid "License key never expires."
|
1321 |
msgstr ""
|
1322 |
|
1323 |
-
#: app/helper/RTMediaLicense.php:
|
1324 |
msgid "Your license key expires soon! It expires on %1$s. Renew your license key."
|
1325 |
msgstr ""
|
1326 |
|
1327 |
-
#: app/helper/RTMediaLicense.php:
|
1328 |
msgid "Your license key expires on %s."
|
1329 |
msgstr ""
|
1330 |
|
1331 |
-
#: app/helper/RTMediaLicense.php:240
|
1332 |
-
msgid "To receive updates, please enter your valid license key."
|
1333 |
-
msgstr ""
|
1334 |
-
|
1335 |
#: app/helper/RTMediaLikeNotification.php:93
|
1336 |
msgid "liked your"
|
1337 |
msgstr ""
|
@@ -1414,163 +1420,175 @@ msgid ""
|
|
1414 |
"a new issue on "
|
1415 |
msgstr ""
|
1416 |
|
1417 |
-
#: app/helper/RTMediaSettings.php:403 app/helper/RTMediaSupport.php:
|
1418 |
msgid "GitHub"
|
1419 |
msgstr ""
|
1420 |
|
1421 |
-
#: app/helper/RTMediaSupport.php:
|
1422 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1423 |
msgid "Debug Info"
|
1424 |
msgstr ""
|
1425 |
|
1426 |
-
#: app/helper/RTMediaSupport.php:
|
1427 |
#: app/importers/RTMediaMigration.php:87
|
1428 |
msgid "Migration"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
-
#: app/helper/RTMediaSupport.php:
|
1432 |
msgid "Service"
|
1433 |
msgstr ""
|
1434 |
|
1435 |
-
#: app/helper/RTMediaSupport.php:
|
1436 |
msgid "Premium Support"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
-
#: app/helper/RTMediaSupport.php:
|
1440 |
msgid "Bug Report"
|
1441 |
msgstr ""
|
1442 |
|
1443 |
-
#: app/helper/RTMediaSupport.php:
|
1444 |
msgid "New Feature"
|
1445 |
msgstr ""
|
1446 |
|
1447 |
-
#: app/helper/RTMediaSupport.php:
|
1448 |
msgid "Submit"
|
1449 |
msgstr ""
|
1450 |
|
1451 |
-
#: app/helper/RTMediaSupport.php:
|
1452 |
msgid "by"
|
1453 |
msgstr ""
|
1454 |
|
1455 |
-
#: app/helper/RTMediaSupport.php:
|
1456 |
msgid "version"
|
1457 |
msgstr ""
|
1458 |
|
1459 |
-
#: app/helper/RTMediaSupport.php:
|
|
|
|
|
|
|
|
|
1460 |
msgid "There is no media found to migrate."
|
1461 |
msgstr ""
|
1462 |
|
1463 |
-
#: app/helper/RTMediaSupport.php:
|
1464 |
#: app/main/controllers/media/RTMediaLoginPopup.php:56
|
1465 |
msgid "Click"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
-
#: app/helper/RTMediaSupport.php:
|
1469 |
msgid "here to migrate media from rtMedia 2.x to rtMedia 3.0+."
|
1470 |
msgstr ""
|
1471 |
|
1472 |
-
#: app/helper/RTMediaSupport.php:
|
1473 |
msgid "Submit a Bug Report"
|
1474 |
msgstr ""
|
1475 |
|
1476 |
-
#: app/helper/RTMediaSupport.php:
|
1477 |
msgid "Submit a New Feature Request"
|
1478 |
msgstr ""
|
1479 |
|
1480 |
-
#: app/helper/RTMediaSupport.php:
|
1481 |
msgid "Submit Support Request"
|
1482 |
msgstr ""
|
1483 |
|
1484 |
-
#: app/helper/RTMediaSupport.php:
|
1485 |
msgid ""
|
1486 |
"If your site has some issues due to rtMedia and you want support, feel free "
|
1487 |
"to create a support topic on %s"
|
1488 |
msgstr ""
|
1489 |
|
1490 |
-
#: app/helper/RTMediaSupport.php:
|
1491 |
msgid "Community Forum"
|
1492 |
msgstr ""
|
1493 |
|
1494 |
-
#: app/helper/RTMediaSupport.php:
|
1495 |
msgid ""
|
1496 |
"If you have any suggestions, enhancements or bug reports, then you can open "
|
1497 |
"a new issue on %s"
|
1498 |
msgstr ""
|
1499 |
|
1500 |
-
#: app/helper/RTMediaSupport.php:
|
1501 |
msgid "Name"
|
1502 |
msgstr ""
|
1503 |
|
1504 |
-
#: app/helper/RTMediaSupport.php:
|
1505 |
msgid "Use actual user name which used during purchased."
|
1506 |
msgstr ""
|
1507 |
|
1508 |
-
#: app/helper/RTMediaSupport.php:
|
1509 |
msgid "Email"
|
1510 |
msgstr ""
|
1511 |
|
1512 |
-
#: app/helper/RTMediaSupport.php:
|
1513 |
msgid "Use email id which used during purchased"
|
1514 |
msgstr ""
|
1515 |
|
1516 |
-
#: app/helper/RTMediaSupport.php:
|
1517 |
msgid "Website"
|
1518 |
msgstr ""
|
1519 |
|
1520 |
-
#: app/helper/RTMediaSupport.php:
|
1521 |
msgid "Subject"
|
1522 |
msgstr ""
|
1523 |
|
1524 |
-
#: app/helper/RTMediaSupport.php:
|
1525 |
#: templates/media/media-single-edit.php:17
|
1526 |
msgid "Details"
|
1527 |
msgstr ""
|
1528 |
|
1529 |
-
#: app/helper/RTMediaSupport.php:
|
1530 |
-
msgid "
|
1531 |
msgstr ""
|
1532 |
|
1533 |
-
#: app/helper/RTMediaSupport.php:
|
1534 |
-
msgid "
|
1535 |
msgstr ""
|
1536 |
|
1537 |
-
#: app/helper/RTMediaSupport.php:
|
1538 |
msgid "rtMedia Premium Support Request from"
|
1539 |
msgstr ""
|
1540 |
|
1541 |
-
#: app/helper/RTMediaSupport.php:
|
1542 |
msgid "rtMedia New Feature Request from"
|
1543 |
msgstr ""
|
1544 |
|
1545 |
-
#: app/helper/RTMediaSupport.php:
|
1546 |
msgid "rtMedia Bug Report from"
|
1547 |
msgstr ""
|
1548 |
|
1549 |
-
#: app/helper/RTMediaSupport.php:
|
1550 |
msgid "rtMedia Contact from"
|
1551 |
msgstr ""
|
1552 |
|
1553 |
-
#: app/helper/RTMediaSupport.php:
|
1554 |
msgid "Thank you for your Feedback/Suggestion."
|
1555 |
msgstr ""
|
1556 |
|
1557 |
-
#: app/helper/RTMediaSupport.php:
|
1558 |
msgid "Thank you for posting your support request."
|
1559 |
msgstr ""
|
1560 |
|
1561 |
-
#: app/helper/RTMediaSupport.php:
|
1562 |
msgid "We will get back to you shortly."
|
1563 |
msgstr ""
|
1564 |
|
1565 |
-
#: app/helper/RTMediaSupport.php:
|
1566 |
msgid "Your server failed to send an email."
|
1567 |
msgstr ""
|
1568 |
|
1569 |
-
#: app/helper/RTMediaSupport.php:
|
1570 |
msgid "Kindly contact your server support to fix this."
|
1571 |
msgstr ""
|
1572 |
|
1573 |
-
#: app/helper/RTMediaSupport.php:
|
1574 |
msgid "You can alternatively create a support request %s"
|
1575 |
msgstr ""
|
1576 |
|
@@ -1777,6 +1795,18 @@ msgstr ""
|
|
1777 |
msgid "The method expects an array in arguments for %s provided."
|
1778 |
msgstr ""
|
1779 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1780 |
#: app/importers/BPMediaAlbumimporter.php:64
|
1781 |
msgid "Warning!"
|
1782 |
msgstr ""
|
@@ -1823,7 +1853,7 @@ msgstr ""
|
|
1823 |
msgid "Users"
|
1824 |
msgstr ""
|
1825 |
|
1826 |
-
#: app/importers/BPMediaAlbumimporter.php:89 app/main/RTMedia.php:
|
1827 |
msgid "Media"
|
1828 |
msgstr ""
|
1829 |
|
@@ -1943,7 +1973,7 @@ msgid "rtMedia: Upgrade rtMedia activity"
|
|
1943 |
msgstr ""
|
1944 |
|
1945 |
#: app/importers/RTMediaActivityUpgrade.php:179
|
1946 |
-
#: app/importers/RTMediaMediaSizeImporter.php:
|
1947 |
msgid "%s (estimated)"
|
1948 |
msgstr ""
|
1949 |
|
@@ -1952,10 +1982,10 @@ msgid "Media Size Import"
|
|
1952 |
msgstr ""
|
1953 |
|
1954 |
#: app/importers/RTMediaMediaSizeImporter.php:73
|
1955 |
-
msgid "to import media sizes. "
|
1956 |
msgstr ""
|
1957 |
|
1958 |
-
#: app/importers/RTMediaMediaSizeImporter.php:
|
1959 |
msgid "rtMedia: Import Media Size"
|
1960 |
msgstr ""
|
1961 |
|
@@ -2035,167 +2065,168 @@ msgstr ""
|
|
2035 |
msgid "No time remaining."
|
2036 |
msgstr ""
|
2037 |
|
2038 |
-
#: app/main/RTMedia.php:
|
2039 |
msgid "Photo"
|
2040 |
msgstr ""
|
2041 |
|
2042 |
-
#: app/main/RTMedia.php:
|
2043 |
msgid "Photos"
|
2044 |
msgstr ""
|
2045 |
|
2046 |
-
#: app/main/RTMedia.php:
|
2047 |
msgid "Video"
|
2048 |
msgstr ""
|
2049 |
|
2050 |
-
#: app/main/RTMedia.php:
|
2051 |
msgid "Videos"
|
2052 |
msgstr ""
|
2053 |
|
2054 |
-
#: app/main/RTMedia.php:
|
2055 |
msgid "Music"
|
2056 |
msgstr ""
|
2057 |
|
2058 |
-
#: app/main/RTMedia.php:
|
2059 |
msgid "Private - Visible only to the user"
|
2060 |
msgstr ""
|
2061 |
|
2062 |
-
#: app/main/RTMedia.php:
|
2063 |
msgid "Friends - Visible to user's friends"
|
2064 |
msgstr ""
|
2065 |
|
2066 |
-
#: app/main/RTMedia.php:
|
2067 |
msgid "Logged in Users - Visible to registered users"
|
2068 |
msgstr ""
|
2069 |
|
2070 |
-
#: app/main/RTMedia.php:
|
2071 |
msgid "Public - Visible to the world"
|
2072 |
msgstr ""
|
2073 |
|
2074 |
-
#: app/main/RTMedia.php:
|
2075 |
#: app/main/controllers/template/rtmedia-functions.php:114
|
2076 |
msgid "All"
|
2077 |
msgstr ""
|
2078 |
|
2079 |
-
#: app/main/RTMedia.php:
|
2080 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2081 |
#: app/main/controllers/upload/RTMediaUploadView.php:52
|
2082 |
#: app/main/controllers/upload/RTMediaUploadView.php:55
|
2083 |
msgid "Album"
|
2084 |
msgstr ""
|
2085 |
|
2086 |
-
#: app/main/RTMedia.php:
|
2087 |
#: app/main/controllers/media/RTMediaAlbum.php:53
|
2088 |
#: app/main/controllers/media/RTMediaAlbum.php:65
|
2089 |
msgid "Albums"
|
2090 |
msgstr ""
|
2091 |
|
2092 |
-
#: app/main/RTMedia.php:
|
2093 |
#: app/main/controllers/template/rtmedia-actions.php:307
|
2094 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
|
|
2095 |
msgid "Upload"
|
2096 |
msgstr ""
|
2097 |
|
2098 |
-
#: app/main/RTMedia.php:
|
2099 |
msgid "Wall Post"
|
2100 |
msgstr ""
|
2101 |
|
2102 |
-
#: app/main/RTMedia.php:
|
2103 |
msgid "Wall Posts"
|
2104 |
msgstr ""
|
2105 |
|
2106 |
-
#: app/main/RTMedia.php:
|
2107 |
msgid ": Can't Create Database table. Please check create table permission."
|
2108 |
msgstr ""
|
2109 |
|
2110 |
-
#: app/main/RTMedia.php:
|
2111 |
msgid "Loading media"
|
2112 |
msgstr ""
|
2113 |
|
2114 |
-
#: app/main/RTMedia.php:
|
2115 |
msgid "Please enter some content to post."
|
2116 |
msgstr ""
|
2117 |
|
2118 |
-
#: app/main/RTMedia.php:
|
2119 |
msgid "Empty Comment is not allowed."
|
2120 |
msgstr ""
|
2121 |
|
2122 |
-
#: app/main/RTMedia.php:
|
2123 |
msgid "Are you sure you want to delete this media?"
|
2124 |
msgstr ""
|
2125 |
|
2126 |
-
#: app/main/RTMedia.php:
|
2127 |
msgid "Are you sure you want to delete this comment?"
|
2128 |
msgstr ""
|
2129 |
|
2130 |
-
#: app/main/RTMedia.php:
|
2131 |
msgid "Are you sure you want to delete this Album?"
|
2132 |
msgstr ""
|
2133 |
|
2134 |
-
#: app/main/RTMedia.php:
|
2135 |
msgid "Drop files here"
|
2136 |
msgstr ""
|
2137 |
|
2138 |
-
#: app/main/RTMedia.php:
|
2139 |
msgid "album created successfully."
|
2140 |
msgstr ""
|
2141 |
|
2142 |
-
#: app/main/RTMedia.php:
|
2143 |
msgid "Something went wrong. Please try again."
|
2144 |
msgstr ""
|
2145 |
|
2146 |
-
#: app/main/RTMedia.php:
|
2147 |
msgid "Enter an album name."
|
2148 |
msgstr ""
|
2149 |
|
2150 |
-
#: app/main/RTMedia.php:
|
2151 |
msgid "Max file Size Limit : "
|
2152 |
msgstr ""
|
2153 |
|
2154 |
-
#: app/main/RTMedia.php:
|
2155 |
msgid "Allowed File Formats"
|
2156 |
msgstr ""
|
2157 |
|
2158 |
-
#: app/main/RTMedia.php:
|
2159 |
msgid "Select All Visible"
|
2160 |
msgstr ""
|
2161 |
|
2162 |
-
#: app/main/RTMedia.php:
|
2163 |
msgid "Unselect All Visible"
|
2164 |
msgstr ""
|
2165 |
|
2166 |
-
#: app/main/RTMedia.php:
|
2167 |
msgid "Please select some media."
|
2168 |
msgstr ""
|
2169 |
|
2170 |
-
#: app/main/RTMedia.php:
|
2171 |
msgid "Are you sure you want to delete the selected media?"
|
2172 |
msgstr ""
|
2173 |
|
2174 |
-
#: app/main/RTMedia.php:
|
2175 |
msgid "Are you sure you want to move the selected media?"
|
2176 |
msgstr ""
|
2177 |
|
2178 |
-
#: app/main/RTMedia.php:
|
2179 |
msgid "Waiting"
|
2180 |
msgstr ""
|
2181 |
|
2182 |
-
#: app/main/RTMedia.php:
|
2183 |
msgid "Uploaded"
|
2184 |
msgstr ""
|
2185 |
|
2186 |
-
#: app/main/RTMedia.php:
|
2187 |
msgid "Uploading"
|
2188 |
msgstr ""
|
2189 |
|
2190 |
-
#: app/main/RTMedia.php:
|
2191 |
msgid "Failed"
|
2192 |
msgstr ""
|
2193 |
|
2194 |
-
#: app/main/RTMedia.php:
|
2195 |
msgid "Close"
|
2196 |
msgstr ""
|
2197 |
|
2198 |
-
#: app/main/RTMedia.php:
|
2199 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:63
|
2200 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
|
2201 |
#: app/main/controllers/template/rtmedia-functions.php:1115
|
@@ -2203,76 +2234,84 @@ msgstr ""
|
|
2203 |
msgid "Edit"
|
2204 |
msgstr ""
|
2205 |
|
2206 |
-
#: app/main/RTMedia.php:
|
2207 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:67
|
2208 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
|
2209 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2210 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2211 |
#: templates/media/album-single-edit.php:78
|
2212 |
msgid "Delete"
|
2213 |
msgstr ""
|
2214 |
|
2215 |
-
#: app/main/RTMedia.php:
|
2216 |
msgid "Edit Media"
|
2217 |
msgstr ""
|
2218 |
|
2219 |
-
#: app/main/RTMedia.php:
|
2220 |
msgid "Remove from queue"
|
2221 |
msgstr ""
|
2222 |
|
2223 |
-
#: app/main/RTMedia.php:
|
2224 |
msgid "Add more files"
|
2225 |
msgstr ""
|
2226 |
|
2227 |
-
#: app/main/RTMedia.php:
|
2228 |
msgid "File not supported"
|
2229 |
msgstr ""
|
2230 |
|
2231 |
-
#: app/main/RTMedia.php:
|
2232 |
msgid "more"
|
2233 |
msgstr ""
|
2234 |
|
2235 |
-
#: app/main/RTMedia.php:
|
2236 |
msgid "less"
|
2237 |
msgstr ""
|
2238 |
|
2239 |
-
#: app/main/RTMedia.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2240 |
msgid "This media is uploaded. Are you sure you want to delete this media?"
|
2241 |
msgstr ""
|
2242 |
|
2243 |
-
#: app/main/RTMedia.php:
|
2244 |
msgid "Featured media set successfully."
|
2245 |
msgstr ""
|
2246 |
|
2247 |
-
#: app/main/RTMedia.php:
|
2248 |
msgid "Featured media removed successfully."
|
2249 |
msgstr ""
|
2250 |
|
2251 |
-
#: app/main/RTMedia.php:
|
2252 |
msgid "Title:"
|
2253 |
msgstr ""
|
2254 |
|
2255 |
-
#: app/main/RTMedia.php:
|
2256 |
msgid "Description:"
|
2257 |
msgstr ""
|
2258 |
|
2259 |
-
#: app/main/RTMedia.php:
|
2260 |
msgid "Edit File Name"
|
2261 |
msgstr ""
|
2262 |
|
2263 |
-
#: app/main/RTMedia.php:
|
2264 |
msgid "Privacy updated successfully."
|
2265 |
msgstr ""
|
2266 |
|
2267 |
-
#: app/main/RTMedia.php:
|
2268 |
msgid "Couldn't change privacy, please try again."
|
2269 |
msgstr ""
|
2270 |
|
2271 |
-
#: app/main/RTMedia.php:
|
2272 |
msgid "file deleted successfully."
|
2273 |
msgstr ""
|
2274 |
|
2275 |
-
#: app/main/RTMedia.php:
|
2276 |
msgid "There are some uploads in progress. Do you want to cancel them?"
|
2277 |
msgstr ""
|
2278 |
|
@@ -2282,7 +2321,7 @@ msgstr ""
|
|
2282 |
|
2283 |
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:323
|
2284 |
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:100
|
2285 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2286 |
msgid "You are not allowed to upload/attach media."
|
2287 |
msgstr ""
|
2288 |
|
@@ -2592,7 +2631,7 @@ msgid "Create"
|
|
2592 |
msgstr ""
|
2593 |
|
2594 |
#: app/main/controllers/media/RTMediaAlbum.php:56
|
2595 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2596 |
msgid "Create Album"
|
2597 |
msgstr ""
|
2598 |
|
@@ -2659,16 +2698,24 @@ msgid "Delete this media"
|
|
2659 |
msgstr ""
|
2660 |
|
2661 |
#: app/main/controllers/media/RTMediaLike.php:18
|
2662 |
-
msgid "
|
|
|
|
|
|
|
|
|
2663 |
msgstr ""
|
2664 |
|
2665 |
#: app/main/controllers/media/RTMediaLike.php:20
|
|
|
|
|
|
|
|
|
2666 |
msgid "Unlike"
|
2667 |
msgstr ""
|
2668 |
|
2669 |
#: app/main/controllers/media/RTMediaLoginPopup.php:38
|
2670 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2671 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2672 |
msgid "Upload Media"
|
2673 |
msgstr ""
|
2674 |
|
@@ -2748,7 +2795,7 @@ msgstr ""
|
|
2748 |
#: app/main/controllers/template/RTMediaTemplate.php:352
|
2749 |
#: app/main/controllers/template/RTMediaTemplate.php:445
|
2750 |
#: app/main/controllers/template/RTMediaTemplate.php:543
|
2751 |
-
#: app/main/controllers/template/RTMediaTemplate.php:
|
2752 |
msgid "Ooops !!! Invalid access. No nonce was found !!"
|
2753 |
msgstr ""
|
2754 |
|
@@ -2761,72 +2808,99 @@ msgid "Error in updating Media"
|
|
2761 |
msgstr ""
|
2762 |
|
2763 |
#: app/main/controllers/template/rtmedia-actions.php:15
|
2764 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2765 |
msgid "Options"
|
2766 |
msgstr ""
|
2767 |
|
2768 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2769 |
msgid "Image"
|
2770 |
msgstr ""
|
2771 |
|
2772 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2773 |
msgid "Modify Image"
|
2774 |
msgstr ""
|
2775 |
|
2776 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2777 |
msgid "Create an Album"
|
2778 |
msgstr ""
|
2779 |
|
2780 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2781 |
msgid "Album Title : "
|
2782 |
msgstr ""
|
2783 |
|
2784 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2785 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2786 |
#: app/main/controllers/template/rtmedia-filters.php:92
|
2787 |
msgid "Merge Album"
|
2788 |
msgstr ""
|
2789 |
|
2790 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2791 |
msgid "Select Album to merge with : "
|
2792 |
msgstr ""
|
2793 |
|
2794 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2795 |
msgid "Merge"
|
2796 |
msgstr ""
|
2797 |
|
2798 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2799 |
msgid "Empowering your community with "
|
2800 |
msgstr ""
|
2801 |
|
2802 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2803 |
msgid "The only complete media solution for WordPress, BuddyPress and bbPress"
|
2804 |
msgstr ""
|
2805 |
|
2806 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2807 |
msgid "Close (Esc)"
|
2808 |
msgstr ""
|
2809 |
|
2810 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2811 |
msgid "You can consider rtMedia Team for following :"
|
2812 |
msgstr ""
|
2813 |
|
2814 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2815 |
msgid "rtMedia Customization ( in Upgrade Safe manner )"
|
2816 |
msgstr ""
|
2817 |
|
2818 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2819 |
msgid "WordPress/BuddyPress Theme Design and Development"
|
2820 |
msgstr ""
|
2821 |
|
2822 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2823 |
msgid "WordPress/BuddyPress Plugin Development"
|
2824 |
msgstr ""
|
2825 |
|
2826 |
-
#: app/main/controllers/template/rtmedia-actions.php:
|
2827 |
msgid "Contact Us"
|
2828 |
msgstr ""
|
2829 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2830 |
#: app/main/controllers/template/rtmedia-filters.php:50
|
2831 |
msgid "Create New Album"
|
2832 |
msgstr ""
|
@@ -2839,90 +2913,100 @@ msgstr ""
|
|
2839 |
msgid "Delete Album"
|
2840 |
msgstr ""
|
2841 |
|
2842 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2843 |
msgid "There are no comments on this media yet."
|
2844 |
msgstr ""
|
2845 |
|
2846 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2847 |
msgid "Delete Comment"
|
2848 |
msgstr ""
|
2849 |
|
2850 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2851 |
msgid "Go to page no : "
|
2852 |
msgstr ""
|
2853 |
|
2854 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2855 |
msgid "Go"
|
2856 |
msgstr ""
|
2857 |
|
2858 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2859 |
msgid "Type Comment..."
|
2860 |
msgstr ""
|
2861 |
|
2862 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2863 |
-
#: templates/media/media-single.php:
|
2864 |
msgid "Comment"
|
2865 |
msgstr ""
|
2866 |
|
2867 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2868 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2869 |
msgid "Delete Media"
|
2870 |
msgstr ""
|
2871 |
|
2872 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2873 |
msgid "Profile Albums"
|
2874 |
msgstr ""
|
2875 |
|
2876 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2877 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2878 |
msgid "Group Albums"
|
2879 |
msgstr ""
|
2880 |
|
2881 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2882 |
msgid "Privacy : "
|
2883 |
msgstr ""
|
2884 |
|
2885 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2886 |
-
msgid "
|
|
|
|
|
|
|
|
|
2887 |
msgstr ""
|
2888 |
|
2889 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
2890 |
msgid "Public"
|
2891 |
msgstr ""
|
2892 |
|
2893 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2894 |
msgid "All members"
|
2895 |
msgstr ""
|
2896 |
|
2897 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2898 |
msgid "Your friends"
|
2899 |
msgstr ""
|
2900 |
|
2901 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2902 |
msgid "Only you"
|
2903 |
msgstr ""
|
2904 |
|
2905 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2906 |
msgid "Blocked temporarily"
|
2907 |
msgstr ""
|
2908 |
|
2909 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2910 |
msgid "%s ago "
|
2911 |
msgstr ""
|
2912 |
|
2913 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2914 |
msgid "1 second"
|
2915 |
msgid_plural "%s seconds"
|
2916 |
msgstr[0] ""
|
2917 |
msgstr[1] ""
|
2918 |
|
2919 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2920 |
msgid "1 minute"
|
2921 |
msgid_plural "%s minutes"
|
2922 |
msgstr[0] ""
|
2923 |
msgstr[1] ""
|
2924 |
|
2925 |
-
#: app/main/controllers/template/rtmedia-functions.php:
|
2926 |
msgid "1 hour"
|
2927 |
msgid_plural "%s hours"
|
2928 |
msgstr[0] ""
|
@@ -3057,10 +3141,6 @@ msgstr ""
|
|
3057 |
msgid "Prev"
|
3058 |
msgstr ""
|
3059 |
|
3060 |
-
#: templates/media/album-single-edit.php:121
|
3061 |
-
msgid "Next"
|
3062 |
-
msgstr ""
|
3063 |
-
|
3064 |
#: templates/media/album-single-edit.php:124
|
3065 |
msgid "The album is empty."
|
3066 |
msgstr ""
|
@@ -3081,7 +3161,7 @@ msgstr ""
|
|
3081 |
msgid "Sorry !! You do not have rights to edit this media"
|
3082 |
msgstr ""
|
3083 |
|
3084 |
-
#: templates/media/media-single.php:
|
3085 |
msgid "under"
|
3086 |
msgstr ""
|
3087 |
|
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.1.8\n"
|
6 |
"Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
|
7 |
+
"POT-Creation-Date: 2016-11-17 07:06:14+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
107 |
msgid "Comments "
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: app/admin/RTMediaAdmin.php:644 app/main/controllers/media/RTMediaLike.php:21
|
111 |
msgid "Likes"
|
112 |
msgstr ""
|
113 |
|
132 |
msgstr ""
|
133 |
|
134 |
#: app/admin/RTMediaAdmin.php:712 app/admin/RTMediaAdmin.php:746
|
135 |
+
#: app/admin/RTMediaAdmin.php:749 app/admin/RTMediaAdmin.php:925
|
136 |
+
#: app/admin/RTMediaAdmin.php:1272
|
137 |
msgid "Settings"
|
138 |
msgstr ""
|
139 |
|
140 |
#: app/admin/RTMediaAdmin.php:714 app/admin/RTMediaAdmin.php:770
|
141 |
+
#: app/admin/RTMediaAdmin.php:773 app/admin/RTMediaAdmin.php:935
|
142 |
+
#: app/admin/RTMediaAdmin.php:1298 app/helper/RTMediaSettings.php:221
|
143 |
+
#: app/helper/RTMediaSupport.php:67 app/helper/RTMediaSupport.php:68
|
144 |
msgid "Support"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: app/admin/RTMediaAdmin.php:739 app/admin/RTMediaAdmin.php:1244
|
148 |
+
#: app/admin/RTMediaAdmin.php:1245 app/importers/RTMediaActivityUpgrade.php:116
|
149 |
+
#: app/importers/RTMediaMigration.php:68 app/main/RTMedia.php:939
|
150 |
msgid "rtMedia"
|
151 |
msgstr ""
|
152 |
|
153 |
#: app/admin/RTMediaAdmin.php:758 app/admin/RTMediaAdmin.php:761
|
154 |
+
#: app/admin/RTMediaAdmin.php:930 app/admin/RTMediaAdmin.php:1277
|
155 |
msgid "Addons"
|
156 |
msgstr ""
|
157 |
|
158 |
#: app/admin/RTMediaAdmin.php:782 app/admin/RTMediaAdmin.php:785
|
159 |
+
#: app/admin/RTMediaAdmin.php:941 app/admin/RTMediaAdmin.php:1285
|
160 |
msgid "Themes"
|
161 |
msgstr ""
|
162 |
|
163 |
#: app/admin/RTMediaAdmin.php:795 app/admin/RTMediaAdmin.php:798
|
164 |
+
#: app/admin/RTMediaAdmin.php:948 app/admin/RTMediaAdmin.php:1291
|
165 |
msgid "Hire Us"
|
166 |
msgstr ""
|
167 |
|
168 |
#: app/admin/RTMediaAdmin.php:808 app/admin/RTMediaAdmin.php:811
|
169 |
+
#: app/admin/RTMediaAdmin.php:955 app/admin/RTMediaAdmin.php:1305
|
170 |
msgid "Licenses"
|
171 |
msgstr ""
|
172 |
|
178 |
msgid "OFF"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: app/admin/RTMediaAdmin.php:870
|
182 |
msgid "Please do not refresh this page."
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: app/admin/RTMediaAdmin.php:871
|
186 |
msgid "Something went wrong. Please "
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: app/admin/RTMediaAdmin.php:871
|
190 |
msgid "refresh"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: app/admin/RTMediaAdmin.php:871
|
194 |
msgid " page."
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: app/admin/RTMediaAdmin.php:872
|
198 |
msgid "This will subscribe you to the free plan."
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: app/admin/RTMediaAdmin.php:873
|
202 |
msgid "Are you sure you want to disable the encoding service?"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: app/admin/RTMediaAdmin.php:874
|
206 |
msgid "Are you sure you want to enable the encoding service?"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: app/admin/RTMediaAdmin.php:875
|
210 |
msgid "Settings have changed, you should save them!"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: app/admin/RTMediaAdmin.php:876
|
214 |
msgid ""
|
215 |
"Number of video thumbnails to be generated should be greater than 0 in "
|
216 |
"media sizes settings. Setting it to default value 2."
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: app/admin/RTMediaAdmin.php:877
|
220 |
msgid ""
|
221 |
"Invalid value for number of video thumbnails in media sizes settings. "
|
222 |
"Setting it to round value"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: app/admin/RTMediaAdmin.php:878
|
226 |
msgid ""
|
227 |
"Number of percentage in JPEG image quality should be greater than 0 in "
|
228 |
"media sizes settings. Setting it to default value 90."
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: app/admin/RTMediaAdmin.php:879
|
232 |
msgid ""
|
233 |
"Number of percentage in JPEG image quality should be less than 100 in media "
|
234 |
"sizes settings. Setting it to 100."
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: app/admin/RTMediaAdmin.php:880
|
238 |
msgid ""
|
239 |
"Invalid value for percentage in JPEG image quality in media sizes settings. "
|
240 |
"Setting it to round value"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: app/admin/RTMediaAdmin.php:881
|
244 |
msgid ""
|
245 |
"Please enter positive integer value only. Setting number of media per page "
|
246 |
"value to default value 10."
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: app/admin/RTMediaAdmin.php:882
|
250 |
msgid ""
|
251 |
"Please enter positive integer value only. Setting number of media per page "
|
252 |
"value to round value"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: app/admin/RTMediaAdmin.php:883
|
256 |
msgid "Request failed."
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: app/admin/RTMediaAdmin.php:891
|
260 |
msgid "Please enter WP Admin Login."
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: app/admin/RTMediaAdmin.php:892
|
264 |
msgid "Please enter WP Admin password."
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: app/admin/RTMediaAdmin.php:893
|
268 |
msgid "Please enter SSH / FTP host."
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: app/admin/RTMediaAdmin.php:894
|
272 |
msgid "Please enter SSH / FTP login."
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: app/admin/RTMediaAdmin.php:895
|
276 |
msgid "Please enter SSH / FTP password."
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: app/admin/RTMediaAdmin.php:896
|
280 |
msgid "Please fill all the fields."
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: app/admin/RTMediaAdmin.php:1126
|
284 |
msgid "Empowering The Web With WordPress"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: app/admin/RTMediaAdmin.php:1147
|
288 |
msgid "Settings saved successfully!"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: app/admin/RTMediaAdmin.php:1153 app/admin/RTMediaAdmin.php:1182
|
292 |
msgid "Save Settings"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: app/admin/RTMediaAdmin.php:1379 app/admin/RTMediaAdmin.php:1380
|
296 |
msgid "Display"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: app/admin/RTMediaAdmin.php:1388
|
300 |
msgid "rtMedia BuddyPress"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: app/admin/RTMediaAdmin.php:1389
|
304 |
msgid "BuddyPress"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: app/admin/RTMediaAdmin.php:1397
|
308 |
msgid "rtMedia Types"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: app/admin/RTMediaAdmin.php:1398
|
312 |
msgid "Types"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: app/admin/RTMediaAdmin.php:1405
|
316 |
msgid "rtMedia Sizes"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: app/admin/RTMediaAdmin.php:1406
|
320 |
msgid "Media Sizes"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: app/admin/RTMediaAdmin.php:1413
|
324 |
msgid "rtMedia Privacy"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: app/admin/RTMediaAdmin.php:1414
|
328 |
#: app/main/controllers/privacy/RTMediaPrivacy.php:417
|
329 |
msgid "Privacy"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: app/admin/RTMediaAdmin.php:1420
|
333 |
msgid "rtMedia Custom CSS"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: app/admin/RTMediaAdmin.php:1421
|
337 |
msgid "Custom CSS"
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: app/admin/RTMediaAdmin.php:1430 app/admin/RTMediaAdmin.php:1431
|
341 |
msgid "Other Settings"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: app/admin/RTMediaAdmin.php:1478
|
345 |
msgid "I use @rtMediaWP http://rt.cx/rtmedia on %s"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: app/admin/RTMediaAdmin.php:1480
|
349 |
msgid "Post to Twitter Now"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: app/admin/RTMediaAdmin.php:1480
|
353 |
msgid "Post to Twitter"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: app/admin/RTMediaAdmin.php:1481
|
357 |
msgid "Share on Facebook Now"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: app/admin/RTMediaAdmin.php:1481
|
361 |
msgid "Share on Facebook"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: app/admin/RTMediaAdmin.php:1482
|
365 |
msgid "Rate rtMedia on Wordpress.org"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: app/admin/RTMediaAdmin.php:1482
|
369 |
msgid "Rate on Wordpress.org"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: app/admin/RTMediaAdmin.php:1483
|
373 |
msgid "Subscribe to our Feeds"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: app/admin/RTMediaAdmin.php:1486
|
377 |
msgid "Spread the Word"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: app/admin/RTMediaAdmin.php:1492 app/admin/RTMediaAdmin.php:1499
|
381 |
msgid "Subscribe"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: app/admin/RTMediaAdmin.php:1530
|
385 |
msgid "Thank you for your time."
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: app/admin/RTMediaAdmin.php:1543
|
389 |
msgid "Premium Add-ons"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: app/admin/RTMediaAdmin.php:1561
|
393 |
msgid ""
|
394 |
"You have images enabled on rtMedia but your network allowed filetypes do "
|
395 |
"not permit uploading of %s. Click "
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: app/admin/RTMediaAdmin.php:1562 app/admin/RTMediaAdmin.php:1580
|
399 |
+
#: app/admin/RTMediaAdmin.php:1598 app/admin/RTMediaFormHandler.php:435
|
400 |
#: app/admin/RTMediaFormHandler.php:446 app/helper/RTMediaSettings.php:297
|
401 |
+
#: app/helper/RTMediaSupport.php:416 app/helper/RTMediaSupport.php:697
|
402 |
msgid "here"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: app/admin/RTMediaAdmin.php:1563 app/admin/RTMediaAdmin.php:1581
|
406 |
+
#: app/admin/RTMediaAdmin.php:1599
|
407 |
msgid " to change your settings manually."
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: app/admin/RTMediaAdmin.php:1565 app/admin/RTMediaAdmin.php:1583
|
411 |
+
#: app/admin/RTMediaAdmin.php:1601
|
412 |
msgid "Recommended:"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: app/admin/RTMediaAdmin.php:1566 app/admin/RTMediaAdmin.php:1584
|
416 |
+
#: app/admin/RTMediaAdmin.php:1602
|
417 |
msgid "Update Network Settings Automatically"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: app/admin/RTMediaAdmin.php:1579
|
421 |
msgid ""
|
422 |
"You have video enabled on BuddyPress Media but your network allowed "
|
423 |
"filetypes do not permit uploading of mp4. Click "
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: app/admin/RTMediaAdmin.php:1597
|
427 |
msgid ""
|
428 |
"You have audio enabled on BuddyPress Media but your network allowed "
|
429 |
"filetypes do not permit uploading of mp3. Click "
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: app/admin/RTMediaAdmin.php:1618
|
433 |
msgid "Network settings updated successfully."
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: app/admin/RTMediaAdmin.php:1671
|
437 |
msgid ""
|
438 |
"Please update rtMedia template files if you have overridden the default "
|
439 |
"rtMedia templates in your theme. If not, you can ignore and hide this "
|
440 |
"notice."
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: app/admin/RTMediaAdmin.php:1671
|
444 |
#: app/importers/RTMediaMediaSizeImporter.php:73
|
445 |
#: app/importers/RTMediaMigration.php:68
|
446 |
msgid "Hide"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: app/admin/RTMediaAdmin.php:1811
|
450 |
msgid ""
|
451 |
"Your license keys can be found on <a href=\"%s\">my-account</a> page. For "
|
452 |
"more details, please refer to <a href=\"%s\">License documentation</a> page."
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: app/admin/RTMediaAdmin.php:1828
|
456 |
msgid ""
|
457 |
"We found an invalid or expired license key for an rtMedia add-on. Please go "
|
458 |
"to the <a href=\"%s\">Licenses page</a> to fix this issue."
|
1316 |
"possible upgrades</a> now."
|
1317 |
msgstr ""
|
1318 |
|
1319 |
+
#: app/helper/RTMediaLicense.php:189
|
1320 |
+
msgid ""
|
1321 |
+
"Your license is not activable, please visit <a href=\"%s\">your account "
|
1322 |
+
"page</a>."
|
1323 |
+
msgstr ""
|
1324 |
+
|
1325 |
+
#: app/helper/RTMediaLicense.php:198 app/helper/RTMediaLicense.php:252
|
1326 |
+
msgid "To receive updates, please enter your valid license key."
|
1327 |
+
msgstr ""
|
1328 |
+
|
1329 |
+
#: app/helper/RTMediaLicense.php:217
|
1330 |
msgid "License key never expires."
|
1331 |
msgstr ""
|
1332 |
|
1333 |
+
#: app/helper/RTMediaLicense.php:226
|
1334 |
msgid "Your license key expires soon! It expires on %1$s. Renew your license key."
|
1335 |
msgstr ""
|
1336 |
|
1337 |
+
#: app/helper/RTMediaLicense.php:237
|
1338 |
msgid "Your license key expires on %s."
|
1339 |
msgstr ""
|
1340 |
|
|
|
|
|
|
|
|
|
1341 |
#: app/helper/RTMediaLikeNotification.php:93
|
1342 |
msgid "liked your"
|
1343 |
msgstr ""
|
1420 |
"a new issue on "
|
1421 |
msgstr ""
|
1422 |
|
1423 |
+
#: app/helper/RTMediaSettings.php:403 app/helper/RTMediaSupport.php:467
|
1424 |
msgid "GitHub"
|
1425 |
msgstr ""
|
1426 |
|
1427 |
+
#: app/helper/RTMediaSupport.php:43 app/helper/RTMediaSupport.php:577
|
1428 |
+
msgid "Cheatin' uh?"
|
1429 |
+
msgstr ""
|
1430 |
+
|
1431 |
+
#: app/helper/RTMediaSupport.php:44 app/helper/RTMediaSupport.php:578
|
1432 |
+
msgid "Can not verify request source."
|
1433 |
+
msgstr ""
|
1434 |
+
|
1435 |
+
#: app/helper/RTMediaSupport.php:74 app/helper/RTMediaSupport.php:75
|
1436 |
+
#: app/helper/RTMediaSupport.php:351
|
1437 |
msgid "Debug Info"
|
1438 |
msgstr ""
|
1439 |
|
1440 |
+
#: app/helper/RTMediaSupport.php:84 app/helper/RTMediaSupport.php:85
|
1441 |
#: app/importers/RTMediaMigration.php:87
|
1442 |
msgid "Migration"
|
1443 |
msgstr ""
|
1444 |
|
1445 |
+
#: app/helper/RTMediaSupport.php:157
|
1446 |
msgid "Service"
|
1447 |
msgstr ""
|
1448 |
|
1449 |
+
#: app/helper/RTMediaSupport.php:164
|
1450 |
msgid "Premium Support"
|
1451 |
msgstr ""
|
1452 |
|
1453 |
+
#: app/helper/RTMediaSupport.php:170
|
1454 |
msgid "Bug Report"
|
1455 |
msgstr ""
|
1456 |
|
1457 |
+
#: app/helper/RTMediaSupport.php:176
|
1458 |
msgid "New Feature"
|
1459 |
msgstr ""
|
1460 |
|
1461 |
+
#: app/helper/RTMediaSupport.php:178
|
1462 |
msgid "Submit"
|
1463 |
msgstr ""
|
1464 |
|
1465 |
+
#: app/helper/RTMediaSupport.php:225
|
1466 |
msgid "by"
|
1467 |
msgstr ""
|
1468 |
|
1469 |
+
#: app/helper/RTMediaSupport.php:225
|
1470 |
msgid "version"
|
1471 |
msgstr ""
|
1472 |
|
1473 |
+
#: app/helper/RTMediaSupport.php:371
|
1474 |
+
msgid "Download Debug Info"
|
1475 |
+
msgstr ""
|
1476 |
+
|
1477 |
+
#: app/helper/RTMediaSupport.php:410
|
1478 |
msgid "There is no media found to migrate."
|
1479 |
msgstr ""
|
1480 |
|
1481 |
+
#: app/helper/RTMediaSupport.php:416
|
1482 |
#: app/main/controllers/media/RTMediaLoginPopup.php:56
|
1483 |
msgid "Click"
|
1484 |
msgstr ""
|
1485 |
|
1486 |
+
#: app/helper/RTMediaSupport.php:416
|
1487 |
msgid "here to migrate media from rtMedia 2.x to rtMedia 3.0+."
|
1488 |
msgstr ""
|
1489 |
|
1490 |
+
#: app/helper/RTMediaSupport.php:444
|
1491 |
msgid "Submit a Bug Report"
|
1492 |
msgstr ""
|
1493 |
|
1494 |
+
#: app/helper/RTMediaSupport.php:447
|
1495 |
msgid "Submit a New Feature Request"
|
1496 |
msgstr ""
|
1497 |
|
1498 |
+
#: app/helper/RTMediaSupport.php:450
|
1499 |
msgid "Submit Support Request"
|
1500 |
msgstr ""
|
1501 |
|
1502 |
+
#: app/helper/RTMediaSupport.php:459
|
1503 |
msgid ""
|
1504 |
"If your site has some issues due to rtMedia and you want support, feel free "
|
1505 |
"to create a support topic on %s"
|
1506 |
msgstr ""
|
1507 |
|
1508 |
+
#: app/helper/RTMediaSupport.php:460
|
1509 |
msgid "Community Forum"
|
1510 |
msgstr ""
|
1511 |
|
1512 |
+
#: app/helper/RTMediaSupport.php:466
|
1513 |
msgid ""
|
1514 |
"If you have any suggestions, enhancements or bug reports, then you can open "
|
1515 |
"a new issue on %s"
|
1516 |
msgstr ""
|
1517 |
|
1518 |
+
#: app/helper/RTMediaSupport.php:486
|
1519 |
msgid "Name"
|
1520 |
msgstr ""
|
1521 |
|
1522 |
+
#: app/helper/RTMediaSupport.php:491
|
1523 |
msgid "Use actual user name which used during purchased."
|
1524 |
msgstr ""
|
1525 |
|
1526 |
+
#: app/helper/RTMediaSupport.php:498
|
1527 |
msgid "Email"
|
1528 |
msgstr ""
|
1529 |
|
1530 |
+
#: app/helper/RTMediaSupport.php:503
|
1531 |
msgid "Use email id which used during purchased"
|
1532 |
msgstr ""
|
1533 |
|
1534 |
+
#: app/helper/RTMediaSupport.php:510
|
1535 |
msgid "Website"
|
1536 |
msgstr ""
|
1537 |
|
1538 |
+
#: app/helper/RTMediaSupport.php:518
|
1539 |
msgid "Subject"
|
1540 |
msgstr ""
|
1541 |
|
1542 |
+
#: app/helper/RTMediaSupport.php:526 templates/media/album-single-edit.php:20
|
1543 |
#: templates/media/media-single-edit.php:17
|
1544 |
msgid "Details"
|
1545 |
msgstr ""
|
1546 |
|
1547 |
+
#: app/helper/RTMediaSupport.php:542
|
1548 |
+
msgid "Attachement"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
+
#: app/helper/RTMediaSupport.php:547
|
1552 |
+
msgid "Allowed file types are : images, documents and texts."
|
1553 |
msgstr ""
|
1554 |
|
1555 |
+
#: app/helper/RTMediaSupport.php:593
|
1556 |
msgid "rtMedia Premium Support Request from"
|
1557 |
msgstr ""
|
1558 |
|
1559 |
+
#: app/helper/RTMediaSupport.php:596
|
1560 |
msgid "rtMedia New Feature Request from"
|
1561 |
msgstr ""
|
1562 |
|
1563 |
+
#: app/helper/RTMediaSupport.php:599
|
1564 |
msgid "rtMedia Bug Report from"
|
1565 |
msgstr ""
|
1566 |
|
1567 |
+
#: app/helper/RTMediaSupport.php:602
|
1568 |
msgid "rtMedia Contact from"
|
1569 |
msgstr ""
|
1570 |
|
1571 |
+
#: app/helper/RTMediaSupport.php:684
|
1572 |
msgid "Thank you for your Feedback/Suggestion."
|
1573 |
msgstr ""
|
1574 |
|
1575 |
+
#: app/helper/RTMediaSupport.php:686
|
1576 |
msgid "Thank you for posting your support request."
|
1577 |
msgstr ""
|
1578 |
|
1579 |
+
#: app/helper/RTMediaSupport.php:687
|
1580 |
msgid "We will get back to you shortly."
|
1581 |
msgstr ""
|
1582 |
|
1583 |
+
#: app/helper/RTMediaSupport.php:692
|
1584 |
msgid "Your server failed to send an email."
|
1585 |
msgstr ""
|
1586 |
|
1587 |
+
#: app/helper/RTMediaSupport.php:693
|
1588 |
msgid "Kindly contact your server support to fix this."
|
1589 |
msgstr ""
|
1590 |
|
1591 |
+
#: app/helper/RTMediaSupport.php:696
|
1592 |
msgid "You can alternatively create a support request %s"
|
1593 |
msgstr ""
|
1594 |
|
1795 |
msgid "The method expects an array in arguments for %s provided."
|
1796 |
msgstr ""
|
1797 |
|
1798 |
+
#: app/helper/rtUploadAttachment.php:30
|
1799 |
+
msgid "You can not upload more than 2 MB."
|
1800 |
+
msgstr ""
|
1801 |
+
|
1802 |
+
#: app/helper/rtUploadAttachment.php:36
|
1803 |
+
msgid "There was an error uploading your files"
|
1804 |
+
msgstr ""
|
1805 |
+
|
1806 |
+
#: app/helper/rtUploadAttachment.php:39
|
1807 |
+
msgid "Form was submitted"
|
1808 |
+
msgstr ""
|
1809 |
+
|
1810 |
#: app/importers/BPMediaAlbumimporter.php:64
|
1811 |
msgid "Warning!"
|
1812 |
msgstr ""
|
1853 |
msgid "Users"
|
1854 |
msgstr ""
|
1855 |
|
1856 |
+
#: app/importers/BPMediaAlbumimporter.php:89 app/main/RTMedia.php:628
|
1857 |
msgid "Media"
|
1858 |
msgstr ""
|
1859 |
|
1973 |
msgstr ""
|
1974 |
|
1975 |
#: app/importers/RTMediaActivityUpgrade.php:179
|
1976 |
+
#: app/importers/RTMediaMediaSizeImporter.php:109
|
1977 |
msgid "%s (estimated)"
|
1978 |
msgstr ""
|
1979 |
|
1982 |
msgstr ""
|
1983 |
|
1984 |
#: app/importers/RTMediaMediaSizeImporter.php:73
|
1985 |
+
msgid " to import media sizes. "
|
1986 |
msgstr ""
|
1987 |
|
1988 |
+
#: app/importers/RTMediaMediaSizeImporter.php:106
|
1989 |
msgid "rtMedia: Import Media Size"
|
1990 |
msgstr ""
|
1991 |
|
2065 |
msgid "No time remaining."
|
2066 |
msgstr ""
|
2067 |
|
2068 |
+
#: app/main/RTMedia.php:359
|
2069 |
msgid "Photo"
|
2070 |
msgstr ""
|
2071 |
|
2072 |
+
#: app/main/RTMedia.php:360
|
2073 |
msgid "Photos"
|
2074 |
msgstr ""
|
2075 |
|
2076 |
+
#: app/main/RTMedia.php:368
|
2077 |
msgid "Video"
|
2078 |
msgstr ""
|
2079 |
|
2080 |
+
#: app/main/RTMedia.php:369
|
2081 |
msgid "Videos"
|
2082 |
msgstr ""
|
2083 |
|
2084 |
+
#: app/main/RTMedia.php:377 app/main/RTMedia.php:378
|
2085 |
msgid "Music"
|
2086 |
msgstr ""
|
2087 |
|
2088 |
+
#: app/main/RTMedia.php:469
|
2089 |
msgid "Private - Visible only to the user"
|
2090 |
msgstr ""
|
2091 |
|
2092 |
+
#: app/main/RTMedia.php:470
|
2093 |
msgid "Friends - Visible to user's friends"
|
2094 |
msgstr ""
|
2095 |
|
2096 |
+
#: app/main/RTMedia.php:471
|
2097 |
msgid "Logged in Users - Visible to registered users"
|
2098 |
msgstr ""
|
2099 |
|
2100 |
+
#: app/main/RTMedia.php:472
|
2101 |
msgid "Public - Visible to the world"
|
2102 |
msgstr ""
|
2103 |
|
2104 |
+
#: app/main/RTMedia.php:636 app/main/controllers/template/RTMediaNav.php:213
|
2105 |
#: app/main/controllers/template/rtmedia-functions.php:114
|
2106 |
msgid "All"
|
2107 |
msgstr ""
|
2108 |
|
2109 |
+
#: app/main/RTMedia.php:648 app/main/controllers/media/RTMediaAlbum.php:54
|
2110 |
+
#: app/main/controllers/template/rtmedia-actions.php:117
|
2111 |
#: app/main/controllers/upload/RTMediaUploadView.php:52
|
2112 |
#: app/main/controllers/upload/RTMediaUploadView.php:55
|
2113 |
msgid "Album"
|
2114 |
msgstr ""
|
2115 |
|
2116 |
+
#: app/main/RTMedia.php:652 app/main/RTMedia.php:1051
|
2117 |
#: app/main/controllers/media/RTMediaAlbum.php:53
|
2118 |
#: app/main/controllers/media/RTMediaAlbum.php:65
|
2119 |
msgid "Albums"
|
2120 |
msgstr ""
|
2121 |
|
2122 |
+
#: app/main/RTMedia.php:662 app/main/controllers/media/RTMediaLoginPopup.php:38
|
2123 |
#: app/main/controllers/template/rtmedia-actions.php:307
|
2124 |
+
#: app/main/controllers/template/rtmedia-actions.php:310
|
2125 |
+
#: app/main/controllers/template/rtmedia-actions.php:314
|
2126 |
msgid "Upload"
|
2127 |
msgstr ""
|
2128 |
|
2129 |
+
#: app/main/RTMedia.php:667
|
2130 |
msgid "Wall Post"
|
2131 |
msgstr ""
|
2132 |
|
2133 |
+
#: app/main/RTMedia.php:886 app/main/RTMedia.php:895
|
2134 |
msgid "Wall Posts"
|
2135 |
msgstr ""
|
2136 |
|
2137 |
+
#: app/main/RTMedia.php:939
|
2138 |
msgid ": Can't Create Database table. Please check create table permission."
|
2139 |
msgstr ""
|
2140 |
|
2141 |
+
#: app/main/RTMedia.php:994
|
2142 |
msgid "Loading media"
|
2143 |
msgstr ""
|
2144 |
|
2145 |
+
#: app/main/RTMedia.php:995
|
2146 |
msgid "Please enter some content to post."
|
2147 |
msgstr ""
|
2148 |
|
2149 |
+
#: app/main/RTMedia.php:996
|
2150 |
msgid "Empty Comment is not allowed."
|
2151 |
msgstr ""
|
2152 |
|
2153 |
+
#: app/main/RTMedia.php:997
|
2154 |
msgid "Are you sure you want to delete this media?"
|
2155 |
msgstr ""
|
2156 |
|
2157 |
+
#: app/main/RTMedia.php:998
|
2158 |
msgid "Are you sure you want to delete this comment?"
|
2159 |
msgstr ""
|
2160 |
|
2161 |
+
#: app/main/RTMedia.php:999
|
2162 |
msgid "Are you sure you want to delete this Album?"
|
2163 |
msgstr ""
|
2164 |
|
2165 |
+
#: app/main/RTMedia.php:1000
|
2166 |
msgid "Drop files here"
|
2167 |
msgstr ""
|
2168 |
|
2169 |
+
#: app/main/RTMedia.php:1001
|
2170 |
msgid "album created successfully."
|
2171 |
msgstr ""
|
2172 |
|
2173 |
+
#: app/main/RTMedia.php:1002
|
2174 |
msgid "Something went wrong. Please try again."
|
2175 |
msgstr ""
|
2176 |
|
2177 |
+
#: app/main/RTMedia.php:1003
|
2178 |
msgid "Enter an album name."
|
2179 |
msgstr ""
|
2180 |
|
2181 |
+
#: app/main/RTMedia.php:1004
|
2182 |
msgid "Max file Size Limit : "
|
2183 |
msgstr ""
|
2184 |
|
2185 |
+
#: app/main/RTMedia.php:1005
|
2186 |
msgid "Allowed File Formats"
|
2187 |
msgstr ""
|
2188 |
|
2189 |
+
#: app/main/RTMedia.php:1006 templates/media/album-single-edit.php:73
|
2190 |
msgid "Select All Visible"
|
2191 |
msgstr ""
|
2192 |
|
2193 |
+
#: app/main/RTMedia.php:1007
|
2194 |
msgid "Unselect All Visible"
|
2195 |
msgstr ""
|
2196 |
|
2197 |
+
#: app/main/RTMedia.php:1008
|
2198 |
msgid "Please select some media."
|
2199 |
msgstr ""
|
2200 |
|
2201 |
+
#: app/main/RTMedia.php:1009
|
2202 |
msgid "Are you sure you want to delete the selected media?"
|
2203 |
msgstr ""
|
2204 |
|
2205 |
+
#: app/main/RTMedia.php:1010
|
2206 |
msgid "Are you sure you want to move the selected media?"
|
2207 |
msgstr ""
|
2208 |
|
2209 |
+
#: app/main/RTMedia.php:1011
|
2210 |
msgid "Waiting"
|
2211 |
msgstr ""
|
2212 |
|
2213 |
+
#: app/main/RTMedia.php:1012
|
2214 |
msgid "Uploaded"
|
2215 |
msgstr ""
|
2216 |
|
2217 |
+
#: app/main/RTMedia.php:1013
|
2218 |
msgid "Uploading"
|
2219 |
msgstr ""
|
2220 |
|
2221 |
+
#: app/main/RTMedia.php:1014
|
2222 |
msgid "Failed"
|
2223 |
msgstr ""
|
2224 |
|
2225 |
+
#: app/main/RTMedia.php:1015
|
2226 |
msgid "Close"
|
2227 |
msgstr ""
|
2228 |
|
2229 |
+
#: app/main/RTMedia.php:1016
|
2230 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:63
|
2231 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
|
2232 |
#: app/main/controllers/template/rtmedia-functions.php:1115
|
2234 |
msgid "Edit"
|
2235 |
msgstr ""
|
2236 |
|
2237 |
+
#: app/main/RTMedia.php:1017
|
2238 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:67
|
2239 |
#: app/main/controllers/media/RTMediaGalleryItemAction.php:80
|
2240 |
+
#: app/main/controllers/template/rtmedia-functions.php:1915
|
2241 |
+
#: app/main/controllers/template/rtmedia-functions.php:1924
|
2242 |
#: templates/media/album-single-edit.php:78
|
2243 |
msgid "Delete"
|
2244 |
msgstr ""
|
2245 |
|
2246 |
+
#: app/main/RTMedia.php:1018 templates/media/media-single-edit.php:8
|
2247 |
msgid "Edit Media"
|
2248 |
msgstr ""
|
2249 |
|
2250 |
+
#: app/main/RTMedia.php:1019
|
2251 |
msgid "Remove from queue"
|
2252 |
msgstr ""
|
2253 |
|
2254 |
+
#: app/main/RTMedia.php:1020
|
2255 |
msgid "Add more files"
|
2256 |
msgstr ""
|
2257 |
|
2258 |
+
#: app/main/RTMedia.php:1021
|
2259 |
msgid "File not supported"
|
2260 |
msgstr ""
|
2261 |
|
2262 |
+
#: app/main/RTMedia.php:1022
|
2263 |
msgid "more"
|
2264 |
msgstr ""
|
2265 |
|
2266 |
+
#: app/main/RTMedia.php:1023
|
2267 |
msgid "less"
|
2268 |
msgstr ""
|
2269 |
|
2270 |
+
#: app/main/RTMedia.php:1024
|
2271 |
+
msgid "Read more"
|
2272 |
+
msgstr ""
|
2273 |
+
|
2274 |
+
#: app/main/RTMedia.php:1025
|
2275 |
+
msgid "Show less"
|
2276 |
+
msgstr ""
|
2277 |
+
|
2278 |
+
#: app/main/RTMedia.php:1027
|
2279 |
msgid "This media is uploaded. Are you sure you want to delete this media?"
|
2280 |
msgstr ""
|
2281 |
|
2282 |
+
#: app/main/RTMedia.php:1035
|
2283 |
msgid "Featured media set successfully."
|
2284 |
msgstr ""
|
2285 |
|
2286 |
+
#: app/main/RTMedia.php:1036
|
2287 |
msgid "Featured media removed successfully."
|
2288 |
msgstr ""
|
2289 |
|
2290 |
+
#: app/main/RTMedia.php:1038
|
2291 |
msgid "Title:"
|
2292 |
msgstr ""
|
2293 |
|
2294 |
+
#: app/main/RTMedia.php:1039
|
2295 |
msgid "Description:"
|
2296 |
msgstr ""
|
2297 |
|
2298 |
+
#: app/main/RTMedia.php:1044
|
2299 |
msgid "Edit File Name"
|
2300 |
msgstr ""
|
2301 |
|
2302 |
+
#: app/main/RTMedia.php:1052
|
2303 |
msgid "Privacy updated successfully."
|
2304 |
msgstr ""
|
2305 |
|
2306 |
+
#: app/main/RTMedia.php:1053
|
2307 |
msgid "Couldn't change privacy, please try again."
|
2308 |
msgstr ""
|
2309 |
|
2310 |
+
#: app/main/RTMedia.php:1054
|
2311 |
msgid "file deleted successfully."
|
2312 |
msgstr ""
|
2313 |
|
2314 |
+
#: app/main/RTMedia.php:1086
|
2315 |
msgid "There are some uploads in progress. Do you want to cancel them?"
|
2316 |
msgstr ""
|
2317 |
|
2321 |
|
2322 |
#: app/main/controllers/activity/RTMediaBuddyPressActivity.php:323
|
2323 |
#: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:100
|
2324 |
+
#: app/main/controllers/template/rtmedia-functions.php:1954
|
2325 |
msgid "You are not allowed to upload/attach media."
|
2326 |
msgstr ""
|
2327 |
|
2631 |
msgstr ""
|
2632 |
|
2633 |
#: app/main/controllers/media/RTMediaAlbum.php:56
|
2634 |
+
#: app/main/controllers/template/rtmedia-actions.php:196
|
2635 |
msgid "Create Album"
|
2636 |
msgstr ""
|
2637 |
|
2698 |
msgstr ""
|
2699 |
|
2700 |
#: app/main/controllers/media/RTMediaLike.php:18
|
2701 |
+
msgid "person likes this"
|
2702 |
+
msgstr ""
|
2703 |
+
|
2704 |
+
#: app/main/controllers/media/RTMediaLike.php:19
|
2705 |
+
msgid "people like this"
|
2706 |
msgstr ""
|
2707 |
|
2708 |
#: app/main/controllers/media/RTMediaLike.php:20
|
2709 |
+
msgid "Like"
|
2710 |
+
msgstr ""
|
2711 |
+
|
2712 |
+
#: app/main/controllers/media/RTMediaLike.php:22
|
2713 |
msgid "Unlike"
|
2714 |
msgstr ""
|
2715 |
|
2716 |
#: app/main/controllers/media/RTMediaLoginPopup.php:38
|
2717 |
+
#: app/main/controllers/template/rtmedia-actions.php:310
|
2718 |
+
#: app/main/controllers/template/rtmedia-actions.php:314
|
2719 |
msgid "Upload Media"
|
2720 |
msgstr ""
|
2721 |
|
2795 |
#: app/main/controllers/template/RTMediaTemplate.php:352
|
2796 |
#: app/main/controllers/template/RTMediaTemplate.php:445
|
2797 |
#: app/main/controllers/template/RTMediaTemplate.php:543
|
2798 |
+
#: app/main/controllers/template/RTMediaTemplate.php:683
|
2799 |
msgid "Ooops !!! Invalid access. No nonce was found !!"
|
2800 |
msgstr ""
|
2801 |
|
2808 |
msgstr ""
|
2809 |
|
2810 |
#: app/main/controllers/template/rtmedia-actions.php:15
|
2811 |
+
#: app/main/controllers/template/rtmedia-actions.php:147
|
2812 |
msgid "Options"
|
2813 |
msgstr ""
|
2814 |
|
2815 |
+
#: app/main/controllers/template/rtmedia-actions.php:50
|
2816 |
msgid "Image"
|
2817 |
msgstr ""
|
2818 |
|
2819 |
+
#: app/main/controllers/template/rtmedia-actions.php:76
|
2820 |
msgid "Modify Image"
|
2821 |
msgstr ""
|
2822 |
|
2823 |
+
#: app/main/controllers/template/rtmedia-actions.php:186
|
2824 |
msgid "Create an Album"
|
2825 |
msgstr ""
|
2826 |
|
2827 |
+
#: app/main/controllers/template/rtmedia-actions.php:188
|
2828 |
msgid "Album Title : "
|
2829 |
msgstr ""
|
2830 |
|
2831 |
+
#: app/main/controllers/template/rtmedia-actions.php:236
|
2832 |
+
#: app/main/controllers/template/rtmedia-actions.php:243
|
2833 |
#: app/main/controllers/template/rtmedia-filters.php:92
|
2834 |
msgid "Merge Album"
|
2835 |
msgstr ""
|
2836 |
|
2837 |
+
#: app/main/controllers/template/rtmedia-actions.php:239
|
2838 |
msgid "Select Album to merge with : "
|
2839 |
msgstr ""
|
2840 |
|
2841 |
+
#: app/main/controllers/template/rtmedia-actions.php:289
|
2842 |
msgid "Merge"
|
2843 |
msgstr ""
|
2844 |
|
2845 |
+
#: app/main/controllers/template/rtmedia-actions.php:358
|
2846 |
msgid "Empowering your community with "
|
2847 |
msgstr ""
|
2848 |
|
2849 |
+
#: app/main/controllers/template/rtmedia-actions.php:359
|
2850 |
msgid "The only complete media solution for WordPress, BuddyPress and bbPress"
|
2851 |
msgstr ""
|
2852 |
|
2853 |
+
#: app/main/controllers/template/rtmedia-actions.php:378
|
2854 |
msgid "Close (Esc)"
|
2855 |
msgstr ""
|
2856 |
|
2857 |
+
#: app/main/controllers/template/rtmedia-actions.php:523
|
2858 |
msgid "You can consider rtMedia Team for following :"
|
2859 |
msgstr ""
|
2860 |
|
2861 |
+
#: app/main/controllers/template/rtmedia-actions.php:525
|
2862 |
msgid "rtMedia Customization ( in Upgrade Safe manner )"
|
2863 |
msgstr ""
|
2864 |
|
2865 |
+
#: app/main/controllers/template/rtmedia-actions.php:526
|
2866 |
msgid "WordPress/BuddyPress Theme Design and Development"
|
2867 |
msgstr ""
|
2868 |
|
2869 |
+
#: app/main/controllers/template/rtmedia-actions.php:527
|
2870 |
msgid "WordPress/BuddyPress Plugin Development"
|
2871 |
msgstr ""
|
2872 |
|
2873 |
+
#: app/main/controllers/template/rtmedia-actions.php:530
|
2874 |
msgid "Contact Us"
|
2875 |
msgstr ""
|
2876 |
|
2877 |
+
#: app/main/controllers/template/rtmedia-actions.php:617
|
2878 |
+
#: app/main/controllers/template/rtmedia-actions.php:618
|
2879 |
+
msgid "Previous"
|
2880 |
+
msgstr ""
|
2881 |
+
|
2882 |
+
#: app/main/controllers/template/rtmedia-actions.php:619
|
2883 |
+
#: app/main/controllers/template/rtmedia-actions.php:620
|
2884 |
+
#: templates/media/album-single-edit.php:121
|
2885 |
+
msgid "Next"
|
2886 |
+
msgstr ""
|
2887 |
+
|
2888 |
+
#: app/main/controllers/template/rtmedia-actions.php:801
|
2889 |
+
msgid "Settings has been saved successfully."
|
2890 |
+
msgstr ""
|
2891 |
+
|
2892 |
+
#: app/main/controllers/template/rtmedia-actions.php:805
|
2893 |
+
msgid "Refresh the page in case if license data is not showing correct."
|
2894 |
+
msgstr ""
|
2895 |
+
|
2896 |
+
#: app/main/controllers/template/rtmedia-actions.php:823
|
2897 |
+
msgid "Posted a status update"
|
2898 |
+
msgstr ""
|
2899 |
+
|
2900 |
+
#: app/main/controllers/template/rtmedia-actions.php:825
|
2901 |
+
msgid "Updates"
|
2902 |
+
msgstr ""
|
2903 |
+
|
2904 |
#: app/main/controllers/template/rtmedia-filters.php:50
|
2905 |
msgid "Create New Album"
|
2906 |
msgstr ""
|
2913 |
msgid "Delete Album"
|
2914 |
msgstr ""
|
2915 |
|
2916 |
+
#: app/main/controllers/template/rtmedia-functions.php:1191
|
2917 |
msgid "There are no comments on this media yet."
|
2918 |
msgstr ""
|
2919 |
|
2920 |
+
#: app/main/controllers/template/rtmedia-functions.php:1267
|
2921 |
msgid "Delete Comment"
|
2922 |
msgstr ""
|
2923 |
|
2924 |
+
#: app/main/controllers/template/rtmedia-functions.php:1538
|
2925 |
msgid "Go to page no : "
|
2926 |
msgstr ""
|
2927 |
|
2928 |
+
#: app/main/controllers/template/rtmedia-functions.php:1543
|
2929 |
msgid "Go"
|
2930 |
msgstr ""
|
2931 |
|
2932 |
+
#: app/main/controllers/template/rtmedia-functions.php:1856
|
2933 |
msgid "Type Comment..."
|
2934 |
msgstr ""
|
2935 |
|
2936 |
+
#: app/main/controllers/template/rtmedia-functions.php:1857
|
2937 |
+
#: templates/media/media-single.php:103 templates/media/media-single.php:147
|
2938 |
msgid "Comment"
|
2939 |
msgstr ""
|
2940 |
|
2941 |
+
#: app/main/controllers/template/rtmedia-functions.php:1915
|
2942 |
+
#: app/main/controllers/template/rtmedia-functions.php:1924
|
2943 |
msgid "Delete Media"
|
2944 |
msgstr ""
|
2945 |
|
2946 |
+
#: app/main/controllers/template/rtmedia-functions.php:2170
|
2947 |
msgid "Profile Albums"
|
2948 |
msgstr ""
|
2949 |
|
2950 |
+
#: app/main/controllers/template/rtmedia-functions.php:2174
|
2951 |
+
#: app/main/controllers/template/rtmedia-functions.php:2219
|
2952 |
msgid "Group Albums"
|
2953 |
msgstr ""
|
2954 |
|
2955 |
+
#: app/main/controllers/template/rtmedia-functions.php:2390
|
2956 |
msgid "Privacy : "
|
2957 |
msgstr ""
|
2958 |
|
2959 |
+
#: app/main/controllers/template/rtmedia-functions.php:2740
|
2960 |
+
msgid "You like this"
|
2961 |
+
msgstr ""
|
2962 |
+
|
2963 |
+
#: app/main/controllers/template/rtmedia-functions.php:2750
|
2964 |
+
msgid "You and "
|
2965 |
msgstr ""
|
2966 |
|
2967 |
+
#: app/main/controllers/template/rtmedia-functions.php:2769
|
2968 |
+
msgid " person likes this"
|
2969 |
+
msgid_plural " people like this"
|
2970 |
+
msgstr[0] ""
|
2971 |
+
msgstr[1] ""
|
2972 |
+
|
2973 |
+
#: app/main/controllers/template/rtmedia-functions.php:2874
|
2974 |
msgid "Public"
|
2975 |
msgstr ""
|
2976 |
|
2977 |
+
#: app/main/controllers/template/rtmedia-functions.php:2879
|
2978 |
msgid "All members"
|
2979 |
msgstr ""
|
2980 |
|
2981 |
+
#: app/main/controllers/template/rtmedia-functions.php:2884
|
2982 |
msgid "Your friends"
|
2983 |
msgstr ""
|
2984 |
|
2985 |
+
#: app/main/controllers/template/rtmedia-functions.php:2889
|
2986 |
msgid "Only you"
|
2987 |
msgstr ""
|
2988 |
|
2989 |
+
#: app/main/controllers/template/rtmedia-functions.php:2894
|
2990 |
msgid "Blocked temporarily"
|
2991 |
msgstr ""
|
2992 |
|
2993 |
+
#: app/main/controllers/template/rtmedia-functions.php:2947
|
2994 |
msgid "%s ago "
|
2995 |
msgstr ""
|
2996 |
|
2997 |
+
#: app/main/controllers/template/rtmedia-functions.php:2961
|
2998 |
msgid "1 second"
|
2999 |
msgid_plural "%s seconds"
|
3000 |
msgstr[0] ""
|
3001 |
msgstr[1] ""
|
3002 |
|
3003 |
+
#: app/main/controllers/template/rtmedia-functions.php:2965
|
3004 |
msgid "1 minute"
|
3005 |
msgid_plural "%s minutes"
|
3006 |
msgstr[0] ""
|
3007 |
msgstr[1] ""
|
3008 |
|
3009 |
+
#: app/main/controllers/template/rtmedia-functions.php:2969
|
3010 |
msgid "1 hour"
|
3011 |
msgid_plural "%s hours"
|
3012 |
msgstr[0] ""
|
3141 |
msgid "Prev"
|
3142 |
msgstr ""
|
3143 |
|
|
|
|
|
|
|
|
|
3144 |
#: templates/media/album-single-edit.php:124
|
3145 |
msgid "The album is empty."
|
3146 |
msgstr ""
|
3161 |
msgid "Sorry !! You do not have rights to edit this media"
|
3162 |
msgstr ""
|
3163 |
|
3164 |
+
#: templates/media/media-single.php:48
|
3165 |
msgid "under"
|
3166 |
msgstr ""
|
3167 |
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== rtMedia for WordPress, BuddyPress and bbPress ===
|
2 |
-
Contributors: rtcamp, sanket.parmar, pranalipatel, jignesh.nakrani,
|
3 |
Donate link: http://rtcamp.com/donate/
|
4 |
Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, ffmpeg, kaltura, media-node, rtMedia, WordPress, bbPress, masonry
|
5 |
License: GPLv2 or later
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 4.1
|
8 |
-
Tested up to: 4.
|
9 |
-
Stable tag: 4.
|
10 |
|
11 |
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
@@ -87,6 +87,8 @@ rtMedia has 3 premium solutions to take care of audio/video conversion.
|
|
87 |
34. **[Album-Privacy](https://rtmedia.io/products/rtmedia-album-privacy/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Album Privacy")** - Set album privacy when user create new albums or edit album.
|
88 |
35. **[BuddyPress-Group-Media-Control](https://rtmedia.io/products/rtmedia-buddypress-group-media-control/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia BuddyPress Group Media Control")** - Allow group owner to provide media upload feature for their group.
|
89 |
36. **[Set-Custom-Thumbnail-for-Audio/Video](https://rtmedia.io/products/rtmedia-set-custom-thumbnail-for-audiovideo/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Set Custom Thumbnail for Audio/Video")** - Allow media owner to change the thumbnail of uploaded audio/video files.
|
|
|
|
|
90 |
|
91 |
= Important Links =
|
92 |
|
@@ -135,6 +137,42 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
= 4.1.7 [Oct 05, 2016] =
|
139 |
* Change the UI of addons license tab
|
140 |
* Update the notice messages
|
@@ -1240,8 +1278,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
1240 |
|
1241 |
== Upgrade Notice ==
|
1242 |
|
1243 |
-
= 4.
|
1244 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress.
|
1245 |
|
1246 |
== Sponsors ==
|
1247 |
|
1 |
=== rtMedia for WordPress, BuddyPress and bbPress ===
|
2 |
+
Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, supercoder, bhargavbhandari90, deepak1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel
|
3 |
Donate link: http://rtcamp.com/donate/
|
4 |
Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, ffmpeg, kaltura, media-node, rtMedia, WordPress, bbPress, masonry
|
5 |
License: GPLv2 or later
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 4.1
|
8 |
+
Tested up to: 4.7
|
9 |
+
Stable tag: 4.2
|
10 |
|
11 |
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
|
12 |
|
87 |
34. **[Album-Privacy](https://rtmedia.io/products/rtmedia-album-privacy/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Album Privacy")** - Set album privacy when user create new albums or edit album.
|
88 |
35. **[BuddyPress-Group-Media-Control](https://rtmedia.io/products/rtmedia-buddypress-group-media-control/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia BuddyPress Group Media Control")** - Allow group owner to provide media upload feature for their group.
|
89 |
36. **[Set-Custom-Thumbnail-for-Audio/Video](https://rtmedia.io/products/rtmedia-set-custom-thumbnail-for-audiovideo/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Set Custom Thumbnail for Audio/Video")** - Allow media owner to change the thumbnail of uploaded audio/video files.
|
90 |
+
37. **[rtMedia-SEO](https://rtmedia.io/products/rtmedia-seo/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia SEO")** - Generate XML sitemap of all the public media files uploaded via rtMedia plugin, also compatible with [Yoast-SEO](https://wordpress.org/plugins/wordpress-seo/ "Yoast SEO") plugin if you are already using on your site.
|
91 |
+
|
92 |
|
93 |
= Important Links =
|
94 |
|
137 |
|
138 |
== Changelog ==
|
139 |
|
140 |
+
= 4.2 [Nov 17, 2016] =
|
141 |
+
|
142 |
+
* **NEW FEATURES**
|
143 |
+
|
144 |
+
* Albums will now display media count by default
|
145 |
+
* "@mentions" in comments added to lightbox and single media page
|
146 |
+
* Added "Next" / "Previous" navigation links to single media page
|
147 |
+
|
148 |
+
* **ENHANCEMENTS**
|
149 |
+
|
150 |
+
* rtMedia "Support" tab improvements- Directly attach a screenshot while submitting a support ticket Debug Info can now be easily downloaded as a .txt file
|
151 |
+
* Added: "Show more comments" link in media pop-up (lightbox) and single media page
|
152 |
+
* Added: Action to target area below media comments in lightbox or single media page
|
153 |
+
* Added: Filter to add extra component to comments
|
154 |
+
* Added: Filter to disallow blank text field while uploading media in Activity
|
155 |
+
* Added: Filter to modify "Options" & "Upload" labels in Media Gallery
|
156 |
+
|
157 |
+
* **FIXED**
|
158 |
+
|
159 |
+
* After uploading media, the Upload panel will now collapse
|
160 |
+
* Incorrect pagination text display in Media tab
|
161 |
+
* "posted an update" string not getting translated in Activity feed for posts with attached media. Added translation support for all "rtmedia_update" Activity type
|
162 |
+
* Duplicate activity generation when "Post Update" is clicked multiple times
|
163 |
+
* Singular/plural form of "n people liked this" string
|
164 |
+
* BuddyPress Group Media tab not displaying in Beta version 2.7.2
|
165 |
+
* Media description not saving properly when uploading multiple media
|
166 |
+
* Link to comment in WordPress backend not leading back to comment
|
167 |
+
* Video popup UI for vertical videos
|
168 |
+
* CSS-related responsive video layout issue
|
169 |
+
* Fixed broken "Import media sizes" anchor link in admin notice
|
170 |
+
* Fixed "Activate License" event bug in License tab
|
171 |
+
* Lightbox privacy symbol alignment issue
|
172 |
+
|
173 |
+
= 4.1.8 [Oct 05, 2016] =
|
174 |
+
* Fix fatal error for older PHP version
|
175 |
+
|
176 |
= 4.1.7 [Oct 05, 2016] =
|
177 |
* Change the UI of addons license tab
|
178 |
* Update the notice messages
|
1278 |
|
1279 |
== Upgrade Notice ==
|
1280 |
|
1281 |
+
= 4.2 =
|
1282 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Album media count, @mention functionality on media comments, Next previous link on media page and bug.
|
1283 |
|
1284 |
== Sponsors ==
|
1285 |
|
templates/media/album-gallery-item.php
CHANGED
@@ -21,21 +21,26 @@ if ( isset( $is_edit_allowed[0] ) ) {
|
|
21 |
$rtmedia_backbone['is_edit_allowed'] = $is_edit_allowed[0];
|
22 |
}
|
23 |
?>
|
24 |
-
<!-- addClass if not default album -->
|
25 |
<li class="rtmedia-list-item">
|
26 |
-
|
27 |
<a href="<?php rtmedia_permalink(); ?>" title="<?php echo esc_attr( rtmedia_title() ); ?>">
|
28 |
-
|
29 |
<div class="rtmedia-item-thumbnail">
|
30 |
<img src="<?php rtmedia_image( 'rt_media_thumbnail' ); ?>" alt="<?php echo esc_attr( rtmedia_title() ); ?>">
|
31 |
</div>
|
32 |
|
33 |
-
<?php
|
|
|
|
|
34 |
<div class="rtmedia-item-title">
|
35 |
-
<h4><?php echo esc_html( rtmedia_title() );
|
36 |
</div>
|
37 |
-
|
38 |
-
|
|
|
39 |
</a>
|
40 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
41 |
</li> <!-- End of .rtmedia-list-item -->
|
21 |
$rtmedia_backbone['is_edit_allowed'] = $is_edit_allowed[0];
|
22 |
}
|
23 |
?>
|
|
|
24 |
<li class="rtmedia-list-item">
|
|
|
25 |
<a href="<?php rtmedia_permalink(); ?>" title="<?php echo esc_attr( rtmedia_title() ); ?>">
|
|
|
26 |
<div class="rtmedia-item-thumbnail">
|
27 |
<img src="<?php rtmedia_image( 'rt_media_thumbnail' ); ?>" alt="<?php echo esc_attr( rtmedia_title() ); ?>">
|
28 |
</div>
|
29 |
|
30 |
+
<?php
|
31 |
+
if ( apply_filters( 'rtmedia_media_gallery_show_media_title', true ) ) {
|
32 |
+
?>
|
33 |
<div class="rtmedia-item-title">
|
34 |
+
<h4><?php echo esc_html( rtmedia_title() ); ?><span></h4>
|
35 |
</div>
|
36 |
+
<?php
|
37 |
+
}
|
38 |
+
?>
|
39 |
</a>
|
40 |
+
<?php
|
41 |
+
/**
|
42 |
+
* Fires after album gallery item.
|
43 |
+
*/
|
44 |
+
do_action( 'rtmedia_after_album_gallery_item' );
|
45 |
+
?>
|
46 |
</li> <!-- End of .rtmedia-list-item -->
|
templates/media/media-single.php
CHANGED
@@ -19,6 +19,13 @@
|
|
19 |
<div class="rtmedia-media"
|
20 |
id="rtmedia-media-<?php echo esc_attr( rtmedia_id() ); ?>"><?php rtmedia_media( true ); ?></div>
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
<?php } else { ?>
|
23 |
|
24 |
<span class="mfp-arrow mfp-arrow-left mfp-prevent-close rtm-lightbox-arrows" type="button"
|
@@ -57,9 +64,7 @@
|
|
57 |
<div class="rtmedia-scroll">
|
58 |
<?php if ( $rt_ajax_request ) { ?>
|
59 |
|
60 |
-
<div class="rtm-single-meta-contents<?php if ( is_user_logged_in() ) {
|
61 |
-
echo esc_attr( ' logged-in' );
|
62 |
-
} ?>">
|
63 |
|
64 |
<div class="rtm-user-meta-details">
|
65 |
<div class="userprofile rtm-user-avatar">
|
@@ -109,6 +114,7 @@
|
|
109 |
|
110 |
|
111 |
</div>
|
|
|
112 |
<?php if ( rtmedia_comments_enabled() && is_user_logged_in() ) { ?>
|
113 |
<div class='rtm-media-single-comments'>
|
114 |
<?php rtmedia_comment_form(); ?>
|
@@ -158,6 +164,8 @@
|
|
158 |
|
159 |
<?php } ?>
|
160 |
<?php } ?>
|
|
|
|
|
161 |
</div>
|
162 |
</div>
|
163 |
|
19 |
<div class="rtmedia-media"
|
20 |
id="rtmedia-media-<?php echo esc_attr( rtmedia_id() ); ?>"><?php rtmedia_media( true ); ?></div>
|
21 |
|
22 |
+
<?php
|
23 |
+
/**
|
24 |
+
* call function to display single media pagination
|
25 |
+
* By: Yahil
|
26 |
+
*/
|
27 |
+
rtmedia_single_media_pagination();
|
28 |
+
?>
|
29 |
<?php } else { ?>
|
30 |
|
31 |
<span class="mfp-arrow mfp-arrow-left mfp-prevent-close rtm-lightbox-arrows" type="button"
|
64 |
<div class="rtmedia-scroll">
|
65 |
<?php if ( $rt_ajax_request ) { ?>
|
66 |
|
67 |
+
<div class="rtm-single-meta-contents<?php if ( is_user_logged_in() ) { echo esc_attr( ' logged-in' ); } ?>">
|
|
|
|
|
68 |
|
69 |
<div class="rtm-user-meta-details">
|
70 |
<div class="userprofile rtm-user-avatar">
|
114 |
|
115 |
|
116 |
</div>
|
117 |
+
|
118 |
<?php if ( rtmedia_comments_enabled() && is_user_logged_in() ) { ?>
|
119 |
<div class='rtm-media-single-comments'>
|
120 |
<?php rtmedia_comment_form(); ?>
|
164 |
|
165 |
<?php } ?>
|
166 |
<?php } ?>
|
167 |
+
|
168 |
+
<?php do_action( 'rtmedia_actions_after_comments_form' ); ?>
|
169 |
</div>
|
170 |
</div>
|
171 |
|