rtMedia for WordPress, BuddyPress and bbPress - Version 3.0.4

Version Description

  • Handle delete media and activity
  • Add like button count
  • Hide buddypress tab if not active
  • Fixed https problem in plugin update
  • Fixed image size issue
  • Fixed privacy issue
  • Other minor bug fixes
Download this release

Release Info

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

Code changes from version 3.0.3 to 3.0.4

Files changed (273) hide show
  1. app/admin/RTMediaAdmin.php +9 -8
  2. app/assets/css/main.css +1 -1
  3. app/assets/sass/main.scss +23 -1
  4. app/helper/rtPluginUpdateChecker.php +3 -0
  5. app/importers/RTMediaMigration.php +33 -6
  6. app/main/RTMedia.php +18 -6
  7. app/main/controllers/activity/RTMediaActivity.php +1 -1
  8. app/main/controllers/media/RTMediaFeatured.php +1 -1
  9. app/main/controllers/media/RTMediaLike.php +10 -3
  10. app/main/controllers/media/RTMediaMedia.php +18 -4
  11. app/main/controllers/privacy/RTMediaPrivacy.php +251 -254
  12. app/main/controllers/template/RTMediaNav.php +2 -2
  13. app/main/controllers/template/rt-template-functions.php +5 -5
  14. app/schema/rtm_media.schema +2 -2
  15. app/schema/rtm_media_meta.schema +1 -1
  16. index.php +1 -1
  17. readme.txt +12 -3
  18. templates/media/media-gallery-item.php +1 -1
  19. templates/media/media-single.php +1 -1
  20. trunk/CONTRIBUTING.md +19 -0
  21. trunk/app/admin/RTMediaAdmin.php +732 -0
  22. trunk/app/admin/RTMediaFormHandler.php +482 -0
  23. trunk/app/assets/css/admin.css +646 -0
  24. trunk/app/assets/css/bootstrap-switch.css +184 -0
  25. trunk/app/assets/css/font-awesome.min.css +24 -0
  26. trunk/app/assets/css/grid-foundation.css +217 -0
  27. trunk/app/assets/css/image-edit.css +701 -0
  28. trunk/app/assets/css/jquery.plupload.queue.css +177 -0
  29. trunk/app/assets/css/jquery.powertip.min.css +1 -0
  30. trunk/app/assets/css/jquery.sliderTabs.min.css +1 -0
  31. trunk/app/assets/css/main.css +1 -0
  32. trunk/app/assets/css/style.css +51 -0
  33. trunk/app/assets/font/FontAwesome.otf +0 -0
  34. trunk/app/assets/font/fontawesome-webfont.eot +0 -0
  35. trunk/app/assets/font/fontawesome-webfont.svg +339 -0
  36. trunk/app/assets/font/fontawesome-webfont.ttf +0 -0
  37. trunk/app/assets/font/fontawesome-webfont.woff +0 -0
  38. trunk/app/assets/img/Popup-title-bg.png +0 -0
  39. trunk/app/assets/img/admin-menu.png +0 -0
  40. trunk/app/assets/img/audio_thumb.png +0 -0
  41. trunk/app/assets/img/backgrounds.gif +0 -0
  42. trunk/app/assets/img/boxspinner.gif +0 -0
  43. trunk/app/assets/img/bp-media-modal.png +0 -0
  44. trunk/app/assets/img/bp_media_social.png +0 -0
  45. trunk/app/assets/img/bpm-contest-banner.jpg +0 -0
  46. trunk/app/assets/img/bpm-icon-16.png +0 -0
  47. trunk/app/assets/img/bpm-icon-32.png +0 -0
  48. trunk/app/assets/img/buttons-disabled.png +0 -0
  49. trunk/app/assets/img/buttons.png +0 -0
  50. trunk/app/assets/img/close.png +0 -0
  51. trunk/app/assets/img/coming-soon.png +0 -0
  52. trunk/app/assets/img/delete.gif +0 -0
  53. trunk/app/assets/img/donate.gif +0 -0
  54. trunk/app/assets/img/donate.png +0 -0
  55. trunk/app/assets/img/done.gif +0 -0
  56. trunk/app/assets/img/drag-drop-bg.png +0 -0
  57. trunk/app/assets/img/error.gif +0 -0
  58. trunk/app/assets/img/image_thumb.png +0 -0
  59. trunk/app/assets/img/indicator.png +0 -0
  60. trunk/app/assets/img/indicatorActive.png +0 -0
  61. trunk/app/assets/img/leftArrow.png +0 -0
  62. trunk/app/assets/img/leftPanelArrow.png +0 -0
  63. trunk/app/assets/img/loader.gif +0 -0
  64. trunk/app/assets/img/logo_medibp_32.png +0 -0
  65. trunk/app/assets/img/mask-square.png +0 -0
  66. trunk/app/assets/img/mask.png +0 -0
  67. trunk/app/assets/img/paypal-donate-button.png +0 -0
  68. trunk/app/assets/img/private.png +0 -0
  69. trunk/app/assets/img/rightArrow.png +0 -0
  70. trunk/app/assets/img/rightPanelArrow.png +0 -0
  71. trunk/app/assets/img/rtCamp-bullet.png +0 -0
  72. trunk/app/assets/img/rtcamp-logo.png +0 -0
  73. trunk/app/assets/img/tab-icon.png +0 -0
  74. trunk/app/assets/img/throbber.gif +0 -0
  75. trunk/app/assets/img/thumb_default.png +0 -0
  76. trunk/app/assets/img/transp50.png +0 -0
  77. trunk/app/assets/img/video_thumb.png +0 -0
  78. trunk/app/assets/img/wpmini-grey.png +0 -0
  79. trunk/app/assets/js/admin.js +542 -0
  80. trunk/app/assets/js/bootstrap-switch.js +255 -0
  81. trunk/app/assets/js/bp-media-activity-uploader.js +222 -0
  82. trunk/app/assets/js/bp-media-uploader.js +119 -0
  83. trunk/app/assets/js/jquery.observehashchange.pack.js +20 -0
  84. trunk/app/assets/js/jquery.powertip.min.js +8 -0
  85. trunk/app/assets/js/jquery.sliderTabs.min.js +1 -0
  86. trunk/app/assets/js/main.js +829 -0
  87. trunk/app/assets/js/rtMedia.backbone.js +553 -0
  88. trunk/app/assets/js/rtMedia.js +132 -0
  89. trunk/app/assets/sass/config.rb +25 -0
  90. trunk/app/assets/sass/main.scss +285 -0
  91. trunk/app/helper/BPMediaBranding.php +23 -0
  92. trunk/app/helper/BPMediaLog.php +86 -0
  93. trunk/app/helper/RTMediaAddon.php +210 -0
  94. trunk/app/helper/RTMediaAdminWidget.php +36 -0
  95. trunk/app/helper/RTMediaCommentModel.php +45 -0
  96. trunk/app/helper/RTMediaFeed.php +62 -0
  97. trunk/app/helper/RTMediaModel.php +211 -0
  98. trunk/app/helper/RTMediaSettings.php +245 -0
  99. trunk/app/helper/RTMediaSupport.php +263 -0
  100. trunk/app/helper/RTMediaUploadException.php +66 -0
  101. trunk/app/helper/db/RTDBModel.php +168 -0
  102. trunk/app/helper/db/RTDBUpdate.php +86 -0
  103. trunk/app/helper/db/rt_plugin_info.php +57 -0
  104. trunk/app/helper/rtDimensions.php +122 -0
  105. trunk/app/helper/rtForm.php +648 -0
  106. trunk/app/helper/rtFormInvalidArgumentsException.php +29 -0
  107. trunk/app/helper/rtPluginInfo.php +124 -0
  108. trunk/app/helper/rtPluginUpdate.php +130 -0
  109. trunk/app/helper/rtPluginUpdateChecker.php +669 -0
  110. trunk/app/helper/rtProgress.php +42 -0
  111. trunk/app/importers/BPMediaAlbumimporter.php +426 -0
  112. trunk/app/importers/BPMediaBPActivityPlusImporter.php +25 -0
  113. trunk/app/importers/BPMediaImporter.php +156 -0
  114. trunk/app/importers/RTMediaMigration.php +1055 -0
  115. trunk/app/main/RTMedia.php +751 -0
  116. trunk/app/main/contexts/RTMediaContext.php +103 -0
  117. trunk/app/main/controllers/activity/RTMediaActivity.php +118 -0
  118. trunk/app/main/controllers/activity/RTMediaBuddyPressActivity.php +133 -0
  119. trunk/app/main/controllers/media/RTMediaAlbum.php +506 -0
  120. trunk/app/main/controllers/media/RTMediaComment.php +80 -0
  121. trunk/app/main/controllers/media/RTMediaCoverArt.php +73 -0
  122. trunk/app/main/controllers/media/RTMediaFeatured.php +189 -0
  123. trunk/app/main/controllers/media/RTMediaLike.php +102 -0
  124. trunk/app/main/controllers/media/RTMediaMedia.php +488 -0
  125. trunk/app/main/controllers/media/RTMediaMeta.php +82 -0
  126. trunk/app/main/controllers/media/RTMediaUserInteraction.php +273 -0
  127. trunk/app/main/controllers/privacy/RTMediaFriends.php +49 -0
  128. trunk/app/main/controllers/privacy/RTMediaPrivacy.php +275 -0
  129. trunk/app/main/controllers/shortcodes/RTMediaGalleryShortcode.php +109 -0
  130. trunk/app/main/controllers/shortcodes/RTMediaUploadShortcode.php +66 -0
  131. trunk/app/main/controllers/template/RTMediaAJAX.php +41 -0
  132. trunk/app/main/controllers/template/RTMediaNav.php +320 -0
  133. trunk/app/main/controllers/template/RTMediaTemplate.php +486 -0
  134. trunk/app/main/controllers/template/RTMediaUploadTemplate.php +66 -0
  135. trunk/app/main/controllers/template/rt-template-functions.php +833 -0
  136. trunk/app/main/controllers/template/template.php +165 -0
  137. trunk/app/main/controllers/upload/RTMediaUpload.php +74 -0
  138. trunk/app/main/controllers/upload/RTMediaUploadEndpoint.php +82 -0
  139. trunk/app/main/controllers/upload/RTMediaUploadHelper.php +31 -0
  140. trunk/app/main/controllers/upload/RTMediaUploadModel.php +156 -0
  141. trunk/app/main/controllers/upload/RTMediaUploadView.php +106 -0
  142. trunk/app/main/controllers/upload/processors/RTMediaUploadFile.php +319 -0
  143. trunk/app/main/controllers/upload/processors/RTMediaUploadUrl.php +17 -0
  144. trunk/app/main/deprecated/RTMediaDeprecated.php +31 -0
  145. trunk/app/main/interactions/RTMediaInteraction.php +183 -0
  146. trunk/app/main/routers/RTMediaRouter.php +158 -0
  147. trunk/app/main/routers/query/RTMediaQuery.php +772 -0
  148. trunk/app/schema/rtm_media.schema +30 -0
  149. trunk/app/schema/rtm_media_meta.schema +7 -0
  150. trunk/app/services/RTMediaEncoding.php +526 -0
  151. trunk/config/index.php +6 -0
  152. trunk/index.php +114 -0
  153. trunk/languages/rtmedia-ar_AR.mo +0 -0
  154. trunk/languages/rtmedia-de_DE.mo +0 -0
  155. trunk/languages/rtmedia-es_ES.mo +0 -0
  156. trunk/languages/rtmedia-fa_IR.mo +0 -0
  157. trunk/languages/rtmedia-fr_FR.mo +0 -0
  158. trunk/languages/rtmedia-it_IT.mo +0 -0
  159. trunk/languages/rtmedia-ja_JA.mo +0 -0
  160. trunk/languages/rtmedia-nl_NL.mo +0 -0
  161. trunk/languages/rtmedia-pl_PL.mo +0 -0
  162. trunk/languages/rtmedia-pt_BR.mo +0 -0
  163. trunk/languages/rtmedia-ro_RO.mo +0 -0
  164. trunk/languages/rtmedia-sr_SR.mo +0 -0
  165. trunk/languages/rtmedia.mo +0 -0
  166. trunk/languages/rtmedia.po +1201 -0
  167. trunk/lib/getid3/extension.cache.dbm.php +211 -0
  168. trunk/lib/getid3/extension.cache.mysql.php +173 -0
  169. trunk/lib/getid3/getid3.lib.php +1317 -0
  170. trunk/lib/getid3/getid3.php +1744 -0
  171. trunk/lib/getid3/module.archive.gzip.php +280 -0
  172. trunk/lib/getid3/module.archive.rar.php +53 -0
  173. trunk/lib/getid3/module.archive.szip.php +96 -0
  174. trunk/lib/getid3/module.archive.tar.php +178 -0
  175. trunk/lib/getid3/module.archive.zip.php +424 -0
  176. trunk/lib/getid3/module.audio-video.asf.php +2021 -0
  177. trunk/lib/getid3/module.audio-video.bink.php +73 -0
  178. trunk/lib/getid3/module.audio-video.flv.php +731 -0
  179. trunk/lib/getid3/module.audio-video.matroska.php +1706 -0
  180. trunk/lib/getid3/module.audio-video.mpeg.php +299 -0
  181. trunk/lib/getid3/module.audio-video.nsv.php +226 -0
  182. trunk/lib/getid3/module.audio-video.quicktime.php +2134 -0
  183. trunk/lib/getid3/module.audio-video.real.php +530 -0
  184. trunk/lib/getid3/module.audio-video.riff.php +2409 -0
  185. trunk/lib/getid3/module.audio-video.swf.php +142 -0
  186. trunk/lib/getid3/module.audio.aa.php +59 -0
  187. trunk/lib/getid3/module.audio.aac.php +515 -0
  188. trunk/lib/getid3/module.audio.ac3.php +473 -0
  189. trunk/lib/getid3/module.audio.au.php +165 -0
  190. trunk/lib/getid3/module.audio.avr.php +127 -0
  191. trunk/lib/getid3/module.audio.bonk.php +230 -0
  192. trunk/lib/getid3/module.audio.dss.php +75 -0
  193. trunk/lib/getid3/module.audio.dts.php +246 -0
  194. trunk/lib/getid3/module.audio.flac.php +480 -0
  195. trunk/lib/getid3/module.audio.la.php +229 -0
  196. trunk/lib/getid3/module.audio.lpac.php +130 -0
  197. trunk/lib/getid3/module.audio.midi.php +526 -0
  198. trunk/lib/getid3/module.audio.mod.php +101 -0
  199. trunk/lib/getid3/module.audio.monkey.php +205 -0
  200. trunk/lib/getid3/module.audio.mp3.php +2011 -0
  201. trunk/lib/getid3/module.audio.mpc.php +509 -0
  202. trunk/lib/getid3/module.audio.ogg.php +705 -0
  203. trunk/lib/getid3/module.audio.optimfrog.php +429 -0
  204. trunk/lib/getid3/module.audio.rkau.php +94 -0
  205. trunk/lib/getid3/module.audio.shorten.php +183 -0
  206. trunk/lib/getid3/module.audio.tta.php +109 -0
  207. trunk/lib/getid3/module.audio.voc.php +207 -0
  208. trunk/lib/getid3/module.audio.vqf.php +162 -0
  209. trunk/lib/getid3/module.audio.wavpack.php +400 -0
  210. trunk/lib/getid3/module.graphic.bmp.php +690 -0
  211. trunk/lib/getid3/module.graphic.efax.php +53 -0
  212. trunk/lib/getid3/module.graphic.gif.php +184 -0
  213. trunk/lib/getid3/module.graphic.jpg.php +338 -0
  214. trunk/lib/getid3/module.graphic.pcd.php +134 -0
  215. trunk/lib/getid3/module.graphic.png.php +520 -0
  216. trunk/lib/getid3/module.graphic.svg.php +104 -0
  217. trunk/lib/getid3/module.graphic.tiff.php +227 -0
  218. trunk/lib/getid3/module.misc.cue.php +312 -0
  219. trunk/lib/getid3/module.misc.exe.php +61 -0
  220. trunk/lib/getid3/module.misc.iso.php +389 -0
  221. trunk/lib/getid3/module.misc.msoffice.php +40 -0
  222. trunk/lib/getid3/module.misc.par2.php +33 -0
  223. trunk/lib/getid3/module.misc.pdf.php +33 -0
  224. trunk/lib/getid3/module.tag.apetag.php +372 -0
  225. trunk/lib/getid3/module.tag.id3v1.php +362 -0
  226. trunk/lib/getid3/module.tag.id3v2.php +3327 -0
  227. trunk/lib/getid3/module.tag.lyrics3.php +297 -0
  228. trunk/lib/getid3/module.tag.xmp.php +766 -0
  229. trunk/lib/getid3/write.apetag.php +225 -0
  230. trunk/lib/getid3/write.id3v1.php +138 -0
  231. trunk/lib/getid3/write.id3v2.php +2050 -0
  232. trunk/lib/getid3/write.lyrics3.php +73 -0
  233. trunk/lib/getid3/write.metaflac.php +163 -0
  234. trunk/lib/getid3/write.php +615 -0
  235. trunk/lib/getid3/write.real.php +275 -0
  236. trunk/lib/getid3/write.vorbiscomment.php +121 -0
  237. trunk/lib/index.php +8 -0
  238. trunk/lib/magnific/magnific.css +396 -0
  239. trunk/lib/magnific/magnific.js +3 -0
  240. trunk/lib/media-element/background.png +0 -0
  241. trunk/lib/media-element/bigplay.png +0 -0
  242. trunk/lib/media-element/controls-ted.png +0 -0
  243. trunk/lib/media-element/controls-wmp-bg.png +0 -0
  244. trunk/lib/media-element/controls-wmp.png +0 -0
  245. trunk/lib/media-element/controls.png +0 -0
  246. trunk/lib/media-element/flashmediaelement.swf +0 -0
  247. trunk/lib/media-element/jquery.js +9300 -0
  248. trunk/lib/media-element/loading.gif +0 -0
  249. trunk/lib/media-element/mediaelement-and-player.js +4379 -0
  250. trunk/lib/media-element/mediaelement-and-player.min.js +153 -0
  251. trunk/lib/media-element/mediaelement.js +1573 -0
  252. trunk/lib/media-element/mediaelement.min.js +61 -0
  253. trunk/lib/media-element/mediaelementplayer.css +802 -0
  254. trunk/lib/media-element/mediaelementplayer.js +2804 -0
  255. trunk/lib/media-element/mediaelementplayer.min.css +1 -0
  256. trunk/lib/media-element/mediaelementplayer.min.js +90 -0
  257. trunk/lib/media-element/mejs-skins.css +283 -0
  258. trunk/lib/media-element/silverlightmediaelement.xap +0 -0
  259. trunk/lib/simple-html-dom/simple_html_dom.php +1742 -0
  260. trunk/log/index.php +9 -0
  261. trunk/phpunit.xml +19 -0
  262. trunk/readme.txt +515 -0
  263. trunk/templates/main.php +168 -0
  264. trunk/templates/media/album-gallery-item.php +16 -0
  265. trunk/templates/media/album-gallery.php +65 -0
  266. trunk/templates/media/album-single-edit.php +77 -0
  267. trunk/templates/media/media-gallery-item.php +52 -0
  268. trunk/templates/media/media-gallery.php +47 -0
  269. trunk/templates/media/media-single-edit.php +37 -0
  270. trunk/templates/media/media-single.php +41 -0
  271. trunk/templates/upload/uploader.php +53 -0
  272. trunk/tests/MyPluginTest.php +16 -0
  273. trunk/tests/bootstrap.php +14 -0
