rtMedia for WordPress, BuddyPress and bbPress - Version 3.0.9

Version Description

  • Add Media Count
  • Fixed Setting for Upload media
  • Fixed Feature image issue
  • Other minor bug fixes
Download this release

Release Info

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

Code changes from version 3.0.7 to 3.0.9

Files changed (38) hide show
  1. app/assets/css/main.css +1 -1
  2. app/assets/js/rtMedia.backbone.js +6 -2
  3. app/assets/js/rtMedia.js +11 -3
  4. app/assets/sass/main.scss +1 -0
  5. app/helper/RTMediaModel.php +234 -196
  6. app/helper/db/RTDBUpdate.php +1 -0
  7. app/helper/rtForm.php +79 -14
  8. app/importers/RTMediaMigration.php +455 -460
  9. app/main/RTMedia.php +774 -734
  10. app/main/contexts/RTMediaContext.php +28 -25
  11. app/main/controllers/activity/RTMediaBuddyPressActivity.php +102 -104
  12. app/main/controllers/media/RTMediaAlbum.php +482 -488
  13. app/main/controllers/media/RTMediaFeatured.php +95 -89
  14. app/main/controllers/media/RTMediaMedia.php +170 -165
  15. app/main/controllers/media/RTMediaUserInteraction.php +1 -1
  16. app/main/controllers/privacy/RTMediaFriends.php +2 -2
  17. app/main/controllers/privacy/RTMediaPrivacy.php +38 -20
  18. app/main/controllers/shortcodes/RTMediaGalleryShortcode.php +100 -89
  19. app/main/controllers/shortcodes/RTMediaUploadShortcode.php +26 -15
  20. app/main/controllers/template/RTMediaAJAX.php +2 -2
  21. app/main/controllers/template/RTMediaNav.php +316 -286
  22. app/main/controllers/template/RTMediaTemplate.php +21 -6
  23. app/main/controllers/template/RTMediaUploadTemplate.php +23 -23
  24. app/main/controllers/template/rt-template-functions.php +402 -366
  25. app/main/controllers/upload/RTMediaUploadEndpoint.php +63 -56
  26. app/main/controllers/upload/RTMediaUploadModel.php +53 -54
  27. app/main/controllers/upload/RTMediaUploadView.php +79 -77
  28. app/main/controllers/upload/processors/RTMediaUploadFile.php +134 -131
  29. app/main/interactions/RTMediaInteraction.php +149 -160
  30. app/main/routers/RTMediaRouter.php +119 -130
  31. app/main/routers/query/RTMediaQuery.php +704 -704
  32. app/services/RTMediaEncoding.php +322 -320
  33. index.php +61 -63
  34. readme.txt +15 -4
  35. templates/media/album-gallery-item.php +5 -5
  36. templates/media/album-gallery.php +37 -37
  37. templates/media/media-gallery.php +29 -29
  38. templates/upload/uploader.php +43 -44