app/admin/RTMediaAdmin.php CHANGED
@@ -441,14 +441,15 @@ if (!class_exists('RTMediaAdmin')) {
441
'name' => __('Privacy', 'rtmedia'),
442
'callback' => array('RTMediaFormHandler', 'privacy_content')
443
);
444
-
445
- $tabs[] = array(
446
- 'href' => '#rtmedia-bp',
447
- 'icon' => 'icon-group',
448
- 'title' => __('rtMedia BuddyPress', 'rtmedia'),
449
- 'name' => __('BuddyPress', 'rtmedia'),
450
- 'callback' => array('RTMediaFormHandler', 'buddypress_content') //change it to BuddyPress Content
451
- );
452
453
$tabs = apply_filters('rtmedia_add_settings_sub_tabs', $tabs, $tab);
454
$tabs_html .= '<ul>';
441
'name' => __('Privacy', 'rtmedia'),
442
'callback' => array('RTMediaFormHandler', 'privacy_content')
443
);
444
+ if(class_exists("BuddyPress")){
445
+ $tabs[] = array(
446
+ 'href' => '#rtmedia-bp',
447
+ 'icon' => 'icon-group',
448
+ 'title' => __('rtMedia BuddyPress', 'rtmedia'),
449
+ 'name' => __('BuddyPress', 'rtmedia'),
450
+ 'callback' => array('RTMediaFormHandler', 'buddypress_content') //change it to BuddyPress Content
451
+ );
452
+ }
453
454
$tabs = apply_filters('rtmedia_add_settings_sub_tabs', $tabs, $tab);
455
$tabs_html .= '<ul>';
app/assets/css/main.css CHANGED
@@ -1 +1 @@
1
- .rtmedia-container,.rtmedia-activity-container{padding:5px;margin:0;clear:left}.rtmedia-container html,.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,.rtmedia-container div,.rtmedia-activity-container div,.rtmedia-container span,.rtmedia-activity-container span,.rtmedia-container applet,.rtmedia-activity-container applet,.rtmedia-container object,.rtmedia-activity-container object,.rtmedia-container iframe,.rtmedia-activity-container iframe,.rtmedia-container h1,.rtmedia-activity-container h1,.rtmedia-container h2,.rtmedia-activity-container h2,.rtmedia-container h3,.rtmedia-activity-container h3,.rtmedia-container h4,.rtmedia-activity-container h4,.rtmedia-container h5,.rtmedia-activity-container h5,.rtmedia-container h6,.rtmedia-activity-container h6,.rtmedia-container p,.rtmedia-activity-container p,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,.rtmedia-container pre,.rtmedia-activity-container pre,.rtmedia-container a,.rtmedia-activity-container a,.rtmedia-container abbr,.rtmedia-activity-container abbr,.rtmedia-container acronym,.rtmedia-activity-container acronym,.rtmedia-container address,.rtmedia-activity-container address,.rtmedia-container big,.rtmedia-activity-container big,.rtmedia-container cite,.rtmedia-activity-container cite,.rtmedia-container code,.rtmedia-activity-container code,.rtmedia-container del,.rtmedia-activity-container del,.rtmedia-container dfn,.rtmedia-activity-container dfn,.rtmedia-container em,.rtmedia-activity-container em,.rtmedia-container img,.rtmedia-activity-container img,.rtmedia-container ins,.rtmedia-activity-container ins,.rtmedia-container kbd,.rtmedia-activity-container kbd,.rtmedia-container q,.rtmedia-activity-container q,.rtmedia-container s,.rtmedia-activity-container s,.rtmedia-container samp,.rtmedia-activity-container samp,.rtmedia-container small,.rtmedia-activity-container small,.rtmedia-container strike,.rtmedia-activity-container strike,.rtmedia-container strong,.rtmedia-activity-container strong,.rtmedia-container sub,.rtmedia-activity-container sub,.rtmedia-container sup,.rtmedia-activity-container sup,.rtmedia-container tt,.rtmedia-activity-container tt,.rtmedia-container var,.rtmedia-activity-container var,.rtmedia-container b,.rtmedia-activity-container b,.rtmedia-container u,.rtmedia-activity-container u,.rtmedia-container i,.rtmedia-activity-container i,.rtmedia-container center,.rtmedia-activity-container center,.rtmedia-container dl,.rtmedia-activity-container dl,.rtmedia-container dt,.rtmedia-activity-container dt,.rtmedia-container dd,.rtmedia-activity-container dd,.rtmedia-container ol,.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,.rtmedia-container li,.rtmedia-activity-container li,.rtmedia-container fieldset,.rtmedia-activity-container fieldset,.rtmedia-container form,.rtmedia-activity-container form,.rtmedia-container label,.rtmedia-activity-container label,.rtmedia-container legend,.rtmedia-activity-container legend,.rtmedia-container table,.rtmedia-activity-container table,.rtmedia-container caption,.rtmedia-activity-container caption,.rtmedia-container tbody,.rtmedia-activity-container tbody,.rtmedia-container tfoot,.rtmedia-activity-container tfoot,.rtmedia-container thead,.rtmedia-activity-container thead,.rtmedia-container tr,.rtmedia-activity-container tr,.rtmedia-container th,.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,.rtmedia-container article,.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,.rtmedia-container canvas,.rtmedia-activity-container canvas,.rtmedia-container details,.rtmedia-activity-container details,.rtmedia-container embed,.rtmedia-activity-container embed,.rtmedia-container figure,.rtmedia-activity-container figure,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,.rtmedia-container footer,.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,.rtmedia-container output,.rtmedia-activity-container output,.rtmedia-container ruby,.rtmedia-activity-container ruby,.rtmedia-container section,.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,.rtmedia-container time,.rtmedia-activity-container time,.rtmedia-container mark,.rtmedia-activity-container mark,.rtmedia-container audio,.rtmedia-activity-container audio,.rtmedia-container video,.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{line-height:1}.rtmedia-container ol,.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul{list-style:none}.rtmedia-container table,.rtmedia-activity-container table{border-collapse:collapse;border-spacing:0}.rtmedia-container caption,.rtmedia-activity-container caption,.rtmedia-container th,.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td{text-align:left;font-weight:normal;vertical-align:middle}.rtmedia-container q,.rtmedia-activity-container q,.rtmedia-container blockquote,.rtmedia-activity-container blockquote{quotes:none}.rtmedia-container q:before,.rtmedia-activity-container q:before,.rtmedia-container q:after,.rtmedia-activity-container q:after,.rtmedia-container blockquote:before,.rtmedia-activity-container blockquote:before,.rtmedia-container blockquote:after,.rtmedia-activity-container blockquote:after{content:"";content:none}.rtmedia-container a img,.rtmedia-activity-container a img{border:none}.rtmedia-container article,.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,.rtmedia-container details,.rtmedia-activity-container details,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,.rtmedia-container figure,.rtmedia-activity-container figure,.rtmedia-container footer,.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,.rtmedia-container section,.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary{display:block}.rtmedia-container *,.rtmedia-activity-container *,.rtmedia-container *:before,.rtmedia-activity-container *:before,.rtmedia-container *:after,.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,.rtmedia-container body,.rtmedia-activity-container body{font-size:100%}.rtmedia-container body,.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{cursor:pointer}.rtmedia-container a:focus,.rtmedia-activity-container a:focus{outline:none}.rtmedia-container img,.rtmedia-activity-container img,.rtmedia-container object,.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed{max-width:100%;height:auto}.rtmedia-container object,.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed{height:100%}.rtmedia-container img,.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,.rtmedia-container .map_canvas embed,.rtmedia-activity-container .map_canvas embed,.rtmedia-container .map_canvas object,.rtmedia-activity-container .map_canvas object{max-width:none !important}.rtmedia-container .left,.rtmedia-activity-container .left{float:left !important}.rtmedia-container .right,.rtmedia-activity-container .right{float:right !important}.rtmedia-container .text-left,.rtmedia-activity-container .text-left{text-align:left !important}.rtmedia-container .text-right,.rtmedia-activity-container .text-right{text-align:right !important}.rtmedia-container .text-center,.rtmedia-activity-container .text-center{text-align:center !important}.rtmedia-container .text-justify,.rtmedia-activity-container .text-justify{text-align:justify !important}.rtmedia-container .hide,.rtmedia-activity-container .hide{display:none}.rtmedia-container .antialiased,.rtmedia-activity-container .antialiased{-webkit-font-smoothing:antialiased}.rtmedia-container img,.rtmedia-activity-container img{display:inline-block;vertical-align:middle}.rtmedia-container textarea,.rtmedia-activity-container textarea{height:auto;min-height:50px}.rtmedia-container select,.rtmedia-activity-container select{width:100%}.rtmedia-container .row,.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,.rtmedia-container .row:after,.rtmedia-activity-container .row:after{content:" ";display:table}.rtmedia-container .row:after,.rtmedia-activity-container .row:after{clear:both}.rtmedia-container .row.collapse .column,.rtmedia-activity-container .row.collapse .column,.rtmedia-container .row.collapse .columns,.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{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,.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after{content:" ";display:table}.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after{clear:both}.rtmedia-container .row .row.collapse,.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,.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after{content:" ";display:table}.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after{clear:both}.rtmedia-container .column,.rtmedia-activity-container .column,.rtmedia-container .columns,.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,.rtmedia-container .columns,.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{position:relative;width:8.33333%}.rtmedia-container .small-2,.rtmedia-activity-container .small-2{position:relative;width:16.66667%}.rtmedia-container .small-3,.rtmedia-activity-container .small-3{position:relative;width:25%}.rtmedia-container .small-4,.rtmedia-activity-container .small-4{position:relative;width:33.33333%}.rtmedia-container .small-5,.rtmedia-activity-container .small-5{position:relative;width:41.66667%}.rtmedia-container .small-6,.rtmedia-activity-container .small-6{position:relative;width:50%}.rtmedia-container .small-7,.rtmedia-activity-container .small-7{position:relative;width:58.33333%}.rtmedia-container .small-8,.rtmedia-activity-container .small-8{position:relative;width:66.66667%}.rtmedia-container .small-9,.rtmedia-activity-container .small-9{position:relative;width:75%}.rtmedia-container .small-10,.rtmedia-activity-container .small-10{position:relative;width:83.33333%}.rtmedia-container .small-11,.rtmedia-activity-container .small-11{position:relative;width:91.66667%}.rtmedia-container .small-12,.rtmedia-activity-container .small-12{position:relative;width:100%}.rtmedia-container .small-offset-0,.rtmedia-activity-container .small-offset-0{position:relative;margin-left:0%}.rtmedia-container .small-offset-1,.rtmedia-activity-container .small-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .small-offset-2,.rtmedia-activity-container .small-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .small-offset-3,.rtmedia-activity-container .small-offset-3{position:relative;margin-left:25%}.rtmedia-container .small-offset-4,.rtmedia-activity-container .small-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .small-offset-5,.rtmedia-activity-container .small-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .small-offset-6,.rtmedia-activity-container .small-offset-6{position:relative;margin-left:50%}.rtmedia-container .small-offset-7,.rtmedia-activity-container .small-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .small-offset-8,.rtmedia-activity-container .small-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .small-offset-9,.rtmedia-activity-container .small-offset-9{position:relative;margin-left:75%}.rtmedia-container .small-offset-10,.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{float:right}.rtmedia-container [class*="column"]+[class*="column"].end,.rtmedia-activity-container [class*="column"]+[class*="column"].end{float:left}.rtmedia-container .column.small-centered,.rtmedia-activity-container .column.small-centered,.rtmedia-container .columns.small-centered,.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{position:relative;width:8.33333%}.rtmedia-container .large-2,.rtmedia-activity-container .large-2{position:relative;width:16.66667%}.rtmedia-container .large-3,.rtmedia-activity-container .large-3{position:relative;width:25%}.rtmedia-container .large-4,.rtmedia-activity-container .large-4{position:relative;width:33.33333%}.rtmedia-container .large-5,.rtmedia-activity-container .large-5{position:relative;width:41.66667%}.rtmedia-container .large-6,.rtmedia-activity-container .large-6{position:relative;width:50%}.rtmedia-container .large-7,.rtmedia-activity-container .large-7{position:relative;width:58.33333%}.rtmedia-container .large-8,.rtmedia-activity-container .large-8{position:relative;width:66.66667%}.rtmedia-container .large-9,.rtmedia-activity-container .large-9{position:relative;width:75%}.rtmedia-container .large-10,.rtmedia-activity-container .large-10{position:relative;width:83.33333%}.rtmedia-container .large-11,.rtmedia-activity-container .large-11{position:relative;width:91.66667%}.rtmedia-container .large-12,.rtmedia-activity-container .large-12{position:relative;width:100%}.rtmedia-container .row .large-offset-0,.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{position:relative;margin-left:8.33333%}.rtmedia-container .row .large-offset-2,.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{position:relative;margin-left:25%}.rtmedia-container .row .large-offset-4,.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{position:relative;margin-left:41.66667%}.rtmedia-container .row .large-offset-6,.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{position:relative;margin-left:58.33333%}.rtmedia-container .row .large-offset-8,.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{position:relative;margin-left:75%}.rtmedia-container .row .large-offset-10,.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{position:relative;margin-left:91.66667%}.rtmedia-container .push-1,.rtmedia-activity-container .push-1{position:relative;left:8.33333%;right:auto}.rtmedia-container .pull-1,.rtmedia-activity-container .pull-1{position:relative;right:8.33333%;left:auto}.rtmedia-container .push-2,.rtmedia-activity-container .push-2{position:relative;left:16.66667%;right:auto}.rtmedia-container .pull-2,.rtmedia-activity-container .pull-2{position:relative;right:16.66667%;left:auto}.rtmedia-container .push-3,.rtmedia-activity-container .push-3{position:relative;left:25%;right:auto}.rtmedia-container .pull-3,.rtmedia-activity-container .pull-3{position:relative;right:25%;left:auto}.rtmedia-container .push-4,.rtmedia-activity-container .push-4{position:relative;left:33.33333%;right:auto}.rtmedia-container .pull-4,.rtmedia-activity-container .pull-4{position:relative;right:33.33333%;left:auto}.rtmedia-container .push-5,.rtmedia-activity-container .push-5{position:relative;left:41.66667%;right:auto}.rtmedia-container .pull-5,.rtmedia-activity-container .pull-5{position:relative;right:41.66667%;left:auto}.rtmedia-container .push-6,.rtmedia-activity-container .push-6{position:relative;left:50%;right:auto}.rtmedia-container .pull-6,.rtmedia-activity-container .pull-6{position:relative;right:50%;left:auto}.rtmedia-container .push-7,.rtmedia-activity-container .push-7{position:relative;left:58.33333%;right:auto}.rtmedia-container .pull-7,.rtmedia-activity-container .pull-7{position:relative;right:58.33333%;left:auto}.rtmedia-container .push-8,.rtmedia-activity-container .push-8{position:relative;left:66.66667%;right:auto}.rtmedia-container .pull-8,.rtmedia-activity-container .pull-8{position:relative;right:66.66667%;left:auto}.rtmedia-container .push-9,.rtmedia-activity-container .push-9{position:relative;left:75%;right:auto}.rtmedia-container .pull-9,.rtmedia-activity-container .pull-9{position:relative;right:75%;left:auto}.rtmedia-container .push-10,.rtmedia-activity-container .push-10{position:relative;left:83.33333%;right:auto}.rtmedia-container .pull-10,.rtmedia-activity-container .pull-10{position:relative;right:83.33333%;left:auto}.rtmedia-container .push-11,.rtmedia-activity-container .push-11{position:relative;left:91.66667%;right:auto}.rtmedia-container .pull-11,.rtmedia-activity-container .pull-11{position:relative;right:91.66667%;left:auto}.rtmedia-container .column.large-centered,.rtmedia-activity-container .column.large-centered,.rtmedia-container .columns.large-centered,.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,.rtmedia-container .columns.large-uncentered,.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,.rtmedia-container .columns.large-uncentered.opposite,.rtmedia-activity-container .columns.large-uncentered.opposite{float:right !important}}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge{display:inherit !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down{display:none !important}.rtmedia-container table.show-for-small,.rtmedia-activity-container table.show-for-small,.rtmedia-container table.show-for-medium-down,.rtmedia-activity-container table.show-for-medium-down,.rtmedia-container table.show-for-large-down,.rtmedia-activity-container table.show-for-large-down,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-up,.rtmedia-activity-container table.hide-for-medium-up,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-up,.rtmedia-activity-container table.hide-for-large-up,.rtmedia-container table.hide-for-xlarge,.rtmedia-activity-container table.hide-for-xlarge{display:table}.rtmedia-container thead.show-for-small,.rtmedia-activity-container thead.show-for-small,.rtmedia-container thead.show-for-medium-down,.rtmedia-activity-container thead.show-for-medium-down,.rtmedia-container thead.show-for-large-down,.rtmedia-activity-container thead.show-for-large-down,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-up,.rtmedia-activity-container thead.hide-for-medium-up,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-up,.rtmedia-activity-container thead.hide-for-large-up,.rtmedia-container thead.hide-for-xlarge,.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,.rtmedia-container tbody.show-for-medium-down,.rtmedia-activity-container tbody.show-for-medium-down,.rtmedia-container tbody.show-for-large-down,.rtmedia-activity-container tbody.show-for-large-down,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-up,.rtmedia-activity-container tbody.hide-for-medium-up,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-up,.rtmedia-activity-container tbody.hide-for-large-up,.rtmedia-container tbody.hide-for-xlarge,.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,.rtmedia-container tr.show-for-medium-down,.rtmedia-activity-container tr.show-for-medium-down,.rtmedia-container tr.show-for-large-down,.rtmedia-activity-container tr.show-for-large-down,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-up,.rtmedia-activity-container tr.hide-for-medium-up,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-up,.rtmedia-activity-container tr.hide-for-large-up,.rtmedia-container tr.hide-for-xlarge,.rtmedia-activity-container tr.hide-for-xlarge{display:table-row !important}.rtmedia-container td.show-for-small,.rtmedia-activity-container td.show-for-small,.rtmedia-container td.show-for-medium-down,.rtmedia-activity-container td.show-for-medium-down,.rtmedia-container td.show-for-large-down,.rtmedia-activity-container td.show-for-large-down,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-up,.rtmedia-activity-container td.hide-for-medium-up,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-up,.rtmedia-activity-container td.hide-for-large-up,.rtmedia-container td.hide-for-xlarge,.rtmedia-activity-container td.hide-for-xlarge,.rtmedia-container th.show-for-small,.rtmedia-activity-container th.show-for-small,.rtmedia-container th.show-for-medium-down,.rtmedia-activity-container th.show-for-medium-down,.rtmedia-container th.show-for-large-down,.rtmedia-activity-container th.show-for-large-down,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-up,.rtmedia-activity-container th.hide-for-medium-up,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-up,.rtmedia-activity-container th.hide-for-large-up,.rtmedia-container th.hide-for-xlarge,.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,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up{display:inherit !important}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small{display:none !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small{display:inherit !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up{display:none !important}.rtmedia-container table.show-for-medium,.rtmedia-activity-container table.show-for-medium,.rtmedia-container table.show-for-medium-up,.rtmedia-activity-container table.show-for-medium-up,.rtmedia-container table.hide-for-small,.rtmedia-activity-container table.hide-for-small{display:table}.rtmedia-container thead.show-for-medium,.rtmedia-activity-container thead.show-for-medium,.rtmedia-container thead.show-for-medium-up,.rtmedia-activity-container thead.show-for-medium-up,.rtmedia-container thead.hide-for-small,.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,.rtmedia-container tbody.show-for-medium-up,.rtmedia-activity-container tbody.show-for-medium-up,.rtmedia-container tbody.hide-for-small,.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,.rtmedia-container tr.show-for-medium-up,.rtmedia-activity-container tr.show-for-medium-up,.rtmedia-container tr.hide-for-small,.rtmedia-activity-container tr.hide-for-small{display:table-row !important}.rtmedia-container td.show-for-medium,.rtmedia-activity-container td.show-for-medium,.rtmedia-container td.show-for-medium-up,.rtmedia-activity-container td.show-for-medium-up,.rtmedia-container td.hide-for-small,.rtmedia-activity-container td.hide-for-small,.rtmedia-container th.show-for-medium,.rtmedia-activity-container th.show-for-medium,.rtmedia-container th.show-for-medium-up,.rtmedia-activity-container th.show-for-medium-up,.rtmedia-container th.hide-for-small,.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,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down{display:inherit !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up{display:none !important}.rtmedia-container table.show-for-large,.rtmedia-activity-container table.show-for-large,.rtmedia-container table.show-for-large-up,.rtmedia-activity-container table.show-for-large-up,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-down,.rtmedia-activity-container table.hide-for-medium-down{display:table}.rtmedia-container thead.show-for-large,.rtmedia-activity-container thead.show-for-large,.rtmedia-container thead.show-for-large-up,.rtmedia-activity-container thead.show-for-large-up,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-down,.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,.rtmedia-container tbody.show-for-large-up,.rtmedia-activity-container tbody.show-for-large-up,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-down,.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,.rtmedia-container tr.show-for-large-up,.rtmedia-activity-container tr.show-for-large-up,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-down,.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,.rtmedia-container td.show-for-large-up,.rtmedia-activity-container td.show-for-large-up,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-down,.rtmedia-activity-container td.hide-for-medium-down,.rtmedia-container th.show-for-large,.rtmedia-activity-container th.show-for-large,.rtmedia-container th.show-for-large-up,.rtmedia-activity-container th.show-for-large-up,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-down,.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{display:inherit !important}.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down{display:none !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down{display:inherit !important}.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge{display:none !important}.rtmedia-container table.show-for-xlarge,.rtmedia-activity-container table.show-for-xlarge,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-down,.rtmedia-activity-container table.hide-for-large-down{display:table}.rtmedia-container thead.show-for-xlarge,.rtmedia-activity-container thead.show-for-xlarge,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-down,.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,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-down,.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,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-down,.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,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-down,.rtmedia-activity-container td.hide-for-large-down,.rtmedia-container th.show-for-xlarge,.rtmedia-activity-container th.show-for-xlarge,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-down,.rtmedia-activity-container th.hide-for-large-down{display:table-cell !important}}.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait{display:table}.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,.rtmedia-container thead.show-for-portrait,.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,.rtmedia-container tbody.show-for-portrait,.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,.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait{display:table-row !important}.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,.rtmedia-container th.show-for-portrait,.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,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.show-for-landscape,.rtmedia-activity-container table.show-for-landscape,.rtmedia-container table.hide-for-portrait,.rtmedia-activity-container table.hide-for-portrait{display:table}.rtmedia-container thead.show-for-landscape,.rtmedia-activity-container thead.show-for-landscape,.rtmedia-container thead.hide-for-portrait,.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,.rtmedia-container tbody.hide-for-portrait,.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,.rtmedia-container tr.hide-for-portrait,.rtmedia-activity-container tr.hide-for-portrait{display:table-row !important}.rtmedia-container td.show-for-landscape,.rtmedia-activity-container td.show-for-landscape,.rtmedia-container td.hide-for-portrait,.rtmedia-activity-container td.hide-for-portrait,.rtmedia-container th.show-for-landscape,.rtmedia-activity-container th.show-for-landscape,.rtmedia-container th.hide-for-portrait,.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,.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape{display:inherit !important}.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape{display:none !important}.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape{display:table}.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,.rtmedia-container thead.hide-for-landscape,.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,.rtmedia-container tbody.hide-for-landscape,.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,.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape{display:table-row !important}.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape{display:table-cell !important}}.rtmedia-container .show-for-touch,.rtmedia-activity-container .show-for-touch{display:none !important}.rtmedia-container .hide-for-touch,.rtmedia-activity-container .hide-for-touch{display:inherit !important}.rtmedia-container .touch .show-for-touch,.rtmedia-activity-container .touch .show-for-touch{display:inherit !important}.rtmedia-container .touch .hide-for-touch,.rtmedia-activity-container .touch .hide-for-touch{display:none !important}.rtmedia-container table.hide-for-touch,.rtmedia-activity-container table.hide-for-touch{display:table}.rtmedia-container .touch table.show-for-touch,.rtmedia-activity-container .touch table.show-for-touch{display:table}.rtmedia-container thead.hide-for-touch,.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{display:table-header-group !important}.rtmedia-container tbody.hide-for-touch,.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{display:table-row-group !important}.rtmedia-container tr.hide-for-touch,.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{display:table-row !important}.rtmedia-container td.hide-for-touch,.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{display:table-cell !important}.rtmedia-container th.hide-for-touch,.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{display:table-cell !important}@media only screen{.rtmedia-container [class*="block-grid-"],.rtmedia-activity-container [class*="block-grid-"]{display:block;padding:0;margin:0 -0.625em;*zoom:1}.rtmedia-container [class*="block-grid-"]:before,.rtmedia-activity-container [class*="block-grid-"]:before,.rtmedia-container [class*="block-grid-"]:after,.rtmedia-activity-container [class*="block-grid-"]:after{content:" ";display:table}.rtmedia-container [class*="block-grid-"]:after,.rtmedia-activity-container [class*="block-grid-"]:after{clear:both}.rtmedia-container [class*="block-grid-"]>li,.rtmedia-activity-container [class*="block-grid-"]>li{display:inline;height:auto;float:left;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-1>li,.rtmedia-activity-container .small-block-grid-1>li{width:100%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-1>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-1>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-1>li:nth-of-type(1n+1),.rtmedia-activity-container .small-block-grid-1>li:nth-of-type(1n+1){clear:both}.rtmedia-container .small-block-grid-2>li,.rtmedia-activity-container .small-block-grid-2>li{width:50%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-2>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-2>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-2>li:nth-of-type(2n+1),.rtmedia-activity-container .small-block-grid-2>li:nth-of-type(2n+1){clear:both}.rtmedia-container .small-block-grid-3>li,.rtmedia-activity-container .small-block-grid-3>li{width:33.33333%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-3>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-3>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-3>li:nth-of-type(3n+1),.rtmedia-activity-container .small-block-grid-3>li:nth-of-type(3n+1){clear:both}.rtmedia-container .small-block-grid-4>li,.rtmedia-activity-container .small-block-grid-4>li{width:25%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-4>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-4>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-4>li:nth-of-type(4n+1),.rtmedia-activity-container .small-block-grid-4>li:nth-of-type(4n+1){clear:both}.rtmedia-container .small-block-grid-5>li,.rtmedia-activity-container .small-block-grid-5>li{width:20%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-5>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-5>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-5>li:nth-of-type(5n+1),.rtmedia-activity-container .small-block-grid-5>li:nth-of-type(5n+1){clear:both}.rtmedia-container .small-block-grid-6>li,.rtmedia-activity-container .small-block-grid-6>li{width:16.66667%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-6>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-6>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-6>li:nth-of-type(6n+1),.rtmedia-activity-container .small-block-grid-6>li:nth-of-type(6n+1){clear:both}.rtmedia-container .small-block-grid-7>li,.rtmedia-activity-container .small-block-grid-7>li{width:14.28571%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-7>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-7>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-7>li:nth-of-type(7n+1),.rtmedia-activity-container .small-block-grid-7>li:nth-of-type(7n+1){clear:both}.rtmedia-container .small-block-grid-8>li,.rtmedia-activity-container .small-block-grid-8>li{width:12.5%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-8>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-8>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-8>li:nth-of-type(8n+1),.rtmedia-activity-container .small-block-grid-8>li:nth-of-type(8n+1){clear:both}.rtmedia-container .small-block-grid-9>li,.rtmedia-activity-container .small-block-grid-9>li{width:11.11111%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-9>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-9>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-9>li:nth-of-type(9n+1),.rtmedia-activity-container .small-block-grid-9>li:nth-of-type(9n+1){clear:both}.rtmedia-container .small-block-grid-10>li,.rtmedia-activity-container .small-block-grid-10>li{width:10%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-10>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-10>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-10>li:nth-of-type(10n+1),.rtmedia-activity-container .small-block-grid-10>li:nth-of-type(10n+1){clear:both}.rtmedia-container .small-block-grid-11>li,.rtmedia-activity-container .small-block-grid-11>li{width:9.09091%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-11>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-11>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-11>li:nth-of-type(11n+1),.rtmedia-activity-container .small-block-grid-11>li:nth-of-type(11n+1){clear:both}.rtmedia-container .small-block-grid-12>li,.rtmedia-activity-container .small-block-grid-12>li{width:8.33333%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-12>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-12>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-12>li:nth-of-type(12n+1),.rtmedia-activity-container .small-block-grid-12>li:nth-of-type(12n+1){clear:both}}@media only screen and (min-width: 768px){.rtmedia-container .small-block-grid-1>li:nth-of-type(1n+1),.rtmedia-activity-container .small-block-grid-1>li:nth-of-type(1n+1){clear:none}.rtmedia-container .small-block-grid-2>li:nth-of-type(2n+1),.rtmedia-activity-container .small-block-grid-2>li:nth-of-type(2n+1){clear:none}.rtmedia-container .small-block-grid-3>li:nth-of-type(3n+1),.rtmedia-activity-container .small-block-grid-3>li:nth-of-type(3n+1){clear:none}.rtmedia-container .small-block-grid-4>li:nth-of-type(4n+1),.rtmedia-activity-container .small-block-grid-4>li:nth-of-type(4n+1){clear:none}.rtmedia-container .small-block-grid-5>li:nth-of-type(5n+1),.rtmedia-activity-container .small-block-grid-5>li:nth-of-type(5n+1){clear:none}.rtmedia-container .small-block-grid-6>li:nth-of-type(6n+1),.rtmedia-activity-container .small-block-grid-6>li:nth-of-type(6n+1){clear:none}.rtmedia-container .small-block-grid-7>li:nth-of-type(7n+1),.rtmedia-activity-container .small-block-grid-7>li:nth-of-type(7n+1){clear:none}.rtmedia-container .small-block-grid-8>li:nth-of-type(8n+1),.rtmedia-activity-container .small-block-grid-8>li:nth-of-type(8n+1){clear:none}.rtmedia-container .small-block-grid-9>li:nth-of-type(9n+1),.rtmedia-activity-container .small-block-grid-9>li:nth-of-type(9n+1){clear:none}.rtmedia-container .small-block-grid-10>li:nth-of-type(10n+1),.rtmedia-activity-container .small-block-grid-10>li:nth-of-type(10n+1){clear:none}.rtmedia-container .small-block-grid-11>li:nth-of-type(11n+1),.rtmedia-activity-container .small-block-grid-11>li:nth-of-type(11n+1){clear:none}.rtmedia-container .small-block-grid-12>li:nth-of-type(12n+1),.rtmedia-activity-container .small-block-grid-12>li:nth-of-type(12n+1){clear:none}.rtmedia-container .large-block-grid-1>li,.rtmedia-activity-container .large-block-grid-1>li{width:100%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-1>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-1>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-1>li:nth-of-type(1n+1),.rtmedia-activity-container .large-block-grid-1>li:nth-of-type(1n+1){clear:both}.rtmedia-container .large-block-grid-2>li,.rtmedia-activity-container .large-block-grid-2>li{width:50%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-2>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-2>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-2>li:nth-of-type(2n+1),.rtmedia-activity-container .large-block-grid-2>li:nth-of-type(2n+1){clear:both}.rtmedia-container .large-block-grid-3>li,.rtmedia-activity-container .large-block-grid-3>li{width:33.33333%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-3>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-3>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-3>li:nth-of-type(3n+1),.rtmedia-activity-container .large-block-grid-3>li:nth-of-type(3n+1){clear:both}.rtmedia-container .large-block-grid-4>li,.rtmedia-activity-container .large-block-grid-4>li{width:25%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-4>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-4>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-4>li:nth-of-type(4n+1),.rtmedia-activity-container .large-block-grid-4>li:nth-of-type(4n+1){clear:both}.rtmedia-container .large-block-grid-5>li,.rtmedia-activity-container .large-block-grid-5>li{width:20%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-5>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-5>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-5>li:nth-of-type(5n+1),.rtmedia-activity-container .large-block-grid-5>li:nth-of-type(5n+1){clear:both}.rtmedia-container .large-block-grid-6>li,.rtmedia-activity-container .large-block-grid-6>li{width:16.66667%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-6>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-6>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-6>li:nth-of-type(6n+1),.rtmedia-activity-container .large-block-grid-6>li:nth-of-type(6n+1){clear:both}.rtmedia-container .large-block-grid-7>li,.rtmedia-activity-container .large-block-grid-7>li{width:14.28571%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-7>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-7>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-7>li:nth-of-type(7n+1),.rtmedia-activity-container .large-block-grid-7>li:nth-of-type(7n+1){clear:both}.rtmedia-container .large-block-grid-8>li,.rtmedia-activity-container .large-block-grid-8>li{width:12.5%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-8>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-8>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-8>li:nth-of-type(8n+1),.rtmedia-activity-container .large-block-grid-8>li:nth-of-type(8n+1){clear:both}.rtmedia-container .large-block-grid-9>li,.rtmedia-activity-container .large-block-grid-9>li{width:11.11111%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-9>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-9>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-9>li:nth-of-type(9n+1),.rtmedia-activity-container .large-block-grid-9>li:nth-of-type(9n+1){clear:both}.rtmedia-container .large-block-grid-10>li,.rtmedia-activity-container .large-block-grid-10>li{width:10%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-10>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-10>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-10>li:nth-of-type(10n+1),.rtmedia-activity-container .large-block-grid-10>li:nth-of-type(10n+1){clear:both}.rtmedia-container .large-block-grid-11>li,.rtmedia-activity-container .large-block-grid-11>li{width:9.09091%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-11>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-11>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-11>li:nth-of-type(11n+1),.rtmedia-activity-container .large-block-grid-11>li:nth-of-type(11n+1){clear:both}.rtmedia-container .large-block-grid-12>li,.rtmedia-activity-container .large-block-grid-12>li{width:8.33333%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-12>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-12>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-12>li:nth-of-type(12n+1),.rtmedia-activity-container .large-block-grid-12>li:nth-of-type(12n+1){clear:both}}.rtmedia-container .flex-video,.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{padding-bottom:57.25%}.rtmedia-container .flex-video.vimeo,.rtmedia-activity-container .flex-video.vimeo{padding-top:0}.rtmedia-container .flex-video iframe,.rtmedia-activity-container .flex-video iframe,.rtmedia-container .flex-video object,.rtmedia-activity-container .flex-video object,.rtmedia-container .flex-video embed,.rtmedia-activity-container .flex-video embed,.rtmedia-container .flex-video video,.rtmedia-activity-container .flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}.rtmedia-container .row,.rtmedia-activity-container .row{max-width:1000px}.rtmedia-container .rtmedia-item-title h4,.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{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{font-size:1.4em;font-weight:bold;line-height:2.4em}.rtmedia-container .drag-drop,.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{border-color:#83b4d8}.rtmedia-container .rtmedia-action-update,.rtmedia-activity-container .rtmedia-action-update{float:left;margin-top:12px;margin-right:10px}.rtmedia-container .rtmedia-list,.rtmedia-activity-container .rtmedia-list{list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item{word-wrap:break-word;padding-top:20px;padding-bottom:20px}.rtmedia-container .rtmedia-list .rtmedia-list-item a,.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{line-height:1.4em;font-size:1.2em;padding-top:10px}.rtmedia-container .rtmedia-media img,.rtmedia-activity-container .rtmedia-media img{max-width:100%}.rtmedia-container .rtmedia-item-thumbnail,.rtmedia-activity-container .rtmedia-item-thumbnail{text-align:center;height:110px;line-height:110px}.rtmedia-container .rtmedia-item-thumbnail img,.rtmedia-activity-container .rtmedia-item-thumbnail img{max-width:100%;max-height:110px;vertical-align:middle}.rtmedia-container .rtmedia-item-comments-container,.rtmedia-activity-container .rtmedia-item-comments-container{margin:3% 3%}.rtmedia-container .rtmedia-comment,.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{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-content,.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{display:block;float:right}.rtmedia-container .rtmedia-bp-header,.rtmedia-activity-container .rtmedia-bp-header{width:460px;margin:auto}.rtmedia-container #div-attache-rtmedia,.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{display:none}.rtmedia-container #rtmedia-add-media-button-post-update,.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{float:left}.rtmedia-container .rtmedia-activity-text,.rtmedia-activity-container .rtmedia-activity-text{display:block;padding-bottom:10px}.rtmedia-container .rtmedia-merge-container,.rtmedia-activity-container .rtmedia-merge-container{display:none}.rtmedia-container .rtmedia-create-new-album-container,.rtmedia-activity-container .rtmedia-create-new-album-container{display:none}.rtmedia-container select,.rtmedia-activity-container select{width:auto}.rtmedia-container.rtmedia-single-container .row,.rtmedia-single-container.rtmedia-activity-container .row{background-color:#FFF}.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{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta button,.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{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{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{float:left;margin-right:5px}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments,.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{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{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}#rtmedia-action-update{float:left;padding-right:10px}#header{z-index:1 !important}.bp_media_content video{background-color:black}
1
+ .rtmedia-container,.rtmedia-activity-container{padding:5px;margin:0;clear:left}.rtmedia-container html,.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,.rtmedia-container div,.rtmedia-activity-container div,.rtmedia-container span,.rtmedia-activity-container span,.rtmedia-container applet,.rtmedia-activity-container applet,.rtmedia-container object,.rtmedia-activity-container object,.rtmedia-container iframe,.rtmedia-activity-container iframe,.rtmedia-container h1,.rtmedia-activity-container h1,.rtmedia-container h2,.rtmedia-activity-container h2,.rtmedia-container h3,.rtmedia-activity-container h3,.rtmedia-container h4,.rtmedia-activity-container h4,.rtmedia-container h5,.rtmedia-activity-container h5,.rtmedia-container h6,.rtmedia-activity-container h6,.rtmedia-container p,.rtmedia-activity-container p,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,.rtmedia-container pre,.rtmedia-activity-container pre,.rtmedia-container a,.rtmedia-activity-container a,.rtmedia-container abbr,.rtmedia-activity-container abbr,.rtmedia-container acronym,.rtmedia-activity-container acronym,.rtmedia-container address,.rtmedia-activity-container address,.rtmedia-container big,.rtmedia-activity-container big,.rtmedia-container cite,.rtmedia-activity-container cite,.rtmedia-container code,.rtmedia-activity-container code,.rtmedia-container del,.rtmedia-activity-container del,.rtmedia-container dfn,.rtmedia-activity-container dfn,.rtmedia-container em,.rtmedia-activity-container em,.rtmedia-container img,.rtmedia-activity-container img,.rtmedia-container ins,.rtmedia-activity-container ins,.rtmedia-container kbd,.rtmedia-activity-container kbd,.rtmedia-container q,.rtmedia-activity-container q,.rtmedia-container s,.rtmedia-activity-container s,.rtmedia-container samp,.rtmedia-activity-container samp,.rtmedia-container small,.rtmedia-activity-container small,.rtmedia-container strike,.rtmedia-activity-container strike,.rtmedia-container strong,.rtmedia-activity-container strong,.rtmedia-container sub,.rtmedia-activity-container sub,.rtmedia-container sup,.rtmedia-activity-container sup,.rtmedia-container tt,.rtmedia-activity-container tt,.rtmedia-container var,.rtmedia-activity-container var,.rtmedia-container b,.rtmedia-activity-container b,.rtmedia-container u,.rtmedia-activity-container u,.rtmedia-container i,.rtmedia-activity-container i,.rtmedia-container center,.rtmedia-activity-container center,.rtmedia-container dl,.rtmedia-activity-container dl,.rtmedia-container dt,.rtmedia-activity-container dt,.rtmedia-container dd,.rtmedia-activity-container dd,.rtmedia-container ol,.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,.rtmedia-container li,.rtmedia-activity-container li,.rtmedia-container fieldset,.rtmedia-activity-container fieldset,.rtmedia-container form,.rtmedia-activity-container form,.rtmedia-container label,.rtmedia-activity-container label,.rtmedia-container legend,.rtmedia-activity-container legend,.rtmedia-container table,.rtmedia-activity-container table,.rtmedia-container caption,.rtmedia-activity-container caption,.rtmedia-container tbody,.rtmedia-activity-container tbody,.rtmedia-container tfoot,.rtmedia-activity-container tfoot,.rtmedia-container thead,.rtmedia-activity-container thead,.rtmedia-container tr,.rtmedia-activity-container tr,.rtmedia-container th,.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,.rtmedia-container article,.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,.rtmedia-container canvas,.rtmedia-activity-container canvas,.rtmedia-container details,.rtmedia-activity-container details,.rtmedia-container embed,.rtmedia-activity-container embed,.rtmedia-container figure,.rtmedia-activity-container figure,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,.rtmedia-container footer,.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,.rtmedia-container output,.rtmedia-activity-container output,.rtmedia-container ruby,.rtmedia-activity-container ruby,.rtmedia-container section,.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,.rtmedia-container time,.rtmedia-activity-container time,.rtmedia-container mark,.rtmedia-activity-container mark,.rtmedia-container audio,.rtmedia-activity-container audio,.rtmedia-container video,.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{line-height:1}.rtmedia-container ol,.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul{list-style:none}.rtmedia-container table,.rtmedia-activity-container table{border-collapse:collapse;border-spacing:0}.rtmedia-container caption,.rtmedia-activity-container caption,.rtmedia-container th,.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td{text-align:left;font-weight:normal;vertical-align:middle}.rtmedia-container q,.rtmedia-activity-container q,.rtmedia-container blockquote,.rtmedia-activity-container blockquote{quotes:none}.rtmedia-container q:before,.rtmedia-activity-container q:before,.rtmedia-container q:after,.rtmedia-activity-container q:after,.rtmedia-container blockquote:before,.rtmedia-activity-container blockquote:before,.rtmedia-container blockquote:after,.rtmedia-activity-container blockquote:after{content:"";content:none}.rtmedia-container a img,.rtmedia-activity-container a img{border:none}.rtmedia-container article,.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,.rtmedia-container details,.rtmedia-activity-container details,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,.rtmedia-container figure,.rtmedia-activity-container figure,.rtmedia-container footer,.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,.rtmedia-container section,.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary{display:block}.rtmedia-container *,.rtmedia-activity-container *,.rtmedia-container *:before,.rtmedia-activity-container *:before,.rtmedia-container *:after,.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,.rtmedia-container body,.rtmedia-activity-container body{font-size:100%}.rtmedia-container body,.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{cursor:pointer}.rtmedia-container a:focus,.rtmedia-activity-container a:focus{outline:none}.rtmedia-container img,.rtmedia-activity-container img,.rtmedia-container object,.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed{max-width:100%;height:auto}.rtmedia-container object,.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed{height:100%}.rtmedia-container img,.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,.rtmedia-container .map_canvas embed,.rtmedia-activity-container .map_canvas embed,.rtmedia-container .map_canvas object,.rtmedia-activity-container .map_canvas object{max-width:none !important}.rtmedia-container .left,.rtmedia-activity-container .left{float:left !important}.rtmedia-container .right,.rtmedia-activity-container .right{float:right !important}.rtmedia-container .text-left,.rtmedia-activity-container .text-left{text-align:left !important}.rtmedia-container .text-right,.rtmedia-activity-container .text-right{text-align:right !important}.rtmedia-container .text-center,.rtmedia-activity-container .text-center{text-align:center !important}.rtmedia-container .text-justify,.rtmedia-activity-container .text-justify{text-align:justify !important}.rtmedia-container .hide,.rtmedia-activity-container .hide{display:none}.rtmedia-container .antialiased,.rtmedia-activity-container .antialiased{-webkit-font-smoothing:antialiased}.rtmedia-container img,.rtmedia-activity-container img{display:inline-block;vertical-align:middle}.rtmedia-container textarea,.rtmedia-activity-container textarea{height:auto;min-height:50px}.rtmedia-container select,.rtmedia-activity-container select{width:100%}.rtmedia-container .row,.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,.rtmedia-container .row:after,.rtmedia-activity-container .row:after{content:" ";display:table}.rtmedia-container .row:after,.rtmedia-activity-container .row:after{clear:both}.rtmedia-container .row.collapse .column,.rtmedia-activity-container .row.collapse .column,.rtmedia-container .row.collapse .columns,.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{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,.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after{content:" ";display:table}.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after{clear:both}.rtmedia-container .row .row.collapse,.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,.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after{content:" ";display:table}.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after{clear:both}.rtmedia-container .column,.rtmedia-activity-container .column,.rtmedia-container .columns,.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,.rtmedia-container .columns,.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{position:relative;width:8.33333%}.rtmedia-container .small-2,.rtmedia-activity-container .small-2{position:relative;width:16.66667%}.rtmedia-container .small-3,.rtmedia-activity-container .small-3{position:relative;width:25%}.rtmedia-container .small-4,.rtmedia-activity-container .small-4{position:relative;width:33.33333%}.rtmedia-container .small-5,.rtmedia-activity-container .small-5{position:relative;width:41.66667%}.rtmedia-container .small-6,.rtmedia-activity-container .small-6{position:relative;width:50%}.rtmedia-container .small-7,.rtmedia-activity-container .small-7{position:relative;width:58.33333%}.rtmedia-container .small-8,.rtmedia-activity-container .small-8{position:relative;width:66.66667%}.rtmedia-container .small-9,.rtmedia-activity-container .small-9{position:relative;width:75%}.rtmedia-container .small-10,.rtmedia-activity-container .small-10{position:relative;width:83.33333%}.rtmedia-container .small-11,.rtmedia-activity-container .small-11{position:relative;width:91.66667%}.rtmedia-container .small-12,.rtmedia-activity-container .small-12{position:relative;width:100%}.rtmedia-container .small-offset-0,.rtmedia-activity-container .small-offset-0{position:relative;margin-left:0%}.rtmedia-container .small-offset-1,.rtmedia-activity-container .small-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .small-offset-2,.rtmedia-activity-container .small-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .small-offset-3,.rtmedia-activity-container .small-offset-3{position:relative;margin-left:25%}.rtmedia-container .small-offset-4,.rtmedia-activity-container .small-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .small-offset-5,.rtmedia-activity-container .small-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .small-offset-6,.rtmedia-activity-container .small-offset-6{position:relative;margin-left:50%}.rtmedia-container .small-offset-7,.rtmedia-activity-container .small-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .small-offset-8,.rtmedia-activity-container .small-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .small-offset-9,.rtmedia-activity-container .small-offset-9{position:relative;margin-left:75%}.rtmedia-container .small-offset-10,.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{float:right}.rtmedia-container [class*="column"]+[class*="column"].end,.rtmedia-activity-container [class*="column"]+[class*="column"].end{float:left}.rtmedia-container .column.small-centered,.rtmedia-activity-container .column.small-centered,.rtmedia-container .columns.small-centered,.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{position:relative;width:8.33333%}.rtmedia-container .large-2,.rtmedia-activity-container .large-2{position:relative;width:16.66667%}.rtmedia-container .large-3,.rtmedia-activity-container .large-3{position:relative;width:25%}.rtmedia-container .large-4,.rtmedia-activity-container .large-4{position:relative;width:33.33333%}.rtmedia-container .large-5,.rtmedia-activity-container .large-5{position:relative;width:41.66667%}.rtmedia-container .large-6,.rtmedia-activity-container .large-6{position:relative;width:50%}.rtmedia-container .large-7,.rtmedia-activity-container .large-7{position:relative;width:58.33333%}.rtmedia-container .large-8,.rtmedia-activity-container .large-8{position:relative;width:66.66667%}.rtmedia-container .large-9,.rtmedia-activity-container .large-9{position:relative;width:75%}.rtmedia-container .large-10,.rtmedia-activity-container .large-10{position:relative;width:83.33333%}.rtmedia-container .large-11,.rtmedia-activity-container .large-11{position:relative;width:91.66667%}.rtmedia-container .large-12,.rtmedia-activity-container .large-12{position:relative;width:100%}.rtmedia-container .row .large-offset-0,.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{position:relative;margin-left:8.33333%}.rtmedia-container .row .large-offset-2,.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{position:relative;margin-left:25%}.rtmedia-container .row .large-offset-4,.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{position:relative;margin-left:41.66667%}.rtmedia-container .row .large-offset-6,.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{position:relative;margin-left:58.33333%}.rtmedia-container .row .large-offset-8,.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{position:relative;margin-left:75%}.rtmedia-container .row .large-offset-10,.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{position:relative;margin-left:91.66667%}.rtmedia-container .push-1,.rtmedia-activity-container .push-1{position:relative;left:8.33333%;right:auto}.rtmedia-container .pull-1,.rtmedia-activity-container .pull-1{position:relative;right:8.33333%;left:auto}.rtmedia-container .push-2,.rtmedia-activity-container .push-2{position:relative;left:16.66667%;right:auto}.rtmedia-container .pull-2,.rtmedia-activity-container .pull-2{position:relative;right:16.66667%;left:auto}.rtmedia-container .push-3,.rtmedia-activity-container .push-3{position:relative;left:25%;right:auto}.rtmedia-container .pull-3,.rtmedia-activity-container .pull-3{position:relative;right:25%;left:auto}.rtmedia-container .push-4,.rtmedia-activity-container .push-4{position:relative;left:33.33333%;right:auto}.rtmedia-container .pull-4,.rtmedia-activity-container .pull-4{position:relative;right:33.33333%;left:auto}.rtmedia-container .push-5,.rtmedia-activity-container .push-5{position:relative;left:41.66667%;right:auto}.rtmedia-container .pull-5,.rtmedia-activity-container .pull-5{position:relative;right:41.66667%;left:auto}.rtmedia-container .push-6,.rtmedia-activity-container .push-6{position:relative;left:50%;right:auto}.rtmedia-container .pull-6,.rtmedia-activity-container .pull-6{position:relative;right:50%;left:auto}.rtmedia-container .push-7,.rtmedia-activity-container .push-7{position:relative;left:58.33333%;right:auto}.rtmedia-container .pull-7,.rtmedia-activity-container .pull-7{position:relative;right:58.33333%;left:auto}.rtmedia-container .push-8,.rtmedia-activity-container .push-8{position:relative;left:66.66667%;right:auto}.rtmedia-container .pull-8,.rtmedia-activity-container .pull-8{position:relative;right:66.66667%;left:auto}.rtmedia-container .push-9,.rtmedia-activity-container .push-9{position:relative;left:75%;right:auto}.rtmedia-container .pull-9,.rtmedia-activity-container .pull-9{position:relative;right:75%;left:auto}.rtmedia-container .push-10,.rtmedia-activity-container .push-10{position:relative;left:83.33333%;right:auto}.rtmedia-container .pull-10,.rtmedia-activity-container .pull-10{position:relative;right:83.33333%;left:auto}.rtmedia-container .push-11,.rtmedia-activity-container .push-11{position:relative;left:91.66667%;right:auto}.rtmedia-container .pull-11,.rtmedia-activity-container .pull-11{position:relative;right:91.66667%;left:auto}.rtmedia-container .column.large-centered,.rtmedia-activity-container .column.large-centered,.rtmedia-container .columns.large-centered,.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,.rtmedia-container .columns.large-uncentered,.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,.rtmedia-container .columns.large-uncentered.opposite,.rtmedia-activity-container .columns.large-uncentered.opposite{float:right !important}}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge{display:inherit !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down{display:none !important}.rtmedia-container table.show-for-small,.rtmedia-activity-container table.show-for-small,.rtmedia-container table.show-for-medium-down,.rtmedia-activity-container table.show-for-medium-down,.rtmedia-container table.show-for-large-down,.rtmedia-activity-container table.show-for-large-down,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-up,.rtmedia-activity-container table.hide-for-medium-up,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-up,.rtmedia-activity-container table.hide-for-large-up,.rtmedia-container table.hide-for-xlarge,.rtmedia-activity-container table.hide-for-xlarge{display:table}.rtmedia-container thead.show-for-small,.rtmedia-activity-container thead.show-for-small,.rtmedia-container thead.show-for-medium-down,.rtmedia-activity-container thead.show-for-medium-down,.rtmedia-container thead.show-for-large-down,.rtmedia-activity-container thead.show-for-large-down,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-up,.rtmedia-activity-container thead.hide-for-medium-up,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-up,.rtmedia-activity-container thead.hide-for-large-up,.rtmedia-container thead.hide-for-xlarge,.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,.rtmedia-container tbody.show-for-medium-down,.rtmedia-activity-container tbody.show-for-medium-down,.rtmedia-container tbody.show-for-large-down,.rtmedia-activity-container tbody.show-for-large-down,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-up,.rtmedia-activity-container tbody.hide-for-medium-up,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-up,.rtmedia-activity-container tbody.hide-for-large-up,.rtmedia-container tbody.hide-for-xlarge,.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,.rtmedia-container tr.show-for-medium-down,.rtmedia-activity-container tr.show-for-medium-down,.rtmedia-container tr.show-for-large-down,.rtmedia-activity-container tr.show-for-large-down,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-up,.rtmedia-activity-container tr.hide-for-medium-up,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-up,.rtmedia-activity-container tr.hide-for-large-up,.rtmedia-container tr.hide-for-xlarge,.rtmedia-activity-container tr.hide-for-xlarge{display:table-row !important}.rtmedia-container td.show-for-small,.rtmedia-activity-container td.show-for-small,.rtmedia-container td.show-for-medium-down,.rtmedia-activity-container td.show-for-medium-down,.rtmedia-container td.show-for-large-down,.rtmedia-activity-container td.show-for-large-down,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-up,.rtmedia-activity-container td.hide-for-medium-up,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-up,.rtmedia-activity-container td.hide-for-large-up,.rtmedia-container td.hide-for-xlarge,.rtmedia-activity-container td.hide-for-xlarge,.rtmedia-container th.show-for-small,.rtmedia-activity-container th.show-for-small,.rtmedia-container th.show-for-medium-down,.rtmedia-activity-container th.show-for-medium-down,.rtmedia-container th.show-for-large-down,.rtmedia-activity-container th.show-for-large-down,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-up,.rtmedia-activity-container th.hide-for-medium-up,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-up,.rtmedia-activity-container th.hide-for-large-up,.rtmedia-container th.hide-for-xlarge,.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,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up{display:inherit !important}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small{display:none !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small{display:inherit !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up{display:none !important}.rtmedia-container table.show-for-medium,.rtmedia-activity-container table.show-for-medium,.rtmedia-container table.show-for-medium-up,.rtmedia-activity-container table.show-for-medium-up,.rtmedia-container table.hide-for-small,.rtmedia-activity-container table.hide-for-small{display:table}.rtmedia-container thead.show-for-medium,.rtmedia-activity-container thead.show-for-medium,.rtmedia-container thead.show-for-medium-up,.rtmedia-activity-container thead.show-for-medium-up,.rtmedia-container thead.hide-for-small,.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,.rtmedia-container tbody.show-for-medium-up,.rtmedia-activity-container tbody.show-for-medium-up,.rtmedia-container tbody.hide-for-small,.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,.rtmedia-container tr.show-for-medium-up,.rtmedia-activity-container tr.show-for-medium-up,.rtmedia-container tr.hide-for-small,.rtmedia-activity-container tr.hide-for-small{display:table-row !important}.rtmedia-container td.show-for-medium,.rtmedia-activity-container td.show-for-medium,.rtmedia-container td.show-for-medium-up,.rtmedia-activity-container td.show-for-medium-up,.rtmedia-container td.hide-for-small,.rtmedia-activity-container td.hide-for-small,.rtmedia-container th.show-for-medium,.rtmedia-activity-container th.show-for-medium,.rtmedia-container th.show-for-medium-up,.rtmedia-activity-container th.show-for-medium-up,.rtmedia-container th.hide-for-small,.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,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down{display:inherit !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up{display:none !important}.rtmedia-container table.show-for-large,.rtmedia-activity-container table.show-for-large,.rtmedia-container table.show-for-large-up,.rtmedia-activity-container table.show-for-large-up,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-down,.rtmedia-activity-container table.hide-for-medium-down{display:table}.rtmedia-container thead.show-for-large,.rtmedia-activity-container thead.show-for-large,.rtmedia-container thead.show-for-large-up,.rtmedia-activity-container thead.show-for-large-up,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-down,.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,.rtmedia-container tbody.show-for-large-up,.rtmedia-activity-container tbody.show-for-large-up,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-down,.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,.rtmedia-container tr.show-for-large-up,.rtmedia-activity-container tr.show-for-large-up,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-down,.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,.rtmedia-container td.show-for-large-up,.rtmedia-activity-container td.show-for-large-up,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-down,.rtmedia-activity-container td.hide-for-medium-down,.rtmedia-container th.show-for-large,.rtmedia-activity-container th.show-for-large,.rtmedia-container th.show-for-large-up,.rtmedia-activity-container th.show-for-large-up,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-down,.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{display:inherit !important}.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down{display:none !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down{display:inherit !important}.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge{display:none !important}.rtmedia-container table.show-for-xlarge,.rtmedia-activity-container table.show-for-xlarge,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-down,.rtmedia-activity-container table.hide-for-large-down{display:table}.rtmedia-container thead.show-for-xlarge,.rtmedia-activity-container thead.show-for-xlarge,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-down,.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,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-down,.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,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-down,.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,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-down,.rtmedia-activity-container td.hide-for-large-down,.rtmedia-container th.show-for-xlarge,.rtmedia-activity-container th.show-for-xlarge,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-down,.rtmedia-activity-container th.hide-for-large-down{display:table-cell !important}}.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait{display:table}.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,.rtmedia-container thead.show-for-portrait,.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,.rtmedia-container tbody.show-for-portrait,.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,.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait{display:table-row !important}.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,.rtmedia-container th.show-for-portrait,.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,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.show-for-landscape,.rtmedia-activity-container table.show-for-landscape,.rtmedia-container table.hide-for-portrait,.rtmedia-activity-container table.hide-for-portrait{display:table}.rtmedia-container thead.show-for-landscape,.rtmedia-activity-container thead.show-for-landscape,.rtmedia-container thead.hide-for-portrait,.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,.rtmedia-container tbody.hide-for-portrait,.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,.rtmedia-container tr.hide-for-portrait,.rtmedia-activity-container tr.hide-for-portrait{display:table-row !important}.rtmedia-container td.show-for-landscape,.rtmedia-activity-container td.show-for-landscape,.rtmedia-container td.hide-for-portrait,.rtmedia-activity-container td.hide-for-portrait,.rtmedia-container th.show-for-landscape,.rtmedia-activity-container th.show-for-landscape,.rtmedia-container th.hide-for-portrait,.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,.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape{display:inherit !important}.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape{display:none !important}.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape{display:table}.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,.rtmedia-container thead.hide-for-landscape,.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,.rtmedia-container tbody.hide-for-landscape,.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,.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape{display:table-row !important}.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape{display:table-cell !important}}.rtmedia-container .show-for-touch,.rtmedia-activity-container .show-for-touch{display:none !important}.rtmedia-container .hide-for-touch,.rtmedia-activity-container .hide-for-touch{display:inherit !important}.rtmedia-container .touch .show-for-touch,.rtmedia-activity-container .touch .show-for-touch{display:inherit !important}.rtmedia-container .touch .hide-for-touch,.rtmedia-activity-container .touch .hide-for-touch{display:none !important}.rtmedia-container table.hide-for-touch,.rtmedia-activity-container table.hide-for-touch{display:table}.rtmedia-container .touch table.show-for-touch,.rtmedia-activity-container .touch table.show-for-touch{display:table}.rtmedia-container thead.hide-for-touch,.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{display:table-header-group !important}.rtmedia-container tbody.hide-for-touch,.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{display:table-row-group !important}.rtmedia-container tr.hide-for-touch,.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{display:table-row !important}.rtmedia-container td.hide-for-touch,.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{display:table-cell !important}.rtmedia-container th.hide-for-touch,.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{display:table-cell !important}@media only screen{.rtmedia-container [class*="block-grid-"],.rtmedia-activity-container [class*="block-grid-"]{display:block;padding:0;margin:0 -0.625em;*zoom:1}.rtmedia-container [class*="block-grid-"]:before,.rtmedia-activity-container [class*="block-grid-"]:before,.rtmedia-container [class*="block-grid-"]:after,.rtmedia-activity-container [class*="block-grid-"]:after{content:" ";display:table}.rtmedia-container [class*="block-grid-"]:after,.rtmedia-activity-container [class*="block-grid-"]:after{clear:both}.rtmedia-container [class*="block-grid-"]>li,.rtmedia-activity-container [class*="block-grid-"]>li{display:inline;height:auto;float:left;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-1>li,.rtmedia-activity-container .small-block-grid-1>li{width:100%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-1>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-1>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-1>li:nth-of-type(1n+1),.rtmedia-activity-container .small-block-grid-1>li:nth-of-type(1n+1){clear:both}.rtmedia-container .small-block-grid-2>li,.rtmedia-activity-container .small-block-grid-2>li{width:50%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-2>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-2>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-2>li:nth-of-type(2n+1),.rtmedia-activity-container .small-block-grid-2>li:nth-of-type(2n+1){clear:both}.rtmedia-container .small-block-grid-3>li,.rtmedia-activity-container .small-block-grid-3>li{width:33.33333%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-3>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-3>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-3>li:nth-of-type(3n+1),.rtmedia-activity-container .small-block-grid-3>li:nth-of-type(3n+1){clear:both}.rtmedia-container .small-block-grid-4>li,.rtmedia-activity-container .small-block-grid-4>li{width:25%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-4>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-4>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-4>li:nth-of-type(4n+1),.rtmedia-activity-container .small-block-grid-4>li:nth-of-type(4n+1){clear:both}.rtmedia-container .small-block-grid-5>li,.rtmedia-activity-container .small-block-grid-5>li{width:20%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-5>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-5>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-5>li:nth-of-type(5n+1),.rtmedia-activity-container .small-block-grid-5>li:nth-of-type(5n+1){clear:both}.rtmedia-container .small-block-grid-6>li,.rtmedia-activity-container .small-block-grid-6>li{width:16.66667%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-6>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-6>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-6>li:nth-of-type(6n+1),.rtmedia-activity-container .small-block-grid-6>li:nth-of-type(6n+1){clear:both}.rtmedia-container .small-block-grid-7>li,.rtmedia-activity-container .small-block-grid-7>li{width:14.28571%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-7>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-7>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-7>li:nth-of-type(7n+1),.rtmedia-activity-container .small-block-grid-7>li:nth-of-type(7n+1){clear:both}.rtmedia-container .small-block-grid-8>li,.rtmedia-activity-container .small-block-grid-8>li{width:12.5%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-8>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-8>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-8>li:nth-of-type(8n+1),.rtmedia-activity-container .small-block-grid-8>li:nth-of-type(8n+1){clear:both}.rtmedia-container .small-block-grid-9>li,.rtmedia-activity-container .small-block-grid-9>li{width:11.11111%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-9>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-9>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-9>li:nth-of-type(9n+1),.rtmedia-activity-container .small-block-grid-9>li:nth-of-type(9n+1){clear:both}.rtmedia-container .small-block-grid-10>li,.rtmedia-activity-container .small-block-grid-10>li{width:10%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-10>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-10>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-10>li:nth-of-type(10n+1),.rtmedia-activity-container .small-block-grid-10>li:nth-of-type(10n+1){clear:both}.rtmedia-container .small-block-grid-11>li,.rtmedia-activity-container .small-block-grid-11>li{width:9.09091%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-11>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-11>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-11>li:nth-of-type(11n+1),.rtmedia-activity-container .small-block-grid-11>li:nth-of-type(11n+1){clear:both}.rtmedia-container .small-block-grid-12>li,.rtmedia-activity-container .small-block-grid-12>li{width:8.33333%;padding:0 0.625em 1.25em}.rtmedia-container .small-block-grid-12>li:nth-of-type(n),.rtmedia-activity-container .small-block-grid-12>li:nth-of-type(n){clear:none}.rtmedia-container .small-block-grid-12>li:nth-of-type(12n+1),.rtmedia-activity-container .small-block-grid-12>li:nth-of-type(12n+1){clear:both}}@media only screen and (min-width: 768px){.rtmedia-container .small-block-grid-1>li:nth-of-type(1n+1),.rtmedia-activity-container .small-block-grid-1>li:nth-of-type(1n+1){clear:none}.rtmedia-container .small-block-grid-2>li:nth-of-type(2n+1),.rtmedia-activity-container .small-block-grid-2>li:nth-of-type(2n+1){clear:none}.rtmedia-container .small-block-grid-3>li:nth-of-type(3n+1),.rtmedia-activity-container .small-block-grid-3>li:nth-of-type(3n+1){clear:none}.rtmedia-container .small-block-grid-4>li:nth-of-type(4n+1),.rtmedia-activity-container .small-block-grid-4>li:nth-of-type(4n+1){clear:none}.rtmedia-container .small-block-grid-5>li:nth-of-type(5n+1),.rtmedia-activity-container .small-block-grid-5>li:nth-of-type(5n+1){clear:none}.rtmedia-container .small-block-grid-6>li:nth-of-type(6n+1),.rtmedia-activity-container .small-block-grid-6>li:nth-of-type(6n+1){clear:none}.rtmedia-container .small-block-grid-7>li:nth-of-type(7n+1),.rtmedia-activity-container .small-block-grid-7>li:nth-of-type(7n+1){clear:none}.rtmedia-container .small-block-grid-8>li:nth-of-type(8n+1),.rtmedia-activity-container .small-block-grid-8>li:nth-of-type(8n+1){clear:none}.rtmedia-container .small-block-grid-9>li:nth-of-type(9n+1),.rtmedia-activity-container .small-block-grid-9>li:nth-of-type(9n+1){clear:none}.rtmedia-container .small-block-grid-10>li:nth-of-type(10n+1),.rtmedia-activity-container .small-block-grid-10>li:nth-of-type(10n+1){clear:none}.rtmedia-container .small-block-grid-11>li:nth-of-type(11n+1),.rtmedia-activity-container .small-block-grid-11>li:nth-of-type(11n+1){clear:none}.rtmedia-container .small-block-grid-12>li:nth-of-type(12n+1),.rtmedia-activity-container .small-block-grid-12>li:nth-of-type(12n+1){clear:none}.rtmedia-container .large-block-grid-1>li,.rtmedia-activity-container .large-block-grid-1>li{width:100%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-1>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-1>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-1>li:nth-of-type(1n+1),.rtmedia-activity-container .large-block-grid-1>li:nth-of-type(1n+1){clear:both}.rtmedia-container .large-block-grid-2>li,.rtmedia-activity-container .large-block-grid-2>li{width:50%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-2>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-2>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-2>li:nth-of-type(2n+1),.rtmedia-activity-container .large-block-grid-2>li:nth-of-type(2n+1){clear:both}.rtmedia-container .large-block-grid-3>li,.rtmedia-activity-container .large-block-grid-3>li{width:33.33333%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-3>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-3>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-3>li:nth-of-type(3n+1),.rtmedia-activity-container .large-block-grid-3>li:nth-of-type(3n+1){clear:both}.rtmedia-container .large-block-grid-4>li,.rtmedia-activity-container .large-block-grid-4>li{width:25%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-4>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-4>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-4>li:nth-of-type(4n+1),.rtmedia-activity-container .large-block-grid-4>li:nth-of-type(4n+1){clear:both}.rtmedia-container .large-block-grid-5>li,.rtmedia-activity-container .large-block-grid-5>li{width:20%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-5>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-5>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-5>li:nth-of-type(5n+1),.rtmedia-activity-container .large-block-grid-5>li:nth-of-type(5n+1){clear:both}.rtmedia-container .large-block-grid-6>li,.rtmedia-activity-container .large-block-grid-6>li{width:16.66667%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-6>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-6>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-6>li:nth-of-type(6n+1),.rtmedia-activity-container .large-block-grid-6>li:nth-of-type(6n+1){clear:both}.rtmedia-container .large-block-grid-7>li,.rtmedia-activity-container .large-block-grid-7>li{width:14.28571%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-7>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-7>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-7>li:nth-of-type(7n+1),.rtmedia-activity-container .large-block-grid-7>li:nth-of-type(7n+1){clear:both}.rtmedia-container .large-block-grid-8>li,.rtmedia-activity-container .large-block-grid-8>li{width:12.5%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-8>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-8>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-8>li:nth-of-type(8n+1),.rtmedia-activity-container .large-block-grid-8>li:nth-of-type(8n+1){clear:both}.rtmedia-container .large-block-grid-9>li,.rtmedia-activity-container .large-block-grid-9>li{width:11.11111%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-9>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-9>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-9>li:nth-of-type(9n+1),.rtmedia-activity-container .large-block-grid-9>li:nth-of-type(9n+1){clear:both}.rtmedia-container .large-block-grid-10>li,.rtmedia-activity-container .large-block-grid-10>li{width:10%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-10>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-10>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-10>li:nth-of-type(10n+1),.rtmedia-activity-container .large-block-grid-10>li:nth-of-type(10n+1){clear:both}.rtmedia-container .large-block-grid-11>li,.rtmedia-activity-container .large-block-grid-11>li{width:9.09091%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-11>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-11>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-11>li:nth-of-type(11n+1),.rtmedia-activity-container .large-block-grid-11>li:nth-of-type(11n+1){clear:both}.rtmedia-container .large-block-grid-12>li,.rtmedia-activity-container .large-block-grid-12>li{width:8.33333%;padding:0 0.625em 1.25em}.rtmedia-container .large-block-grid-12>li:nth-of-type(n),.rtmedia-activity-container .large-block-grid-12>li:nth-of-type(n){clear:none}.rtmedia-container .large-block-grid-12>li:nth-of-type(12n+1),.rtmedia-activity-container .large-block-grid-12>li:nth-of-type(12n+1){clear:both}}.rtmedia-container .flex-video,.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{padding-bottom:57.25%}.rtmedia-container .flex-video.vimeo,.rtmedia-activity-container .flex-video.vimeo{padding-top:0}.rtmedia-container .flex-video iframe,.rtmedia-activity-container .flex-video iframe,.rtmedia-container .flex-video object,.rtmedia-activity-container .flex-video object,.rtmedia-container .flex-video embed,.rtmedia-activity-container .flex-video embed,.rtmedia-container .flex-video video,.rtmedia-activity-container .flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}.rtmedia-container .row,.rtmedia-activity-container .row{max-width:1000px}.rtmedia-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title{text-align:center}.rtmedia-container .rtmedia-item-title h4,.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{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{font-size:1.4em;font-weight:bold;line-height:2.4em}.rtmedia-container .drag-drop,.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{border-color:#83b4d8}.rtmedia-container .rtmedia-action-update,.rtmedia-activity-container .rtmedia-action-update{float:left;margin-top:12px;margin-right:10px}.rtmedia-container .rtmedia-list,.rtmedia-activity-container .rtmedia-list{list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item{word-wrap:break-word;padding-top:20px;padding-bottom:20px}.rtmedia-container .rtmedia-list .rtmedia-list-item a,.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{line-height:1.4em;font-size:1.2em;padding-top:10px}.rtmedia-container .rtmedia-media img,.rtmedia-activity-container .rtmedia-media img{max-width:100%}.rtmedia-container .rtmedia-item-thumbnail,.rtmedia-activity-container .rtmedia-item-thumbnail{text-align:center;height:110px;line-height:110px}.rtmedia-container .rtmedia-item-thumbnail img,.rtmedia-activity-container .rtmedia-item-thumbnail img{max-width:100%;max-height:110px;vertical-align:middle}.rtmedia-container .rtmedia-item-comments-container,.rtmedia-activity-container .rtmedia-item-comments-container{margin:3% 3%}.rtmedia-container .rtmedia-comment,.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{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-content,.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{display:block;float:right}.rtmedia-container .rtmedia-bp-header,.rtmedia-activity-container .rtmedia-bp-header{width:460px;margin:auto}.rtmedia-container #div-attache-rtmedia,.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{display:none}.rtmedia-container #rtmedia-add-media-button-post-update,.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{float:left}.rtmedia-container .rtmedia-activity-text,.rtmedia-activity-container .rtmedia-activity-text{display:block;padding-bottom:10px}.rtmedia-container .rtmedia-merge-container,.rtmedia-activity-container .rtmedia-merge-container{display:none}.rtmedia-container .rtmedia-create-new-album-container,.rtmedia-activity-container .rtmedia-create-new-album-container{display:none}.rtmedia-container select,.rtmedia-activity-container select{width:auto}.rtmedia-container.rtmedia-single-container .row,.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{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta button,.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{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{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{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{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{background-color:transparent}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments 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{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}#rtmedia-action-update{float:left;padding-right:10px}#header{z-index:1 !important}.bp_media_content video{background-color:black}
app/assets/sass/main.scss CHANGED
@@ -10,6 +10,7 @@
10
max-width:1000px
11
}
12
.rtmedia-item-title{
13
h4{
14
text-overflow: ellipsis;
15
white-space: nowrap;
@@ -156,6 +157,8 @@
156
.row{
157
background-color: #FFF;
158
#rtmedia-single-media-container{
159
.rtmedia-media{
160
.mejs-overlay-button{
161
margin: -50px 0 0 -50px;
@@ -206,7 +209,23 @@
206
&>form{
207
float:left;
208
margin-right: 5px;
209
- }
210
}
211
}
212
.rtmedia-item-comments{
@@ -261,3 +280,6 @@
261
background-color:black;
262
}
263
}
10
max-width:1000px
11
}
12
.rtmedia-item-title{
13
+ text-align:center;
14
h4{
15
text-overflow: ellipsis;
16
white-space: nowrap;
157
.row{
158
background-color: #FFF;
159
#rtmedia-single-media-container{
160
+ padding-top: 10px;
161
+ padding-bottom: 10px;
162
.rtmedia-media{
163
.mejs-overlay-button{
164
margin: -50px 0 0 -50px;
209
&>form{
210
float:left;
211
margin-right: 5px;
212
+ }
213
+ .rtmedia-action-buttons{
214
+ span{
215
+ background: #EEE;
216
+ @include border-radius(50%);
217
+ border: 1px solid #CCC;
218
+ color: #999;
219
+ display: inline;
220
+ font-size: 70%;
221
+ margin-left: 2px;
222
+ margin-right: 2px;
223
+ padding: 3px 6px;
224
+ text-align: center;
225
+ vertical-align: middle;
226
+
227
+ }
228
+ }
229
}
230
}
231
.rtmedia-item-comments{
280
background-color:black;
281
}
282
}
283
+
284
+
285
+
app/helper/rtPluginUpdateChecker.php CHANGED
@@ -37,6 +37,9 @@ class rtPluginUpdateChecker {
37
* @param type $optionName
38
*/
39
public function __construct($metadataUrl, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '') {
40
$this->metadataUrl = $metadataUrl;
41
$this->pluginFile = plugin_basename($pluginFile);
42
$this->checkPeriod = $checkPeriod;
37
* @param type $optionName
38
*/
39
public function __construct($metadataUrl, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '') {
40
+ if(strpos($metadataUrl,"https:") !== false){
41
+ $metadataUrl = str_replace("https:", "http:", $metadataUrl);
42
+ }
43
$this->metadataUrl = $metadataUrl;
44
$this->pluginFile = plugin_basename($pluginFile);
45
$this->checkPeriod = $checkPeriod;
app/importers/RTMediaMigration.php CHANGED
@@ -15,11 +15,21 @@ class RTMediaMigration {
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
if (isset($_REQUEST["force"]) && $_REQUEST["force"] === "true")
19
$pending = false;
20
else
21
$pending = get_site_option("rtMigration-pending-count");
22
-
23
if ($pending === false) {
24
$total = $this->get_total_count();
25
$done = $this->get_done_count();
@@ -32,11 +42,23 @@ class RTMediaMigration {
32
if(!(isset($_REQUEST["page"]) && $_REQUEST["page"] == "rtmedia-migration"))
33
add_action('admin_notices', array(&$this, 'add_migration_notice'));
34
}
35
}
36
37
function add_migration_notice() {
38
if (current_user_can( 'manage_options' ) )
39
- $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>. </p>");
40
}
41
42
function create_notice($message, $type = "error") {
@@ -188,10 +210,15 @@ class RTMediaMigration {
188
$album_count = 0;
189
}
190
}
191
-
192
- $comment_sql = $wpdb->get_var("select count(*) from $wpdb->comments a where a.comment_post_ID in (select b.media_id from $this->bmp_table b left join
193
{$wpdb->posts} p ON (b.media_id = p.ID) where (NOT p.ID IS NULL) ) and a.comment_agent=''");
194
- // echo $media_count . "--" . $album_count . "--" . $comment_sql;
195
return $media_count + $album_count + $comment_sql;
196
}
197
@@ -567,7 +594,7 @@ class RTMediaMigration {
567
$prefix = "users/" . abs(intval($result->context_id));
568
} else {
569
$media_context = "group";
570
- $prefix = "groups/" . abs(intval($result->context_id));
571
}
572
573
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
+ add_action('wp_ajax_bp_media_rt_db_migration', array($this, "migrate_to_new_db"));
19
+
20
+ if(isset($_REQUEST["page"]) && $_REQUEST["page"] == "rtmedia-migration" && isset($_REQUEST["hide"]) && $_REQUEST["hide"] =="true"){
21
+ $this->hide_migration_notice();
22
+ wp_safe_redirect($_SERVER["HTTP_REFERER"]);
23
+ }
24
+ if(get_site_option("rt_migration_hide_notice") !== false)
25
+ return true;
26
+
27
if (isset($_REQUEST["force"]) && $_REQUEST["force"] === "true")
28
$pending = false;
29
else
30
$pending = get_site_option("rtMigration-pending-count");
31
+ $total = $this->get_total_count();
32
+ $done = $this->get_done_count();
33
if ($pending === false) {
34
$total = $this->get_total_count();
35
$done = $this->get_done_count();
42
if(!(isset($_REQUEST["page"]) && $_REQUEST["page"] == "rtmedia-migration"))
43
add_action('admin_notices', array(&$this, 'add_migration_notice'));
44
}
45
+
46
+ }
47
+ function hide_migration_notice(){
48
+ update_site_option("rt_migration_hide_notice", true);
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") {
210
$album_count = 0;
211
}
212
}
213
+ if (intval($_SESSION["migration_media"]) == intval($media_count)) {
214
+ $comment_sql = $_SESSION["migration_activity"];
215
+ } else {
216
+ $comment_sql = $wpdb->get_var("select count(*)
217
+ from $wpdb->comments a
218
+ where a.comment_post_ID in (select b.media_id from $this->bmp_table b left join
219
{$wpdb->posts} p ON (b.media_id = p.ID) where (NOT p.ID IS NULL) ) and a.comment_agent=''");
220
+ }
221
+ // echo $media_count . "--" . $album_count . "--" . $comment_sql;
222
return $media_count + $album_count + $comment_sql;
223
}
224
594
$prefix = "users/" . abs(intval($result->context_id));
595
} else {
596
$media_context = "group";
597
+ $prefix = bp_get_groups_root_slug() . abs(intval($result->context_id));
598
}
599
600
app/main/RTMedia.php CHANGED
@@ -115,9 +115,6 @@ class RTMedia {
115
116
/* Includes db specific wrapper functions required to render the template */
117
include(RTMEDIA_PATH . 'app/main/controllers/template/rt-template-functions.php');
118
-
119
-
120
-
121
}
122
123
function set_site_options() {
@@ -131,9 +128,25 @@ class RTMedia {
131
/* if new options added via filter then it needs to be updated */
132
$this->options = $rtmedia_options;
133
}
134
}
135
136
- /**
137
* Default allowed media types array
138
*/
139
function set_allowed_types() {
@@ -706,9 +719,8 @@ function rtmedia_update_site_option( $option_name, $option_value ) {
706
}
707
708
function get_rtmedia_group_link( $group_id ){
709
- global $bp;
710
$group = groups_get_group( array( 'group_id' => $group_id ) );
711
- return home_url( $bp->groups->slug . '/' . $group -> slug );
712
}
713
714
function rtmedia_get_site_option( $option_name, $default = false ) {
115
116
/* Includes db specific wrapper functions required to render the template */
117
include(RTMEDIA_PATH . 'app/main/controllers/template/rt-template-functions.php');
118
}
119
120
function set_site_options() {
128
/* if new options added via filter then it needs to be updated */
129
$this->options = $rtmedia_options;
130
}
131
+ $this->add_image_sizes();
132
}
133
134
+ public function add_image_sizes() {
135
+ add_image_size(
136
+ 'rt_media_thumbnail', $this->options["defaultSizes_photo_thumbnail_width"], $this->options["defaultSizes_photo_thumbnail_height"], ($this->options["defaultSizes_photo_thumbnail_crop"]=="0")?false:true
137
+ );
138
+ add_image_size(
139
+ 'rt_media_activity_image', $this->options["defaultSizes_photo_medium_width"], $this->options["defaultSizes_photo_medium_height"], ($this->options["defaultSizes_photo_medium_crop"]=="0")?false:true
140
+ );
141
+ add_image_size(
142
+ 'rt_media_single_image', $this->options["defaultSizes_photo_large_width"], $this->options["defaultSizes_photo_large_height"], ($this->options["defaultSizes_photo_large_crop"]=="0")?false:true
143
+ );
144
+ add_image_size(
145
+ 'rt_media_featured_image', $this->options["defaultSizes_featured_default_width"], $this->options["defaultSizes_featured_default_height"], ($this->options["defaultSizes_featured_default_crop"]=="0")?false:true
146
+ );
147
+ }
148
+
149
+ /**
150
* Default allowed media types array
151
*/
152
function set_allowed_types() {
719
}
720
721
function get_rtmedia_group_link( $group_id ){
722
$group = groups_get_group( array( 'group_id' => $group_id ) );
723
+ return home_url( bp_get_groups_root_slug() . '/' . $group -> slug );
724
}
725
726
function rtmedia_get_site_option( $option_name, $default = false ) {
app/main/controllers/activity/RTMediaActivity.php CHANGED
@@ -98,7 +98,7 @@ class RTMediaActivity {
98
if ( $media->media_type == 'photo' ) {
99
$thumbnail_id = $media->media_id;
100
if ( $thumbnail_id ) {
101
- list($src, $width, $height) = wp_get_attachment_image_src($thumbnail_id);
102
$html = '<img src="'.$src.'" />';
103
}
104
} elseif ( $media->media_type == 'video' ) {
98
if ( $media->media_type == 'photo' ) {
99
$thumbnail_id = $media->media_id;
100
if ( $thumbnail_id ) {
101
+ list($src, $width, $height) = wp_get_attachment_image_src($thumbnail_id, "rt_media_activity_image");
102
$html = '<img src="'.$src.'" />';
103
}
104
} elseif ( $media->media_type == 'video' ) {
app/main/controllers/media/RTMediaFeatured.php CHANGED
@@ -128,7 +128,7 @@ class RTMediaFeatured extends RTMediaUserInteraction {
128
break;
129
case 'photo' :
130
$this->generate_featured_size($featured->media_id);
131
- $image_array = image_downsize($featured->media_id, 'rtmedia-featured');
132
$content = '<img src="' . $image_array[0] . '" alt="' . $featured->media_title . '" />';
133
break;
134
default :
128
break;
129
case 'photo' :
130
$this->generate_featured_size($featured->media_id);
131
+ $image_array = image_downsize($featured->media_id, 'rt_media_featured_image');
132
$content = '<img src="' . $image_array[0] . '" alt="' . $featured->media_title . '" />';
133
break;
134
default :
app/main/controllers/media/RTMediaLike.php CHANGED
@@ -52,10 +52,10 @@ class RTMediaLike extends RTMediaUserInteraction {
52
$actions = intval($actions[ 0 ]->{$actionwa});
53
if ( $this->increase === true ) {
54
$actions ++;
55
- $return["next"] = $this->undo_label;
56
} else {
57
$actions --;
58
- $return["next"] = $this->label;
59
}
60
if($actions <0)
61
$actions = 0;
@@ -86,8 +86,15 @@ class RTMediaLike extends RTMediaUserInteraction {
86
}
87
function before_render(){
88
if($this->is_liked()){
89
- $this->label =$this->undo_label;
90
}
91
}
92
93
}
52
$actions = intval($actions[ 0 ]->{$actionwa});
53
if ( $this->increase === true ) {
54
$actions ++;
55
+ $return["next"] = "<span>" .$actions ."</span>" . $this->undo_label;
56
} else {
57
$actions --;
58
+ $return["next"] = "<span>" .$actions ."</span>" . $this->label;
59
}
60
if($actions <0)
61
$actions = 0;
86
}
87
function before_render(){
88
if($this->is_liked()){
89
+ $this->label = $this->undo_label;
90
}
91
+ $actions = $this->model->get( array( 'id' => $this->action_query->id ) );
92
+ if(isset($actions[ 0 ]->likes)){
93
+ $actions = intval($actions[ 0 ]->likes);
94
+ }else{
95
+ $actions = 0;
96
+ }
97
+ $this->label = "<span>" .$actions ."</span>" . $this->label;
98
}
99
100
}
app/main/controllers/media/RTMediaMedia.php CHANGED
@@ -238,11 +238,25 @@ class RTMediaMedia {
238
239
if ($media) {
240
/* delete meta */
241
- delete_rtmedia_meta($id);
242
- if ($media[0]->activity_id && function_exists('bp_activity_delete_by_activity_id'))
243
- bp_activity_delete_by_activity_id ($media[0]->activity_id);
244
if(!$core)
245
- wp_delete_post($media[0]->media_id, true);
246
$status = $this->model->delete(array('id' => $id));
247
}
248
238
239
if ($media) {
240
/* delete meta */
241
+ //delete_rtmedia_meta($id);
242
+ if ($media[0]->activity_id && function_exists('bp_activity_delete_by_activity_id')){
243
+ $related_media = $this->model->get(array('activity_id' => $media[0]->activity_id), false, false);
244
+ if(count($related_media) > 1 ){
245
+ $activity_media = array();
246
+ foreach($related_media as $temp_media){
247
+ if($temp_media->id == $id)
248
+ continue;
249
+ $activity_media[] = $temp_media->id;
250
+ }
251
+ $objActivity = new RTMediaActivity($activity_media);
252
+ global $wpdb, $bp;
253
+ $wpdb->update($bp->activity->table_name, array("type" => "rtmedia_update", "content" => $objActivity->create_activity_html()), array("id" => $media[0]->activity_id));
254
+ }else{
255
+ bp_activity_delete_by_activity_id ($media[0]->activity_id);
256
+ }
257
+ }
258
if(!$core)
259
+ wp_delete_attachment($media[0]->media_id, true);
260
$status = $this->model->delete(array('id' => $id));
261
}
262
app/main/controllers/privacy/RTMediaPrivacy.php CHANGED
@@ -1,5 +1,4 @@
1
<?php
2
-
3
/*
4
* To change this template, choose Tools | Templates
5
* and open the template in the editor.
@@ -12,267 +11,265 @@
12
*/
13
class RTMediaPrivacy {
14
15
-
16
- /**
17
- *
18
- * @var object default application wide privacy levels
19
- */
20
- public $default_privacy;
21
-
22
- function __construct() {
23
- add_action('rtmedia_after_file_upload_ui',array($this,'uploader_privacy_ui'));
24
- add_action('rtmedia_add_edit_fields',array($this,'select_privacy_ui'));
25
- add_action('bp_init',array($this,'add_nav'));
26
- add_action('bp_template_content',array($this,'content'));
27
- add_filter('bp_activity_get_user_join_filter',array($this,'activity_privacy'),10,6);
28
- }
29
-
30
- function uploader_privacy_ui($attr){
31
- if(!isset($attr['privacy'])) {
32
- global $rtmedia;
33
- if($rtmedia->options["privacy_enabled"] != "0")
34
- $this->select_privacy_ui();
35
- }
36
- }
37
-
38
- function select_privacy_ui() {
39
- global $rtmedia_media;
40
- $default = 0;
41
- if(isset($rtmedia_media->privacy))
42
- $default = $rtmedia_media->privacy;
43
-
44
- $form = new rtForm();
45
- $attributes = array(
46
- 'name' => 'privacy',
47
- 'id' => 'privacy'
48
- );
49
- global $rtmedia;
50
- $privacy_levels = $rtmedia->privacy_settings['levels'];
51
- if(class_exists('BuddyPress')){
52
- if(!bp_is_active('friends')){
53
- unset($privacy_levels[40]);
54
- }
55
- }else{
56
- unset($privacy_levels[40]);
57
- }
58
- foreach ( $privacy_levels as $key => $value) {
59
- $privacy = explode(' - ', $value);
60
- $attributes['rtForm_options'][] = array(
61
- $privacy[0] => $key,
62
- 'selected' => ($key==$default) ? 1 : 0
63
- );
64
- }
65
-
66
-
67
- echo $form->get_select($attributes);
68
- }
69
-
70
- public function system_default(){
71
- return 0;
72
- }
73
-
74
- public function site_default(){
75
- global $rtmedia;
76
-
77
- return rtmedia_get_site_option('privacy_settings');
78
- }
79
-
80
- public function user_default(){
81
- return;
82
-
83
- }
84
-
85
- public function get_default(){
86
- $default_privacy = $this->user_default();
87
-
88
- if($default_privacy===false){
89
- $default_privacy = $this->site_default();
90
- }
91
-
92
- if(!$default_privacy ===false){
93
- $default_privacy = $this->system_default();
94
- }
95
- }
96
-
97
-
98
- static function is_enabled() {
99
- global $bp_media;
100
- $options = $bp_media->options;
101
- if ( ! array_key_exists( 'privacy_enabled', $options ) ) {
102
- return false;
103
- } else {
104
- if ( $options[ 'privacy_enabled' ] != true ) {
105
- return false;
106
- }
107
- }
108
- return true;
109
- }
110
-
111
- static function save_user_default( $level = 0, $user_id = false ) {
112
- if ( $user_id == false ) {
113
- global $bp;
114
- $user_id = $bp->loggedin_user->id;
115
- }
116
- return update_user_meta( $user_id, 'bp_media_privacy', $level );
117
- }
118
-
119
- static function get_user_default( $user_id = false ) {
120
- if ( $user_id == false ) {
121
- global $bp;
122
- $user_id = $bp->loggedin_user->id;
123
- }
124
- $user_privacy = get_user_meta( $user_id, 'bp_media_privacy', true );
125
- if ( $user_privacy === false ) {
126
-
127
- }
128
- return $user_privacy;
129
- }
130
-
131
- static function required_access( $object_id = false ) {
132
- if ( BPMediaPrivacy::is_enabled() == false )
133
- return;
134
- if ( $object_id == false )
135
- return;
136
- $privacy = BPMediaPrivacy::get_privacy( $object_id );
137
- $parent = get_post_field( 'post_parent', $object_id, 'raw' );
138
- $parent_privacy = BPMediaPrivacy::get_privacy( $parent );
139
-
140
- if ( $privacy === false ) {
141
- if ( $parent_privacy !== false ) {
142
- $privacy = $parent_privacy;
143
- } else {
144
- $privacy = BPMediaPrivacy::default_privacy();
145
- }
146
- }
147
- return $privacy;
148
- }
149
-
150
-
151
-
152
- function add_nav(){
153
-
154
- if ( bp_displayed_user_domain() ) {
155
- $user_domain = bp_displayed_user_domain();
156
- } elseif ( bp_loggedin_user_domain() ) {
157
- $user_domain = bp_loggedin_user_domain();
158
- } else {
159
- return;
160
- }
161
-
162
-
163
-
164
- $settings_link = trailingslashit( $user_domain . 'settings' );
165
-
166
- $defaults = array(
167
- 'name' => $this->title(), // Display name for the nav item
168
- 'slug' => 'privacy', // URL slug for the nav item
169
- 'parent_slug' => 'settings', // URL slug of the parent nav item
170
- 'parent_url' => $settings_link, // URL of the parent item
171
- 'item_css_id' => 'rtmedia-privacy-settings', // The CSS ID to apply to the HTML of the nav item
172
- 'user_has_access' => true, // Can the logged in user see this nav item?
173
- 'site_admin_only' => false, // Can only site admins see this nav item?
174
- 'position' => 900, // Index of where this nav item should be positioned
175
- 'screen_function' => array($this,'settings_ui'), // The name of the function to run when clicked
176
- 'link' => '' // The link for the subnav item; optional, not usually required.
177
- );
178
- bp_core_new_subnav_item($defaults);
179
- }
180
-
181
- function settings_ui(){
182
- if ( bp_action_variables() ) {
183
- bp_do_404();
184
- return;
185
- }
186
-
187
-
188
- // Load the template
189
- bp_core_load_template( apply_filters( 'bp_settings_screen_delete_account', 'members/single/plugins' ) );
190
-
191
- }
192
-
193
- function content(){
194
- if (buddypress()->current_action != 'privacy') return;
195
-
196
- global $rtmedia;
197
- $default_user_privacy = array(
198
- 'title' => __("Default Privacy","rtmedia"),
199
- 'callback' => array("RTMediaFormHandler","radio"),
200
- 'args' => array(
201
- 'key' => 'privacy_default',
202
- 'radios' => $rtmedia->privacy_settings['levels'],
203
- 'default' => get_user_meta(get_current_user_id(),'rtmedia-default-privacy')
204
- )
205
- );
206
- ?>
207
- <div class="large-12">
208
- <div class="row section">
209
- <div class="columns large-2"><?php echo $default_user_privacy['title']; ?></div>
210
- <div class="columns large-5">
211
- <?php call_user_func($default_user_privacy['callback'], $default_user_privacy['args']); ?>
212
- </div>
213
- </div>
214
- </div>
215
- <?php }
216
-
217
- function title(){
218
- return __('Privacy','rtmedia');
219
- }
220
-
221
- function activity_privacy($sql, $select_sql, $from_sql, $where_sql,$sort,$pag_sql=''){
222
- //apply_filters( 'bp_activity_get_user_join_filter', "
223
- //"{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}",
224
- //$select_sql,
225
- //$from_sql,
226
- //$where_sql,
227
- //$sort,
228
- //$pag_sql
229
-
230
- $sql = '';
231
-
232
- $where = '';
233
234
// $from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID";
235
236
- global $bp,$wpdb;
237
-
238
- if ( is_user_logged_in() ) {
239
- $user = get_current_user_id();
240
- } else {
241
- $user = 0;
242
- }
243
-
244
- $where .= "AND (m.meta_value <= 0)";
245
-
246
- if ( $user ) {
247
- $where .= "OR ((m.meta_value=20)";
248
- $where .= " OR (a.user_id={$user} AND m.meta_value>=40)";
249
- if ( class_exists( 'BuddyPress' ) ) {
250
- if ( bp_is_active( 'friends' ) ) {
251
- $friendship = new RTMediaFriends();
252
- $friends = $friendship->get_friends_cache( $user );
253
- $where .= " OR (m.meta_value=40 AND a.user_id IN ('". implode("','", $friends)."'))";
254
- }
255
- }
256
- $where .= ')';
257
- }
258
- if (function_exists("bp_core_get_table_prefix"))
259
$bp_prefix = bp_core_get_table_prefix();
260
else
261
$bp_prefix = "";
262
263
- $select_sql = str_replace("SELECT", "SELECT distinct", $select_sql);
264
-
265
- $from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID LEFT JOIN {$bp->activity->table_name_meta} m ON a.id = m.activity_id";
266
- $where_sql = $where_sql . " AND (NOT EXISTS (SELECT m.activity_id FROM {$bp_prefix}bp_activity_meta m WHERE m.meta_key='rtmedia_privacy' AND m.activity_id=a.id) OR (m.meta_key='rtmedia_privacy' {$where} ) )";
267
- $newsql = "{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}";
268
- return $newsql;
269
-
270
- }
271
-
272
273
274
}
275
-
276
-
277
-
278
?>
1
<?php
2
/*
3
* To change this template, choose Tools | Templates
4
* and open the template in the editor.
11
*/
12
class RTMediaPrivacy {
13
14
+ /**
15
+ *
16
+ * @var object default application wide privacy levels
17
+ */
18
+ public $default_privacy;
19
+
20
+ function __construct() {
21
+ add_action('rtmedia_after_file_upload_ui', array($this, 'uploader_privacy_ui'));
22
+ add_action('rtmedia_add_edit_fields', array($this, 'select_privacy_ui'));
23
+ add_action('bp_init', array($this, 'add_nav'));
24
+ add_action('bp_template_content', array($this, 'content'));
25
+ add_filter('bp_activity_get_user_join_filter', array($this, 'activity_privacy'), 10, 6);
26
+ }
27
+
28
+ function uploader_privacy_ui($attr) {
29
+ if (!isset($attr['privacy'])) {
30
+ $this->select_privacy_ui();
31
+ }
32
+ }
33
+
34
+ function select_privacy_ui() {
35
+ global $rtmedia;
36
+
37
+ if (intval($rtmedia->options["privacy_enabled"]) === 0)
38
+ return false;
39
+
40
+ if (intval($rtmedia->options["privacy_userOverride"]) === 0)
41
+ return false;
42
+
43
+ global $rtmedia_media;
44
+ $default = 0;
45
+ if (isset($rtmedia_media->privacy))
46
+ $default = $rtmedia_media->privacy;
47
+ else
48
+ $default = intval($rtmedia->options["privacy_default"]);
49
+
50
+ $form = new rtForm();
51
+ $attributes = array(
52
+ 'name' => 'privacy',
53
+ 'id' => 'privacy'
54
+ );
55
+ global $rtmedia;
56
+ $privacy_levels = $rtmedia->privacy_settings['levels'];
57
+ if (class_exists('BuddyPress')) {
58
+ if (!bp_is_active('friends')) {
59
+ unset($privacy_levels[40]);
60
+ }
61
+ } else {
62
+ unset($privacy_levels[40]);
63
+ }
64
+ foreach ($privacy_levels as $key => $value) {
65
+ $privacy = explode(' - ', $value);
66
+ $attributes['rtForm_options'][] = array(
67
+ $privacy[0] => $key,
68
+ 'selected' => ($key == $default) ? 1 : 0
69
+ );
70
+ }
71
+
72
+
73
+ echo $form->get_select($attributes);
74
+ }
75
+
76
+ public function system_default() {
77
+ return 0;
78
+ }
79
+
80
+ public function site_default() {
81
+ global $rtmedia;
82
+
83
+ return rtmedia_get_site_option('privacy_settings');
84
+ }
85
+
86
+ public function user_default() {
87
+ return;
88
+ }
89
+
90
+ public function get_default() {
91
+ $default_privacy = $this->user_default();
92
+
93
+ if ($default_privacy === false) {
94
+ $default_privacy = $this->site_default();
95
+ }
96
+
97
+ if (!$default_privacy === false) {
98
+ $default_privacy = $this->system_default();
99
+ }
100
+ }
101
+
102
+ static function is_enabled() {
103
+ global $bp_media;
104
+ $options = $bp_media->options;
105
+ if (!array_key_exists('privacy_enabled', $options)) {
106
+ return false;
107
+ } else {
108
+ if ($options['privacy_enabled'] != true) {
109
+ return false;
110
+ }
111
+ }
112
+ return true;
113
+ }
114
+
115
+ static function save_user_default($level = 0, $user_id = false) {
116
+ if ($user_id == false) {
117
+ global $bp;
118
+ $user_id = $bp->loggedin_user->id;
119
+ }
120
+ return update_user_meta($user_id, 'bp_media_privacy', $level);
121
+ }
122
+
123
+ static function get_user_default($user_id = false) {
124
+ if ($user_id == false) {
125
+ global $bp;
126
+ $user_id = $bp->loggedin_user->id;
127
+ }
128
+ $user_privacy = get_user_meta($user_id, 'bp_media_privacy', true);
129
+ if ($user_privacy === false) {
130
+
131
+ }
132
+ return $user_privacy;
133
+ }
134
+
135
+ static function required_access($object_id = false) {
136
+ if (BPMediaPrivacy::is_enabled() == false)
137
+ return;
138
+ if ($object_id == false)
139
+ return;
140
+ $privacy = BPMediaPrivacy::get_privacy($object_id);
141
+ $parent = get_post_field('post_parent', $object_id, 'raw');
142
+ $parent_privacy = BPMediaPrivacy::get_privacy($parent);
143
+
144
+ if ($privacy === false) {
145
+ if ($parent_privacy !== false) {
146
+ $privacy = $parent_privacy;
147
+ } else {
148
+ $privacy = BPMediaPrivacy::default_privacy();
149
+ }
150
+ }
151
+ return $privacy;
152
+ }
153
+
154
+ function add_nav() {
155
+
156
+ if (bp_displayed_user_domain()) {
157
+ $user_domain = bp_displayed_user_domain();
158
+ } elseif (bp_loggedin_user_domain()) {
159
+ $user_domain = bp_loggedin_user_domain();
160
+ } else {
161
+ return;
162
+ }
163
+
164
+
165
+
166
+ $settings_link = trailingslashit($user_domain . 'settings');
167
+
168
+ $defaults = array(
169
+ 'name' => $this->title(), // Display name for the nav item
170
+ 'slug' => 'privacy', // URL slug for the nav item
171
+ 'parent_slug' => 'settings', // URL slug of the parent nav item
172
+ 'parent_url' => $settings_link, // URL of the parent item
173
+ 'item_css_id' => 'rtmedia-privacy-settings', // The CSS ID to apply to the HTML of the nav item
174
+ 'user_has_access' => true, // Can the logged in user see this nav item?
175
+ 'site_admin_only' => false, // Can only site admins see this nav item?
176
+ 'position' => 900, // Index of where this nav item should be positioned
177
+ 'screen_function' => array($this, 'settings_ui'), // The name of the function to run when clicked
178
+ 'link' => '' // The link for the subnav item; optional, not usually required.
179
+ );
180
+ bp_core_new_subnav_item($defaults);
181
+ }
182
+
183
+ function settings_ui() {
184
+ if (bp_action_variables()) {
185
+ bp_do_404();
186
+ return;
187
+ }
188
+
189
+
190
+ // Load the template
191
+ bp_core_load_template(apply_filters('bp_settings_screen_delete_account', 'members/single/plugins'));
192
+ }
193
+
194
+ function content() {
195
+ if (buddypress()->current_action != 'privacy')
196
+ return;
197
+
198
+ global $rtmedia;
199
+ $default_user_privacy = array(
200
+ 'title' => __("Default Privacy", "rtmedia"),
201
+ 'callback' => array("RTMediaFormHandler", "radio"),
202
+ 'args' => array(
203
+ 'key' => 'privacy_default',
204
+ 'radios' => $rtmedia->privacy_settings['levels'],
205
+ 'default' => get_user_meta(get_current_user_id(), 'rtmedia-default-privacy')
206
+ )
207
+ );
208
+ ?>
209
+ <div class="large-12">
210
+ <div class="row section">
211
+ <div class="columns large-2"><?php echo $default_user_privacy['title']; ?></div>
212
+ <div class="columns large-5">
213
+ <?php call_user_func($default_user_privacy['callback'], $default_user_privacy['args']); ?>
214
+ </div>
215
+ </div>
216
+ </div>
217
+ <?php
218
+ }
219
+
220
+ function title() {
221
+ return __('Privacy', 'rtmedia');
222
+ }
223
+
224
+ function activity_privacy($sql, $select_sql, $from_sql, $where_sql, $sort, $pag_sql = '') {
225
+ //apply_filters( 'bp_activity_get_user_join_filter', "
226
+ //"{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}",
227
+ //$select_sql,
228
+ //$from_sql,
229
+ //$where_sql,
230
+ //$sort,
231
+ //$pag_sql
232
+
233
+ $sql = '';
234
+
235
+ $where = '';
236
237
// $from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID";
238
239
+ global $bp, $wpdb;
240
+
241
+ if (is_user_logged_in()) {
242
+ $user = get_current_user_id();
243
+ } else {
244
+ $user = 0;
245
+ }
246
+
247
+ $where .= "AND (m.meta_value <= 0)";
248
+
249
+ if ($user) {
250
+ $where .= "OR ((m.meta_value=20)";
251
+ $where .= " OR (a.user_id={$user} AND m.meta_value>=40)";
252
+ if (class_exists('BuddyPress')) {
253
+ if (bp_is_active('friends')) {
254
+ $friendship = new RTMediaFriends();
255
+ $friends = $friendship->get_friends_cache($user);
256
+ $where .= " OR (m.meta_value=40 AND a.user_id IN ('" . implode("','", $friends) . "'))";
257
+ }
258
+ }
259
+ $where .= ')';
260
+ }
261
+ if (function_exists("bp_core_get_table_prefix"))
262
$bp_prefix = bp_core_get_table_prefix();
263
else
264
$bp_prefix = "";
265
266
+ $select_sql = str_replace("SELECT", "SELECT distinct", $select_sql);
267
268
+ $from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID LEFT JOIN {$bp->activity->table_name_meta} m ON a.id = m.activity_id";
269
+ $where_sql = $where_sql . " AND (NOT EXISTS (SELECT m.activity_id FROM {$bp_prefix}bp_activity_meta m WHERE m.meta_key='rtmedia_privacy' AND m.activity_id=a.id) OR (m.meta_key='rtmedia_privacy' {$where} ) )";
270
+ $newsql = "{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}";
271
+ return $newsql;
272
+ }
273
274
}
275
?>
app/main/controllers/template/RTMediaNav.php CHANGED
@@ -50,12 +50,12 @@ class RTMediaNav {
50
'default_subnav_slug' => 'all'
51
) );
52
}
53
-
54
if ( bp_is_group() && $rtmedia->options["buddypress_enableOnGroup"]!==0 ) {
55
global $bp;
56
$bp->bp_options_nav[ bp_get_current_group_slug() ][ 'media' ] = array(
57
'name' => RTMEDIA_MEDIA_LABEL,//. '<span>'.$counts['total']['all'].'</span>',
58
- 'link' => ( (is_multisite()) ? get_site_url( get_current_blog_id() ) : get_site_url() ) . '/groups/' . bp_get_current_group_slug() . '/media',
59
'slug' => RTMEDIA_MEDIA_SLUG,
60
'user_has_access' => true,
61
'css_id' => 'rtmedia-media-nav',
50
'default_subnav_slug' => 'all'
51
) );
52
}
53
+
54
if ( bp_is_group() && $rtmedia->options["buddypress_enableOnGroup"]!==0 ) {
55
global $bp;
56
$bp->bp_options_nav[ bp_get_current_group_slug() ][ 'media' ] = array(
57
'name' => RTMEDIA_MEDIA_LABEL,//. '<span>'.$counts['total']['all'].'</span>',
58
+ 'link' => ( (is_multisite()) ? get_site_url( get_current_blog_id() ) : get_site_url() ) . '/' . bp_get_groups_root_slug() . '/' . bp_get_current_group_slug() . '/media',
59
'slug' => RTMEDIA_MEDIA_SLUG,
60
'user_has_access' => true,
61
'css_id' => 'rtmedia-media-nav',
app/main/controllers/template/rt-template-functions.php CHANGED
@@ -125,16 +125,16 @@ function rtmedia_permalink() {
125
}
126
}
127
128
- function rtmedia_media($size_flag, $echo = true) {
129
$size_flag = true;
130
global $rtmedia_media, $rtmedia;
131
if (isset($rtmedia_media->media_type)) {
132
if ($rtmedia_media->media_type == 'photo') {
133
- $html = wp_get_attachment_image($rtmedia_media->media_id, 'large');
134
} elseif ($rtmedia_media->media_type == 'video') {
135
$size = " width=\"" . $rtmedia->options["defaultSizes_video_singlePlayer_width"] . "\" height=\"" . $rtmedia->options["defaultSizes_video_singlePlayer_height"] . "\" ";
136
137
- $html = '<video src="' . wp_get_attachment_url($rtmedia_media->media_id) . '" ' . $size . ' type="video/mp4" class="wp-video-shortcode" id="bp_media_video_' . $rtmedia_media->id . '" controls="controls" preload="none"></video>';
138
} elseif ($rtmedia_media->media_type == 'music') {
139
$size = ' width="600" height="0" ';
140
if (!$size_flag)
@@ -437,7 +437,7 @@ function rtmedia_pagination_prev_link() {
437
$link = $site_url . 'author/' . $author_name . '/';
438
} else if ($rtmedia_interaction->context->type == 'group') {
439
if (function_exists("bp_get_current_group_slug"))
440
- $link .= $site_url . 'groups/' . bp_get_current_group_slug() . '/';
441
} else {
442
$post = get_post($rtmedia_media->post_parent);
443
@@ -469,7 +469,7 @@ function rtmedia_pagination_next_link() {
469
$link .= $site_url . 'author/' . $author_name . '/';
470
} else if ($rtmedia_interaction->context->type == 'group') {
471
if (function_exists("bp_get_current_group_slug"))
472
- $link .= $site_url . 'groups/' . bp_get_current_group_slug() . '/';
473
} else {
474
$post = get_post($rtmedia_media->post_parent);
475
125
}
126
}
127
128
+ function rtmedia_media($size_flag = true, $echo = true,$media_size = "rt_media_single_image") {
129
$size_flag = true;
130
global $rtmedia_media, $rtmedia;
131
if (isset($rtmedia_media->media_type)) {
132
if ($rtmedia_media->media_type == 'photo') {
133
+ $html = wp_get_attachment_image($rtmedia_media->media_id, $media_size);
134
} elseif ($rtmedia_media->media_type == 'video') {
135
$size = " width=\"" . $rtmedia->options["defaultSizes_video_singlePlayer_width"] . "\" height=\"" . $rtmedia->options["defaultSizes_video_singlePlayer_height"] . "\" ";
136
137
+ $html = '<div class="flex-video"><video src="' . wp_get_attachment_url($rtmedia_media->media_id) . '" ' . $size . ' type="video/mp4" class="wp-video-shortcode" id="bp_media_video_' . $rtmedia_media->id . '" controls="controls" preload="none"></video></div>';
138
} elseif ($rtmedia_media->media_type == 'music') {
139
$size = ' width="600" height="0" ';
140
if (!$size_flag)
437
$link = $site_url . 'author/' . $author_name . '/';
438
} else if ($rtmedia_interaction->context->type == 'group') {
439
if (function_exists("bp_get_current_group_slug"))
440
+ $link .= $site_url . bp_get_groups_root_slug (). '/' . bp_get_current_group_slug() . '/';
441
} else {
442
$post = get_post($rtmedia_media->post_parent);
443
469
$link .= $site_url . 'author/' . $author_name . '/';
470
} else if ($rtmedia_interaction->context->type == 'group') {
471
if (function_exists("bp_get_current_group_slug"))
472
+ $link .= $site_url . bp_get_groups_root_slug() . '/' . bp_get_current_group_slug() . '/';
473
} else {
474
$post = get_post($rtmedia_media->post_parent);
475
app/schema/rtm_media.schema CHANGED
@@ -20,11 +20,11 @@ CREATE TABLE %s (
20
ratings_average decimal(4,2) NULL DEFAULT 0 ,
21
likes bigint(20) NULL DEFAULT 0 ,
22
dislikes bigint(20) NULL DEFAULT 0 ,
23
- PRIMARY KEY (id),
24
KEY media_id (media_id),
25
KEY media_author (media_author),
26
KEY album_id (album_id),
27
KEY media_author_id (album_id,media_author),
28
KEY context_author_album_id (context_id,album_id,media_author),
29
- KEY context(context)
30
);
20
ratings_average decimal(4,2) NULL DEFAULT 0 ,
21
likes bigint(20) NULL DEFAULT 0 ,
22
dislikes bigint(20) NULL DEFAULT 0 ,
23
+ PRIMARY KEY (id),
24
KEY media_id (media_id),
25
KEY media_author (media_author),
26
KEY album_id (album_id),
27
KEY media_author_id (album_id,media_author),
28
KEY context_author_album_id (context_id,album_id,media_author),
29
+ KEY context_data (context)
30
);
app/schema/rtm_media_meta.schema CHANGED
@@ -3,5 +3,5 @@ CREATE TABLE %s (
3
media_id bigint(20) NOT NULL DEFAULT 0,
4
meta_key varchar(255),
5
meta_value longtext,
6
- PRIMARY KEY (id)
7
);
3
media_id bigint(20) NOT NULL DEFAULT 0,
4
meta_key varchar(255),
5
meta_value longtext,
6
+ PRIMARY KEY (id)
7
);
index.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
- Version: 3.0.3
7
Author: rtCamp
8
Text Domain: rtmedia
9
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
3
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
+ Version: 3.0.4
7
Author: rtCamp
8
Text Domain: rtmedia
9
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
readme.txt CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Requires at least: WordPress 3.5
8
Tested up to: WordPress 3.5.2 + BuddyPress 1.7
9
- Stable tag: 3.0.3
10
11
rtMedia adds albums, audio/video encoding, privacy/sharing, front-end uploads & more. All this works nicely on mobile/tablets devices.
12
@@ -160,6 +160,15 @@ Please visit [rtMedia's Features page](http://rtcamp.com/buddypress-media/?utm_s
160
161
Please visit [rtMedia's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
162
163
= 3.0.3 =
164
* Improved template system
165
* Fixed bug with audio/video uploads
@@ -476,8 +485,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/buddypress-media/roadmap
476
477
== Upgrade Notice ==
478
479
- = 3.0.3 =
480
- Fixed bugs. Improved template system.
481
482
== Sponsors ==
483
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Requires at least: WordPress 3.5
8
Tested up to: WordPress 3.5.2 + BuddyPress 1.7
9
+ Stable tag: 3.0.4
10
11
rtMedia adds albums, audio/video encoding, privacy/sharing, front-end uploads & more. All this works nicely on mobile/tablets devices.
12
160
161
Please visit [rtMedia's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
162
163
+ = 3.0.4 =
164
+ * Handle delete media and activity
165
+ * Add like button count
166
+ * Hide buddypress tab if not active
167
+ * Fixed https problem in plugin update
168
+ * Fixed image size issue
169
+ * Fixed privacy issue
170
+ * Other minor bug fixes
171
+
172
= 3.0.3 =
173
* Improved template system
174
* Fixed bug with audio/video uploads
485
486
== Upgrade Notice ==
487
488
+ = 3.0.4 =
489
+ Handle delete media and activity,Add like button count,Fixed image size issue privacy issue Other minor bug fixes
490
491
== Sponsors ==
492
templates/media/media-gallery-item.php CHANGED
@@ -35,7 +35,7 @@ if ( isset( $_POST[ 'is_edit_allowed' ] ) )
35
<a href ="<?php rtmedia_permalink(); ?>">
36
<div class="rtmedia-item-thumbnail">
37
38
- <img src="<?php rtmedia_image(); ?>" >
39
40
</div>
41
35
<a href ="<?php rtmedia_permalink(); ?>">
36
<div class="rtmedia-item-thumbnail">
37
38
+ <img src="<?php rtmedia_image("rt_media_thumbnail"); ?>" >
39
40
</div>
41
templates/media/media-single.php CHANGED
@@ -7,7 +7,7 @@
7
<?php rtmedia_title(); ?>
8
9
10
- <div class="rtmedia-media flex-video" id ="rtmedia-media-<?php echo rtmedia_id(); ?>">
11
<?php rtmedia_media(true); ?>
12
</div>
13
7
<?php rtmedia_title(); ?>
8
9
10
+ <div class="rtmedia-media" id ="rtmedia-media-<?php echo rtmedia_id(); ?>">
11
<?php rtmedia_media(true); ?>
12
</div>
13
trunk/CONTRIBUTING.md ADDED
@@ -0,0 +1,19 @@
1
+ # Contribute to rtMedia
2
+
3
+ This guide details how to use issues and pull requests to improve rtMedia.
4
+
5
+ ## Closing policy for issues
6
+
7
+ Github issue-tracker is used **only** for developer & contributor discussion.
8
+
9
+ For support-request/feature-request, please use - http://rtcamp.com/rtmedia/support/
10
+
11
+ ## Translation
12
+
13
+ Please do NOT send pull-request for translations.
14
+
15
+ You can contribute transaltions using web-interface here - http://rtcamp.com/translate/projects/rtmedia
16
+
17
+ ## Pull Requests
18
+
19
+ Please inclued your wordpress.org username while sending pull-request so that we can add you to contributors list.
trunk/app/admin/RTMediaAdmin.php ADDED
@@ -0,0 +1,732 @@
1
+ <?php
2
+ /**
3
+ * Description of RTMediaAdmin
4
+ *
5
+ * @package RTMedia
6
+ * @subpackage Admin
7
+ *
8
+ */
9
+ if (!class_exists('RTMediaAdmin')) {
10
+
11
+ class RTMediaAdmin {
12
+
13
+ public $rtmedia_upgrade;
14
+ public $rtmedia_settings;
15
+ public $rtmedia_encoding;
16
+ public $rtmedia_support;
17
+ public $rtmedia_feed;
18
+
19
+ public function __construct() {
20
+ global $rtmedia;
21
+ add_action('init', array($this, 'video_transcoding_survey_response'));
22
+ if (is_multisite()) {
23
+ add_action('network_admin_notices', array($this, 'upload_filetypes_error'));
24
+ add_action('admin_notices', array($this, 'upload_filetypes_error'));
25
+ }
26
+ $rtmedia_feed = new RTMediaFeed();
27
+ add_filter("plugin_action_links_" . RTMEDIA_BASE_NAME, array(&$this, 'plugin_add_settings_link'));
28
+ add_action('wp_ajax_rtmedia_fetch_feed', array($rtmedia_feed, 'fetch_feed'), 1);
29
+ $this->rtmedia_support = new RTMediaSupport();
30
+ add_action('wp_ajax_rtmedia_select_request', array($this->rtmedia_support, 'get_form'), 1);
31
+ add_action('wp_ajax_rtmedia_cancel_request', create_function('', 'do_settings_sections("rtmedia-support"); die();'), 1);
32
+ add_action('wp_ajax_rtmedia_submit_request', array($this->rtmedia_support, 'submit_request'), 1);
33
+ add_action('wp_ajax_rtmedia_fetch_feed', array($rtmedia_feed, 'fetch_feed'), 1);
34
+ add_action('wp_ajax_rtmedia_linkback', array($this, 'linkback'), 1);
35
+ add_action('wp_ajax_rtmedia_rt_album_deactivate', 'BPMediaAlbumimporter::bp_album_deactivate', 1);
36
+ add_action('wp_ajax_rtmedia_rt_album_import', 'BPMediaAlbumimporter::bpmedia_ajax_import_callback', 1);
37
+ add_action('wp_ajax_rtmedia_rt_album_import_favorites', 'BPMediaAlbumimporter::bpmedia_ajax_import_favorites', 1);
38
+ add_action('wp_ajax_rtmedia_rt_album_import_step_favorites', 'BPMediaAlbumimporter::bpmedia_ajax_import_step_favorites', 1);
39
+ add_action('wp_ajax_rtmedia_rt_album_cleanup', 'BPMediaAlbumimporter::cleanup_after_install');
40
+ add_action('wp_ajax_rtmedia_convert_videos_form', array($this, 'convert_videos_mailchimp_send'), 1);
41
+ add_action('wp_ajax_rtmedia_correct_upload_filetypes', array($this, 'correct_upload_filetypes'), 1);
42
+ add_filter('plugin_row_meta', array($this, 'plugin_meta_premium_addon_link'), 1, 4);
43
+
44
+ if (isset($_POST["rtmedia-options"])) {
45
+ if (isset($_POST["rtmedia-options"]["general_showAdminMenu"]) && $_POST["rtmedia-options"]["general_showAdminMenu"] == "1")
46
+ add_action('admin_bar_menu', array($this, 'admin_bar_menu'), 100, 1);
47
+ }else if (intval($rtmedia->options["general_showAdminMenu"]) == 1) {
48
+ add_action('admin_bar_menu', array($this, 'admin_bar_menu'), 100, 1);
49
+ }
50
+
51
+ if (is_admin()) {
52
+ add_action('admin_enqueue_scripts', array($this, 'ui'));
53
+ //bp_core_admin_hook();
54
+ add_action('admin_menu', array($this, 'menu'), 1);
55
+
56
+ if (current_user_can('manage_options'))
57
+ add_action('bp_admin_tabs', array($this, 'tab'));
58
+ if (is_multisite())
59
+ add_action('network_admin_edit_rtmedia', array($this, 'save_multisite_options'));
60
+ }
61
+ $this->rtmedia_settings = new RTMediaSettings();
62
+ $this->rtmedia_encoding = new RTMediaEncoding();
63
+ }
64
+
65
+ function plugin_add_settings_link($links) {
66
+ $settings_link = '<a href="' . admin_url('admin.php?page=rtmedia-settings') . '">Settings</a>';
67
+ array_push($links, $settings_link);
68
+ $settings_link = '<a href="' . admin_url('admin.php?page=rtmedia-support') . '">Support</a>';
69
+ array_push($links, $settings_link);
70
+ return $links;
71
+ }
72
+
73
+ function admin_bar_menu($admin_bar) {
74
+ if (!current_user_can('manage_options'))
75
+ return;
76
+
77
+ $admin_bar->add_menu(array(
78
+ 'id' => 'rtMedia',
79
+ 'title' => 'rtMedia',
80
+ 'href' => admin_url('admin.php?page=rtmedia-settings'),
81
+ 'meta' => array(
82
+ 'title' => __('rtMedia'),
83
+ ),
84
+ ));
85
+ $admin_bar->add_menu(array(
86
+ 'id' => 'rt-media-dashborad',
87
+ 'parent' => 'rtMedia',
88
+ 'title' => __('Settings', "rtmedia"),
89
+ 'href' => admin_url('admin.php?page=rtmedia-settings'),
90
+ 'meta' => array(
91
+ 'title' => __('Settings'),
92
+ 'target' => '_self',
93
+ ),
94
+ ));
95
+ $admin_bar->add_menu(array(
96
+ 'id' => 'rt-media-addons',
97
+ 'parent' => 'rtMedia',
98
+ 'title' => __('Addons', "rtmedia"),
99
+ 'href' => admin_url('admin.php?page=rtmedia-addons'),
100
+ 'meta' => array(
101
+ 'title' => __('Addons'),
102
+ 'target' => '_self',
103
+ ),
104
+ ));
105
+ $admin_bar->add_menu(array(
106
+ 'id' => 'rt-media-support',
107
+ 'parent' => 'rtMedia',
108
+ 'title' => __('Support', "rtmedia"),
109
+ 'href' => admin_url('admin.php?page=rtmedia-support'),
110
+ 'meta' => array(
111
+ 'title' => __('Support'),
112
+ 'target' => '_self',
113
+ ),
114
+ ));
115
+ }
116
+
117
+ /**
118
+ * Generates the Admin UI.
119
+ *
120
+ * @param string $hook
121
+ */
122
+
123
+ /**
124
+ *
125
+ * @param type $hook
126
+ */
127
+ public function ui($hook) {
128
+ $admin_pages = array(
129
+ 'rtmedia_page_rtmedia-migration',
130
+ 'rtmedia_page_rtmedia-kaltura-settings',
131
+ 'rtmedia_page_rtmedia-ffmpeg-settings',
132
+ 'toplevel_page_rtmedia-settings',
133
+ 'rtmedia_page_rtmedia-addons',
134
+ 'rtmedia_page_rtmedia-support',
135
+ 'rtmedia_page_rtmedia-importer'
136
+ );
137
+ $admin_pages = apply_filters('rtmedia_filter_admin_pages_array', $admin_pages);
138
+
139
+ if (in_array($hook, $admin_pages)) {
140
+ $admin_ajax = admin_url('admin-ajax.php');
141
+
142
+ wp_enqueue_script('bootstrap-switch', RTMEDIA_URL . 'app/assets/js/bootstrap-switch.js', array('jquery'), RTMEDIA_VERSION);
143
+ wp_enqueue_script('slider-tabs', RTMEDIA_URL . 'app/assets/js/jquery.sliderTabs.min.js', array('jquery', 'jquery-effects-core'), RTMEDIA_VERSION);
144
+ wp_enqueue_script('power-tip', RTMEDIA_URL . 'app/assets/js/jquery.powertip.min.js', array('jquery'), RTMEDIA_VERSION);
145
+ wp_enqueue_script('observe-hashchange', RTMEDIA_URL . 'app/assets/js/jquery.observehashchange.pack.js', array('jquery'), RTMEDIA_VERSION);
146
+ wp_enqueue_script('rtmedia-admin', RTMEDIA_URL . 'app/assets/js/admin.js', array('jquery-ui-dialog'), RTMEDIA_VERSION);
147
+ wp_localize_script('rtmedia-admin', 'rtmedia_on_label', __('ON', 'rtmedia'));
148
+ wp_localize_script('rtmedia-admin', 'rtmedia_off_label', __('OFF', 'rtmedia'));
149
+ wp_localize_script('rtmedia-admin', 'rtmedia_admin_ajax', $admin_ajax);
150
+ wp_localize_script('rtmedia-admin', 'rtmedia_admin_url', admin_url());
151
+ wp_localize_script('rtmedia-admin', 'rtmedia_admin_url', admin_url());
152
+ $rtmedia_admin_strings = array(
153
+ 'no_refresh' => __('Please do not refresh this page.', 'rtmedia'),
154
+ 'something_went_wrong' => __('Something went wronng. Please <a href onclick="location.reload();">refresh</a> page.', 'rtmedia'),
155
+ 'are_you_sure' => __('This will subscribe you to the free plan.', 'rtmedia'),
156
+ 'disable_encoding' => __('Are you sure you want to disable the encoding service? Make sure you note your api key before disabling it incase you want to activate it in future.', 'rtmedia')
157
+ );
158
+ wp_localize_script('rtmedia-admin', 'rtmedia_admin_strings', $rtmedia_admin_strings);
159
+ wp_localize_script('rtmedia-admin', 'settings_url', add_query_arg(
160
+ array('page' => 'rtmedia-settings'), (is_multisite() ? network_admin_url('admin.php') : admin_url('admin.php'))
161
+ ) . '#privacy_enabled');
162
+ wp_localize_script('rtmedia-admin', 'settings_rt_album_import_url', add_query_arg(
163
+ array('page' => 'rtmedia-settings'), (is_multisite() ? network_admin_url('admin.php') : admin_url('admin.php'))
164
+ ));
165
+ wp_enqueue_style('font-awesome', RTMEDIA_URL . 'app/assets/css/font-awesome.min.css', '', RTMEDIA_VERSION);
166
+ wp_enqueue_style('bootstrap-switch', RTMEDIA_URL . 'app/assets/css/bootstrap-switch.css', '', RTMEDIA_VERSION);
167
+ wp_enqueue_style('slider-tabs', RTMEDIA_URL . 'app/assets/css/jquery.sliderTabs.min.css', '', RTMEDIA_VERSION);
168
+ wp_enqueue_style('power-tip', RTMEDIA_URL . 'app/assets/css/jquery.powertip.min.css', '', RTMEDIA_VERSION);
169
+ wp_enqueue_style('grid-foundation', RTMEDIA_URL . 'app/assets/css/grid-foundation.css', '', RTMEDIA_VERSION);
170
+ wp_enqueue_style('rtmedia-main', RTMEDIA_URL . 'app/assets/css/main.css', '', RTMEDIA_VERSION);
171
+ wp_enqueue_style('rtmedia-admin', RTMEDIA_URL . 'app/assets/css/admin.css', '', RTMEDIA_VERSION);
172
+ wp_enqueue_style('wp-jquery-ui-dialog');
173
+ }
174
+ }
175
+
176
+ /**
177
+ * Admin Menu
178
+ *
179
+ * @global string 'rtmedia'
180
+ */
181
+ public function menu() {
182
+ add_menu_page('rtMedia', 'rtMedia', 'manage_options', 'rtmedia-settings', array($this, 'settings_page'));
183
+ add_submenu_page('rtmedia-settings', __('Settings', 'rtmedia'), __('Settings', 'rtmedia'), 'manage_options', 'rtmedia-settings', array($this, 'settings_page'));
184
+ add_submenu_page('rtmedia-settings', __('Addons', 'rtmedia'), __('Addons', 'rtmedia'), 'manage_options', 'rtmedia-addons', array($this, 'addons_page'));
185
+ add_submenu_page('rtmedia-settings', __('Support', 'rtmedia'), __('Support ', 'rtmedia'), 'manage_options', 'rtmedia-support', array($this, 'support_page'));
186
+ // add_submenu_page('rtmedia-settings', __('Importer', 'rtmedia'), __('Importer', 'rtmedia'), 'manage_options', 'rtmedia-importer', array($this, 'rt_importer_page'));
187
+ // if (!BPMediaPrivacy::is_installed()) {
188
+ // add_submenu_page('rtmedia-settings', __('rtMedia Database Update', 'rtmedia'), __('Update Database', 'rtmedia'), 'manage_options', 'rtmedia-db-update', array($this, 'privacy_page'));
189
+ // }
190
+ }
191
+
192
+ /**
193
+ * Render the BuddyPress Media Settings page
194
+ */
195
+ public function settings_page() {
196
+ $this->render_page('rtmedia-settings', 'rtmedia');
197
+ }
198
+
199
+ public function privacy_page() {
200
+ $this->render_page('rtmedia-privacy');
201
+ }
202
+
203
+ public function rt_importer_page() {
204
+ $this->render_page('rtmedia-importer');
205
+ }
206
+
207
+ public function convert_videos_page() {
208
+ $this->render_page('rtmedia-convert-videos');
209
+ }
210
+
211
+ /**
212
+ * Render the BuddyPress Media Addons page
213
+ */
214
+ public function addons_page() {
215
+ $this->render_page('rtmedia-addons');
216
+ }
217
+
218
+ /**
219
+ * Render the BuddyPress Media Support page
220
+ */
221
+ public function support_page() {
222
+ $this->render_page('rtmedia-support');
223
+ }
224
+
225
+ /**
226
+ *
227
+ * @return type
228
+ */
229
+ static function get_current_tab() {
230
+ return isset($_GET['page']) ? $_GET['page'] : "rtmedia-settings";
231
+ }
232
+
233
+ /**
234
+ * Render BPMedia Settings
235
+ *
236
+ * @global string 'rtmedia'
237
+ */
238
+
239
+ /**
240
+ *
241
+ * @param type $page
242
+ * @param type $option_group
243
+ */
244
+ public function render_page($page, $option_group = NULL) {
245
+ ?>
246
+
247
+ <div class="wrap bp-media-admin <?php echo $this->get_current_tab(); ?>">
248
+ <div id="icon-buddypress-media" class="icon32"><br></div>
249
+ <h2 class="nav-tab-wrapper"><?php $this->rtmedia_tabs(); ?></h2>
250
+ <?php settings_errors(); ?>
251
+ <div class="row">
252
+ <div id="bp-media-settings-boxes" class="columns large-7">
253
+ <?php
254
+ $settings_url = ( is_multisite() ) ? network_admin_url('edit.php?action=' . $option_group) : 'options.php';
255
+ ?>
256
+ <?php if ($option_group) { //$option_group if ($page == "bp-media-settings") action="<?php echo $settings_url; ?>
257
+ <form id="bp_media_settings_form" name="bp_media_settings_form" method="post" enctype="multipart/form-data">
258
+ <div class="bp-media-metabox-holder"><?php
259
+ settings_fields($option_group);
260
+ if ($page == "rtmedia-settings") {
261
+
262
+
263
+ echo '<div id="bpm-settings-tabs">';
264
+ $sub_tabs = $this->settings_sub_tabs();
265
+ RTMediaFormHandler::rtForm_settings_tabs_content($page, $sub_tabs);
266
+ echo '</div>';
267
+ } else {
268
+ do_settings_sections($page);
269
+ }
270
+ ?>
271
+ <div class="clearfix">&nbsp;</div>
272
+ <div class="row">
273
+ <input type="hidden" name="rtmedia-options-save" value="true">
274
+ <input type="submit" id="rtmedia-settings-submit" class="rtmedia-settings-submit button" value="<?php echo __("Save Settings", "rtmedia"); ?>">
275
+ </div>
276
+ <div class="rt-link alignright"><?php _e('By', 'rtmedia'); ?> <a href="http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" title="<?php _e('Empowering The Web With WordPress', 'rtmedia'); ?>"><img src="<?php echo RTMEDIA_URL; ?>app/assets/img/rtcamp-logo.png"></a></div>
277
+ </div>
278
+ </form><?php } else {
279
+ ?>
280
+ <div class="bp-media-metabox-holder">
281
+
282
+ <?php
283
+ if ($page == 'rtmedia-addons')
284
+ RTMediaAddon::render_addons($page);
285
+ else
286
+ do_settings_sections($page);
287
+ ?>
288
+ <?php
289
+ do_action('rtmedia_admin_page_insert', $page);
290
+ ?>
291
+ <div class="rt-link alignright"><?php _e('By', 'rtmedia'); ?> <a href="http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" title="<?php _e('Empowering The Web With WordPress', 'rtmedia'); ?>"><img src="<?php echo RTMEDIA_URL; ?>app/assets/img/rtcamp-logo.png"></a></div>
292
+ </div><?php
293
+ do_action('rtmedia_admin_page_append', $page);
294
+ }
295
+ ?>
296
+
297
+
298
+ </div><!-- .bp-media-settings-boxes -->
299
+ <div class="metabox-holder bp-media-metabox-holder columns large-3">
300
+ <?php $this->admin_sidebar(); ?>
301
+ </div>
302
+ </div><!-- .metabox-holder -->
303
+ </div><!-- .bp-media-admin --><?php
304
+ }
305
+
306
+ /**
307
+ * Adds a tab for Media settings in the BuddyPress settings page
308
+ *
309
+ * @global type $bp_media
310
+ */
311
+ public function tab() {
312
+
313
+ $tabs_html = '';
314
+ $idle_class = 'nav-tab';
315
+ $active_class = 'nav-tab nav-tab-active';
316
+ $tabs = array();
317
+
318
+ // Check to see which tab we are on
319
+ $tab = $this->get_current_tab();
320
+ /* rtMedia */
321
+ $tabs[] = array(
322
+ 'href' => get_admin_url(null, add_query_arg(array('page' => 'rtmedia-settings'), 'admin.php')),
323
+ 'title' => __('rtMedia', 'rtmedia'),
324
+ 'name' => __('rtMedia', 'rtmedia'),
325
+ 'class' => ($tab == 'rtmedia-settings' || $tab == 'rtmedia-addons' || $tab == 'rtmedia-support' || $tab == 'rtmedia-importer') ? $active_class : $idle_class
326
+ );
327
+
328
+
329
+ foreach ($tabs as $tab) {
330
+ $tabs_html.= '<a id="bp-media" title= "' . $tab['title'] . '" href="' . $tab['href'] . '" class="' . $tab['class'] . '">' . $tab['name'] . '</a>';
331
+ }
332
+ echo $tabs_html;
333
+ }
334
+