app/assets/css/main.css CHANGED
@@ -1 +1 @@
1
- .rtmedia-container,.rtmedia-activity-container,#buddypress div.rtmedia-activity-container{padding:5px;margin:0;clear:left}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body,.rtmedia-container div,.rtmedia-activity-container div,#buddypress div.rtmedia-activity-container div,.rtmedia-container span,.rtmedia-activity-container span,#buddypress div.rtmedia-activity-container span,.rtmedia-container applet,.rtmedia-activity-container applet,#buddypress div.rtmedia-activity-container applet,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container iframe,.rtmedia-activity-container iframe,#buddypress div.rtmedia-activity-container iframe,.rtmedia-container h1,.rtmedia-activity-container h1,#buddypress div.rtmedia-activity-container h1,.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2,.rtmedia-container h3,.rtmedia-activity-container h3,#buddypress div.rtmedia-activity-container h3,.rtmedia-container h4,.rtmedia-activity-container h4,#buddypress div.rtmedia-activity-container h4,.rtmedia-container h5,.rtmedia-activity-container h5,#buddypress div.rtmedia-activity-container h5,.rtmedia-container h6,.rtmedia-activity-container h6,#buddypress div.rtmedia-activity-container h6,.rtmedia-container p,.rtmedia-activity-container p,#buddypress div.rtmedia-activity-container p,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote,.rtmedia-container pre,.rtmedia-activity-container pre,#buddypress div.rtmedia-activity-container pre,.rtmedia-container a,.rtmedia-activity-container a,#buddypress div.rtmedia-activity-container a,.rtmedia-container abbr,.rtmedia-activity-container abbr,#buddypress div.rtmedia-activity-container abbr,.rtmedia-container acronym,.rtmedia-activity-container acronym,#buddypress div.rtmedia-activity-container acronym,.rtmedia-container address,.rtmedia-activity-container address,#buddypress div.rtmedia-activity-container address,.rtmedia-container big,.rtmedia-activity-container big,#buddypress div.rtmedia-activity-container big,.rtmedia-container cite,.rtmedia-activity-container cite,#buddypress div.rtmedia-activity-container cite,.rtmedia-container code,.rtmedia-activity-container code,#buddypress div.rtmedia-activity-container code,.rtmedia-container del,.rtmedia-activity-container del,#buddypress div.rtmedia-activity-container del,.rtmedia-container dfn,.rtmedia-activity-container dfn,#buddypress div.rtmedia-activity-container dfn,.rtmedia-container em,.rtmedia-activity-container em,#buddypress div.rtmedia-activity-container em,.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container ins,.rtmedia-activity-container ins,#buddypress div.rtmedia-activity-container ins,.rtmedia-container kbd,.rtmedia-activity-container kbd,#buddypress div.rtmedia-activity-container kbd,.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container s,.rtmedia-activity-container s,#buddypress div.rtmedia-activity-container s,.rtmedia-container samp,.rtmedia-activity-container samp,#buddypress div.rtmedia-activity-container samp,.rtmedia-container small,.rtmedia-activity-container small,#buddypress div.rtmedia-activity-container small,.rtmedia-container strike,.rtmedia-activity-container strike,#buddypress div.rtmedia-activity-container strike,.rtmedia-container strong,.rtmedia-activity-container strong,#buddypress div.rtmedia-activity-container strong,.rtmedia-container sub,.rtmedia-activity-container sub,#buddypress div.rtmedia-activity-container sub,.rtmedia-container sup,.rtmedia-activity-container sup,#buddypress div.rtmedia-activity-container sup,.rtmedia-container tt,.rtmedia-activity-container tt,#buddypress div.rtmedia-activity-container tt,.rtmedia-container var,.rtmedia-activity-container var,#buddypress div.rtmedia-activity-container var,.rtmedia-container b,.rtmedia-activity-container b,#buddypress div.rtmedia-activity-container b,.rtmedia-container u,.rtmedia-activity-container u,#buddypress div.rtmedia-activity-container u,.rtmedia-container i,.rtmedia-activity-container i,#buddypress div.rtmedia-activity-container i,.rtmedia-container center,.rtmedia-activity-container center,#buddypress div.rtmedia-activity-container center,.rtmedia-container dl,.rtmedia-activity-container dl,#buddypress div.rtmedia-activity-container dl,.rtmedia-container dt,.rtmedia-activity-container dt,#buddypress div.rtmedia-activity-container dt,.rtmedia-container dd,.rtmedia-activity-container dd,#buddypress div.rtmedia-activity-container dd,.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul,.rtmedia-container li,.rtmedia-activity-container li,#buddypress div.rtmedia-activity-container li,.rtmedia-container fieldset,.rtmedia-activity-container fieldset,#buddypress div.rtmedia-activity-container fieldset,.rtmedia-container form,.rtmedia-activity-container form,#buddypress div.rtmedia-activity-container form,.rtmedia-container label,.rtmedia-activity-container label,#buddypress div.rtmedia-activity-container label,.rtmedia-container legend,.rtmedia-activity-container legend,#buddypress div.rtmedia-activity-container legend,.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table,.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container tbody,.rtmedia-activity-container tbody,#buddypress div.rtmedia-activity-container tbody,.rtmedia-container tfoot,.rtmedia-activity-container tfoot,#buddypress div.rtmedia-activity-container tfoot,.rtmedia-container thead,.rtmedia-activity-container thead,#buddypress div.rtmedia-activity-container thead,.rtmedia-container tr,.rtmedia-activity-container tr,#buddypress div.rtmedia-activity-container tr,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td,.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container canvas,.rtmedia-activity-container canvas,#buddypress div.rtmedia-activity-container canvas,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container output,.rtmedia-activity-container output,#buddypress div.rtmedia-activity-container output,.rtmedia-container ruby,.rtmedia-activity-container ruby,#buddypress div.rtmedia-activity-container ruby,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary,.rtmedia-container time,.rtmedia-activity-container time,#buddypress div.rtmedia-activity-container time,.rtmedia-container mark,.rtmedia-activity-container mark,#buddypress div.rtmedia-activity-container mark,.rtmedia-container audio,.rtmedia-activity-container audio,#buddypress div.rtmedia-activity-container audio,.rtmedia-container video,.rtmedia-activity-container video,#buddypress div.rtmedia-activity-container video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html{line-height:1}.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul{list-style:none}.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table{border-collapse:collapse;border-spacing:0}.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td{text-align:left;font-weight:normal;vertical-align:middle}.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote{quotes:none}.rtmedia-container q:before,.rtmedia-activity-container q:before,#buddypress div.rtmedia-activity-container q:before,.rtmedia-container q:after,.rtmedia-activity-container q:after,#buddypress div.rtmedia-activity-container q:after,.rtmedia-container blockquote:before,.rtmedia-activity-container blockquote:before,#buddypress div.rtmedia-activity-container blockquote:before,.rtmedia-container blockquote:after,.rtmedia-activity-container blockquote:after,#buddypress div.rtmedia-activity-container blockquote:after{content:"";content:none}.rtmedia-container a img,.rtmedia-activity-container a img,#buddypress div.rtmedia-activity-container a img{border:none}.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary{display:block}.rtmedia-container *,.rtmedia-activity-container *,#buddypress div.rtmedia-activity-container *,.rtmedia-container *:before,.rtmedia-activity-container *:before,#buddypress div.rtmedia-activity-container *:before,.rtmedia-container *:after,.rtmedia-activity-container *:after,#buddypress div.rtmedia-activity-container *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{font-size:100%}.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}.rtmedia-container a:hover,.rtmedia-activity-container a:hover,#buddypress div.rtmedia-activity-container a:hover{cursor:pointer}.rtmedia-container a:focus,.rtmedia-activity-container a:focus,#buddypress div.rtmedia-activity-container a:focus{outline:none}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{max-width:100%;height:auto}.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{height:100%}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{-ms-interpolation-mode:bicubic}.rtmedia-container #map_canvas img,.rtmedia-activity-container #map_canvas img,.rtmedia-container #map_canvas embed,.rtmedia-activity-container #map_canvas embed,.rtmedia-container #map_canvas object,.rtmedia-activity-container #map_canvas object,.rtmedia-container .map_canvas img,.rtmedia-activity-container .map_canvas img,#buddypress div.rtmedia-activity-container .map_canvas img,.rtmedia-container .map_canvas embed,.rtmedia-activity-container .map_canvas embed,#buddypress div.rtmedia-activity-container .map_canvas embed,.rtmedia-container .map_canvas object,.rtmedia-activity-container .map_canvas object,#buddypress div.rtmedia-activity-container .map_canvas object{max-width:none !important}.rtmedia-container .left,.rtmedia-activity-container .left,#buddypress div.rtmedia-activity-container .left{float:left !important}.rtmedia-container .right,.rtmedia-activity-container .right,#buddypress div.rtmedia-activity-container .right{float:right !important}.rtmedia-container .text-left,.rtmedia-activity-container .text-left,#buddypress div.rtmedia-activity-container .text-left{text-align:left !important}.rtmedia-container .text-right,.rtmedia-activity-container .text-right,#buddypress div.rtmedia-activity-container .text-right{text-align:right !important}.rtmedia-container .text-center,.rtmedia-activity-container .text-center,#buddypress div.rtmedia-activity-container .text-center{text-align:center !important}.rtmedia-container .text-justify,.rtmedia-activity-container .text-justify,#buddypress div.rtmedia-activity-container .text-justify{text-align:justify !important}.rtmedia-container .hide,.rtmedia-activity-container .hide,#buddypress div.rtmedia-activity-container .hide{display:none}.rtmedia-container .antialiased,.rtmedia-activity-container .antialiased,#buddypress div.rtmedia-activity-container .antialiased{-webkit-font-smoothing:antialiased}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{display:inline-block;vertical-align:middle}.rtmedia-container textarea,.rtmedia-activity-container textarea,#buddypress div.rtmedia-activity-container textarea{height:auto;min-height:50px}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:100%}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1}.rtmedia-container .row:before,.rtmedia-activity-container .row:before,#buddypress div.rtmedia-activity-container .row:before,.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{content:" ";display:table}.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{clear:both}.rtmedia-container .row.collapse .column,.rtmedia-activity-container .row.collapse .column,#buddypress div.rtmedia-activity-container .row.collapse .column,.rtmedia-container .row.collapse .columns,.rtmedia-activity-container .row.collapse .columns,#buddypress div.rtmedia-activity-container .row.collapse .columns{position:relative;padding-left:0;padding-right:0;float:left}.rtmedia-container .row .row,.rtmedia-activity-container .row .row,#buddypress div.rtmedia-activity-container .row .row{width:auto;margin-left:-0.9375em;margin-right:-0.9375em;margin-top:0;margin-bottom:0;max-width:none;*zoom:1}.rtmedia-container .row .row:before,.rtmedia-activity-container .row .row:before,#buddypress div.rtmedia-activity-container .row .row:before,.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{content:" ";display:table}.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{clear:both}.rtmedia-container .row .row.collapse,.rtmedia-activity-container .row .row.collapse,#buddypress div.rtmedia-activity-container .row .row.collapse{width:auto;margin:0;max-width:none;*zoom:1}.rtmedia-container .row .row.collapse:before,.rtmedia-activity-container .row .row.collapse:before,#buddypress div.rtmedia-activity-container .row .row.collapse:before,.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{content:" ";display:table}.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{clear:both}.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;width:100%;float:left}@media only screen{.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;float:left}.rtmedia-container .small-1,.rtmedia-activity-container .small-1,#buddypress div.rtmedia-activity-container .small-1{position:relative;width:8.33333%}.rtmedia-container .small-2,.rtmedia-activity-container .small-2,#buddypress div.rtmedia-activity-container .small-2{position:relative;width:16.66667%}.rtmedia-container .small-3,.rtmedia-activity-container .small-3,#buddypress div.rtmedia-activity-container .small-3{position:relative;width:25%}.rtmedia-container .small-4,.rtmedia-activity-container .small-4,#buddypress div.rtmedia-activity-container .small-4{position:relative;width:33.33333%}.rtmedia-container .small-5,.rtmedia-activity-container .small-5,#buddypress div.rtmedia-activity-container .small-5{position:relative;width:41.66667%}.rtmedia-container .small-6,.rtmedia-activity-container .small-6,#buddypress div.rtmedia-activity-container .small-6{position:relative;width:50%}.rtmedia-container .small-7,.rtmedia-activity-container .small-7,#buddypress div.rtmedia-activity-container .small-7{position:relative;width:58.33333%}.rtmedia-container .small-8,.rtmedia-activity-container .small-8,#buddypress div.rtmedia-activity-container .small-8{position:relative;width:66.66667%}.rtmedia-container .small-9,.rtmedia-activity-container .small-9,#buddypress div.rtmedia-activity-container .small-9{position:relative;width:75%}.rtmedia-container .small-10,.rtmedia-activity-container .small-10,#buddypress div.rtmedia-activity-container .small-10{position:relative;width:83.33333%}.rtmedia-container .small-11,.rtmedia-activity-container .small-11,#buddypress div.rtmedia-activity-container .small-11{position:relative;width:91.66667%}.rtmedia-container .small-12,.rtmedia-activity-container .small-12,#buddypress div.rtmedia-activity-container .small-12{position:relative;width:100%}.rtmedia-container .small-offset-0,.rtmedia-activity-container .small-offset-0,#buddypress div.rtmedia-activity-container .small-offset-0{position:relative;margin-left:0%}.rtmedia-container .small-offset-1,.rtmedia-activity-container .small-offset-1,#buddypress div.rtmedia-activity-container .small-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .small-offset-2,.rtmedia-activity-container .small-offset-2,#buddypress div.rtmedia-activity-container .small-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .small-offset-3,.rtmedia-activity-container .small-offset-3,#buddypress div.rtmedia-activity-container .small-offset-3{position:relative;margin-left:25%}.rtmedia-container .small-offset-4,.rtmedia-activity-container .small-offset-4,#buddypress div.rtmedia-activity-container .small-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .small-offset-5,.rtmedia-activity-container .small-offset-5,#buddypress div.rtmedia-activity-container .small-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .small-offset-6,.rtmedia-activity-container .small-offset-6,#buddypress div.rtmedia-activity-container .small-offset-6{position:relative;margin-left:50%}.rtmedia-container .small-offset-7,.rtmedia-activity-container .small-offset-7,#buddypress div.rtmedia-activity-container .small-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .small-offset-8,.rtmedia-activity-container .small-offset-8,#buddypress div.rtmedia-activity-container .small-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .small-offset-9,.rtmedia-activity-container .small-offset-9,#buddypress div.rtmedia-activity-container .small-offset-9{position:relative;margin-left:75%}.rtmedia-container .small-offset-10,.rtmedia-activity-container .small-offset-10,#buddypress div.rtmedia-activity-container .small-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container [class*="column"]+[class*="column"]:last-child,.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child{float:right}.rtmedia-container [class*="column"]+[class*="column"].end,.rtmedia-activity-container [class*="column"]+[class*="column"].end,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"].end{float:left}.rtmedia-container .column.small-centered,.rtmedia-activity-container .column.small-centered,#buddypress div.rtmedia-activity-container .column.small-centered,.rtmedia-container .columns.small-centered,.rtmedia-activity-container .columns.small-centered,#buddypress div.rtmedia-activity-container .columns.small-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}}@media only screen and (min-width: 768px){.rtmedia-container .large-1,.rtmedia-activity-container .large-1,#buddypress div.rtmedia-activity-container .large-1{position:relative;width:8.33333%}.rtmedia-container .large-2,.rtmedia-activity-container .large-2,#buddypress div.rtmedia-activity-container .large-2{position:relative;width:16.66667%}.rtmedia-container .large-3,.rtmedia-activity-container .large-3,#buddypress div.rtmedia-activity-container .large-3{position:relative;width:25%}.rtmedia-container .large-4,.rtmedia-activity-container .large-4,#buddypress div.rtmedia-activity-container .large-4{position:relative;width:33.33333%}.rtmedia-container .large-5,.rtmedia-activity-container .large-5,#buddypress div.rtmedia-activity-container .large-5{position:relative;width:41.66667%}.rtmedia-container .large-6,.rtmedia-activity-container .large-6,#buddypress div.rtmedia-activity-container .large-6{position:relative;width:50%}.rtmedia-container .large-7,.rtmedia-activity-container .large-7,#buddypress div.rtmedia-activity-container .large-7{position:relative;width:58.33333%}.rtmedia-container .large-8,.rtmedia-activity-container .large-8,#buddypress div.rtmedia-activity-container .large-8{position:relative;width:66.66667%}.rtmedia-container .large-9,.rtmedia-activity-container .large-9,#buddypress div.rtmedia-activity-container .large-9{position:relative;width:75%}.rtmedia-container .large-10,.rtmedia-activity-container .large-10,#buddypress div.rtmedia-activity-container .large-10{position:relative;width:83.33333%}.rtmedia-container .large-11,.rtmedia-activity-container .large-11,#buddypress div.rtmedia-activity-container .large-11{position:relative;width:91.66667%}.rtmedia-container .large-12,.rtmedia-activity-container .large-12,#buddypress div.rtmedia-activity-container .large-12{position:relative;width:100%}.rtmedia-container .row .large-offset-0,.rtmedia-activity-container .row .large-offset-0,#buddypress div.rtmedia-activity-container .row .large-offset-0{position:relative;margin-left:0%}.rtmedia-container .row .large-offset-1,.rtmedia-activity-container .row .large-offset-1,#buddypress div.rtmedia-activity-container .row .large-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .row .large-offset-2,.rtmedia-activity-container .row .large-offset-2,#buddypress div.rtmedia-activity-container .row .large-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .row .large-offset-3,.rtmedia-activity-container .row .large-offset-3,#buddypress div.rtmedia-activity-container .row .large-offset-3{position:relative;margin-left:25%}.rtmedia-container .row .large-offset-4,.rtmedia-activity-container .row .large-offset-4,#buddypress div.rtmedia-activity-container .row .large-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .row .large-offset-5,.rtmedia-activity-container .row .large-offset-5,#buddypress div.rtmedia-activity-container .row .large-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .row .large-offset-6,.rtmedia-activity-container .row .large-offset-6,#buddypress div.rtmedia-activity-container .row .large-offset-6{position:relative;margin-left:50%}.rtmedia-container .row .large-offset-7,.rtmedia-activity-container .row .large-offset-7,#buddypress div.rtmedia-activity-container .row .large-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .row .large-offset-8,.rtmedia-activity-container .row .large-offset-8,#buddypress div.rtmedia-activity-container .row .large-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .row .large-offset-9,.rtmedia-activity-container .row .large-offset-9,#buddypress div.rtmedia-activity-container .row .large-offset-9{position:relative;margin-left:75%}.rtmedia-container .row .large-offset-10,.rtmedia-activity-container .row .large-offset-10,#buddypress div.rtmedia-activity-container .row .large-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container .row .large-offset-11,.rtmedia-activity-container .row .large-offset-11,#buddypress div.rtmedia-activity-container .row .large-offset-11{position:relative;margin-left:91.66667%}.rtmedia-container .push-1,.rtmedia-activity-container .push-1,#buddypress div.rtmedia-activity-container .push-1{position:relative;left:8.33333%;right:auto}.rtmedia-container .pull-1,.rtmedia-activity-container .pull-1,#buddypress div.rtmedia-activity-container .pull-1{position:relative;right:8.33333%;left:auto}.rtmedia-container .push-2,.rtmedia-activity-container .push-2,#buddypress div.rtmedia-activity-container .push-2{position:relative;left:16.66667%;right:auto}.rtmedia-container .pull-2,.rtmedia-activity-container .pull-2,#buddypress div.rtmedia-activity-container .pull-2{position:relative;right:16.66667%;left:auto}.rtmedia-container .push-3,.rtmedia-activity-container .push-3,#buddypress div.rtmedia-activity-container .push-3{position:relative;left:25%;right:auto}.rtmedia-container .pull-3,.rtmedia-activity-container .pull-3,#buddypress div.rtmedia-activity-container .pull-3{position:relative;right:25%;left:auto}.rtmedia-container .push-4,.rtmedia-activity-container .push-4,#buddypress div.rtmedia-activity-container .push-4{position:relative;left:33.33333%;right:auto}.rtmedia-container .pull-4,.rtmedia-activity-container .pull-4,#buddypress div.rtmedia-activity-container .pull-4{position:relative;right:33.33333%;left:auto}.rtmedia-container .push-5,.rtmedia-activity-container .push-5,#buddypress div.rtmedia-activity-container .push-5{position:relative;left:41.66667%;right:auto}.rtmedia-container .pull-5,.rtmedia-activity-container .pull-5,#buddypress div.rtmedia-activity-container .pull-5{position:relative;right:41.66667%;left:auto}.rtmedia-container .push-6,.rtmedia-activity-container .push-6,#buddypress div.rtmedia-activity-container .push-6{position:relative;left:50%;right:auto}.rtmedia-container .pull-6,.rtmedia-activity-container .pull-6,#buddypress div.rtmedia-activity-container .pull-6{position:relative;right:50%;left:auto}.rtmedia-container .push-7,.rtmedia-activity-container .push-7,#buddypress div.rtmedia-activity-container .push-7{position:relative;left:58.33333%;right:auto}.rtmedia-container .pull-7,.rtmedia-activity-container .pull-7,#buddypress div.rtmedia-activity-container .pull-7{position:relative;right:58.33333%;left:auto}.rtmedia-container .push-8,.rtmedia-activity-container .push-8,#buddypress div.rtmedia-activity-container .push-8{position:relative;left:66.66667%;right:auto}.rtmedia-container .pull-8,.rtmedia-activity-container .pull-8,#buddypress div.rtmedia-activity-container .pull-8{position:relative;right:66.66667%;left:auto}.rtmedia-container .push-9,.rtmedia-activity-container .push-9,#buddypress div.rtmedia-activity-container .push-9{position:relative;left:75%;right:auto}.rtmedia-container .pull-9,.rtmedia-activity-container .pull-9,#buddypress div.rtmedia-activity-container .pull-9{position:relative;right:75%;left:auto}.rtmedia-container .push-10,.rtmedia-activity-container .push-10,#buddypress div.rtmedia-activity-container .push-10{position:relative;left:83.33333%;right:auto}.rtmedia-container .pull-10,.rtmedia-activity-container .pull-10,#buddypress div.rtmedia-activity-container .pull-10{position:relative;right:83.33333%;left:auto}.rtmedia-container .push-11,.rtmedia-activity-container .push-11,#buddypress div.rtmedia-activity-container .push-11{position:relative;left:91.66667%;right:auto}.rtmedia-container .pull-11,.rtmedia-activity-container .pull-11,#buddypress div.rtmedia-activity-container .pull-11{position:relative;right:91.66667%;left:auto}.rtmedia-container .column.large-centered,.rtmedia-activity-container .column.large-centered,#buddypress div.rtmedia-activity-container .column.large-centered,.rtmedia-container .columns.large-centered,.rtmedia-activity-container .columns.large-centered,#buddypress div.rtmedia-activity-container .columns.large-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}.rtmedia-container .column.large-uncentered,.rtmedia-activity-container .column.large-uncentered,#buddypress div.rtmedia-activity-container .column.large-uncentered,.rtmedia-container .columns.large-uncentered,.rtmedia-activity-container .columns.large-uncentered,#buddypress div.rtmedia-activity-container .columns.large-uncentered{margin-left:0;margin-right:0;float:left !important}.rtmedia-container .column.large-uncentered.opposite,.rtmedia-activity-container .column.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .column.large-uncentered.opposite,.rtmedia-container .columns.large-uncentered.opposite,.rtmedia-activity-container .columns.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .columns.large-uncentered.opposite{float:right !important}}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up,.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up,.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up,.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up,.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:inherit !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:none !important}.rtmedia-container table.show-for-small,.rtmedia-activity-container table.show-for-small,#buddypress div.rtmedia-activity-container table.show-for-small,.rtmedia-container table.show-for-medium-down,.rtmedia-activity-container table.show-for-medium-down,#buddypress div.rtmedia-activity-container table.show-for-medium-down,.rtmedia-container table.show-for-large-down,.rtmedia-activity-container table.show-for-large-down,#buddypress div.rtmedia-activity-container table.show-for-large-down,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-up,.rtmedia-activity-container table.hide-for-medium-up,#buddypress div.rtmedia-activity-container table.hide-for-medium-up,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-up,.rtmedia-activity-container table.hide-for-large-up,#buddypress div.rtmedia-activity-container table.hide-for-large-up,.rtmedia-container table.hide-for-xlarge,.rtmedia-activity-container table.hide-for-xlarge,#buddypress div.rtmedia-activity-container table.hide-for-xlarge{display:table}.rtmedia-container thead.show-for-small,.rtmedia-activity-container thead.show-for-small,#buddypress div.rtmedia-activity-container thead.show-for-small,.rtmedia-container thead.show-for-medium-down,.rtmedia-activity-container thead.show-for-medium-down,#buddypress div.rtmedia-activity-container thead.show-for-medium-down,.rtmedia-container thead.show-for-large-down,.rtmedia-activity-container thead.show-for-large-down,#buddypress div.rtmedia-activity-container thead.show-for-large-down,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-up,.rtmedia-activity-container thead.hide-for-medium-up,#buddypress div.rtmedia-activity-container thead.hide-for-medium-up,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-up,.rtmedia-activity-container thead.hide-for-large-up,#buddypress div.rtmedia-activity-container thead.hide-for-large-up,.rtmedia-container thead.hide-for-xlarge,.rtmedia-activity-container thead.hide-for-xlarge,#buddypress div.rtmedia-activity-container thead.hide-for-xlarge{display:table-header-group !important}.rtmedia-container tbody.show-for-small,.rtmedia-activity-container tbody.show-for-small,#buddypress div.rtmedia-activity-container tbody.show-for-small,.rtmedia-container tbody.show-for-medium-down,.rtmedia-activity-container tbody.show-for-medium-down,#buddypress div.rtmedia-activity-container tbody.show-for-medium-down,.rtmedia-container tbody.show-for-large-down,.rtmedia-activity-container tbody.show-for-large-down,#buddypress div.rtmedia-activity-container tbody.show-for-large-down,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-up,.rtmedia-activity-container tbody.hide-for-medium-up,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-up,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-up,.rtmedia-activity-container tbody.hide-for-large-up,#buddypress div.rtmedia-activity-container tbody.hide-for-large-up,.rtmedia-container tbody.hide-for-xlarge,.rtmedia-activity-container tbody.hide-for-xlarge,#buddypress div.rtmedia-activity-container tbody.hide-for-xlarge{display:table-row-group !important}.rtmedia-container tr.show-for-small,.rtmedia-activity-container tr.show-for-small,#buddypress div.rtmedia-activity-container tr.show-for-small,.rtmedia-container tr.show-for-medium-down,.rtmedia-activity-container tr.show-for-medium-down,#buddypress div.rtmedia-activity-container tr.show-for-medium-down,.rtmedia-container tr.show-for-large-down,.rtmedia-activity-container tr.show-for-large-down,#buddypress div.rtmedia-activity-container tr.show-for-large-down,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-up,.rtmedia-activity-container tr.hide-for-medium-up,#buddypress div.rtmedia-activity-container tr.hide-for-medium-up,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-up,.rtmedia-activity-container tr.hide-for-large-up,#buddypress div.rtmedia-activity-container tr.hide-for-large-up,.rtmedia-container tr.hide-for-xlarge,.rtmedia-activity-container tr.hide-for-xlarge,#buddypress div.rtmedia-activity-container tr.hide-for-xlarge{display:table-row !important}.rtmedia-container td.show-for-small,.rtmedia-activity-container td.show-for-small,#buddypress div.rtmedia-activity-container td.show-for-small,.rtmedia-container td.show-for-medium-down,.rtmedia-activity-container td.show-for-medium-down,#buddypress div.rtmedia-activity-container td.show-for-medium-down,.rtmedia-container td.show-for-large-down,.rtmedia-activity-container td.show-for-large-down,#buddypress div.rtmedia-activity-container td.show-for-large-down,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-up,.rtmedia-activity-container td.hide-for-medium-up,#buddypress div.rtmedia-activity-container td.hide-for-medium-up,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-up,.rtmedia-activity-container td.hide-for-large-up,#buddypress div.rtmedia-activity-container td.hide-for-large-up,.rtmedia-container td.hide-for-xlarge,.rtmedia-activity-container td.hide-for-xlarge,#buddypress div.rtmedia-activity-container td.hide-for-xlarge,.rtmedia-container th.show-for-small,.rtmedia-activity-container th.show-for-small,#buddypress div.rtmedia-activity-container th.show-for-small,.rtmedia-container th.show-for-medium-down,.rtmedia-activity-container th.show-for-medium-down,#buddypress div.rtmedia-activity-container th.show-for-medium-down,.rtmedia-container th.show-for-large-down,.rtmedia-activity-container th.show-for-large-down,#buddypress div.rtmedia-activity-container th.show-for-large-down,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-up,.rtmedia-activity-container th.hide-for-medium-up,#buddypress div.rtmedia-activity-container th.hide-for-medium-up,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-up,.rtmedia-activity-container th.hide-for-large-up,#buddypress div.rtmedia-activity-container th.hide-for-large-up,.rtmedia-container th.hide-for-xlarge,.rtmedia-activity-container th.hide-for-xlarge,#buddypress div.rtmedia-activity-container th.hide-for-xlarge{display:table-cell !important}@media only screen and (min-width: 768px){.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up{display:inherit !important}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small{display:none !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small{display:inherit !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up{display:none !important}.rtmedia-container table.show-for-medium,.rtmedia-activity-container table.show-for-medium,#buddypress div.rtmedia-activity-container table.show-for-medium,.rtmedia-container table.show-for-medium-up,.rtmedia-activity-container table.show-for-medium-up,#buddypress div.rtmedia-activity-container table.show-for-medium-up,.rtmedia-container table.hide-for-small,.rtmedia-activity-container table.hide-for-small,#buddypress div.rtmedia-activity-container table.hide-for-small{display:table}.rtmedia-container thead.show-for-medium,.rtmedia-activity-container thead.show-for-medium,#buddypress div.rtmedia-activity-container thead.show-for-medium,.rtmedia-container thead.show-for-medium-up,.rtmedia-activity-container thead.show-for-medium-up,#buddypress div.rtmedia-activity-container thead.show-for-medium-up,.rtmedia-container thead.hide-for-small,.rtmedia-activity-container thead.hide-for-small,#buddypress div.rtmedia-activity-container thead.hide-for-small{display:table-header-group !important}.rtmedia-container tbody.show-for-medium,.rtmedia-activity-container tbody.show-for-medium,#buddypress div.rtmedia-activity-container tbody.show-for-medium,.rtmedia-container tbody.show-for-medium-up,.rtmedia-activity-container tbody.show-for-medium-up,#buddypress div.rtmedia-activity-container tbody.show-for-medium-up,.rtmedia-container tbody.hide-for-small,.rtmedia-activity-container tbody.hide-for-small,#buddypress div.rtmedia-activity-container tbody.hide-for-small{display:table-row-group !important}.rtmedia-container tr.show-for-medium,.rtmedia-activity-container tr.show-for-medium,#buddypress div.rtmedia-activity-container tr.show-for-medium,.rtmedia-container tr.show-for-medium-up,.rtmedia-activity-container tr.show-for-medium-up,#buddypress div.rtmedia-activity-container tr.show-for-medium-up,.rtmedia-container tr.hide-for-small,.rtmedia-activity-container tr.hide-for-small,#buddypress div.rtmedia-activity-container tr.hide-for-small{display:table-row !important}.rtmedia-container td.show-for-medium,.rtmedia-activity-container td.show-for-medium,#buddypress div.rtmedia-activity-container td.show-for-medium,.rtmedia-container td.show-for-medium-up,.rtmedia-activity-container td.show-for-medium-up,#buddypress div.rtmedia-activity-container td.show-for-medium-up,.rtmedia-container td.hide-for-small,.rtmedia-activity-container td.hide-for-small,#buddypress div.rtmedia-activity-container td.hide-for-small,.rtmedia-container th.show-for-medium,.rtmedia-activity-container th.show-for-medium,#buddypress div.rtmedia-activity-container th.show-for-medium,.rtmedia-container th.show-for-medium-up,.rtmedia-activity-container th.show-for-medium-up,#buddypress div.rtmedia-activity-container th.show-for-medium-up,.rtmedia-container th.hide-for-small,.rtmedia-activity-container th.hide-for-small,#buddypress div.rtmedia-activity-container th.hide-for-small{display:table-cell !important}}@media only screen and (min-width: 1280px){.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down{display:inherit !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up{display:none !important}.rtmedia-container table.show-for-large,.rtmedia-activity-container table.show-for-large,#buddypress div.rtmedia-activity-container table.show-for-large,.rtmedia-container table.show-for-large-up,.rtmedia-activity-container table.show-for-large-up,#buddypress div.rtmedia-activity-container table.show-for-large-up,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-down,.rtmedia-activity-container table.hide-for-medium-down,#buddypress div.rtmedia-activity-container table.hide-for-medium-down{display:table}.rtmedia-container thead.show-for-large,.rtmedia-activity-container thead.show-for-large,#buddypress div.rtmedia-activity-container thead.show-for-large,.rtmedia-container thead.show-for-large-up,.rtmedia-activity-container thead.show-for-large-up,#buddypress div.rtmedia-activity-container thead.show-for-large-up,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-down,.rtmedia-activity-container thead.hide-for-medium-down,#buddypress div.rtmedia-activity-container thead.hide-for-medium-down{display:table-header-group !important}.rtmedia-container tbody.show-for-large,.rtmedia-activity-container tbody.show-for-large,#buddypress div.rtmedia-activity-container tbody.show-for-large,.rtmedia-container tbody.show-for-large-up,.rtmedia-activity-container tbody.show-for-large-up,#buddypress div.rtmedia-activity-container tbody.show-for-large-up,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-down,.rtmedia-activity-container tbody.hide-for-medium-down,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-down{display:table-row-group !important}.rtmedia-container tr.show-for-large,.rtmedia-activity-container tr.show-for-large,#buddypress div.rtmedia-activity-container tr.show-for-large,.rtmedia-container tr.show-for-large-up,.rtmedia-activity-container tr.show-for-large-up,#buddypress div.rtmedia-activity-container tr.show-for-large-up,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-down,.rtmedia-activity-container tr.hide-for-medium-down,#buddypress div.rtmedia-activity-container tr.hide-for-medium-down{display:table-row !important}.rtmedia-container td.show-for-large,.rtmedia-activity-container td.show-for-large,#buddypress div.rtmedia-activity-container td.show-for-large,.rtmedia-container td.show-for-large-up,.rtmedia-activity-container td.show-for-large-up,#buddypress div.rtmedia-activity-container td.show-for-large-up,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-down,.rtmedia-activity-container td.hide-for-medium-down,#buddypress div.rtmedia-activity-container td.hide-for-medium-down,.rtmedia-container th.show-for-large,.rtmedia-activity-container th.show-for-large,#buddypress div.rtmedia-activity-container th.show-for-large,.rtmedia-container th.show-for-large-up,.rtmedia-activity-container th.show-for-large-up,#buddypress div.rtmedia-activity-container th.show-for-large-up,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-down,.rtmedia-activity-container th.hide-for-medium-down,#buddypress div.rtmedia-activity-container th.hide-for-medium-down{display:table-cell !important}}@media only screen and (min-width: 1440px){.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:inherit !important}.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:none !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:inherit !important}.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:none !important}.rtmedia-container table.show-for-xlarge,.rtmedia-activity-container table.show-for-xlarge,#buddypress div.rtmedia-activity-container table.show-for-xlarge,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-down,.rtmedia-activity-container table.hide-for-large-down,#buddypress div.rtmedia-activity-container table.hide-for-large-down{display:table}.rtmedia-container thead.show-for-xlarge,.rtmedia-activity-container thead.show-for-xlarge,#buddypress div.rtmedia-activity-container thead.show-for-xlarge,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-down,.rtmedia-activity-container thead.hide-for-large-down,#buddypress div.rtmedia-activity-container thead.hide-for-large-down{display:table-header-group !important}.rtmedia-container tbody.show-for-xlarge,.rtmedia-activity-container tbody.show-for-xlarge,#buddypress div.rtmedia-activity-container tbody.show-for-xlarge,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-down,.rtmedia-activity-container tbody.hide-for-large-down,#buddypress div.rtmedia-activity-container tbody.hide-for-large-down{display:table-row-group !important}.rtmedia-container tr.show-for-xlarge,.rtmedia-activity-container tr.show-for-xlarge,#buddypress div.rtmedia-activity-container tr.show-for-xlarge,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-down,.rtmedia-activity-container tr.hide-for-large-down,#buddypress div.rtmedia-activity-container tr.hide-for-large-down{display:table-row !important}.rtmedia-container td.show-for-xlarge,.rtmedia-activity-container td.show-for-xlarge,#buddypress div.rtmedia-activity-container td.show-for-xlarge,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-down,.rtmedia-activity-container td.hide-for-large-down,#buddypress div.rtmedia-activity-container td.hide-for-large-down,.rtmedia-container th.show-for-xlarge,.rtmedia-activity-container th.show-for-xlarge,#buddypress div.rtmedia-activity-container th.show-for-xlarge,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-down,.rtmedia-activity-container th.hide-for-large-down,#buddypress div.rtmedia-activity-container th.hide-for-large-down{display:table-cell !important}}.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape,.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait{display:table}.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape,.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait{display:table-header-group !important}.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape,.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait{display:table-row-group !important}.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape,.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait{display:table-row !important}.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait{display:table-cell !important}@media only screen and (orientation: landscape){.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.show-for-landscape,.rtmedia-activity-container table.show-for-landscape,#buddypress div.rtmedia-activity-container table.show-for-landscape,.rtmedia-container table.hide-for-portrait,.rtmedia-activity-container table.hide-for-portrait,#buddypress div.rtmedia-activity-container table.hide-for-portrait{display:table}.rtmedia-container thead.show-for-landscape,.rtmedia-activity-container thead.show-for-landscape,#buddypress div.rtmedia-activity-container thead.show-for-landscape,.rtmedia-container thead.hide-for-portrait,.rtmedia-activity-container thead.hide-for-portrait,#buddypress div.rtmedia-activity-container thead.hide-for-portrait{display:table-header-group !important}.rtmedia-container tbody.show-for-landscape,.rtmedia-activity-container tbody.show-for-landscape,#buddypress div.rtmedia-activity-container tbody.show-for-landscape,.rtmedia-container tbody.hide-for-portrait,.rtmedia-activity-container tbody.hide-for-portrait,#buddypress div.rtmedia-activity-container tbody.hide-for-portrait{display:table-row-group !important}.rtmedia-container tr.show-for-landscape,.rtmedia-activity-container tr.show-for-landscape,#buddypress div.rtmedia-activity-container tr.show-for-landscape,.rtmedia-container tr.hide-for-portrait,.rtmedia-activity-container tr.hide-for-portrait,#buddypress div.rtmedia-activity-container tr.hide-for-portrait{display:table-row !important}.rtmedia-container td.show-for-landscape,.rtmedia-activity-container td.show-for-landscape,#buddypress div.rtmedia-activity-container td.show-for-landscape,.rtmedia-container td.hide-for-portrait,.rtmedia-activity-container td.hide-for-portrait,#buddypress div.rtmedia-activity-container td.hide-for-portrait,.rtmedia-container th.show-for-landscape,.rtmedia-activity-container th.show-for-landscape,#buddypress div.rtmedia-activity-container th.show-for-landscape,.rtmedia-container th.hide-for-portrait,.rtmedia-activity-container th.hide-for-portrait,#buddypress div.rtmedia-activity-container th.hide-for-portrait{display:table-cell !important}}@media only screen and (orientation: portrait){.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait,.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape{display:inherit !important}.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait,.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape{display:none !important}.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait,.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape{display:table}.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait,.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape{display:table-header-group !important}.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait,.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape{display:table-row-group !important}.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait,.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape{display:table-row !important}.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape{display:table-cell !important}}.rtmedia-container .show-for-touch,.rtmedia-activity-container .show-for-touch,#buddypress div.rtmedia-activity-container .show-for-touch{display:none !important}.rtmedia-container .hide-for-touch,.rtmedia-activity-container .hide-for-touch,#buddypress div.rtmedia-activity-container .hide-for-touch{display:inherit !important}.rtmedia-container .touch .show-for-touch,.rtmedia-activity-container .touch .show-for-touch,#buddypress div.rtmedia-activity-container .touch .show-for-touch{display:inherit !important}.rtmedia-container .touch .hide-for-touch,.rtmedia-activity-container .touch .hide-for-touch,#buddypress div.rtmedia-activity-container .touch .hide-for-touch{display:none !important}.rtmedia-container table.hide-for-touch,.rtmedia-activity-container table.hide-for-touch,#buddypress div.rtmedia-activity-container table.hide-for-touch{display:table}.rtmedia-container .touch table.show-for-touch,.rtmedia-activity-container .touch table.show-for-touch,#buddypress div.rtmedia-activity-container .touch table.show-for-touch{display:table}.rtmedia-container thead.hide-for-touch,.rtmedia-activity-container thead.hide-for-touch,#buddypress div.rtmedia-activity-container thead.hide-for-touch{display:table-header-group !important}.rtmedia-container .touch thead.show-for-touch,.rtmedia-activity-container .touch thead.show-for-touch,#buddypress div.rtmedia-activity-container .touch thead.show-for-touch{display:table-header-group !important}.rtmedia-container tbody.hide-for-touch,.rtmedia-activity-container tbody.hide-for-touch,#buddypress div.rtmedia-activity-container tbody.hide-for-touch{display:table-row-group !important}.rtmedia-container .touch tbody.show-for-touch,.rtmedia-activity-container .touch tbody.show-for-touch,#buddypress div.rtmedia-activity-container .touch tbody.show-for-touch{display:table-row-group !important}.rtmedia-container tr.hide-for-touch,.rtmedia-activity-container tr.hide-for-touch,#buddypress div.rtmedia-activity-container tr.hide-for-touch{display:table-row !important}.rtmedia-container .touch tr.show-for-touch,.rtmedia-activity-container .touch tr.show-for-touch,#buddypress div.rtmedia-activity-container .touch tr.show-for-touch{display:table-row !important}.rtmedia-container td.hide-for-touch,.rtmedia-activity-container td.hide-for-touch,#buddypress div.rtmedia-activity-container td.hide-for-touch{display:table-cell !important}.rtmedia-container .touch td.show-for-touch,.rtmedia-activity-container .touch td.show-for-touch,#buddypress div.rtmedia-activity-container .touch td.show-for-touch{display:table-cell !important}.rtmedia-container th.hide-for-touch,.rtmedia-activity-container th.hide-for-touch,#buddypress div.rtmedia-activity-container th.hide-for-touch{display:table-cell !important}.rtmedia-container .touch th.show-for-touch,.rtmedia-activity-container .touch th.show-for-touch,#buddypress div.rtmedia-activity-container .touch th.show-for-touch{display:table-cell !important}.rtmedia-container .flex-video,.rtmedia-activity-container .flex-video,#buddypress div.rtmedia-activity-container .flex-video{position:relative;padding-top:1.5625em;padding-bottom:67.5%;height:0;margin-bottom:1em;overflow:hidden}.rtmedia-container .flex-video.widescreen,.rtmedia-activity-container .flex-video.widescreen,#buddypress div.rtmedia-activity-container .flex-video.widescreen{padding-bottom:57.25%}.rtmedia-container .flex-video.vimeo,.rtmedia-activity-container .flex-video.vimeo,#buddypress div.rtmedia-activity-container .flex-video.vimeo{padding-top:0}.rtmedia-container .flex-video iframe,.rtmedia-activity-container .flex-video iframe,#buddypress div.rtmedia-activity-container .flex-video iframe,.rtmedia-container .flex-video object,.rtmedia-activity-container .flex-video object,#buddypress div.rtmedia-activity-container .flex-video object,.rtmedia-container .flex-video embed,.rtmedia-activity-container .flex-video embed,#buddypress div.rtmedia-activity-container .flex-video embed,.rtmedia-container .flex-video video,.rtmedia-activity-container .flex-video video,#buddypress div.rtmedia-activity-container .flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{max-width:95%}.rtmedia-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title,#buddypress div.rtmedia-activity-container .rtmedia-item-title{text-align:center}.rtmedia-container .rtmedia-item-title h4,.rtmedia-activity-container .rtmedia-item-title h4,#buddypress div.rtmedia-activity-container .rtmedia-item-title h4{text-overflow:ellipsis;white-space:nowrap;width:100%;overflow:hidden;font-size:1.1em;text-align:center}.rtmedia-container .rtmedia-success,.rtmedia-activity-container .rtmedia-success,#buddypress div.rtmedia-activity-container .rtmedia-success{display:block;padding:10px;border:1px solid #008000;background-color:#90EE90;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2{font-size:1.4em;font-weight:bold;line-height:2.4em}.rtmedia-container .drag-drop,.rtmedia-activity-container .drag-drop,#buddypress div.rtmedia-activity-container .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;padding:15px 0}.rtmedia-container .drag-drop.dragover,.rtmedia-activity-container .drag-drop.dragover,#buddypress div.rtmedia-activity-container .drag-drop.dragover{border-color:#83b4d8}.rtmedia-container .rtmedia-action-update,.rtmedia-activity-container .rtmedia-action-update,#buddypress div.rtmedia-activity-container .rtmedia-action-update{float:left;margin-top:12px;margin-right:10px}.rtmedia-container .rtmedia-list,.rtmedia-activity-container .rtmedia-list,#buddypress div.rtmedia-activity-container .rtmedia-list{list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item{word-wrap:break-word;padding:20px;float:left}.rtmedia-container .rtmedia-list .rtmedia-list-item a,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a{text-decoration:none}.rtmedia-container .rtmedia-list .rtmedia-list-item a h4,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4{line-height:1.4em;font-size:1.2em;padding-top:10px}.rtmedia-container .rtmedia-media img,.rtmedia-activity-container .rtmedia-media img,#buddypress div.rtmedia-activity-container .rtmedia-media img{max-width:100%}.rtmedia-container .rtmedia-item-thumbnail,.rtmedia-activity-container .rtmedia-item-thumbnail,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail{text-align:center}.rtmedia-container .rtmedia-item-thumbnail img,.rtmedia-activity-container .rtmedia-item-thumbnail img,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail img{vertical-align:middle}.rtmedia-container .rtmedia_next_prev,.rtmedia-activity-container .rtmedia_next_prev,#buddypress div.rtmedia-activity-container .rtmedia_next_prev{float:left}.rtmedia-container .rtmedia-item-comments-container,.rtmedia-activity-container .rtmedia-item-comments-container,#buddypress div.rtmedia-activity-container .rtmedia-item-comments-container{margin:3% 3%}.rtmedia-container .rtmedia-comment,.rtmedia-activity-container .rtmedia-comment,#buddypress div.rtmedia-activity-container .rtmedia-comment{list-style:none;background:#f6f6f6;border:1px solid #ddd;-moz-border-radius:3px;border-radius:3px;margin:5px 0;padding:1px 5px 25px;width:391px}.rtmedia-container .rtmedia-comment .rtmedia-comment-author,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-content,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-date,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date{display:block;float:right}.rtmedia-container .rtmedia-bp-header,.rtmedia-activity-container .rtmedia-bp-header,#buddypress div.rtmedia-activity-container .rtmedia-bp-header{width:460px;margin:auto}.rtmedia-container #div-attache-rtmedia,.rtmedia-activity-container #div-attache-rtmedia,#buddypress div.rtmedia-activity-container #div-attache-rtmedia{display:none}.rtmedia-container #rtMedia-update-queue-list p span,.rtmedia-activity-container #rtMedia-update-queue-list p span{margin-right:20px}.rtmedia-container .rtmedia-move-container,.rtmedia-activity-container .rtmedia-move-container,#buddypress div.rtmedia-activity-container .rtmedia-move-container{display:none}.rtmedia-container #rtmedia-add-media-button-post-update,.rtmedia-activity-container #rtmedia-add-media-button-post-update,#buddypress div.rtmedia-activity-container #rtmedia-add-media-button-post-update{float:left;margin-top:10px;margin-right:20px}.rtmedia-container #whats-new-post-in-box,.rtmedia-activity-container #whats-new-post-in-box,#buddypress div.rtmedia-activity-container #whats-new-post-in-box{float:left}.rtmedia-container .rtmedia-activity-text,.rtmedia-activity-container .rtmedia-activity-text,#buddypress div.rtmedia-activity-container .rtmedia-activity-text{display:block;padding-bottom:10px}.rtmedia-container .rtmedia-merge-container,.rtmedia-activity-container .rtmedia-merge-container,#buddypress div.rtmedia-activity-container .rtmedia-merge-container{display:none}.rtmedia-container .rtmedia-create-new-album-container,.rtmedia-activity-container .rtmedia-create-new-album-container,#buddypress div.rtmedia-activity-container .rtmedia-create-new-album-container{display:none}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:auto}.rtmedia-container.rtmedia-single-container .row,.rtmedia-single-container.rtmedia-activity-container .row,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row{background-color:#FFF}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container{padding-top:10px;padding-bottom:10px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-overlay-button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-overlay-button{margin:-50px 0 0 -50px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-button button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-button button{cursor:pointer;display:block;font-size:0;line-height:0;text-decoration:none;margin:7px 5px;padding:0;position:absolute;height:16px;width:16px;border:0;background:rgba(0,0,0,0) url("../../../lib/media-element/controls.png") no-repeat}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-mute button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-mute button{background-position:-16px -16px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-fullscreen-button button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta button,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button{color:#5E5E5E;background-color:#EBEBEB;background-repeat:repeat-x;background-image:-moz-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-ms-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-webkit-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-o-linear-gradient(top, #f9f9f9, #ebebeb);background-image:linear-gradient(to bottom, #f9f9f9,#ebebeb)}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a{float:left;margin:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a{display:inline-block;float:left}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>form,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form{float:left;margin-right:5px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span{background:#EEE;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;border:1px solid #CCC;color:#999;display:inline;font-size:70%;margin-left:2px;margin-right:2px;padding:3px 6px;text-align:center;vertical-align:middle}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments{background-color:transparent}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments div,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div{background-color:transparent}.rtmedia-container #wp-description-editor-tools a.wp-switch-editor,.rtmedia-activity-container #wp-description-editor-tools a.wp-switch-editor{margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border:1px solid;border-color:#DFDFDF #DFDFDF #CCC;font:13px/18px Arial,Helvetica,sans-serif normal;height:auto}.rtmedia-container #description_toolbargroup .mceToolbar td,.rtmedia-activity-container #description_toolbargroup .mceToolbar td{padding:0px}.rtmedia-container #wp-description-editor-container,.rtmedia-activity-container #wp-description-editor-container,#buddypress div.rtmedia-activity-container #wp-description-editor-container{border-width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#CCC #CCC #DFDFDF}#buddypress div.rtmedia-activity-container ul.rtmedia-list li{float:left;padding:10px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video{float:none}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail{margin:0 auto}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-overlay-button{margin:-50px 0 0 -50px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-controls .mejs-button button{cursor:pointer;display:block;font-size:0;line-height:0;text-decoration:none;margin:7px 5px;padding:0;position:absolute;height:16px;width:16px;border:0;background:rgba(0,0,0,0) url("../../../lib/media-element/controls.png") no-repeat}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#rtmedia-action-update{float:left;padding-right:10px}#header{z-index:1 !important}.bp_media_content video{background-color:black}.rtmedia-success{display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#2ECC71;color:white}.rtmedia-error{color:white;display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#E74C3C}
1
+ .rtmedia-container,.rtmedia-activity-container,#buddypress div.rtmedia-activity-container{padding:5px;margin:0;clear:left}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body,.rtmedia-container div,.rtmedia-activity-container div,#buddypress div.rtmedia-activity-container div,.rtmedia-container span,.rtmedia-activity-container span,#buddypress div.rtmedia-activity-container span,.rtmedia-container applet,.rtmedia-activity-container applet,#buddypress div.rtmedia-activity-container applet,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container iframe,.rtmedia-activity-container iframe,#buddypress div.rtmedia-activity-container iframe,.rtmedia-container h1,.rtmedia-activity-container h1,#buddypress div.rtmedia-activity-container h1,.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2,.rtmedia-container h3,.rtmedia-activity-container h3,#buddypress div.rtmedia-activity-container h3,.rtmedia-container h4,.rtmedia-activity-container h4,#buddypress div.rtmedia-activity-container h4,.rtmedia-container h5,.rtmedia-activity-container h5,#buddypress div.rtmedia-activity-container h5,.rtmedia-container h6,.rtmedia-activity-container h6,#buddypress div.rtmedia-activity-container h6,.rtmedia-container p,.rtmedia-activity-container p,#buddypress div.rtmedia-activity-container p,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote,.rtmedia-container pre,.rtmedia-activity-container pre,#buddypress div.rtmedia-activity-container pre,.rtmedia-container a,.rtmedia-activity-container a,#buddypress div.rtmedia-activity-container a,.rtmedia-container abbr,.rtmedia-activity-container abbr,#buddypress div.rtmedia-activity-container abbr,.rtmedia-container acronym,.rtmedia-activity-container acronym,#buddypress div.rtmedia-activity-container acronym,.rtmedia-container address,.rtmedia-activity-container address,#buddypress div.rtmedia-activity-container address,.rtmedia-container big,.rtmedia-activity-container big,#buddypress div.rtmedia-activity-container big,.rtmedia-container cite,.rtmedia-activity-container cite,#buddypress div.rtmedia-activity-container cite,.rtmedia-container code,.rtmedia-activity-container code,#buddypress div.rtmedia-activity-container code,.rtmedia-container del,.rtmedia-activity-container del,#buddypress div.rtmedia-activity-container del,.rtmedia-container dfn,.rtmedia-activity-container dfn,#buddypress div.rtmedia-activity-container dfn,.rtmedia-container em,.rtmedia-activity-container em,#buddypress div.rtmedia-activity-container em,.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container ins,.rtmedia-activity-container ins,#buddypress div.rtmedia-activity-container ins,.rtmedia-container kbd,.rtmedia-activity-container kbd,#buddypress div.rtmedia-activity-container kbd,.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container s,.rtmedia-activity-container s,#buddypress div.rtmedia-activity-container s,.rtmedia-container samp,.rtmedia-activity-container samp,#buddypress div.rtmedia-activity-container samp,.rtmedia-container small,.rtmedia-activity-container small,#buddypress div.rtmedia-activity-container small,.rtmedia-container strike,.rtmedia-activity-container strike,#buddypress div.rtmedia-activity-container strike,.rtmedia-container strong,.rtmedia-activity-container strong,#buddypress div.rtmedia-activity-container strong,.rtmedia-container sub,.rtmedia-activity-container sub,#buddypress div.rtmedia-activity-container sub,.rtmedia-container sup,.rtmedia-activity-container sup,#buddypress div.rtmedia-activity-container sup,.rtmedia-container tt,.rtmedia-activity-container tt,#buddypress div.rtmedia-activity-container tt,.rtmedia-container var,.rtmedia-activity-container var,#buddypress div.rtmedia-activity-container var,.rtmedia-container b,.rtmedia-activity-container b,#buddypress div.rtmedia-activity-container b,.rtmedia-container u,.rtmedia-activity-container u,#buddypress div.rtmedia-activity-container u,.rtmedia-container i,.rtmedia-activity-container i,#buddypress div.rtmedia-activity-container i,.rtmedia-container center,.rtmedia-activity-container center,#buddypress div.rtmedia-activity-container center,.rtmedia-container dl,.rtmedia-activity-container dl,#buddypress div.rtmedia-activity-container dl,.rtmedia-container dt,.rtmedia-activity-container dt,#buddypress div.rtmedia-activity-container dt,.rtmedia-container dd,.rtmedia-activity-container dd,#buddypress div.rtmedia-activity-container dd,.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul,.rtmedia-container li,.rtmedia-activity-container li,#buddypress div.rtmedia-activity-container li,.rtmedia-container fieldset,.rtmedia-activity-container fieldset,#buddypress div.rtmedia-activity-container fieldset,.rtmedia-container form,.rtmedia-activity-container form,#buddypress div.rtmedia-activity-container form,.rtmedia-container label,.rtmedia-activity-container label,#buddypress div.rtmedia-activity-container label,.rtmedia-container legend,.rtmedia-activity-container legend,#buddypress div.rtmedia-activity-container legend,.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table,.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container tbody,.rtmedia-activity-container tbody,#buddypress div.rtmedia-activity-container tbody,.rtmedia-container tfoot,.rtmedia-activity-container tfoot,#buddypress div.rtmedia-activity-container tfoot,.rtmedia-container thead,.rtmedia-activity-container thead,#buddypress div.rtmedia-activity-container thead,.rtmedia-container tr,.rtmedia-activity-container tr,#buddypress div.rtmedia-activity-container tr,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td,.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container canvas,.rtmedia-activity-container canvas,#buddypress div.rtmedia-activity-container canvas,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container output,.rtmedia-activity-container output,#buddypress div.rtmedia-activity-container output,.rtmedia-container ruby,.rtmedia-activity-container ruby,#buddypress div.rtmedia-activity-container ruby,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary,.rtmedia-container time,.rtmedia-activity-container time,#buddypress div.rtmedia-activity-container time,.rtmedia-container mark,.rtmedia-activity-container mark,#buddypress div.rtmedia-activity-container mark,.rtmedia-container audio,.rtmedia-activity-container audio,#buddypress div.rtmedia-activity-container audio,.rtmedia-container video,.rtmedia-activity-container video,#buddypress div.rtmedia-activity-container video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html{line-height:1}.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul{list-style:none}.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table{border-collapse:collapse;border-spacing:0}.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td{text-align:left;font-weight:normal;vertical-align:middle}.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote{quotes:none}.rtmedia-container q:before,.rtmedia-activity-container q:before,#buddypress div.rtmedia-activity-container q:before,.rtmedia-container q:after,.rtmedia-activity-container q:after,#buddypress div.rtmedia-activity-container q:after,.rtmedia-container blockquote:before,.rtmedia-activity-container blockquote:before,#buddypress div.rtmedia-activity-container blockquote:before,.rtmedia-container blockquote:after,.rtmedia-activity-container blockquote:after,#buddypress div.rtmedia-activity-container blockquote:after{content:"";content:none}.rtmedia-container a img,.rtmedia-activity-container a img,#buddypress div.rtmedia-activity-container a img{border:none}.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary{display:block}.rtmedia-container *,.rtmedia-activity-container *,#buddypress div.rtmedia-activity-container *,.rtmedia-container *:before,.rtmedia-activity-container *:before,#buddypress div.rtmedia-activity-container *:before,.rtmedia-container *:after,.rtmedia-activity-container *:after,#buddypress div.rtmedia-activity-container *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{font-size:100%}.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}.rtmedia-container a:hover,.rtmedia-activity-container a:hover,#buddypress div.rtmedia-activity-container a:hover{cursor:pointer}.rtmedia-container a:focus,.rtmedia-activity-container a:focus,#buddypress div.rtmedia-activity-container a:focus{outline:none}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{max-width:100%;height:auto}.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{height:100%}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{-ms-interpolation-mode:bicubic}.rtmedia-container #map_canvas img,.rtmedia-activity-container #map_canvas img,.rtmedia-container #map_canvas embed,.rtmedia-activity-container #map_canvas embed,.rtmedia-container #map_canvas object,.rtmedia-activity-container #map_canvas object,.rtmedia-container .map_canvas img,.rtmedia-activity-container .map_canvas img,#buddypress div.rtmedia-activity-container .map_canvas img,.rtmedia-container .map_canvas embed,.rtmedia-activity-container .map_canvas embed,#buddypress div.rtmedia-activity-container .map_canvas embed,.rtmedia-container .map_canvas object,.rtmedia-activity-container .map_canvas object,#buddypress div.rtmedia-activity-container .map_canvas object{max-width:none !important}.rtmedia-container .left,.rtmedia-activity-container .left,#buddypress div.rtmedia-activity-container .left{float:left !important}.rtmedia-container .right,.rtmedia-activity-container .right,#buddypress div.rtmedia-activity-container .right{float:right !important}.rtmedia-container .text-left,.rtmedia-activity-container .text-left,#buddypress div.rtmedia-activity-container .text-left{text-align:left !important}.rtmedia-container .text-right,.rtmedia-activity-container .text-right,#buddypress div.rtmedia-activity-container .text-right{text-align:right !important}.rtmedia-container .text-center,.rtmedia-activity-container .text-center,#buddypress div.rtmedia-activity-container .text-center{text-align:center !important}.rtmedia-container .text-justify,.rtmedia-activity-container .text-justify,#buddypress div.rtmedia-activity-container .text-justify{text-align:justify !important}.rtmedia-container .hide,.rtmedia-activity-container .hide,#buddypress div.rtmedia-activity-container .hide{display:none}.rtmedia-container .antialiased,.rtmedia-activity-container .antialiased,#buddypress div.rtmedia-activity-container .antialiased{-webkit-font-smoothing:antialiased}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{display:inline-block;vertical-align:middle}.rtmedia-container textarea,.rtmedia-activity-container textarea,#buddypress div.rtmedia-activity-container textarea{height:auto;min-height:50px}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:100%}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1}.rtmedia-container .row:before,.rtmedia-activity-container .row:before,#buddypress div.rtmedia-activity-container .row:before,.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{content:" ";display:table}.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{clear:both}.rtmedia-container .row.collapse .column,.rtmedia-activity-container .row.collapse .column,#buddypress div.rtmedia-activity-container .row.collapse .column,.rtmedia-container .row.collapse .columns,.rtmedia-activity-container .row.collapse .columns,#buddypress div.rtmedia-activity-container .row.collapse .columns{position:relative;padding-left:0;padding-right:0;float:left}.rtmedia-container .row .row,.rtmedia-activity-container .row .row,#buddypress div.rtmedia-activity-container .row .row{width:auto;margin-left:-0.9375em;margin-right:-0.9375em;margin-top:0;margin-bottom:0;max-width:none;*zoom:1}.rtmedia-container .row .row:before,.rtmedia-activity-container .row .row:before,#buddypress div.rtmedia-activity-container .row .row:before,.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{content:" ";display:table}.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{clear:both}.rtmedia-container .row .row.collapse,.rtmedia-activity-container .row .row.collapse,#buddypress div.rtmedia-activity-container .row .row.collapse{width:auto;margin:0;max-width:none;*zoom:1}.rtmedia-container .row .row.collapse:before,.rtmedia-activity-container .row .row.collapse:before,#buddypress div.rtmedia-activity-container .row .row.collapse:before,.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{content:" ";display:table}.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{clear:both}.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;width:100%;float:left}@media only screen{.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;float:left}.rtmedia-container .small-1,.rtmedia-activity-container .small-1,#buddypress div.rtmedia-activity-container .small-1{position:relative;width:8.33333%}.rtmedia-container .small-2,.rtmedia-activity-container .small-2,#buddypress div.rtmedia-activity-container .small-2{position:relative;width:16.66667%}.rtmedia-container .small-3,.rtmedia-activity-container .small-3,#buddypress div.rtmedia-activity-container .small-3{position:relative;width:25%}.rtmedia-container .small-4,.rtmedia-activity-container .small-4,#buddypress div.rtmedia-activity-container .small-4{position:relative;width:33.33333%}.rtmedia-container .small-5,.rtmedia-activity-container .small-5,#buddypress div.rtmedia-activity-container .small-5{position:relative;width:41.66667%}.rtmedia-container .small-6,.rtmedia-activity-container .small-6,#buddypress div.rtmedia-activity-container .small-6{position:relative;width:50%}.rtmedia-container .small-7,.rtmedia-activity-container .small-7,#buddypress div.rtmedia-activity-container .small-7{position:relative;width:58.33333%}.rtmedia-container .small-8,.rtmedia-activity-container .small-8,#buddypress div.rtmedia-activity-container .small-8{position:relative;width:66.66667%}.rtmedia-container .small-9,.rtmedia-activity-container .small-9,#buddypress div.rtmedia-activity-container .small-9{position:relative;width:75%}.rtmedia-container .small-10,.rtmedia-activity-container .small-10,#buddypress div.rtmedia-activity-container .small-10{position:relative;width:83.33333%}.rtmedia-container .small-11,.rtmedia-activity-container .small-11,#buddypress div.rtmedia-activity-container .small-11{position:relative;width:91.66667%}.rtmedia-container .small-12,.rtmedia-activity-container .small-12,#buddypress div.rtmedia-activity-container .small-12{position:relative;width:100%}.rtmedia-container .small-offset-0,.rtmedia-activity-container .small-offset-0,#buddypress div.rtmedia-activity-container .small-offset-0{position:relative;margin-left:0%}.rtmedia-container .small-offset-1,.rtmedia-activity-container .small-offset-1,#buddypress div.rtmedia-activity-container .small-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .small-offset-2,.rtmedia-activity-container .small-offset-2,#buddypress div.rtmedia-activity-container .small-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .small-offset-3,.rtmedia-activity-container .small-offset-3,#buddypress div.rtmedia-activity-container .small-offset-3{position:relative;margin-left:25%}.rtmedia-container .small-offset-4,.rtmedia-activity-container .small-offset-4,#buddypress div.rtmedia-activity-container .small-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .small-offset-5,.rtmedia-activity-container .small-offset-5,#buddypress div.rtmedia-activity-container .small-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .small-offset-6,.rtmedia-activity-container .small-offset-6,#buddypress div.rtmedia-activity-container .small-offset-6{position:relative;margin-left:50%}.rtmedia-container .small-offset-7,.rtmedia-activity-container .small-offset-7,#buddypress div.rtmedia-activity-container .small-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .small-offset-8,.rtmedia-activity-container .small-offset-8,#buddypress div.rtmedia-activity-container .small-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .small-offset-9,.rtmedia-activity-container .small-offset-9,#buddypress div.rtmedia-activity-container .small-offset-9{position:relative;margin-left:75%}.rtmedia-container .small-offset-10,.rtmedia-activity-container .small-offset-10,#buddypress div.rtmedia-activity-container .small-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container [class*="column"]+[class*="column"]:last-child,.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child{float:right}.rtmedia-container [class*="column"]+[class*="column"].end,.rtmedia-activity-container [class*="column"]+[class*="column"].end,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"].end{float:left}.rtmedia-container .column.small-centered,.rtmedia-activity-container .column.small-centered,#buddypress div.rtmedia-activity-container .column.small-centered,.rtmedia-container .columns.small-centered,.rtmedia-activity-container .columns.small-centered,#buddypress div.rtmedia-activity-container .columns.small-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}}@media only screen and (min-width: 768px){.rtmedia-container .large-1,.rtmedia-activity-container .large-1,#buddypress div.rtmedia-activity-container .large-1{position:relative;width:8.33333%}.rtmedia-container .large-2,.rtmedia-activity-container .large-2,#buddypress div.rtmedia-activity-container .large-2{position:relative;width:16.66667%}.rtmedia-container .large-3,.rtmedia-activity-container .large-3,#buddypress div.rtmedia-activity-container .large-3{position:relative;width:25%}.rtmedia-container .large-4,.rtmedia-activity-container .large-4,#buddypress div.rtmedia-activity-container .large-4{position:relative;width:33.33333%}.rtmedia-container .large-5,.rtmedia-activity-container .large-5,#buddypress div.rtmedia-activity-container .large-5{position:relative;width:41.66667%}.rtmedia-container .large-6,.rtmedia-activity-container .large-6,#buddypress div.rtmedia-activity-container .large-6{position:relative;width:50%}.rtmedia-container .large-7,.rtmedia-activity-container .large-7,#buddypress div.rtmedia-activity-container .large-7{position:relative;width:58.33333%}.rtmedia-container .large-8,.rtmedia-activity-container .large-8,#buddypress div.rtmedia-activity-container .large-8{position:relative;width:66.66667%}.rtmedia-container .large-9,.rtmedia-activity-container .large-9,#buddypress div.rtmedia-activity-container .large-9{position:relative;width:75%}.rtmedia-container .large-10,.rtmedia-activity-container .large-10,#buddypress div.rtmedia-activity-container .large-10{position:relative;width:83.33333%}.rtmedia-container .large-11,.rtmedia-activity-container .large-11,#buddypress div.rtmedia-activity-container .large-11{position:relative;width:91.66667%}.rtmedia-container .large-12,.rtmedia-activity-container .large-12,#buddypress div.rtmedia-activity-container .large-12{position:relative;width:100%}.rtmedia-container .row .large-offset-0,.rtmedia-activity-container .row .large-offset-0,#buddypress div.rtmedia-activity-container .row .large-offset-0{position:relative;margin-left:0%}.rtmedia-container .row .large-offset-1,.rtmedia-activity-container .row .large-offset-1,#buddypress div.rtmedia-activity-container .row .large-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .row .large-offset-2,.rtmedia-activity-container .row .large-offset-2,#buddypress div.rtmedia-activity-container .row .large-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .row .large-offset-3,.rtmedia-activity-container .row .large-offset-3,#buddypress div.rtmedia-activity-container .row .large-offset-3{position:relative;margin-left:25%}.rtmedia-container .row .large-offset-4,.rtmedia-activity-container .row .large-offset-4,#buddypress div.rtmedia-activity-container .row .large-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .row .large-offset-5,.rtmedia-activity-container .row .large-offset-5,#buddypress div.rtmedia-activity-container .row .large-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .row .large-offset-6,.rtmedia-activity-container .row .large-offset-6,#buddypress div.rtmedia-activity-container .row .large-offset-6{position:relative;margin-left:50%}.rtmedia-container .row .large-offset-7,.rtmedia-activity-container .row .large-offset-7,#buddypress div.rtmedia-activity-container .row .large-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .row .large-offset-8,.rtmedia-activity-container .row .large-offset-8,#buddypress div.rtmedia-activity-container .row .large-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .row .large-offset-9,.rtmedia-activity-container .row .large-offset-9,#buddypress div.rtmedia-activity-container .row .large-offset-9{position:relative;margin-left:75%}.rtmedia-container .row .large-offset-10,.rtmedia-activity-container .row .large-offset-10,#buddypress div.rtmedia-activity-container .row .large-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container .row .large-offset-11,.rtmedia-activity-container .row .large-offset-11,#buddypress div.rtmedia-activity-container .row .large-offset-11{position:relative;margin-left:91.66667%}.rtmedia-container .push-1,.rtmedia-activity-container .push-1,#buddypress div.rtmedia-activity-container .push-1{position:relative;left:8.33333%;right:auto}.rtmedia-container .pull-1,.rtmedia-activity-container .pull-1,#buddypress div.rtmedia-activity-container .pull-1{position:relative;right:8.33333%;left:auto}.rtmedia-container .push-2,.rtmedia-activity-container .push-2,#buddypress div.rtmedia-activity-container .push-2{position:relative;left:16.66667%;right:auto}.rtmedia-container .pull-2,.rtmedia-activity-container .pull-2,#buddypress div.rtmedia-activity-container .pull-2{position:relative;right:16.66667%;left:auto}.rtmedia-container .push-3,.rtmedia-activity-container .push-3,#buddypress div.rtmedia-activity-container .push-3{position:relative;left:25%;right:auto}.rtmedia-container .pull-3,.rtmedia-activity-container .pull-3,#buddypress div.rtmedia-activity-container .pull-3{position:relative;right:25%;left:auto}.rtmedia-container .push-4,.rtmedia-activity-container .push-4,#buddypress div.rtmedia-activity-container .push-4{position:relative;left:33.33333%;right:auto}.rtmedia-container .pull-4,.rtmedia-activity-container .pull-4,#buddypress div.rtmedia-activity-container .pull-4{position:relative;right:33.33333%;left:auto}.rtmedia-container .push-5,.rtmedia-activity-container .push-5,#buddypress div.rtmedia-activity-container .push-5{position:relative;left:41.66667%;right:auto}.rtmedia-container .pull-5,.rtmedia-activity-container .pull-5,#buddypress div.rtmedia-activity-container .pull-5{position:relative;right:41.66667%;left:auto}.rtmedia-container .push-6,.rtmedia-activity-container .push-6,#buddypress div.rtmedia-activity-container .push-6{position:relative;left:50%;right:auto}.rtmedia-container .pull-6,.rtmedia-activity-container .pull-6,#buddypress div.rtmedia-activity-container .pull-6{position:relative;right:50%;left:auto}.rtmedia-container .push-7,.rtmedia-activity-container .push-7,#buddypress div.rtmedia-activity-container .push-7{position:relative;left:58.33333%;right:auto}.rtmedia-container .pull-7,.rtmedia-activity-container .pull-7,#buddypress div.rtmedia-activity-container .pull-7{position:relative;right:58.33333%;left:auto}.rtmedia-container .push-8,.rtmedia-activity-container .push-8,#buddypress div.rtmedia-activity-container .push-8{position:relative;left:66.66667%;right:auto}.rtmedia-container .pull-8,.rtmedia-activity-container .pull-8,#buddypress div.rtmedia-activity-container .pull-8{position:relative;right:66.66667%;left:auto}.rtmedia-container .push-9,.rtmedia-activity-container .push-9,#buddypress div.rtmedia-activity-container .push-9{position:relative;left:75%;right:auto}.rtmedia-container .pull-9,.rtmedia-activity-container .pull-9,#buddypress div.rtmedia-activity-container .pull-9{position:relative;right:75%;left:auto}.rtmedia-container .push-10,.rtmedia-activity-container .push-10,#buddypress div.rtmedia-activity-container .push-10{position:relative;left:83.33333%;right:auto}.rtmedia-container .pull-10,.rtmedia-activity-container .pull-10,#buddypress div.rtmedia-activity-container .pull-10{position:relative;right:83.33333%;left:auto}.rtmedia-container .push-11,.rtmedia-activity-container .push-11,#buddypress div.rtmedia-activity-container .push-11{position:relative;left:91.66667%;right:auto}.rtmedia-container .pull-11,.rtmedia-activity-container .pull-11,#buddypress div.rtmedia-activity-container .pull-11{position:relative;right:91.66667%;left:auto}.rtmedia-container .column.large-centered,.rtmedia-activity-container .column.large-centered,#buddypress div.rtmedia-activity-container .column.large-centered,.rtmedia-container .columns.large-centered,.rtmedia-activity-container .columns.large-centered,#buddypress div.rtmedia-activity-container .columns.large-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}.rtmedia-container .column.large-uncentered,.rtmedia-activity-container .column.large-uncentered,#buddypress div.rtmedia-activity-container .column.large-uncentered,.rtmedia-container .columns.large-uncentered,.rtmedia-activity-container .columns.large-uncentered,#buddypress div.rtmedia-activity-container .columns.large-uncentered{margin-left:0;margin-right:0;float:left !important}.rtmedia-container .column.large-uncentered.opposite,.rtmedia-activity-container .column.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .column.large-uncentered.opposite,.rtmedia-container .columns.large-uncentered.opposite,.rtmedia-activity-container .columns.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .columns.large-uncentered.opposite{float:right !important}}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up,.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up,.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up,.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up,.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:inherit !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:none !important}.rtmedia-container table.show-for-small,.rtmedia-activity-container table.show-for-small,#buddypress div.rtmedia-activity-container table.show-for-small,.rtmedia-container table.show-for-medium-down,.rtmedia-activity-container table.show-for-medium-down,#buddypress div.rtmedia-activity-container table.show-for-medium-down,.rtmedia-container table.show-for-large-down,.rtmedia-activity-container table.show-for-large-down,#buddypress div.rtmedia-activity-container table.show-for-large-down,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-up,.rtmedia-activity-container table.hide-for-medium-up,#buddypress div.rtmedia-activity-container table.hide-for-medium-up,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-up,.rtmedia-activity-container table.hide-for-large-up,#buddypress div.rtmedia-activity-container table.hide-for-large-up,.rtmedia-container table.hide-for-xlarge,.rtmedia-activity-container table.hide-for-xlarge,#buddypress div.rtmedia-activity-container table.hide-for-xlarge{display:table}.rtmedia-container thead.show-for-small,.rtmedia-activity-container thead.show-for-small,#buddypress div.rtmedia-activity-container thead.show-for-small,.rtmedia-container thead.show-for-medium-down,.rtmedia-activity-container thead.show-for-medium-down,#buddypress div.rtmedia-activity-container thead.show-for-medium-down,.rtmedia-container thead.show-for-large-down,.rtmedia-activity-container thead.show-for-large-down,#buddypress div.rtmedia-activity-container thead.show-for-large-down,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-up,.rtmedia-activity-container thead.hide-for-medium-up,#buddypress div.rtmedia-activity-container thead.hide-for-medium-up,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-up,.rtmedia-activity-container thead.hide-for-large-up,#buddypress div.rtmedia-activity-container thead.hide-for-large-up,.rtmedia-container thead.hide-for-xlarge,.rtmedia-activity-container thead.hide-for-xlarge,#buddypress div.rtmedia-activity-container thead.hide-for-xlarge{display:table-header-group !important}.rtmedia-container tbody.show-for-small,.rtmedia-activity-container tbody.show-for-small,#buddypress div.rtmedia-activity-container tbody.show-for-small,.rtmedia-container tbody.show-for-medium-down,.rtmedia-activity-container tbody.show-for-medium-down,#buddypress div.rtmedia-activity-container tbody.show-for-medium-down,.rtmedia-container tbody.show-for-large-down,.rtmedia-activity-container tbody.show-for-large-down,#buddypress div.rtmedia-activity-container tbody.show-for-large-down,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-up,.rtmedia-activity-container tbody.hide-for-medium-up,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-up,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-up,.rtmedia-activity-container tbody.hide-for-large-up,#buddypress div.rtmedia-activity-container tbody.hide-for-large-up,.rtmedia-container tbody.hide-for-xlarge,.rtmedia-activity-container tbody.hide-for-xlarge,#buddypress div.rtmedia-activity-container tbody.hide-for-xlarge{display:table-row-group !important}.rtmedia-container tr.show-for-small,.rtmedia-activity-container tr.show-for-small,#buddypress div.rtmedia-activity-container tr.show-for-small,.rtmedia-container tr.show-for-medium-down,.rtmedia-activity-container tr.show-for-medium-down,#buddypress div.rtmedia-activity-container tr.show-for-medium-down,.rtmedia-container tr.show-for-large-down,.rtmedia-activity-container tr.show-for-large-down,#buddypress div.rtmedia-activity-container tr.show-for-large-down,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-up,.rtmedia-activity-container tr.hide-for-medium-up,#buddypress div.rtmedia-activity-container tr.hide-for-medium-up,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-up,.rtmedia-activity-container tr.hide-for-large-up,#buddypress div.rtmedia-activity-container tr.hide-for-large-up,.rtmedia-container tr.hide-for-xlarge,.rtmedia-activity-container tr.hide-for-xlarge,#buddypress div.rtmedia-activity-container tr.hide-for-xlarge{display:table-row !important}.rtmedia-container td.show-for-small,.rtmedia-activity-container td.show-for-small,#buddypress div.rtmedia-activity-container td.show-for-small,.rtmedia-container td.show-for-medium-down,.rtmedia-activity-container td.show-for-medium-down,#buddypress div.rtmedia-activity-container td.show-for-medium-down,.rtmedia-container td.show-for-large-down,.rtmedia-activity-container td.show-for-large-down,#buddypress div.rtmedia-activity-container td.show-for-large-down,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-up,.rtmedia-activity-container td.hide-for-medium-up,#buddypress div.rtmedia-activity-container td.hide-for-medium-up,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-up,.rtmedia-activity-container td.hide-for-large-up,#buddypress div.rtmedia-activity-container td.hide-for-large-up,.rtmedia-container td.hide-for-xlarge,.rtmedia-activity-container td.hide-for-xlarge,#buddypress div.rtmedia-activity-container td.hide-for-xlarge,.rtmedia-container th.show-for-small,.rtmedia-activity-container th.show-for-small,#buddypress div.rtmedia-activity-container th.show-for-small,.rtmedia-container th.show-for-medium-down,.rtmedia-activity-container th.show-for-medium-down,#buddypress div.rtmedia-activity-container th.show-for-medium-down,.rtmedia-container th.show-for-large-down,.rtmedia-activity-container th.show-for-large-down,#buddypress div.rtmedia-activity-container th.show-for-large-down,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-up,.rtmedia-activity-container th.hide-for-medium-up,#buddypress div.rtmedia-activity-container th.hide-for-medium-up,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-up,.rtmedia-activity-container th.hide-for-large-up,#buddypress div.rtmedia-activity-container th.hide-for-large-up,.rtmedia-container th.hide-for-xlarge,.rtmedia-activity-container th.hide-for-xlarge,#buddypress div.rtmedia-activity-container th.hide-for-xlarge{display:table-cell !important}@media only screen and (min-width: 768px){.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up{display:inherit !important}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small{display:none !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small{display:inherit !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up{display:none !important}.rtmedia-container table.show-for-medium,.rtmedia-activity-container table.show-for-medium,#buddypress div.rtmedia-activity-container table.show-for-medium,.rtmedia-container table.show-for-medium-up,.rtmedia-activity-container table.show-for-medium-up,#buddypress div.rtmedia-activity-container table.show-for-medium-up,.rtmedia-container table.hide-for-small,.rtmedia-activity-container table.hide-for-small,#buddypress div.rtmedia-activity-container table.hide-for-small{display:table}.rtmedia-container thead.show-for-medium,.rtmedia-activity-container thead.show-for-medium,#buddypress div.rtmedia-activity-container thead.show-for-medium,.rtmedia-container thead.show-for-medium-up,.rtmedia-activity-container thead.show-for-medium-up,#buddypress div.rtmedia-activity-container thead.show-for-medium-up,.rtmedia-container thead.hide-for-small,.rtmedia-activity-container thead.hide-for-small,#buddypress div.rtmedia-activity-container thead.hide-for-small{display:table-header-group !important}.rtmedia-container tbody.show-for-medium,.rtmedia-activity-container tbody.show-for-medium,#buddypress div.rtmedia-activity-container tbody.show-for-medium,.rtmedia-container tbody.show-for-medium-up,.rtmedia-activity-container tbody.show-for-medium-up,#buddypress div.rtmedia-activity-container tbody.show-for-medium-up,.rtmedia-container tbody.hide-for-small,.rtmedia-activity-container tbody.hide-for-small,#buddypress div.rtmedia-activity-container tbody.hide-for-small{display:table-row-group !important}.rtmedia-container tr.show-for-medium,.rtmedia-activity-container tr.show-for-medium,#buddypress div.rtmedia-activity-container tr.show-for-medium,.rtmedia-container tr.show-for-medium-up,.rtmedia-activity-container tr.show-for-medium-up,#buddypress div.rtmedia-activity-container tr.show-for-medium-up,.rtmedia-container tr.hide-for-small,.rtmedia-activity-container tr.hide-for-small,#buddypress div.rtmedia-activity-container tr.hide-for-small{display:table-row !important}.rtmedia-container td.show-for-medium,.rtmedia-activity-container td.show-for-medium,#buddypress div.rtmedia-activity-container td.show-for-medium,.rtmedia-container td.show-for-medium-up,.rtmedia-activity-container td.show-for-medium-up,#buddypress div.rtmedia-activity-container td.show-for-medium-up,.rtmedia-container td.hide-for-small,.rtmedia-activity-container td.hide-for-small,#buddypress div.rtmedia-activity-container td.hide-for-small,.rtmedia-container th.show-for-medium,.rtmedia-activity-container th.show-for-medium,#buddypress div.rtmedia-activity-container th.show-for-medium,.rtmedia-container th.show-for-medium-up,.rtmedia-activity-container th.show-for-medium-up,#buddypress div.rtmedia-activity-container th.show-for-medium-up,.rtmedia-container th.hide-for-small,.rtmedia-activity-container th.hide-for-small,#buddypress div.rtmedia-activity-container th.hide-for-small{display:table-cell !important}}@media only screen and (min-width: 1280px){.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down{display:inherit !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up{display:none !important}.rtmedia-container table.show-for-large,.rtmedia-activity-container table.show-for-large,#buddypress div.rtmedia-activity-container table.show-for-large,.rtmedia-container table.show-for-large-up,.rtmedia-activity-container table.show-for-large-up,#buddypress div.rtmedia-activity-container table.show-for-large-up,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-down,.rtmedia-activity-container table.hide-for-medium-down,#buddypress div.rtmedia-activity-container table.hide-for-medium-down{display:table}.rtmedia-container thead.show-for-large,.rtmedia-activity-container thead.show-for-large,#buddypress div.rtmedia-activity-container thead.show-for-large,.rtmedia-container thead.show-for-large-up,.rtmedia-activity-container thead.show-for-large-up,#buddypress div.rtmedia-activity-container thead.show-for-large-up,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-down,.rtmedia-activity-container thead.hide-for-medium-down,#buddypress div.rtmedia-activity-container thead.hide-for-medium-down{display:table-header-group !important}.rtmedia-container tbody.show-for-large,.rtmedia-activity-container tbody.show-for-large,#buddypress div.rtmedia-activity-container tbody.show-for-large,.rtmedia-container tbody.show-for-large-up,.rtmedia-activity-container tbody.show-for-large-up,#buddypress div.rtmedia-activity-container tbody.show-for-large-up,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-down,.rtmedia-activity-container tbody.hide-for-medium-down,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-down{display:table-row-group !important}.rtmedia-container tr.show-for-large,.rtmedia-activity-container tr.show-for-large,#buddypress div.rtmedia-activity-container tr.show-for-large,.rtmedia-container tr.show-for-large-up,.rtmedia-activity-container tr.show-for-large-up,#buddypress div.rtmedia-activity-container tr.show-for-large-up,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-down,.rtmedia-activity-container tr.hide-for-medium-down,#buddypress div.rtmedia-activity-container tr.hide-for-medium-down{display:table-row !important}.rtmedia-container td.show-for-large,.rtmedia-activity-container td.show-for-large,#buddypress div.rtmedia-activity-container td.show-for-large,.rtmedia-container td.show-for-large-up,.rtmedia-activity-container td.show-for-large-up,#buddypress div.rtmedia-activity-container td.show-for-large-up,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-down,.rtmedia-activity-container td.hide-for-medium-down,#buddypress div.rtmedia-activity-container td.hide-for-medium-down,.rtmedia-container th.show-for-large,.rtmedia-activity-container th.show-for-large,#buddypress div.rtmedia-activity-container th.show-for-large,.rtmedia-container th.show-for-large-up,.rtmedia-activity-container th.show-for-large-up,#buddypress div.rtmedia-activity-container th.show-for-large-up,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-down,.rtmedia-activity-container th.hide-for-medium-down,#buddypress div.rtmedia-activity-container th.hide-for-medium-down{display:table-cell !important}}@media only screen and (min-width: 1440px){.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:inherit !important}.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:none !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:inherit !important}.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:none !important}.rtmedia-container table.show-for-xlarge,.rtmedia-activity-container table.show-for-xlarge,#buddypress div.rtmedia-activity-container table.show-for-xlarge,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-down,.rtmedia-activity-container table.hide-for-large-down,#buddypress div.rtmedia-activity-container table.hide-for-large-down{display:table}.rtmedia-container thead.show-for-xlarge,.rtmedia-activity-container thead.show-for-xlarge,#buddypress div.rtmedia-activity-container thead.show-for-xlarge,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-down,.rtmedia-activity-container thead.hide-for-large-down,#buddypress div.rtmedia-activity-container thead.hide-for-large-down{display:table-header-group !important}.rtmedia-container tbody.show-for-xlarge,.rtmedia-activity-container tbody.show-for-xlarge,#buddypress div.rtmedia-activity-container tbody.show-for-xlarge,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-down,.rtmedia-activity-container tbody.hide-for-large-down,#buddypress div.rtmedia-activity-container tbody.hide-for-large-down{display:table-row-group !important}.rtmedia-container tr.show-for-xlarge,.rtmedia-activity-container tr.show-for-xlarge,#buddypress div.rtmedia-activity-container tr.show-for-xlarge,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-down,.rtmedia-activity-container tr.hide-for-large-down,#buddypress div.rtmedia-activity-container tr.hide-for-large-down{display:table-row !important}.rtmedia-container td.show-for-xlarge,.rtmedia-activity-container td.show-for-xlarge,#buddypress div.rtmedia-activity-container td.show-for-xlarge,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-down,.rtmedia-activity-container td.hide-for-large-down,#buddypress div.rtmedia-activity-container td.hide-for-large-down,.rtmedia-container th.show-for-xlarge,.rtmedia-activity-container th.show-for-xlarge,#buddypress div.rtmedia-activity-container th.show-for-xlarge,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-down,.rtmedia-activity-container th.hide-for-large-down,#buddypress div.rtmedia-activity-container th.hide-for-large-down{display:table-cell !important}}.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape,.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait{display:table}.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape,.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait{display:table-header-group !important}.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape,.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait{display:table-row-group !important}.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape,.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait{display:table-row !important}.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait{display:table-cell !important}@media only screen and (orientation: landscape){.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.show-for-landscape,.rtmedia-activity-container table.show-for-landscape,#buddypress div.rtmedia-activity-container table.show-for-landscape,.rtmedia-container table.hide-for-portrait,.rtmedia-activity-container table.hide-for-portrait,#buddypress div.rtmedia-activity-container table.hide-for-portrait{display:table}.rtmedia-container thead.show-for-landscape,.rtmedia-activity-container thead.show-for-landscape,#buddypress div.rtmedia-activity-container thead.show-for-landscape,.rtmedia-container thead.hide-for-portrait,.rtmedia-activity-container thead.hide-for-portrait,#buddypress div.rtmedia-activity-container thead.hide-for-portrait{display:table-header-group !important}.rtmedia-container tbody.show-for-landscape,.rtmedia-activity-container tbody.show-for-landscape,#buddypress div.rtmedia-activity-container tbody.show-for-landscape,.rtmedia-container tbody.hide-for-portrait,.rtmedia-activity-container tbody.hide-for-portrait,#buddypress div.rtmedia-activity-container tbody.hide-for-portrait{display:table-row-group !important}.rtmedia-container tr.show-for-landscape,.rtmedia-activity-container tr.show-for-landscape,#buddypress div.rtmedia-activity-container tr.show-for-landscape,.rtmedia-container tr.hide-for-portrait,.rtmedia-activity-container tr.hide-for-portrait,#buddypress div.rtmedia-activity-container tr.hide-for-portrait{display:table-row !important}.rtmedia-container td.show-for-landscape,.rtmedia-activity-container td.show-for-landscape,#buddypress div.rtmedia-activity-container td.show-for-landscape,.rtmedia-container td.hide-for-portrait,.rtmedia-activity-container td.hide-for-portrait,#buddypress div.rtmedia-activity-container td.hide-for-portrait,.rtmedia-container th.show-for-landscape,.rtmedia-activity-container th.show-for-landscape,#buddypress div.rtmedia-activity-container th.show-for-landscape,.rtmedia-container th.hide-for-portrait,.rtmedia-activity-container th.hide-for-portrait,#buddypress div.rtmedia-activity-container th.hide-for-portrait{display:table-cell !important}}@media only screen and (orientation: portrait){.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait,.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape{display:inherit !important}.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait,.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape{display:none !important}.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait,.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape{display:table}.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait,.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape{display:table-header-group !important}.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait,.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape{display:table-row-group !important}.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait,.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape{display:table-row !important}.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape{display:table-cell !important}}.rtmedia-container .show-for-touch,.rtmedia-activity-container .show-for-touch,#buddypress div.rtmedia-activity-container .show-for-touch{display:none !important}.rtmedia-container .hide-for-touch,.rtmedia-activity-container .hide-for-touch,#buddypress div.rtmedia-activity-container .hide-for-touch{display:inherit !important}.rtmedia-container .touch .show-for-touch,.rtmedia-activity-container .touch .show-for-touch,#buddypress div.rtmedia-activity-container .touch .show-for-touch{display:inherit !important}.rtmedia-container .touch .hide-for-touch,.rtmedia-activity-container .touch .hide-for-touch,#buddypress div.rtmedia-activity-container .touch .hide-for-touch{display:none !important}.rtmedia-container table.hide-for-touch,.rtmedia-activity-container table.hide-for-touch,#buddypress div.rtmedia-activity-container table.hide-for-touch{display:table}.rtmedia-container .touch table.show-for-touch,.rtmedia-activity-container .touch table.show-for-touch,#buddypress div.rtmedia-activity-container .touch table.show-for-touch{display:table}.rtmedia-container thead.hide-for-touch,.rtmedia-activity-container thead.hide-for-touch,#buddypress div.rtmedia-activity-container thead.hide-for-touch{display:table-header-group !important}.rtmedia-container .touch thead.show-for-touch,.rtmedia-activity-container .touch thead.show-for-touch,#buddypress div.rtmedia-activity-container .touch thead.show-for-touch{display:table-header-group !important}.rtmedia-container tbody.hide-for-touch,.rtmedia-activity-container tbody.hide-for-touch,#buddypress div.rtmedia-activity-container tbody.hide-for-touch{display:table-row-group !important}.rtmedia-container .touch tbody.show-for-touch,.rtmedia-activity-container .touch tbody.show-for-touch,#buddypress div.rtmedia-activity-container .touch tbody.show-for-touch{display:table-row-group !important}.rtmedia-container tr.hide-for-touch,.rtmedia-activity-container tr.hide-for-touch,#buddypress div.rtmedia-activity-container tr.hide-for-touch{display:table-row !important}.rtmedia-container .touch tr.show-for-touch,.rtmedia-activity-container .touch tr.show-for-touch,#buddypress div.rtmedia-activity-container .touch tr.show-for-touch{display:table-row !important}.rtmedia-container td.hide-for-touch,.rtmedia-activity-container td.hide-for-touch,#buddypress div.rtmedia-activity-container td.hide-for-touch{display:table-cell !important}.rtmedia-container .touch td.show-for-touch,.rtmedia-activity-container .touch td.show-for-touch,#buddypress div.rtmedia-activity-container .touch td.show-for-touch{display:table-cell !important}.rtmedia-container th.hide-for-touch,.rtmedia-activity-container th.hide-for-touch,#buddypress div.rtmedia-activity-container th.hide-for-touch{display:table-cell !important}.rtmedia-container .touch th.show-for-touch,.rtmedia-activity-container .touch th.show-for-touch,#buddypress div.rtmedia-activity-container .touch th.show-for-touch{display:table-cell !important}.rtmedia-container .flex-video,.rtmedia-activity-container .flex-video,#buddypress div.rtmedia-activity-container .flex-video{position:relative;padding-top:1.5625em;padding-bottom:67.5%;height:0;margin-bottom:1em;overflow:hidden}.rtmedia-container .flex-video.widescreen,.rtmedia-activity-container .flex-video.widescreen,#buddypress div.rtmedia-activity-container .flex-video.widescreen{padding-bottom:57.25%}.rtmedia-container .flex-video.vimeo,.rtmedia-activity-container .flex-video.vimeo,#buddypress div.rtmedia-activity-container .flex-video.vimeo{padding-top:0}.rtmedia-container .flex-video iframe,.rtmedia-activity-container .flex-video iframe,#buddypress div.rtmedia-activity-container .flex-video iframe,.rtmedia-container .flex-video object,.rtmedia-activity-container .flex-video object,#buddypress div.rtmedia-activity-container .flex-video object,.rtmedia-container .flex-video embed,.rtmedia-activity-container .flex-video embed,#buddypress div.rtmedia-activity-container .flex-video embed,.rtmedia-container .flex-video video,.rtmedia-activity-container .flex-video video,#buddypress div.rtmedia-activity-container .flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{max-width:95%}.rtmedia-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title,#buddypress div.rtmedia-activity-container .rtmedia-item-title{text-align:center}.rtmedia-container .rtmedia-item-title h4,.rtmedia-activity-container .rtmedia-item-title h4,#buddypress div.rtmedia-activity-container .rtmedia-item-title h4{text-overflow:ellipsis;white-space:nowrap;width:100%;overflow:hidden;font-size:1.1em;text-align:center}.rtmedia-container .rtmedia-success,.rtmedia-activity-container .rtmedia-success,#buddypress div.rtmedia-activity-container .rtmedia-success{display:block;padding:10px;border:1px solid #008000;background-color:#90EE90;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2{font-size:1.4em;font-weight:bold;line-height:2.4em}.rtmedia-container .drag-drop,.rtmedia-activity-container .drag-drop,#buddypress div.rtmedia-activity-container .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;padding:15px 0}.rtmedia-container .drag-drop.dragover,.rtmedia-activity-container .drag-drop.dragover,#buddypress div.rtmedia-activity-container .drag-drop.dragover{border-color:#83b4d8}.rtmedia-container .rtmedia-action-update,.rtmedia-activity-container .rtmedia-action-update,#buddypress div.rtmedia-activity-container .rtmedia-action-update{float:left;margin-top:12px;margin-right:10px}.rtmedia-container .rtmedia-list,.rtmedia-activity-container .rtmedia-list,#buddypress div.rtmedia-activity-container .rtmedia-list{list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item{word-wrap:break-word;padding:20px;float:left}.rtmedia-container .rtmedia-list .rtmedia-list-item a,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a{text-decoration:none}.rtmedia-container .rtmedia-list .rtmedia-list-item a h4,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4{line-height:1.4em;font-size:1.2em;padding-top:10px}.rtmedia-container .rtmedia-media img,.rtmedia-activity-container .rtmedia-media img,#buddypress div.rtmedia-activity-container .rtmedia-media img{max-width:100%}.rtmedia-container .rtmedia-item-thumbnail,.rtmedia-activity-container .rtmedia-item-thumbnail,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail{text-align:center}.rtmedia-container .rtmedia-item-thumbnail img,.rtmedia-activity-container .rtmedia-item-thumbnail img,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail img{vertical-align:middle}.rtmedia-container .rtmedia_next_prev,.rtmedia-activity-container .rtmedia_next_prev,#buddypress div.rtmedia-activity-container .rtmedia_next_prev{float:left}.rtmedia-container .rtmedia-item-comments-container,.rtmedia-activity-container .rtmedia-item-comments-container,#buddypress div.rtmedia-activity-container .rtmedia-item-comments-container{margin:3% 3%}.rtmedia-container .rtmedia-comment,.rtmedia-activity-container .rtmedia-comment,#buddypress div.rtmedia-activity-container .rtmedia-comment{list-style:none;background:#f6f6f6;border:1px solid #ddd;-moz-border-radius:3px;border-radius:3px;margin:5px 0;padding:1px 5px 25px;width:391px;max-width:100%}.rtmedia-container .rtmedia-comment .rtmedia-comment-author,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-content,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-date,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date{display:block;float:right}.rtmedia-container .rtmedia-bp-header,.rtmedia-activity-container .rtmedia-bp-header,#buddypress div.rtmedia-activity-container .rtmedia-bp-header{width:460px;margin:auto}.rtmedia-container #div-attache-rtmedia,.rtmedia-activity-container #div-attache-rtmedia,#buddypress div.rtmedia-activity-container #div-attache-rtmedia{display:none}.rtmedia-container #rtMedia-update-queue-list p span,.rtmedia-activity-container #rtMedia-update-queue-list p span{margin-right:20px}.rtmedia-container .rtmedia-move-container,.rtmedia-activity-container .rtmedia-move-container,#buddypress div.rtmedia-activity-container .rtmedia-move-container{display:none}.rtmedia-container #rtmedia-add-media-button-post-update,.rtmedia-activity-container #rtmedia-add-media-button-post-update,#buddypress div.rtmedia-activity-container #rtmedia-add-media-button-post-update{float:left;margin-top:10px;margin-right:20px}.rtmedia-container #whats-new-post-in-box,.rtmedia-activity-container #whats-new-post-in-box,#buddypress div.rtmedia-activity-container #whats-new-post-in-box{float:left}.rtmedia-container .rtmedia-activity-text,.rtmedia-activity-container .rtmedia-activity-text,#buddypress div.rtmedia-activity-container .rtmedia-activity-text{display:block;padding-bottom:10px}.rtmedia-container .rtmedia-merge-container,.rtmedia-activity-container .rtmedia-merge-container,#buddypress div.rtmedia-activity-container .rtmedia-merge-container{display:none}.rtmedia-container .rtmedia-create-new-album-container,.rtmedia-activity-container .rtmedia-create-new-album-container,#buddypress div.rtmedia-activity-container .rtmedia-create-new-album-container{display:none}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:auto}.rtmedia-container.rtmedia-single-container .row,.rtmedia-single-container.rtmedia-activity-container .row,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row{background-color:#FFF}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container{padding-top:10px;padding-bottom:10px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-overlay-button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-overlay-button{margin:-50px 0 0 -50px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-button button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-button button{cursor:pointer;display:block;font-size:0;line-height:0;text-decoration:none;margin:7px 5px;padding:0;position:absolute;height:16px;width:16px;border:0;background:rgba(0,0,0,0) url("../../../lib/media-element/controls.png") no-repeat}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-mute button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-mute button{background-position:-16px -16px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-fullscreen-button button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta button,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button{color:#5E5E5E;background-color:#EBEBEB;background-repeat:repeat-x;background-image:-moz-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-ms-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-webkit-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-o-linear-gradient(top, #f9f9f9, #ebebeb);background-image:linear-gradient(to bottom, #f9f9f9,#ebebeb)}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a{float:left;margin:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a{display:inline-block;float:left}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>form,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form{float:left;margin-right:5px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span{background:#EEE;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;border:1px solid #CCC;color:#999;display:inline;font-size:70%;margin-left:2px;margin-right:2px;padding:3px 6px;text-align:center;vertical-align:middle}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments{background-color:transparent}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments div,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div{background-color:transparent}.rtmedia-container #wp-description-editor-tools a.wp-switch-editor,.rtmedia-activity-container #wp-description-editor-tools a.wp-switch-editor{margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border:1px solid;border-color:#DFDFDF #DFDFDF #CCC;font:13px/18px Arial,Helvetica,sans-serif normal;height:auto}.rtmedia-container #description_toolbargroup .mceToolbar td,.rtmedia-activity-container #description_toolbargroup .mceToolbar td{padding:0px}.rtmedia-container #wp-description-editor-container,.rtmedia-activity-container #wp-description-editor-container,#buddypress div.rtmedia-activity-container #wp-description-editor-container{border-width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#CCC #CCC #DFDFDF}#buddypress div.rtmedia-activity-container ul.rtmedia-list li{float:left;padding:10px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video{float:none}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail{margin:0 auto}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-overlay-button{margin:-50px 0 0 -50px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-controls .mejs-button button{cursor:pointer;display:block;font-size:0;line-height:0;text-decoration:none;margin:7px 5px;padding:0;position:absolute;height:16px;width:16px;border:0;background:rgba(0,0,0,0) url("../../../lib/media-element/controls.png") no-repeat}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#rtmedia-action-update{float:left;padding-right:10px}#header{z-index:1 !important}.bp_media_content video{background-color:black}.rtmedia-success{display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#2ECC71;color:white}.rtmedia-error{color:white;display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#E74C3C}
app/assets/js/rtMedia.backbone.js CHANGED
@@ -2,6 +2,7 @@ var galleryObj;
2
var nextpage = 2;
3
var upload_sync = false;
4
var activity_id = -1;
5
6
jQuery(function($) {
7
@@ -227,7 +228,7 @@ jQuery(function($) {
227
228
229
if ($("#rtMedia-upload-button").length > 0) {
230
- var uploaderObj = new UploadView(rtMedia_plupload_config);
231
232
uploaderObj.initUploader();
233
@@ -295,6 +296,9 @@ jQuery(function($) {
295
});
296
uploaderObj.uploader.bind('BeforeUpload', function(up, file) {
297
up.settings.multipart_params.privacy = $("#rtm-file_upload-ui select#privacy").val();
298
up.settings.multipart_params.activity_id = activity_id;
299
if ($('.rtmedia-user-album-list').length > 0)
300
up.settings.multipart_params.album_id = $('.rtmedia-user-album-list').find(":selected").val();
@@ -312,7 +316,7 @@ jQuery(function($) {
312
uploaderObj.uploader.settings.multipart_params.activity_id = rtnObj.activity_id;
313
activity_id= rtnObj.activity_id;
314
} catch (e) {
315
- console.log('Invalid Activity ID');
316
}
317
});
318
2
var nextpage = 2;
3
var upload_sync = false;
4
var activity_id = -1;
5
+ var uploaderObj;
6
7
jQuery(function($) {
8
228
229
230
if ($("#rtMedia-upload-button").length > 0) {
231
+ uploaderObj = new UploadView(rtMedia_plupload_config);
232
233
uploaderObj.initUploader();
234
296
});
297
uploaderObj.uploader.bind('BeforeUpload', function(up, file) {
298
up.settings.multipart_params.privacy = $("#rtm-file_upload-ui select#privacy").val();
299
+ jQuery("#rtmedia-uploader-form input[type=hidden]").each(function(){
300
+ up.settings.multipart_params[$(this).attr("name")] = $(this).val();
301
+ });
302
up.settings.multipart_params.activity_id = activity_id;
303
if ($('.rtmedia-user-album-list').length > 0)
304
up.settings.multipart_params.album_id = $('.rtmedia-user-album-list').find(":selected").val();
316
uploaderObj.uploader.settings.multipart_params.activity_id = rtnObj.activity_id;
317
activity_id= rtnObj.activity_id;
318
} catch (e) {
319
+ // console.log('Invalid Activity ID');
320
}
321
});
322
app/assets/js/rtMedia.js CHANGED
@@ -1,3 +1,4 @@
1
jQuery('document').ready(function($) {
2
3
$("#rt_media_comment_form").submit(function(e) {
@@ -12,10 +13,14 @@ jQuery('document').ready(function($) {
12
13
if (jQuery('.wp-audio-shortcode, .wp-video-shortcode').length > 0)
14
jQuery('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer();
15
- //rtmedia_lightbox_enabled from setting
16
if(typeof(rtmedia_lightbox_enabled) != 'undefined' && rtmedia_lightbox_enabled =="1"){
17
- 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').magnificPopup({
18
- delegate: 'a',
19
type: 'ajax',
20
tLoading: 'Loading image #%curr%...',
21
mainClass: 'mfp-img-mobile',
@@ -54,6 +59,9 @@ if(typeof(rtmedia_lightbox_enabled) != 'undefined' && rtmedia_lightbox_enabled
54
},
55
close: function(e) {
56
console.log(e);
57
}
58
}
59
});
1
+ var rtMagnificPopup;
2
jQuery('document').ready(function($) {
3
4
$("#rt_media_comment_form").submit(function(e) {
13
14
if (jQuery('.wp-audio-shortcode, .wp-video-shortcode').length > 0)
15
jQuery('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer();
16
+ //Remove title from popup duplication
17
+ $("li.rtmedia-list-item p a").each(function(e){
18
+ $(this).addClass("no-popup");
19
+ })
20
+ //rtmedia_lightbox_enabled from setting
21
if(typeof(rtmedia_lightbox_enabled) != 'undefined' && rtmedia_lightbox_enabled =="1"){
22
+ 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').magnificPopup({
23
+ delegate: 'a:not(".no-popup")',
24
type: 'ajax',
25
tLoading: 'Loading image #%curr%...',
26
mainClass: 'mfp-img-mobile',
59
},
60
close: function(e) {
61
console.log(e);
62
+ },
63
+ BeforeChange : function(e){
64
+ console.log(e);
65
}
66
}
67
});
app/assets/sass/main.scss CHANGED
@@ -96,6 +96,7 @@
96
margin: 5px 0;
97
padding: 1px 5px 25px;
98
width: 391px;
99
100
.rtmedia-comment-author {
101
display: block;
96
margin: 5px 0;
97
padding: 1px 5px 25px;
98
width: 391px;
99
+ max-width:100%;
100
101
.rtmedia-comment-author {
102
display: block;
app/helper/RTMediaModel.php CHANGED
@@ -7,204 +7,242 @@
7
*/
8
class RTMediaModel extends RTDBModel {
9
10
- function __construct() {
11
- parent::__construct( 'rtm_media' );
12
- $this->meta_table_name = "rt_rtm_media_meta";
13
- }
14
-
15
- /**
16
- *
17
- * @param type $name
18
- * @param type $arguments
19
- * @return type
20
- */
21
- function __call( $name, $arguments ) {
22
- $result = parent::__call( $name, $arguments );
23
- if ( ! $result[ 'result' ] ) {
24
- $result[ 'result' ] = $this->populate_results_fallback( $name, $arguments );
25
- }
26
- return $result;
27
- }
28
-
29
- /**
30
- *
31
- * @global type $wpdb
32
- * @param type $columns
33
- * @param type $offset
34
- * @param type $per_page
35
- * @param type $order_by
36
- * @return type
37
- */
38
- function get( $columns, $offset = false, $per_page = false, $order_by = 'media_id desc' ) {
39
- global $wpdb;
40
- $select = "SELECT * FROM {$this->table_name}";
41
- $join = "";
42
- $where = " where 2=2 ";
43
- $temp = 65;
44
- foreach ( $columns as $colname => $colvalue ) {
45
- if ( strtolower( $colname ) == "meta_query" ) {
46
- foreach ( $colvalue as $meta_query ) {
47
- if ( ! isset( $meta_query[ "compare" ] ) ) {
48
- $meta_query[ "compare" ] = "=";
49
- }
50
- $tbl_alias = chr( $temp ++ );
51
- $join .= " LEFT JOIN {$wpdb->prefix}{$this->meta_table_name} {$tbl_alias} ON {$this->table_name}.id = {$tbl_alias}.media_id ";
52
- if ( isset($meta_query[ "value" ]) )
53
- $where .= " AND ({$tbl_alias}.meta_key = '{$meta_query[ "key" ]}' and {$tbl_alias}.meta_value {$meta_query[ "compare" ]} '{$meta_query[ "value" ]}' ) ";
54
- else
55
- $where .= " AND {$tbl_alias}.meta_key = '{$meta_query[ "key" ]}' ";
56
- }
57
- } else {
58
- if ( is_array( $colvalue ) ) {
59
- if ( ! isset( $colvalue[ 'compare' ] ) )
60
- $compare = 'IN';
61
- else
62
- $compare = $colvalue[ 'compare' ];
63
- if ( ! isset( $colvalue[ 'value' ] ) ) {
64
- $colvalue[ 'value' ] = $colvalue;
65
- }
66
- $col_val_comapare = ($colvalue[ 'value' ]) ? '(\''. implode( "','", $colvalue[ 'value' ] ) .'\')' : '';
67
- $where .= " AND {$this->table_name}.{$colname} {$compare} {$col_val_comapare}";
68
- } else
69
- $where .= " AND {$this->table_name}.{$colname} = '{$colvalue}'";
70
- }
71
- }
72
-
73
- $where = apply_filters( 'rtmedia-model-where-query', $where, $this->table_name );
74
- $sql = $select . $join . $where;
75
-
76
- $sql .= " ORDER BY {$this->table_name}.$order_by";
77
-
78
- if ( is_integer( $offset ) && is_integer( $per_page ) ) {
79
- $sql .= ' LIMIT ' . $offset . ',' . $per_page;
80
- }
81
-
82
- return $wpdb->get_results( $sql );
83
- }
84
-
85
- /**
86
- *
87
- * @param type $name
88
- * @param type $arguments
89
- * @return type
90
- */
91
- function populate_results_fallback( $name, $arguments ) {
92
- $result[ 'result' ] = false;
93
- if ( 'get_by_media_id' == $name && isset( $arguments[ 0 ] ) && $arguments[ 0 ] ) {
94
-
95
- $result[ 'result' ][ 0 ]->media_id = $arguments[ 0 ];
96
-
97
- $post_type = get_post_field( 'post_type', $arguments[ 0 ] );
98
- if ( 'attachment' == $post_type ) {
99
- $post_mime_type = explode( '/', get_post_field( 'post_mime_type', $arguments[ 0 ] ) );
100
- $result[ 'result' ][ 0 ]->media_type = $post_mime_type[ 0 ];
101
- } elseif ( 'bp_media_album' == $post_type ) {
102
- $result[ 'result' ][ 0 ]->media_type = 'bp_media_album';
103
- } else {
104
- $result[ 'result' ][ 0 ]->media_type = false;
105
- }
106
-
107
- $result[ 'result' ][ 0 ]->context_id = intval( get_post_meta( $arguments[ 0 ], 'bp-media-key', true ) );
108
- if ( $result[ 'result' ][ 0 ]->context_id > 0 )
109
- $result[ 'result' ][ 0 ]->context = 'profile';
110
- else
111
- $result[ 'result' ][ 0 ]->context = 'group';
112
-
113
- $result[ 'result' ][ 0 ]->activity_id = get_post_meta( $arguments[ 0 ], 'bp_media_child_activity', true );
114
-
115
- $result[ 'result' ][ 0 ]->privacy = get_post_meta( $arguments[ 0 ], 'bp_media_privacy', true );
116
- }
117
- return $result[ 'result' ];
118
- }
119
-
120
- /**
121
- *
122
- * @param type $columns
123
- * @param type $offset
124
- * @param type $per_page
125
- * @param type $order_by
126
- * @return type
127
- */
128
- function get_media( $columns, $offset = false, $per_page = false, $order_by = 'media_id desc' ) {
129
- if ( is_multisite() ) {
130
- $results = $this->get( $columns, $offset, $per_page, "blog_id ," . $order_by );
131
- } else {
132
- $results = $this->get( $columns, $offset, $per_page, $order_by );
133
- }
134
- return $results;
135
- }
136
-
137
- function get_user_albums( $author_id, $offset, $per_page, $order_by = 'media_id desc' ) {
138
- global $wpdb;
139
- if ( is_multisite() )
140
- $order_by = "blog_id ," . $order_by;
141
- $sql = "SELECT * FROM {$this->table_name} WHERE id IN(SELECT DISTINCT (album_id) FROM {$this->table_name} WHERE media_author = $author_id AND album_id IS NOT NULL AND media_type != 'album' AND context != 'group') OR (media_type = 'album' AND media_author = $author_id AND context != 'group')";
142
- $sql .= " ORDER BY {$this->table_name}.$order_by";
143
-
144
- if ( is_integer( $offset ) && is_integer( $per_page ) ) {
145
- $sql .= ' LIMIT ' . $offset . ',' . $per_page;
146
- }
147
-
148
- $results = $wpdb->get_results( $sql );
149
- return $results;
150
- }
151
-
152
- function get_group_albums( $group_id, $offset, $per_page, $order_by = 'media_id desc' ) {
153
- global $wpdb;
154
- if ( is_multisite() )
155
- $order_by = "blog_id ," . $order_by;
156
- $sql = "SELECT * FROM {$this->table_name} WHERE id IN(SELECT DISTINCT (album_id) FROM {$this->table_name} WHERE context_id = $group_id AND album_id IS NOT NULL AND media_type != 'album' AND context = 'group') OR (media_type = 'album' AND context_id = $group_id AND context = 'group')";
157
- $sql .= " ORDER BY {$this->table_name}.$order_by";
158
-
159
- if ( is_integer( $offset ) && is_integer( $per_page ) ) {
160
- $sql .= ' LIMIT ' . $offset . ',' . $per_page;
161
- }
162
-
163
- $results = $wpdb->get_results( $sql );
164
- return $results;
165
- }
166
-
167
- function get_counts( $user_id = false, $where_query = false ) {
168
-
169
- if ( ! $user_id && ! $where_query )
170
- return false;
171
- global $wpdb, $rtmedia;
172
-
173
- $query =
174
- "SELECT {$this->table_name}.privacy, ";
175
- foreach ( $rtmedia->allowed_types as $type ) {
176
- $query .= "SUM(CASE WHEN {$this->table_name}.media_type LIKE '{$type[ 'name' ]}' THEN 1 ELSE 0 END) as {$type[ 'name' ]}, ";
177
- }
178
- $query .= "SUM(CASE WHEN {$this->table_name}.media_type LIKE 'album' THEN 1 ELSE 0 END) as album
179
FROM
180
{$this->table_name} WHERE 2=2 ";
181
- if ( $user_id ) {
182
- $query .= "AND {$this->table_name}.media_author = $user_id ";
183
- }
184
- if ( $where_query ) {
185
- foreach ( $where_query as $colname => $colvalue ) {
186
- if ( strtolower( $colname ) != "meta_query" ) {
187
- if ( is_array( $colvalue ) ) {
188
- if ( ! isset( $colvalue[ 'compare' ] ) )
189
- $compare = 'IN';
190
- else
191
- $compare = $colvalue[ 'compare' ];
192
- if ( ! isset( $colvalue[ 'value' ] ) ) {
193
- $colvalue[ 'value' ] = $colvalue;
194
- }
195
-
196
- $where .= " AND {$this->table_name}.{$colname} {$compare} ('" . implode( "','", $colvalue[ 'value' ] ) . "')";
197
- } else
198
- $where .= " AND {$this->table_name}.{$colname} = '{$colvalue}'";
199
- }
200
- }
201
- }
202
- $query .= "GROUP BY privacy";
203
- $result = $wpdb->get_results( $query );
204
- if ( ! is_array( $result ) )
205
- return false;
206
- return $result;
207
- }
208
209
}
210
7
*/
8
class RTMediaModel extends RTDBModel {
9
10
+ function __construct () {
11
+ parent::__construct ( 'rtm_media' );
12
+ $this->meta_table_name = "rt_rtm_media_meta";
13
+ }
14
+
15
+ /**
16
+ *
17
+ * @param type $name
18
+ * @param type $arguments
19
+ * @return type
20
+ */
21
+ function __call ( $name, $arguments ) {
22
+ $result = parent::__call ( $name, $arguments );
23
+ if ( ! $result[ 'result' ] ) {
24
+ $result[ 'result' ] = $this->populate_results_fallback ( $name, $arguments );
25
+ }
26
+ return $result;
27
+ }
28
+
29
+ /**
30
+ *
31
+ * @global type $wpdb
32
+ * @param type $columns
33
+ * @param type $offset
34
+ * @param type $per_page
35
+ * @param type $order_by
36
+ * @return type
37
+ */
38
+ function get ( $columns, $offset = false, $per_page = false, $order_by = 'media_id desc' ) {
39
+ global $wpdb;
40
+ $select = "SELECT * FROM {$this->table_name}";
41
+ $join = "";
42
+ $where = " where 2=2 ";
43
+ $temp = 65;
44
+ foreach ( $columns as $colname => $colvalue ) {
45
+ if ( strtolower ( $colname ) == "meta_query" ) {
46
+ foreach ( $colvalue as $meta_query ) {
47
+ if ( ! isset ( $meta_query[ "compare" ] ) ) {
48
+ $meta_query[ "compare" ] = "=";
49
+ }
50
+ $tbl_alias = chr ( $temp ++ );
51
+ $join .= " LEFT JOIN {$wpdb->prefix}{$this->meta_table_name} {$tbl_alias} ON {$this->table_name}.id = {$tbl_alias}.media_id ";
52
+ if ( isset ( $meta_query[ "value" ] ) )
53
+ $where .= " AND ({$tbl_alias}.meta_key = '{$meta_query[ "key" ]}' and {$tbl_alias}.meta_value {$meta_query[ "compare" ]} '{$meta_query[ "value" ]}' ) ";
54
+ else
55
+ $where .= " AND {$tbl_alias}.meta_key = '{$meta_query[ "key" ]}' ";
56
+ }
57
+ } else {
58
+ if ( is_array ( $colvalue ) ) {
59
+ if ( ! isset ( $colvalue[ 'compare' ] ) )
60
+ $compare = 'IN';
61
+ else
62
+ $compare = $colvalue[ 'compare' ];
63
+ if ( ! isset ( $colvalue[ 'value' ] ) ) {
64
+ $colvalue[ 'value' ] = $colvalue;
65
+ }
66
+ $col_val_comapare = ($colvalue[ 'value' ]) ? '(\'' . implode ( "','", $colvalue[ 'value' ] ) . '\')' : '';
67
+ $where .= " AND {$this->table_name}.{$colname} {$compare} {$col_val_comapare}";
68
+ }
69
+ else
70
+ $where .= " AND {$this->table_name}.{$colname} = '{$colvalue}'";
71
+ }
72
+ }
73
+
74
+ $where = apply_filters ( 'rtmedia-model-where-query', $where, $this->table_name );
75
+ $sql = $select . $join . $where;
76
+
77
+ $sql .= " ORDER BY {$this->table_name}.$order_by";
78
+
79
+ if ( is_integer ( $offset ) && is_integer ( $per_page ) ) {
80
+ $sql .= ' LIMIT ' . $offset . ',' . $per_page;
81
+ }
82
+
83
+ return $wpdb->get_results ( $sql );
84
+ }
85
+
86
+ /**
87
+ *
88
+ * @param type $name
89
+ * @param type $arguments
90
+ * @return type
91
+ */
92
+ function populate_results_fallback ( $name, $arguments ) {
93
+ $result[ 'result' ] = false;
94
+ if ( 'get_by_media_id' == $name && isset ( $arguments[ 0 ] ) && $arguments[ 0 ] ) {
95
+
96
+ $result[ 'result' ][ 0 ]->media_id = $arguments[ 0 ];
97
+
98
+ $post_type = get_post_field ( 'post_type', $arguments[ 0 ] );
99
+ if ( 'attachment' == $post_type ) {
100
+ $post_mime_type = explode ( '/', get_post_field ( 'post_mime_type', $arguments[ 0 ] ) );
101
+ $result[ 'result' ][ 0 ]->media_type = $post_mime_type[ 0 ];
102
+ } elseif ( 'bp_media_album' == $post_type ) {
103
+ $result[ 'result' ][ 0 ]->media_type = 'bp_media_album';
104
+ } else {
105
+ $result[ 'result' ][ 0 ]->media_type = false;
106
+ }
107
+
108
+ $result[ 'result' ][ 0 ]->context_id = intval ( get_post_meta ( $arguments[ 0 ], 'bp-media-key', true ) );
109
+ if ( $result[ 'result' ][ 0 ]->context_id > 0 )
110
+ $result[ 'result' ][ 0 ]->context = 'profile';
111
+ else
112
+ $result[ 'result' ][ 0 ]->context = 'group';
113
+
114
+ $result[ 'result' ][ 0 ]->activity_id = get_post_meta ( $arguments[ 0 ], 'bp_media_child_activity', true );
115
+
116
+ $result[ 'result' ][ 0 ]->privacy = get_post_meta ( $arguments[ 0 ], 'bp_media_privacy', true );
117
+ }
118
+ return $result[ 'result' ];
119
+ }
120
+
121
+ /**
122
+ *
123
+ * @param type $columns
124
+ * @param type $offset
125
+ * @param type $per_page
126
+ * @param type $order_by
127
+ * @return type
128
+ */
129
+ function get_media ( $columns, $offset = false, $per_page = false, $order_by = 'media_id desc' ) {
130
+ if ( is_multisite () ) {
131
+ $results = $this->get ( $columns, $offset, $per_page, "blog_id ," . $order_by );
132
+ } else {
133
+ $results = $this->get ( $columns, $offset, $per_page, $order_by );
134
+ }
135
+ return $results;
136
+ }
137
+
138
+ function get_user_albums ( $author_id, $offset, $per_page, $order_by = 'media_id desc' ) {
139
+ global $wpdb;
140
+ if ( is_multisite () )
141
+ $order_by = "blog_id ," . $order_by;
142
+
143
+ $sql = "SELECT * FROM {$this->table_name} WHERE (id IN(SELECT DISTINCT (album_id)
144
+ FROM {$this->table_name}
145
+ WHERE media_author = $author_id
146
+ AND album_id IS NOT NULL
147
+ AND media_type <> 'album' AND context <> 'group') OR (media_author = $author_id ))
148
+ AND media_type = 'album'
149
+ AND (context <> 'group' or context is NULL) ";
150
+ $sql .= " ORDER BY {$this->table_name}.$order_by";
151
+
152
+ if ( is_integer ( $offset ) && is_integer ( $per_page ) ) {
153
+ $sql .= ' LIMIT ' . $offset . ',' . $per_page;
154
+ }
155
+
156
+ $results = $wpdb->get_results ( $sql );
157
+ return $results;
158
+ }
159
+
160
+ function get_group_albums ( $group_id, $offset, $per_page, $order_by = 'media_id desc' ) {
161
+ global $wpdb;
162
+ if ( is_multisite () )
163
+ $order_by = "blog_id ," . $order_by;
164
+ $sql = "SELECT * FROM {$this->table_name} WHERE id IN(SELECT DISTINCT (album_id) FROM {$this->table_name} WHERE context_id = $group_id AND album_id IS NOT NULL AND media_type != 'album' AND context = 'group') OR (media_type = 'album' AND context_id = $group_id AND context = 'group')";
165
+ $sql .= " ORDER BY {$this->table_name}.$order_by";
166
+
167
+ if ( is_integer ( $offset ) && is_integer ( $per_page ) ) {
168
+ $sql .= ' LIMIT ' . $offset . ',' . $per_page;
169
+ }
170
+ $results = $wpdb->get_results ( $sql );
171
+ return $results;
172
+ }
173
+
174
+ function get_counts ( $user_id = false, $where_query = false ) {
175
+
176
+ if ( ! $user_id && ! $where_query )
177
+ return false;
178
+ global $wpdb, $rtmedia;
179
+
180
+ $query =
181
+ "SELECT {$this->table_name}.privacy, ";
182
+ foreach ( $rtmedia->allowed_types as $type ) {
183
+ $query .= "SUM(CASE WHEN {$this->table_name}.media_type LIKE '{$type[ 'name' ]}' THEN 1 ELSE 0 END) as {$type[ 'name' ]}, ";
184
+ }
185
+ $query .= "SUM(CASE WHEN {$this->table_name}.media_type LIKE 'album' THEN 1 ELSE 0 END) as album
186
FROM
187
{$this->table_name} WHERE 2=2 ";
188
+
189
+ if ( $where_query ) {
190
+ foreach ( $where_query as $colname => $colvalue ) {
191
+ if ( strtolower ( $colname ) != "meta_query" ) {
192
+ if ( is_array ( $colvalue ) ) {
193
+ if ( ! isset ( $colvalue[ 'compare' ] ) )
194
+ $compare = 'IN';
195
+ else
196
+ $compare = $colvalue[ 'compare' ];
197
+ if ( ! isset ( $colvalue[ 'value' ] ) ) {
198
+ $colvalue[ 'value' ] = $colvalue;
199
+ }
200
+
201
+ $query .= " AND {$this->table_name}.{$colname} {$compare} ('" . implode ( "','", $colvalue[ 'value' ] ) . "')";
202
+ } else {
203
+
204
+ if ( $colname == "context" && $colvalue == "profile" ) {
205
+ $query .= " AND {$this->table_name}.{$colname} <> 'group'";
206
+ } else {
207
+ $query .= " AND {$this->table_name}.{$colname} = '{$colvalue}'";
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ $query .= "GROUP BY privacy";
214
+
215
+ $result = $wpdb->get_results ( $query );
216
+ if ( ! is_array ( $result ) )
217
+ return false;
218
+ return $result;
219
+ }
220
+
221
+ function get_other_album_count ( $profile_id, $context = "profile" ) {
222
+ $global = RTMediaAlbum::get_globals ();
223
+ $sql = "select distinct album_id from {$this->table_name} where 2=2 AND context = '{$context}' ";
224
+ if ( is_array ( $global ) && count ( $global ) > 0 ) {
225
+ $sql .= " and album_id in (";
226
+ $sep = "";
227
+ foreach ( $global as $id ) {
228
+ $sql .= $sep . $id;
229
+ $sep = ",";
230
+ }
231
+ $sql .= ")";
232
+ }
233
+ if ( $context == "profile" ) {
234
+ $sql .= " AND media_author=$profile_id ";
235
+ } else if ( $context == "group" ) {
236
+ $sql .= " AND context_id=$profile_id ";
237
+ }
238
+ global $wpdb;
239
+ $result = $wpdb->get_results ( $sql );
240
+ if ( isset ( $result ) ) {
241
+ return count ( $result );
242
+ } else {
243
+ return 0;
244
+ }
245
+ }
246
247
}
248
app/helper/db/RTDBUpdate.php CHANGED
@@ -50,6 +50,7 @@ class RTDBUpdate {
50
51
public function do_upgrade() {
52
if (version_compare($this->db_version, $this->install_db_version, '>')) {
53
$path = realpath(dirname(__FILE__) . $this->schema_path);
54
if ($handle = opendir($path)) {
55
while (false !== ($entry = readdir($handle))) {
50
51
public function do_upgrade() {
52
if (version_compare($this->db_version, $this->install_db_version, '>')) {
53
+ do_action("rt_db_upgrade");
54
$path = realpath(dirname(__FILE__) . $this->schema_path);
55
if ($handle = opendir($path)) {
56
while (false !== ($entry = readdir($handle))) {
app/helper/rtForm.php CHANGED
@@ -24,6 +24,7 @@ if(!class_exists("rtForm")) {
24
private static $id_counts = array(
25
"rtText" => 0,
26
"rtNumber" => 0,
27
"rtRadio" => 0,
28
"rtCheckbox" => 0,
29
"rtSelect" => 0,
@@ -35,6 +36,7 @@ if(!class_exists("rtForm")) {
35
private static $default_classes = array(
36
"rtText" => "rt-form-text",
37
"rtNumber" => "rt-form-number",
38
"rtRadio" => "rt-form-radio",
39
"rtCheckbox" => "rt-form-checkbox",
40
"rtSelect" => "rt-form-select",
@@ -146,8 +148,18 @@ if(!class_exists("rtForm")) {
146
}
147
148
private function embedd_misc_attributes($misc) {
149
$html = '';
150
151
return $html;
152
}
153
@@ -176,8 +188,8 @@ if(!class_exists("rtForm")) {
176
$html .= $this->embedd_class($element);
177
}
178
179
- if(isset($attributes['misc']) && is_array($attributes['misc']))
180
- $html.= $this->embedd_misc_attributes($attributes['misc']);
181
182
$html .= $this->generate_element_value($element, $attributes);
183
@@ -286,9 +298,13 @@ if(!class_exists("rtForm")) {
286
throw new rtFormInvalidArgumentsException( "attributes" );
287
}
288
289
- protected function enclose_label($element, $html, $label) {
290
291
- $data = '<label for="' . $this->element_id . '">';
292
293
if( $element == "rtRadio" || $element == "rtCheckbox" )
294
$data .= $html . ' ' . $label;
@@ -315,8 +331,12 @@ if(!class_exists("rtForm")) {
315
/* ending the tag */
316
$html .= ' />';
317
318
- if( isset($attributes['label']) )
319
- $html = $this->enclose_label($element, $html, $attributes['label']);
320
321
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
322
$html .= $this->generate_element_desc($attributes);
@@ -346,8 +366,12 @@ if(!class_exists("rtForm")) {
346
/* ending the tag */
347
$html .= ' />';
348
349
- if( isset($attributes['label']) )
350
- $html = $this->enclose_label($element, $html, $attributes['label']);
351
352
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
353
$html .= $this->generate_element_desc($attributes);
@@ -362,6 +386,35 @@ if(!class_exists("rtForm")) {
362
return $this->generate_number($attributes);
363
}
364
365
366
protected function generate_hidden($attributes) {
367
@@ -377,8 +430,12 @@ if(!class_exists("rtForm")) {
377
/* ending the tag */
378
$html .= ' />';
379
380
- if( isset($attributes['label']) )
381
- $html = $this->enclose_label($element, $html, $attributes['label']);
382
383
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
384
$html .= $this->generate_element_desc($attributes);
@@ -407,8 +464,12 @@ if(!class_exists("rtForm")) {
407
408
$html .= '</textarea>';
409
410
- if( isset($attributes['label']) )
411
- $html = $this->enclose_label($element, $html, $attributes['label']);
412
413
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
414
$html .= $this->generate_element_desc($attributes);
@@ -567,8 +628,12 @@ if(!class_exists("rtForm")) {
567
568
$html .= '</select>';
569
570
- if( isset($attributes['label']) )
571
- $html = $this->enclose_label($element, $html, $attributes['label']);
572
573
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
574
$html .= $this->generate_element_desc($attributes);
24
private static $id_counts = array(
25
"rtText" => 0,
26
"rtNumber" => 0,
27
+ "rtDate" => 0,
28
"rtRadio" => 0,
29
"rtCheckbox" => 0,
30
"rtSelect" => 0,
36
private static $default_classes = array(
37
"rtText" => "rt-form-text",
38
"rtNumber" => "rt-form-number",
39
+ "rtDate" => "rt-form-date",
40
"rtRadio" => "rt-form-radio",
41
"rtCheckbox" => "rt-form-checkbox",
42
"rtSelect" => "rt-form-select",
148
}
149
150
private function embedd_misc_attributes($misc) {
151
+
152
+ if(!is_array($misc)) {
153
+ throw new rtFormInvalidArgumentsException("attributes : misc");
154
+ return;
155
+ }
156
+
157
$html = '';
158
159
+ foreach ($misc as $key => $value) {
160
+ $html .= $key . '="' . $value . '" ';
161
+ }
162
+
163
return $html;
164
}
165
188
$html .= $this->embedd_class($element);
189
}
190
191
+ if(isset($attributes['misc']))
192
+ $html.= ' ' . $this->embedd_misc_attributes($attributes['misc']);
193
194
$html .= $this->generate_element_value($element, $attributes);
195
298
throw new rtFormInvalidArgumentsException( "attributes" );
299
}
300
301
+ protected function enclose_label($element, $html, $label, $class=false) {
302
+
303
+ $labelClass = '';
304
+ if(!empty($class) && is_array($class))
305
+ $labelClass = 'class="'.implode(' ', $class).'"';
306
307
+ $data = '<label for="' . $this->element_id . '" '.$labelClass.'>';
308
309
if( $element == "rtRadio" || $element == "rtCheckbox" )
310
$data .= $html . ' ' . $label;
331
/* ending the tag */
332
$html .= ' />';
333
334
+ if( isset($attributes['label']) ) {
335
+ if( isset($attributes['labelClass']) )
336
+ $html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
337
+ else
338
+ $html = $this->enclose_label($element, $html, $attributes['label']);
339
+ }
340
341
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
342
$html .= $this->generate_element_desc($attributes);
366
/* ending the tag */
367
$html .= ' />';
368
369
+ if( isset($attributes['label']) ) {
370
+ if( isset($attributes['labelClass']) )
371
+ $html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
372
+ else
373
+ $html = $this->enclose_label($element, $html, $attributes['label']);
374
+ }
375
376
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
377
$html .= $this->generate_element_desc($attributes);
386
return $this->generate_number($attributes);
387
}
388
389
+ protected function generate_date($attributes) {
390
+
391
+ $element = 'rtDate';
392
+ if( is_array( $attributes ) ) {
393
+ $html = '<input type="date" ';
394
+
395
+ $html .= $this->processAttributes($element, $attributes);
396
+
397
+ $html .= ' />';
398
+
399
+ if( isset($attributes['label']) ) {
400
+ if( isset($attributes['labelClass']) )
401
+ $html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
402
+ else
403
+ $html = $this->enclose_label($element, $html, $attributes['label']);
404
+ }
405
+
406
+ if( isset($attributes['show_desc']) && $attributes['desc'] )
407
+ $html .= $this->generate_element_desc($attributes);
408
+
409
+ return $html;
410
+ } else
411
+ throw new rtFormInvalidArgumentsException( "attributes" );
412
+ }
413
+
414
+ public function get_date($attributes) {
415
+ return $this->generate_date($attributes);
416
+ }
417
+
418
419
protected function generate_hidden($attributes) {
420
430
/* ending the tag */
431
$html .= ' />';
432
433
+ if( isset($attributes['label']) ) {
434
+ if( isset($attributes['labelClass']) )
435
+ $html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
436
+ else
437
+ $html = $this->enclose_label($element, $html, $attributes['label']);
438
+ }
439
440
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
441
$html .= $this->generate_element_desc($attributes);
464
465
$html .= '</textarea>';
466
467
+ if( isset($attributes['label']) ) {
468
+ if( isset($attributes['labelClass']) )
469
+ $html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
470
+ else
471
+ $html = $this->enclose_label($element, $html, $attributes['label']);
472
+ }
473
474
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
475
$html .= $this->generate_element_desc($attributes);
628
629
$html .= '</select>';
630
631
+ if( isset($attributes['label']) ) {
632
+ if( isset($attributes['labelClass']) )
633
+ $html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
634
+ else
635
+ $html = $this->enclose_label($element, $html, $attributes['label']);
636
+ }
637
638
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
639
$html .= $this->generate_element_desc($attributes);
app/importers/RTMediaMigration.php CHANGED
@@ -9,100 +9,101 @@ class RTMediaMigration {
9
10
public $bmp_table = "";
11
12
- function __construct() {
13
global $wpdb;
14
$this->bmp_table = $wpdb->prefix . "rt_rtm_media";
15
-
16
- add_action('admin_menu', array($this, 'menu'));
17
- add_action('wp_ajax_bp_media_rt_db_migration', array($this, "migrate_to_new_db"));
18
-
19
- if(isset($_REQUEST["page"]) && $_REQUEST["page"] == "rtmedia-migration" && isset($_REQUEST["hide"]) && $_REQUEST["hide"] =="true"){
20
- $this->hide_migration_notice();
21
- wp_safe_redirect($_SERVER["HTTP_REFERER"]);
22
}
23
- if(get_site_option("rt_migration_hide_notice") !== false)
24
return true;
25
-
26
- if (isset($_REQUEST["force"]) && $_REQUEST["force"] === "true")
27
$pending = false;
28
else
29
- $pending = get_site_option("rtMigration-pending-count");
30
- $total = $this->get_total_count();
31
- $done = $this->get_done_count();
32
- if ($pending === false) {
33
- $total = $this->get_total_count();
34
- $done = $this->get_done_count();
35
$pending = $total - $done;
36
- if ($pending < 0)
37
$pending = 0;
38
- update_site_option("rtMigration-pending-count", $pending);
39
}
40
- if ($pending > 0) {
41
- if(!(isset($_REQUEST["page"]) && $_REQUEST["page"] == "rtmedia-migration"))
42
- add_action('admin_notices', array(&$this, 'add_migration_notice'));
43
}
44
-
45
}
46
- function hide_migration_notice(){
47
- update_site_option("rt_migration_hide_notice", true);
48
}
49
- function migrate_image_size_fix(){
50
- if(get_site_option("rt_image_size_migration_fix","") == ""){
51
global $wpdb;
52
- $sql = $wpdb->prepare("update $wpdb->postmeta set meta_value=replace(meta_value ,%s,%s) where meta_key = '_wp_attachment_metadata';","bp_media","rt_media");
53
- $wpdb->get_row($sql);
54
- update_option("rt_image_size_migration_fix", "fix");
55
}
56
}
57
58
- function add_migration_notice() {
59
- if (current_user_can( 'manage_options' ) )
60
- $this->create_notice("<p><strong>rtMedia</strong> : Please Migrate your Database <a href='" . admin_url("admin.php?page=rtmedia-migration&force=true") . "'>Click Here</a>. <a href='" . admin_url("admin.php?page=rtmedia-migration&hide=true") . "' style='float:right'>" . __("Hide") . "</a> </p>");
61
}
62
63
- function create_notice($message, $type = "error") {
64
echo '<div class="' . $type . '">' . $message . '</div>';
65
}
66
67
- static function table_exists($table) {
68
global $wpdb;
69
70
- if ($wpdb->query("SHOW TABLES LIKE '" . $table . "'") == 1) {
71
return true;
72
}
73
74
return false;
75
}
76
77
- function menu() {
78
- add_submenu_page('rtmedia-settings', __('Migration', 'buddypress-media'), __('Migration', 'buddypress-media'), 'manage_options', 'rtmedia-migration', array($this, 'test'));
79
}
80
81
- function get_total_count() {
82
global $wpdb;
83
- if (function_exists("bp_core_get_table_prefix"))
84
- $bp_prefix = bp_core_get_table_prefix();
85
else
86
$bp_prefix = "";
87
$sql_album_usercount = "select count(*) FROM $wpdb->usermeta where meta_key ='bp-media-default-album' ";
88
89
- $_SESSION["migration_user_album"] = $wpdb->get_var($sql_album_usercount);
90
- $count = intval($_SESSION["migration_user_album"]);
91
92
- if ($this->table_exists($bp_prefix . "bp_groups_groupmeta")) {
93
$sql_album_groupcount = "select count(*) FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='bp_media_default_album'";
94
- $_SESSION["migration_group_album"] = $wpdb->get_var($sql_album_groupcount);
95
- $count += intval($_SESSION["migration_group_album"]);
96
}
97
- if ($this->table_exists($bp_prefix . "bp_activity")) {
98
//$sql_bpm_comment_count = "select count(*) from {$bp_prefix}bp_activity where component='activity' and type='activity_comment' and is_spam <> 1 and ;";
99
- $sql_bpm_comment_count = "SELECT
100
count(id)
101
FROM
102
{$bp_prefix}bp_activity
103
where
104
type = 'activity_comment'
105
- and is_spam <>1
106
and item_id in (select distinct
107
a.meta_value
108
from
@@ -116,8 +117,8 @@ class RTMediaMigration {
116
117
//echo $sql_bpm_comment_count;
118
119
- $_SESSION["migration_activity"] = $wpdb->get_var($sql_bpm_comment_count);
120
- $count +=intval($_SESSION["migration_activity"]);
121
}
122
123
$sql = "select count(*)
@@ -136,15 +137,15 @@ class RTMediaMigration {
136
and a.meta_key = 'bp-media-key'";
137
138
139
- $_SESSION["migration_media"] = $wpdb->get_var($sql);
140
- $count += intval($_SESSION["migration_media"]);
141
- // var_dump($_SESSION);
142
return $count;
143
}
144
145
- function get_last_imported() {
146
- $album = get_site_option("rtmedia-global-albums");
147
- $album_id = $album[0];
148
149
global $wpdb;
150
$sql = "select a.post_ID
@@ -154,16 +155,16 @@ class RTMediaMigration {
154
where
155
a.meta_key = 'bp-media-key' and (NOT p.ID IS NULL) and a.post_id not in (select media_id
156
from {$this->bmp_table} where blog_id = %d and media_id <> %d ) order by a.post_ID";
157
- $sql = $wpdb->prepare($sql, get_current_blog_id(), $album_id);
158
- $row = $wpdb->get_row($sql);
159
- if ($row) {
160
return $row->post_ID;
161
} else {
162
return false;
163
}
164
}
165
166
- function get_done_count($flag = false) {
167
global $wpdb;
168
$sql = "select count(*)
169
from {$this->bmp_table} where blog_id = %d and media_id in (select a.post_id
@@ -181,218 +182,217 @@ class RTMediaMigration {
181
a.post_id > 0 and (NOT p.ID IS NULL)
182
and a.meta_key = 'bp-media-key')";
183
184
- $media_count = $wpdb->get_var($wpdb->prepare($sql, get_current_blog_id()));
185
- if ($flag)
186
return $media_count - 1;
187
- $state = intval(get_site_option("rtmedia-migration", "0"));
188
- if ($state == 5) {
189
- $album_count = intval($_SESSION["migration_user_album"]);
190
- $album_count += (isset($_SESSION["migration_group_album"])) ? intval($_SESSION["migration_group_album"]) : 0;
191
} else {
192
- if ($state >0){
193
- if (function_exists("bp_core_get_table_prefix"))
194
- $bp_prefix = bp_core_get_table_prefix();
195
else
196
$bp_prefix = "";
197
$pending_count = "select count(*) from $wpdb->posts where post_type='bp_media_album' and ( ID in (select meta_value FROM $wpdb->usermeta where meta_key ='bp-media-default-album') ";
198
- if ($this->table_exists($bp_prefix . "bp_groups_groupmeta")) {
199
$pending_count .= " or ID in (select meta_value FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='bp_media_default_album')";
200
}
201
$pending_count .= ")";
202
- $pending_count = $wpdb->get_var($pending_count);
203
-
204
- $album_count = intval($_SESSION["migration_user_album"]);
205
- $album_count += (isset($_SESSION["migration_group_album"])) ? intval($_SESSION["migration_group_album"]) : 0;
206
- $album_count = $album_count - intval($pending_count);
207
- }
208
- else{
209
$album_count = 0;
210
}
211
}
212
- if (intval($_SESSION["migration_media"]) == intval($media_count)) {
213
- $comment_sql = $_SESSION["migration_activity"];
214
} else {
215
- $comment_sql = $wpdb->get_var("select count(*)
216
- from $wpdb->comments a
217
where a.comment_post_ID in (select b.media_id from $this->bmp_table b left join
218
- {$wpdb->posts} p ON (b.media_id = p.ID) where (NOT p.ID IS NULL) ) and a.comment_agent=''");
219
}
220
// echo $media_count . "--" . $album_count . "--" . $comment_sql;
221
return $media_count + $album_count + $comment_sql;
222
}
223
224
- function return_migration() {
225
- $total = $this->get_total_count();
226
- $done = $this->get_done_count();
227
$pending = $total - $done;
228
- if ($pending < 0) {
229
$pending = 0;
230
$done = $total;
231
}
232
- if($done > $total){
233
$done = $total;
234
}
235
- if($done == $total){
236
- global $wp_rewrite;
237
//Call flush_rules() as a method of the $wp_rewrite object
238
- $wp_rewrite->flush_rules(true);
239
-
240
}
241
- update_site_option("rtMigration-pending-count", $pending);
242
- $pending_time = $this->formatSeconds($pending);
243
244
- echo json_encode(array("status" => true, "done" => $done, "total" => $total,"pending"=>$pending_time));
245
- die();
246
}
247
248
- function manage_album() {
249
- $album = get_site_option("rtmedia-global-albums");
250
- $stage = intval(get_site_option("rtmedia-migration", "0"));
251
-
252
- $album_rt_id = $album[0];
253
254
$album_post_type = "rtmedia_album";
255
-
256
global $wpdb;
257
-
258
- $album_id = $wpdb->get_var($wpdb->prepare("select media_id from $this->bmp_table where id = %d",$album_rt_id));
259
-
260
- if (function_exists("bp_core_get_table_prefix"))
261
- $bp_prefix = bp_core_get_table_prefix();
262
else
263
$bp_prefix = "";
264
265
- if($stage < 1){
266
- global $wpdb;
267
- if (function_exists("bp_core_get_table_prefix"))
268
- $bp_prefix = bp_core_get_table_prefix();
269
- else
270
- $bp_prefix = "";
271
- $sql = $wpdb->prepare("update {$bp_prefix}bp_activity set content=replace(content,%s,%s) where id > 0;",'<ul class="bp-media-list-media">','<div class="rtmedia-activity-container"><ul class="rtmedia-list large-block-grid-3">');
272
- $wpdb->get_row($sql);
273
- $sql = $wpdb->prepare("update {$bp_prefix}bp_activity set content=replace(content,%s,%s) where id > 0;",'</ul>','</ul></div>');
274
- $wpdb->get_row($sql);
275
-
276
-
277
$sql_group = "update $wpdb->posts set post_parent='{$album_id}' where post_parent in (select meta_value FROM $wpdb->usermeta where meta_key ='bp-media-default-album') ";
278
- if ($this->table_exists($bp_prefix . "bp_groups_groupmeta")) {
279
$sql_group .= " or post_parent in (select meta_value FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='bp_media_default_album')";
280
}
281
- $wpdb->query($sql_group);
282
$stage = 1;
283
- update_site_option("rtmedia-migration", $stage);
284
- $this->return_migration();
285
}
286
- if($stage < 2){
287
$sql_delete = "select * from $wpdb->posts where post_type='bp_media_album' and ID in (select meta_value FROM $wpdb->usermeta where meta_key ='bp-media-default-album') limit 10";
288
- $results = $wpdb->get_results($sql_delete);
289
$delete_ids = "";
290
$sep = "";
291
- foreach($results as $result){
292
- $this->search_and_replace($result->guid, trailingslashit(get_rtmedia_user_link($result->post_author)). "media/" . $album_rt_id);
293
$delete_ids .= $sep . $result->ID;
294
$sep = ",";
295
}
296
- if($delete_ids != "")
297
- $wpdb->query("delete from $wpdb->posts where ID in ({$delete_ids})");
298
- if(count($results) < 10){
299
- $stage =2;
300
}
301
- update_site_option("rtmedia-migration", $stage);
302
- $this->return_migration();
303
}
304
- if($stage < 3){
305
- if ($this->table_exists($bp_prefix . "bp_groups_groupmeta")) {
306
$sql_delete = "select * from $wpdb->posts where post_type='bp_media_album' and ID in (select meta_value FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='bp_media_default_album') limit 10";
307
- $results = $wpdb->get_results($sql_delete);
308
$delete_ids = "";
309
$sep = "";
310
- if($results){
311
- foreach($results as $result){
312
- $group_id = abs(intval(get_post_meta($result->ID, "bp-media-key",true)));
313
- $this->search_and_replace(trailingslashit(get_rtmedia_group_link($group_id)). "albums/" . $result->ID, trailingslashit(get_rtmedia_group_link($group_id)). "media/" . $album_rt_id);
314
$delete_ids .= $sep . $result->ID;
315
$sep = ",";
316
}
317
- if($delete_ids != "")
318
- $wpdb->query("delete from $wpdb->posts where ID in ({$delete_ids})");
319
- if(count($results) < 10){
320
- $stage =3;
321
}
322
- }else{
323
- $stage =3;
324
}
325
- update_site_option("rtmedia-migration", $stage);
326
- $this->return_migration();
327
- }else{
328
- $stage =3;
329
- update_site_option("rtmedia-migration", $stage);
330
- $this->return_migration();
331
- }
332
}
333
-
334
335
$sql = "update $wpdb->posts set post_type='{$album_post_type}' where post_type='bp_media_album'";
336
- if ($wpdb->query($sql) !== false) {
337
- update_site_option("rtmedia-migration", "5");
338
- return true;
339
- }
340
return false;
341
}
342
343
- function test() {
344
- if( !$this->table_exists($this->bmp_table) ){
345
- $obj = new RTDBUpdate();
346
- $obj->install_db_version = "0";
347
- $obj->do_upgrade(true);
348
}
349
global $rtmedia_error;
350
- if(isset($rtmedia_error) && $rtmedia_error===true){
351
- ?>
352
<div class="error"><p> Please Resolve create database error before migration.</p></div>
353
- <?php }
354
-
355
$prog = new rtProgress();
356
- $total = $this->get_total_count();
357
- $done = $this->get_done_count();
358
- if($done >= $total){
359
$done = $total;
360
- }else{ ?>
361
<div class="error"><p> Please Backup your <strong>DATABASE</strong> and <strong>UPLOAD</strong> folder before Migration.</p></div>
362
<?php }
363
-
364
?>
365
-
366
<div class="wrap">
367
-
368
<h2>rtMedia Migration</h2>
369
- <h3><?php _e("It will migrate following things"); ?> </h3>
370
- User Albums : <?php echo $_SESSION["migration_user_album"]; ?><br />
371
- <?php if (isset($_SESSION["migration_group_album"])) { ?>
372
- Groups Albums : <?php echo $_SESSION["migration_group_album"]; ?><br />
373
<?php } ?>
374
- Media : <?php echo $_SESSION["migration_media"]; ?><br />
375
- <?php if (isset($_SESSION["migration_activity"])) { ?>
376
- Comments : <?php echo $_SESSION["migration_activity"]; ?><br />
377
<?php } ?>
378
<hr />
379
380
<?php
381
- echo '<span class="pending">' . $this->formatSeconds($total - $done) . '</span><br />';
382
echo '<span class="finished">' . $done . '</span>/<span class="total">' . $total . '</span>';
383
- echo '<img src="images/loading.gif" alt="syncing" id="rtMediaSyncing" style="display:none" />';
384
385
- $temp = $prog->progress($done, $total);
386
- $prog->progress_ui($temp, true);
387
?>
388
<script type="text/javascript">
389
- jQuery(document).ready(function(e){
390
- if(db_total<1)
391
- jQuery("#submit").attr('disabled',"disabled");
392
})
393
function db_start_migration(db_done, db_total) {
394
-
395
-
396
if (db_done < db_total) {
397
jQuery("#rtMediaSyncing").show();
398
jQuery.ajax({
@@ -403,11 +403,11 @@ class RTMediaMigration {
403
"done": db_done
404
},
405
success: function(sdata) {
406
-
407
- try{
408
data = JSON.parse(sdata);
409
- }catch(e){
410
- jQuery("#submit").attr('disabled',"");
411
}
412
if (data.status) {
413
done = parseInt(data.done);
@@ -427,53 +427,53 @@ class RTMediaMigration {
427
jQuery("#rtMediaSyncing").hide();
428
}
429
},
430
- error: function(){
431
- alert("Error During Migration, Please Refresh Page then try again");
432
- jQuery("#submit").removeAttr('disabled');
433
- }
434
});
435
} else {
436
alert("Migration completed.");
437
jQuery("#rtMediaSyncing").hide();
438
}
439
}
440
- var db_done = <?php echo $done; ?>;
441
- var db_total = <?php echo $total; ?>;
442
jQuery(document).on('click', '#submit', function(e) {
443
e.preventDefault();
444
-
445
db_start_migration(db_done, db_total);
446
jQuery(this).attr('disabled', 'disabled');
447
});
448
</script>
449
<hr />
450
- <?php if(!(isset($rtmedia_error) && $rtmedia_error===true)){ ?>
451
- <input type="button" id="submit" value="start" class="button button-primary" />
452
<?php } ?>
453
454
</div>
455
<?php
456
}
457
458
- function migrate_to_new_db($lastid = 0, $limit = 1) {
459
460
- if (!isset($_SESSION["migration_media"]))
461
- $this->get_total_count();
462
463
- $state = intval(get_site_option("rtmedia-migration"));
464
- if ($state < 5) {
465
- if ($this->manage_album()) {
466
- $this->migrate_encoding_options();
467
- $this->return_migration();
468
}
469
}
470
471
- if (intval($_SESSION["migration_media"]) >= $this->get_done_count(true)) {
472
473
- if (!$lastid) {
474
- $lastid = $this->get_last_imported();
475
- if (!$lastid) {
476
- $this->return_migration();
477
}
478
}
479
global $wpdb;
@@ -498,35 +498,35 @@ class RTMediaMigration {
498
left join
499
{$wpdb->posts} p ON (a.post_id = p.ID)
500
where
501
- a.post_id >= %d and (NOT p.ID is NULL)
502
and a.meta_key = 'bp-media-key'
503
order by a.post_id
504
limit %d";
505
506
507
- $results = $wpdb->get_results($wpdb->prepare($sql, $lastid, $limit));
508
509
- if (function_exists("bp_core_get_table_prefix"))
510
- $bp_prefix = bp_core_get_table_prefix();
511
else
512
$bp_prefix = "";
513
- if ($results) {
514
515
- foreach ($results as $result) {
516
- $this->migrate_single_media($result);
517
}
518
}
519
} else {
520
- global $wp_rewrite;
521
//Call flush_rules() as a method of the $wp_rewrite object
522
- $wp_rewrite->flush_rules(true);
523
// echo json_encode(array("status" => false, "done" => $done, "total" => $this->get_total_count()));
524
// die();
525
}
526
- $this->return_migration();
527
}
528
529
- function migrate_encoding_options() {
530
$encoding_mnigration_array = array(
531
'bp-media-encoding-api-key' => 'rtmedia-encoding-api-key',
532
'bp-media-encoding-usage-limit-mail' => 'rtmedia-encoding-usage-limit-mail',
@@ -536,25 +536,25 @@ class RTMediaMigration {
536
'bp_media_ffmpeg_options' => 'rtmedia-ffmpeg-options',
537
'bp_media_kaltura_options' => 'rtmedia-kaltura-options',
538
);
539
- foreach ($encoding_mnigration_array as $key => $ma) {
540
- if (($value = get_site_option($key)) !== false) {
541
- update_site_option($ma, $value);
542
}
543
}
544
}
545
546
- function migrate_single_media($result, $album = false) {
547
- $blog_id = get_current_blog_id();
548
- $old= $result;
549
- if (function_exists("bp_core_get_table_prefix"))
550
- $bp_prefix = bp_core_get_table_prefix();
551
else
552
$bp_prefix = "";
553
global $wpdb;
554
-
555
- if ($album !== false && ! (is_object($result))) {
556
- $id = $wpdb->get_var($wpdb->prepare("select ID from $this->bmp_table where media_id = %d", $result));
557
- if ($id == NULL) {
558
$sql = "select
559
a.post_id as 'post_id',
560
a.meta_value as 'privacy',
@@ -578,38 +578,38 @@ class RTMediaMigration {
578
where
579
a.post_id = %d and (NOT p.ID IS NULL)
580
and a.meta_key = 'bp_media_privacy'";
581
- $result = $wpdb->get_row($wpdb->prepare($sql, $result));
582
} else {
583
return $id;
584
}
585
}
586
- if(!isset($result) || !isset($result->post_id)){
587
return $old;
588
}
589
$media_id = $result->post_id;
590
591
- if (intval($result->context_id) > 0) {
592
$media_context = "profile";
593
- $prefix = "users/" . abs(intval($result->context_id));
594
} else {
595
$media_context = "group";
596
- $prefix = bp_get_groups_root_slug() . abs(intval($result->context_id));
597
}
598
599
600
- $old_type ="";
601
- if ($result->post_type != "attachment") {
602
$media_type = "album";
603
} else {
604
- $mime_type = strtolower($result->post_mime_type);
605
$old_type = "";
606
- if (strpos($mime_type, "image") === 0) {
607
$media_type = "photo";
608
$old_type = "photos";
609
- } else if (strpos($mime_type, "audio") === 0) {
610
$media_type = "music";
611
$old_type = "music";
612
- } else if (strpos($mime_type, "video") === 0) {
613
$media_type = "video";
614
$old_type = "videos";
615
} else {
@@ -617,14 +617,14 @@ class RTMediaMigration {
617
}
618
}
619
620
- $activity_data = $wpdb->get_row($wpdb->prepare("select * from {$bp_prefix}bp_activity where id= %d", $result->activity_id));
621
- if ($media_type != 'album') {
622
- $this->importmedia($media_id, $prefix);
623
}
624
625
- if ($this->table_exists($bp_prefix . "bp_activity") && class_exists("BP_Activity_Activity")) {
626
$bp_activity = new BP_Activity_Activity();
627
- $activity_sql = $wpdb->prepare("SELECT
628
*
629
FROM
630
{$bp_prefix}bp_activity
@@ -637,49 +637,48 @@ class RTMediaMigration {
637
$wpdb->posts p ON (a.post_id = p.ID)
638
where
639
(NOT p.ID IS NULL) and p.ID = %d
640
- and a.meta_key = 'bp_media_child_activity')", $media_id);
641
- $all_activity = $wpdb->get_results($activity_sql);
642
- remove_all_actions("wp_insert_comment");
643
- foreach ($all_activity as $activity) {
644
- $comments = $bp_activity->get_activity_comments($activity->id, $activity->mptt_left, $activity->mptt_right);
645
- $exclude = get_post_meta($media_id, "rtmedia_imported_activity", true);
646
- if (!is_array($exclude)) {
647
- $exclude = array();
648
}
649
- if ($comments)
650
- $this->insert_comment($media_id, $comments, $exclude);
651
}
652
}
653
- if (intval($result->parent) !== 0 ) {
654
- $album_id = $this->migrate_single_media($result->parent, true);
655
} else {
656
$album_id = 0;
657
}
658
- if (function_exists("bp_activity_get_meta"))
659
- $likes = bp_activity_get_meta($result->activity_id, 'favorite_count');
660
else
661
$likes = 0;
662
663
- $wpdb->insert(
664
$this->bmp_table, array(
665
'blog_id' => $blog_id,
666
'media_id' => $media_id,
667
'media_type' => $media_type,
668
"context" => $media_context,
669
- "context_id" => abs(intval($result->context_id)),
670
"activity_id" => $result->activity_id,
671
- "privacy" => intval($result->privacy) * 10,
672
"media_author" => $result->media_author,
673
"media_title" => $result->media_title,
674
"album_id" => $album_id,
675
"likes" => $likes
676
- ), array('%d', '%d', '%s', '%s', '%d', '%d', '%d', '%d', '%s', '%d', '%d')
677
);
678
- $last_id = $wpdb->insert_id;
679
-
680
- // Photo tag meta migration
681
//$photo_tag_meta = get_post_meta($media_id, "bp-media-user-tags", true);
682
-
683
// if($photo_tag_meta && !empty($photo_tag_meta)){
684
// $wpdb->insert(
685
// $wpdb->prefix . "rt_rtm_media_meta", array(
@@ -687,113 +686,110 @@ class RTMediaMigration {
687
// 'meta_key' => "user-tags",
688
// "meta_value" => maybe_serialize($photo_tag_meta)), array('%d', '%s', '%s'));
689
// }
690
- if ($media_type != 'album' && function_exists('bp_core_get_user_domain') && $activity_data) {
691
- if (function_exists("bp_core_get_table_prefix"))
692
- $bp_prefix = bp_core_get_table_prefix();
693
else
694
$bp_prefix = "";
695
696
$activity_data->old_primary_link = $activity_data->primary_link;
697
- $parent_link = get_rtmedia_user_link($activity_data->user_id);
698
- $activity_data->primary_link = $parent_link . "media/" . $last_id;
699
- $this->search_and_replace($activity_data->old_primary_link, $activity_data->primary_link);
700
- $activity_data->action = str_replace($activity_data->old_primary_link, $activity_data->primary_link, $activity_data->action);
701
- $activity_data->content = str_replace($activity_data->old_primary_link, $activity_data->primary_link, $activity_data->content);
702
global $last_baseurl, $last_newurl;
703
704
$replace_img = $last_newurl; //$last_baseurl . "rtMedia/$prefix/";
705
- if (strpos($activity_data->content, $replace_img) === false)
706
- $activity_data->content = str_replace($last_baseurl, $replace_img, $activity_data->content);
707
global $wpdb;
708
- $wpdb->update($bp_prefix . "bp_activity", array("primary_link" => $activity_data->primary_link,
709
"action" => $activity_data->action,
710
- "content" => $activity_data->content), array("id" => $activity_data->id));
711
- }else{
712
- if($media_context == "group"){
713
$activity_data->old_primary_link = $activity_data->primary_link;
714
- $parent_link = get_rtmedia_group_link( abs(intval($result->context_id)) );
715
- $parent_link = trailingslashit($parent_link);
716
- $activity_data->primary_link = trailingslashit( $parent_link . 'media/' . $last_id );
717
- $this->search_and_replace($activity_data->old_primary_link, $activity_data->primary_link);
718
- }else{
719
$activity_data->old_primary_link = $activity_data->primary_link;
720
- $parent_link = get_rtmedia_user_link($activity_data->user_id);
721
- $parent_link = trailingslashit($parent_link);
722
- $activity_data->primary_link = trailingslashit( $parent_link . 'media/' . $last_id );
723
- $this->search_and_replace($activity_data->old_primary_link, $activity_data->primary_link);
724
}
725
}
726
- if($old_type !=""){
727
- if($media_context == "group"){
728
- $parent_link = get_rtmedia_group_link( abs(intval($result->context_id)) );
729
- $parent_link = trailingslashit($parent_link);
730
- $this->search_and_replace(trailingslashit( $parent_link . $old_type . '/' . $media_id ), trailingslashit( $parent_link . 'media/' . $last_id ));
731
-
732
- }else{
733
- $parent_link = get_rtmedia_user_link($activity_data->user_id);
734
- $parent_link = trailingslashit($parent_link);
735
- $this->search_and_replace(trailingslashit( $parent_link . $old_type . '/' . $media_id ), trailingslashit( $parent_link . 'media/' . $last_id ));
736
-
737
}
738
-
739
}
740
return $last_id;
741
}
742
743
- function importmedia($id, $prefix) {
744
745
-
746
$delete = false;
747
- $attached_file = get_attached_file($id);
748
- $attached_file_option = get_post_meta($id, '_wp_attached_file', true);
749
- $basename = wp_basename($attached_file);
750
- $file_folder_path = trailingslashit(str_replace($basename, '', $attached_file));
751
752
753
- $siteurl = get_option('siteurl');
754
- $upload_path = trim(get_option('upload_path'));
755
756
- if (empty($upload_path) || 'wp-content/uploads' == $upload_path) {
757
$dir = WP_CONTENT_DIR . '/uploads';
758
- } elseif (0 !== strpos($upload_path, ABSPATH)) {
759
// $dir is absolute, $upload_path is (maybe) relative to ABSPATH
760
- $dir = path_join(ABSPATH, $upload_path);
761
} else {
762
$dir = $upload_path;
763
}
764
765
- if (!$url = get_option('upload_url_path')) {
766
- if (empty($upload_path) || ( 'wp-content/uploads' == $upload_path ) || ( $upload_path == $dir ))
767
$url = WP_CONTENT_URL . '/uploads';
768
else
769
- $url = trailingslashit($siteurl) . $upload_path;
770
}
771
772
// Obey the value of UPLOADS. This happens as long as ms-files rewriting is disabled.
773
// We also sometimes obey UPLOADS when rewriting is enabled -- see the next block.
774
- if (defined('UPLOADS') && !( is_multisite() && get_site_option('ms_files_rewriting') )) {
775
$dir = ABSPATH . UPLOADS;
776
- $url = trailingslashit($siteurl) . UPLOADS;
777
}
778
779
// If multisite (and if not the main site in a post-MU network)
780
- if (is_multisite() && !( is_main_site() && defined('MULTISITE') )) {
781
782
- if (!get_site_option('ms_files_rewriting')) {
783
// If ms-files rewriting is disabled (networks created post-3.5), it is fairly straightforward:
784
// Append sites/%d if we're not on the main site (for post-MU networks). (The extra directory
785
// prevents a four-digit ID from conflicting with a year-based directory for the main site.
786
// But if a MU-era network has disabled ms-files rewriting manually, they don't need the extra
787
// directory, as they never had wp-content/uploads for the main site.)
788
789
- if (defined('MULTISITE'))
790
- $ms_dir = '/sites/' . get_current_blog_id();
791
else
792
- $ms_dir = '/' . get_current_blog_id();
793
794
$dir .= $ms_dir;
795
$url .= $ms_dir;
796
- } elseif (defined('UPLOADS') && !ms_is_switched()) {
797
// Handle the old-form ms-files.php rewriting if the network still has that enabled.
798
// When ms-files rewriting is enabled, then we only listen to UPLOADS when:
799
// 1) we are not on the main site in a post-MU network,
@@ -806,104 +802,102 @@ class RTMediaMigration {
806
// as it is relative to ABSPATH. For the final piece: when UPLOADS is used with ms-files
807
// rewriting in multisite, the resulting URL is /files. (#WP22702 for background.)
808
809
- if (defined('BLOGUPLOADDIR'))
810
- $dir = untrailingslashit(BLOGUPLOADDIR);
811
else
812
$dir = ABSPATH . UPLOADS;
813
- $url = trailingslashit($siteurl) . 'files';
814
}
815
}
816
817
- $basedir = trailingslashit($dir);
818
- $baseurl = trailingslashit($url);
819
820
- $new_file_folder_path = trailingslashit(str_replace($basedir, $basedir . "rtMedia/$prefix/", $file_folder_path));
821
822
- $year_month = untrailingslashit(str_replace($basedir, '', $file_folder_path));
823
824
825
- $metadata = wp_get_attachment_metadata($id);
826
- $backup_metadata = get_post_meta($id, '_wp_attachment_backup_sizes', true);
827
- $instagram_thumbs = get_post_meta($id, '_instagram_thumbs', true);
828
- $instagram_full_images = get_post_meta($id, '_instagram_full_images', true);
829
- $instagram_metadata = get_post_meta($id, '_instagram_metadata', true);
830
- $encoding_job_id = get_post_meta($id, 'bp-media-encoding-job-id', true);
831
- $ffmpeg_thumbnail_ids = get_post_meta($id, 'bp_media_thumbnail_ids', true);
832
- $ffmpeg_thumbnail = get_post_meta($id, 'bp_media_thumbnail', true);
833
- $ffmpeg_remote_id = get_post_meta($id, 'bp_media_ffmpeg_remote_id', true);
834
- $kaltura_remote_id = get_post_meta($id, 'bp_media_kaltura_remote_id', true);
835
836
- if (wp_mkdir_p($basedir . "rtMedia/$prefix/" . $year_month)) {
837
- if (copy($attached_file, str_replace($basedir, $basedir . "rtMedia/$prefix/", $attached_file))) {
838
$delete = true;
839
840
- if (isset($metadata['sizes'])) {
841
- foreach ($metadata['sizes'] as $size) {
842
- if (!copy($file_folder_path . $size['file'], $new_file_folder_path . $size['file'])) {
843
$delete = false;
844
-
845
} else {
846
- $delete_sizes[] = $file_folder_path . $size['file'];
847
- $this->search_and_replace(trailingslashit($baseurl . $year_month). $size['file'],trailingslashit($baseurl . "rtMedia/$prefix/" . $year_month). $size['file']);
848
}
849
-
850
}
851
}
852
- if ($backup_metadata) {
853
- foreach ($backup_metadata as $backup_images) {
854
- if (!copy($file_folder_path . $backup_images['file'], $new_file_folder_path . $backup_images['file'])) {
855
$delete = false;
856
} else {
857
- $delete_sizes[] = $file_folder_path . $backup_images['file'];
858
- $this->search_and_replace(trailingslashit($baseurl . $year_month). $backup_images['file'],trailingslashit($baseurl . "rtMedia/$prefix/" . $year_month). $backup_images['file']);
859
}
860
}
861
}
862
863
- if ($instagram_thumbs) {
864
- foreach ($instagram_thumbs as $key => $insta_thumb) {
865
- try{
866
- if (!copy(str_replace($baseurl, $basedir, $insta_thumb), str_replace($baseurl, $basedir . "rtMedia/$prefix/", $insta_thumb))) {
867
- $delete = false;
868
- } else {
869
- $delete_sizes[] = str_replace($baseurl, $basedir, $insta_thumb);
870
- $instagram_thumbs_new[$key] = str_replace($baseurl, $baseurl . "rtMedia/$prefix/", $insta_thumb);
871
- $this->search_and_replace(trailingslashit($baseurl . $year_month).$insta_thumb,trailingslashit($baseurl . "rtMedia/$prefix/" . $year_month). $insta_thumb);
872
- }
873
- } catch (Exceptio $e){
874
$delete = false;
875
}
876
}
877
}
878
879
- if ($instagram_full_images) {
880
- foreach ($instagram_full_images as $key => $insta_full_image) {
881
- if (!copy($insta_full_image, str_replace($basedir, $basedir . "rtMedia/$prefix/", $insta_full_image))) {
882
$delete = false;
883
} else {
884
- $delete_sizes[] = $insta_full_image;
885
- $instagram_full_images_new[$key] = str_replace($basedir, $basedir . "rtMedia/$prefix", $insta_full_image);
886
- $this->search_and_replace(trailingslashit($baseurl . $year_month).$insta_full_image,trailingslashit($baseurl . "rtMedia/$prefix/" . $year_month). $insta_full_image);
887
}
888
}
889
}
890
891
- if ($instagram_metadata) {
892
$instagram_metadata_new = $instagram_metadata;
893
- foreach ($instagram_metadata as $wp_size => $insta_metadata) {
894
- if (isset($insta_metadata['file'])) {
895
- if (!copy($basedir . $insta_metadata['file'], $basedir . "rtMedia/$prefix/" . $insta_metadata['file'])) {
896
$delete = false;
897
} else {
898
- $delete_sizes[] = $basedir . $insta_metadata['file'];
899
- $instagram_metadata_new[$wp_size]['file'] = "rtMedia/$prefix/" . $insta_metadata['file'];
900
- if (isset($insta_metadata['sizes'])) {
901
- foreach ($insta_metadata['sizes'] as $key => $insta_size) {
902
- if (!copy($file_folder_path . $insta_size['file'], $new_file_folder_path . $insta_size['file'])) {
903
- $delete = false;
904
} else {
905
- $delete_sizes[] = $file_folder_path . $insta_size['file'];
906
- $this->search_and_replace(trailingslashit($baseurl . $year_month).$insta_size['file'],trailingslashit($baseurl . "rtMedia/$prefix/" . $year_month). $insta_size['file']);
907
}
908
}
909
}
@@ -912,109 +906,110 @@ class RTMediaMigration {
912
}
913
}
914
915
- if ($delete) {
916
- if (file_exists($attached_file))
917
- unlink($attached_file);
918
919
- if (isset($delete_sizes)) {
920
- foreach ($delete_sizes as $delete_size) {
921
- if (file_exists($delete_size))
922
- unlink($delete_size);
923
}
924
}
925
- update_post_meta($id, '_wp_attached_file', "rtMedia/$prefix/" . $attached_file_option);
926
- if (isset($metadata['file'])) {
927
- $metadata['file'] = "rtMedia/$prefix/" . $metadata['file'];
928
- wp_update_attachment_metadata($id, $metadata);
929
}
930
- if ($instagram_thumbs) {
931
- update_rtmedia_meta($id, '_instagram_thumbs', $instagram_thumbs_new);
932
}
933
- if ($instagram_full_images) {
934
- update_rtmedia_meta($id, '_instagram_full_images', $instagram_full_images_new);
935
}
936
- if ($instagram_metadata) {
937
- update_rtmedia_meta($id, '_instagram_metadata', $instagram_metadata_new);
938
}
939
- if ($encoding_job_id) {
940
- update_rtmedia_meta($id, 'rtmedia-encoding-job-id', $encoding_job_id);
941
}
942
- if ($ffmpeg_thumbnail_ids) {
943
- update_rtmedia_meta($id, 'rtmedia-thumbnail-ids', $ffmpeg_thumbnail_ids);
944
}
945
- if ($ffmpeg_thumbnail) {
946
$model = new RTMediaModel();
947
- $model->update(array('cover_art' => $ffmpeg_thumbnail), array('id' => $id));
948
}
949
- if ($ffmpeg_remote_id) {
950
- update_rtmedia_meta($id, 'rtmedia-ffmpeg-remote-id', $ffmpeg_remote_id);
951
}
952
- if ($kaltura_remote_id) {
953
- update_rtmedia_meta($id, 'rtmedia-kaltura-remote-id', $kaltura_remote_id);
954
}
955
956
- $attachment = array();
957
- $attachment['ID'] = $id;
958
- $old_guid = get_post_field('guid', $id);
959
- $attachment['guid'] = str_replace($baseurl, $baseurl . "rtMedia/$prefix/", $old_guid);
960
/**
961
* For Activity
962
*/
963
global $last_baseurl, $last_newurl;
964
$last_baseurl = $baseurl;
965
$last_newurl = $baseurl . "rtMedia/$prefix/";
966
- $this->search_and_replace($old_guid, $attachment['guid']);
967
- wp_update_post($attachment);
968
}
969
}
970
}
971
}
972
-
973
- function search_and_replace($old,$new){
974
global $wpdb;
975
- if (function_exists("bp_core_get_table_prefix"))
976
- $bp_prefix = bp_core_get_table_prefix();
977
else
978
- $bp_prefix = "";
979
- $sql = $wpdb->prepare("update {$bp_prefix}bp_activity set action=replace(action,%s,%s) ,content=replace(content,%s,%s), primary_link=replace(primary_link,%s,%s) where id > 0;",$old,$new,$old,$new,$old,$new);
980
- $wpdb->get_row($sql);
981
}
982
- function formatSeconds($secondsLeft) {
983
984
$minuteInSeconds = 60;
985
$hourInSeconds = $minuteInSeconds * 60;
986
$dayInSeconds = $hourInSeconds * 24;
987
988
- $days = floor($secondsLeft / $dayInSeconds);
989
$secondsLeft = $secondsLeft % $dayInSeconds;
990
991
- $hours = floor($secondsLeft / $hourInSeconds);
992
$secondsLeft = $secondsLeft % $hourInSeconds;
993
994
- $minutes = floor($secondsLeft / $minuteInSeconds);
995
996
$seconds = $secondsLeft % $minuteInSeconds;
997
998
- $timeComponents = array();
999
1000
- if ($days > 0) {
1001
- $timeComponents[] = $days . " day" . ($days > 1 ? "s" : "");
1002
}
1003
1004
- if ($hours > 0) {
1005
- $timeComponents[] = $hours . " hour" . ($hours > 1 ? "s" : "");
1006
}
1007
1008
- if ($minutes > 0) {
1009
- $timeComponents[] = $minutes . " minute" . ($minutes > 1 ? "s" : "");
1010
}
1011
1012
- if ($seconds > 0) {
1013
- $timeComponents[] = $seconds . " second" . ($seconds > 1 ? "s" : "");
1014
}
1015
- if (count($timeComponents) > 0) {
1016
- $formattedTimeRemaining = implode(", ", $timeComponents);
1017
- $formattedTimeRemaining = trim($formattedTimeRemaining);
1018
} else {
1019
$formattedTimeRemaining = "No time remaining.";
1020
}
@@ -1022,10 +1017,10 @@ class RTMediaMigration {
1022
return $formattedTimeRemaining;
1023
}
1024
1025
- function insert_comment($media_id, $data, $exclude, $parent_commnet_id = 0) {
1026
- foreach ($data as $cmnt) {
1027
$comment_id = 0;
1028
- if (!key_exists(strval($cmnt->id), $exclude)) {
1029
$commentdata = array(
1030
"comment_date" => $cmnt->date_recorded,
1031
"comment_parent" => $parent_commnet_id,
@@ -1035,17 +1030,17 @@ class RTMediaMigration {
1035
'comment_post_ID' => $media_id,
1036
'comment_author' => $cmnt->display_name,
1037
'comment_author_url' => '',
1038
- 'comment_author_IP' => '');
1039
- $comment_id = wp_insert_comment($commentdata);
1040
- $exclude[strval($cmnt->id)] = $comment_id;
1041
} else {
1042
- $comment_id = $exclude[strval($cmnt->id)];
1043
}
1044
1045
- update_post_meta($media_id, "rtmedia_imported_activity", $exclude);
1046
1047
- if (is_array($cmnt->children)) {
1048
- $this->insert_comment($media_id, $cmnt->children, $exclude, $comment_id);
1049
}
1050
}
1051
}
9
10
public $bmp_table = "";
11
12
+ function __construct () {
13
global $wpdb;
14
$this->bmp_table = $wpdb->prefix . "rt_rtm_media";
15
+
16
+ add_action ( 'admin_menu', array( $this, 'menu' ) );
17
+ add_action ( 'wp_ajax_bp_media_rt_db_migration', array( $this, "migrate_to_new_db" ) );
18
+
19
+ if ( isset ( $_REQUEST[ "page" ] ) && $_REQUEST[ "page" ] == "rtmedia-migration" && isset ( $_REQUEST[ "hide" ] ) && $_REQUEST[ "hide" ] == "true" ) {
20
+ $this->hide_migration_notice ();
21
+ wp_safe_redirect ( $_SERVER[ "HTTP_REFERER" ] );
22
}
23
+ if ( get_site_option ( "rt_migration_hide_notice" ) !== false )
24
return true;
25
+
26
+ if ( isset ( $_REQUEST[ "force" ] ) && $_REQUEST[ "force" ] === "true" )
27
$pending = false;
28
else
29
+ $pending = get_site_option ( "rtMigration-pending-count" );
30
+ $total = $this->get_total_count ();
31
+ $done = $this->get_done_count ();
32
+ if ( $pending === false ) {
33
+ $total = $this->get_total_count ();
34
+ $done = $this->get_done_count ();
35
$pending = $total - $done;
36
+ if ( $pending < 0 )
37
$pending = 0;
38
+ update_site_option ( "rtMigration-pending-count", $pending );
39
}
40
+ if ( $pending > 0 ) {
41
+ if ( ! (isset ( $_REQUEST[ "page" ] ) && $_REQUEST[ "page" ] == "rtmedia-migration") )
42
+ add_action ( 'admin_notices', array( &$this, 'add_migration_notice' ) );
43
}
44
}
45
+
46
+ function hide_migration_notice () {
47
+ update_site_option ( "rt_migration_hide_notice", true );
48
}
49
+
50
+ function migrate_image_size_fix () {
51
+ if ( get_site_option ( "rt_image_size_migration_fix", "" ) == "" ) {
52
global $wpdb;
53
+ $sql = $wpdb->prepare ( "update $wpdb->postmeta set meta_value=replace(meta_value ,%s,%s) where meta_key = '_wp_attachment_metadata';", "bp_media", "rt_media" );
54
+ $wpdb->get_row ( $sql );
55
+ update_option ( "rt_image_size_migration_fix", "fix" );
56
}
57
}
58
59
+ function add_migration_notice () {
60
+ if ( current_user_can ( 'manage_options' ) )
61
+ $this->create_notice ( "<p><strong>rtMedia</strong> : Please Migrate your Database <a href='" . admin_url ( "admin.php?page=rtmedia-migration&force=true" ) . "'>Click Here</a>. <a href='" . admin_url ( "admin.php?page=rtmedia-migration&hide=true" ) . "' style='float:right'>" . __ ( "Hide" ) . "</a> </p>" );
62
}
63
64
+ function create_notice ( $message, $type = "error" ) {
65
echo '<div class="' . $type . '">' . $message . '</div>';
66
}
67
68
+ static function table_exists ( $table ) {
69
global $wpdb;
70
71
+ if ( $wpdb->query ( "SHOW TABLES LIKE '" . $table . "'" ) == 1 ) {
72
return true;
73
}
74
75
return false;
76
}
77
78
+ function menu () {
79
+ add_submenu_page ( 'rtmedia-settings', __ ( 'Migration', 'buddypress-media' ), __ ( 'Migration', 'buddypress-media' ), 'manage_options', 'rtmedia-migration', array( $this, 'test' ) );
80
}
81
82
+ function get_total_count () {
83
global $wpdb;
84
+ if ( function_exists ( "bp_core_get_table_prefix" ) )
85
+ $bp_prefix = bp_core_get_table_prefix ();
86
else
87
$bp_prefix = "";
88
$sql_album_usercount = "select count(*) FROM $wpdb->usermeta where meta_key ='bp-media-default-album' ";
89
90
+ $_SESSION[ "migration_user_album" ] = $wpdb->get_var ( $sql_album_usercount );
91
+ $count = intval ( $_SESSION[ "migration_user_album" ] );
92
93
+ if ( $this->table_exists ( $bp_prefix . "bp_groups_groupmeta" ) ) {
94
$sql_album_groupcount = "select count(*) FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='bp_media_default_album'";
95
+ $_SESSION[ "migration_group_album" ] = $wpdb->get_var ( $sql_album_groupcount );
96
+ $count += intval ( $_SESSION[ "migration_group_album" ] );
97
}
98
+ if ( $this->table_exists ( $bp_prefix . "bp_activity" ) ) {
99
//$sql_bpm_comment_count = "select count(*) from {$bp_prefix}bp_activity where component='activity' and type='activity_comment' and is_spam <> 1 and ;";
100
+ $sql_bpm_comment_count = "SELECT
101
count(id)
102
FROM
103
{$bp_prefix}bp_activity
104
where
105
type = 'activity_comment'
106
+ and is_spam <>1
107
and item_id in (select distinct
108
a.meta_value
109
from
117
118
//echo $sql_bpm_comment_count;
119
120
+ $_SESSION[ "migration_activity" ] = $wpdb->get_var ( $sql_bpm_comment_count );
121
+ $count +=intval ( $_SESSION[ "migration_activity" ] );
122
}
123
124
$sql = "select count(*)
137
and a.meta_key = 'bp-media-key'";
138
139
140
+ $_SESSION[ "migration_media" ] = $wpdb->get_var ( $sql );
141
+ $count += intval ( $_SESSION[ "migration_media" ] );
142
+ // var_dump($_SESSION);
143
return $count;
144
}
145
146
+ function get_last_imported () {
147
+ $album = get_site_option ( "rtmedia-global-albums" );
148
+ $album_id = $album[ 0 ];
149
150
global $wpdb;
151
$sql = "select a.post_ID
155
where
156
a.meta_key = 'bp-media-key' and (NOT p.ID IS NULL) and a.post_id not in (select media_id
157
from {$this->bmp_table} where blog_id = %d and media_id <> %d ) order by a.post_ID";
158
+ $sql = $wpdb->prepare ( $sql, get_current_blog_id (), $album_id );
159
+ $row = $wpdb->get_row ( $sql );
160
+ if ( $row ) {
161
return $row->post_ID;
162
} else {
163
return false;
164
}
165
}
166
167
+ function get_done_count ( $flag = false ) {
168
global $wpdb;
169
$sql = "select count(*)
170
from {$this->bmp_table} where blog_id = %d and media_id in (select a.post_id
182
a.post_id > 0 and (NOT p.ID IS NULL)
183
and a.meta_key = 'bp-media-key')";
184
185
+ $media_count = $wpdb->get_var ( $wpdb->prepare ( $sql, get_current_blog_id () ) );
186
+ if ( $flag )
187
return $media_count - 1;
188
+ $state = intval ( get_site_option ( "rtmedia-migration", "0" ) );
189
+ if ( $state == 5 ) {
190
+ $album_count = intval ( $_SESSION[ "migration_user_album" ] );
191
+ $album_count += (isset ( $_SESSION[ "migration_group_album" ] )) ? intval ( $_SESSION[ "migration_group_album" ] ) : 0;
192
} else {
193
+ if ( $state > 0 ) {
194
+ if ( function_exists ( "bp_core_get_table_prefix" ) )
195
+ $bp_prefix = bp_core_get_table_prefix ();
196
else
197
$bp_prefix = "";
198
$pending_count = "select count(*) from $wpdb->posts where post_type='bp_media_album' and ( ID in (select meta_value FROM $wpdb->usermeta where meta_key ='bp-media-default-album') ";
199
+ if ( $this->table_exists ( $bp_prefix . "bp_groups_groupmeta" ) ) {
200
$pending_count .= " or ID in (select meta_value FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='bp_media_default_album')";
201
}
202
$pending_count .= ")";
203
+ $pending_count = $wpdb->get_var ( $pending_count );
204
+
205
+ $album_count = intval ( $_SESSION[ "migration_user_album" ] );
206
+ $album_count += (isset ( $_SESSION[ "migration_group_album" ] )) ? intval ( $_SESSION[ "migration_group_album" ] ) : 0;
207
+ $album_count = $album_count - intval ( $pending_count );
208
+ } else {
209
$album_count = 0;
210
}
211
}
212
+ if ( intval ( $_SESSION[ "migration_media" ] ) == intval ( $media_count ) ) {
213
+ $comment_sql = $_SESSION[ "migration_activity" ];
214
} else {
215
+ $comment_sql = $wpdb->get_var ( "select count(*)
216
+ from $wpdb->comments a
217
where a.comment_post_ID in (select b.media_id from $this->bmp_table b left join
218
+ {$wpdb->posts} p ON (b.media_id = p.ID) where (NOT p.ID IS NULL) ) and a.comment_agent=''" );
219
}
220
// echo $media_count . "--" . $album_count . "--" . $comment_sql;
221
return $media_count + $album_count + $comment_sql;
222
}
223
224
+ function return_migration () {
225
+ $total = $this->get_total_count ();
226
+ $done = $this->get_done_count ();
227
$pending = $total - $done;
228
+ if ( $pending < 0 ) {
229
$pending = 0;
230
$done = $total;
231
}
232
+ if ( $done > $total ) {
233
$done = $total;
234
}
235
+ if ( $done == $total ) {
236
+ global $wp_rewrite;
237
//Call flush_rules() as a method of the $wp_rewrite object
238
+ $wp_rewrite->flush_rules ( true );
239
}
240
+ update_site_option ( "rtMigration-pending-count", $pending );
241
+ $pending_time = $this->formatSeconds ( $pending );
242
243
+ echo json_encode ( array( "status" => true, "done" => $done, "total" => $total, "pending" => $pending_time ) );
244
+ die ();
245
}
246
247
+ function manage_album () {
248
+ $album = get_site_option ( "rtmedia-global-albums" );
249
+ $stage = intval ( get_site_option ( "rtmedia-migration", "0" ) );
250
+
251
+ $album_rt_id = $album[ 0 ];
252
253
$album_post_type = "rtmedia_album";
254
+
255
global $wpdb;
256
+
257
+ $album_id = $wpdb->get_var ( $wpdb->prepare ( "select media_id from $this->bmp_table where id = %d", $album_rt_id ) );
258
+
259
+ if ( function_exists ( "bp_core_get_table_prefix" ) )
260
+ $bp_prefix = bp_core_get_table_prefix ();
261
else
262
$bp_prefix = "";
263
264
+ if ( $stage < 1 ) {
265
+ global $wpdb;
266
+ if ( function_exists ( "bp_core_get_table_prefix" ) )
267
+ $bp_prefix = bp_core_get_table_prefix ();
268
+ else
269
+ $bp_prefix = "";
270
+ $sql = $wpdb->prepare ( "update {$bp_prefix}bp_activity set content=replace(content,%s,%s) where id > 0;", '<ul class="bp-media-list-media">', '<div class="rtmedia-activity-container"><ul class="rtmedia-list large-block-grid-3">' );
271
+ $wpdb->get_row ( $sql );
272
+ $sql = $wpdb->prepare ( "update {$bp_prefix}bp_activity set content=replace(content,%s,%s) where id > 0;", '</ul>', '</ul></div>' );
273
+ $wpdb->get_row ( $sql );
274
+
275
+
276
$sql_group = "update $wpdb->posts set post_parent='{$album_id}' where post_parent in (select meta_value FROM $wpdb->usermeta where meta_key ='bp-media-default-album') ";
277
+ if ( $this->table_exists ( $bp_prefix . "bp_groups_groupmeta" ) ) {
278
$sql_group .= " or post_parent in (select meta_value FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='bp_media_default_album')";
279
}
280
+ $wpdb->query ( $sql_group );
281
$stage = 1;
282
+ update_site_option ( "rtmedia-migration", $stage );
283
+ $this->return_migration ();
284
}
285
+ if ( $stage < 2 ) {
286
$sql_delete = "select * from $wpdb->posts where post_type='bp_media_album' and ID in (select meta_value FROM $wpdb->usermeta where meta_key ='bp-media-default-album') limit 10";
287
+ $results = $wpdb->get_results ( $sql_delete );
288
$delete_ids = "";
289
$sep = "";
290
+ foreach ( $results as $result ) {
291
+ $this->search_and_replace ( $result->guid, trailingslashit ( get_rtmedia_user_link ( $result->post_author ) ) . RTMEDIA_MEDIA_SLUG . "/" . $album_rt_id );
292
$delete_ids .= $sep . $result->ID;
293
$sep = ",";
294
}
295
+ if ( $delete_ids != "" )
296
+ $wpdb->query ( "delete from $wpdb->posts where ID in ({$delete_ids})" );
297
+ if ( count ( $results ) < 10 ) {
298
+ $stage = 2;
299
}
300
+ update_site_option ( "rtmedia-migration", $stage );
301
+ $this->return_migration ();
302
}
303
+ if ( $stage < 3 ) {
304
+ if ( $this->table_exists ( $bp_prefix . "bp_groups_groupmeta" ) ) {
305
$sql_delete = "select * from $wpdb->posts where post_type='bp_media_album' and ID in (select meta_value FROM {$bp_prefix}bp_groups_groupmeta where meta_key ='bp_media_default_album') limit 10";
306
+ $results = $wpdb->get_results ( $sql_delete );
307
$delete_ids = "";
308
$sep = "";
309
+ if ( $results ) {
310
+ foreach ( $results as $result ) {
311
+ $group_id = abs ( intval ( get_post_meta ( $result->ID, "bp-media-key", true ) ) );
312
+ $this->search_and_replace ( trailingslashit ( get_rtmedia_group_link ( $group_id ) ) . "albums/" . $result->ID, trailingslashit ( get_rtmedia_group_link ( $group_id ) ) . RTMEDIA_MEDIA_SLUG . "/" . $album_rt_id );
313
$delete_ids .= $sep . $result->ID;
314
$sep = ",";
315
}
316
+ if ( $delete_ids != "" )
317
+ $wpdb->query ( "delete from $wpdb->posts where ID in ({$delete_ids})" );
318
+ if ( count ( $results ) < 10 ) {
319
+ $stage = 3;
320
}
321
+ } else {
322
+ $stage = 3;
323
}
324
+ update_site_option ( "rtmedia-migration", $stage );
325
+ $this->return_migration ();
326
+ } else {
327
+ $stage = 3;
328
+ update_site_option ( "rtmedia-migration", $stage );
329
+ $this->return_migration ();
330
+ }
331
}
332
+
333
334
$sql = "update $wpdb->posts set post_type='{$album_post_type}' where post_type='bp_media_album'";
335
+ if ( $wpdb->query ( $sql ) !== false ) {
336
+ update_site_option ( "rtmedia-migration", "5" );
337
+ return true;
338
+ }
339
return false;
340
}
341
342
+ function test () {
343
+ if ( ! $this->table_exists ( $this->bmp_table ) ) {
344
+ $obj = new RTDBUpdate();
345
+ $obj->install_db_version = "0";
346
+ $obj->do_upgrade ( true );
347
}
348
global $rtmedia_error;
349
+ if ( isset ( $rtmedia_error ) && $rtmedia_error === true ) {
350
+ ?>
351
<div class="error"><p> Please Resolve create database error before migration.</p></div>
352
+ <?php
353
+ }
354
+
355
$prog = new rtProgress();
356
+ $total = $this->get_total_count ();
357
+ $done = $this->get_done_count ();
358
+ if ( $done >= $total ) {
359
$done = $total;
360
+ } else {
361
+ ?>
362
<div class="error"><p> Please Backup your <strong>DATABASE</strong> and <strong>UPLOAD</strong> folder before Migration.</p></div>
363
<?php }
364
?>
365
+
366
<div class="wrap">
367
+
368
<h2>rtMedia Migration</h2>
369
+ <h3><?php _e ( "It will migrate following things" ); ?> </h3>
370
+ User Albums : <?php echo $_SESSION[ "migration_user_album" ]; ?><br />
371
+ <?php if ( isset ( $_SESSION[ "migration_group_album" ] ) ) { ?>
372
+ Groups Albums : <?php echo $_SESSION[ "migration_group_album" ]; ?><br />
373
<?php } ?>
374
+ Media : <?php echo $_SESSION[ "migration_media" ]; ?><br />
375
+ <?php if ( isset ( $_SESSION[ "migration_activity" ] ) ) { ?>
376
+ Comments : <?php echo $_SESSION[ "migration_activity" ]; ?><br />
377
<?php } ?>
378
<hr />
379
380
<?php
381
+ echo '<span class="pending">' . $this->formatSeconds ( $total - $done ) . '</span><br />';
382
echo '<span class="finished">' . $done . '</span>/<span class="total">' . $total . '</span>';
383
+ echo '<img src="images/loading.gif" alt="syncing" id="rtMediaSyncing" style="display:none" />';
384
385
+ $temp = $prog->progress ( $done, $total );
386
+ $prog->progress_ui ( $temp, true );
387
?>
388
<script type="text/javascript">
389
+ jQuery(document).ready(function(e) {
390
+ if (db_total < 1)
391
+ jQuery("#submit").attr('disabled', "disabled");
392
})
393
function db_start_migration(db_done, db_total) {
394
+
395
+
396
if (db_done < db_total) {
397
jQuery("#rtMediaSyncing").show();
398
jQuery.ajax({
403
"done": db_done
404
},
405
success: function(sdata) {
406
+
407
+ try {
408
data = JSON.parse(sdata);
409
+ } catch (e) {
410
+ jQuery("#submit").attr('disabled', "");
411
}
412
if (data.status) {
413
done = parseInt(data.done);
427
jQuery("#rtMediaSyncing").hide();
428
}
429
},
430
+ error: function() {
431
+ alert("Error During Migration, Please Refresh Page then try again");
432
+ jQuery("#submit").removeAttr('disabled');
433
+ }
434
});
435
} else {
436
alert("Migration completed.");
437
jQuery("#rtMediaSyncing").hide();
438
}
439
}
440
+ var db_done = <?php echo $done; ?>;
441
+ var db_total = <?php echo $total; ?>;
442
jQuery(document).on('click', '#submit', function(e) {
443
e.preventDefault();
444
+
445
db_start_migration(db_done, db_total);
446
jQuery(this).attr('disabled', 'disabled');
447
});
448
</script>
449
<hr />
450
+ <?php if ( ! (isset ( $rtmedia_error ) && $rtmedia_error === true) ) { ?>
451
+ <input type="button" id="submit" value="start" class="button button-primary" />
452
<?php } ?>
453
454
</div>
455
<?php
456
}
457
458
+ function migrate_to_new_db ( $lastid = 0, $limit = 1 ) {
459
460
+ if ( ! isset ( $_SESSION[ "migration_media" ] ) )
461
+ $this->get_total_count ();
462
463
+ $state = intval ( get_site_option ( "rtmedia-migration" ) );
464
+ if ( $state < 5 ) {
465
+ if ( $this->manage_album () ) {
466
+ $this->migrate_encoding_options ();
467
+ $this->return_migration ();
468
}
469
}
470
471
+ if ( intval ( $_SESSION[ "migration_media" ] ) >= $this->get_done_count ( true ) ) {
472
473
+ if ( ! $lastid ) {
474
+ $lastid = $this->get_last_imported ();
475
+ if ( ! $lastid ) {
476
+ $this->return_migration ();
477
}
478
}
479
global $wpdb;
498
left join
499
{$wpdb->posts} p ON (a.post_id = p.ID)
500
where
501
+ a.post_id >= %d and (NOT p.ID is NULL)
502
and a.meta_key = 'bp-media-key'
503
order by a.post_id
504
limit %d";
505
506
507
+ $results = $wpdb->get_results ( $wpdb->prepare ( $sql, $lastid, $limit ) );
508
509
+ if ( function_exists ( "bp_core_get_table_prefix" ) )
510
+ $bp_prefix = bp_core_get_table_prefix ();
511
else
512
$bp_prefix = "";
513
+ if ( $results ) {
514
515
+ foreach ( $results as $result ) {
516
+ $this->migrate_single_media ( $result );
517
}
518
}
519
} else {
520
+ global $wp_rewrite;
521
//Call flush_rules() as a method of the $wp_rewrite object
522
+ $wp_rewrite->flush_rules ( true );
523
// echo json_encode(array("status" => false, "done" => $done, "total" => $this->get_total_count()));
524
// die();
525
}
526
+ $this->return_migration ();
527
}
528
529
+ function migrate_encoding_options () {
530
$encoding_mnigration_array = array(
531
'bp-media-encoding-api-key' => 'rtmedia-encoding-api-key',
532
'bp-media-encoding-usage-limit-mail' => 'rtmedia-encoding-usage-limit-mail',
536
'bp_media_ffmpeg_options' => 'rtmedia-ffmpeg-options',
537
'bp_media_kaltura_options' => 'rtmedia-kaltura-options',
538
);
539
+ foreach ( $encoding_mnigration_array as $key => $ma ) {
540
+ if ( ($value = get_site_option ( $key )) !== false ) {
541
+ update_site_option ( $ma, $value );
542
}
543
}
544
}
545
546
+ function migrate_single_media ( $result, $album = false ) {
547
+ $blog_id = get_current_blog_id ();
548
+ $old = $result;
549
+ if ( function_exists ( "bp_core_get_table_prefix" ) )
550
+ $bp_prefix = bp_core_get_table_prefix ();
551
else
552
$bp_prefix = "";
553
global $wpdb;
554
+
555
+ if ( $album !== false && ! (is_object ( $result )) ) {
556
+ $id = $wpdb->get_var ( $wpdb->prepare ( "select ID from $this->bmp_table where media_id = %d", $result ) );
557
+ if ( $id == NULL ) {
558
$sql = "select
559
a.post_id as 'post_id',
560
a.meta_value as 'privacy',
578
where
579
a.post_id = %d and (NOT p.ID IS NULL)
580
and a.meta_key = 'bp_media_privacy'";
581
+ $result = $wpdb->get_row ( $wpdb->prepare ( $sql, $result ) );
582
} else {
583
return $id;
584
}
585
}
586
+ if ( ! isset ( $result ) || ! isset ( $result->post_id ) ) {
587
return $old;
588
}
589
$media_id = $result->post_id;
590
591
+ if ( intval ( $result->context_id ) > 0 ) {
592
$media_context = "profile";
593
+ $prefix = "users/" . abs ( intval ( $result->context_id ) );
594
} else {
595
$media_context = "group";
596
+ $prefix = bp_get_groups_root_slug () . abs ( intval ( $result->context_id ) );
597
}
598
599
600
+<