rtMedia for WordPress, BuddyPress and bbPress - Version 4.1.8

Version Description

Requires BuddyPress 1.7 or higher, if using BuddyPress. Added filters to alter the image/video URLS in activity. Fix UI/media broken on activity page also fixed the fixed fatal error for older PHP version.

=

Download this release

Release Info

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

Code changes from version 4.1.6 to 4.1.8

app/admin/RTMediaAdmin.php CHANGED
@@ -108,7 +108,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
108
  $this,
109
  'rtmedia_hide_social_sync_notice',
110
  ), 1 );
111
- add_action( 'wp_ajax_rtmedia_hide_pro_split_notice', array( $this, 'rtmedia_hide_pro_split_notice' ), 1 );
112
 
113
  new RTMediaMediaSizeImporter(); // do not delete this line. We only need to create object of this class if we are in admin section
114
  if ( class_exists( 'BuddyPress' ) ) {
@@ -122,6 +122,9 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
122
  add_filter( 'removable_query_args', array( $this, 'removable_query_args' ), 10, 1 );
123
 
124
  add_action( 'admin_footer', array( $this, 'rtm_admin_templates' ) );
 
 
 
125
  }
126
 
127
  /**
@@ -233,11 +236,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
233
 
234
  if ( ! is_rtmedia_vip_plugin() ) {
235
  $this->rtmedia_inspirebook_release_notice();
236
- $this->rtmedia_social_sync_release_notice();
237
-
238
- if ( ! defined( 'RTMEDIA_PRO_PATH' ) ) {
239
- $this->rtmedia_pro_split_release_notice();
240
- }
241
  }
242
  }
243
  }
@@ -245,28 +244,32 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
245
  /*
246
  * rtMedia Pro split release admin notice
247
  */
248
- public function rtmedia_pro_split_release_notice() {
249
- $site_option = rtmedia_get_site_option( 'rtmedia_pro_split_release_notice' );
250
 
251
  if ( ( ! $site_option || 'hide' !== $site_option ) ) {
252
- rtmedia_update_site_option( 'rtmedia_pro_split_release_notice', 'show' );
253
  ?>
254
  <div class="updated rtmedia-pro-split-notice">
255
  <p>
256
  <span>
 
 
 
 
 
 
257
  <b><?php esc_html_e( 'rtMedia: ', 'buddypress-media' ); ?></b>
258
- <?php esc_html_e( 'We have released 30+ premium add-ons for rtMedia plugin. Read more about it ', 'buddypress-media' ); ?>
259
- <a href="https://rtmedia.io/blog/rtmedia-pro-splitting-major-change/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media"
260
- target="_blank"><?php esc_html_e( 'here', 'buddypress-media' ) ?></a>.
261
  </span>
262
  <a href="#"
263
- onclick="rtmedia_hide_pro_split_notice('<?php echo esc_js( wp_create_nonce( 'rtcamp_pro_split' ) ); ?>');"
264
  style="float:right">Dismiss</a>
265
  </p>
266
  </div>
267
  <script type="text/javascript">
268
- function rtmedia_hide_pro_split_notice(nonce) {
269
- var data = {action: 'rtmedia_hide_pro_split_notice', _rtm_nonce: nonce };
270
  jQuery.post(ajaxurl, data, function (response) {
271
  response = response.trim();
272
 
@@ -283,62 +286,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
283
  * Hide pro split release notice
284
  */
285
 
286
- function rtmedia_hide_pro_split_notice() {
287
- if ( check_ajax_referer( 'rtcamp_pro_split', '_rtm_nonce' ) && rtmedia_update_site_option( 'rtmedia_pro_split_release_notice', 'hide' ) ) {
288
- echo '1';
289
- } else {
290
- echo '0';
291
- }
292
- die();
293
- }
294
-
295
- /*
296
- * Show social sync release notice admin notice.
297
- */
298
-
299
- function rtmedia_social_sync_release_notice() {
300
- $site_option = rtmedia_get_site_option( 'rtmedia_social_sync_release_notice' );
301
- $check_rtmedia_social_sync_installed = file_exists( trailingslashit( WP_PLUGIN_DIR ) . 'rtmedia-social-sync/index.php' );
302
-
303
- if ( ( ! $site_option || 'hide' !== $site_option ) && ! $check_rtmedia_social_sync_installed ) {
304
- rtmedia_update_site_option( 'rtmedia_social_sync_release_notice', 'show' );
305
- ?>
306
- <div class="updated rtmedia-social-sync-notice">
307
- <p>
308
- <span>
309
- <b><?php esc_html_e( 'rtMedia: ', 'buddypress-media' ); ?></b>
310
- <?php esc_html_e( 'Meet ', 'buddypress-media' ); ?>
311
- <a href="https://rtmedia.io/products/rtmedia-social-sync/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media"
312
- target="_blank">
313
- <b><?php esc_html_e( 'rtMedia Social Sync', 'buddypress-media' ) ?></b>
314
- </a>
315
- <?php esc_html_e( ' which allows you to import media from your Facebook account.', 'buddypress-media' ); ?>
316
- </span>
317
- <a href="#"
318
- onclick="rtmedia_hide_social_sync_notice('<?php echo esc_js( wp_create_nonce( 'social_sync' ) ); ?>')"
319
- style="float:right">Dismiss</a>
320
- </p>
321
- </div>
322
- <script type="text/javascript">
323
- function rtmedia_hide_social_sync_notice(nonce) {
324
- var data = {action: 'rtmedia_hide_social_sync_notice', _rtm_nonce: nonce};
325
- jQuery.post(ajaxurl, data, function (response) {
326
- response = response.trim();
327
- if (response === "1")
328
- jQuery('.rtmedia-social-sync-notice').remove();
329
- });
330
- }
331
- </script>
332
- <?php
333
- }
334
- }
335
-
336
- /*
337
- * Hide social sync release notice
338
- */
339
-
340
- function rtmedia_hide_social_sync_notice() {
341
- if ( check_ajax_referer( 'social_sync', '_rtm_nonce' ) && rtmedia_update_site_option( 'rtmedia_social_sync_release_notice', 'hide' ) ) {
342
  echo '1';
343
  } else {
344
  echo '0';
@@ -1772,7 +1721,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1772
  foreach ( $sub_tabs as $tab ) {
1773
 
1774
  // tab status
1775
- $active_class = '';
 
 
 
1776
  if ( 1 === $i ) {
1777
  $active_class = 'active';
1778
  }
@@ -1783,7 +1735,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1783
  $icon = '<i class="' . esc_attr( $tab['icon'] ) . ' dashicons rtmicon"></i>';
1784
  }
1785
  ?>
1786
- <li class="<?php echo esc_attr( $active_class ) ?>">
1787
  <a id="tab-<?php echo esc_attr( substr( $tab['href'], 1 ) ) ?>" title="<?php echo esc_attr( $tab['title'] ); ?>"
1788
  href="<?php echo esc_url( $tab['href'] ); ?>"
1789
  class="rtmedia-tab-title <?php echo esc_attr( sanitize_title( $tab['name'] ) ); ?>">
@@ -1841,6 +1793,45 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1841
 
1842
  return $removable_query_args;
1843
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1844
  }
1845
 
1846
  }
108
  $this,
109
  'rtmedia_hide_social_sync_notice',
110
  ), 1 );
111
+ add_action( 'wp_ajax_rtmedia_hide_premium_addon_notice', array( $this, 'rtmedia_hide_premium_addon_notice' ), 1 );
112
 
113
  new RTMediaMediaSizeImporter(); // do not delete this line. We only need to create object of this class if we are in admin section
114
  if ( class_exists( 'BuddyPress' ) ) {
122
  add_filter( 'removable_query_args', array( $this, 'removable_query_args' ), 10, 1 );
123
 
124
  add_action( 'admin_footer', array( $this, 'rtm_admin_templates' ) );
125
+
126
+ // Display invalid add-on license notices to admins.
127
+ add_action( 'admin_notices', array( $this, 'rtm_addon_license_notice' ) );
128
  }
129
 
130
  /**
236
 
237
  if ( ! is_rtmedia_vip_plugin() ) {
238
  $this->rtmedia_inspirebook_release_notice();
239
+ $this->rtmedia_premium_addon_notice();
 
 
 
 
240
  }
241
  }
242
  }
244
  /*
245
  * rtMedia Pro split release admin notice
246
  */
247
+ public function rtmedia_premium_addon_notice() {
248
+ $site_option = rtmedia_get_site_option( 'rtmedia_premium_addon_notice' );
249
 
250
  if ( ( ! $site_option || 'hide' !== $site_option ) ) {
251
+ rtmedia_update_site_option( 'rtmedia_premium_addon_notice', 'show' );
252
  ?>
253
  <div class="updated rtmedia-pro-split-notice">
254
  <p>
255
  <span>
256
+ <?php
257
+ $product_page = 'https://rtmedia.io/products/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media';
258
+ $message = sprintf(
259
+ __( 'Check 30+ premium rtMedia add-ons on our <a href="%s">store</a>.', 'buddypress-media' ), $product_page
260
+ );
261
+ ?>
262
  <b><?php esc_html_e( 'rtMedia: ', 'buddypress-media' ); ?></b>
263
+ <?php echo $message; ?>
 
 
264
  </span>
265
  <a href="#"
266
+ onclick="rtmedia_hide_premium_addon_notice('<?php echo esc_js( wp_create_nonce( 'rtcamp_pro_split' ) ); ?>');"
267
  style="float:right">Dismiss</a>
268
  </p>
269
  </div>
270
  <script type="text/javascript">
271
+ function rtmedia_hide_premium_addon_notice(nonce) {
272
+ var data = {action: 'rtmedia_hide_premium_addon_notice', _rtm_nonce: nonce };
273
  jQuery.post(ajaxurl, data, function (response) {
274
  response = response.trim();
275
 
286
  * Hide pro split release notice
287
  */
288
 
289
+ function rtmedia_hide_premium_addon_notice() {
290
+ if ( check_ajax_referer( 'rtcamp_pro_split', '_rtm_nonce' ) && rtmedia_update_site_option( 'rtmedia_premium_addon_notice', 'hide' ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  echo '1';
292
  } else {
293
  echo '0';
1721
  foreach ( $sub_tabs as $tab ) {
1722
 
1723
  // tab status
1724
+ $active_class = $error_class = '';
1725
+ if ( ! empty( $tab['args'] ) && ( empty( $tab['args']['status'] ) || 'valid' !== $tab['args']['status'] ) ) {
1726
+ $error_class = 'error';
1727
+ }
1728
  if ( 1 === $i ) {
1729
  $active_class = 'active';
1730
  }
1735
  $icon = '<i class="' . esc_attr( $tab['icon'] ) . ' dashicons rtmicon"></i>';
1736
  }
1737
  ?>
1738
+ <li class="<?php echo esc_attr( $active_class ) ?> <?php echo esc_attr( $error_class ) ?>">
1739
  <a id="tab-<?php echo esc_attr( substr( $tab['href'], 1 ) ) ?>" title="<?php echo esc_attr( $tab['title'] ); ?>"
1740
  href="<?php echo esc_url( $tab['href'] ); ?>"
1741
  class="rtmedia-tab-title <?php echo esc_attr( sanitize_title( $tab['name'] ) ); ?>">
1793
 
1794
  return $removable_query_args;
1795
  }
1796
+
1797
+ /**
1798
+ * Display invlaid license notice to admins.
1799
+ *
1800
+ * @since 4.1.7
1801
+ *
1802
+ * @return void
1803
+ */
1804
+ function rtm_addon_license_notice() {
1805
+
1806
+ if ( ! empty( $_GET['page'] ) && 'rtmedia-license' === $_GET['page'] ) {
1807
+ $my_account = 'https://rtmedia.io/my-account';
1808
+ $license_doc = 'https://rtmedia.io/docs/license/';
1809
+ $message = sprintf(
1810
+ __( 'Your license keys can be found on <a href="%s">my-account</a> page. For more details, please refer to <a href="%s">License documentation</a> page.', 'buddypress-media' ),
1811
+ $my_account, $license_doc
1812
+ );
1813
+ echo '<div class="notice"><p>' . $message . '</p></div>';
1814
+ return;
1815
+ }
1816
+
1817
+ $addons = apply_filters( 'rtmedia_license_tabs', array() );
1818
+
1819
+ if ( empty( $addons ) ) {
1820
+ return;
1821
+ }
1822
+
1823
+ $message = '';
1824
+ foreach ( $addons as $addon ) {
1825
+ if ( empty( $addon['args']['status'] ) || 'valid' !== $addon['args']['status'] ) {
1826
+ $message = sprintf(
1827
+ __( 'We found an invalid or expired license key for an rtMedia add-on. Please go to the <a href="%s">Licenses page</a> to fix this issue.', 'buddypress-media' ),
1828
+ admin_url( 'admin.php?page=rtmedia-license' )
1829
+ );
1830
+ echo '<div class="error"><p>' . $message . '</p></div>';
1831
+ break;
1832
+ }
1833
+ }
1834
+ }
1835
  }
1836
 
1837
  }
app/admin/RTMediaFormHandler.php CHANGED
@@ -369,15 +369,15 @@ class RTMediaFormHandler {
369
  */
370
  public static function display_content() {
371
  global $rtmedia;
372
- $options = $rtmedia->options;
373
- $render_options = self::display_render_options( $options );
374
- $render_options = apply_filters( 'rtmedia_display_content_add_itmes', $render_options, $options );
375
- $general_group = array();
376
- $general_group[10] = esc_html__( 'Single Media View', 'buddypress-media' );
377
- $general_group[15] = esc_html__( 'List Media View', 'buddypress-media' );
378
- $general_group[18] = esc_html__( 'Masonry View', 'buddypress-media' );
379
- $general_group[19] = esc_html__( 'Direct Upload', 'buddypress-media' );
380
- $general_group = apply_filters( 'rtmedia_display_content_groups', $general_group );
381
  ksort( $general_group );
382
  self::render_tab_content( $render_options, $general_group, 20 );
383
  }
@@ -596,8 +596,8 @@ class RTMediaFormHandler {
596
 
597
  // allow featured
598
  $featured_args = array(
599
- 'key' => 'allowedTypes_' . $key . '_featured',
600
- 'value' => $section['featured'],
601
  );
602
  $featured_checkbox = self::checkbox( $featured_args, $echo = false );
603
  $featured_checkbox = apply_filters( 'rtmedia_filter_featured_checkbox', $featured_checkbox, $key );
@@ -606,7 +606,7 @@ class RTMediaFormHandler {
606
  $section['extn'] = array();
607
  }
608
 
609
- $extensions = implode( ', ', $section['extn'] );
610
  ?>
611
 
612
  <tr>
@@ -635,22 +635,22 @@ class RTMediaFormHandler {
635
  // @codingStandardsIgnoreLine
636
  echo wp_kses( $allow_upload_checkbox, array(
637
  'span' => array(
638
- 'class' => array(),
639
- 'data-on' => array(),
640
- 'data-off' => array()
641
  ),
642
  'label' => array(
643
- 'for' => array(),
644
- 'class' => array()
645
  ),
646
  'input' => array(
647
- 'type' => array(),
648
- 'checked' => array(),
649
- 'data-toggle' => array(),
650
- 'id' => array(),
651
- 'name' => array(),
652
- 'value' => array()
653
- )
654
  ) );
655
  ?>
656
  </span>
@@ -661,22 +661,22 @@ class RTMediaFormHandler {
661
  // @codingStandardsIgnoreLine
662
  echo wp_kses( $featured_checkbox, array(
663
  'span' => array(
664
- 'class' => array(),
665
- 'data-on' => array(),
666
- 'data-off' => array()
667
  ),
668
  'label' => array(
669
- 'for' => array(),
670
- 'class' => array()
671
  ),
672
  'input' => array(
673
- 'type' => array(),
674
- 'checked' => array(),
675
- 'data-toggle' => array(),
676
- 'id' => array(),
677
- 'name' => array(),
678
- 'value' => array()
679
- )
680
  ) );
681
  ?>
682
  </td>
@@ -783,15 +783,16 @@ class RTMediaFormHandler {
783
  <td>
784
  <?php echo esc_html( ucfirst( $entity['title'] ) ); ?>
785
  </td>
 
786
  <?php
787
  $args = array(
788
  'key' => 'defaultSizes_' . $parent_key . '_' . $entity['title'],
789
  );
790
- foreach ( $entity as $child_key => $value ) {
791
- if ( 'title' !== $child_key ) {
792
- $args[ $child_key ] = $value;
793
- }
794
  }
 
795
  self::dimensions( $args );
796
  ?>
797
  </tr>
@@ -808,15 +809,15 @@ class RTMediaFormHandler {
808
  $options = $rtmedia->options;
809
 
810
  $render_jpeg_image_quality = array(
811
- 'title' => esc_html__( 'JPEG/JPG image quality (1-100)', 'buddypress-media' ),
812
- 'callback' => array( 'RTMediaFormHandler', 'number' ),
813
- 'args' => array(
814
- 'key' => 'general_jpeg_image_quality',
815
- 'value' => $options['general_jpeg_image_quality'],
816
- 'class' => array( 'rtmedia-setting-text-box' ),
817
- 'desc' => esc_html__( 'Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality.', 'buddypress-media' ),
818
- 'min' => 1,
819
- 'max' => 100,
820
  ),
821
  );
822
  ?>
@@ -861,24 +862,24 @@ class RTMediaFormHandler {
861
  static function custom_css_render_options( $options ) {
862
  $render = array(
863
  'disable_styles' => array(
864
- 'title' => esc_html__( 'rtMedia default styles', 'buddypress-media' ),
865
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
866
- 'args' => array(
867
- 'id' => 'rtmedia-disable-styles',
868
- 'key' => 'styles_enabled',
869
- 'value' => $options['styles_enabled'],
870
- 'desc' => esc_html__( 'Load default rtMedia styles. You need to write your own style for rtMedia if you disable it.', 'buddypress-media' ),
871
  ),
872
  'group' => 10,
873
  ),
874
  'custom_styles' => array(
875
- 'title' => esc_html__( 'Paste your CSS code', 'buddypress-media' ),
876
- 'callback' => array( 'RTMediaFormHandler', 'textarea' ),
877
- 'args' => array(
878
- 'id' => 'rtmedia-custom-css',
879
- 'key' => 'styles_custom',
880
- 'value' => stripcslashes( $options['styles_custom'] ),
881
- 'desc' => esc_html__( 'Custom rtMedia CSS container', 'buddypress-media' ),
882
  ),
883
  'group' => 10,
884
  ),
@@ -901,39 +902,39 @@ class RTMediaFormHandler {
901
 
902
  $render = array(
903
  'enable' => array(
904
- 'title' => esc_html__( 'Enable privacy', 'buddypress-media' ),
905
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
906
- 'args' => array(
907
- 'id' => 'rtmedia-privacy-enable',
908
- 'key' => 'privacy_enabled',
909
- 'value' => $options['privacy_enabled'],
910
- 'desc' => esc_html__( 'Enable privacy in rtMedia', 'buddypress-media' ),
911
  ),
912
  'group' => 10,
913
  ),
914
  'default' => array(
915
- 'title' => esc_html__( 'Default privacy', 'buddypress-media' ),
916
- 'callback' => array( 'RTMediaFormHandler', 'radio' ),
917
- 'args' => array(
918
- 'key' => 'privacy_default',
919
- 'radios' => $rtmedia->privacy_settings['levels'],
920
- 'default' => $options['privacy_default'],
921
- 'desc' => esc_html__( 'Set default privacy for media', 'buddypress-media' ),
922
  ),
923
  'group' => 10,
924
  'depends' => 'privacy_enabled',
925
  ),
926
  'user_override' => array(
927
- 'title' => esc_html__( 'Allow users to set privacy for their content', 'buddypress-media' ),
928
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
929
- 'args' => array(
930
- 'key' => 'privacy_userOverride',
931
- 'value' => $options['privacy_userOverride'],
932
- 'desc' => esc_html__( 'If you choose this, users will be able to change privacy of their own uploads.', 'buddypress-media' ),
933
  ),
934
- 'group' => 10,
935
- 'depends' => 'privacy_enabled',
936
- 'after_content' => esc_html__( 'For group uploads, BuddyPress groups privacy is used.', 'buddypress-media' ),
937
  ),
938
  );
939
 
@@ -952,13 +953,13 @@ class RTMediaFormHandler {
952
  public static function privacy_content() {
953
  global $rtmedia;
954
 
955
- $general_group = array();
956
- $general_group[10] = 'Privacy Settings';
957
- $general_group = apply_filters( 'rtmedia_privacy_settings_groups', $general_group );
958
 
959
- $options = self::extract_settings( 'privacy', $rtmedia->options );
960
- $render_options = self::privacy_render_options( $options );
961
- $render_options = apply_filters( 'rtmedia_privacy_settings_options', $render_options );
962
 
963
  self::render_tab_content( $render_options, $general_group, 10 );
964
  }
@@ -975,91 +976,91 @@ class RTMediaFormHandler {
975
  static function buddypress_render_options( $options ) {
976
  $render = array(
977
  'rtmedia-enable-on-profile' => array(
978
- 'title' => esc_html__( 'Enable media in profile', 'buddypress-media' ),
979
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
980
- 'args' => array(
981
- 'key' => 'buddypress_enableOnProfile',
982
- 'value' => $options['buddypress_enableOnProfile'],
983
- 'desc' => esc_html__( 'Enable Media on BuddyPress Profile', 'buddypress-media' ),
984
  ),
985
  'group' => 10,
986
  ),
987
  'rtmedia-enable-on-group' => array(
988
- 'title' => esc_html__( 'Enable media in group', 'buddypress-media' ),
989
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
990
- 'args' => array(
991
- 'key' => 'buddypress_enableOnGroup',
992
- 'value' => $options['buddypress_enableOnGroup'],
993
- 'desc' => esc_html__( 'Enable Media on BuddyPress Groups', 'buddypress-media' ),
994
  ),
995
  'group' => 10,
996
  ),
997
  'rtmedia-enable-on-activity' => array(
998
- 'title' => esc_html__( 'Allow upload from activity stream', 'buddypress-media' ),
999
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1000
- 'args' => array(
1001
- 'key' => 'buddypress_enableOnActivity',
1002
- 'value' => $options['buddypress_enableOnActivity'],
1003
- 'desc' => esc_html__( 'Allow upload using status update box present on activity stream page', 'buddypress-media' ),
1004
- 'id' => 'rtmedia-bp-enable-activity',
1005
  ),
1006
  'group' => 10,
1007
  ),
1008
  'rtmedia-activity-feed-limit' => array(
1009
- 'title' => esc_html__( 'Number of media items to show in activity stream', 'buddypress-media' ),
1010
- 'callback' => array( 'RTMediaFormHandler', 'number' ),
1011
- 'args' => array(
1012
- 'key' => 'buddypress_limitOnActivity',
1013
- 'value' => $options['buddypress_limitOnActivity'],
1014
- 'desc' => esc_html__( 'With bulk uploads activity, the stream may get flooded. You can control the maximum number of media items or files per activity. This limit will not affect the actual number of uploads. This is only for display. "0" means unlimited.', 'buddypress-media' ),
1015
- 'class' => array( 'rtmedia-setting-text-box rtmedia-bp-activity-setting' ),
1016
- 'min' => 0,
1017
  ),
1018
  'group' => 10,
1019
  ),
1020
  'rtmedia-enable-notification' => array(
1021
- 'title' => esc_html__( 'Enable media notification', 'buddypress-media' ),
1022
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1023
- 'args' => array(
1024
- 'key' => 'buddypress_enableNotification',
1025
- 'value' => $options['buddypress_enableNotification'],
1026
- 'desc' => esc_html__( 'This will enable notifications to media authors for media likes and comments.', 'buddypress-media' ),
1027
 
1028
  ),
1029
  'group' => 10,
1030
  ),
1031
  'rtmedia-enable-like-activity' => array(
1032
- 'title' => esc_html__( 'Create activity for media likes', 'buddypress-media' ),
1033
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1034
- 'args' => array(
1035
- 'key' => 'buddypress_mediaLikeActivity',
1036
- 'value' => $options['buddypress_mediaLikeActivity'],
1037
- 'desc' => esc_html__( 'Enabling this setting will create BuddyPress activity for media likes.', 'buddypress-media' ),
1038
 
1039
  ),
1040
  'group' => 10,
1041
  ),
1042
  'rtmedia-enable-comment-activity' => array(
1043
- 'title' => esc_html__( 'Create activity for media comments', 'buddypress-media' ),
1044
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1045
- 'args' => array(
1046
- 'key' => 'buddypress_mediaCommentActivity',
1047
- 'value' => $options['buddypress_mediaCommentActivity'],
1048
- 'desc' => esc_html__( 'Enabling this setting will create BuddyPress activity for media comments.', 'buddypress-media' ),
1049
 
1050
  ),
1051
  'group' => 10,
1052
  ),
1053
  'general_enableAlbums' => array(
1054
- 'title' => esc_html__( 'Organize media into albums', 'buddypress-media' ),
1055
- 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1056
- 'args' => array(
1057
- 'id' => 'rtmedia-album-enable',
1058
- 'key' => 'general_enableAlbums',
1059
- 'value' => $options['general_enableAlbums'],
1060
- 'desc' => esc_html__( 'This will add \'album\' tab to BuddyPress profile and group depending on the ^above^ settings.', 'buddypress-media' ),
1061
  ),
1062
- 'group' => 50,
1063
  ),
1064
  );
1065
 
@@ -1078,13 +1079,13 @@ class RTMediaFormHandler {
1078
  public static function buddypress_content() {
1079
  global $rtmedia;
1080
 
1081
- $general_group = array();
1082
- $general_group[10] = 'Integration With BuddyPress Features';
1083
- $general_group[50] = 'Album Settings';
1084
- $general_group = apply_filters( 'rtmedia_buddypress_setting_group', $general_group );
1085
 
1086
- $render_options = self::buddypress_render_options( $rtmedia->options );
1087
- $render_options = apply_filters( 'rtmedia_album_control_setting', $render_options, $rtmedia->options );
1088
 
1089
  $render_options = apply_filters( 'rtmedia_buddypress_setting_options', $render_options );
1090
 
@@ -1209,18 +1210,14 @@ class RTMediaFormHandler {
1209
  public static function render_option_content( $option ) {
1210
  ?>
1211
 
1212
- <table class="form-table" <?php
1213
- if ( isset( $option['depends'] ) && '' !== $option['depends'] ) {
1214
- echo 'data-depends="' . esc_attr( $option['depends'] ) . '"';
1215
- }
1216
- ?>>
1217
  <tr>
1218
  <th>
1219
  <?php echo wp_kses( $option['title'], array(
1220
  'a' => array(
1221
- 'id' => array(),
1222
- 'href' => array(),
1223
- 'target' => array(),
1224
  ),
1225
  ) ); ?>
1226
  </th>
@@ -1233,9 +1230,9 @@ class RTMediaFormHandler {
1233
  <span class="rtm-tip">
1234
  <?php echo wp_kses( ( isset( $option['args']['desc'] ) ) ? $option['args']['desc'] : 'NA', array(
1235
  'a' => array(
1236
- 'id' => array(),
1237
- 'href' => array(),
1238
- 'target' => array(),
1239
  ),
1240
  ) ); ?>
1241
  </span>
@@ -1248,14 +1245,19 @@ class RTMediaFormHandler {
1248
  <?php
1249
  if ( isset( $option['after_content'] ) && '' !== $option['after_content'] ) {
1250
  ?>
1251
- <div class="rtm-message rtm-notice"><?php echo wp_kses( wpautop( $option['after_content'] ), array(
1252
- 'a' => array(
1253
- 'id' => array(),
1254
- 'href' => array(),
1255
- 'target' => array(),
1256
- ),
1257
- 'p' => array(),
1258
- ) ); ?></div><?php
 
 
 
 
 
1259
  }
1260
  }
1261
- }
369
  */
370
  public static function display_content() {
371
  global $rtmedia;
372
+ $options = $rtmedia->options;
373
+ $render_options = self::display_render_options( $options );
374
+ $render_options = apply_filters( 'rtmedia_display_content_add_itmes', $render_options, $options );
375
+ $general_group = array();
376
+ $general_group[10] = esc_html__( 'Single Media View', 'buddypress-media' );
377
+ $general_group[15] = esc_html__( 'List Media View', 'buddypress-media' );
378
+ $general_group[18] = esc_html__( 'Masonry View', 'buddypress-media' );
379
+ $general_group[19] = esc_html__( 'Direct Upload', 'buddypress-media' );
380
+ $general_group = apply_filters( 'rtmedia_display_content_groups', $general_group );
381
  ksort( $general_group );
382
  self::render_tab_content( $render_options, $general_group, 20 );
383
  }
596
 
597
  // allow featured
598
  $featured_args = array(
599
+ 'key' => 'allowedTypes_' . $key . '_featured',
600
+ 'value' => $section['featured'],
601
  );
602
  $featured_checkbox = self::checkbox( $featured_args, $echo = false );
603
  $featured_checkbox = apply_filters( 'rtmedia_filter_featured_checkbox', $featured_checkbox, $key );
606
  $section['extn'] = array();
607
  }
608
 
609
+ $extensions = implode( ', ', $section['extn'] );
610
  ?>
611
 
612
  <tr>
635
  // @codingStandardsIgnoreLine
636
  echo wp_kses( $allow_upload_checkbox, array(
637
  'span' => array(
638
+ 'class' => array(),
639
+ 'data-on' => array(),
640
+ 'data-off' => array(),
641
  ),
642
  'label' => array(
643
+ 'for' => array(),
644
+ 'class' => array(),
645
  ),
646
  'input' => array(
647
+ 'type' => array(),
648
+ 'checked' => array(),
649
+ 'data-toggle' => array(),
650
+ 'id' => array(),
651
+ 'name' => array(),
652
+ 'value' => array(),
653
+ ),
654
  ) );
655
  ?>
656
  </span>
661
  // @codingStandardsIgnoreLine
662
  echo wp_kses( $featured_checkbox, array(
663
  'span' => array(
664
+ 'class' => array(),
665
+ 'data-on' => array(),
666
+ 'data-off' => array(),
667
  ),
668
  'label' => array(
669
+ 'for' => array(),
670
+ 'class' => array(),
671
  ),
672
  'input' => array(
673
+ 'type' => array(),
674
+ 'checked' => array(),
675
+ 'data-toggle' => array(),
676
+ 'id' => array(),
677
+ 'name' => array(),
678
+ 'value' => array(),
679
+ ),
680
  ) );
681
  ?>
682
  </td>
783
  <td>
784
  <?php echo esc_html( ucfirst( $entity['title'] ) ); ?>
785
  </td>
786
+
787
  <?php
788
  $args = array(
789
  'key' => 'defaultSizes_' . $parent_key . '_' . $entity['title'],
790
  );
791
+ foreach ( $entity as $child_key => $value ) {
792
+ if ( 'title' !== $child_key ) {
793
+ $args[ $child_key ] = $value;
 
794
  }
795
+ }
796
  self::dimensions( $args );
797
  ?>
798
  </tr>
809
  $options = $rtmedia->options;
810
 
811
  $render_jpeg_image_quality = array(
812
+ 'title' => esc_html__( 'JPEG/JPG image quality (1-100)', 'buddypress-media' ),
813
+ 'callback' => array( 'RTMediaFormHandler', 'number' ),
814
+ 'args' => array(
815
+ 'key' => 'general_jpeg_image_quality',
816
+ 'value' => $options['general_jpeg_image_quality'],
817
+ 'class' => array( 'rtmedia-setting-text-box' ),
818
+ 'desc' => esc_html__( 'Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality.', 'buddypress-media' ),
819
+ 'min' => 1,
820
+ 'max' => 100,
821
  ),
822
  );
823
  ?>
862
  static function custom_css_render_options( $options ) {
863
  $render = array(
864
  'disable_styles' => array(
865
+ 'title' => esc_html__( 'rtMedia default styles', 'buddypress-media' ),
866
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
867
+ 'args' => array(
868
+ 'id' => 'rtmedia-disable-styles',
869
+ 'key' => 'styles_enabled',
870
+ 'value' => $options['styles_enabled'],
871
+ 'desc' => esc_html__( 'Load default rtMedia styles. You need to write your own style for rtMedia if you disable it.', 'buddypress-media' ),
872
  ),
873
  'group' => 10,
874
  ),
875
  'custom_styles' => array(
876
+ 'title' => esc_html__( 'Paste your CSS code', 'buddypress-media' ),
877
+ 'callback' => array( 'RTMediaFormHandler', 'textarea' ),
878
+ 'args' => array(
879
+ 'id' => 'rtmedia-custom-css',
880
+ 'key' => 'styles_custom',
881
+ 'value' => stripcslashes( $options['styles_custom'] ),
882
+ 'desc' => esc_html__( 'Custom rtMedia CSS container', 'buddypress-media' ),
883
  ),
884
  'group' => 10,
885
  ),
902
 
903
  $render = array(
904
  'enable' => array(
905
+ 'title' => esc_html__( 'Enable privacy', 'buddypress-media' ),
906
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
907
+ 'args' => array(
908
+ 'id' => 'rtmedia-privacy-enable',
909
+ 'key' => 'privacy_enabled',
910
+ 'value' => $options['privacy_enabled'],
911
+ 'desc' => esc_html__( 'Enable privacy in rtMedia', 'buddypress-media' ),
912
  ),
913
  'group' => 10,
914
  ),
915
  'default' => array(
916
+ 'title' => esc_html__( 'Default privacy', 'buddypress-media' ),
917
+ 'callback' => array( 'RTMediaFormHandler', 'radio' ),
918
+ 'args' => array(
919
+ 'key' => 'privacy_default',
920
+ 'radios' => $rtmedia->privacy_settings['levels'],
921
+ 'default' => $options['privacy_default'],
922
+ 'desc' => esc_html__( 'Set default privacy for media', 'buddypress-media' ),
923
  ),
924
  'group' => 10,
925
  'depends' => 'privacy_enabled',
926
  ),
927
  'user_override' => array(
928
+ 'title' => esc_html__( 'Allow users to set privacy for their content', 'buddypress-media' ),
929
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
930
+ 'args' => array(
931
+ 'key' => 'privacy_userOverride',
932
+ 'value' => $options['privacy_userOverride'],
933
+ 'desc' => esc_html__( 'If you choose this, users will be able to change privacy of their own uploads.', 'buddypress-media' ),
934
  ),
935
+ 'group' => 10,
936
+ 'depends' => 'privacy_enabled',
937
+ 'after_content' => esc_html__( 'For group uploads, BuddyPress groups privacy is used.', 'buddypress-media' ),
938
  ),
939
  );
940
 
953
  public static function privacy_content() {
954
  global $rtmedia;
955
 
956
+ $general_group = array();
957
+ $general_group[10] = 'Privacy Settings';
958
+ $general_group = apply_filters( 'rtmedia_privacy_settings_groups', $general_group );
959
 
960
+ $options = self::extract_settings( 'privacy', $rtmedia->options );
961
+ $render_options = self::privacy_render_options( $options );
962
+ $render_options = apply_filters( 'rtmedia_privacy_settings_options', $render_options );
963
 
964
  self::render_tab_content( $render_options, $general_group, 10 );
965
  }
976
  static function buddypress_render_options( $options ) {
977
  $render = array(
978
  'rtmedia-enable-on-profile' => array(
979
+ 'title' => esc_html__( 'Enable media in profile', 'buddypress-media' ),
980
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
981
+ 'args' => array(
982
+ 'key' => 'buddypress_enableOnProfile',
983
+ 'value' => $options['buddypress_enableOnProfile'],
984
+ 'desc' => esc_html__( 'Enable Media on BuddyPress Profile', 'buddypress-media' ),
985
  ),
986
  'group' => 10,
987
  ),
988
  'rtmedia-enable-on-group' => array(
989
+ 'title' => esc_html__( 'Enable media in group', 'buddypress-media' ),
990
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
991
+ 'args' => array(
992
+ 'key' => 'buddypress_enableOnGroup',
993
+ 'value' => $options['buddypress_enableOnGroup'],
994
+ 'desc' => esc_html__( 'Enable Media on BuddyPress Groups', 'buddypress-media' ),
995
  ),
996
  'group' => 10,
997
  ),
998
  'rtmedia-enable-on-activity' => array(
999
+ 'title' => esc_html__( 'Allow upload from activity stream', 'buddypress-media' ),
1000
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1001
+ 'args' => array(
1002
+ 'key' => 'buddypress_enableOnActivity',
1003
+ 'value' => $options['buddypress_enableOnActivity'],
1004
+ 'desc' => esc_html__( 'Allow upload using status update box present on activity stream page', 'buddypress-media' ),
1005
+ 'id' => 'rtmedia-bp-enable-activity',
1006
  ),
1007
  'group' => 10,
1008
  ),
1009
  'rtmedia-activity-feed-limit' => array(
1010
+ 'title' => esc_html__( 'Number of media items to show in activity stream', 'buddypress-media' ),
1011
+ 'callback' => array( 'RTMediaFormHandler', 'number' ),
1012
+ 'args' => array(
1013
+ 'key' => 'buddypress_limitOnActivity',
1014
+ 'value' => $options['buddypress_limitOnActivity'],
1015
+ 'desc' => esc_html__( 'With bulk uploads activity, the stream may get flooded. You can control the maximum number of media items or files per activity. This limit will not affect the actual number of uploads. This is only for display. "0" means unlimited.', 'buddypress-media' ),
1016
+ 'class' => array( 'rtmedia-setting-text-box rtmedia-bp-activity-setting' ),
1017
+ 'min' => 0,
1018
  ),
1019
  'group' => 10,
1020
  ),
1021
  'rtmedia-enable-notification' => array(
1022
+ 'title' => esc_html__( 'Enable media notification', 'buddypress-media' ),
1023
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1024
+ 'args' => array(
1025
+ 'key' => 'buddypress_enableNotification',
1026
+ 'value' => $options['buddypress_enableNotification'],
1027
+ 'desc' => esc_html__( 'This will enable notifications to media authors for media likes and comments.', 'buddypress-media' ),
1028
 
1029
  ),
1030
  'group' => 10,
1031
  ),
1032
  'rtmedia-enable-like-activity' => array(
1033
+ 'title' => esc_html__( 'Create activity for media likes', 'buddypress-media' ),
1034
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1035
+ 'args' => array(
1036
+ 'key' => 'buddypress_mediaLikeActivity',
1037
+ 'value' => $options['buddypress_mediaLikeActivity'],
1038
+ 'desc' => esc_html__( 'Enabling this setting will create BuddyPress activity for media likes.', 'buddypress-media' ),
1039
 
1040
  ),
1041
  'group' => 10,
1042
  ),
1043
  'rtmedia-enable-comment-activity' => array(
1044
+ 'title' => esc_html__( 'Create activity for media comments', 'buddypress-media' ),
1045
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1046
+ 'args' => array(
1047
+ 'key' => 'buddypress_mediaCommentActivity',
1048
+ 'value' => $options['buddypress_mediaCommentActivity'],
1049
+ 'desc' => esc_html__( 'Enabling this setting will create BuddyPress activity for media comments.', 'buddypress-media' ),
1050
 
1051
  ),
1052
  'group' => 10,
1053
  ),
1054
  'general_enableAlbums' => array(
1055
+ 'title' => esc_html__( 'Organize media into albums', 'buddypress-media' ),
1056
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1057
+ 'args' => array(
1058
+ 'id' => 'rtmedia-album-enable',
1059
+ 'key' => 'general_enableAlbums',
1060
+ 'value' => $options['general_enableAlbums'],
1061
+ 'desc' => esc_html__( 'This will add \'album\' tab to BuddyPress profile and group depending on the ^above^ settings.', 'buddypress-media' ),
1062
  ),
1063
+ 'group' => 50,
1064
  ),
1065
  );
1066
 
1079
  public static function buddypress_content() {
1080
  global $rtmedia;
1081
 
1082
+ $general_group = array();
1083
+ $general_group[10] = 'Integration With BuddyPress Features';
1084
+ $general_group[50] = 'Album Settings';
1085
+ $general_group = apply_filters( 'rtmedia_buddypress_setting_group', $general_group );
1086
 
1087
+ $render_options = self::buddypress_render_options( $rtmedia->options );
1088
+ $render_options = apply_filters( 'rtmedia_album_control_setting', $render_options, $rtmedia->options );
1089
 
1090
  $render_options = apply_filters( 'rtmedia_buddypress_setting_options', $render_options );
1091
 
1210
  public static function render_option_content( $option ) {
1211
  ?>
1212
 
1213
+ <table class="form-table" <?php if ( isset( $option['depends'] ) && '' !== $option['depends'] ) { echo 'data-depends="' . esc_attr( $option['depends'] ) . '"'; } ?> >
 
 
 
 
1214
  <tr>
1215
  <th>
1216
  <?php echo wp_kses( $option['title'], array(
1217
  'a' => array(
1218
+ 'id' => array(),
1219
+ 'href' => array(),
1220
+ 'target' => array(),
1221
  ),
1222
  ) ); ?>
1223
  </th>
1230
  <span class="rtm-tip">
1231
  <?php echo wp_kses( ( isset( $option['args']['desc'] ) ) ? $option['args']['desc'] : 'NA', array(
1232
  'a' => array(
1233
+ 'id' => array(),
1234
+ 'href' => array(),
1235
+ 'target' => array(),
1236
  ),
1237
  ) ); ?>
1238
  </span>
1245
  <?php
1246
  if ( isset( $option['after_content'] ) && '' !== $option['after_content'] ) {
1247
  ?>
1248
+ <div class="rtm-message rtm-notice">
1249
+ <?php
1250
+ echo wp_kses( wpautop( $option['after_content'] ), array(
1251
+ 'a' => array(
1252
+ 'id' => array(),
1253
+ 'href' => array(),
1254
+ 'target' => array(),
1255
+ ),
1256
+ 'p' => array(),
1257
+ ) );
1258
+ ?>
1259
+ </div>
1260
+ <?php
1261
  }
1262
  }
1263
+ }
app/assets/admin/css/admin.css CHANGED
@@ -129,6 +129,51 @@
129
  width: 100%;
130
  }
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  .rtm-social-links a {
133
  display: inline-block;
134
  margin: 4px 0 4px 4px;
@@ -394,6 +439,64 @@
394
  font-size: 13px;
395
  }
396
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397
  #rtmedia-encoding-usage strong {
398
  display: inline-block;
399
  min-width: 120px;
@@ -429,6 +532,9 @@
429
  .rtm-tabs li {
430
  margin: 0;
431
  }
 
 
 
432
  .rtm-tabs a {
433
  border-bottom: 1px solid #e7e7e7;
434
  border-top: 1px solid #f2f2f2;
129
  width: 100%;
130
  }
131
 
132
+ .license-row {
133
+ box-sizing: border-box;
134
+ display: -webkit-box;
135
+ display: -ms-flexbox;
136
+ display: flex;
137
+ -webkit-box-flex: 0;
138
+ -ms-flex: 0 1 auto;
139
+ flex: 0 1 auto;
140
+ -webkit-box-orient: horizontal;
141
+ -webkit-box-direction: normal;
142
+ -ms-flex-direction: row;
143
+ flex-direction: row;
144
+ -ms-flex-wrap: wrap;
145
+ flex-wrap: wrap;
146
+ }
147
+
148
+ .license-column, .license-column {
149
+ box-sizing: border-box;
150
+ -webkit-box-flex: 0;
151
+ -ms-flex: 0 0 auto;
152
+ flex: 0 0 auto;
153
+ padding-right: .5rem;
154
+ padding-left: .5rem;
155
+ }
156
+
157
+ .large-4 {
158
+ -ms-flex-preferred-size: 33.33333333%;
159
+ flex-basis: 33.33333333%;
160
+ max-width: 33.33333333%;
161
+ }
162
+
163
+ @media screen and (max-width: 768px) {
164
+ .medium-6 {
165
+ -ms-flex-preferred-size: 50%;
166
+ flex-basis: 50%;
167
+ max-width: 50%;
168
+ }
169
+ }
170
+ @media screen and (max-width: 667px) {
171
+ .small-12 {
172
+ -ms-flex-preferred-size: 100%;
173
+ flex-basis: 100%;
174
+ max-width: 100%;
175
+ }
176
+ }
177
  .rtm-social-links a {
178
  display: inline-block;
179
  margin: 4px 0 4px 4px;
439
  font-size: 13px;
440
  }
441
 
442
+ .rtm-addon-license {
443
+ border: 1px solid #ddd;
444
+ margin: .5rem 0;
445
+ background-color: #fff;
446
+ }
447
+ .rtm-addon-license .title {
448
+ background-color: #fafafa;
449
+ border-bottom: 1px solid #ddd;
450
+ margin: 0;
451
+ padding: 15px 10px;
452
+ }
453
+ .rtm-addon-license .license-inner {
454
+ padding: 10px;
455
+ }
456
+
457
+ form.license-form {
458
+ padding: 0;
459
+ margin: 0;
460
+ }
461
+ form.license-form input[type="text"] {
462
+ width: 100%;
463
+ max-width: 100%;
464
+ height: 35px;
465
+ line-height: 35px;
466
+ }
467
+ form.license-form input[type="submit"] {
468
+ margin: 10px 0 0;
469
+ }
470
+
471
+ .license-message {
472
+ margin: 15px 0 0 0;
473
+ padding: 8px;
474
+ }
475
+ .license-message.warning {
476
+ background: rgba(255, 185, 0, 0.1);
477
+ border: 1px solid #ffb900;
478
+ }
479
+ .license-message.success {
480
+ background: rgba(70, 180, 80, 0.1);
481
+ border: 1px solid #46b450;
482
+ }
483
+ .license-message.info {
484
+ background: rgba(0, 160, 210, 0.1);
485
+ border: 1px solid #00a0d2;
486
+ }
487
+ .license-message.alert {
488
+ background: rgba(220, 50, 50, 0.1);
489
+ border: 1px solid #dc3232;
490
+ }
491
+
492
+ .rtml-submit-wrapper .submit {
493
+ margin-left: 8px;
494
+ margin-right: 8px;
495
+ margin-top: 0;
496
+ padding-top: 0;
497
+ padding-bottom: 10px;
498
+ }
499
+
500
  #rtmedia-encoding-usage strong {
501
  display: inline-block;
502
  min-width: 120px;
532
  .rtm-tabs li {
533
  margin: 0;
534
  }
535
+ .rtm-tabs li.error {
536
+ border-left: 4px solid #dc3232;
537
+ }
538
  .rtm-tabs a {
539
  border-bottom: 1px solid #e7e7e7;
540
  border-top: 1px solid #f2f2f2;
app/assets/admin/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.clearfix:after{content:"";display:table;clear:both}.rtm-row-container{padding-top:10px}.rtm-admin-tab-container{display:table;width:100%}.rtm-admin-tab-container .rtm-tabs-content{background:#fff;border-left:1px solid #e7e7e7;display:table-cell;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-setting-container{background-color:#f5f5f5;border:1px solid #dedede;box-shadow:0 1px 1px rgba(0,0,0,0.04);margin-top:10px}.rtm-sidebar .postbox .hndle{cursor:default}.rtm-tabs{display:table-cell;list-style:none;margin:0;min-height:300px;width:202px}.rtm-button-container{background:#f3f3f3;border-bottom:1px solid #dedede;box-shadow:0 1px 0 #fcfcfc inset;overflow:hidden;padding:6px 10px 6px 6px;position:relative;text-align:right}.rtm-button-container.bottom{background:#eee;border-top:1px solid #e7e7e7;box-shadow:0 0 0;z-index:999}#mce-EMAIL{width:100%}#mc-embedded-subscribe{display:block;margin:10px auto 0;width:100%}.rtm-social-links a{display:inline-block;margin:4px 0 4px 4px;text-decoration:none}.nav-tab.rtm-premium{background:#e74c3c;color:white;letter-spacing:0.5px}.rtm-setting-title{border-bottom:1px solid #eee;font-size:22px;font-weight:400;line-height:1;margin-bottom:20px;margin-top:0;padding-bottom:14px;display:none}.rtm-setting-title.rtm-show{display:block}.rtm-option-wrapper{margin-bottom:40px}.rtm-option-wrapper:last-child{margin-bottom:20px}.rtm-setting-title+.rtm-option-wrapper{margin-top:0}.rtm-option-wrapper:last-child{border-bottom:0}.rtm-option-wrapper .form-table{clear:none}.rtm-option-wrapper .rtm-field-wrap{float:left}.rtm-option-wrapper a{text-decoration:none}.rtm-option-wrapper .form-table th{color:#444;font-size:13px;font-weight:400;padding:5px 30px 5px 0;vertical-align:top;width:48%}.rtm-option-wrapper .form-table td{font-size:13px;padding:0 0 5px;vertical-align:top}.rtm-option-wrapper .form-table td fieldset label{display:block;margin:0 !important}.rtm-option-wrapper .form-table .rtm-form-radio label{margin-top:5px !important}.rtm-option-wrapper textarea,.rtm-option-wrapper select,.rtm-option-wrapper input[type=text],.rtm-option-wrapper input[type=number]{border-radius:3px}.rtm-option-wrapper input[type=number]{width:60px}.rtm-option-wrapper .rt-form-radio{height:28px;line-height:24px}.rtm-option-wrapper .rt-form-radio label:first-child{margin-right:12px !important}.rtm-option-wrapper .dashicons-info{color:#aaa;font-size:14px;height:26px;line-height:26px;position:relative}.rtm-option-wrapper .rtm-debug-info{margin-top:32px}.rtm-option-wrapper .rtm-debug-info tr{border-bottom:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:first-child{border-top:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:nth-child(2n){background-color:#f8f8f8}.rtm-option-wrapper .rtm-debug-info th{border-right:1px solid #eee;font-weight:600;width:auto}.rtm-option-wrapper .rtm-debug-info th,.rtm-option-wrapper .rtm-debug-info td{padding:10px}.rtm-option-title{border-bottom:1px solid #eee;font-size:14px;letter-spacing:0.02rem;margin-bottom:12px;margin-top:0;padding:0 0 6px;text-transform:uppercase}.rtm-sidebar .button{display:block;opacity:0.8;position:relative;text-decoration:none}.rtm-social-share .dashicons{font-size:18px;position:absolute;right:10px;top:4px}.rtm-social-share .twitter .dashicons{color:#45b0e3}.rtm-social-share .facebook .dashicons{color:#3b5998}.rtm-social-share .wordpress .dashicons{color:#21759b}.rtm-social-share .rss .dashicons{color:#FF6600}.rtm-social-share p:last-child{margin-bottom:0}.rtm-notice{background:rgba(238,238,238,0.8);color:#777;font-size:12px;line-height:1.6;margin-top:10px;overflow:hidden;padding:0 10px}.rtm-notice p{font-size:inherit;line-height:inherit;margin:10px 0}.rtm-warning{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;padding:10px 15px}.rtmedia-theme-warning{margin-bottom:26px}.rtm-success{background-color:#dff0d8;border-bottom:1px solid #e7e7e7;color:#468847;margin:0;padding:8px 35px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.rtm-fly-warning{border-bottom:0;left:-10px;letter-spacing:1px;line-height:22px;margin-bottom:0;padding:14px 25px;position:absolute;top:-5px}#rtmedia-types .form-table th{line-height:26px;padding:5px 0 20px;width:33%}#rtmedia-types .form-table td{padding:0 0 12px}#rtmedia-custom-css-settings .form-table th{width:35%}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:92%}#rtmedia-custom-css-settings textarea{height:300px;width:100%}.rtm-img-size-setting .form-table th{border-bottom:1px solid #eee;padding-bottom:10px;padding-top:10px;width:20%}.rtm-img-size-setting .form-table tr:nth-child(2) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(4){border-bottom:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(4) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(5) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(6) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(7){border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(7) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-last-child(2) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:last-child{border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:last-child td{padding-top:20px;padding-bottom:20px}.rtm-img-size-setting .form-table .rtm-row-title{font-weight:600}#rtmedia-privacy .rt-form-radio{font-size:12px}#rtmedia-privacy .rt-form-radio strong{font-size:13px}#rtmedia-encoding-usage strong{display:inline-block;min-width:120px}#rtmedia-encoding-usage p{overflow:hidden}.encoding-used,.encoding-remaining{background:#7AD03A;float:right;height:12px;margin-top:3px;width:12px}.encoding-remaining{background:#dedede}#rtprogressbar{background:#dedede;height:10px;position:relative}#rtprogressbar div{background:#7AD03A;height:10px;left:0;position:absolute}.rtm-tabs li{margin:0}.rtm-tabs a{border-bottom:1px solid #e7e7e7;border-top:1px solid #f2f2f2;color:#222;display:block;font-weight:700;outline:none;opacity:0.8;padding:10px 4px 10px 14px;position:relative;text-decoration:none;z-index:10}.rtm-tabs a:hover{background:#eee;color:#269ad6;margin-right:0;opacity:1;width:auto}.rtm-tabs a:focus{background:#fff;box-shadow:0 0 0}.rtm-tabs .active{background:white;position:relative}.rtm-tabs .active:after{background:#fff;content:' ';height:100%;position:absolute;right:-1px;top:0;width:1px}.rtm-tabs .active a{border-top-color:#fff;color:#222;opacity:1}.rtm-tabs .active a:hover{background:#fff}.rtm-tabs span{display:block;padding:0 0 0 25px}.rtm-tabs .dashicons{font-size:14px;height:auto;line-height:1;margin-top:3px;position:absolute;vertical-align:middle;width:auto}.rtm-horizotanl-tabs .rtm-tabs{list-style:none;margin:0;display:block;width:auto;min-height:0}.rtm-horizotanl-tabs .rtm-tabs-content{border-left:none;background:#fff;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-horizotanl-tabs .rtm-tabs a{border-bottom:none}.rtm-horizotanl-tabs .rtm-tabs li{display:inline-block}.rtm-horizotanl-tabs.rtm-admin-tab-container{width:100%;display:block}.switch{position:relative;display:inline-block;vertical-align:top;width:58px;height:22px;padding:3px;border-radius:18px}.switch input[type=checkbox]{position:absolute;top:0;left:0;opacity:0}.switch-label{position:relative;display:block;height:inherit;color:#fff;font-size:12px;text-transform:uppercase;background:#b4b4b4;border-radius:inherit;-webkit-transition:0.15s ease-out;transition:0.15s ease-out;-webkit-transition-property:opacity background;transition-property:opacity background}.switch-label:before,.switch-label:after{position:absolute;top:50%;margin-top:-.5em;line-height:1;-webkit-transition:inherit;transition:inherit}.switch-label:before{content:attr(data-off);right:11px;color:#fff}.switch-label:after{content:attr(data-on);left:11px;opacity:0}input[type=checkbox]:checked ~ .switch-label{background:#33a7d1}input[type=checkbox]:checked ~ .switch-label:before{opacity:0}input[type=checkbox]:checked ~ .switch-label:after{opacity:1}.switch-handle{position:absolute;top:5px;left:5px;width:18px;height:18px;background:white;border-radius:10px;box-shadow:1px 1px 5px rgba(0,0,0,0.2);background-image:-webkit-linear-gradient(top, #fff 40%, #f0f0f0);background-image:linear-gradient(to bottom, #fff 40%, #f0f0f0);-webkit-transition:left 0.15s ease-out;transition:left 0.15s ease-out}.switch-handle:before{content:'';position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:#f9f9f9;border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,0.02);background-image:-webkit-linear-gradient(top, #eee, #fff);background-image:linear-gradient(to bottom, #eee, #fff)}input[type=checkbox]:checked ~ .switch-handle{left:41px;box-shadow:-1px 1px 5px rgba(0,0,0,0.2)}.rtm-tooltip{display:inline-block;margin-left:3px;position:relative}.rtm-tooltip:hover .rtm-tip-top,.rtm-tooltip:hover .rtm-tip{margin-left:0;opacity:1;visibility:visible}.rtm-tooltip .rtm-title{border-bottom:1px dotted;padding-bottom:2px}.rtm-tip-top,.rtm-tip{background:#fffAF0;border:1px solid #f5deaf;border-radius:3px;font-size:12px;left:24px;margin-top:-4px;margin-left:-10px;line-height:1.5;opacity:0;padding:6px 12px;position:absolute;top:0;visibility:hidden;width:210px;z-index:9999;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s}.rtm-tip-top{bottom:26px;left:auto;right:-66px;top:auto;width:200px}.rtm-tip-top:after,.rtm-tip-top:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip-top:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip-top:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:8px;margin-left:-8px}.rtm-extensions .dashicons{font-size:12px;margin-left:-4px;position:relative;top:-3px}.rtm-extensions.rtm-set-top .dashicons{top:1px}.rtm-plugin-card.plugin-card{margin:1%;overflow:hidden;width:48%}.rtm-plugin-card.plugin-card .rtm-logo{float:left;margin-right:10px;max-width:200px;width:auto}.rtm-plugin-card.plugin-card .rtm-logo img{height:auto;max-width:120px}.rtm-plugin-card.plugin-card .desc,.rtm-plugin-card.plugin-card .name{margin-left:0;margin-right:0;overflow:hidden}.rtm-plugin-card.plugin-card h4{margin-bottom:0;margin-top:0}.rtm-plugin-card.plugin-card a{text-decoration:none}.rtm-plugin-card.plugin-card .rtm-live-demo{margin-right:10px}.rtm-plugin-card.plugin-card .price{color:#269ad6;font-size:22px;line-height:1.2}#rtm-plugins .rtm-option-title{margin-top:50px}#rtm-plugins .rtm-setting-title+.rtm-option-title{margin-top:0}#rtm-plugins .plugin-card-top{padding:10px}.rtm-encoding-table{border-collapse:collapse;clear:none}.rtm-encoding-table th,.rtm-encoding-table td{border:1px solid #e7e7e7}.rtm-encoding-table th{font-size:13px;font-weight:600}.rtm-theme-browser .rtm-themes{clear:none;padding:0}.rtm-theme-browser .rtm-themes .rtm-theme{width:48%}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(even){margin-right:0 !important}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(3n){margin-right:4%}.admin-bar .theme-overlay .theme-wrap{z-index:99999}.rtm-support-container{min-height:300px}.rtm-support-form .rtm-form-filed{clear:both;margin:15px 0}.rtm-support-form label{float:left;width:15%}.rtm-support-form .bp-media-textarea{height:80px}.rtm-button-wrapper{padding-left:15%}.rtm-page-container{background:#fff;overflow:hidden;padding:20px}.rtm-pro-feature-list li{box-sizing:border-box;float:left;padding:0 10px 20px;width:33%}.rtm-pro-feature-list .rtm-icon-wrap{float:left;margin-top:15px;width:30px}.rtm-pro-feature-list .dashicons{font-size:18px}.rtm-pro-feature-list .rtm-title{font-size:18px;margin-left:30px;margin-top:0px}.rtm-pro-feature-list .rtm-content{font-size:14px;line-height:25px;margin-left:30px;color:#8a8a8a;width:auto}.rtm-update-to-pro{text-align:center}.rtm-button{background-color:#269ad6;border:0;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;letter-spacing:1px;line-height:1;margin-bottom:10px;padding:12px 26px;text-align:center;text-decoration:none;text-transform:uppercase}.rtm-button:hover,.rtm-button:focus{background-color:#228ac0;color:#fff}.rtm-button.large{font-size:16px;margin-bottom:20px;padding:20px 40px}.rtm-button.rtm-button-success{background-color:#2ecc71}.rtm-button.rtm-button-success:hover,.rtm-button.rtm-button-success:focus{background-color:#2fab41}.rtm-hire-points{font-size:14px;margin-bottom:24px}@media only screen and (min-width: 1025px){.rtm-setting-container{float:left;width:78.2%}.rtm-sidebar{float:right;width:20%}.rtm-sidebar .postbox{min-width:0}.rtm-field-wrap{max-width:92%}.rtm-tip:after,.rtm-tip:before{right:100%;top:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-right-color:#fffAF0;border-width:6px;margin-top:-6px}.rtm-tip:before{border-color:rgba(221,204,170,0);border-right-color:#f5deaf;border-width:7px;margin-top:-7px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{float:left;width:40%}}@media only screen and (min-width: 641px) and (max-width: 1024px){.rtm-sidebar{width:100%}.rtm-sidebar .postbox{display:inline-block;margin-left:5px;vertical-align:top}.rtm-sidebar .postbox:first-child{margin-left:0}}@media screen and (max-width: 1024px){.rtm-tip{bottom:26px;left:auto;right:-102px;top:auto;width:200px}.rtm-tip:after,.rtm-tip:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:7px;margin-left:-7px}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:100%}.rtm-field-wrap input[type=text]{max-width:140px !important}.theme-browser .theme:nth-child(2n+1){margin-right:4%}.rtmedia-settings-submit{margin-bottom:0 !important}}@media only screen and (min-width: 641px){.rtm-pro-feature-list li:nth-child(3n+1){clear:left}}@media screen and (min-width: 421px) and (max-width: 782px){.rtm-option-wrapper .form-table td{display:table-cell}.rtm-option-wrapper .form-table th{display:table-cell}}@media only screen and (max-width: 640px){.rtm-pro-feature-list li{width:50%}.rtm-pro-feature-list li:nth-child(2n+1){clear:left}.rtm-tabs{width:40px}.rtm-tabs li{width:40px}.rtm-tabs a{height:18px}.rtm-tabs a:hover{width:140px}.rtm-tabs a:hover span{display:block}.rtm-tabs span{display:none;padding:0 0 0 28px;position:absolute}.rtm-support-form label{width:100%;margin-bottom:5px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{width:70%}.rtm-button-wrapper{padding-left:0}}@media screen and (max-width: 481px){.rtm-plugin-card.plugin-card .rtm-logo{display:inline-block;float:none}.rtm-theme-browser .rtm-themes .rtm-theme{margin:0 0 20px;width:100%}}@media screen and (max-width: 420px){.rtm-option-wrapper .form-table th{padding-bottom:15px;width:100%}#rtmedia-types .form-table th,#rtmedia-custom-css-settings .form-table th{width:100%}.rtm-pro-feature-list li{width:100%}.rtm-tip-top{right:-115px}}body.rtl .rtm-tabs a{padding:10px 32px 10px 4px}body.rtl .rtm-tabs .dashicons{right:10px}body.rtl .rtm-social-share .dashicons{left:10px;right:auto}body.rtl .rtm-option-wrapper .rtm-field-wrap{float:right}body.rtl .rtm-tip-top,body.rtl .rtm-tip{left:auto;right:24px}body.rtl .rtm-tip-top:after,body.rtl .rtm-tip-top:before,body.rtl .rtm-tip:after,body.rtl .rtm-tip:before{display:none}body.rtl .rtm-edit-td,body.rtl .rtm-delete-td{float:right;margin-left:0}body.rtl .rtm-edit-td{margin-right:-15px}body.rtl #rtmedia-membership span.float-right{float:left}body.rtl .theme-browser .theme{float:left;margin:0 4% 4% 0}.rtmedia-license .rtm-tabs span{padding:0}
1
+ .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.clearfix:after{content:"";display:table;clear:both}.rtm-row-container{padding-top:10px}.rtm-admin-tab-container{display:table;width:100%}.rtm-admin-tab-container .rtm-tabs-content{background:#fff;border-left:1px solid #e7e7e7;display:table-cell;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-setting-container{background-color:#f5f5f5;border:1px solid #dedede;box-shadow:0 1px 1px rgba(0,0,0,0.04);margin-top:10px}.rtm-sidebar .postbox .hndle{cursor:default}.rtm-tabs{display:table-cell;list-style:none;margin:0;min-height:300px;width:202px}.rtm-button-container{background:#f3f3f3;border-bottom:1px solid #dedede;box-shadow:0 1px 0 #fcfcfc inset;overflow:hidden;padding:6px 10px 6px 6px;position:relative;text-align:right}.rtm-button-container.bottom{background:#eee;border-top:1px solid #e7e7e7;box-shadow:0 0 0;z-index:999}#mce-EMAIL{width:100%}#mc-embedded-subscribe{display:block;margin:10px auto 0;width:100%}.license-row{box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.license-column,.license-column{box-sizing:border-box;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:.5rem;padding-left:.5rem}.large-4{-ms-flex-preferred-size:33.33333333%;flex-basis:33.33333333%;max-width:33.33333333%}@media screen and (max-width: 768px){.medium-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media screen and (max-width: 667px){.small-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}.rtm-social-links a{display:inline-block;margin:4px 0 4px 4px;text-decoration:none}.nav-tab.rtm-premium{background:#e74c3c;color:white;letter-spacing:0.5px}.rtm-setting-title{border-bottom:1px solid #eee;font-size:22px;font-weight:400;line-height:1;margin-bottom:20px;margin-top:0;padding-bottom:14px;display:none}.rtm-setting-title.rtm-show{display:block}.rtm-option-wrapper{margin-bottom:40px}.rtm-option-wrapper:last-child{margin-bottom:20px}.rtm-setting-title+.rtm-option-wrapper{margin-top:0}.rtm-option-wrapper:last-child{border-bottom:0}.rtm-option-wrapper .form-table{clear:none}.rtm-option-wrapper .rtm-field-wrap{float:left}.rtm-option-wrapper a{text-decoration:none}.rtm-option-wrapper .form-table th{color:#444;font-size:13px;font-weight:400;padding:5px 30px 5px 0;vertical-align:top;width:48%}.rtm-option-wrapper .form-table td{font-size:13px;padding:0 0 5px;vertical-align:top}.rtm-option-wrapper .form-table td fieldset label{display:block;margin:0 !important}.rtm-option-wrapper .form-table .rtm-form-radio label{margin-top:5px !important}.rtm-option-wrapper textarea,.rtm-option-wrapper select,.rtm-option-wrapper input[type=text],.rtm-option-wrapper input[type=number]{border-radius:3px}.rtm-option-wrapper input[type=number]{width:60px}.rtm-option-wrapper .rt-form-radio{height:28px;line-height:24px}.rtm-option-wrapper .rt-form-radio label:first-child{margin-right:12px !important}.rtm-option-wrapper .dashicons-info{color:#aaa;font-size:14px;height:26px;line-height:26px;position:relative}.rtm-option-wrapper .rtm-debug-info{margin-top:32px}.rtm-option-wrapper .rtm-debug-info tr{border-bottom:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:first-child{border-top:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:nth-child(2n){background-color:#f8f8f8}.rtm-option-wrapper .rtm-debug-info th{border-right:1px solid #eee;font-weight:600;width:auto}.rtm-option-wrapper .rtm-debug-info th,.rtm-option-wrapper .rtm-debug-info td{padding:10px}.rtm-option-title{border-bottom:1px solid #eee;font-size:14px;letter-spacing:0.02rem;margin-bottom:12px;margin-top:0;padding:0 0 6px;text-transform:uppercase}.rtm-sidebar .button{display:block;opacity:0.8;position:relative;text-decoration:none}.rtm-social-share .dashicons{font-size:18px;position:absolute;right:10px;top:4px}.rtm-social-share .twitter .dashicons{color:#45b0e3}.rtm-social-share .facebook .dashicons{color:#3b5998}.rtm-social-share .wordpress .dashicons{color:#21759b}.rtm-social-share .rss .dashicons{color:#FF6600}.rtm-social-share p:last-child{margin-bottom:0}.rtm-notice{background:rgba(238,238,238,0.8);color:#777;font-size:12px;line-height:1.6;margin-top:10px;overflow:hidden;padding:0 10px}.rtm-notice p{font-size:inherit;line-height:inherit;margin:10px 0}.rtm-warning{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;padding:10px 15px}.rtmedia-theme-warning{margin-bottom:26px}.rtm-success{background-color:#dff0d8;border-bottom:1px solid #e7e7e7;color:#468847;margin:0;padding:8px 35px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.rtm-fly-warning{border-bottom:0;left:-10px;letter-spacing:1px;line-height:22px;margin-bottom:0;padding:14px 25px;position:absolute;top:-5px}#rtmedia-types .form-table th{line-height:26px;padding:5px 0 20px;width:33%}#rtmedia-types .form-table td{padding:0 0 12px}#rtmedia-custom-css-settings .form-table th{width:35%}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:92%}#rtmedia-custom-css-settings textarea{height:300px;width:100%}.rtm-img-size-setting .form-table th{border-bottom:1px solid #eee;padding-bottom:10px;padding-top:10px;width:20%}.rtm-img-size-setting .form-table tr:nth-child(2) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(4){border-bottom:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(4) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(5) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(6) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(7){border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(7) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-last-child(2) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:last-child{border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:last-child td{padding-top:20px;padding-bottom:20px}.rtm-img-size-setting .form-table .rtm-row-title{font-weight:600}#rtmedia-privacy .rt-form-radio{font-size:12px}#rtmedia-privacy .rt-form-radio strong{font-size:13px}.rtm-addon-license{border:1px solid #ddd;margin:.5rem 0;background-color:#fff}.rtm-addon-license .title{background-color:#fafafa;border-bottom:1px solid #ddd;margin:0;padding:15px 10px}.rtm-addon-license .license-inner{padding:10px}form.license-form{padding:0;margin:0}form.license-form input[type="text"]{width:100%;max-width:100%;height:35px;line-height:35px}form.license-form input[type="submit"]{margin:10px 0 0}.license-message{margin:15px 0 0 0;padding:8px}.license-message.warning{background:rgba(255,185,0,0.1);border:1px solid #ffb900}.license-message.success{background:rgba(70,180,80,0.1);border:1px solid #46b450}.license-message.info{background:rgba(0,160,210,0.1);border:1px solid #00a0d2}.license-message.alert{background:rgba(220,50,50,0.1);border:1px solid #dc3232}.rtml-submit-wrapper .submit{margin-left:8px;margin-right:8px;margin-top:0;padding-top:0;padding-bottom:10px}#rtmedia-encoding-usage strong{display:inline-block;min-width:120px}#rtmedia-encoding-usage p{overflow:hidden}.encoding-used,.encoding-remaining{background:#7AD03A;float:right;height:12px;margin-top:3px;width:12px}.encoding-remaining{background:#dedede}#rtprogressbar{background:#dedede;height:10px;position:relative}#rtprogressbar div{background:#7AD03A;height:10px;left:0;position:absolute}.rtm-tabs li{margin:0}.rtm-tabs li.error{border-left:4px solid #dc3232}.rtm-tabs a{border-bottom:1px solid #e7e7e7;border-top:1px solid #f2f2f2;color:#222;display:block;font-weight:700;outline:none;opacity:0.8;padding:10px 4px 10px 14px;position:relative;text-decoration:none;z-index:10}.rtm-tabs a:hover{background:#eee;color:#269ad6;margin-right:0;opacity:1;width:auto}.rtm-tabs a:focus{background:#fff;box-shadow:0 0 0}.rtm-tabs .active{background:white;position:relative}.rtm-tabs .active:after{background:#fff;content:' ';height:100%;position:absolute;right:-1px;top:0;width:1px}.rtm-tabs .active a{border-top-color:#fff;color:#222;opacity:1}.rtm-tabs .active a:hover{background:#fff}.rtm-tabs span{display:block;padding:0 0 0 25px}.rtm-tabs .dashicons{font-size:14px;height:auto;line-height:1;margin-top:3px;position:absolute;vertical-align:middle;width:auto}.rtm-horizotanl-tabs .rtm-tabs{list-style:none;margin:0;display:block;width:auto;min-height:0}.rtm-horizotanl-tabs .rtm-tabs-content{border-left:none;background:#fff;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-horizotanl-tabs .rtm-tabs a{border-bottom:none}.rtm-horizotanl-tabs .rtm-tabs li{display:inline-block}.rtm-horizotanl-tabs.rtm-admin-tab-container{width:100%;display:block}.switch{position:relative;display:inline-block;vertical-align:top;width:58px;height:22px;padding:3px;border-radius:18px}.switch input[type=checkbox]{position:absolute;top:0;left:0;opacity:0}.switch-label{position:relative;display:block;height:inherit;color:#fff;font-size:12px;text-transform:uppercase;background:#b4b4b4;border-radius:inherit;-webkit-transition:0.15s ease-out;transition:0.15s ease-out;-webkit-transition-property:opacity background;transition-property:opacity background}.switch-label:before,.switch-label:after{position:absolute;top:50%;margin-top:-.5em;line-height:1;-webkit-transition:inherit;transition:inherit}.switch-label:before{content:attr(data-off);right:11px;color:#fff}.switch-label:after{content:attr(data-on);left:11px;opacity:0}input[type=checkbox]:checked ~ .switch-label{background:#33a7d1}input[type=checkbox]:checked ~ .switch-label:before{opacity:0}input[type=checkbox]:checked ~ .switch-label:after{opacity:1}.switch-handle{position:absolute;top:5px;left:5px;width:18px;height:18px;background:white;border-radius:10px;box-shadow:1px 1px 5px rgba(0,0,0,0.2);background-image:-webkit-linear-gradient(top, #fff 40%, #f0f0f0);background-image:linear-gradient(to bottom, #fff 40%, #f0f0f0);-webkit-transition:left 0.15s ease-out;transition:left 0.15s ease-out}.switch-handle:before{content:'';position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:#f9f9f9;border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,0.02);background-image:-webkit-linear-gradient(top, #eee, #fff);background-image:linear-gradient(to bottom, #eee, #fff)}input[type=checkbox]:checked ~ .switch-handle{left:41px;box-shadow:-1px 1px 5px rgba(0,0,0,0.2)}.rtm-tooltip{display:inline-block;margin-left:3px;position:relative}.rtm-tooltip:hover .rtm-tip-top,.rtm-tooltip:hover .rtm-tip{margin-left:0;opacity:1;visibility:visible}.rtm-tooltip .rtm-title{border-bottom:1px dotted;padding-bottom:2px}.rtm-tip-top,.rtm-tip{background:#fffAF0;border:1px solid #f5deaf;border-radius:3px;font-size:12px;left:24px;margin-top:-4px;margin-left:-10px;line-height:1.5;opacity:0;padding:6px 12px;position:absolute;top:0;visibility:hidden;width:210px;z-index:9999;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s}.rtm-tip-top{bottom:26px;left:auto;right:-66px;top:auto;width:200px}.rtm-tip-top:after,.rtm-tip-top:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip-top:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip-top:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:8px;margin-left:-8px}.rtm-extensions .dashicons{font-size:12px;margin-left:-4px;position:relative;top:-3px}.rtm-extensions.rtm-set-top .dashicons{top:1px}.rtm-plugin-card.plugin-card{margin:1%;overflow:hidden;width:48%}.rtm-plugin-card.plugin-card .rtm-logo{float:left;margin-right:10px;max-width:200px;width:auto}.rtm-plugin-card.plugin-card .rtm-logo img{height:auto;max-width:120px}.rtm-plugin-card.plugin-card .desc,.rtm-plugin-card.plugin-card .name{margin-left:0;margin-right:0;overflow:hidden}.rtm-plugin-card.plugin-card h4{margin-bottom:0;margin-top:0}.rtm-plugin-card.plugin-card a{text-decoration:none}.rtm-plugin-card.plugin-card .rtm-live-demo{margin-right:10px}.rtm-plugin-card.plugin-card .price{color:#269ad6;font-size:22px;line-height:1.2}#rtm-plugins .rtm-option-title{margin-top:50px}#rtm-plugins .rtm-setting-title+.rtm-option-title{margin-top:0}#rtm-plugins .plugin-card-top{padding:10px}.rtm-encoding-table{border-collapse:collapse;clear:none}.rtm-encoding-table th,.rtm-encoding-table td{border:1px solid #e7e7e7}.rtm-encoding-table th{font-size:13px;font-weight:600}.rtm-theme-browser .rtm-themes{clear:none;padding:0}.rtm-theme-browser .rtm-themes .rtm-theme{width:48%}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(even){margin-right:0 !important}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(3n){margin-right:4%}.admin-bar .theme-overlay .theme-wrap{z-index:99999}.rtm-support-container{min-height:300px}.rtm-support-form .rtm-form-filed{clear:both;margin:15px 0}.rtm-support-form label{float:left;width:15%}.rtm-support-form .bp-media-textarea{height:80px}.rtm-button-wrapper{padding-left:15%}.rtm-page-container{background:#fff;overflow:hidden;padding:20px}.rtm-pro-feature-list li{box-sizing:border-box;float:left;padding:0 10px 20px;width:33%}.rtm-pro-feature-list .rtm-icon-wrap{float:left;margin-top:15px;width:30px}.rtm-pro-feature-list .dashicons{font-size:18px}.rtm-pro-feature-list .rtm-title{font-size:18px;margin-left:30px;margin-top:0px}.rtm-pro-feature-list .rtm-content{font-size:14px;line-height:25px;margin-left:30px;color:#8a8a8a;width:auto}.rtm-update-to-pro{text-align:center}.rtm-button{background-color:#269ad6;border:0;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;letter-spacing:1px;line-height:1;margin-bottom:10px;padding:12px 26px;text-align:center;text-decoration:none;text-transform:uppercase}.rtm-button:hover,.rtm-button:focus{background-color:#228ac0;color:#fff}.rtm-button.large{font-size:16px;margin-bottom:20px;padding:20px 40px}.rtm-button.rtm-button-success{background-color:#2ecc71}.rtm-button.rtm-button-success:hover,.rtm-button.rtm-button-success:focus{background-color:#2fab41}.rtm-hire-points{font-size:14px;margin-bottom:24px}@media only screen and (min-width: 1025px){.rtm-setting-container{float:left;width:78.2%}.rtm-sidebar{float:right;width:20%}.rtm-sidebar .postbox{min-width:0}.rtm-field-wrap{max-width:92%}.rtm-tip:after,.rtm-tip:before{right:100%;top:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-right-color:#fffAF0;border-width:6px;margin-top:-6px}.rtm-tip:before{border-color:rgba(221,204,170,0);border-right-color:#f5deaf;border-width:7px;margin-top:-7px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{float:left;width:40%}}@media only screen and (min-width: 641px) and (max-width: 1024px){.rtm-sidebar{width:100%}.rtm-sidebar .postbox{display:inline-block;margin-left:5px;vertical-align:top}.rtm-sidebar .postbox:first-child{margin-left:0}}@media screen and (max-width: 1024px){.rtm-tip{bottom:26px;left:auto;right:-102px;top:auto;width:200px}.rtm-tip:after,.rtm-tip:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:7px;margin-left:-7px}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:100%}.rtm-field-wrap input[type=text]{max-width:140px !important}.theme-browser .theme:nth-child(2n+1){margin-right:4%}.rtmedia-settings-submit{margin-bottom:0 !important}}@media only screen and (min-width: 641px){.rtm-pro-feature-list li:nth-child(3n+1){clear:left}}@media screen and (min-width: 421px) and (max-width: 782px){.rtm-option-wrapper .form-table td{display:table-cell}.rtm-option-wrapper .form-table th{display:table-cell}}@media only screen and (max-width: 640px){.rtm-pro-feature-list li{width:50%}.rtm-pro-feature-list li:nth-child(2n+1){clear:left}.rtm-tabs{width:40px}.rtm-tabs li{width:40px}.rtm-tabs a{height:18px}.rtm-tabs a:hover{width:140px}.rtm-tabs a:hover span{display:block}.rtm-tabs span{display:none;padding:0 0 0 28px;position:absolute}.rtm-support-form label{width:100%;margin-bottom:5px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{width:70%}.rtm-button-wrapper{padding-left:0}}@media screen and (max-width: 481px){.rtm-plugin-card.plugin-card .rtm-logo{display:inline-block;float:none}.rtm-theme-browser .rtm-themes .rtm-theme{margin:0 0 20px;width:100%}}@media screen and (max-width: 420px){.rtm-option-wrapper .form-table th{padding-bottom:15px;width:100%}#rtmedia-types .form-table th,#rtmedia-custom-css-settings .form-table th{width:100%}.rtm-pro-feature-list li{width:100%}.rtm-tip-top{right:-115px}}body.rtl .rtm-tabs a{padding:10px 32px 10px 4px}body.rtl .rtm-tabs .dashicons{right:10px}body.rtl .rtm-social-share .dashicons{left:10px;right:auto}body.rtl .rtm-option-wrapper .rtm-field-wrap{float:right}body.rtl .rtm-tip-top,body.rtl .rtm-tip{left:auto;right:24px}body.rtl .rtm-tip-top:after,body.rtl .rtm-tip-top:before,body.rtl .rtm-tip:after,body.rtl .rtm-tip:before{display:none}body.rtl .rtm-edit-td,body.rtl .rtm-delete-td{float:right;margin-left:0}body.rtl .rtm-edit-td{margin-right:-15px}body.rtl #rtmedia-membership span.float-right{float:left}body.rtl .theme-browser .theme{float:left;margin:0 4% 4% 0}.rtmedia-license .rtm-tabs span{padding:0}
app/assets/admin/css/sass/_components.scss CHANGED
@@ -1,29 +1,27 @@
1
  // Social Links
2
  .rtm-social-links {
3
-
4
  a {
5
  display: inline-block;
6
  margin: 4px 0 4px 4px;
7
  text-decoration: none;
8
  }
9
-
10
  }
11
 
12
  // Go Pro button
13
  .nav-tab.rtm-premium {
14
- background: #e74c3c;
15
- color: white;
16
- letter-spacing: 0.5px;
17
  }
18
 
19
  .rtm-setting-title {
20
  border-bottom: 1px solid $light;
21
- font-size: 22px;
22
- font-weight: 400;
23
- line-height: 1;
24
- margin-bottom: 20px;
25
- margin-top: 0;
26
- padding-bottom: 14px;
27
  display: none;
28
 
29
  &.rtm-show {
@@ -146,12 +144,12 @@
146
 
147
  .rtm-option-title {
148
  border-bottom: 1px solid $light;
149
- font-size: 14px;
150
- letter-spacing: 0.02rem;
151
- margin-bottom: 12px;
152
- margin-top: 0;
153
- padding: 0 0 6px;
154
- text-transform: uppercase;
155
  }
156
 
157
  .rtm-sidebar {
@@ -164,7 +162,6 @@
164
  }
165
 
166
  .rtm-social-share {
167
-
168
  .dashicons {
169
  font-size: 18px;
170
  position: absolute;
@@ -184,7 +181,6 @@
184
  }
185
  }
186
 
187
-
188
  .wordpress {
189
  .dashicons {
190
  color: #21759b;
@@ -205,11 +201,11 @@
205
  .rtm-notice {
206
  background: rgba($light, 0.8);
207
  color: #777;
208
- font-size: 12px;
209
- line-height: 1.6;
210
- margin-top: 10px;
211
  overflow: hidden;
212
- padding: 0 10px;
213
 
214
  p {
215
  font-size: inherit;
@@ -220,9 +216,9 @@
220
 
221
  .rtm-warning {
222
  background-color: #fcf8e3;
223
- border-bottom: 1px solid #EEE;
224
- color: #c09853;
225
- padding: 10px 15px;
226
  }
227
 
228
  .rtmedia-theme-warning {
@@ -231,22 +227,22 @@
231
 
232
  .rtm-success {
233
  background-color: #dff0d8;
234
- border-bottom: 1px solid #e7e7e7;
235
- color: #468847;
236
- margin: 0;
237
- padding: 8px 35px 8px 14px;
238
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
239
  }
240
 
241
  .rtm-fly-warning {
242
  border-bottom: 0;
243
- left: -10px;
244
- letter-spacing: 1px;
245
- line-height: 22px;
246
- margin-bottom: 0;
247
- padding: 14px 25px;
248
- position: absolute;
249
- top: -5px;
250
  }
251
 
252
  // Types table needs different styles
@@ -328,7 +324,6 @@
328
  }
329
  }
330
 
331
-
332
  tr:last-child {
333
  border-top: 1px solid $light;
334
 
@@ -352,4 +347,72 @@
352
  font-size: 13px;
353
  }
354
  }
355
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  // Social Links
2
  .rtm-social-links {
 
3
  a {
4
  display: inline-block;
5
  margin: 4px 0 4px 4px;
6
  text-decoration: none;
7
  }
 
8
  }
9
 
10
  // Go Pro button
11
  .nav-tab.rtm-premium {
12
+ background: #e74c3c;
13
+ color: white;
14
+ letter-spacing: 0.5px;
15
  }
16
 
17
  .rtm-setting-title {
18
  border-bottom: 1px solid $light;
19
+ font-size: 22px;
20
+ font-weight: 400;
21
+ line-height: 1;
22
+ margin-bottom: 20px;
23
+ margin-top: 0;
24
+ padding-bottom: 14px;
25
  display: none;
26
 
27
  &.rtm-show {
144
 
145
  .rtm-option-title {
146
  border-bottom: 1px solid $light;
147
+ font-size: 14px;
148
+ letter-spacing: 0.02rem;
149
+ margin-bottom: 12px;
150
+ margin-top: 0;
151
+ padding: 0 0 6px;
152
+ text-transform: uppercase;
153
  }
154
 
155
  .rtm-sidebar {
162
  }
163
 
164
  .rtm-social-share {
 
165
  .dashicons {
166
  font-size: 18px;
167
  position: absolute;
181
  }
182
  }
183
 
 
184
  .wordpress {
185
  .dashicons {
186
  color: #21759b;
201
  .rtm-notice {
202
  background: rgba($light, 0.8);
203
  color: #777;
204
+ font-size: 12px;
205
+ line-height: 1.6;
206
+ margin-top: 10px;
207
  overflow: hidden;
208
+ padding: 0 10px;
209
 
210
  p {
211
  font-size: inherit;
216
 
217
  .rtm-warning {
218
  background-color: #fcf8e3;
219
+ border-bottom: 1px solid #EEE;
220
+ color: #c09853;
221
+ padding: 10px 15px;
222
  }
223
 
224
  .rtmedia-theme-warning {
227
 
228
  .rtm-success {
229
  background-color: #dff0d8;
230
+ border-bottom: 1px solid #e7e7e7;
231
+ color: #468847;
232
+ margin: 0;
233
+ padding: 8px 35px 8px 14px;
234
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
235
  }
236
 
237
  .rtm-fly-warning {
238
  border-bottom: 0;
239
+ left: -10px;
240
+ letter-spacing: 1px;
241
+ line-height: 22px;
242
+ margin-bottom: 0;
243
+ padding: 14px 25px;
244
+ position: absolute;
245
+ top: -5px;
246
  }
247
 
248
  // Types table needs different styles
324
  }
325
  }
326
 
 
327
  tr:last-child {
328
  border-top: 1px solid $light;
329
 
347
  font-size: 13px;
348
  }
349
  }
350
+ }
351
+
352
+ .rtm-addon-license {
353
+ border: 1px solid #ddd;
354
+ margin: .5rem 0;
355
+ background-color: #fff;
356
+
357
+ .title {
358
+ background-color: #fafafa;
359
+ border-bottom: 1px solid #ddd;
360
+ margin: 0;
361
+ padding: 15px 10px;
362
+ }
363
+
364
+ .license-inner {
365
+ padding: 10px;
366
+ }
367
+ }
368
+
369
+ form.license-form {
370
+ padding: 0;
371
+ margin: 0;
372
+
373
+ input[type="text"] {
374
+ width: 100%;
375
+ max-width: 100%;
376
+ height: 35px;
377
+ line-height: 35px;
378
+ }
379
+
380
+ input[type="submit"] {
381
+ margin: 10px 0 0;
382
+ }
383
+ }
384
+
385
+ .license-message {
386
+ margin: 15px 0 0 0;
387
+ padding: 8px;
388
+
389
+ &.warning {
390
+ background: rgba(#ffb900, 0.1);
391
+ border: 1px solid #ffb900;
392
+ }
393
+
394
+ &.success {
395
+ background: rgba(#46b450, 0.1);
396
+ border: 1px solid #46b450;
397
+ }
398
+
399
+ &.info {
400
+ background: rgba(#00a0d2, 0.1);
401
+ border: 1px solid #00a0d2;
402
+ }
403
+
404
+ &.alert {
405
+ background: rgba(#dc3232, 0.1);
406
+ border: 1px solid #dc3232;
407
+ }
408
+ }
409
+
410
+ .rtml-submit-wrapper {
411
+ .submit {
412
+ margin-left: 8px;
413
+ margin-right: 8px;
414
+ margin-top: 0;
415
+ padding-top: 0;
416
+ padding-bottom: 10px;
417
+ }
418
+ }
app/assets/admin/css/sass/_layout.scss CHANGED
@@ -7,7 +7,7 @@ $container-min-height: 300px;
7
 
8
  .rtm-admin-tab-container {
9
  display: table;
10
- width: 100%;
11
 
12
  .rtm-tabs-content {
13
  background: $white;
@@ -22,12 +22,11 @@ $container-min-height: 300px;
22
  .rtm-setting-container {
23
  background-color: #f5f5f5;
24
  border: 1px solid $border-dark;
25
- box-shadow: 0 1px 1px rgba( $black, 0.04 );
26
  margin-top: 10px;
27
  }
28
 
29
  .rtm-sidebar {
30
-
31
  .postbox {
32
  //background: rgba($white, 0.8);
33
 
@@ -47,12 +46,12 @@ $container-min-height: 300px;
47
 
48
  .rtm-button-container {
49
  background: #f3f3f3;
50
- border-bottom: 1px solid $border-dark;
51
- box-shadow: 0 1px 0 #fcfcfc inset;
52
  overflow: hidden;
53
- padding: 6px 10px 6px 6px;
54
  position: relative;
55
- text-align: right;
56
 
57
  &.bottom {
58
  background: $light;
@@ -68,6 +67,41 @@ $container-min-height: 300px;
68
 
69
  #mc-embedded-subscribe {
70
  display: block;
71
- margin: 10px auto 0;
72
- width: 100%;
73
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  .rtm-admin-tab-container {
9
  display: table;
10
+ width: 100%;
11
 
12
  .rtm-tabs-content {
13
  background: $white;
22
  .rtm-setting-container {
23
  background-color: #f5f5f5;
24
  border: 1px solid $border-dark;
25
+ box-shadow: 0 1px 1px rgba($black, 0.04);
26
  margin-top: 10px;
27
  }
28
 
29
  .rtm-sidebar {
 
30
  .postbox {
31
  //background: rgba($white, 0.8);
32
 
46
 
47
  .rtm-button-container {
48
  background: #f3f3f3;
49
+ border-bottom: 1px solid $border-dark;
50
+ box-shadow: 0 1px 0 #fcfcfc inset;
51
  overflow: hidden;
52
+ padding: 6px 10px 6px 6px;
53
  position: relative;
54
+ text-align: right;
55
 
56
  &.bottom {
57
  background: $light;
67
 
68
  #mc-embedded-subscribe {
69
  display: block;
70
+ margin: 10px auto 0;
71
+ width: 100%;
72
+ }
73
+
74
+ .license-row {
75
+ box-sizing: border-box;
76
+ display: flex;
77
+ flex: 0 1 auto;
78
+ flex-direction: row;
79
+ flex-wrap: wrap;
80
+ }
81
+
82
+ .license-column, .license-column {
83
+ box-sizing: border-box;
84
+ flex: 0 0 auto;
85
+ padding-right: .5rem;
86
+ padding-left: .5rem;
87
+ }
88
+
89
+ .large-4 {
90
+ -ms-flex-preferred-size: 33.33333333%;
91
+ flex-basis: 33.33333333%;
92
+ max-width: 33.33333333%;
93
+ }
94
+
95
+ @media screen and (max-width: 768px) {
96
+ .medium-6 {
97
+ flex-basis: 50%;
98
+ max-width: 50%;
99
+ }
100
+ }
101
+
102
+ @media screen and (max-width: 667px) {
103
+ .small-12 {
104
+ flex-basis: 100%;
105
+ max-width: 100%;
106
+ }
107
+ }
app/assets/admin/css/sass/_tabs.scss CHANGED
@@ -2,6 +2,10 @@
2
 
3
  li {
4
  margin: 0;
 
 
 
 
5
  }
6
 
7
  a {
2
 
3
  li {
4
  margin: 0;
5
+
6
+ &.error {
7
+ border-left: 4px solid #dc3232;
8
+ }
9
  }
10
 
11
  a {
app/assets/css/rtmedia.css CHANGED
@@ -1018,9 +1018,9 @@ img.mfp-img {
1018
  position: relative;
1019
  }
1020
  .mfp-content .rtm-lightbox-container .rtmedia-media-description .allcontent {
1021
- max-height: 200px;
1022
  overflow-y: auto;
1023
- margin: 5px 0;
1024
  }
1025
  .mfp-content .rtm-single-meta {
1026
  background: #FFFFFF;
@@ -1368,9 +1368,7 @@ img.mfp-img {
1368
  background-color: #edeff4;
1369
  bottom: 20px;
1370
  padding: 10px;
1371
- position: absolute;
1372
- width: -webkit-calc(100% - 40px);
1373
- width: calc(100% - 40px);
1374
  }
1375
  .rtm-media-single-comments textarea {
1376
  font-size: 12px;
@@ -2470,6 +2468,9 @@ a.rtmedia-upload-media-link {
2470
  table-layout: fixed;
2471
  width: 100%;
2472
  }
 
 
 
2473
  .mfp-content .rtm-single-media {
2474
  display: table-cell;
2475
  width: 66.6667%;
@@ -2477,11 +2478,17 @@ a.rtmedia-upload-media-link {
2477
  .mfp-content .rtm-single-meta {
2478
  display: table-cell;
2479
  width: 33.3333%;
 
 
 
 
 
 
2480
  }
2481
  .mfp-content .rtmedia-item-comments {
2482
- max-height: 330px;
2483
  overflow-x: hidden;
2484
- overflow-y: auto;
2485
  }
2486
  }
2487
  .rtl #rtSelectPrivacy {
1018
  position: relative;
1019
  }
1020
  .mfp-content .rtm-lightbox-container .rtmedia-media-description .allcontent {
1021
+ /* max-height: 200px;
1022
  overflow-y: auto;
1023
+ margin: 5px 0; */
1024
  }
1025
  .mfp-content .rtm-single-meta {
1026
  background: #FFFFFF;
1368
  background-color: #edeff4;
1369
  bottom: 20px;
1370
  padding: 10px;
1371
+ width: 100%;
 
 
1372
  }
1373
  .rtm-media-single-comments textarea {
1374
  font-size: 12px;
2468
  table-layout: fixed;
2469
  width: 100%;
2470
  }
2471
+ .mfp-content .rtm-mfp-close {
2472
+ background: transparent;
2473
+ }
2474
  .mfp-content .rtm-single-media {
2475
  display: table-cell;
2476
  width: 66.6667%;
2478
  .mfp-content .rtm-single-meta {
2479
  display: table-cell;
2480
  width: 33.3333%;
2481
+ padding: 20px;
2482
+ height: 473px;
2483
+ }
2484
+ .mfp-content .rtm-single-meta .rtmedia-scroll {
2485
+ height: 100%;
2486
+ overflow-X: hidden;
2487
  }
2488
  .mfp-content .rtmedia-item-comments {
2489
+ /* max-height: 330px;
2490
  overflow-x: hidden;
2491
+ overflow-y: auto; */
2492
  }
2493
  }
2494
  .rtl #rtSelectPrivacy {
app/assets/css/rtmedia.min.css CHANGED
@@ -1 +1 @@
1
- .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.rtmedia-success,.rtmedia-warning{margin:10px 0;padding:8px 14px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5);border-bottom:1px solid #e7e7e7;cursor:pointer}.rtmedia-success{background-color:#dff0d8;color:#468847}.rtmedia-warning{background-color:#F0D8DD;color:#884646}.clearfix:after{content:"";display:table;clear:both}#buddypress form#whats-new-form textarea{box-sizing:border-box;min-height:70px;width:100%}#buddypress #whats-new-options{height:auto !important;overflow:hidden}#buddypress form#whats-new-form p.activity-greeting{line-height:1}#buddypress form#whats-new-form #whats-new-options select{border:1px solid #ccc;font-size:13px;margin-top:0;padding:3px 2px}#whats-new-submit #aw-whats-new-submit{font-size:12px;line-height:18px;padding:4px 6px}#whats-new-post-in-box{float:left;font-size:13px}#buddypress form#whats-new-form #whats-new-submit{margin-top:0}#whats-new-textarea{margin-bottom:10px}body.media.buddypress{overflow-y:auto}.rtmedia-container{box-sizing:border-box}.rtmedia-container *,.rtmedia-container *:before,.rtmedia-container *:after{box-sizing:inherit}.rtmedia-list.rtmedia-list{list-style:none;margin:0;padding:0}.rtmedia-list-item>a{border:0;display:inline-block;text-decoration:none}.rtmedia-list-item>a:focus{outline:0}.rtmedia-list-item>a+p{display:none}.rtmedia-list-item>a .rtmedia-item-thumbnail img{display:inline-block}#rtmedia-uploader-form .rtm-plupload-list,#rtmedia_uploader_filelist{list-style:none;margin-left:-4px;margin-right:-4px;padding-left:0;padding-top:10px}#rtmedia-uploader-form .rtm-plupload-list li,#rtmedia_uploader_filelist li{background:#eee;float:left;margin:4px;max-width:110px;padding:5px;position:relative}#rtmedia-uploader-form .rtm-plupload-list li.upload-error,#rtmedia_uploader_filelist li.upload-error{border:1px solid red}#rtmedia-uploader-form .rtm-plupload-list img,#rtmedia_uploader_filelist img{max-width:100%}#rtmedia-uploader-form .rtm-plupload-list canvas,#rtmedia_uploader_filelist canvas{display:block;max-width:100%}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title{font-size:12px}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,#rtmedia_uploader_filelist .rtm-upload-edit-desc{font-size:12px;display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label{display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title{min-width:100%;margin-top:1px}.rtm-plupload-list:empty{display:none}.rtmedia-uploader-div,.rtmedia-uploader{clear:both}button#rtmedia-add-media-button-post-update{padding:3px 6px}button#rtmedia-add-media-button-post-update .dashicons{font-size:18px;line-height:20px}.plupload_file_name{font-size:11px;font-weight:bold;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plupload_file_size{color:#666;font-size:10px}.plupload_file_action{background:#eee;position:absolute;height:18px;right:4px;top:0;width:18px;z-index:10}.plupload_file_action .dashicons{color:#DD3D36;cursor:pointer;font-size:16px;height:18px;padding:2px 1px;width:18px}.plupload_file_status{height:18px;overflow:hidden;position:relative}.plupload_file_progress{background:#7AD03A;height:4px;position:absolute;top:0}.rtm-form .rtm-field-wrap{margin-bottom:20px}.rtmedia_next_prev{padding:0 10px}.rtm-page-number{float:left}.rtm-page-number .rtm-label{line-height:30px}.rtm-page-number .rtm-label,.rtm-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{float:left}.rtm-pagination{background:transparent;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:left;width:100%;padding:10px 0}.rtm-pagination .rtm-paginate{float:right;font-size:15px}.rtm-pagination .rtm-paginate a,.rtm-pagination .rtm-paginate span{display:inline-block;line-height:1;margin:0 2px;padding:8px;text-decoration:none}.rtm-pagination .rtm-paginate a.rtmedia-page-link{padding:8px}.rtm-pagination .dashicons{font-size:14px;height:auto;line-height:1.2;margin:0;padding:0;width:auto}#rtmedia_go_to_num{font-size:16px;margin:0 5px;padding:4px 5px;width:80px}.rtmedia-upload-not-allowed{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;margin-bottom:20px;padding:10px 15px}.plupload_file_name{position:relative}.plupload_file_name .dashicons{background:#eee;color:#DD3D36;cursor:pointer;font-size:14px;height:auto;padding:0 2px 0 5px;position:absolute;right:0;top:0;width:auto}.plupload_file_name .dashicons-yes{color:#7AD03A}.rtmedia-gallery-item-actions{background-color:rgba(0,0,0,0.6);opacity:0;position:absolute;text-align:center;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s;width:100%;z-index:9}.rtmedia-gallery-item-actions a{border:0;box-shadow:0 0 0;color:#fff;display:inline-block;font-size:12px;outline:none;padding:4px;text-align:left;text-decoration:none;text-transform:uppercase}.rtmedia-gallery-item-actions .dashicons{font-size:17px;margin-right:2px;position:relative;top:1px}.rtmedia-gallery-item-actions .dashicons-trash{font-size:15px}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-gallery-item-actions{opacity:1}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-bulk-edit-item-wrap+.rtmedia-gallery-item-actions{opacity:0}.rtmedia-footer-link{clear:both;overflow:hidden;padding:16px 0;position:relative;text-align:center}.rtmedia-text-link-decoration,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span{text-decoration:none}.rtmedia-text-link-decoration:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span:hover{text-decoration:underline}.rtmedia-container .rtmedia-edit-list-media-table{max-height:300px;overflow-y:auto}.rtmedia-container .rtmedia-edit-list-media-table thead tr{background-color:#50A1D7}.rtmedia-container .rtmedia-edit-list-media-table thead th{text-align:center;color:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(odd){background:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(even){background:#DCDCDC}table.rtmedia-edit-media-list tr{line-height:30px}table.rtmedia-edit-media-list tr th{color:#333;padding:4px 10px;line-height:20px}table.rtmedia-edit-media-list tr .rtm-edit-media-list-heading{width:44%}table.rtmedia-edit-media-list tr .rtm-edit-media-list-title-heading{width:56%}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title{padding:4px;font-size:14px;line-height:24px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a{text-decoration:none;color:#333}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a{color:#333;font-size:13px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span{color:#FF0000;cursor:pointer;font-size:13px}.rtm-hide{display:none}.rtm-tabs.rtm-tabs{border-bottom:1px solid #eee;list-style:none;margin:0 0 20px;padding:0}.rtm-tabs li{border:1px solid #eee;border-bottom:0;float:left;margin:0 5px;padding:0}.rtm-tabs a{border:0;display:block;padding:5px 15px;text-decoration:none}.rtm-tabs a:focus{background:transparent;box-shadow:0 0 0}.rtm-tabs .active{position:relative}.rtm-tabs .active:after{background:#fff;bottom:-1px;content:' ';height:1px;left:0;position:absolute;width:100%}.rtm-tabs .dashicons{font-size:16px;height:auto;line-height:20px;margin-right:8px;width:auto}.rtmedia-edit-media-tabs .rtm-tabs a{border-bottom:0 none}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:104211;overflow:hidden;position:fixed;background:rgba(0,0,0,0.9)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:104311;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;max-width:84%;margin:0 auto;right:0;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{background:#fff;color:#999;cursor:pointer;font-size:24px;font-style:normal;height:30px;line-height:30px;padding:0;position:absolute;right:1px;text-align:center;text-decoration:none;text-indent:2px;top:0;width:32px;z-index:12}.mfp-close:hover,.mfp-close:focus{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{cursor:pointer;position:absolute;opacity:0.65;filter:alpha(opacity=65);margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent;opacity:0;z-index:10;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .mfp-arrow{opacity:1}@media (max-device-width: 640px){.mfp-arrow{display:none}.rtm-single-media:hover .mfp-arrow{display:none}}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1;filter:alpha(opacity=100)}.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after,.mfp-arrow .mfp-a{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before,.mfp-arrow .mfp-b{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after,.mfp-arrow-left .mfp-a{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after,.mfp-arrow-right .mfp-a{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before,.mfp-arrow-right .mfp-b{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}.mfp-preloader{position:absolute;top:50%;left:0;right:0;margin-top:-36px;z-index:1044;font-size:0;width:36px;height:36px;margin-left:auto;margin-right:auto}.mfp-preloader:before{content:'Loading…';position:absolute;width:30px;height:30px}.mfp-preloader:not(:required):before{content:'';border-radius:50%;border:3px solid rgba(255,255,255,0.27);border-top-color:rgba(255,255,255,0.9);animation:spinner .6s linear infinite;-webkit-animation:spinner .6s linear infinite}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-content .rtm-lightbox-container{background:#000;margin:0 auto;position:relative}.mfp-content .rtm-lightbox-container .rtmedia-media-description .allcontent{max-height:200px;overflow-y:auto;margin:5px 0}.mfp-content .rtm-single-meta{background:#fff;overflow:hidden;padding:20px 20px 110px;position:relative;vertical-align:top}.rtm-single-media{overflow:hidden;position:relative;text-align:center;vertical-align:middle}.rtm-single-media .mejs-container{margin:0 auto;max-width:inherit}.rtm-single-media .rtmedia-message-container{position:absolute;top:45%;left:0;right:0;margin-left:auto;margin-right:auto}@media (max-device-width: 640px){.rtm-single-media .rtmedia-message-container{top:25%}}.rtm-ltb-action-container{background-color:rgba(0,0,0,0.6);bottom:0;color:#fff;line-height:38px;opacity:0;padding:0 10px;position:absolute;width:100%;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}@media (max-device-width: 640px){.rtm-ltb-action-container{clear:both;position:relative;opacity:1}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);display:block;font-family:inherit;font-weight:normal;line-height:24px;margin:0;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button:hover{background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.8)}#buddypress #rtmedia-single-media-container.rtmedia-single-media .rtm-options .button{color:#333;margin:0 auto;padding:0 4px 0 0}#buddypress #rtm-media-options-list .rtm-options .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);float:left;font-family:inherit;font-weight:normal;line-height:24px;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}.rtm-options.rtm-options{background:#666;color:#fff;display:none;font-size:14px;list-style:none;margin:0;padding:8px 10px;position:absolute;left:0;top:38px;width:190px;z-index:10}.rtm-options li{margin:0;overflow:hidden;padding:2px 0}.rtm-media-options .rtm-options:after{bottom:100%;left:20px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#666;border-width:6px;margin-left:-6px}.mfp-content .rtm-options{background:#fff;color:#333;bottom:38px;right:0;left:auto;top:auto}.mfp-content .rtm-options:after{top:100%;right:22px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:6px;margin-left:-6px}.rtm-options .dashicons{font-size:14px;line-height:24px;margin-right:2px}.rtm-media-options .rtm-options a{border:0;color:#fff;display:block;text-decoration:none}.rtm-ltb-title{color:rgba(255,255,255,0.7);float:left;font-size:13px}.rtm-ltb-title a{color:inherit}.rtm-ltb-title a:hover{border-bottom:1px dotted;color:#fff}.rtm-item-actions{float:right}.rtm-item-actions>div,.rtm-item-actions>form{float:left;margin:0 2px;padding:7px 0;position:relative}.rtmedia-media img{display:inline-block;max-height:inherit;height:auto;max-width:100%;width:auto}@media only screen and (max-device-width: 1024px){.rtmedia-media{margin:40px 0}}.rtm-user-meta-details .username{font-size:16px;line-height:1;margin-bottom:6px}.userprofile{float:left;margin:0 16px 16px 0;max-width:54px}.userprofile a{display:block}.userprofile img{height:auto;max-width:100%}.rtm-time-privacy{color:#999;font-size:12px}.rtm-time-privacy .dashicons{font-size:14px;line-height:1.5}.rtmedia-actions-before-comments>span{float:left;margin-right:10px}.rtmedia-actions-before-comments .rtmedia-comment-link,#buddypress .rtmedia-actions-before-comments .rtmedia-like{border:0;font-size:13px;font-weight:normal;line-height:2;padding:0;text-transform:none}.rtmedia-actions-before-comments .rtmedia-comment-link:hover,#buddypress .rtmedia-actions-before-comments .rtmedia-like:hover{background:transparent}.rtmedia-comment-user-pic{float:left;margin-right:10px;max-width:36px}.rtmedia-comment-user-pic img{height:auto;max-width:100%}.rtm-like-comments-info{position:relative}.rtm-like-comments-info:after{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(237,239,244,0);border-bottom-color:#edeff4;border-width:4px;margin-left:-4px}.rtm-comment-list.rtm-comment-list{list-style:none;margin:0;padding:0}.rtm-comment-list li{background:#edeff4;font-size:12px;margin-bottom:1px;padding:10px;position:relative}.rtm-comment-list li:hover .rtmedia-delete-comment{opacity:1}.rtm-comment-list .rtmedia-no-comments{margin:0;padding:5px 10px}.rtmedia-like-info{background:#edeff4;font-size:12px;margin-bottom:1px;padding:5px 10px;position:relative}.rtm-comment-wrap{overflow:hidden}.rtm-comment-wrap .rtmedia-comment-author{font-weight:700}.rtm-comment-wrap .rtmedia-comment-date{color:#999;font-size:11px}.rtmedia-comment-content{margin-top:2px}.rtmedia-delete-comment{color:#999;cursor:pointer;font-size:16px;opacity:0;position:absolute;right:5px;top:5px}.rtmedia-comment-content p{margin:0}.rtmedia-comment-details{line-height:1.5;margin-top:-3px}.rtmedia-item-comments textarea{font-size:14px;padding:4px}.rtm-media-single-comments{background-color:#edeff4;bottom:20px;padding:10px;position:absolute;width:-webkit-calc(100% - 40px);width:calc(100% - 40px)}.rtm-media-single-comments textarea{font-size:12px;line-height:14px;max-height:40px;min-height:30px;padding:4px}.rtmedia-popup{background:#fff;margin:20px auto;max-width:600px;padding:20px;position:relative;width:auto}.rtmedia-popup .rtm-modal-title{font-size:24px;margin-bottom:20px;margin-top:0}.rtmedia-popup label{display:block;margin-bottom:5px}#rtm-modal-container p{margin-bottom:10px}#rtm-mejs-video-container{margin:0 auto}.rtmedia-media-name{float:left;max-width:140px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.rtm-single-media.rtm-media-type-video{padding-bottom:40px;padding-top:40px}.rtmedia-gallery-alert-container{position:fixed;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,0.6);z-index:999997}.rtmedia-gallery-message-box{position:fixed;top:40%;left:50%;margin-left:auto;margin-right:auto;z-index:999999}.rtmedia-gallery-message-box span{position:relative;left:-50%}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}#buddypress ul.rtmedia-list li{border-bottom:0;padding-bottom:0}.rtmedia-activity-container .rtmedia-item-actions{display:none}.rtmedia-activity-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title a{border:0;color:#666;font-size:13px;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}#rtmedia-whts-new-upload-container div{left:0 !important;position:absolute;top:0 !important}#aw-whats-new-submit,.rtmedia-add-media-button{display:block}.rtm-drag-drop-active{border:4px dashed green !important;display:block;height:100%;opacity:0.5;z-index:9999}#rtm-drop-files-title{background:rgba(0,0,0,0.2);display:none;font-size:14px;height:100%;padding:20px;position:absolute;top:0;width:100%}#rtSelectPrivacy{float:right}.rtmedia-plupload-container{position:relative;float:left}.rtm-upload-button-wrapper{float:left;margin-right:5px}#rtmedia-action-update{margin-right:10px}.rtmedia-list-item.media-type-document,.rtmedia-list-item.media-type-music,.rtmedia-list-item.media-type-video{display:inline-block}.media-type-music .mejs-container{margin-bottom:10px}.rtmedia-album-edit .rtm-checkbox-wrap{background:rgba(255,255,255,0.9);height:30px;line-height:1;padding:10px;position:absolute;z-index:10}.rtmedia-album-edit .rtmedia-item-selector{position:relative;top:-7px}.rtmedia-album-edit .rtmedia-move-container{display:none}.rtm-single-actions.rtm-item-actions{float:none}.media-item .describe{border-collapse:collapse;width:100%;border-top-style:solid;border-top-width:1px;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:bold}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:bold}.media-upload-form th.label label{font-weight:bold;margin:0.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}abbr.required{border:medium none;text-decoration:none}.media-item .describe input[type="text"],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.media-item .edit-attachment,.describe-toggle-on,.describe-toggle-off{display:block;line-height:36px;float:right;margin-right:15px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}#media-items .media-item{border-style:solid;border-width:1px;min-height:36px;position:relative;margin-top:-1px;width:100%}#media-items{width:623px}.media-new-php #media-items{margin:1em 0}#media-items:empty{border:0 none}.media-item .filename{line-height:36px;overflow:hidden;padding:0 10px}.media-item .error-div{padding-left:10px}.media-item .pinkynail{float:left;margin:2px 2px 0;max-width:40px;max-height:32px}.media-item .startopen,.media-item .startclosed{display:none}.media-item .original{position:relative;height:34px}.media-item .progress{float:right;height:22px;margin:6px 10px 0 0;width:200px;line-height:2em;padding:0;overflow:hidden;margin-bottom:2px;border:1px solid #d1d1d1;background:#f7f7f7;background-image:-webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));background-image:-webkit-linear-gradient(bottom, #fff, #f7f7f7);background-image:linear-gradient(to top, #fff, #f7f7f7);border-radius:3px;box-shadow:inset 0 0 3px rgba(0,0,0,0.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-24px;background-color:#8cc1e9;background-image:-webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));background-image:-webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);background-image:linear-gradient(to top, #72a7cf, #8cc1e9);border-radius:3px;box-shadow:0 0 3px rgba(0,0,0,0.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0 8px;text-shadow:0 1px 0 rgba(255,255,255,0.4);color:rgba(0,0,0,0.6)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}.media-upload-form .media-item.error{margin:0;padding:0}.media-upload-form .media-item.error p,.media-item .error-div{line-height:16px;margin:5px 10px;padding:0}.media-item .error-div a.dismiss{display:block;float:right;margin:5px 4px 0 15px}.find-box{width:600px;height:300px;overflow:hidden;padding:33px 0 51px;position:absolute;z-index:1000}.find-box-head{cursor:move;font-weight:bold;height:2em;line-height:2em;padding:1px 12px;position:absolute;top:5px;width:100%}.find-box-inside{overflow:auto;padding:6px;height:100%}.find-box-search{overflow:hidden;padding:9px;position:relative}.find-box-search .spinner{float:none;left:125px;position:absolute;top:9px}#find-posts-input{float:left;width:140px;height:24px}#find-posts-search{float:left;margin:1px 4px 0 3px}#find-posts-response{margin:8px 0;padding:0 1px 6px}#find-posts-response table{width:100%}#find-posts-response .found-radio{padding:3px 0 0 8px;width:15px}.find-box-buttons{padding:8px;overflow:hidden}.find-box #resize-se{position:absolute;right:1px;bottom:1px}.ui-find-overlay{position:absolute;top:0;left:0;background-color:#000;opacity:0.6;filter:alpha(opacity=60)}ul#dismissed-updates{display:none}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-0.5em 0 2em 0}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border-width:1px;border-style:solid;line-height:1.8em;word-spacing:3px;border-radius:6px}.drag-drop #drag-drop-area{border:4px dashed #DDDDDD;height:200px}.drag-drop .drag-drop-inside{margin:70px auto 0;width:250px}.drag-drop-inside p{color:#aaa;font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}#plupload-upload-ui{position:relative}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative}.imgedit-settings p{margin:8px 0}.post-php .imgedit-wrap table{width:100%}.describe .imgedit-wrap table td,.wp_attachment_holder .imgedit-wrap table td{vertical-align:top;padding-top:0}.describe .imgedit-wrap table td.imgedit-settings{padding:0 5px}.wp_attachment_holder .imgedit-wrap table td.imgedit-settings{width:250px}td.imgedit-settings input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;background:#fff url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat scroll 22px 10px;background-size:16px 16px;opacity:0.7;filter:alpha(opacity=70);width:100%;height:500px;display:none}.spinner{background:url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat;background-size:16px 16px;display:none;float:right;opacity:0.7;filter:alpha(opacity=70);width:16px;height:16px;margin:5px 5px 0}.no-float{float:none}.media-disabled,.imgedit-settings .disabled{color:grey}.wp_attachment_image,.A1B1{overflow:hidden}.wp_attachment_image .button,.A1B1 .button{float:left}.no-js .wp_attachment_image .button{display:none}.wp_attachment_image .spinner,.A1B1 .spinner{float:left;padding:0 4px 4px;vertical-align:bottom}.imgedit-menu{margin:0 0 12px;min-width:300px}.imgedit-menu div{float:left;width:32px;height:32px}.imgedit-crop-wrap{position:relative}.imgedit-crop{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -9px -31px;margin:0 8px 0 0}.imgedit-crop.disabled:hover{background-position:-9px -31px}.imgedit-crop:hover{background-position:-9px -1px}.imgedit-rleft{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -46px -31px;margin:0 3px}.imgedit-rleft.disabled:hover{background-position:-46px -31px}.imgedit-rleft:hover{background-position:-46px -1px}.imgedit-rright{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -77px -31px;margin:0 8px 0 3px}.imgedit-rright.disabled:hover{background-position:-77px -31px}.imgedit-rright:hover{background-position:-77px -1px}.imgedit-flipv{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -115px -31px;margin:0 3px}.imgedit-flipv.disabled:hover{background-position:-115px -31px}.imgedit-flipv:hover{background-position:-115px -1px}.imgedit-fliph{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -147px -31px;margin:0 8px 0 3px}.imgedit-fliph.disabled:hover{background-position:-147px -31px}.imgedit-fliph:hover{background-position:-147px -1px}.imgedit-undo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -184px -31px;margin:0 3px}.imgedit-undo.disabled:hover{background-position:-184px -31px}.imgedit-undo:hover{background-position:-184px -1px}.imgedit-redo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -215px -31px;margin:0 8px 0 3px}.imgedit-redo.disabled:hover{background-position:-215px -31px}.imgedit-redo:hover{background-position:-215px -1px}.imgedit-applyto img{margin:0 8px 0 0}.imgedit-group h3{font-size:18px}.imgedit-group .dashicons{border:0;line-height:1.2}.imgedit-group-top{margin:5px 0}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block}.imgedit-help{display:none;font-style:italic;margin-bottom:8px}a.imgedit-help-toggle{text-decoration:none}.form-table td.imgedit-response{padding:0}.imgedit-submit{margin:8px 0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle}.wp_attachment_details{margin-bottom:20px}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:0.5}.bp-media-image-editor-cotnainer{margin-top:35px}.wp_attachment_image .bp-media-image-edit{float:left}.wp_attachment_image .spinner{display:none}.bp-media-image-editor-cotnainer .hidden{display:none}.bp-media-image-editor-cotnainer div.updated{margin:5px 0 15px;background-color:#ffffe0;border-color:#e6db55;padding:0 .6em;border-radius:3px;border-width:1px;border-style:solid}.bp-media-image-editor-cotnainer div.updated p{margin:.5em 0;padding:2px}body article.bp_members.bp_member .entry-content,body div.bp_members.bp_member .entry-content{width:100%}.rtm-media-gallery-uploader{display:none}.rtmedia-uploader .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;color:#AAAAAA;margin-top:20px;padding:25px 0}.rtmedia-uploader .drag-drop.dragover{border-color:#83b4d8}.rtmedia-uploader .drag-drop .drag-drop-info{font-size:20px;line-height:24px}.rtmedia-uploader .drag-drop .rtm-select-files span{vertical-align:middle}.rtmedia-uploader .drag-drop .rtm-seperator{margin:0px 20px}.rtmedia-uploader .drag-drop .start-media-upload{display:none;margin-top:20px}.rtmedia-uploader .drag-drop .rtm-file-size-limit{vertical-align:middle;font-size:16px;line-height:24px}.rtm-uploader-main-wrapper .rtm-uploader-tabs{margin-bottom:10px;text-align:left}.rtm-uploader-main-wrapper ul{border-bottom:1px solid #CCC}.rtm-uploader-main-wrapper li{margin:0 0 -1px 10px;display:inline-block;padding:5px 10px;line-height:25px;background-color:#e4e4e4;border:1px solid #CCC}.rtm-uploader-main-wrapper li.active{background:transparent;border-left:1px solid #CCC;border-top:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #fafafa}.rtm-uploader-main-wrapper li:hover{cursor:pointer}.rtmedia-container .rtmedia-list{margin:10px -5px}.rtmedia-container .rtmedia-list .rtmedia-list-item{float:left;margin:5px;position:relative}.rtmedia-container .rtmedia-list .rtmedia-list-item>a{display:block}.rtmedia-container .rtmedia-list .rtmedia_time{background-color:#000;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:14px;opacity:0.75;padding:0 4px;position:absolute;right:2px;top:2px}.rtmedia-container .rtmedia-list img{vertical-align:top}.rtmedia-container .rtmedia-list .rtmedia-item-title h4{color:#666;font-size:12px;font-weight:normal;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.rtm-load-more{background:#eee;text-align:center}.rtmedia-container .rtm-load-more a{border:0;padding:10px 0}.rtm-load-more .rtm-media-loading{padding:10px 0}.rtm-media-options{line-height:1.4;margin-bottom:10px}.rtm-media-options>div{display:inline-block;cursor:pointer}.rtm-media-options .rtm-media-options-list{margin-right:5px;padding-right:10px;position:relative}.rtm-media-options>*{border-right:1px solid #999}.rtm-media-options>*:last-child{border-right:none}.rtm-media-options .dashicons{font-size:inherit;line-height:1.4}.rtmedia-upload-media-link{cursor:pointer}a.rtmedia-upload-media-link{border:none}.rtm-album-privacy span{font-size:16px;display:inline-block;margin:0 20px 20px 20px;vertical-align:top}.rtm-album-privacy label{margin-right:8px}.rtm-album-privacy .dashicons{font-size:16px;line-height:1.6;margin-right:5px}#rtm-media-options-list .rtmedia-delete-album{background:transparent;border:0;color:#fff;font-family:inherit;font-size:inherit;font-weight:inherit;padding:0;text-transform:inherit}#rtm-media-options-list .rtmedia-delete-album:hover{background:transparent;border:0;color:#fff}.rtmedia-single-container button.rtmedia-like{background-color:transparent;color:inherit}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mejs-container .mejs-controls .mejs-time{padding:10px 3px 0;content:''}.rtmedia-activity-container .mejs-playpause-button.mejs-play button:before,.rtmedia-activity-container .mejs-playpause-button.mejs-pause button:before,.rtmedia-activity-container .mejs-volume-button.mejs-mute button:before,.rtmedia-activity-container .mejs-fullscreen-button button:before,.rtmedia-media .mejs-playpause-button.mejs-play button:before,.rtmedia-media .mejs-playpause-button.mejs-pause button:before,.rtmedia-media .mejs-volume-button.mejs-mute button:before,.rtmedia-media .mejs-fullscreen-button button:before{content:''}@media only screen and (min-width: 1025px){.mfp-content .rtm-lightbox-container{display:table;table-layout:fixed;width:100%}.mfp-content .rtm-single-media{display:table-cell;width:66.6667%}.mfp-content .rtm-single-meta{display:table-cell;width:33.3333%}.mfp-content .rtmedia-item-comments{max-height:330px;overflow-x:hidden;overflow-y:auto}}.rtl #rtSelectPrivacy{float:left}.rtl .rtmedia-plupload-container{float:right}.rtl .rtm-upload-button-wrapper{float:right}.rtl #whats-new-post-in-box{float:right}.rtl .describe-toggle-off{float:left}.rtl .media-item .pinkynail{float:right}.rtl .media-item .progress{float:left}.rtl .media-item .error-div a.dismiss{float:left}.rtl #find-posts-input{float:right}.rtl #find-posts-search{float:right}.rtl .spinner{float:left}.rtl .wp_attachment_image .button,.rtl .A1B1 .button{float:right}.rtl .wp_attachment_image .spinner,.rtl .A1B1 .spinner{float:right}.rtl .imgedit-menu div{float:right}.rtl .wp_attachment_image .bp-media-image-edit{float:right}.rtl .rtmedia-container .rtmedia-list .rtmedia-list-item{float:right}.rtl #buddypress #rtm-media-options-list .rtm-options .button{float:right}.rtl .rtm-ltb-title{float:right}.rtl .rtm-item-actions{float:left}.rtl .rtm-item-actions>div,.rtl .rtm-item-actions>form{float:right}.rtl .userprofile{float:right}.rtl .rtmedia-actions-before-comments>span{float:right}.rtl .rtmedia-comment-user-pic{float:right}.rtl .rtmedia-media-name{float:right}.rtl #rtmedia-uploader-form .rtm-plupload-list li,.rtl #rtmedia_uploader_filelist li{float:right}.rtl .rtm-page-number{float:right}.rtl .rtm-page-number .rtmedia-page-link{float:right}.rtl .rtm-pagination{float:right}.rtl .rtm-pagination .rtm-paginate{float:left}.rtl .rtm-tabs li{float:right}.rtl .alignleft{float:right}.rtl .alignright{float:left}
1
+ .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.rtmedia-success,.rtmedia-warning{margin:10px 0;padding:8px 14px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5);border-bottom:1px solid #e7e7e7;cursor:pointer}.rtmedia-success{background-color:#dff0d8;color:#468847}.rtmedia-warning{background-color:#F0D8DD;color:#884646}.clearfix:after{content:"";display:table;clear:both}#buddypress form#whats-new-form textarea{box-sizing:border-box;min-height:70px;width:100%}#buddypress #whats-new-options{height:auto !important;overflow:hidden}#buddypress form#whats-new-form p.activity-greeting{line-height:1}#buddypress form#whats-new-form #whats-new-options select{border:1px solid #ccc;font-size:13px;margin-top:0;padding:3px 2px}#whats-new-submit #aw-whats-new-submit{font-size:12px;line-height:18px;padding:4px 6px}#whats-new-post-in-box{float:left;font-size:13px}#buddypress form#whats-new-form #whats-new-submit{margin-top:0}#whats-new-textarea{margin-bottom:10px}body.media.buddypress{overflow-y:auto}.rtmedia-container{box-sizing:border-box}.rtmedia-container *,.rtmedia-container *:before,.rtmedia-container *:after{box-sizing:inherit}.rtmedia-list.rtmedia-list{list-style:none;margin:0;padding:0}.rtmedia-list-item>a{border:0;display:inline-block;text-decoration:none}.rtmedia-list-item>a:focus{outline:0}.rtmedia-list-item>a+p{display:none}.rtmedia-list-item>a .rtmedia-item-thumbnail img{display:inline-block}#rtmedia-uploader-form .rtm-plupload-list,#rtmedia_uploader_filelist{list-style:none;margin-left:-4px;margin-right:-4px;padding-left:0;padding-top:10px}#rtmedia-uploader-form .rtm-plupload-list li,#rtmedia_uploader_filelist li{background:#eee;float:left;margin:4px;max-width:110px;padding:5px;position:relative}#rtmedia-uploader-form .rtm-plupload-list li.upload-error,#rtmedia_uploader_filelist li.upload-error{border:1px solid red}#rtmedia-uploader-form .rtm-plupload-list img,#rtmedia_uploader_filelist img{max-width:100%}#rtmedia-uploader-form .rtm-plupload-list canvas,#rtmedia_uploader_filelist canvas{display:block;max-width:100%}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title{font-size:12px}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,#rtmedia_uploader_filelist .rtm-upload-edit-desc{font-size:12px;display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label{display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title{min-width:100%;margin-top:1px}.rtm-plupload-list:empty{display:none}.rtmedia-uploader-div,.rtmedia-uploader{clear:both}button#rtmedia-add-media-button-post-update{padding:3px 6px}button#rtmedia-add-media-button-post-update .dashicons{font-size:18px;line-height:20px}.plupload_file_name{font-size:11px;font-weight:bold;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plupload_file_size{color:#666;font-size:10px}.plupload_file_action{background:#eee;position:absolute;height:18px;right:4px;top:0;width:18px;z-index:10}.plupload_file_action .dashicons{color:#DD3D36;cursor:pointer;font-size:16px;height:18px;padding:2px 1px;width:18px}.plupload_file_status{height:18px;overflow:hidden;position:relative}.plupload_file_progress{background:#7AD03A;height:4px;position:absolute;top:0}.rtm-form .rtm-field-wrap{margin-bottom:20px}.rtmedia_next_prev{padding:0 10px}.rtm-page-number{float:left}.rtm-page-number .rtm-label{line-height:30px}.rtm-page-number .rtm-label,.rtm-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{float:left}.rtm-pagination{background:transparent;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:left;width:100%;padding:10px 0}.rtm-pagination .rtm-paginate{float:right;font-size:15px}.rtm-pagination .rtm-paginate a,.rtm-pagination .rtm-paginate span{display:inline-block;line-height:1;margin:0 2px;padding:8px;text-decoration:none}.rtm-pagination .rtm-paginate a.rtmedia-page-link{padding:8px}.rtm-pagination .dashicons{font-size:14px;height:auto;line-height:1.2;margin:0;padding:0;width:auto}#rtmedia_go_to_num{font-size:16px;margin:0 5px;padding:4px 5px;width:80px}.rtmedia-upload-not-allowed{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;margin-bottom:20px;padding:10px 15px}.plupload_file_name{position:relative}.plupload_file_name .dashicons{background:#eee;color:#DD3D36;cursor:pointer;font-size:14px;height:auto;padding:0 2px 0 5px;position:absolute;right:0;top:0;width:auto}.plupload_file_name .dashicons-yes{color:#7AD03A}.rtmedia-gallery-item-actions{background-color:rgba(0,0,0,0.6);opacity:0;position:absolute;text-align:center;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s;width:100%;z-index:9}.rtmedia-gallery-item-actions a{border:0;box-shadow:0 0 0;color:#fff;display:inline-block;font-size:12px;outline:none;padding:4px;text-align:left;text-decoration:none;text-transform:uppercase}.rtmedia-gallery-item-actions .dashicons{font-size:17px;margin-right:2px;position:relative;top:1px}.rtmedia-gallery-item-actions .dashicons-trash{font-size:15px}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-gallery-item-actions{opacity:1}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-bulk-edit-item-wrap+.rtmedia-gallery-item-actions{opacity:0}.rtmedia-footer-link{clear:both;overflow:hidden;padding:16px 0;position:relative;text-align:center}.rtmedia-text-link-decoration,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span{text-decoration:none}.rtmedia-text-link-decoration:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span:hover{text-decoration:underline}.rtmedia-container .rtmedia-edit-list-media-table{max-height:300px;overflow-y:auto}.rtmedia-container .rtmedia-edit-list-media-table thead tr{background-color:#50A1D7}.rtmedia-container .rtmedia-edit-list-media-table thead th{text-align:center;color:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(odd){background:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(even){background:#DCDCDC}table.rtmedia-edit-media-list tr{line-height:30px}table.rtmedia-edit-media-list tr th{color:#333;padding:4px 10px;line-height:20px}table.rtmedia-edit-media-list tr .rtm-edit-media-list-heading{width:44%}table.rtmedia-edit-media-list tr .rtm-edit-media-list-title-heading{width:56%}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title{padding:4px;font-size:14px;line-height:24px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a{text-decoration:none;color:#333}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a{color:#333;font-size:13px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span{color:#FF0000;cursor:pointer;font-size:13px}.rtm-hide{display:none}.rtm-tabs.rtm-tabs{border-bottom:1px solid #eee;list-style:none;margin:0 0 20px;padding:0}.rtm-tabs li{border:1px solid #eee;border-bottom:0;float:left;margin:0 5px;padding:0}.rtm-tabs a{border:0;display:block;padding:5px 15px;text-decoration:none}.rtm-tabs a:focus{background:transparent;box-shadow:0 0 0}.rtm-tabs .active{position:relative}.rtm-tabs .active:after{background:#fff;bottom:-1px;content:' ';height:1px;left:0;position:absolute;width:100%}.rtm-tabs .dashicons{font-size:16px;height:auto;line-height:20px;margin-right:8px;width:auto}.rtmedia-edit-media-tabs .rtm-tabs a{border-bottom:0 none}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:104211;overflow:hidden;position:fixed;background:rgba(0,0,0,0.9)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:104311;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;max-width:84%;margin:0 auto;right:0;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{background:#fff;color:#999;cursor:pointer;font-size:24px;font-style:normal;height:30px;line-height:30px;padding:0;position:absolute;right:1px;text-align:center;text-decoration:none;text-indent:2px;top:0;width:32px;z-index:12}.mfp-close:hover,.mfp-close:focus{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{cursor:pointer;position:absolute;opacity:0.65;filter:alpha(opacity=65);margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent;opacity:0;z-index:10;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .mfp-arrow{opacity:1}@media (max-device-width: 640px){.mfp-arrow{display:none}.rtm-single-media:hover .mfp-arrow{display:none}}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1;filter:alpha(opacity=100)}.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after,.mfp-arrow .mfp-a{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before,.mfp-arrow .mfp-b{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after,.mfp-arrow-left .mfp-a{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after,.mfp-arrow-right .mfp-a{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before,.mfp-arrow-right .mfp-b{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}.mfp-preloader{position:absolute;top:50%;left:0;right:0;margin-top:-36px;z-index:1044;font-size:0;width:36px;height:36px;margin-left:auto;margin-right:auto}.mfp-preloader:before{content:'Loading…';position:absolute;width:30px;height:30px}.mfp-preloader:not(:required):before{content:'';border-radius:50%;border:3px solid rgba(255,255,255,0.27);border-top-color:rgba(255,255,255,0.9);animation:spinner .6s linear infinite;-webkit-animation:spinner .6s linear infinite}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-content .rtm-lightbox-container{background:#000;margin:0 auto;position:relative}.mfp-content .rtm-single-meta{background:#fff;overflow:hidden;padding:20px 20px 110px;position:relative;vertical-align:top}.rtm-single-media{overflow:hidden;position:relative;text-align:center;vertical-align:middle}.rtm-single-media .mejs-container{margin:0 auto;max-width:inherit}.rtm-single-media .rtmedia-message-container{position:absolute;top:45%;left:0;right:0;margin-left:auto;margin-right:auto}@media (max-device-width: 640px){.rtm-single-media .rtmedia-message-container{top:25%}}.rtm-ltb-action-container{background-color:rgba(0,0,0,0.6);bottom:0;color:#fff;line-height:38px;opacity:0;padding:0 10px;position:absolute;width:100%;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}@media (max-device-width: 640px){.rtm-ltb-action-container{clear:both;position:relative;opacity:1}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);display:block;font-family:inherit;font-weight:normal;line-height:24px;margin:0;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button:hover{background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.8)}#buddypress #rtmedia-single-media-container.rtmedia-single-media .rtm-options .button{color:#333;margin:0 auto;padding:0 4px 0 0}#buddypress #rtm-media-options-list .rtm-options .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);float:left;font-family:inherit;font-weight:normal;line-height:24px;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}.rtm-options.rtm-options{background:#666;color:#fff;display:none;font-size:14px;list-style:none;margin:0;padding:8px 10px;position:absolute;left:0;top:38px;width:190px;z-index:10}.rtm-options li{margin:0;overflow:hidden;padding:2px 0}.rtm-media-options .rtm-options:after{bottom:100%;left:20px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#666;border-width:6px;margin-left:-6px}.mfp-content .rtm-options{background:#fff;color:#333;bottom:38px;right:0;left:auto;top:auto}.mfp-content .rtm-options:after{top:100%;right:22px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:6px;margin-left:-6px}.rtm-options .dashicons{font-size:14px;line-height:24px;margin-right:2px}.rtm-media-options .rtm-options a{border:0;color:#fff;display:block;text-decoration:none}.rtm-ltb-title{color:rgba(255,255,255,0.7);float:left;font-size:13px}.rtm-ltb-title a{color:inherit}.rtm-ltb-title a:hover{border-bottom:1px dotted;color:#fff}.rtm-item-actions{float:right}.rtm-item-actions>div,.rtm-item-actions>form{float:left;margin:0 2px;padding:7px 0;position:relative}.rtmedia-media img{display:inline-block;max-height:inherit;height:auto;max-width:100%;width:auto}@media only screen and (max-device-width: 1024px){.rtmedia-media{margin:40px 0}}.rtm-user-meta-details .username{font-size:16px;line-height:1;margin-bottom:6px}.userprofile{float:left;margin:0 16px 16px 0;max-width:54px}.userprofile a{display:block}.userprofile img{height:auto;max-width:100%}.rtm-time-privacy{color:#999;font-size:12px}.rtm-time-privacy .dashicons{font-size:14px;line-height:1.5}.rtmedia-actions-before-comments>span{float:left;margin-right:10px}.rtmedia-actions-before-comments .rtmedia-comment-link,#buddypress .rtmedia-actions-before-comments .rtmedia-like{border:0;font-size:13px;font-weight:normal;line-height:2;padding:0;text-transform:none}.rtmedia-actions-before-comments .rtmedia-comment-link:hover,#buddypress .rtmedia-actions-before-comments .rtmedia-like:hover{background:transparent}.rtmedia-comment-user-pic{float:left;margin-right:10px;max-width:36px}.rtmedia-comment-user-pic img{height:auto;max-width:100%}.rtm-like-comments-info{position:relative}.rtm-like-comments-info:after{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(237,239,244,0);border-bottom-color:#edeff4;border-width:4px;margin-left:-4px}.rtm-comment-list.rtm-comment-list{list-style:none;margin:0;padding:0}.rtm-comment-list li{background:#edeff4;font-size:12px;margin-bottom:1px;padding:10px;position:relative}.rtm-comment-list li:hover .rtmedia-delete-comment{opacity:1}.rtm-comment-list .rtmedia-no-comments{margin:0;padding:5px 10px}.rtmedia-like-info{background:#edeff4;font-size:12px;margin-bottom:1px;padding:5px 10px;position:relative}.rtm-comment-wrap{overflow:hidden}.rtm-comment-wrap .rtmedia-comment-author{font-weight:700}.rtm-comment-wrap .rtmedia-comment-date{color:#999;font-size:11px}.rtmedia-comment-content{margin-top:2px}.rtmedia-delete-comment{color:#999;cursor:pointer;font-size:16px;opacity:0;position:absolute;right:5px;top:5px}.rtmedia-comment-content p{margin:0}.rtmedia-comment-details{line-height:1.5;margin-top:-3px}.rtmedia-item-comments textarea{font-size:14px;padding:4px}.rtm-media-single-comments{background-color:#edeff4;bottom:20px;padding:10px;width:100%}.rtm-media-single-comments textarea{font-size:12px;line-height:14px;max-height:40px;min-height:30px;padding:4px}.rtmedia-popup{background:#fff;margin:20px auto;max-width:600px;padding:20px;position:relative;width:auto}.rtmedia-popup .rtm-modal-title{font-size:24px;margin-bottom:20px;margin-top:0}.rtmedia-popup label{display:block;margin-bottom:5px}#rtm-modal-container p{margin-bottom:10px}#rtm-mejs-video-container{margin:0 auto}.rtmedia-media-name{float:left;max-width:140px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.rtm-single-media.rtm-media-type-video{padding-bottom:40px;padding-top:40px}.rtmedia-gallery-alert-container{position:fixed;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,0.6);z-index:999997}.rtmedia-gallery-message-box{position:fixed;top:40%;left:50%;margin-left:auto;margin-right:auto;z-index:999999}.rtmedia-gallery-message-box span{position:relative;left:-50%}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}#buddypress ul.rtmedia-list li{border-bottom:0;padding-bottom:0}.rtmedia-activity-container .rtmedia-item-actions{display:none}.rtmedia-activity-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title a{border:0;color:#666;font-size:13px;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}#rtmedia-whts-new-upload-container div{left:0 !important;position:absolute;top:0 !important}#aw-whats-new-submit,.rtmedia-add-media-button{display:block}.rtm-drag-drop-active{border:4px dashed green !important;display:block;height:100%;opacity:0.5;z-index:9999}#rtm-drop-files-title{background:rgba(0,0,0,0.2);display:none;font-size:14px;height:100%;padding:20px;position:absolute;top:0;width:100%}#rtSelectPrivacy{float:right}.rtmedia-plupload-container{position:relative;float:left}.rtm-upload-button-wrapper{float:left;margin-right:5px}#rtmedia-action-update{margin-right:10px}.rtmedia-list-item.media-type-document,.rtmedia-list-item.media-type-music,.rtmedia-list-item.media-type-video{display:inline-block}.media-type-music .mejs-container{margin-bottom:10px}.rtmedia-album-edit .rtm-checkbox-wrap{background:rgba(255,255,255,0.9);height:30px;line-height:1;padding:10px;position:absolute;z-index:10}.rtmedia-album-edit .rtmedia-item-selector{position:relative;top:-7px}.rtmedia-album-edit .rtmedia-move-container{display:none}.rtm-single-actions.rtm-item-actions{float:none}.media-item .describe{border-collapse:collapse;width:100%;border-top-style:solid;border-top-width:1px;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:bold}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:bold}.media-upload-form th.label label{font-weight:bold;margin:0.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}abbr.required{border:medium none;text-decoration:none}.media-item .describe input[type="text"],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.media-item .edit-attachment,.describe-toggle-on,.describe-toggle-off{display:block;line-height:36px;float:right;margin-right:15px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}#media-items .media-item{border-style:solid;border-width:1px;min-height:36px;position:relative;margin-top:-1px;width:100%}#media-items{width:623px}.media-new-php #media-items{margin:1em 0}#media-items:empty{border:0 none}.media-item .filename{line-height:36px;overflow:hidden;padding:0 10px}.media-item .error-div{padding-left:10px}.media-item .pinkynail{float:left;margin:2px 2px 0;max-width:40px;max-height:32px}.media-item .startopen,.media-item .startclosed{display:none}.media-item .original{position:relative;height:34px}.media-item .progress{float:right;height:22px;margin:6px 10px 0 0;width:200px;line-height:2em;padding:0;overflow:hidden;margin-bottom:2px;border:1px solid #d1d1d1;background:#f7f7f7;background-image:-webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));background-image:-webkit-linear-gradient(bottom, #fff, #f7f7f7);background-image:linear-gradient(to top, #fff, #f7f7f7);border-radius:3px;box-shadow:inset 0 0 3px rgba(0,0,0,0.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-24px;background-color:#8cc1e9;background-image:-webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));background-image:-webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);background-image:linear-gradient(to top, #72a7cf, #8cc1e9);border-radius:3px;box-shadow:0 0 3px rgba(0,0,0,0.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0 8px;text-shadow:0 1px 0 rgba(255,255,255,0.4);color:rgba(0,0,0,0.6)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}.media-upload-form .media-item.error{margin:0;padding:0}.media-upload-form .media-item.error p,.media-item .error-div{line-height:16px;margin:5px 10px;padding:0}.media-item .error-div a.dismiss{display:block;float:right;margin:5px 4px 0 15px}.find-box{width:600px;height:300px;overflow:hidden;padding:33px 0 51px;position:absolute;z-index:1000}.find-box-head{cursor:move;font-weight:bold;height:2em;line-height:2em;padding:1px 12px;position:absolute;top:5px;width:100%}.find-box-inside{overflow:auto;padding:6px;height:100%}.find-box-search{overflow:hidden;padding:9px;position:relative}.find-box-search .spinner{float:none;left:125px;position:absolute;top:9px}#find-posts-input{float:left;width:140px;height:24px}#find-posts-search{float:left;margin:1px 4px 0 3px}#find-posts-response{margin:8px 0;padding:0 1px 6px}#find-posts-response table{width:100%}#find-posts-response .found-radio{padding:3px 0 0 8px;width:15px}.find-box-buttons{padding:8px;overflow:hidden}.find-box #resize-se{position:absolute;right:1px;bottom:1px}.ui-find-overlay{position:absolute;top:0;left:0;background-color:#000;opacity:0.6;filter:alpha(opacity=60)}ul#dismissed-updates{display:none}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-0.5em 0 2em 0}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border-width:1px;border-style:solid;line-height:1.8em;word-spacing:3px;border-radius:6px}.drag-drop #drag-drop-area{border:4px dashed #DDDDDD;height:200px}.drag-drop .drag-drop-inside{margin:70px auto 0;width:250px}.drag-drop-inside p{color:#aaa;font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}#plupload-upload-ui{position:relative}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative}.imgedit-settings p{margin:8px 0}.post-php .imgedit-wrap table{width:100%}.describe .imgedit-wrap table td,.wp_attachment_holder .imgedit-wrap table td{vertical-align:top;padding-top:0}.describe .imgedit-wrap table td.imgedit-settings{padding:0 5px}.wp_attachment_holder .imgedit-wrap table td.imgedit-settings{width:250px}td.imgedit-settings input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;background:#fff url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat scroll 22px 10px;background-size:16px 16px;opacity:0.7;filter:alpha(opacity=70);width:100%;height:500px;display:none}.spinner{background:url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat;background-size:16px 16px;display:none;float:right;opacity:0.7;filter:alpha(opacity=70);width:16px;height:16px;margin:5px 5px 0}.no-float{float:none}.media-disabled,.imgedit-settings .disabled{color:grey}.wp_attachment_image,.A1B1{overflow:hidden}.wp_attachment_image .button,.A1B1 .button{float:left}.no-js .wp_attachment_image .button{display:none}.wp_attachment_image .spinner,.A1B1 .spinner{float:left;padding:0 4px 4px;vertical-align:bottom}.imgedit-menu{margin:0 0 12px;min-width:300px}.imgedit-menu div{float:left;width:32px;height:32px}.imgedit-crop-wrap{position:relative}.imgedit-crop{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -9px -31px;margin:0 8px 0 0}.imgedit-crop.disabled:hover{background-position:-9px -31px}.imgedit-crop:hover{background-position:-9px -1px}.imgedit-rleft{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -46px -31px;margin:0 3px}.imgedit-rleft.disabled:hover{background-position:-46px -31px}.imgedit-rleft:hover{background-position:-46px -1px}.imgedit-rright{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -77px -31px;margin:0 8px 0 3px}.imgedit-rright.disabled:hover{background-position:-77px -31px}.imgedit-rright:hover{background-position:-77px -1px}.imgedit-flipv{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -115px -31px;margin:0 3px}.imgedit-flipv.disabled:hover{background-position:-115px -31px}.imgedit-flipv:hover{background-position:-115px -1px}.imgedit-fliph{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -147px -31px;margin:0 8px 0 3px}.imgedit-fliph.disabled:hover{background-position:-147px -31px}.imgedit-fliph:hover{background-position:-147px -1px}.imgedit-undo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -184px -31px;margin:0 3px}.imgedit-undo.disabled:hover{background-position:-184px -31px}.imgedit-undo:hover{background-position:-184px -1px}.imgedit-redo{background:transparent url("../../../../../../wp-admin/images/imgedit-icons.png") no-repeat scroll -215px -31px;margin:0 8px 0 3px}.imgedit-redo.disabled:hover{background-position:-215px -31px}.imgedit-redo:hover{background-position:-215px -1px}.imgedit-applyto img{margin:0 8px 0 0}.imgedit-group h3{font-size:18px}.imgedit-group .dashicons{border:0;line-height:1.2}.imgedit-group-top{margin:5px 0}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block}.imgedit-help{display:none;font-style:italic;margin-bottom:8px}a.imgedit-help-toggle{text-decoration:none}.form-table td.imgedit-response{padding:0}.imgedit-submit{margin:8px 0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle}.wp_attachment_details{margin-bottom:20px}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:0.5}.bp-media-image-editor-cotnainer{margin-top:35px}.wp_attachment_image .bp-media-image-edit{float:left}.wp_attachment_image .spinner{display:none}.bp-media-image-editor-cotnainer .hidden{display:none}.bp-media-image-editor-cotnainer div.updated{margin:5px 0 15px;background-color:#ffffe0;border-color:#e6db55;padding:0 .6em;border-radius:3px;border-width:1px;border-style:solid}.bp-media-image-editor-cotnainer div.updated p{margin:.5em 0;padding:2px}body article.bp_members.bp_member .entry-content,body div.bp_members.bp_member .entry-content{width:100%}.rtm-media-gallery-uploader{display:none}.rtmedia-uploader .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;color:#AAAAAA;margin-top:20px;padding:25px 0}.rtmedia-uploader .drag-drop.dragover{border-color:#83b4d8}.rtmedia-uploader .drag-drop .drag-drop-info{font-size:20px;line-height:24px}.rtmedia-uploader .drag-drop .rtm-select-files span{vertical-align:middle}.rtmedia-uploader .drag-drop .rtm-seperator{margin:0px 20px}.rtmedia-uploader .drag-drop .start-media-upload{display:none;margin-top:20px}.rtmedia-uploader .drag-drop .rtm-file-size-limit{vertical-align:middle;font-size:16px;line-height:24px}.rtm-uploader-main-wrapper .rtm-uploader-tabs{margin-bottom:10px;text-align:left}.rtm-uploader-main-wrapper ul{border-bottom:1px solid #CCC}.rtm-uploader-main-wrapper li{margin:0 0 -1px 10px;display:inline-block;padding:5px 10px;line-height:25px;background-color:#e4e4e4;border:1px solid #CCC}.rtm-uploader-main-wrapper li.active{background:transparent;border-left:1px solid #CCC;border-top:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #fafafa}.rtm-uploader-main-wrapper li:hover{cursor:pointer}.rtmedia-container .rtmedia-list{margin:10px -5px}.rtmedia-container .rtmedia-list .rtmedia-list-item{float:left;margin:5px;position:relative}.rtmedia-container .rtmedia-list .rtmedia-list-item>a{display:block}.rtmedia-container .rtmedia-list .rtmedia_time{background-color:#000;color:#fff;display:inline-block;font-size:11px;font-weight:bold;line-height:14px;opacity:0.75;padding:0 4px;position:absolute;right:2px;top:2px}.rtmedia-container .rtmedia-list img{vertical-align:top}.rtmedia-container .rtmedia-list .rtmedia-item-title h4{color:#666;font-size:12px;font-weight:normal;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.rtm-load-more{background:#eee;text-align:center}.rtmedia-container .rtm-load-more a{border:0;padding:10px 0}.rtm-load-more .rtm-media-loading{padding:10px 0}.rtm-media-options{line-height:1.4;margin-bottom:10px}.rtm-media-options>div{display:inline-block;cursor:pointer}.rtm-media-options .rtm-media-options-list{margin-right:5px;padding-right:10px;position:relative}.rtm-media-options>*{border-right:1px solid #999}.rtm-media-options>*:last-child{border-right:none}.rtm-media-options .dashicons{font-size:inherit;line-height:1.4}.rtmedia-upload-media-link{cursor:pointer}a.rtmedia-upload-media-link{border:none}.rtm-album-privacy span{font-size:16px;display:inline-block;margin:0 20px 20px 20px;vertical-align:top}.rtm-album-privacy label{margin-right:8px}.rtm-album-privacy .dashicons{font-size:16px;line-height:1.6;margin-right:5px}#rtm-media-options-list .rtmedia-delete-album{background:transparent;border:0;color:#fff;font-family:inherit;font-size:inherit;font-weight:inherit;padding:0;text-transform:inherit}#rtm-media-options-list .rtmedia-delete-album:hover{background:transparent;border:0;color:#fff}.rtmedia-single-container button.rtmedia-like{background-color:transparent;color:inherit}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mejs-container .mejs-controls .mejs-time{padding:10px 3px 0;content:''}.rtmedia-activity-container .mejs-playpause-button.mejs-play button:before,.rtmedia-activity-container .mejs-playpause-button.mejs-pause button:before,.rtmedia-activity-container .mejs-volume-button.mejs-mute button:before,.rtmedia-activity-container .mejs-fullscreen-button button:before,.rtmedia-media .mejs-playpause-button.mejs-play button:before,.rtmedia-media .mejs-playpause-button.mejs-pause button:before,.rtmedia-media .mejs-volume-button.mejs-mute button:before,.rtmedia-media .mejs-fullscreen-button button:before{content:''}@media only screen and (min-width: 1025px){.mfp-content .rtm-lightbox-container{display:table;table-layout:fixed;width:100%}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:table-cell;width:66.6667%}.mfp-content .rtm-single-meta{display:table-cell;width:33.3333%;padding:20px;height:473px}.mfp-content .rtm-single-meta .rtmedia-scroll{height:100%;overflow-X:hidden}}.rtl #rtSelectPrivacy{float:left}.rtl .rtmedia-plupload-container{float:right}.rtl .rtm-upload-button-wrapper{float:right}.rtl #whats-new-post-in-box{float:right}.rtl .describe-toggle-off{float:left}.rtl .media-item .pinkynail{float:right}.rtl .media-item .progress{float:left}.rtl .media-item .error-div a.dismiss{float:left}.rtl #find-posts-input{float:right}.rtl #find-posts-search{float:right}.rtl .spinner{float:left}.rtl .wp_attachment_image .button,.rtl .A1B1 .button{float:right}.rtl .wp_attachment_image .spinner,.rtl .A1B1 .spinner{float:right}.rtl .imgedit-menu div{float:right}.rtl .wp_attachment_image .bp-media-image-edit{float:right}.rtl .rtmedia-container .rtmedia-list .rtmedia-list-item{float:right}.rtl #buddypress #rtm-media-options-list .rtm-options .button{float:right}.rtl .rtm-ltb-title{float:right}.rtl .rtm-item-actions{float:left}.rtl .rtm-item-actions>div,.rtl .rtm-item-actions>form{float:right}.rtl .userprofile{float:right}.rtl .rtmedia-actions-before-comments>span{float:right}.rtl .rtmedia-comment-user-pic{float:right}.rtl .rtmedia-media-name{float:right}.rtl #rtmedia-uploader-form .rtm-plupload-list li,.rtl #rtmedia_uploader_filelist li{float:right}.rtl .rtm-page-number{float:right}.rtl .rtm-page-number .rtmedia-page-link{float:right}.rtl .rtm-pagination{float:right}.rtl .rtm-pagination .rtm-paginate{float:left}.rtl .rtm-tabs li{float:right}.rtl .alignleft{float:right}.rtl .alignright{float:left}
app/assets/css/sass/_popup.scss CHANGED
@@ -7,9 +7,9 @@
7
 
8
  .rtmedia-media-description {
9
  .allcontent {
10
- max-height: 200px;
11
- overflow-y: auto;
12
- margin: 5px 0;
13
  }
14
  }
15
  }
@@ -21,59 +21,61 @@
21
  position: relative;
22
  vertical-align: top;
23
  }
24
-
25
  }
26
 
27
  .rtm-single-media {
28
- overflow: hidden; // Safari 1px issue
29
- position: relative;
30
- text-align: center;
31
- vertical-align: middle;
 
 
32
 
33
  .mejs-container {
34
  margin: 0 auto;
35
  max-width: inherit;
36
  }
37
 
38
- .rtmedia-message-container {
39
- position: absolute;
40
- top: 45%;
41
- left:0;
42
- right:0;
43
- margin-left:auto;
44
- margin-right:auto;
45
 
46
- @media (max-device-width: 640px) {
47
- top: 25%;
48
- }
49
- }
50
  }
51
 
52
  .rtm-ltb-action-container {
53
- background-color: rgba($black, 0.6);
54
  bottom: 0;
55
- color: $white;
 
56
  //height: 38px;
57
  line-height: 38px;
58
  opacity: 0;
59
- padding: 0 10px;
60
- position: absolute;
61
- width: 100%;
62
  transition: all 300ms ease-out;
63
 
64
-
65
  .rtm-single-media:hover & {
66
  opacity: 1;
67
  }
68
- @media (max-device-width: 640px){
69
- clear:both;
70
- position:relative;
71
- opacity: 1;
72
- .rtm-single-media:hover & {
73
- opacity: 1;
74
- }
75
- }
76
 
 
 
 
 
 
 
 
 
 
77
  }
78
 
79
  #buddypress #rtmedia-single-media-container.rtmedia-single-media {
@@ -92,7 +94,7 @@
92
  text-transform: none;
93
 
94
  &:hover {
95
- background: rgba($white, .2);
96
  color: rgba($white, 0.8);
97
  }
98
  }
@@ -128,7 +130,6 @@
128
  }
129
 
130
  .rtm-options {
131
-
132
  &.rtm-options {
133
  background: $gray;
134
  color: $white;
@@ -145,8 +146,12 @@
145
  }
146
 
147
  li {
148
- margin: 0; // 2012
149
- overflow: hidden; // clear float
 
 
 
 
150
  padding: 2px 0;
151
  }
152
 
@@ -201,14 +206,17 @@
201
  border: 0;
202
  color: #fff;
203
  display: block;
204
- text-decoration: none; // 2012
 
 
 
205
  }
206
  }
207
 
208
  .rtm-ltb-title {
209
  color: rgba($white, 0.7);
210
- float: left;
211
- font-size: 13px;
212
 
213
  a {
214
  color: inherit;
@@ -236,13 +244,18 @@
236
  img {
237
  display: inline-block;
238
  max-height: inherit;
239
- height: auto; // Theme 2014/2013
240
- max-width: 100%; // Theme 2014/2013
 
 
 
 
241
  width: auto;
242
  }
243
- @media only screen and ( max-device-width : 1024px ) {
244
- margin: 40px 0;
245
- }
 
246
  }
247
 
248
  .rtm-user-meta-details {
@@ -254,23 +267,28 @@
254
  }
255
 
256
  .userprofile {
257
- float: left;
258
- margin: 0 16px 16px 0;
259
- max-width: 54px;
260
 
261
  a {
262
  display: block;
263
  }
264
 
265
  img {
266
- height: auto; // Theme 2014/2013
267
- max-width: 100%; // Theme 2014/2013
 
 
 
 
 
268
  }
269
  }
270
 
271
  .rtm-time-privacy {
272
- color: #999;
273
- font-size: 12px;
274
 
275
  .dashicons {
276
  font-size: 14px;
@@ -279,7 +297,6 @@
279
  }
280
 
281
  .rtmedia-actions-before-comments {
282
-
283
  & > span {
284
  float: left;
285
  margin-right: 10px;
@@ -306,8 +323,13 @@
306
  max-width: 36px;
307
 
308
  img {
309
- height: auto; // Theme 2014/2013
310
- max-width: 100%; // Theme 2014/2013
 
 
 
 
 
311
  }
312
  }
313
 
@@ -331,7 +353,6 @@
331
  }
332
 
333
  .rtm-comment-list {
334
-
335
  &.rtm-comment-list {
336
  list-style: none;
337
  margin: 0;
@@ -353,7 +374,9 @@
353
  }
354
 
355
  .rtmedia-no-comments {
356
- margin: 0; // 2012
 
 
357
  padding: 5px 10px;
358
  }
359
  }
@@ -380,17 +403,17 @@
380
  }
381
 
382
  .rtmedia-comment-content {
383
- margin-top: 2px;
384
  }
385
 
386
  .rtmedia-delete-comment {
387
  color: #999;
388
- cursor: pointer;
389
  font-size: 16px;
390
- opacity: 0;
391
- position: absolute;
392
- right: 5px;
393
- top: 5px;
394
  }
395
 
396
  .rtmedia-comment-content {
@@ -400,8 +423,8 @@
400
  }
401
 
402
  .rtmedia-comment-details {
403
- line-height: 1.5;
404
- margin-top: -3px;
405
  }
406
 
407
  .rtmedia-item-comments {
@@ -413,10 +436,11 @@
413
 
414
  .rtm-media-single-comments {
415
  background-color: #edeff4;
416
- bottom: 20px;
417
- padding: 10px;
418
- position: absolute;
419
- width: calc(100% - 40px);
 
420
 
421
  textarea {
422
  font-size: 12px;
@@ -458,12 +482,12 @@
458
  }
459
 
460
  .rtmedia-media-name {
461
- float: left;
462
- max-width: 140px;
463
- overflow: hidden;
464
- text-align: left;
465
- text-overflow: ellipsis;
466
- white-space: nowrap;
467
  }
468
 
469
  .rtm-single-media.rtm-media-type-video {
@@ -472,25 +496,25 @@
472
  }
473
 
474
  .rtmedia-gallery-alert-container {
475
- position: fixed;
476
- top:0;
477
- left: 0;
478
- height: 100%;
479
- width: 100%;
480
- background-color: rgba( 0, 0, 0, 0.6);
481
- z-index: 999997;
482
  }
 
483
  .rtmedia-gallery-message-box {
484
  position: fixed;
485
  top: 40%;
486
- left:50%;
487
- margin-left:auto;
488
- margin-right:auto;
489
- z-index: 999999;
490
 
491
- span {
492
- position: relative;
493
- left: -50%;
494
  }
495
-
496
  }
7
 
8
  .rtmedia-media-description {
9
  .allcontent {
10
+ /* max-height: 200px;
11
+ overflow-y: auto;
12
+ margin: 5px 0; */
13
  }
14
  }
15
  }
21
  position: relative;
22
  vertical-align: top;
23
  }
 
24
  }
25
 
26
  .rtm-single-media {
27
+ overflow: hidden;
28
+
29
+ // Safari 1px issue
30
+ position: relative;
31
+ text-align: center;
32
+ vertical-align: middle;
33
 
34
  .mejs-container {
35
  margin: 0 auto;
36
  max-width: inherit;
37
  }
38
 
39
+ .rtmedia-message-container {
40
+ position: absolute;
41
+ top: 45%;
42
+ left: 0;
43
+ right: 0;
44
+ margin-left: auto;
45
+ margin-right: auto;
46
 
47
+ @media (max-device-width: 640px) {
48
+ top: 25%;
49
+ }
50
+ }
51
  }
52
 
53
  .rtm-ltb-action-container {
54
+ background-color: rgba($black, 0.6);
55
  bottom: 0;
56
+ color: $white;
57
+
58
  //height: 38px;
59
  line-height: 38px;
60
  opacity: 0;
61
+ padding: 0 10px;
62
+ position: absolute;
63
+ width: 100%;
64
  transition: all 300ms ease-out;
65
 
 
66
  .rtm-single-media:hover & {
67
  opacity: 1;
68
  }
 
 
 
 
 
 
 
 
69
 
70
+ @media (max-device-width: 640px) {
71
+ clear: both;
72
+ position: relative;
73
+ opacity: 1;
74
+
75
+ .rtm-single-media:hover & {
76
+ opacity: 1;
77
+ }
78
+ }
79
  }
80
 
81
  #buddypress #rtmedia-single-media-container.rtmedia-single-media {
94
  text-transform: none;
95
 
96
  &:hover {
97
+ background: rgba($white, 0.2);
98
  color: rgba($white, 0.8);
99
  }
100
  }
130
  }
131
 
132
  .rtm-options {
 
133
  &.rtm-options {
134
  background: $gray;
135
  color: $white;
146
  }
147
 
148
  li {
149
+ margin: 0;
150
+
151
+ // 2012
152
+ overflow: hidden;
153
+
154
+ // clear float
155
  padding: 2px 0;
156
  }
157
 
206
  border: 0;
207
  color: #fff;
208
  display: block;
209
+ text-decoration: none;
210
+
211
+ // 2012
212
+
213
  }
214
  }
215
 
216
  .rtm-ltb-title {
217
  color: rgba($white, 0.7);
218
+ float: left;
219
+ font-size: 13px;
220
 
221
  a {
222
  color: inherit;
244
  img {
245
  display: inline-block;
246
  max-height: inherit;
247
+ height: auto;
248
+
249
+ // Theme 2014/2013
250
+ max-width: 100%;
251
+
252
+ // Theme 2014/2013
253
  width: auto;
254
  }
255
+
256
+ @media only screen and (max-device-width: 1024px) {
257
+ margin: 40px 0;
258
+ }
259
  }
260
 
261
  .rtm-user-meta-details {
267
  }
268
 
269
  .userprofile {
270
+ float: left;
271
+ margin: 0 16px 16px 0;
272
+ max-width: 54px;
273
 
274
  a {
275
  display: block;
276
  }
277
 
278
  img {
279
+ height: auto;
280
+
281
+ // Theme 2014/2013
282
+ max-width: 100%;
283
+
284
+ // Theme 2014/2013
285
+
286
  }
287
  }
288
 
289
  .rtm-time-privacy {
290
+ color: #999;
291
+ font-size: 12px;
292
 
293
  .dashicons {
294
  font-size: 14px;
297
  }
298
 
299
  .rtmedia-actions-before-comments {
 
300
  & > span {
301
  float: left;
302
  margin-right: 10px;
323
  max-width: 36px;
324
 
325
  img {
326
+ height: auto;
327
+
328
+ // Theme 2014/2013
329
+ max-width: 100%;
330
+
331
+ // Theme 2014/2013
332
+
333
  }
334
  }
335
 
353
  }
354
 
355
  .rtm-comment-list {
 
356
  &.rtm-comment-list {
357
  list-style: none;
358
  margin: 0;
374
  }
375
 
376
  .rtmedia-no-comments {
377
+ margin: 0;
378
+
379
+ // 2012
380
  padding: 5px 10px;
381
  }
382
  }
403
  }
404
 
405
  .rtmedia-comment-content {
406
+ margin-top: 2px;
407
  }
408
 
409
  .rtmedia-delete-comment {
410
  color: #999;
411
+ cursor: pointer;
412
  font-size: 16px;
413
+ opacity: 0;
414
+ position: absolute;
415
+ right: 5px;
416
+ top: 5px;
417
  }
418
 
419
  .rtmedia-comment-content {
423
  }
424
 
425
  .rtmedia-comment-details {
426
+ line-height: 1.5;
427
+ margin-top: -3px;
428
  }
429
 
430
  .rtmedia-item-comments {
436
 
437
  .rtm-media-single-comments {
438
  background-color: #edeff4;
439
+ bottom: 20px;
440
+ padding: 10px;
441
+
442
+ // position: absolute;
443
+ width: 100%;
444
 
445
  textarea {
446
  font-size: 12px;
482
  }
483
 
484
  .rtmedia-media-name {
485
+ float: left;
486
+ max-width: 140px;
487
+ overflow: hidden;
488
+ text-align: left;
489
+ text-overflow: ellipsis;
490
+ white-space: nowrap;
491
  }
492
 
493
  .rtm-single-media.rtm-media-type-video {
496
  }
497
 
498
  .rtmedia-gallery-alert-container {
499
+ position: fixed;
500
+ top: 0;
501
+ left: 0;
502
+ height: 100%;
503
+ width: 100%;
504
+ background-color: rgba(0, 0, 0, 0.6);
505
+ z-index: 999997;
506
  }
507
+
508
  .rtmedia-gallery-message-box {
509
  position: fixed;
510
  top: 40%;
511
+ left: 50%;
512
+ margin-left: auto;
513
+ margin-right: auto;
514
+ z-index: 999999;
515
 
516
+ span {
517
+ position: relative;
518
+ left: -50%;
519
  }
 
520
  }
app/assets/css/sass/_responsive.scss CHANGED
@@ -1,7 +1,6 @@
1
  @media #{$large-up} {
2
 
3
  .mfp-content {
4
-
5
  .rtm-lightbox-container {
6
  display: table;
7
 
@@ -10,6 +9,10 @@
10
  width: 100%;
11
  }
12
 
 
 
 
 
13
  .rtm-single-media {
14
  display: table-cell;
15
  width: 66.6667%;
@@ -18,13 +21,19 @@
18
  .rtm-single-meta {
19
  display: table-cell;
20
  width: 33.3333%;
 
 
 
 
 
 
 
21
  }
22
 
23
  .rtmedia-item-comments {
24
- max-height: 330px;
25
  overflow-x: hidden;
26
- overflow-y: auto;
27
  }
28
-
29
  }
30
- }
1
  @media #{$large-up} {
2
 
3
  .mfp-content {
 
4
  .rtm-lightbox-container {
5
  display: table;
6
 
9
  width: 100%;
10
  }
11
 
12
+ .rtm-mfp-close {
13
+ background: transparent;
14
+ }
15
+
16
  .rtm-single-media {
17
  display: table-cell;
18
  width: 66.6667%;
21
  .rtm-single-meta {
22
  display: table-cell;
23
  width: 33.3333%;
24
+ padding: 20px;
25
+ height: 473px;
26
+
27
+ .rtmedia-scroll {
28
+ height: 100%;
29
+ overflow-X: hidden;
30
+ }
31
  }
32
 
33
  .rtmedia-item-comments {
34
+ /* max-height: 330px;
35
  overflow-x: hidden;
36
+ overflow-y: auto; */
37
  }
 
38
  }
39
+ }
app/assets/css/sass/rtmedia.scss CHANGED
@@ -38,4 +38,4 @@
38
  @import "responsive";
39
 
40
  // *** RTL *** //
41
- @import "rtl";
38
  @import "responsive";
39
 
40
  // *** RTL *** //
41
+ @import "rtl";
app/assets/js/rtMedia.js CHANGED
@@ -1,14 +1,14 @@
1
  var rtMagnificPopup;
2
  var rtm_masonry_container;
3
  function apply_rtMagnificPopup( selector ) {
4
- jQuery( 'document' ).ready( function ( $ ) {
5
- var rt_load_more = "";
6
- if ( typeof ( rtmedia_load_more ) === "undefined" ) {
7
- rt_load_more = "Loading media";
8
  } else {
9
  rt_load_more = rtmedia_load_more;
10
  }
11
- if ( typeof(rtmedia_lightbox_enabled) != 'undefined' && rtmedia_lightbox_enabled == '1' ) { // if lightbox is enabled.
12
 
13
  if ( $( '.activity-item .rtmedia-activity-container .rtmedia-list-item > a' ).siblings( 'p' ).children( 'a' ).length > 0 ) {
14
  $( '.activity-item .rtmedia-activity-container .rtmedia-list-item > a' ).siblings( 'p' ).children( 'a' ).addClass( 'no-popup' );
@@ -24,21 +24,21 @@ function apply_rtMagnificPopup( selector ) {
24
  gallery: {
25
  enabled: true,
26
  navigateByImgClick: true,
27
- arrowMarkup: '', // disabled default arrows
28
  preload: [ 0, 1 ] // Will preload 0 - before current, and 1 after the current image
29
  },
30
  image: {
31
  tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
32
- titleSrc: function ( item ) {
33
  return item.el.attr( 'title' ) + '<small>by Marsel Van Oosten</small>';
34
  }
35
  },
36
  callbacks: {
37
- ajaxContentAdded: function () {
38
 
39
  mfp = jQuery.magnificPopup.instance;
40
  if ( jQuery( mfp.items ).size() === 1 ) {
41
- jQuery( ".mfp-arrow" ).remove();
42
  }
43
  // When last second media is encountered in lightbox, load more medias if available
44
  var mfp = jQuery.magnificPopup.instance;
@@ -47,15 +47,15 @@ function apply_rtMagnificPopup( selector ) {
47
  if ( ! li.is( 'li' ) ) {
48
  li = li.parent();
49
  }
50
- if ( li.is( ':nth-last-child(2)' ) || li.is( ':last-child' ) ) { // if its last second media
51
  var last_li = li.next();
52
- if ( jQuery( '#rtMedia-galary-next' ).css( 'display' ) == 'block' ) { // if more medias are available
53
- jQuery( '#rtMedia-galary-next' ).click(); // load more
54
  }
55
  }
56
 
57
  var items = mfp.items.length;
58
- if ( mfp.index == ( items - 1 ) && ! ( li.is( ":last-child" ) ) ) {
59
  current_media.click();
60
  return;
61
  }
@@ -66,24 +66,24 @@ function apply_rtMagnificPopup( selector ) {
66
  settings.pluginPath = _wpmejsSettings.pluginPath;
67
  }
68
  $( '.mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video' ).mediaelementplayer( {
69
- // if the <video width> is not specified, this is the default
70
  defaultVideoWidth: 480,
71
- // if the <video height> is not specified, this is the default
72
  defaultVideoHeight: 270,
73
- success: function (mediaElement, domObject) {
74
- // call the play method
75
  mediaElement.play();
76
- },
77
  } );
78
  $( '.mfp-content .mejs-audio .mejs-controls' ).css( 'position', 'relative' );
79
  rtMediaHook.call( 'rtmedia_js_popup_after_content_added', [ ] );
80
  },
81
- close: function ( e ) {
82
- //console.log(e);
83
  rtmedia_init_action_dropdown();
84
  },
85
- BeforeChange: function ( e ) {
86
- //console.log(e);
87
  }
88
  }
89
  } );
@@ -94,36 +94,37 @@ function apply_rtMagnificPopup( selector ) {
94
  var rtMediaHook = {
95
  hooks: [ ],
96
  is_break: false,
97
- register: function ( name, callback ) {
98
  if ( 'undefined' == typeof ( rtMediaHook.hooks[name] ) ) {
99
  rtMediaHook.hooks[name] = [ ];
100
  }
101
  rtMediaHook.hooks[name].push( callback );
102
  },
103
- call: function ( name, arguments ) {
104
  if ( 'undefined' != typeof ( rtMediaHook.hooks[name] ) ) {
105
- for ( i = 0; i < rtMediaHook.hooks[name].length; ++ i ) {
106
  if ( true != rtMediaHook.hooks[name][i]( arguments ) ) {
107
  rtMediaHook.is_break = true;
108
  return false;
109
  break;
110
  }
111
- } }
 
112
  return true;
113
  }
114
  };
115
 
116
- //drop-down js
117
  function rtmedia_init_action_dropdown() {
118
  var all_ul;
119
  var curr_ul;
120
  jQuery( '.click-nav > span, .click-nav > div' ).toggleClass( 'no-js js' );
121
  jQuery( '.click-nav .js ul' ).hide();
122
- jQuery( '.click-nav .clicker' ).click( function ( e ) {
123
  all_ul = jQuery( '#rtm-media-options .click-nav .clicker' ).next( 'ul' );
124
  curr_ul = jQuery( this ).next( 'ul' );
125
- jQuery.each( all_ul, function ( index, value ) {
126
- if ( jQuery( value ).html() != curr_ul.html() ) { // check clicked option with other options
127
  jQuery( value ).hide();
128
  }
129
  } );
@@ -132,24 +133,24 @@ function rtmedia_init_action_dropdown() {
132
  } );
133
  }
134
 
135
- jQuery( 'document' ).ready( function ( $ ) {
136
 
137
  // Tabs
138
  if ( typeof $.fn.rtTab !== 'undefined' ) {
139
  $( '.rtm-tabs' ).rtTab();
140
  }
141
 
142
- // open magnific popup as modal for create album/playlist
143
  if ( jQuery( '.rtmedia-modal-link' ).length > 0 ) {
144
  $( '.rtmedia-modal-link' ).magnificPopup( {
145
  type: 'inline',
146
  midClick: true, // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href
147
- closeBtnInside: true,
148
  } );
149
  }
150
 
151
- $( "#rt_media_comment_form" ).submit( function ( e ) {
152
- if ( $.trim( $( "#comment_content" ).val() ) == "" ) {
153
  if ( jQuery( '#rtmedia-single-media-container' ).length == 0 ) {
154
  rtmedia_gallery_action_alert_message( rtmedia_empty_comment_msg, 'warning' );
155
  } else {
@@ -160,60 +161,60 @@ jQuery( 'document' ).ready( function ( $ ) {
160
  return true;
161
  }
162
 
163
- } )
164
 
165
  //Remove title from popup duplication
166
- $( "li.rtmedia-list-item p a" ).each( function ( e ) {
167
- $( this ).addClass( "no-popup" );
168
  } );
169
 
170
  //Remove title from popup duplication
171
- $( "li.rtmedia-list-item p a" ).each(function(e) {
172
- $( this ).addClass( "no-popup" );
173
- })
174
- //rtmedia_lightbox_enabled from setting
175
- if (typeof(rtmedia_lightbox_enabled) != 'undefined' && rtmedia_lightbox_enabled == "1") {
176
  apply_rtMagnificPopup( '.rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container' );
177
  }
178
 
179
- jQuery.ajaxPrefilter(function(options, originalOptions, jqXHR) {
180
  try {
181
- if (originalOptions.data == null || typeof(originalOptions.data) == "undefined" || typeof(originalOptions.data.action) == "undefined" ) {
182
  return true;
183
  }
184
- } catch (e) {
185
  return true;
186
  }
187
 
188
  // Handle lightbox in BuddyPress activity loadmore
189
- if (originalOptions.data.action == 'activity_get_older_updates') {
190
  var orignalSuccess = originalOptions.success;
191
- options.success = function(response) {
192
  orignalSuccess( response );
193
  apply_rtMagnificPopup( '.rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' );
194
  rtMediaHook.call( 'rtmedia_js_after_activity_added', [] );
195
- }
196
  } else if ( originalOptions.data.action == 'get_single_activity_content' ) {
197
  // Handle lightbox in BuddyPress single activity loadmore
198
  var orignalSuccess = originalOptions.success;
199
- options.success = function ( response ) {
200
  orignalSuccess( response );
201
- setTimeout( function(){
202
  apply_rtMagnificPopup( '.rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' );
203
  jQuery( 'ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode' ).mediaelementplayer( {
204
- // if the <video width> is not specified, this is the default
205
  defaultVideoWidth: 480,
206
- // if the <video height> is not specified, this is the default
207
  defaultVideoHeight: 270
208
  } );
209
  }, 900 );
210
- }
211
  }
212
  });
213
 
214
- jQuery.ajaxPrefilter( function ( options, originalOptions, jqXHR ) {
215
  try {
216
- if ( originalOptions.data == null || typeof ( originalOptions.data ) == "undefined" || typeof ( originalOptions.data.action ) == "undefined" ) {
217
  return true;
218
  }
219
  } catch ( e ) {
@@ -221,46 +222,46 @@ jQuery( 'document' ).ready( function ( $ ) {
221
  }
222
  if ( originalOptions.data.action == 'activity_get_older_updates' ) {
223
  var orignalSuccess = originalOptions.success;
224
- options.success = function ( response ) {
225
  orignalSuccess( response );
226
  apply_rtMagnificPopup( '.rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' );
227
 
228
  jQuery( 'ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode' ).mediaelementplayer( {
229
- // if the <video width> is not specified, this is the default
230
  defaultVideoWidth: 480,
231
- // if the <video height> is not specified, this is the default
232
  defaultVideoHeight: 270
233
  } );
234
 
235
  rtMediaHook.call( 'rtmedia_js_after_activity_added', [ ] );
236
- }
237
  }
238
  } );
239
 
240
- jQuery( '.rtmedia-container' ).on( 'click', '.select-all', function ( e ) {
241
  jQuery( this ).toggleClass( 'unselect-all' ).toggleClass( 'select-all' );
242
  jQuery( this ).attr( 'title', rtmedia_unselect_all_visible );
243
- jQuery( '.rtmedia-list input' ).each( function () {
244
  jQuery( this ).prop( 'checked', true );
245
  } );
246
  jQuery( '.rtmedia-list-item' ).addClass( 'bulk-selected' );
247
  } );
248
 
249
- jQuery( '.rtmedia-container' ).on( 'click', '.unselect-all', function ( e ) {
250
  jQuery( this ).toggleClass( 'select-all' ).toggleClass( 'unselect-all' );
251
  jQuery( this ).attr( 'title', rtmedia_select_all_visible );
252
- jQuery( '.rtmedia-list input' ).each( function () {
253
  jQuery( this ).prop( 'checked', false );
254
  } );
255
  jQuery( '.rtmedia-list-item' ).removeClass( 'bulk-selected' );
256
  } );
257
 
258
- jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-move', function ( e ) {
259
  jQuery( '.rtmedia-delete-container' ).slideUp();
260
  jQuery( '.rtmedia-move-container' ).slideToggle();
261
  } );
262
 
263
- jQuery( '#rtmedia-create-album-modal' ).on( 'click', '#rtmedia_create_new_album', function ( e ) {
264
  $albumname = jQuery( '<span/>' ).text( jQuery.trim( jQuery( '#rtmedia_album_name' ).val() ) ).html();
265
  $context = jQuery.trim( jQuery( '#rtmedia_album_context' ).val() );
266
  $context_id = jQuery.trim( jQuery( '#rtmedia_album_context_id' ).val() );
@@ -276,22 +277,22 @@ jQuery( 'document' ).ready( function ( $ ) {
276
  create_album_nonce: $create_album_nonce
277
  };
278
 
279
- if ( $privacy !== "" ) {
280
  data[ 'privacy' ] = $privacy;
281
  }
282
 
283
- // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
284
- $( "#rtmedia_create_new_album" ).attr( 'disabled', 'disabled' );
285
- var old_val = $( "#rtmedia_create_new_album" ).html();
286
- $( "#rtmedia_create_new_album" ).prepend( "<img src='" + rMedia_loading_file + "' />" );
287
 
288
- jQuery.post( rtmedia_ajax_url, data, function ( response ) {
289
  if ( typeof response.album != 'undefined' ) {
290
  response = jQuery.trim( response.album );
291
  var flag = true;
292
 
293
- jQuery( '.rtmedia-user-album-list' ).each( function () {
294
- jQuery( this ).children( 'optgroup' ).each( function () {
295
  if ( jQuery( this ).attr( 'value' ) === $context ) {
296
  flag = false;
297
 
@@ -302,7 +303,7 @@ jQuery( 'document' ).ready( function ( $ ) {
302
  } );
303
 
304
  if ( flag ) {
305
- var label = $context.charAt( 0 ).toUpperCase() + $context.slice( 1 ) + " " + rtmedia_main_js_strings.rtmedia_albums;
306
 
307
  var opt_html = '<optgroup value="' + $context + '" label="' + label + '"><option value="' + response + '">' + $albumname + '</option></optgroup>';
308
 
@@ -312,16 +313,16 @@ jQuery( 'document' ).ready( function ( $ ) {
312
 
313
  jQuery( 'select.rtmedia-user-album-list option[value="' + response + '"]' ).prop( 'selected', true );
314
  jQuery( '.rtmedia-create-new-album-container' ).slideToggle();
315
- jQuery( '#rtmedia_album_name' ).val( "" );
316
- jQuery( "#rtmedia-create-album-modal" ).append( "<div class='rtmedia-success rtmedia-create-album-alert'><b>" + $albumname + "</b>" + rtmedia_album_created_msg + "</div>" );
317
 
318
- setTimeout( function () {
319
- jQuery( ".rtmedia-create-album-alert" ).remove();
320
  }, 4000 );
321
 
322
- setTimeout( function () {
323
  galleryObj.reloadView();
324
- jQuery( ".close-reveal-modal" ).click();
325
  }, 2000 );
326
  } else if ( typeof response.error != 'undefined' ) {
327
  rtmedia_gallery_action_alert_message( response.error, 'warning' );
@@ -329,15 +330,15 @@ jQuery( 'document' ).ready( function ( $ ) {
329
  rtmedia_gallery_action_alert_message( rtmedia_something_wrong_msg, 'warning' );
330
  }
331
 
332
- $( "#rtmedia_create_new_album" ).removeAttr( 'disabled' );
333
- $( "#rtmedia_create_new_album" ).html( old_val );
334
  } );
335
  } else {
336
  rtmedia_gallery_action_alert_message( rtmedia_empty_album_name_msg, 'warning' );
337
  }
338
  } );
339
 
340
- jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-selected', function ( e ) {
341
  if ( jQuery( '.rtmedia-list :checkbox:checked' ).length > 0 ) {
342
  if ( confirm( rtmedia_selected_media_delete_confirmation ) ) {
343
  jQuery( this ).closest( 'form' ).attr( 'action', '../../../' + rtmedia_media_slug + '/delete' ).submit();
@@ -347,7 +348,7 @@ jQuery( 'document' ).ready( function ( $ ) {
347
  }
348
  } );
349
 
350
- jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-move-selected', function ( e ) {
351
  if ( jQuery( '.rtmedia-list :checkbox:checked' ).length > 0 ) {
352
  if ( confirm( rtmedia_selected_media_move_confirmation ) ) {
353
  jQuery( this ).closest( 'form' ).attr( 'action', '' ).submit();
@@ -358,7 +359,7 @@ jQuery( 'document' ).ready( function ( $ ) {
358
 
359
  } );
360
 
361
- jQuery( '#buddypress' ).on( 'change', '.rtm-activity-privacy-opt', function(){
362
 
363
  var activity_id = jQuery( this ).attr( 'id' );
364
  activity_id = activity_id.split( '-' );
@@ -367,16 +368,16 @@ jQuery( 'document' ).ready( function ( $ ) {
367
  var that = this;
368
 
369
  data = {
370
- activity_id : activity_id,
371
- privacy : jQuery( this ).val(),
372
- nonce : jQuery( '#rtmedia_activity_privacy_nonce' ).val(),
373
- action : 'rtm_change_activity_privacy'
374
  };
375
 
376
- jQuery.post( ajaxurl, data, function( res ){
377
  var message = '';
378
  var css_class = '';
379
- if ( res == "true" ) {
380
  message = rtmedia_main_js_strings.privacy_update_success;
381
  css_class = 'success';
382
  } else {
@@ -385,17 +386,17 @@ jQuery( 'document' ).ready( function ( $ ) {
385
  }
386
 
387
  jQuery( that ).after( '<p class="rtm-ac-privacy-updated ' + css_class + '">' + message + '</p>' );
388
- setTimeout( function(){
389
  jQuery( that ).siblings( '.rtm-ac-privacy-updated' ).remove();
390
  }, 2000 );
391
  } );
392
  } );
393
 
394
  function rtmedia_media_view_counts() {
395
- //var view_count_action = jQuery('#rtmedia-media-view-form').attr("action");
396
  if ( jQuery( '#rtmedia-media-view-form' ).length > 0 ) {
397
- var url = jQuery( '#rtmedia-media-view-form' ).attr( "action" );
398
- jQuery.post( url, { }, function ( data ) {
399
 
400
  } );
401
  }
@@ -403,7 +404,7 @@ jQuery( 'document' ).ready( function ( $ ) {
403
 
404
  rtmedia_media_view_counts();
405
  rtMediaHook.register( 'rtmedia_js_popup_after_content_added',
406
- function () {
407
  rtmedia_media_view_counts();
408
  rtmedia_init_media_deleting();
409
  mfp = jQuery.magnificPopup.instance;
@@ -415,31 +416,31 @@ jQuery( 'document' ).ready( function ( $ ) {
415
  var height = $( window ).height();
416
  jQuery( '.rtm-lightbox-container .mejs-video' ).css( { 'height': height * 0.8, 'over-flow': 'hidden' } );
417
  jQuery( '.mfp-content .rtmedia-media' ).css( { 'max-height': height * 0.87, 'over-flow': 'hidden' } );
418
- //mejs-video
419
  //init the options dropdown menu
420
  rtmedia_init_action_dropdown();
421
- //get focus on comment textarea when comment-link is clicked
422
- jQuery( '.rtmedia-comment-link' ).on( 'click', function ( e ) {
423
  e.preventDefault();
424
  jQuery( '#comment_content' ).focus();
425
  } );
426
 
427
- jQuery( ".rtm-more" ).shorten( { // shorten the media description to 100 characters
428
- "showChars": 130
429
  } );
430
 
431
- //show gallery title in lightbox at bottom
432
- var gal_title = $( '.rtm-gallery-title' ), title = "";
433
  if ( ! $.isEmptyObject( gal_title ) ) {
434
  title = gal_title.html();
435
  } else {
436
  title = $( '#subnav.item-list-tabs li.selected ' ).html();
437
  }
438
- if ( title != "" ) {
439
  $( '.rtm-ltb-gallery-title .ltb-title' ).html( title );
440
  }
441
 
442
- //show image counts
443
  var counts = $( '#subnav.item-list-tabs li.selected span' ).html();
444
  $( 'li.total' ).html( counts );
445
 
@@ -449,20 +450,20 @@ jQuery( 'document' ).ready( function ( $ ) {
449
 
450
  function rtmedia_init_popup_navigation() {
451
  var rtm_mfp = jQuery.magnificPopup.instance;
452
- jQuery( '.mfp-arrow-right' ).on( 'click', function ( e ) {
453
  rtm_mfp.next();
454
  } );
455
- jQuery( '.mfp-arrow-left' ).on( 'click', function ( e ) {
456
  rtm_mfp.prev();
457
  } );
458
 
459
  jQuery( '.mfp-content .rtmedia-media' ).swipe( {
460
  //Generic swipe handler for all directions
461
- swipeLeft: function ( event, direction, distance, duration, fingerCount ) // bind leftswipe
462
  {
463
  rtm_mfp.next();
464
  },
465
- swipeRight: function ( event, direction, distance, duration, fingerCount ) // bind rightswipe
466
  {
467
  rtm_mfp.prev();
468
  },
@@ -486,27 +487,27 @@ jQuery( 'document' ).ready( function ( $ ) {
486
  } );
487
  }
488
 
489
- var dragArea = jQuery( "#drag-drop-area" );
490
  var activityArea = jQuery( '#whats-new' );
491
  var content = dragArea.html();
492
- jQuery( '#rtmedia-upload-container' ).after( "<div id='rtm-drop-files-title'>" + rtmedia_drop_media_msg + "</div>" );
493
- if ( typeof rtmedia_bp_enable_activity != "undefined" && rtmedia_bp_enable_activity == "1" ) {
494
- jQuery( '#whats-new-textarea' ).append( "<div id='rtm-drop-files-title'>" + rtmedia_drop_media_msg + "</div>" );
495
  }
496
  jQuery( document )
497
  .on( 'dragover', function( e ) {
498
  jQuery( '#rtm-media-gallery-uploader' ).show();
499
- if ( typeof rtmedia_bp_enable_activity != "undefined" && rtmedia_bp_enable_activity == "1" ) {
500
  activityArea.addClass( 'rtm-drag-drop-active' );
501
  }
502
 
503
- // activityArea.css('height','150px');
504
  dragArea.addClass( 'rtm-drag-drop-active' );
505
  jQuery( '#rtm-drop-files-title' ).show();
506
  } )
507
- .on( "dragleave", function ( e ) {
508
  e.preventDefault();
509
- if ( typeof rtmedia_bp_enable_activity != "undefined" && rtmedia_bp_enable_activity == "1" ) {
510
  activityArea.removeClass( 'rtm-drag-drop-active' );
511
  activityArea.removeAttr( 'style' );
512
  }
@@ -514,9 +515,9 @@ jQuery( 'document' ).ready( function ( $ ) {
514
  jQuery( '#rtm-drop-files-title' ).hide();
515
 
516
  } )
517
- .on( "drop", function ( e ) {
518
  e.preventDefault();
519
- if ( typeof rtmedia_bp_enable_activity != "undefined" && rtmedia_bp_enable_activity == "1" ) {
520
  activityArea.removeClass( 'rtm-drag-drop-active' );
521
  activityArea.removeAttr( 'style' );
522
  }
@@ -525,7 +526,7 @@ jQuery( 'document' ).ready( function ( $ ) {
525
  } );
526
 
527
  function rtmedia_init_media_deleting() {
528
- jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-media', function ( e ) {
529
  e.preventDefault();
530
  if ( confirm( rtmedia_media_delete_confirmation ) ) {
531
  jQuery( this ).closest( 'form' ).submit();
@@ -533,14 +534,14 @@ jQuery( 'document' ).ready( function ( $ ) {
533
  } );
534
  }
535
 
536
- jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-album', function ( e ) {
537
  e.preventDefault();
538
  if ( confirm( rtmedia_album_delete_confirmation ) ) {
539
  jQuery( this ).closest( 'form' ).submit();
540
  }
541
  } );
542
 
543
- jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-media', function ( e ) {
544
  e.preventDefault();
545
  if ( confirm( rtmedia_media_delete_confirmation ) ) {
546
  jQuery( this ).closest( 'form' ).submit();
@@ -549,43 +550,43 @@ jQuery( 'document' ).ready( function ( $ ) {
549
 
550
  rtmedia_init_action_dropdown();
551
 
552
- $( document ).click( function () {
553
  if ( $( '.click-nav ul' ).is( ':visible' ) ) {
554
  $( '.click-nav ul', this ).hide();
555
  }
556
  } );
557
 
558
- //get focus on comment textarea when comment-link is clicked
559
- jQuery( '.rtmedia-comment-link' ).on( 'click', function ( e ) {
560
  e.preventDefault();
561
  jQuery( '#comment_content' ).focus();
562
  } );
563
 
564
  if ( jQuery( '.rtm-more' ).length > 0 ) {
565
- $( ".rtm-more" ).shorten( { // shorten the media description to 100 characters
566
- "showChars": 200
567
  } );
568
  }
569
 
570
- // masonry code
571
- if ( typeof rtmedia_masonry_layout != "undefined" && rtmedia_masonry_layout == "true" && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
572
- rtm_masonry_container = jQuery( '.rtmedia-container .rtmedia-list' )
573
  rtm_masonry_container.masonry( {
574
  itemSelector: '.rtmedia-list-item'
575
  } );
576
- setInterval( function () {
577
- jQuery.each( jQuery( '.rtmedia-list.masonry .rtmedia-item-title' ), function ( i, item ) {
578
  jQuery( item ).width( jQuery( item ).siblings( '.rtmedia-item-thumbnail' ).children( 'img' ).width() );
579
  } );
580
  rtm_masonry_reload( rtm_masonry_container );
581
  }, 1000 );
582
- jQuery.each( jQuery( '.rtmedia-list.masonry .rtmedia-item-title' ), function ( i, item ) {
583
  jQuery( item ).width( jQuery( item ).siblings( '.rtmedia-item-thumbnail' ).children( 'img' ).width() );
584
  } );
585
  }
586
 
587
  if ( jQuery( '.rtm-uploader-tabs' ).length > 0 ) {
588
- jQuery( '.rtm-uploader-tabs li' ).click( function( e ){
589
  if ( ! jQuery( this ).hasClass( 'active' ) ) {
590
  jQuery( this ).siblings().removeClass( 'active' );
591
  jQuery( this ).parents( '.rtm-uploader-tabs' ).siblings().hide();
@@ -602,8 +603,8 @@ jQuery( 'document' ).ready( function ( $ ) {
602
  });
603
  }
604
 
605
- // delete media from gallery page under the user's profile when user clicks the delete button on the gallery item.
606
- jQuery( '.rtmedia-container' ).on( 'click', '.rtm-delete-media', function ( e ) {
607
  e.preventDefault();
608
  var confirmation = 'Are you sure you want to delete this media?';
609
 
@@ -611,7 +612,7 @@ jQuery( 'document' ).ready( function ( $ ) {
611
  confirmation = rtmedia_media_delete_confirmation;
612
  }
613
 
614
- if ( confirm( confirmation ) ) { // if user confirms, send ajax request to delete the selected media
615
  var curr_li = jQuery( this ).closest( 'li' );
616
  var nonce = jQuery( '#rtmedia_media_delete_nonce' ).val();
617
 
@@ -625,16 +626,16 @@ jQuery( 'document' ).ready( function ( $ ) {
625
  url: ajaxurl,
626
  type: 'post',
627
  data: data,
628
- success: function ( data ) {
629
 
630
  if ( data == '1' ) {
631
- //media delete
632
  rtmedia_gallery_action_alert_message( rtmedia_main_js_strings.file_delete_success, 'success' );
633
  curr_li.remove();
634
- if ( typeof rtmedia_masonry_layout != "undefined" && rtmedia_masonry_layout == "true" && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
635
  rtm_masonry_reload( rtm_masonry_container );
636
  }
637
- } else { // show alert message
638
  rtmedia_gallery_action_alert_message( rtmedia_file_not_deleted, 'warning' );
639
  }
640
  }
@@ -658,7 +659,7 @@ function rtmedia_version_compare( left, right ) {
658
  i = 0,
659
  len = Math.max( a.length, b.length );
660
 
661
- for ( ; i < len; i ++ ) {
662
  if ( ( a[i] && ! b[i] && parseInt( a[i] ) > 0 ) || ( parseInt( a[i] ) > parseInt( b[i] ) ) ) {
663
  return true;
664
  } else if ( ( b[i] && ! a[i] && parseInt( b[i] ) > 0 ) || ( parseInt( a[i] ) < parseInt( b[i] ) ) ) {
@@ -678,8 +679,8 @@ function rtm_is_element_exist( el ) {
678
  }
679
 
680
  function rtm_masonry_reload( el ) {
681
- setTimeout( function () {
682
- // we make masonry recalculate the element based on their current state.
683
  el.masonry( 'reload' );
684
  }, 250 );
685
  }
@@ -689,64 +690,68 @@ function rtm_masonry_reload( el ) {
689
  * To change this template file, choose Tools | Templates
690
  * and open the template in the editor.
691
  */
692
- (function($) {
693
- $.fn.shorten = function(settings) {
694
- "use strict";
695
 
696
  var config = {
697
  showChars: 100,
698
  minHideChars: 10,
699
- ellipsesText: "...",
700
- moreText: "Read more",
701
- lessText: "Show less",
702
  onLess: function() {},
703
  onMore: function() {},
704
  errMsg: null,
705
  force: false
706
  };
707
 
708
- if (settings) {
709
- $.extend(config, settings);
710
  }
711
 
712
- if ($(this).data('jquery.shorten') && !config.force) {
713
  return false;
714
  }
715
- $(this).data('jquery.shorten', true);
716
 
717
- $(document).off("click", '.morelink');
718
 
719
- $(document).on({
720
  click: function() {
721
 
722
- var $this = $(this);
723
- if ($this.hasClass('less')) {
724
- $this.removeClass('less');
725
- $this.html(config.moreText);
726
- $this.parent().prev().hide( 0 , function () { $this.parent().prev().prev().show(); })
 
 
727
  .hide( 0, function() {
728
  config.onLess();
729
  });
730
  } else {
731
- $this.addClass('less');
732
- $this.html(config.lessText);
733
- $this.parent().prev().show( 0 , function () { $this.parent().prev().prev().hide(); })
734
- .show( 0 , function() {
 
 
735
  config.onMore();
736
  });
737
  }
738
  return false;
739
  }
740
- }, '.morelink');
741
 
742
  return this.each(function() {
743
- var $this = $(this);
744
 
745
  var content = $this.html();
746
  var contentlen = $this.text().length;
747
- if (contentlen > config.showChars + config.minHideChars) {
748
- var c = content.substr(0, config.showChars);
749
- if (c.indexOf('<') >= 0) // If there's HTML don't want to cut it
750
  {
751
  var inTag = false; // I'm in a tag?
752
  var bag = ''; // Put the characters to be shown here
@@ -754,18 +759,17 @@ function rtm_masonry_reload( el ) {
754
  var openTags = []; // Stack for opened tags, so I can close them later
755
  var tagName = null;
756
 
757
- for (var i = 0, r = 0; r <= config.showChars; i++) {
758
- if (content[i] == '<' && !inTag) {
759
  inTag = true;
760
 
761
  // This could be "tag" or "/tag"
762
- tagName = content.substring(i + 1, content.indexOf('>', i));
763
 
764
  // If its a closing tag
765
- if (tagName[0] == '/') {
766
 
767
-
768
- if (tagName != '/' + openTags[0]) {
769
  config.errMsg = 'ERROR en HTML: the top of the stack should be the tag that closes';
770
  } else {
771
  openTags.shift(); // Pops the last tag from the open tag stack (the tag is closed in the retult HTML!)
@@ -773,29 +777,31 @@ function rtm_masonry_reload( el ) {
773
 
774
  } else {
775
  // There are some nasty tags that don't have a close tag like <br/>
776
- if (tagName.toLowerCase() != 'br') {
777
- openTags.unshift(tagName); // Add to start the name of the tag that opens
778
  }
779
  }
780
  }
781
- if (inTag && content[i] == '>') {
782
  inTag = false;
783
  }
784
 
785
- if (inTag) { bag += content.charAt(i); } // Add tag name chars to the result
 
 
786
  else {
787
  r++;
788
- if (countChars <= config.showChars) {
789
- bag += content.charAt(i); // Fix to ie 7 not allowing you to reference string characters using the []
790
  countChars++;
791
  } else // Now I have the characters needed
792
  {
793
- if (openTags.length > 0) // I have unclosed tags
794
  {
795
- //console.log('They were open tags');
796
  //console.log(openTags);
797
- for (j = 0; j < openTags.length; j++) {
798
- //console.log('Cierro tag ' + openTags[j]);
799
  bag += '</' + openTags[j] + '>'; // Close all tags that were opened
800
 
801
  // You could shift the tag from the stack to check if you end with an empty stack, that means you have closed all open tags
@@ -805,37 +811,37 @@ function rtm_masonry_reload( el ) {
805
  }
806
  }
807
  }
808
- c = $('<div/>').html(bag + '<span class="ellip">' + config.ellipsesText + '</span>').html();
809
- }else{
810
- c+=config.ellipsesText;
811
  }
812
 
813
  var html = '<div class="shortcontent">' + c +
814
  '</div><div class="allcontent">' + content +
815
  '</div><span><a href="javascript://nop/" class="morelink">' + config.moreText + '</a></span>';
816
 
817
- $this.html(html);
818
- $this.find(".allcontent").hide(); // Hide all text
819
- $('.shortcontent p:last', $this).css('margin-bottom', 0); //Remove bottom margin on last paragraph as it's likely shortened
820
  }
821
  });
822
 
823
  };
824
 
825
- })(jQuery);
826
 
827
- window.onload = function () {
828
- if ( typeof rtmedia_masonry_layout != "undefined" && rtmedia_masonry_layout == "true" && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
829
  rtm_masonry_reload( rtm_masonry_container );
830
  }
831
  };
832
 
833
  // Get query string parameters from url
834
  function rtmediaGetParameterByName( name ) {
835
- name = name.replace( /[\[]/, "\\\[" ).replace( /[\]]/, "\\\]" );
836
- var regex = new RegExp( "[\\?&]" + name + "=([^&#]*)" ),
837
  results = regex.exec( location.search );
838
- return results == null ? "" : decodeURIComponent( results[1].replace( /\+/g, " " ) );
839
  }
840
 
841
  function rtmedia_single_media_alert_message( msg, action ) {
@@ -846,16 +852,16 @@ function rtmedia_single_media_alert_message( msg, action ) {
846
  }
847
 
848
  jQuery( '.rtmedia-single-media .rtmedia-media' ).css( 'opacity', '0.2' );
849
- jQuery( '.rtmedia-single-media .rtmedia-media' ).after( "<div class='rtmedia-message-container'><span class='" + action_class + "'>" + msg + " </span></div>" );
850
 
851
  setTimeout( function() {
852
  jQuery( '.rtmedia-single-media .rtmedia-media' ).css( 'opacity', '1' );
853
- jQuery( ".rtmedia-message-container" ).remove();
854
  }, 3000 );
855
 
856
  jQuery( '.rtmedia-message-container' ).click( function() {
857
  jQuery( '.rtmedia-single-media .rtmedia-media' ).css( 'opacity', '1' );
858
- jQuery( ".rtmedia-message-container" ).remove();
859
  } );
860
  }
861
 
@@ -867,12 +873,13 @@ function rtmedia_gallery_action_alert_message( msg, action ) {
867
  }
868
  var container = '<div class="rtmedia-gallery-alert-container"> </div>';
869
  jQuery( 'body' ).append( container );
870
- jQuery( '.rtmedia-gallery-alert-container' ).append( "<div class='rtmedia-gallery-message-box'><span class='" + action_class + "'>" + msg + " </span></div>" );
871
 
872
- setTimeout( function() { jQuery( ".rtmedia-gallery-alert-container" ).remove();
 
873
  }, 3000 );
874
 
875
  jQuery( '.rtmedia-gallery-message-box' ).click( function() {
876
- jQuery( ".rtmedia-gallery-alert-container" ).remove();
877
  } );
878
  }
1
  var rtMagnificPopup;
2
  var rtm_masonry_container;
3
  function apply_rtMagnificPopup( selector ) {
4
+ jQuery( 'document' ).ready( function( $ ) {
5
+ var rt_load_more = '';
6
+ if ( typeof ( rtmedia_load_more ) === 'undefined' ) {
7
+ rt_load_more = 'Loading media';
8
  } else {
9
  rt_load_more = rtmedia_load_more;
10
  }
11
+ if ( typeof( rtmedia_lightbox_enabled ) != 'undefined' && rtmedia_lightbox_enabled == '1' ) { // If lightbox is enabled.
12
 
13
  if ( $( '.activity-item .rtmedia-activity-container .rtmedia-list-item > a' ).siblings( 'p' ).children( 'a' ).length > 0 ) {
14
  $( '.activity-item .rtmedia-activity-container .rtmedia-list-item > a' ).siblings( 'p' ).children( 'a' ).addClass( 'no-popup' );
24
  gallery: {
25
  enabled: true,
26
  navigateByImgClick: true,
27
+ arrowMarkup: '', // Disabled default arrows
28
  preload: [ 0, 1 ] // Will preload 0 - before current, and 1 after the current image
29
  },
30
  image: {
31
  tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
32
+ titleSrc: function( item ) {
33
  return item.el.attr( 'title' ) + '<small>by Marsel Van Oosten</small>';
34
  }
35
  },
36
  callbacks: {
37
+ ajaxContentAdded: function() {
38
 
39
  mfp = jQuery.magnificPopup.instance;
40
  if ( jQuery( mfp.items ).size() === 1 ) {
41
+ jQuery( '.mfp-arrow' ).remove();
42
  }
43
  // When last second media is encountered in lightbox, load more medias if available
44
  var mfp = jQuery.magnificPopup.instance;
47
  if ( ! li.is( 'li' ) ) {
48
  li = li.parent();
49
  }
50
+ if ( li.is( ':nth-last-child(2)' ) || li.is( ':last-child' ) ) { // If its last second media
51
  var last_li = li.next();
52
+ if ( jQuery( '#rtMedia-galary-next' ).css( 'display' ) == 'block' ) { // If more medias are available
53
+ jQuery( '#rtMedia-galary-next' ).click(); // Load more
54
  }
55
  }
56
 
57
  var items = mfp.items.length;
58
+ if ( mfp.index == ( items - 1 ) && ! ( li.is( ':last-child' ) ) ) {
59
  current_media.click();
60
  return;
61
  }
66
  settings.pluginPath = _wpmejsSettings.pluginPath;
67
  }
68
  $( '.mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video' ).mediaelementplayer( {
69
+ // If the <video width> is not specified, this is the default
70
  defaultVideoWidth: 480,
71
+ // If the <video height> is not specified, this is the default
72
  defaultVideoHeight: 270,
73
+ success: function( mediaElement, domObject ) {
74
+ // Call the play method
75
  mediaElement.play();
76
+ }
77
  } );
78
  $( '.mfp-content .mejs-audio .mejs-controls' ).css( 'position', 'relative' );
79
  rtMediaHook.call( 'rtmedia_js_popup_after_content_added', [ ] );
80
  },
81
+ close: function( e ) {
82
+ //Console.log(e);
83
  rtmedia_init_action_dropdown();
84
  },
85
+ BeforeChange: function( e ) {
86
+ //Console.log(e);
87
  }
88
  }
89
  } );
94
  var rtMediaHook = {
95
  hooks: [ ],
96
  is_break: false,
97
+ register: function( name, callback ) {
98
  if ( 'undefined' == typeof ( rtMediaHook.hooks[name] ) ) {
99
  rtMediaHook.hooks[name] = [ ];
100
  }
101
  rtMediaHook.hooks[name].push( callback );
102
  },
103
+ call: function( name, arguments ) {
104
  if ( 'undefined' != typeof ( rtMediaHook.hooks[name] ) ) {
105
+ for ( i = 0; i < rtMediaHook.hooks[name].length; ++i ) {
106
  if ( true != rtMediaHook.hooks[name][i]( arguments ) ) {
107
  rtMediaHook.is_break = true;
108
  return false;
109
  break;
110
  }
111
+ }
112
+ }
113
  return true;
114
  }
115
  };
116
 
117
+ //Drop-down js
118
  function rtmedia_init_action_dropdown() {
119
  var all_ul;
120
  var curr_ul;
121
  jQuery( '.click-nav > span, .click-nav > div' ).toggleClass( 'no-js js' );
122
  jQuery( '.click-nav .js ul' ).hide();
123
+ jQuery( '.click-nav .clicker' ).click( function( e ) {
124
  all_ul = jQuery( '#rtm-media-options .click-nav .clicker' ).next( 'ul' );
125
  curr_ul = jQuery( this ).next( 'ul' );
126
+ jQuery.each( all_ul, function( index, value ) {
127
+ if ( jQuery( value ).html() != curr_ul.html() ) { // Check clicked option with other options
128
  jQuery( value ).hide();
129
  }
130
  } );
133
  } );
134
  }
135
 
136
+ jQuery( 'document' ).ready( function( $ ) {
137
 
138
  // Tabs
139
  if ( typeof $.fn.rtTab !== 'undefined' ) {
140
  $( '.rtm-tabs' ).rtTab();
141
  }
142
 
143
+ // Open magnific popup as modal for create album/playlist
144
  if ( jQuery( '.rtmedia-modal-link' ).length > 0 ) {
145
  $( '.rtmedia-modal-link' ).magnificPopup( {
146
  type: 'inline',
147
  midClick: true, // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href
148
+ closeBtnInside: true
149
  } );
150
  }
151
 
152
+ $( '#rt_media_comment_form' ).submit( function( e ) {
153
+ if ( $.trim( $( '#comment_content' ).val() ) == '' ) {
154
  if ( jQuery( '#rtmedia-single-media-container' ).length == 0 ) {
155
  rtmedia_gallery_action_alert_message( rtmedia_empty_comment_msg, 'warning' );
156
  } else {
161
  return true;
162
  }
163
 
164
+ } );
165
 
166
  //Remove title from popup duplication
167
+ $( 'li.rtmedia-list-item p a' ).each( function( e ) {
168
+ $( this ).addClass( 'no-popup' );
169
  } );
170
 
171
  //Remove title from popup duplication
172
+ $( 'li.rtmedia-list-item p a' ).each(function( e ) {
173
+ $( this ).addClass( 'no-popup' );
174
+ });
175
+ //Rtmedia_lightbox_enabled from setting
176
+ if ( typeof( rtmedia_lightbox_enabled ) != 'undefined' && rtmedia_lightbox_enabled == '1' ) {
177
  apply_rtMagnificPopup( '.rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container' );
178
  }
179
 
180
+ jQuery.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
181
  try {
182
+ if ( originalOptions.data == null || typeof( originalOptions.data ) == 'undefined' || typeof( originalOptions.data.action ) == 'undefined' ) {
183
  return true;
184
  }
185
+ } catch ( e ) {
186
  return true;
187
  }
188
 
189
  // Handle lightbox in BuddyPress activity loadmore
190
+ if ( originalOptions.data.action == 'activity_get_older_updates' ) {
191
  var orignalSuccess = originalOptions.success;
192
+ options.success = function( response ) {
193
  orignalSuccess( response );
194
  apply_rtMagnificPopup( '.rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' );
195
  rtMediaHook.call( 'rtmedia_js_after_activity_added', [] );
196
+ };
197
  } else if ( originalOptions.data.action == 'get_single_activity_content' ) {
198
  // Handle lightbox in BuddyPress single activity loadmore
199
  var orignalSuccess = originalOptions.success;
200
+ options.success = function( response ) {
201
  orignalSuccess( response );
202
+ setTimeout( function() {
203
  apply_rtMagnificPopup( '.rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' );
204
  jQuery( 'ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode' ).mediaelementplayer( {
205
+ // If the <video width> is not specified, this is the default
206
  defaultVideoWidth: 480,
207
+ // If the <video height> is not specified, this is the default
208
  defaultVideoHeight: 270
209
  } );
210
  }, 900 );
211
+ };
212
  }
213
  });
214
 
215
+ jQuery.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
216
  try {
217
+ if ( originalOptions.data == null || typeof ( originalOptions.data ) == 'undefined' || typeof ( originalOptions.data.action ) == 'undefined' ) {
218
  return true;
219
  }
220
  } catch ( e ) {
222
  }
223
  if ( originalOptions.data.action == 'activity_get_older_updates' ) {
224
  var orignalSuccess = originalOptions.success;
225
+ options.success = function( response ) {
226
  orignalSuccess( response );
227
  apply_rtMagnificPopup( '.rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content' );
228
 
229
  jQuery( 'ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode' ).mediaelementplayer( {
230
+ // If the <video width> is not specified, this is the default
231
  defaultVideoWidth: 480,
232
+ // If the <video height> is not specified, this is the default
233
  defaultVideoHeight: 270
234
  } );
235
 
236
  rtMediaHook.call( 'rtmedia_js_after_activity_added', [ ] );
237
+ };
238
  }
239
  } );
240
 
241
+ jQuery( '.rtmedia-container' ).on( 'click', '.select-all', function( e ) {
242
  jQuery( this ).toggleClass( 'unselect-all' ).toggleClass( 'select-all' );
243
  jQuery( this ).attr( 'title', rtmedia_unselect_all_visible );
244
+ jQuery( '.rtmedia-list input' ).each( function() {
245
  jQuery( this ).prop( 'checked', true );
246
  } );
247
  jQuery( '.rtmedia-list-item' ).addClass( 'bulk-selected' );
248
  } );
249
 
250
+ jQuery( '.rtmedia-container' ).on( 'click', '.unselect-all', function( e ) {
251
  jQuery( this ).toggleClass( 'select-all' ).toggleClass( 'unselect-all' );
252
  jQuery( this ).attr( 'title', rtmedia_select_all_visible );
253
+ jQuery( '.rtmedia-list input' ).each( function() {
254
  jQuery( this ).prop( 'checked', false );
255
  } );
256
  jQuery( '.rtmedia-list-item' ).removeClass( 'bulk-selected' );
257
  } );
258
 
259
+ jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-move', function( e ) {
260
  jQuery( '.rtmedia-delete-container' ).slideUp();
261
  jQuery( '.rtmedia-move-container' ).slideToggle();
262
  } );
263
 
264
+ jQuery( '#rtmedia-create-album-modal' ).on( 'click', '#rtmedia_create_new_album', function( e ) {
265
  $albumname = jQuery( '<span/>' ).text( jQuery.trim( jQuery( '#rtmedia_album_name' ).val() ) ).html();
266
  $context = jQuery.trim( jQuery( '#rtmedia_album_context' ).val() );
267
  $context_id = jQuery.trim( jQuery( '#rtmedia_album_context_id' ).val() );
277
  create_album_nonce: $create_album_nonce
278
  };
279
 
280
+ if ( $privacy !== '' ) {
281
  data[ 'privacy' ] = $privacy;
282
  }
283
 
284
+ // Since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
285
+ $( '#rtmedia_create_new_album' ).attr( 'disabled', 'disabled' );
286
+ var old_val = $( '#rtmedia_create_new_album' ).html();
287
+ $( '#rtmedia_create_new_album' ).prepend( '<img src=\'' + rMedia_loading_file + '\' />' );
288
 
289
+ jQuery.post( rtmedia_ajax_url, data, function( response ) {
290
  if ( typeof response.album != 'undefined' ) {
291
  response = jQuery.trim( response.album );
292
  var flag = true;
293
 
294
+ jQuery( '.rtmedia-user-album-list' ).each( function() {
295
+ jQuery( this ).children( 'optgroup' ).each( function() {
296
  if ( jQuery( this ).attr( 'value' ) === $context ) {
297
  flag = false;
298
 
303
  } );
304
 
305
  if ( flag ) {
306
+ var label = $context.charAt( 0 ).toUpperCase() + $context.slice( 1 ) + ' ' + rtmedia_main_js_strings.rtmedia_albums;
307
 
308
  var opt_html = '<optgroup value="' + $context + '" label="' + label + '"><option value="' + response + '">' + $albumname + '</option></optgroup>';
309
 
313
 
314
  jQuery( 'select.rtmedia-user-album-list option[value="' + response + '"]' ).prop( 'selected', true );
315
  jQuery( '.rtmedia-create-new-album-container' ).slideToggle();
316
+ jQuery( '#rtmedia_album_name' ).val( '' );
317
+ jQuery( '#rtmedia-create-album-modal' ).append( '<div class=\'rtmedia-success rtmedia-create-album-alert\'><b>' + $albumname + '</b>' + rtmedia_album_created_msg + '</div>' );
318
 
319
+ setTimeout( function() {
320
+ jQuery( '.rtmedia-create-album-alert' ).remove();
321
  }, 4000 );
322
 
323
+ setTimeout( function() {
324
  galleryObj.reloadView();
325
+ jQuery( '.close-reveal-modal' ).click();
326
  }, 2000 );
327
  } else if ( typeof response.error != 'undefined' ) {
328
  rtmedia_gallery_action_alert_message( response.error, 'warning' );
330
  rtmedia_gallery_action_alert_message( rtmedia_something_wrong_msg, 'warning' );
331
  }
332
 
333
+ $( '#rtmedia_create_new_album' ).removeAttr( 'disabled' );
334
+ $( '#rtmedia_create_new_album' ).html( old_val );
335
  } );
336
  } else {
337
  rtmedia_gallery_action_alert_message( rtmedia_empty_album_name_msg, 'warning' );
338
  }
339
  } );
340
 
341
+ jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-selected', function( e ) {
342
  if ( jQuery( '.rtmedia-list :checkbox:checked' ).length > 0 ) {
343
  if ( confirm( rtmedia_selected_media_delete_confirmation ) ) {
344
  jQuery( this ).closest( 'form' ).attr( 'action', '../../../' + rtmedia_media_slug + '/delete' ).submit();
348
  }
349
  } );
350
 
351
+ jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-move-selected', function( e ) {
352
  if ( jQuery( '.rtmedia-list :checkbox:checked' ).length > 0 ) {
353
  if ( confirm( rtmedia_selected_media_move_confirmation ) ) {
354
  jQuery( this ).closest( 'form' ).attr( 'action', '' ).submit();
359
 
360
  } );
361
 
362
+ jQuery( '#buddypress' ).on( 'change', '.rtm-activity-privacy-opt', function() {
363
 
364
  var activity_id = jQuery( this ).attr( 'id' );
365
  activity_id = activity_id.split( '-' );
368
  var that = this;
369
 
370
  data = {
371
+ activity_id: activity_id,
372
+ privacy: jQuery( this ).val(),
373
+ nonce: jQuery( '#rtmedia_activity_privacy_nonce' ).val(),
374
+ action: 'rtm_change_activity_privacy'
375
  };
376
 
377
+ jQuery.post( ajaxurl, data, function( res ) {
378
  var message = '';
379
  var css_class = '';
380
+ if ( res == 'true' ) {
381
  message = rtmedia_main_js_strings.privacy_update_success;
382
  css_class = 'success';
383
  } else {
386
  }
387
 
388
  jQuery( that ).after( '<p class="rtm-ac-privacy-updated ' + css_class + '">' + message + '</p>' );
389
+ setTimeout( function() {
390
  jQuery( that ).siblings( '.rtm-ac-privacy-updated' ).remove();
391
  }, 2000 );
392
  } );
393
  } );
394
 
395
  function rtmedia_media_view_counts() {
396
+ //Var view_count_action = jQuery('#rtmedia-media-view-form').attr("action");
397
  if ( jQuery( '#rtmedia-media-view-form' ).length > 0 ) {
398
+ var url = jQuery( '#rtmedia-media-view-form' ).attr( 'action' );
399
+ jQuery.post( url, { }, function( data ) {
400
 
401
  } );
402
  }
404
 
405
  rtmedia_media_view_counts();
406
  rtMediaHook.register( 'rtmedia_js_popup_after_content_added',
407
+ function() {
408
  rtmedia_media_view_counts();
409
  rtmedia_init_media_deleting();
410
  mfp = jQuery.magnificPopup.instance;
416
  var height = $( window ).height();
417
  jQuery( '.rtm-lightbox-container .mejs-video' ).css( { 'height': height * 0.8, 'over-flow': 'hidden' } );
418
  jQuery( '.mfp-content .rtmedia-media' ).css( { 'max-height': height * 0.87, 'over-flow': 'hidden' } );
419
+ //Mejs-video
420
  //init the options dropdown menu
421
  rtmedia_init_action_dropdown();
422
+ //Get focus on comment textarea when comment-link is clicked
423
+ jQuery( '.rtmedia-comment-link' ).on( 'click', function( e ) {
424
  e.preventDefault();
425
  jQuery( '#comment_content' ).focus();
426
  } );
427
 
428
+ jQuery( '.rtm-more' ).shorten( { // Shorten the media description to 100 characters
429
+ 'showChars': 130
430
  } );
431
 
432
+ //Show gallery title in lightbox at bottom
433
+ var gal_title = $( '.rtm-gallery-title' ), title = '';
434
  if ( ! $.isEmptyObject( gal_title ) ) {
435
  title = gal_title.html();
436
  } else {
437
  title = $( '#subnav.item-list-tabs li.selected ' ).html();
438
  }
439
+ if ( title != '' ) {
440
  $( '.rtm-ltb-gallery-title .ltb-title' ).html( title );
441
  }
442
 
443
+ //Show image counts
444
  var counts = $( '#subnav.item-list-tabs li.selected span' ).html();
445
  $( 'li.total' ).html( counts );
446
 
450
 
451
  function rtmedia_init_popup_navigation() {
452
  var rtm_mfp = jQuery.magnificPopup.instance;
453
+ jQuery( '.mfp-arrow-right' ).on( 'click', function( e ) {
454
  rtm_mfp.next();
455
  } );
456
+ jQuery( '.mfp-arrow-left' ).on( 'click', function( e ) {
457
  rtm_mfp.prev();
458
  } );
459
 
460
  jQuery( '.mfp-content .rtmedia-media' ).swipe( {
461
  //Generic swipe handler for all directions
462
+ swipeLeft: function( event, direction, distance, duration, fingerCount ) // Bind leftswipe
463
  {
464
  rtm_mfp.next();
465
  },
466
+ swipeRight: function( event, direction, distance, duration, fingerCount ) // Bind rightswipe
467
  {
468
  rtm_mfp.prev();
469
  },
487
  } );
488
  }
489
 
490
+ var dragArea = jQuery( '#drag-drop-area' );
491
  var activityArea = jQuery( '#whats-new' );
492
  var content = dragArea.html();
493
+ jQuery( '#rtmedia-upload-container' ).after( '<div id=\'rtm-drop-files-title\'>' + rtmedia_drop_media_msg + '</div>' );
494
+ if ( typeof rtmedia_bp_enable_activity != 'undefined' && rtmedia_bp_enable_activity == '1' ) {
495
+ jQuery( '#whats-new-textarea' ).append( '<div id=\'rtm-drop-files-title\'>' + rtmedia_drop_media_msg + '</div>' );
496
  }
497
  jQuery( document )
498
  .on( 'dragover', function( e ) {
499
  jQuery( '#rtm-media-gallery-uploader' ).show();
500
+ if ( typeof rtmedia_bp_enable_activity != 'undefined' && rtmedia_bp_enable_activity == '1' ) {
501
  activityArea.addClass( 'rtm-drag-drop-active' );
502
  }
503
 
504
+ // ActivityArea.css('height','150px');
505
  dragArea.addClass( 'rtm-drag-drop-active' );
506
  jQuery( '#rtm-drop-files-title' ).show();
507
  } )
508
+ .on( 'dragleave', function( e ) {
509
  e.preventDefault();
510
+ if ( typeof rtmedia_bp_enable_activity != 'undefined' && rtmedia_bp_enable_activity == '1' ) {
511
  activityArea.removeClass( 'rtm-drag-drop-active' );
512
  activityArea.removeAttr( 'style' );
513
  }
515
  jQuery( '#rtm-drop-files-title' ).hide();
516
 
517
  } )
518
+ .on( 'drop', function( e ) {
519
  e.preventDefault();
520
+ if ( typeof rtmedia_bp_enable_activity != 'undefined' && rtmedia_bp_enable_activity == '1' ) {
521
  activityArea.removeClass( 'rtm-drag-drop-active' );
522
  activityArea.removeAttr( 'style' );
523
  }
526
  } );
527
 
528
  function rtmedia_init_media_deleting() {
529
+ jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-media', function( e ) {
530
  e.preventDefault();
531
  if ( confirm( rtmedia_media_delete_confirmation ) ) {
532
  jQuery( this ).closest( 'form' ).submit();
534
  } );
535
  }
536
 
537
+ jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-album', function( e ) {
538
  e.preventDefault();
539
  if ( confirm( rtmedia_album_delete_confirmation ) ) {
540
  jQuery( this ).closest( 'form' ).submit();
541
  }
542
  } );
543
 
544
+ jQuery( '.rtmedia-container' ).on( 'click', '.rtmedia-delete-media', function( e ) {
545
  e.preventDefault();
546
  if ( confirm( rtmedia_media_delete_confirmation ) ) {
547
  jQuery( this ).closest( 'form' ).submit();
550
 
551
  rtmedia_init_action_dropdown();
552
 
553
+ $( document ).click( function() {
554
  if ( $( '.click-nav ul' ).is( ':visible' ) ) {
555
  $( '.click-nav ul', this ).hide();
556
  }
557
  } );
558
 
559
+ //Get focus on comment textarea when comment-link is clicked
560
+ jQuery( '.rtmedia-comment-link' ).on( 'click', function( e ) {
561
  e.preventDefault();
562
  jQuery( '#comment_content' ).focus();
563
  } );
564
 
565
  if ( jQuery( '.rtm-more' ).length > 0 ) {
566
+ $( '.rtm-more' ).shorten( { // Shorten the media description to 100 characters
567
+ 'showChars': 200
568
  } );
569
  }
570
 
571
+ // Masonry code
572
+ if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
573
+ rtm_masonry_container = jQuery( '.rtmedia-container .rtmedia-list' );
574
  rtm_masonry_container.masonry( {
575
  itemSelector: '.rtmedia-list-item'
576
  } );
577
+ setInterval( function() {
578
+ jQuery.each( jQuery( '.rtmedia-list.masonry .rtmedia-item-title' ), function( i, item ) {
579
  jQuery( item ).width( jQuery( item ).siblings( '.rtmedia-item-thumbnail' ).children( 'img' ).width() );
580
  } );
581
  rtm_masonry_reload( rtm_masonry_container );
582
  }, 1000 );
583
+ jQuery.each( jQuery( '.rtmedia-list.masonry .rtmedia-item-title' ), function( i, item ) {
584
  jQuery( item ).width( jQuery( item ).siblings( '.rtmedia-item-thumbnail' ).children( 'img' ).width() );
585
  } );
586
  }
587
 
588
  if ( jQuery( '.rtm-uploader-tabs' ).length > 0 ) {
589
+ jQuery( '.rtm-uploader-tabs li' ).click( function( e ) {
590
  if ( ! jQuery( this ).hasClass( 'active' ) ) {
591
  jQuery( this ).siblings().removeClass( 'active' );
592
  jQuery( this ).parents( '.rtm-uploader-tabs' ).siblings().hide();
603
  });
604
  }
605
 
606
+ // Delete media from gallery page under the user's profile when user clicks the delete button on the gallery item.
607
+ jQuery( '.rtmedia-container' ).on( 'click', '.rtm-delete-media', function( e ) {
608
  e.preventDefault();
609
  var confirmation = 'Are you sure you want to delete this media?';
610
 
612
  confirmation = rtmedia_media_delete_confirmation;
613
  }
614
 
615
+ if ( confirm( confirmation ) ) { // If user confirms, send ajax request to delete the selected media
616
  var curr_li = jQuery( this ).closest( 'li' );
617
  var nonce = jQuery( '#rtmedia_media_delete_nonce' ).val();
618
 
626
  url: ajaxurl,
627
  type: 'post',
628
  data: data,
629
+ success: function( data ) {
630
 
631
  if ( data == '1' ) {
632
+ //Media delete
633
  rtmedia_gallery_action_alert_message( rtmedia_main_js_strings.file_delete_success, 'success' );
634
  curr_li.remove();
635
+ if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
636
  rtm_masonry_reload( rtm_masonry_container );
637
  }
638
+ } else { // Show alert message
639
  rtmedia_gallery_action_alert_message( rtmedia_file_not_deleted, 'warning' );
640
  }
641
  }
659
  i = 0,
660
  len = Math.max( a.length, b.length );
661
 
662
+ for ( ; i < len; i++ ) {
663
  if ( ( a[i] && ! b[i] && parseInt( a[i] ) > 0 ) || ( parseInt( a[i] ) > parseInt( b[i] ) ) ) {
664
  return true;
665
  } else if ( ( b[i] && ! a[i] && parseInt( b[i] ) > 0 ) || ( parseInt( a[i] ) < parseInt( b[i] ) ) ) {
679
  }
680
 
681
  function rtm_masonry_reload( el ) {
682
+ setTimeout( function() {
683
+ // We make masonry recalculate the element based on their current state.
684
  el.masonry( 'reload' );
685
  }, 250 );
686
  }
690
  * To change this template file, choose Tools | Templates
691
  * and open the template in the editor.
692
  */
693
+ (function( $ ) {
694
+ $.fn.shorten = function( settings ) {
695
+ 'use strict';
696
 
697
  var config = {
698
  showChars: 100,
699
  minHideChars: 10,
700
+ ellipsesText: '...',
701
+ moreText: 'Read more',
702
+ lessText: 'Show less',
703
  onLess: function() {},
704
  onMore: function() {},
705
  errMsg: null,
706
  force: false
707
  };
708
 
709
+ if ( settings ) {
710
+ $.extend( config, settings );
711
  }
712
 
713
+ if ( $( this ).data( 'jquery.shorten' ) && ! config.force ) {
714
  return false;
715
  }
716
+ $( this ).data( 'jquery.shorten', true );
717
 
718
+ $( document ).off( 'click', '.morelink' );
719
 
720
+ $( document ).on({
721
  click: function() {
722
 
723
+ var $this = $( this );
724
+ if ( $this.hasClass( 'less' ) ) {
725
+ $this.removeClass( 'less' );
726
+ $this.html( config.moreText );
727
+ $this.parent().prev().hide( 0, function() {
728
+ $this.parent().prev().prev().show();
729
+ })
730
  .hide( 0, function() {
731
  config.onLess();
732
  });
733
  } else {
734
+ $this.addClass( 'less' );
735
+ $this.html( config.lessText );
736
+ $this.parent().prev().show( 0, function() {
737
+ $this.parent().prev().prev().hide();
738
+ })
739
+ .show( 0, function() {
740
  config.onMore();
741
  });
742
  }
743
  return false;
744
  }
745
+ }, '.morelink' );
746
 
747
  return this.each(function() {
748
+ var $this = $( this );
749
 
750
  var content = $this.html();
751
  var contentlen = $this.text().length;
752
+ if ( contentlen > config.showChars + config.minHideChars ) {
753
+ var c = content.substr( 0, config.showChars );
754
+ if ( c.indexOf( '<' ) >= 0 ) // If there's HTML don't want to cut it
755
  {
756
  var inTag = false; // I'm in a tag?
757
  var bag = ''; // Put the characters to be shown here
759
  var openTags = []; // Stack for opened tags, so I can close them later
760
  var tagName = null;
761
 
762
+ for ( var i = 0, r = 0; r <= config.showChars; i++ ) {
763
+ if ( content[i] == '<' && ! inTag ) {
764
  inTag = true;
765
 
766
  // This could be "tag" or "/tag"
767
+ tagName = content.substring( i + 1, content.indexOf( '>', i ) );
768
 
769
  // If its a closing tag
770
+ if ( tagName[0] == '/' ) {
771
 
772
+ if ( tagName != '/' + openTags[0] ) {
 
773
  config.errMsg = 'ERROR en HTML: the top of the stack should be the tag that closes';
774
  } else {
775
  openTags.shift(); // Pops the last tag from the open tag stack (the tag is closed in the retult HTML!)
777
 
778
  } else {
779
  // There are some nasty tags that don't have a close tag like <br/>
780
+ if ( tagName.toLowerCase() != 'br' ) {
781
+ openTags.unshift( tagName ); // Add to start the name of the tag that opens
782
  }
783
  }
784
  }
785
+ if ( inTag && content[i] == '>' ) {
786
  inTag = false;
787
  }
788
 
789
+ if ( inTag ) {
790
+ bag += content.charAt( i );
791
+ } // Add tag name chars to the result
792
  else {
793
  r++;
794
+ if ( countChars <= config.showChars ) {
795
+ bag += content.charAt( i ); // Fix to ie 7 not allowing you to reference string characters using the []
796
  countChars++;
797
  } else // Now I have the characters needed
798
  {
799
+ if ( openTags.length > 0 ) // I have unclosed tags
800
  {
801
+ //Console.log('They were open tags');
802
  //console.log(openTags);
803
+ for ( j = 0; j < openTags.length; j++ ) {
804
+ //Console.log('Cierro tag ' + openTags[j]);
805
  bag += '</' + openTags[j] + '>'; // Close all tags that were opened
806
 
807
  // You could shift the tag from the stack to check if you end with an empty stack, that means you have closed all open tags
811
  }
812
  }
813
  }
814
+ c = $( '<div/>' ).html( bag + '<span class="ellip">' + config.ellipsesText + '</span>' ).html();
815
+ }else {
816
+ c += config.ellipsesText;
817
  }
818
 
819
  var html = '<div class="shortcontent">' + c +
820
  '</div><div class="allcontent">' + content +
821
  '</div><span><a href="javascript://nop/" class="morelink">' + config.moreText + '</a></span>';
822
 
823
+ $this.html( html );
824
+ $this.find( '.allcontent' ).hide(); // Hide all text
825
+ $( '.shortcontent p:last', $this ).css( 'margin-bottom', 0 ); //Remove bottom margin on last paragraph as it's likely shortened
826
  }
827
  });
828
 
829
  };
830
 
831
+ })( jQuery );
832
 
833
+ window.onload = function() {
834
+ if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
835
  rtm_masonry_reload( rtm_masonry_container );
836
  }
837
  };
838
 
839
  // Get query string parameters from url
840
  function rtmediaGetParameterByName( name ) {
841
+ name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
842
+ var regex = new RegExp( '[\\?&]' + name + '=([^&#]*)' ),
843
  results = regex.exec( location.search );
844
+ return results == null ? '' : decodeURIComponent( results[1].replace( /\+/g, ' ' ) );
845
  }
846
 
847
  function rtmedia_single_media_alert_message( msg, action ) {
852
  }
853
 
854
  jQuery( '.rtmedia-single-media .rtmedia-media' ).css( 'opacity', '0.2' );
855
+ jQuery( '.rtmedia-single-media .rtmedia-media' ).after( '<div class=\'rtmedia-message-container\'><span class=\'' + action_class + '\'>' + msg + ' </span></div>' );
856
 
857
  setTimeout( function() {
858
  jQuery( '.rtmedia-single-media .rtmedia-media' ).css( 'opacity', '1' );
859
+ jQuery( '.rtmedia-message-container' ).remove();
860
  }, 3000 );
861
 
862
  jQuery( '.rtmedia-message-container' ).click( function() {
863
  jQuery( '.rtmedia-single-media .rtmedia-media' ).css( 'opacity', '1' );
864
+ jQuery( '.rtmedia-message-container' ).remove();
865
  } );
866
  }
867
 
873
  }
874
  var container = '<div class="rtmedia-gallery-alert-container"> </div>';
875
  jQuery( 'body' ).append( container );
876
+ jQuery( '.rtmedia-gallery-alert-container' ).append( '<div class=\'rtmedia-gallery-message-box\'><span class=\'' + action_class + '\'>' + msg + ' </span></div>' );
877
 
878
+ setTimeout( function() {
879
+ jQuery( '.rtmedia-gallery-alert-container' ).remove();
880
  }, 3000 );
881
 
882
  jQuery( '.rtmedia-gallery-message-box' ).click( function() {
883
+ jQuery( '.rtmedia-gallery-alert-container' ).remove();
884
  } );
885
  }
app/helper/RTMediaLicense.php CHANGED
@@ -7,24 +7,34 @@
7
  * Time: 5:05 PM
8
  */
9
  class RTMediaLicense {
10
-
11
  static $page;
12
 
13
  static function render_license( $page = '' ) {
14
-
15
  self::$page = $page;
16
 
17
  $tabs = apply_filters( 'rtmedia_license_tabs', array() );
18
  $addon_installed = false;
 
19
  if ( ! empty( $tabs ) && is_array( $tabs ) ) {
20
  $addon_installed = true;
21
- foreach ( $tabs as $key => $tab ) {
22
- $tabs[ $key ]['callback'] = array( 'RTMediaLicense', 'render_license_section' );
23
- }
 
 
24
  ?>
25
- <div id="rtm-licenses">
26
- <?php RTMediaAdmin::render_admin_ui( self::$page, $tabs ); ?>
27
- </div>
 
 
 
 
 
 
 
 
 
28
  <?php
29
  }
30
 
@@ -32,86 +42,216 @@ class RTMediaLicense {
32
  if ( did_action( 'rtmedia_addon_license_details' ) ) {
33
  $addon_installed = true;
34
  ?>
35
- <div id="rtm-licenses">
36
  <?php do_action( 'rtmedia_addon_license_details' ); ?>
37
  </div>
38
  <?php
39
  }
 
40
  if ( ! $addon_installed ) {
41
  ?>
42
- <div class="rtm-license-404">You may be interested in <a
43
- href="<?php echo esc_url( admin_url( 'admin.php?page=rtmedia-addons' ) ); ?>">rtMedia Addons</a>.
44
- </div>
45
  <?php
46
  }
47
  }
48
 
49
- static function render_license_section( $page = '', $args = '' ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
- $license = ( isset( $args['license_key'] ) ) ? $args['license_key'] : false;
52
- $status = ( isset( $args['status'] ) ) ? $args['status'] : false;
53
 
54
- if ( false !== $status && 'valid' === $status ) {
55
- $status_class = 'activated rtm-success';
56
- $status_value = esc_attr__( 'Activated', 'buddypress-media' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  } else {
58
- $status_class = 'deactivated rtm-warning';
59
- $status_value = esc_attr__( 'Deactivated', 'buddypress-media' );
 
 
 
60
  }
61
 
62
- $el_id = $args['addon_id'];
63
- $license_key_id = $args['key_id'];
64
- $license_status_id = $args['status_id'];
65
- ?>
66
- <div class="rtm-addon-license">
67
- <div class="rtm-license-status-wrap <?php echo esc_attr( $status_class ) ?>">
68
- <span
69
- class="rtm-addon-license-status-label"><?php esc_html_e( 'Status: ', 'buddypress-media' ); ?></span>
70
- <span class="rtm-addon-license-status"><?php echo esc_attr( $status_value ); ?></span>
71
- </div>
72
 
73
- <form method="post">
74
- <table class="form-table">
75
- <tbody>
76
- <tr>
77
- <th scope="row">
78
- <?php esc_html_e( 'License Key', 'buddypress-media' ); ?>
79
- </th>
80
- <td>
81
- <input id="<?php echo esc_attr( $license_key_id ) ?>"
82
- name="<?php echo esc_attr( $license_key_id ) ?>" type="text"
83
- class="regular-text" value="<?php echo esc_attr( $license ); ?>"/>
84
- </td>
85
- </tr>
86
-
87
- <?php if ( false !== $license ) { ?>
88
- <tr>
89
- <th scope="row">
90
- <?php esc_html_e( 'Activate / Deactivate License', 'buddypress-media' ); ?>
91
- </th>
92
- <td>
93
- <?php
94
- $nonce_action = 'edd_' . $el_id . '_nonce';
95
- $nonce_name = 'edd_' . $el_id . '_nonce';
96
- if ( false !== $status && 'valid' === $status ) {
97
- $btn_name = 'edd_' . $el_id . '_license_deactivate';
98
- $btn_val = esc_attr__( 'Deactivate License', 'buddypress-media' );
99
- } else {
100
- $btn_name = 'edd_' . $el_id . '_license_activate';
101
- $btn_val = esc_attr__( 'Activate License', 'buddypress-media' );
102
- }
103
- ?>
104
- <?php wp_nonce_field( $nonce_action, $nonce_name ); ?>
105
- <input type="submit" class="button-secondary"
106
- name="<?php echo esc_attr( $btn_name ); ?>" value="<?php echo esc_attr( $btn_val ); ?>"/>
107
- </td>
108
- </tr>
109
- <?php } ?>
110
- </tbody>
111
- </table>
112
- <?php submit_button( 'Save Key' ); ?>
113
- </form>
114
- </div>
115
- <?php
116
  }
117
  }
7
  * Time: 5:05 PM
8
  */
9
  class RTMediaLicense {
 
10
  static $page;
11
 
12
  static function render_license( $page = '' ) {
 
13
  self::$page = $page;
14
 
15
  $tabs = apply_filters( 'rtmedia_license_tabs', array() );
16
  $addon_installed = false;
17
+
18
  if ( ! empty( $tabs ) && is_array( $tabs ) ) {
19
  $addon_installed = true;
20
+
21
+ /**
22
+ * Grid layout for addon license keys
23
+ * Design Credits: Pippin Williamson (https://easydigitaldownloads.com/)
24
+ */
25
  ?>
26
+ <form method="post" class="license-form">
27
+ <div id="rtm-licenses" class="license-row">
28
+ <?php
29
+ foreach ( $tabs as $key => $tab ) {
30
+ self::render_license_section( self::$page, $tab );
31
+ }
32
+ ?>
33
+ </div>
34
+ <div class="rtml-submit-wrapper">
35
+ <?php submit_button( 'Save Changes' ); ?>
36
+ </div>
37
+ </form>
38
  <?php
39
  }
40
 
42
  if ( did_action( 'rtmedia_addon_license_details' ) ) {
43
  $addon_installed = true;
44
  ?>
45
+ <div id="rtm-licenses" class="license-row">
46
  <?php do_action( 'rtmedia_addon_license_details' ); ?>
47
  </div>
48
  <?php
49
  }
50
+
51
  if ( ! $addon_installed ) {
52
  ?>
53
+ <div class="rtm-license-404"><?php esc_html_e( 'You may be interested in', 'buddypress-media' ); ?> <a href="<?php echo esc_url( admin_url( 'admin.php?page=rtmedia-addons' ) ); ?>"><?php esc_html_e( 'rtMedia Addons', 'buddypress-media' ); ?></a>.</div>
 
 
54
  <?php
55
  }
56
  }
57
 
58
+ static function render_license_section( $page = '', $tab = '' ) {
59
+
60
+ $args = $tab['args'];
61
+ $license = ( isset( $args['license_key'] ) ) ? $args['license_key'] : false;
62
+ $status = ( isset( $args['status'] ) ) ? $args['status'] : false;
63
+ $el_id = $args['addon_id'];
64
+ $license_key_id = $args['key_id'];
65
+ $license_status_id = $args['status_id'];
66
+ $license_data = get_option( 'edd_' . $el_id . '_active', '' );
67
+ ?>
68
+ <div class="large-4 medium-6 small-12 license-column">
69
+
70
+ <div class="rtm-addon-license">
71
+ <h4 class="title">
72
+ <span><?php echo esc_html( $tab['title'] ); ?></span>
73
+ </h4>
74
+
75
+ <div class="license-inner">
76
+ <input id="<?php echo esc_attr( $license_key_id ) ?>" name="<?php echo esc_attr( $license_key_id ) ?>" type="text" class="regular-text" value="<?php echo esc_attr( $license ); ?>" />
77
+ <?php
78
+ $nonce_action = 'edd_' . $el_id . '_nonce';
79
+ $nonce_name = 'edd_' . $el_id . '_nonce';
80
+
81
+ if ( false !== $status && 'valid' === $status ) {
82
+ $btn_name = 'edd_' . $el_id . '_license_deactivate';
83
+ $btn_val = esc_attr__( 'Deactivate License', 'buddypress-media' );
84
+ } else {
85
+ $btn_name = 'edd_' . $el_id . '_license_activate';
86
+ $btn_val = esc_attr__( 'Activate License', 'buddypress-media' );
87
+ }
88
+
89
+ wp_nonce_field( $nonce_action, $nonce_name );
90
+ ?>
91
+
92
+ <input type="submit" class="button-secondary" name="<?php echo esc_attr( $btn_name ); ?>" value="<?php echo esc_attr( $btn_val ); ?>" />
93
+
94
+ <?php /* ?>
95
+ *** Classes to be append with `license-message` ***
96
+
97
+ * warning
98
+ * success
99
+ * info
100
+ * alert
101
+
102
+ <?php */ ?>
103
+ <?php self::render_license_message( $license_data, $tab['title'] ); ?>
104
+ </div><!-- End of .license-inner -->
105
+ </div><!-- End of .rtm-addon-license -->
106
+ </div><!-- End of .license-column -->
107
+ <?php
108
+ }
109
+
110
+ static function render_license_message( $license = '', $addon_name = '' ) {
111
+
112
+ $addon_name = isset( $license->item_name ) ? esc_html( $license->item_name ) : esc_html( $addon_name );
113
+ $messages = array();
114
+
115
+ if ( ! empty( $license ) && is_object( $license ) ) {
116
+
117
+ // activate_license 'invalid' on anything other than valid, so if there was an error capture it
118
+ if ( false === $license->success ) {
119
+
120
+ switch ( $license->error ) {
121
+
122
+ case 'expired' :
123
+
124
+ $class = 'alert';
125
+ $messages[] = sprintf(
126
+ __( 'Your license key expired on %1$s. Please renew your license key.', 'buddypress-media' ),
127
+ date_i18n( get_option( 'date_format' ), strtotime( $license->expires, current_time( 'timestamp' ) ) )
128
+ );
129
+
130
+ $license_status = 'license-' . $class . '-notice';
131
+
132
+ break;
133
+
134
+ case 'revoked' :
135
+
136
+ $class = 'alert';
137
+ $messages[] = __( 'Your license key has been disabled. Please contact support for more information.', 'buddypress-media' );
138
+
139
+ $license_status = 'license-' . $class . '-notice';
140
+
141
+ break;
142
+
143
+ case 'missing' :
144
+
145
+ $class = 'alert';
146
+ $messages[] = sprintf(
147
+ __( 'Invalid license. Please <a href="%s" target="_blank">visit your account page</a> and verify it.', 'buddypress-media' ), 'https://rtmedia.io/my-account/'
148
+ );
149
+
150
+ $license_status = 'license-' . $class . '-notice';
151
+
152
+ break;
153
+
154
+ case 'invalid' :
155
+ case 'site_inactive' :
156
+
157
+ $class = 'alert';
158
+ $messages[] = sprintf(
159
+ __( 'Your %1$s is not active for this URL. Please <a href="%2$s" target="_blank">visit your account page</a> to manage your license key URLs.', 'buddypress-media' ),
160
+ $addon_name,
161
+ 'https://rtmedia.io/my-account/'
162
+ );
163
 
164
+ $license_status = 'license-' . $class . '-notice';
 
165
 
166
+ break;
167
+
168
+ case 'item_name_mismatch' :
169
+
170
+ $class = 'alert';
171
+ $messages[] = sprintf( __( 'This appears to be an invalid license key for %s.', 'buddypress-media' ), $addon_name );
172
+
173
+ $license_status = 'license-' . $class . '-notice';
174
+
175
+ break;
176
+
177
+ case 'no_activations_left':
178
+
179
+ $class = 'alert';
180
+ $messages[] = sprintf( __( 'Your license key has reached its activation limit. <a href="%s">View possible upgrades</a> now.', 'buddypress-media' ), 'https://rtmedia.io/my-account/' );
181
+
182
+ $license_status = 'license-' . $class . '-notice';
183
+
184
+ break;
185
+
186
+ default :
187
+
188
+ $messages[] = print_r( $license, true );
189
+ break;
190
+ }
191
+ } else {
192
+
193
+ switch ( $license->license ) {
194
+
195
+ case 'valid' :
196
+ default:
197
+
198
+ $class = 'success';
199
+
200
+ $now = current_time( 'timestamp' );
201
+ $expiration = strtotime( $license->expires, current_time( 'timestamp' ) );
202
+
203
+ if ( 'lifetime' === $license->expires ) {
204
+
205
+ $messages[] = __( 'License key never expires.', 'buddypress-media' );
206
+
207
+ $license_status = 'license-lifetime-notice';
208
+
209
+ } elseif ( $expiration > $now && $expiration - $now < ( DAY_IN_SECONDS * 30 ) ) {
210
+
211
+ $class = 'warning';
212
+
213
+ $messages[] = sprintf(
214
+ __( 'Your license key expires soon! It expires on %1$s. Renew your license key.', 'buddypress-media' ),
215
+ date_i18n( get_option( 'date_format' ), strtotime( $license->expires, current_time( 'timestamp' ) ) )
216
+ );
217
+
218
+ $license_status = 'license-expires-soon-notice';
219
+
220
+ } else {
221
+
222
+ $class = 'info';
223
+
224
+ $messages[] = sprintf(
225
+ __( 'Your license key expires on %s.', 'buddypress-media' ),
226
+ date_i18n( get_option( 'date_format' ), strtotime( $license->expires, current_time( 'timestamp' ) ) )
227
+ );
228
+
229
+ $license_status = 'license-expiration-date-notice';
230
+
231
+ }
232
+
233
+ break;
234
+
235
+ }
236
+ }
237
  } else {
238
+ $class = 'alert';
239
+
240
+ $messages[] = __( 'To receive updates, please enter your valid license key.', 'buddypress-media' );
241
+
242
+ $license_status = null;
243
  }
244
 
245
+ $html = '';
 
 
 
 
 
 
 
 
 
246
 
247
+ if ( ! empty( $messages ) ) {
248
+ foreach ( $messages as $message ) {
249
+
250
+ $html .= '<div class="license-message ' . esc_attr( $class ) . ' ' . esc_attr( $license_status ) . '">' . $message . '</div>';
251
+
252
+ }
253
+ }
254
+
255
+ echo $html; // Please ignore PHPCS warning for $html
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  }
257
  }
app/main/controllers/group/RTMediaGroupExtension.php CHANGED
@@ -63,15 +63,20 @@ if ( class_exists( 'BP_Group_Extension' ) ) :// Recommended, to prevent problems
63
 
64
  /**
65
  * add playlist Save functionality
 
66
  */
67
  $rt_album_creation_control = filter_input( INPUT_POST, 'rt_album_creation_control', FILTER_SANITIZE_STRING );
68
  $rtmp_playlist_creation_control = filter_input( INPUT_POST, 'rtmp_playlist_creation_control', FILTER_SANITIZE_STRING );
69
 
70
  /**
71
- * Save any details submitted here
 
72
  */
73
- if ( ! empty( $rt_album_creation_control ) && ! empty( $rtmp_playlist_creation_control ) ) {
74
  groups_update_groupmeta( $bp->groups->new_group_id, 'rt_media_group_control_level', $rt_album_creation_control );
 
 
 
75
  groups_update_groupmeta( $bp->groups->new_group_id, 'rtmp_create_playlist_control_level', $rtmp_playlist_creation_control );
76
  }
77
 
@@ -149,24 +154,30 @@ if ( class_exists( 'BP_Group_Extension' ) ) :// Recommended, to prevent problems
149
  }
150
 
151
  /**
152
- * remove the ' ' [ syntax mistake ]
153
- * add PLAYLIST CREATION CONTROL save functionality
 
154
  */
155
- $rt_album_creation_control = filter_input( INPUT_POST, 'rt_album_creation_control', FILTER_SANITIZE_STRING );
156
- $rtmp_playlist_creation_control = filter_input( INPUT_POST, 'rtmp_playlist_creation_control', FILTER_SANITIZE_STRING );
157
 
158
  check_admin_referer( 'groups_edit_save_' . $this->slug );
159
 
160
- if ( ! empty( $rt_album_creation_control ) && ! empty( $rtmp_playlist_creation_control ) ) {
161
  $success = groups_update_groupmeta( bp_get_current_group_id(), 'rt_media_group_control_level', $rt_album_creation_control );
162
- $success = groups_update_groupmeta( bp_get_current_group_id(), 'rtmp_create_playlist_control_level', $rtmp_playlist_creation_control );
163
  do_action( 'rtmedia_edit_save_group_media_settings' , $_POST );
164
  $success = true;
165
  } else {
166
  $success = false;
167
  }
168
 
169
- /* To post an error/success message to the screen, use the following */
 
 
 
 
 
 
170
  if ( ! $success ) {
171
  bp_core_add_message( esc_html__( 'There was an error saving, please try again', 'buddypress-media' ), 'error' );
172
  } else {
@@ -188,14 +199,13 @@ if ( class_exists( 'BP_Group_Extension' ) ) :// Recommended, to prevent problems
188
  */
189
  function widget_display() {
190
  ?>
191
- <div class="info-group" >
192
- <h4><?php echo esc_html( $this->name ) ?></h4>
193
- <p>
194
- <?php esc_html_e( 'You could display a small snippet of information from your group extension here. It will show on the group
195
- home screen.', 'buddypress-media' ); ?>
196
- </p>
197
- </div>
198
- <?php
199
  }
200
  }
201
 
63
 
64
  /**
65
  * add playlist Save functionality
66
+ * By: Yahil
67
  */
68
  $rt_album_creation_control = filter_input( INPUT_POST, 'rt_album_creation_control', FILTER_SANITIZE_STRING );
69
  $rtmp_playlist_creation_control = filter_input( INPUT_POST, 'rtmp_playlist_creation_control', FILTER_SANITIZE_STRING );
70
 
71
  /**
72
+ * save details 'ALBUM CREATION CONTROL' and 'PLAYLIST CREATION CONTROL'
73
+ * By: Yahil
74
  */
75
+ if ( isset( $rt_album_creation_control ) && ! empty( $rt_album_creation_control ) ) {
76
  groups_update_groupmeta( $bp->groups->new_group_id, 'rt_media_group_control_level', $rt_album_creation_control );
77
+ }
78
+
79
+ if ( isset( $rtmp_playlist_creation_control ) && ! empty( $rtmp_playlist_creation_control ) ) {
80
  groups_update_groupmeta( $bp->groups->new_group_id, 'rtmp_create_playlist_control_level', $rtmp_playlist_creation_control );
81
  }
82
 
154
  }
155
 
156
  /**
157
+ * Remove The ' ' [ syntax mistake ]
158
+ * Add PLAYLIST CREATION CONTROL save functionality
159
+ * By: Yahil
160
  */
161
+ $rt_album_creation_control = filter_input( INPUT_POST, 'rt_album_creation_control', FILTER_SANITIZE_STRING );
162
+ $rtmp_playlist_creation_control = filter_input( INPUT_POST, 'rtmp_playlist_creation_control', FILTER_SANITIZE_STRING );
163
 
164
  check_admin_referer( 'groups_edit_save_' . $this->slug );
165
 
166
+ if ( isset( $rt_album_creation_control ) && ! empty( $rt_album_creation_control ) ) {
167
  $success = groups_update_groupmeta( bp_get_current_group_id(), 'rt_media_group_control_level', $rt_album_creation_control );
 
168
  do_action( 'rtmedia_edit_save_group_media_settings' , $_POST );
169
  $success = true;
170
  } else {
171
  $success = false;
172
  }
173
 
174
+ if ( isset( $rtmp_playlist_creation_control ) && ! empty( $rtmp_playlist_creation_control ) ) {
175
+ $success = groups_update_groupmeta( bp_get_current_group_id(), 'rtmp_create_playlist_control_level', $rtmp_playlist_creation_control );
176
+ do_action( 'rtmedia_edit_save_group_media_settings' , $_POST );
177
+ $success = true;
178
+ }
179
+
180
+ /* To post an error/success message to the screen, use the following */
181
  if ( ! $success ) {
182
  bp_core_add_message( esc_html__( 'There was an error saving, please try again', 'buddypress-media' ), 'error' );
183
  } else {
199
  */
200
  function widget_display() {
201
  ?>
202
+ <div class="info-group" >
203
+ <h4><?php echo esc_html( $this->name ) ?></h4>
204
+ <p>
205
+ <?php esc_html_e( 'You could display a small snippet of information from your group extension here. It will show on the group home screen.', 'buddypress-media' ); ?>
206
+ </p>
207
+ </div>
208
+ <?php
 
209
  }
210
  }
211
 
app/main/controllers/media/RTMediaFeatured.php CHANGED
@@ -24,7 +24,7 @@ class RTMediaFeatured extends RTMediaUserInteraction {
24
  'action' => 'featured',
25
  'label' => esc_html__( 'Set as Featured', 'buddypress-media' ),
26
  'plural' => '',
27
- 'undo_label' => esc_html__( 'Unset Featured', 'buddypress-media' ),
28
  'privacy' => 60,
29
  'countable' => false,
30
  'single' => true,
24
  'action' => 'featured',
25
  'label' => esc_html__( 'Set as Featured', 'buddypress-media' ),
26
  'plural' => '',
27
+ 'undo_label' => esc_html__( 'Remove Featured', 'buddypress-media' ),
28
  'privacy' => 60,
29
  'countable' => false,
30
  'single' => true,
app/main/controllers/media/RTMediaGroupFeatured.php CHANGED
@@ -16,7 +16,7 @@ class RTMediaGroupFeatured extends RTMediaUserInteraction {
16
  'action' => 'group-featured',
17
  'label' => esc_html__( 'Set as Featured', 'buddypress-media' ),
18
  'plural' => '',
19
- 'undo_label' => esc_html__( 'Unset Featured', 'buddypress-media' ),
20
  'privacy' => 20,
21
  'countable' => false,
22
  'single' => true,
16
  'action' => 'group-featured',
17
  'label' => esc_html__( 'Set as Featured', 'buddypress-media' ),
18
  'plural' => '',
19
+ 'undo_label' => esc_html__( 'Remove Featured', 'buddypress-media' ),
20
  'privacy' => 20,
21
  'countable' => false,
22
  'single' => true,
app/main/controllers/template/rtmedia-filters.php CHANGED
@@ -315,7 +315,7 @@ function replace_aws_img_urls_from_activity( $html, $rtmedia_media ) {
315
 
316
  $media_type = $rtmedia_media->media_type;
317
 
318
- if ( 'imgae' === $media_type ) {
319
  /**
320
  * Fix for rtAmazon S3 addon
321
  * When rtAmazon S3 is disabled we need to restore/replace the attachment URLS with the
@@ -331,10 +331,21 @@ function replace_aws_img_urls_from_activity( $html, $rtmedia_media ) {
331
 
332
  $baseurl = $uploads['baseurl'];
333
 
334
- $search = '/^(http|https)(.*)([wp\-content])(\/uploads\/)/i';
335
- $replace = $baseurl . '/';
 
 
 
 
 
 
 
 
 
 
 
 
336
 
337
- $thumbnail_url = preg_replace( $search, $replace, $thumbnail_id );
338
  if ( ! empty( $thumbnail_url ) ) {
339
  $html = preg_replace( "/src=[\"]([^\"]+)[\"]/", "src=\"$thumbnail_url\"", $html );
340
  }
@@ -346,7 +357,9 @@ function replace_aws_img_urls_from_activity( $html, $rtmedia_media ) {
346
  add_filter( 'rtmedia_single_content_filter', 'replace_aws_img_urls_from_activity', 100, 2 );
347
 
348
  /**
349
- * Add the notice when file is sent for the transcoding and adds the poster thumbnail if poster tag is empty
 
 
350
  *
351
  * @since 1.0.1
352
  *
@@ -367,7 +380,7 @@ function replace_aws_img_urls_from_activities( $content, $activity = '' ) {
367
  * @var boolean Boolean false is passed as a parameter.
368
  * @var object $activity Object of activity.
369
  */
370
- if ( apply_filters( 'replace_aws_img_urls_from_activity', false, $activity ) ) {
371
  return $content;
372
  }
373
 
@@ -383,9 +396,7 @@ function replace_aws_img_urls_from_activities( $content, $activity = '' ) {
383
 
384
  if ( ! empty( $is_img ) && ! empty( $url ) && ! empty( $url[1] ) ) {
385
  /**
386
- * Fix for rtAmazon S3 addon
387
- * When rtAmazon S3 is disabled we need to restore/replace the attachment URLS with the
388
- * original WordPress URL structure
389
  */
390
  foreach ( $url[1] as $key => $url ) {
391
  if ( ! class_exists( 'RTAWSS3_Class' ) && ! class_exists( 'AS3CF_Utils' ) ) {
@@ -398,10 +409,20 @@ function replace_aws_img_urls_from_activities( $content, $activity = '' ) {
398
 
399
  $baseurl = $uploads['baseurl'];
400
 
401
- $search = "/^(http|https)(.*)([wp\-content])(\/uploads\/)/i";
402
- $replace = $baseurl . '/';
 
 
 
 
 
 
 
 
 
 
 
403
 
404
- $thumbnail_url = preg_replace( $search, $replace, $url );
405
  if ( ! empty( $thumbnail_url ) ) {
406
  $content = str_replace( $url, $thumbnail_url, $content );
407
  }
@@ -444,6 +465,16 @@ function rtt_restore_og_wp_image_url( $thumbnail_id, $media_type, $media_id ) {
444
  return $thumbnail_id;
445
  }
446
 
 
 
 
 
 
 
 
 
 
 
447
  /**
448
  * Fix for rtAmazon S3 addon
449
  * When rtAmazon S3 is disabled we need to restore/replace the attachment URLS with the
@@ -457,10 +488,21 @@ function rtt_restore_og_wp_image_url( $thumbnail_id, $media_type, $media_id ) {
457
  $uploads = wp_upload_dir();
458
  }
459
 
460
- $baseurl = $uploads['baseurl'];
461
- $search = '/^(http|https)(.*)([wp\-content])(\/)(uploads\/)/i';
462
- $replace = $baseurl . '/';
463
- $thumbnail_url = preg_replace( $search, $replace, $thumbnail_id );
 
 
 
 
 
 
 
 
 
 
 
464
 
465
  if ( ! empty( $thumbnail_url ) ) {
466
  $thumbnail_id = $thumbnail_url;
@@ -477,3 +519,69 @@ function rtt_restore_og_wp_image_url( $thumbnail_id, $media_type, $media_id ) {
477
  }
478
 
479
  add_filter( 'show_custom_album_cover', 'rtt_restore_og_wp_image_url', 100, 3 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
 
316
  $media_type = $rtmedia_media->media_type;
317
 
318
+ if ( 'image' === $media_type && ! empty( $rtmedia_media->guid ) ) {
319
  /**
320
  * Fix for rtAmazon S3 addon
321
  * When rtAmazon S3 is disabled we need to restore/replace the attachment URLS with the
331
 
332
  $baseurl = $uploads['baseurl'];
333
 
334
+ if ( 0 === strpos( $rtmedia_media->guid, $uploads['baseurl'] ) ) {
335
+ $thumbnail_url = $rtmedia_media->guid;
336
+ } else {
337
+
338
+ $rtmedia_folder_name = apply_filters( 'rtmedia_upload_folder_name', 'rtMedia' );
339
+
340
+ $thumbnail_url = explode( $rtmedia_folder_name , $rtmedia_media->guid );
341
+
342
+ if ( is_array( $thumbnail_url ) && ! empty( $thumbnail_url[1] ) ) {
343
+ $thumbnail_url = $baseurl . '/' . $rtmedia_folder_name . '/' . ltrim( $thumbnail_url[1], '/' );
344
+ } else {
345
+ $thumbnail_url = $rtmedia_media->guid;
346
+ }
347
+ }
348
 
 
349
  if ( ! empty( $thumbnail_url ) ) {
350
  $html = preg_replace( "/src=[\"]([^\"]+)[\"]/", "src=\"$thumbnail_url\"", $html );
351
  }
357
  add_filter( 'rtmedia_single_content_filter', 'replace_aws_img_urls_from_activity', 100, 2 );
358
 
359
  /**
360
+ * Fix for rtAmazon S3 addon
361
+ * When rtAmazon S3 is disabled we need to restore/replace the attachment URLS with the
362
+ * original WordPress URL structure
363
  *
364
  * @since 1.0.1
365
  *
380
  * @var boolean Boolean false is passed as a parameter.
381
  * @var object $activity Object of activity.
382
  */
383
+ if ( apply_filters( 'replace_aws_img_urls_from_activities', false, $activity ) ) {
384
  return $content;
385
  }
386
 
396
 
397
  if ( ! empty( $is_img ) && ! empty( $url ) && ! empty( $url[1] ) ) {
398
  /**
399
+ * Iterate through each image URL found in regex
 
 
400
  */
401
  foreach ( $url[1] as $key => $url ) {
402
  if ( ! class_exists( 'RTAWSS3_Class' ) && ! class_exists( 'AS3CF_Utils' ) ) {
409
 
410
  $baseurl = $uploads['baseurl'];
411
 
412
+ if ( 0 === strpos( $url, $uploads['baseurl'] ) ) {
413
+ $thumbnail_url = $url;
414
+ } else {
415
+ $rtmedia_folder_name = apply_filters( 'rtmedia_upload_folder_name', 'rtMedia' );
416
+
417
+ $thumbnail_url = explode( $rtmedia_folder_name , $url );
418
+
419
+ if ( is_array( $thumbnail_url ) && ! empty( $thumbnail_url[1] ) ) {
420
+ $thumbnail_url = $baseurl . '/' . $rtmedia_folder_name . '/' . ltrim( $thumbnail_url[1], '/' );
421
+ } else {
422
+ $thumbnail_url = $url;
423
+ }
424
+ }
425
 
 
426
  if ( ! empty( $thumbnail_url ) ) {
427
  $content = str_replace( $url, $thumbnail_url, $content );
428
  }
465
  return $thumbnail_id;
466
  }
467
 
468
+ /**
469
+ * Allow users/plugins to prevent replacing of URL of album cover
470
+ *
471
+ * @var boolean Boolean false is passed as a parameter.
472
+ * @var string $media_type Type of the media.
473
+ */
474
+ if ( apply_filters( 'rtt_restore_og_wp_image_url', false, $media_type ) ) {
475
+ return $thumbnail_id;
476
+ }
477
+
478
  /**
479
  * Fix for rtAmazon S3 addon
480
  * When rtAmazon S3 is disabled we need to restore/replace the attachment URLS with the
488
  $uploads = wp_upload_dir();
489
  }
490
 
491
+ if ( 0 === strpos( $thumbnail_id, $uploads['baseurl'] ) ) {
492
+ /* URL is clean here */
493
+ /* Apply any filter here if its required */
494
+ } else {
495
+ $baseurl = $uploads['baseurl'];
496
+
497
+ $rtmedia_folder_name = apply_filters( 'rtmedia_upload_folder_name', 'rtMedia' );
498
+
499
+ $thumbnail_url = explode( $rtmedia_folder_name , $thumbnail_id );
500
+ if ( is_array( $thumbnail_url ) && ! empty( $thumbnail_url[1] ) ) {
501
+ $thumbnail_url = $baseurl . '/' . $rtmedia_folder_name . '/' . ltrim( $thumbnail_url[1], '/' );
502
+ } else {
503
+ $thumbnail_url = $thumbnail_id;
504
+ }
505
+ }
506
 
507
  if ( ! empty( $thumbnail_url ) ) {
508
  $thumbnail_id = $thumbnail_url;
519
  }
520
 
521
  add_filter( 'show_custom_album_cover', 'rtt_restore_og_wp_image_url', 100, 3 );
522
+
523
+ /**
524
+ * Get the information ( status, expiry date ) of all the installed addons and store in site option
525
+ *
526
+ * @since 4.1.7
527
+ */
528
+ function rt_check_addon_status(){
529
+ $addons = apply_filters( 'rtmedia_license_tabs', array() );
530
+
531
+ if ( empty( $addons ) ) {
532
+ return;
533
+ }
534
+
535
+ foreach ( $addons as $addon ) {
536
+ if ( ! empty( $addon['args']['license_key'] ) && ! empty( $addon['name'] ) && ! empty( $addon['args']['addon_id'] ) ) {
537
+
538
+ $license = $addon['args']['license_key'];
539
+
540
+ $addon_name = $addon['name'];
541
+
542
+ $addon_id = $addon['args']['addon_id'];
543
+
544
+ $addon_active = get_option( 'edd_' . $addon_id . '_active' );
545
+
546
+ /**
547
+ * Check if information about the addon in already fetched from the store
548
+ * If it's already fetched, then don't send the request again for the information
549
+ */
550
+ if ( ! empty( $addon_active ) ) {
551
+ continue;
552
+ }
553
+
554
+ /* Get the store URL from the constant defined in the addon */
555
+ $store_url = constant( 'EDD_' . strtoupper( $addon_id ) . '_STORE_URL' );
556
+
557
+ /* If store URL not found in the addon, use the default store URL */
558
+ if ( empty( $store_url ) ) {
559
+ $store_url = "https://rtmedia.io/";
560
+ }
561
+
562
+ // data to send in our API request
563
+ $api_params = array(
564
+ 'edd_action' => 'activate_license',
565
+ 'license' => $license,
566
+ 'item_name' => urlencode( $addon_name ), // the name of our product in EDD
567
+ 'url' => home_url(),
568
+ );
569
+
570
+ // Call the custom API.
571
+ $response = wp_remote_get( esc_url_raw( add_query_arg( $api_params, $store_url ) ), array( 'timeout' => 15, 'sslverify' => false ) );
572
+
573
+ // make sure the response came back okay
574
+ if ( is_wp_error( $response ) ) {
575
+ return false;
576
+ }
577
+
578
+ // decode the license data
579
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
580
+
581
+ // Store the data in database
582
+ update_option( 'edd_' . $addon_id . '_active', $license_data );
583
+ }
584
+ }
585
+ }
586
+
587
+ add_action( 'admin_init', 'rt_check_addon_status' );
index.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
  Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
6
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
7
- Version: 4.1.6
8
  Author: rtCamp
9
  Text Domain: buddypress-media
10
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
4
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
  Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
6
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
7
+ Version: 4.1.8
8
  Author: rtCamp
9
  Text Domain: buddypress-media
10
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
languages/buddypress-media.po CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.1.5\n"
6
  "Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
7
- "POT-Creation-Date: 2016-09-26 08:36:32+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -24,441 +24,440 @@ msgstr ""
24
  "X-Poedit-Bookmarks: \n"
25
  "X-Textdomain-Support: yes\n"
26
 
27
- #: app/admin/RTMediaAdmin.php:144
28
  msgid ""
29
  "Install <a href=\"https://wordpress.org/plugins/transcoder/\" "
30
  "target=\"_blank\">Transcoder plugin</a> to convert audio/video files and "
31
  "thumbnails generation."
32
  msgstr ""
33
 
34
- #: app/admin/RTMediaAdmin.php:190
35
  msgid "View &#8220;%s&#8221;"
36
  msgstr ""
37
 
38
- #: app/admin/RTMediaAdmin.php:190
39
  msgid "View"
40
  msgstr ""
41
 
42
- #: app/admin/RTMediaAdmin.php:257 app/admin/RTMediaAdmin.php:309
43
- msgid "rtMedia: "
44
- msgstr ""
45
-
46
- #: app/admin/RTMediaAdmin.php:258
47
- msgid "We have released 30+ premium add-ons for rtMedia plugin. Read more about it "
48
- msgstr ""
49
-
50
- #: app/admin/RTMediaAdmin.php:260 app/admin/RTMediaAdmin.php:1612
51
- #: app/admin/RTMediaAdmin.php:1630 app/admin/RTMediaAdmin.php:1648
52
- #: app/admin/RTMediaFormHandler.php:435 app/admin/RTMediaFormHandler.php:446
53
- #: app/helper/RTMediaSettings.php:297 app/helper/RTMediaSupport.php:383
54
- #: app/helper/RTMediaSupport.php:652
55
- msgid "here"
56
  msgstr ""
57
 
58
- #: app/admin/RTMediaAdmin.php:310
59
- msgid "Meet "
60
- msgstr ""
61
-
62
- #: app/admin/RTMediaAdmin.php:313
63
- msgid "rtMedia Social Sync"
64
- msgstr ""
65
-
66
- #: app/admin/RTMediaAdmin.php:315
67
- msgid " which allows you to import media from your Facebook account."
68
  msgstr ""
69
 
70
- #: app/admin/RTMediaAdmin.php:368
71
  msgid "Meet InspireBook"
72
  msgstr ""
73
 
74
- #: app/admin/RTMediaAdmin.php:370
75
  msgid " - First official rtMedia premium theme."
76
  msgstr ""
77
 
78
- #: app/admin/RTMediaAdmin.php:454 app/admin/RTMediaAdmin.php:479
79
  msgid "rtMedia:"
80
  msgstr ""
81
 
82
- #: app/admin/RTMediaAdmin.php:454
83
  msgid " You must"
84
  msgstr ""
85
 
86
- #: app/admin/RTMediaAdmin.php:454
87
  msgid "update permalink structure"
88
  msgstr ""
89
 
90
- #: app/admin/RTMediaAdmin.php:454
91
  msgid "to something other than the default for it to work."
92
  msgstr ""
93
 
94
- #: app/admin/RTMediaAdmin.php:480
95
  msgid "Please update all premium add-ons that you have purchased from"
96
  msgstr ""
97
 
98
- #: app/admin/RTMediaAdmin.php:482
99
  msgid "your account"
100
  msgstr ""
101
 
102
- #: app/admin/RTMediaAdmin.php:484
103
  msgid "Dismiss"
104
  msgstr ""
105
 
106
- #: app/admin/RTMediaAdmin.php:599
107
  msgid "rtMedia Pro is released"
108
  msgstr ""
109
 
110
- #: app/admin/RTMediaAdmin.php:620
111
  msgid "Media Stats"
112
  msgstr ""
113
 
114
- #: app/admin/RTMediaAdmin.php:650
115
  msgid "Usage Stats"
116
  msgstr ""
117
 
118
- #: app/admin/RTMediaAdmin.php:662
119
  msgid "Total "
120
  msgstr ""
121
 
122
- #: app/admin/RTMediaAdmin.php:673
123
  msgid "With Media"
124
  msgstr ""
125
 
126
- #: app/admin/RTMediaAdmin.php:684
127
  msgid "Comments "
128
  msgstr ""
129
 
130
- #: app/admin/RTMediaAdmin.php:695 app/main/controllers/media/RTMediaLike.php:19
131
  msgid "Likes"
132
  msgstr ""
133
 
134
- #: app/admin/RTMediaAdmin.php:705
135
  msgid "rtMedia Links:"
136
  msgstr ""
137
 
138
- #: app/admin/RTMediaAdmin.php:706
139
  msgid "Homepage"
140
  msgstr ""
141
 
142
- #: app/admin/RTMediaAdmin.php:708
143
  msgid "Free Support"
144
  msgstr ""
145
 
146
- #: app/admin/RTMediaAdmin.php:711
147
  msgid "Premium Addons"
148
  msgstr ""
149
 
150
- #: app/admin/RTMediaAdmin.php:728
151
  msgid "Right Now in rtMedia"
152
  msgstr ""
153
 
154
- #: app/admin/RTMediaAdmin.php:763 app/admin/RTMediaAdmin.php:797
155
- #: app/admin/RTMediaAdmin.php:800 app/admin/RTMediaAdmin.php:975
156
- #: app/admin/RTMediaAdmin.php:1322
157
  msgid "Settings"
158
  msgstr ""
159
 
160
- #: app/admin/RTMediaAdmin.php:765 app/admin/RTMediaAdmin.php:821
161
- #: app/admin/RTMediaAdmin.php:824 app/admin/RTMediaAdmin.php:985
162
- #: app/admin/RTMediaAdmin.php:1348 app/helper/RTMediaSettings.php:221
163
  #: app/helper/RTMediaSupport.php:52 app/helper/RTMediaSupport.php:53
164
  msgid "Support"
165
  msgstr ""
166
 
167
- #: app/admin/RTMediaAdmin.php:790 app/admin/RTMediaAdmin.php:1294
168
- #: app/admin/RTMediaAdmin.php:1295 app/importers/RTMediaActivityUpgrade.php:116
169
  #: app/importers/RTMediaMigration.php:68 app/main/RTMedia.php:914
170
  msgid "rtMedia"
171
  msgstr ""
172
 
173
- #: app/admin/RTMediaAdmin.php:809 app/admin/RTMediaAdmin.php:812
174
- #: app/admin/RTMediaAdmin.php:980 app/admin/RTMediaAdmin.php:1327
175
  msgid "Addons"
176
  msgstr ""
177
 
178
- #: app/admin/RTMediaAdmin.php:833 app/admin/RTMediaAdmin.php:836
179
- #: app/admin/RTMediaAdmin.php:991 app/admin/RTMediaAdmin.php:1335
180
  msgid "Themes"
181
  msgstr ""
182
 
183
- #: app/admin/RTMediaAdmin.php:846 app/admin/RTMediaAdmin.php:849
184
- #: app/admin/RTMediaAdmin.php:998 app/admin/RTMediaAdmin.php:1341
185
  msgid "Hire Us"
186
  msgstr ""
187
 
188
- #: app/admin/RTMediaAdmin.php:859 app/admin/RTMediaAdmin.php:862
189
- #: app/admin/RTMediaAdmin.php:1005 app/admin/RTMediaAdmin.php:1355
190
  msgid "Licenses"
191
  msgstr ""
192
 
193
- #: app/admin/RTMediaAdmin.php:913
194
  msgid "ON"
195
  msgstr ""
196
 
197
- #: app/admin/RTMediaAdmin.php:914
198
  msgid "OFF"
199
  msgstr ""
200
 
201
- #: app/admin/RTMediaAdmin.php:920
202
  msgid "Please do not refresh this page."
203
  msgstr ""
204
 
205
- #: app/admin/RTMediaAdmin.php:921
206
  msgid "Something went wrong. Please "
207
  msgstr ""
208
 
209
- #: app/admin/RTMediaAdmin.php:921
210
  msgid "refresh"
211
  msgstr ""
212
 
213
- #: app/admin/RTMediaAdmin.php:921
214
  msgid " page."
215
  msgstr ""
216
 
217
- #: app/admin/RTMediaAdmin.php:922
218
  msgid "This will subscribe you to the free plan."
219
  msgstr ""
220
 
221
- #: app/admin/RTMediaAdmin.php:923
222
  msgid "Are you sure you want to disable the encoding service?"
223
  msgstr ""
224
 
225
- #: app/admin/RTMediaAdmin.php:924
226
  msgid "Are you sure you want to enable the encoding service?"
227
  msgstr ""
228
 
229
- #: app/admin/RTMediaAdmin.php:925
230
  msgid "Settings have changed, you should save them!"
231
  msgstr ""
232
 
233
- #: app/admin/RTMediaAdmin.php:926
234
  msgid ""
235
  "Number of video thumbnails to be generated should be greater than 0 in "
236
  "media sizes settings. Setting it to default value 2."
237
  msgstr ""
238
 
239
- #: app/admin/RTMediaAdmin.php:927
240
  msgid ""
241
  "Invalid value for number of video thumbnails in media sizes settings. "
242
  "Setting it to round value"
243
  msgstr ""
244
 
245
- #: app/admin/RTMediaAdmin.php:928
246
  msgid ""
247
  "Number of percentage in JPEG image quality should be greater than 0 in "
248
  "media sizes settings. Setting it to default value 90."
249
  msgstr ""
250
 
251
- #: app/admin/RTMediaAdmin.php:929
252
  msgid ""
253
  "Number of percentage in JPEG image quality should be less than 100 in media "
254
  "sizes settings. Setting it to 100."
255
  msgstr ""
256
 
257
- #: app/admin/RTMediaAdmin.php:930
258
  msgid ""
259
  "Invalid value for percentage in JPEG image quality in media sizes settings. "
260
  "Setting it to round value"
261
  msgstr ""
262
 
263
- #: app/admin/RTMediaAdmin.php:931
264
  msgid ""
265
  "Please enter positive integer value only. Setting number of media per page "
266
  "value to default value 10."
267
  msgstr ""
268
 
269
- #: app/admin/RTMediaAdmin.php:932
270
  msgid ""
271
  "Please enter positive integer value only. Setting number of media per page "
272
  "value to round value"
273
  msgstr ""
274
 
275
- #: app/admin/RTMediaAdmin.php:933
276
  msgid "Request failed."
277
  msgstr ""
278
 
279
- #: app/admin/RTMediaAdmin.php:941
280
  msgid "Please enter WP Admin Login."
281
  msgstr ""
282
 
283
- #: app/admin/RTMediaAdmin.php:942
284
  msgid "Please enter WP Admin password."
285
  msgstr ""
286
 
287
- #: app/admin/RTMediaAdmin.php:943
288
  msgid "Please enter SSH / FTP host."
289
  msgstr ""
290
 
291
- #: app/admin/RTMediaAdmin.php:944
292
  msgid "Please enter SSH / FTP login."
293
  msgstr ""
294
 
295
- #: app/admin/RTMediaAdmin.php:945
296
  msgid "Please enter SSH / FTP password."
297
  msgstr ""
298
 
299
- #: app/admin/RTMediaAdmin.php:946
300
  msgid "Please fill all the fields."
301
  msgstr ""
302
 
303
- #: app/admin/RTMediaAdmin.php:1176
304
  msgid "Empowering The Web With WordPress"
305
  msgstr ""
306
 
307
- #: app/admin/RTMediaAdmin.php:1197
308
  msgid "Settings saved successfully!"
309
  msgstr ""
310
 
311
- #: app/admin/RTMediaAdmin.php:1203 app/admin/RTMediaAdmin.php:1232
312
  msgid "Save Settings"
313
  msgstr ""
314
 
315
- #: app/admin/RTMediaAdmin.php:1429 app/admin/RTMediaAdmin.php:1430
316
  msgid "Display"
317
  msgstr ""
318
 
319
- #: app/admin/RTMediaAdmin.php:1438
320
  msgid "rtMedia BuddyPress"
321
  msgstr ""
322
 
323
- #: app/admin/RTMediaAdmin.php:1439
324
  msgid "BuddyPress"
325
  msgstr ""
326
 
327
- #: app/admin/RTMediaAdmin.php:1447
328
  msgid "rtMedia Types"
329
  msgstr ""
330
 
331
- #: app/admin/RTMediaAdmin.php:1448
332
  msgid "Types"
333
  msgstr ""
334
 
335
- #: app/admin/RTMediaAdmin.php:1455
336
  msgid "rtMedia Sizes"
337
  msgstr ""
338
 
339
- #: app/admin/RTMediaAdmin.php:1456
340
  msgid "Media Sizes"
341
  msgstr ""
342
 
343
- #: app/admin/RTMediaAdmin.php:1463
344
  msgid "rtMedia Privacy"
345
  msgstr ""
346
 
347
- #: app/admin/RTMediaAdmin.php:1464
348
  #: app/main/controllers/privacy/RTMediaPrivacy.php:417
349
  msgid "Privacy"
350
  msgstr ""
351
 
352
- #: app/admin/RTMediaAdmin.php:1470
353
  msgid "rtMedia Custom CSS"
354
  msgstr ""
355
 
356
- #: app/admin/RTMediaAdmin.php:1471
357
  msgid "Custom CSS"
358
  msgstr ""
359
 
360
- #: app/admin/RTMediaAdmin.php:1480 app/admin/RTMediaAdmin.php:1481
361
  msgid "Other Settings"
362
  msgstr ""
363
 
364
- #: app/admin/RTMediaAdmin.php:1528
365
  msgid "I use @rtMediaWP http://rt.cx/rtmedia on %s"
366
  msgstr ""
367
 
368
- #: app/admin/RTMediaAdmin.php:1530
369
  msgid "Post to Twitter Now"
370
  msgstr ""
371
 
372
- #: app/admin/RTMediaAdmin.php:1530
373
  msgid "Post to Twitter"
374
  msgstr ""
375
 
376
- #: app/admin/RTMediaAdmin.php:1531
377
  msgid "Share on Facebook Now"
378
  msgstr ""
379
 
380
- #: app/admin/RTMediaAdmin.php:1531
381
  msgid "Share on Facebook"
382
  msgstr ""
383
 
384
- #: app/admin/RTMediaAdmin.php:1532
385
  msgid "Rate rtMedia on Wordpress.org"
386
  msgstr ""
387
 
388
- #: app/admin/RTMediaAdmin.php:1532
389
  msgid "Rate on Wordpress.org"
390
  msgstr ""
391
 
392
- #: app/admin/RTMediaAdmin.php:1533
393
  msgid "Subscribe to our Feeds"
394
  msgstr ""
395
 
396
- #: app/admin/RTMediaAdmin.php:1536
397
  msgid "Spread the Word"
398
  msgstr ""
399
 
400
- #: app/admin/RTMediaAdmin.php:1542 app/admin/RTMediaAdmin.php:1549
401
  msgid "Subscribe"
402
  msgstr ""
403
 
404
- #: app/admin/RTMediaAdmin.php:1580
405
  msgid "Thank you for your time."
406
  msgstr ""
407
 
408
- #: app/admin/RTMediaAdmin.php:1593
409
  msgid "Premium Add-ons"
410
  msgstr ""
411
 
412
- #: app/admin/RTMediaAdmin.php:1611
413
  msgid ""
414
  "You have images enabled on rtMedia but your network allowed filetypes do "
415
  "not permit uploading of %s. Click "
416
  msgstr ""
417
 
418
- #: app/admin/RTMediaAdmin.php:1613 app/admin/RTMediaAdmin.php:1631
419
- #: app/admin/RTMediaAdmin.php:1649
 
 
 
 
 
 
 
420
  msgid " to change your settings manually."
421
  msgstr ""
422
 
423
- #: app/admin/RTMediaAdmin.php:1615 app/admin/RTMediaAdmin.php:1633
424
- #: app/admin/RTMediaAdmin.php:1651
425
  msgid "Recommended:"
426
  msgstr ""
427
 
428
- #: app/admin/RTMediaAdmin.php:1616 app/admin/RTMediaAdmin.php:1634
429
- #: app/admin/RTMediaAdmin.php:1652
430
  msgid "Update Network Settings Automatically"
431
  msgstr ""
432
 
433
- #: app/admin/RTMediaAdmin.php:1629
434
  msgid ""
435
  "You have video enabled on BuddyPress Media but your network allowed "
436
  "filetypes do not permit uploading of mp4. Click "
437
  msgstr ""
438
 
439
- #: app/admin/RTMediaAdmin.php:1647
440
  msgid ""
441
  "You have audio enabled on BuddyPress Media but your network allowed "
442
  "filetypes do not permit uploading of mp3. Click "
443
  msgstr ""
444
 
445
- #: app/admin/RTMediaAdmin.php:1668
446
  msgid "Network settings updated successfully."
447
  msgstr ""
448
 
449
- #: app/admin/RTMediaAdmin.php:1721
450
  msgid ""
451
  "Please update rtMedia template files if you have overridden the default "
452
  "rtMedia templates in your theme. If not, you can ignore and hide this "
453
  "notice."
454
  msgstr ""
455
 
456
- #: app/admin/RTMediaAdmin.php:1721
457
  #: app/importers/RTMediaMediaSizeImporter.php:73
458
  #: app/importers/RTMediaMigration.php:68
459
  msgid "Hide"
460
  msgstr ""
461
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  #: app/admin/RTMediaFormHandler.php:61 app/admin/RTMediaFormHandler.php:102
463
  #: app/admin/RTMediaFormHandler.php:195 app/admin/RTMediaFormHandler.php:230
464
  msgid "Please provide a \"value\" in the argument."
@@ -698,99 +697,99 @@ msgstr ""
698
  msgid "Crop"
699
  msgstr ""
700
 
701
- #: app/admin/RTMediaFormHandler.php:811
702
  msgid "JPEG/JPG image quality (1-100)"
703
  msgstr ""
704
 
705
- #: app/admin/RTMediaFormHandler.php:817
706
  msgid "Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality."
707
  msgstr ""
708
 
709
- #: app/admin/RTMediaFormHandler.php:825
710
  msgid "Image Quality"
711
  msgstr ""
712
 
713
- #: app/admin/RTMediaFormHandler.php:847
714
  msgid "Custom CSS settings"
715
  msgstr ""
716
 
717
- #: app/admin/RTMediaFormHandler.php:864
718
  msgid "rtMedia default styles"
719
  msgstr ""
720
 
721
- #: app/admin/RTMediaFormHandler.php:870
722
  msgid ""
723
  "Load default rtMedia styles. You need to write your own style for rtMedia "
724
  "if you disable it."
725
  msgstr ""
726
 
727
- #: app/admin/RTMediaFormHandler.php:875
728
  msgid "Paste your CSS code"
729
  msgstr ""
730
 
731
- #: app/admin/RTMediaFormHandler.php:881
732
  msgid "Custom rtMedia CSS container"
733
  msgstr ""
734
 
735
- #: app/admin/RTMediaFormHandler.php:904
736
  msgid "Enable privacy"
737
  msgstr ""
738
 
739
- #: app/admin/RTMediaFormHandler.php:910
740
  msgid "Enable privacy in rtMedia"
741
  msgstr ""
742
 
743
- #: app/admin/RTMediaFormHandler.php:915
744
  msgid "Default privacy"
745
  msgstr ""
746
 
747
- #: app/admin/RTMediaFormHandler.php:921
748
  msgid "Set default privacy for media"
749
  msgstr ""
750
 
751
- #: app/admin/RTMediaFormHandler.php:927
752
  msgid "Allow users to set privacy for their content"
753
  msgstr ""
754
 
755
- #: app/admin/RTMediaFormHandler.php:932
756
  msgid ""
757
  "If you choose this, users will be able to change privacy of their own "
758
  "uploads."
759
  msgstr ""
760
 
761
- #: app/admin/RTMediaFormHandler.php:936
762
  msgid "For group uploads, BuddyPress groups privacy is used."
763
  msgstr ""
764
 
765
- #: app/admin/RTMediaFormHandler.php:978
766
  msgid "Enable media in profile"
767
  msgstr ""
768
 
769
- #: app/admin/RTMediaFormHandler.php:983
770
  msgid "Enable Media on BuddyPress Profile"
771
  msgstr ""
772
 
773
- #: app/admin/RTMediaFormHandler.php:988
774
  msgid "Enable media in group"
775
  msgstr ""
776
 
777
- #: app/admin/RTMediaFormHandler.php:993
778
  msgid "Enable Media on BuddyPress Groups"
779
  msgstr ""
780
 
781
- #: app/admin/RTMediaFormHandler.php:998
782
  msgid "Allow upload from activity stream"
783
  msgstr ""
784
 
785
- #: app/admin/RTMediaFormHandler.php:1003
786
  msgid "Allow upload using status update box present on activity stream page"
787
  msgstr ""
788
 
789
- #: app/admin/RTMediaFormHandler.php:1009
790
  msgid "Number of media items to show in activity stream"
791
  msgstr ""
792
 
793
- #: app/admin/RTMediaFormHandler.php:1014
794
  msgid ""
795
  "With bulk uploads activity, the stream may get flooded. You can control the "
796
  "maximum number of media items or files per activity. This limit will not "
@@ -798,37 +797,37 @@ msgid ""
798
  "unlimited."
799
  msgstr ""
800
 
801
- #: app/admin/RTMediaFormHandler.php:1021
802
  msgid "Enable media notification"
803
  msgstr ""
804
 
805
- #: app/admin/RTMediaFormHandler.php:1026
806
  msgid ""
807
  "This will enable notifications to media authors for media likes and "
808
  "comments."
809
  msgstr ""
810
 
811
- #: app/admin/RTMediaFormHandler.php:1032
812
  msgid "Create activity for media likes"
813
  msgstr ""
814
 
815
- #: app/admin/RTMediaFormHandler.php:1037
816
  msgid "Enabling this setting will create BuddyPress activity for media likes."
817
  msgstr ""
818
 
819
- #: app/admin/RTMediaFormHandler.php:1043
820
  msgid "Create activity for media comments"
821
  msgstr ""
822
 
823
- #: app/admin/RTMediaFormHandler.php:1048
824
  msgid "Enabling this setting will create BuddyPress activity for media comments."
825
  msgstr ""
826
 
827
- #: app/admin/RTMediaFormHandler.php:1054
828
  msgid "Organize media into albums"
829
  msgstr ""
830
 
831
- #: app/admin/RTMediaFormHandler.php:1060
832
  msgid ""
833
  "This will add 'album' tab to BuddyPress profile and group depending on the "
834
  "^above^ settings."
@@ -1268,32 +1267,69 @@ msgstr ""
1268
  msgid "Posted "
1269
  msgstr ""
1270
 
1271
- #: app/helper/RTMediaLicense.php:56
1272
- msgid "Activated"
1273
  msgstr ""
1274
 
1275
- #: app/helper/RTMediaLicense.php:59
1276
- msgid "Deactivated"
1277
  msgstr ""
1278
 
1279
- #: app/helper/RTMediaLicense.php:69
1280
- msgid "Status: "
1281
  msgstr ""
1282
 
1283
- #: app/helper/RTMediaLicense.php:78
1284
- msgid "License Key"
1285
  msgstr ""
1286
 
1287
- #: app/helper/RTMediaLicense.php:90
1288
- msgid "Activate / Deactivate License"
1289
  msgstr ""
1290
 
1291
- #: app/helper/RTMediaLicense.php:98
1292
- msgid "Deactivate License"
 
 
1293
  msgstr ""
1294
 
1295
- #: app/helper/RTMediaLicense.php:101
1296
- msgid "Activate License"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1297
  msgstr ""
1298
 
1299
  #: app/helper/RTMediaLikeNotification.php:93
@@ -2501,49 +2537,48 @@ msgid "single media"
2501
  msgstr ""
2502
 
2503
  #: app/main/controllers/group/RTMediaGroupExtension.php:30
2504
- #: app/main/controllers/group/RTMediaGroupExtension.php:104
2505
  msgid "Album Creation Control"
2506
  msgstr ""
2507
 
2508
  #: app/main/controllers/group/RTMediaGroupExtension.php:31
2509
- #: app/main/controllers/group/RTMediaGroupExtension.php:105
2510
  msgid "Who can create Albums in this group?"
2511
  msgstr ""
2512
 
2513
  #: app/main/controllers/group/RTMediaGroupExtension.php:35
2514
- #: app/main/controllers/group/RTMediaGroupExtension.php:109
2515
  msgid "All Group Members"
2516
  msgstr ""
2517
 
2518
  #: app/main/controllers/group/RTMediaGroupExtension.php:39
2519
- #: app/main/controllers/group/RTMediaGroupExtension.php:113
2520
  msgid "Group Admins and Mods only"
2521
  msgstr ""
2522
 
2523
  #: app/main/controllers/group/RTMediaGroupExtension.php:43
2524
- #: app/main/controllers/group/RTMediaGroupExtension.php:117
2525
  msgid "Group Admin only"
2526
  msgstr ""
2527
 
2528
- #: app/main/controllers/group/RTMediaGroupExtension.php:125
2529
  #: app/main/controllers/privacy/RTMediaPrivacy.php:409
2530
  #: templates/media/album-single-edit.php:55
2531
  msgid "Save Changes"
2532
  msgstr ""
2533
 
2534
- #: app/main/controllers/group/RTMediaGroupExtension.php:171
2535
  msgid "There was an error saving, please try again"
2536
  msgstr ""
2537
 
2538
- #: app/main/controllers/group/RTMediaGroupExtension.php:173
2539
  msgid "Settings saved successfully"
2540
  msgstr ""
2541
 
2542
- #: app/main/controllers/group/RTMediaGroupExtension.php:194
2543
  msgid ""
2544
  "You could display a small snippet of information from your group extension "
2545
- "here. It will show on the group\n"
2546
- "\t home screen."
2547
  msgstr ""
2548
 
2549
  #: app/main/controllers/media/RTMediaAlbum.php:36
@@ -2605,7 +2640,7 @@ msgstr ""
2605
 
2606
  #: app/main/controllers/media/RTMediaFeatured.php:27
2607
  #: app/main/controllers/media/RTMediaGroupFeatured.php:19
2608
- msgid "Unset Featured"
2609
  msgstr ""
2610
 
2611
  #: app/main/controllers/media/RTMediaFeatured.php:193
@@ -2710,18 +2745,18 @@ msgstr ""
2710
  msgid "Invalid attribute passed for rtmedia_gallery shortcode."
2711
  msgstr ""
2712
 
2713
- #: app/main/controllers/template/RTMediaTemplate.php:348
2714
- #: app/main/controllers/template/RTMediaTemplate.php:441
2715
- #: app/main/controllers/template/RTMediaTemplate.php:539
2716
- #: app/main/controllers/template/RTMediaTemplate.php:675
2717
  msgid "Ooops !!! Invalid access. No nonce was found !!"
2718
  msgstr ""
2719
 
2720
- #: app/main/controllers/template/RTMediaTemplate.php:355
2721
  msgid "Media updated Sucessfully"
2722
  msgstr ""
2723
 
2724
- #: app/main/controllers/template/RTMediaTemplate.php:361
2725
  msgid "Error in updating Media"
2726
  msgstr ""
2727
 
2
  # This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.1.7\n"
6
  "Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
7
+ "POT-Creation-Date: 2016-10-05 06:12:22+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
24
  "X-Poedit-Bookmarks: \n"
25
  "X-Textdomain-Support: yes\n"
26
 
27
+ #: app/admin/RTMediaAdmin.php:147
28
  msgid ""
29
  "Install <a href=\"https://wordpress.org/plugins/transcoder/\" "
30
  "target=\"_blank\">Transcoder plugin</a> to convert audio/video files and "
31
  "thumbnails generation."
32
  msgstr ""
33
 
34
+ #: app/admin/RTMediaAdmin.php:193
35
  msgid "View &#8220;%s&#8221;"
36
  msgstr ""
37
 
38
+ #: app/admin/RTMediaAdmin.php:193
39
  msgid "View"
40
  msgstr ""
41
 
42
+ #: app/admin/RTMediaAdmin.php:259
43
+ msgid "Check 30+ premium rtMedia add-ons on our <a href=\"%s\">store</a>."
 
 
 
 
 
 
 
 
 
 
 
 
44
  msgstr ""
45
 
46
+ #: app/admin/RTMediaAdmin.php:262
47
+ msgid "rtMedia: "
 
 
 
 
 
 
 
 
48
  msgstr ""
49
 
50
+ #: app/admin/RTMediaAdmin.php:317
51
  msgid "Meet InspireBook"
52
  msgstr ""
53
 
54
+ #: app/admin/RTMediaAdmin.php:319
55
  msgid " - First official rtMedia premium theme."
56
  msgstr ""
57
 
58
+ #: app/admin/RTMediaAdmin.php:403 app/admin/RTMediaAdmin.php:428
59
  msgid "rtMedia:"
60
  msgstr ""
61
 
62
+ #: app/admin/RTMediaAdmin.php:403
63
  msgid " You must"
64
  msgstr ""
65
 
66
+ #: app/admin/RTMediaAdmin.php:403
67
  msgid "update permalink structure"
68
  msgstr ""
69
 
70
+ #: app/admin/RTMediaAdmin.php:403
71
  msgid "to something other than the default for it to work."
72
  msgstr ""
73
 
74
+ #: app/admin/RTMediaAdmin.php:429
75
  msgid "Please update all premium add-ons that you have purchased from"
76
  msgstr ""
77
 
78
+ #: app/admin/RTMediaAdmin.php:431
79
  msgid "your account"
80
  msgstr ""
81
 
82
+ #: app/admin/RTMediaAdmin.php:433
83
  msgid "Dismiss"
84
  msgstr ""
85
 
86
+ #: app/admin/RTMediaAdmin.php:548
87
  msgid "rtMedia Pro is released"
88
  msgstr ""
89
 
90
+ #: app/admin/RTMediaAdmin.php:569
91
  msgid "Media Stats"
92
  msgstr ""
93
 
94
+ #: app/admin/RTMediaAdmin.php:599
95
  msgid "Usage Stats"
96
  msgstr ""
97
 
98
+ #: app/admin/RTMediaAdmin.php:611
99
  msgid "Total "
100
  msgstr ""
101
 
102
+ #: app/admin/RTMediaAdmin.php:622
103
  msgid "With Media"
104
  msgstr ""
105
 
106
+ #: app/admin/RTMediaAdmin.php:633
107
  msgid "Comments "
108
  msgstr ""
109
 
110
+ #: app/admin/RTMediaAdmin.php:644 app/main/controllers/media/RTMediaLike.php:19
111
  msgid "Likes"
112
  msgstr ""
113
 
114
+ #: app/admin/RTMediaAdmin.php:654
115
  msgid "rtMedia Links:"
116
  msgstr ""
117
 
118
+ #: app/admin/RTMediaAdmin.php:655
119
  msgid "Homepage"
120
  msgstr ""
121
 
122
+ #: app/admin/RTMediaAdmin.php:657
123
  msgid "Free Support"
124
  msgstr ""
125
 
126
+ #: app/admin/RTMediaAdmin.php:660
127
  msgid "Premium Addons"
128
  msgstr ""
129
 
130
+ #: app/admin/RTMediaAdmin.php:677
131
  msgid "Right Now in rtMedia"
132
  msgstr ""
133
 
134
+ #: app/admin/RTMediaAdmin.php:712 app/admin/RTMediaAdmin.php:746
135
+ #: app/admin/RTMediaAdmin.php:749 app/admin/RTMediaAdmin.php:924
136
+ #: app/admin/RTMediaAdmin.php:1271
137
  msgid "Settings"
138
  msgstr ""
139
 
140
+ #: app/admin/RTMediaAdmin.php:714 app/admin/RTMediaAdmin.php:770
141
+ #: app/admin/RTMediaAdmin.php:773 app/admin/RTMediaAdmin.php:934
142
+ #: app/admin/RTMediaAdmin.php:1297 app/helper/RTMediaSettings.php:221
143
  #: app/helper/RTMediaSupport.php:52 app/helper/RTMediaSupport.php:53
144
  msgid "Support"
145
  msgstr ""
146
 
147
+ #: app/admin/RTMediaAdmin.php:739 app/admin/RTMediaAdmin.php:1243
148
+ #: app/admin/RTMediaAdmin.php:1244 app/importers/RTMediaActivityUpgrade.php:116
149
  #: app/importers/RTMediaMigration.php:68 app/main/RTMedia.php:914
150
  msgid "rtMedia"
151
  msgstr ""
152
 
153
+ #: app/admin/RTMediaAdmin.php:758 app/admin/RTMediaAdmin.php:761
154
+ #: app/admin/RTMediaAdmin.php:929 app/admin/RTMediaAdmin.php:1276
155
  msgid "Addons"
156
  msgstr ""
157
 
158
+ #: app/admin/RTMediaAdmin.php:782 app/admin/RTMediaAdmin.php:785
159
+ #: app/admin/RTMediaAdmin.php:940 app/admin/RTMediaAdmin.php:1284
160
  msgid "Themes"
161
  msgstr ""
162
 
163
+ #: app/admin/RTMediaAdmin.php:795 app/admin/RTMediaAdmin.php:798
164
+ #: app/admin/RTMediaAdmin.php:947 app/admin/RTMediaAdmin.php:1290
165
  msgid "Hire Us"
166
  msgstr ""
167
 
168
+ #: app/admin/RTMediaAdmin.php:808 app/admin/RTMediaAdmin.php:811
169
+ #: app/admin/RTMediaAdmin.php:954 app/admin/RTMediaAdmin.php:1304
170
  msgid "Licenses"
171
  msgstr ""
172
 
173
+ #: app/admin/RTMediaAdmin.php:862
174
  msgid "ON"
175
  msgstr ""
176
 
177
+ #: app/admin/RTMediaAdmin.php:863
178
  msgid "OFF"
179
  msgstr ""
180
 
181
+ #: app/admin/RTMediaAdmin.php:869
182
  msgid "Please do not refresh this page."
183
  msgstr ""
184
 
185
+ #: app/admin/RTMediaAdmin.php:870
186
  msgid "Something went wrong. Please "
187
  msgstr ""
188
 
189
+ #: app/admin/RTMediaAdmin.php:870
190
  msgid "refresh"
191
  msgstr ""
192
 
193
+ #: app/admin/RTMediaAdmin.php:870
194
  msgid " page."
195
  msgstr ""
196
 
197
+ #: app/admin/RTMediaAdmin.php:871
198
  msgid "This will subscribe you to the free plan."
199
  msgstr ""
200
 
201
+ #: app/admin/RTMediaAdmin.php:872
202
  msgid "Are you sure you want to disable the encoding service?"
203
  msgstr ""
204
 
205
+ #: app/admin/RTMediaAdmin.php:873
206
  msgid "Are you sure you want to enable the encoding service?"
207
  msgstr ""
208
 
209
+ #: app/admin/RTMediaAdmin.php:874
210
  msgid "Settings have changed, you should save them!"
211
  msgstr ""
212
 
213
+ #: app/admin/RTMediaAdmin.php:875
214
  msgid ""
215
  "Number of video thumbnails to be generated should be greater than 0 in "
216
  "media sizes settings. Setting it to default value 2."
217
  msgstr ""
218
 
219
+ #: app/admin/RTMediaAdmin.php:876
220
  msgid ""
221
  "Invalid value for number of video thumbnails in media sizes settings. "
222
  "Setting it to round value"
223
  msgstr ""
224
 
225
+ #: app/admin/RTMediaAdmin.php:877
226
  msgid ""
227
  "Number of percentage in JPEG image quality should be greater than 0 in "
228
  "media sizes settings. Setting it to default value 90."
229
  msgstr ""
230
 
231
+ #: app/admin/RTMediaAdmin.php:878
232
  msgid ""
233
  "Number of percentage in JPEG image quality should be less than 100 in media "
234
  "sizes settings. Setting it to 100."
235
  msgstr ""
236
 
237
+ #: app/admin/RTMediaAdmin.php:879
238
  msgid ""
239
  "Invalid value for percentage in JPEG image quality in media sizes settings. "
240
  "Setting it to round value"
241
  msgstr ""
242
 
243
+ #: app/admin/RTMediaAdmin.php:880
244
  msgid ""
245
  "Please enter positive integer value only. Setting number of media per page "
246
  "value to default value 10."
247
  msgstr ""
248
 
249
+ #: app/admin/RTMediaAdmin.php:881
250
  msgid ""
251
  "Please enter positive integer value only. Setting number of media per page "
252
  "value to round value"
253
  msgstr ""
254
 
255
+ #: app/admin/RTMediaAdmin.php:882
256
  msgid "Request failed."
257
  msgstr ""
258
 
259
+ #: app/admin/RTMediaAdmin.php:890
260
  msgid "Please enter WP Admin Login."
261
  msgstr ""
262
 
263
+ #: app/admin/RTMediaAdmin.php:891
264
  msgid "Please enter WP Admin password."
265
  msgstr ""
266
 
267
+ #: app/admin/RTMediaAdmin.php:892
268
  msgid "Please enter SSH / FTP host."
269
  msgstr ""
270
 
271
+ #: app/admin/RTMediaAdmin.php:893
272
  msgid "Please enter SSH / FTP login."
273
  msgstr ""
274
 
275
+ #: app/admin/RTMediaAdmin.php:894
276
  msgid "Please enter SSH / FTP password."
277
  msgstr ""
278
 
279
+ #: app/admin/RTMediaAdmin.php:895
280
  msgid "Please fill all the fields."
281
  msgstr ""
282
 
283
+ #: app/admin/RTMediaAdmin.php:1125
284
  msgid "Empowering The Web With WordPress"
285
  msgstr ""
286
 
287
+ #: app/admin/RTMediaAdmin.php:1146
288
  msgid "Settings saved successfully!"
289
  msgstr ""
290
 
291
+ #: app/admin/RTMediaAdmin.php:1152 app/admin/RTMediaAdmin.php:1181
292
  msgid "Save Settings"
293
  msgstr ""
294
 
295
+ #: app/admin/RTMediaAdmin.php:1378 app/admin/RTMediaAdmin.php:1379
296
  msgid "Display"
297
  msgstr ""
298
 
299
+ #: app/admin/RTMediaAdmin.php:1387
300
  msgid "rtMedia BuddyPress"
301
  msgstr ""
302
 
303
+ #: app/admin/RTMediaAdmin.php:1388
304
  msgid "BuddyPress"
305
  msgstr ""
306
 
307
+ #: app/admin/RTMediaAdmin.php:1396
308
  msgid "rtMedia Types"
309
  msgstr ""
310
 
311
+ #: app/admin/RTMediaAdmin.php:1397
312
  msgid "Types"
313
  msgstr ""
314
 
315
+ #: app/admin/RTMediaAdmin.php:1404
316
  msgid "rtMedia Sizes"
317
  msgstr ""
318
 
319
+ #: app/admin/RTMediaAdmin.php:1405
320
  msgid "Media Sizes"
321
  msgstr ""
322
 
323
+ #: app/admin/RTMediaAdmin.php:1412
324
  msgid "rtMedia Privacy"
325
  msgstr ""
326
 
327
+ #: app/admin/RTMediaAdmin.php:1413
328
  #: app/main/controllers/privacy/RTMediaPrivacy.php:417
329
  msgid "Privacy"
330
  msgstr ""
331
 
332
+ #: app/admin/RTMediaAdmin.php:1419
333
  msgid "rtMedia Custom CSS"
334
  msgstr ""
335
 
336
+ #: app/admin/RTMediaAdmin.php:1420
337
  msgid "Custom CSS"
338
  msgstr ""
339
 
340
+ #: app/admin/RTMediaAdmin.php:1429 app/admin/RTMediaAdmin.php:1430
341
  msgid "Other Settings"
342
  msgstr ""
343
 
344
+ #: app/admin/RTMediaAdmin.php:1477
345
  msgid "I use @rtMediaWP http://rt.cx/rtmedia on %s"
346
  msgstr ""
347
 
348
+ #: app/admin/RTMediaAdmin.php:1479
349
  msgid "Post to Twitter Now"
350
  msgstr ""
351
 
352
+ #: app/admin/RTMediaAdmin.php:1479
353
  msgid "Post to Twitter"
354
  msgstr ""
355
 
356
+ #: app/admin/RTMediaAdmin.php:1480
357
  msgid "Share on Facebook Now"
358
  msgstr ""
359
 
360
+ #: app/admin/RTMediaAdmin.php:1480
361
  msgid "Share on Facebook"
362
  msgstr ""
363
 
364
+ #: app/admin/RTMediaAdmin.php:1481
365
  msgid "Rate rtMedia on Wordpress.org"
366
  msgstr ""
367
 
368
+ #: app/admin/RTMediaAdmin.php:1481
369
  msgid "Rate on Wordpress.org"
370
  msgstr ""
371
 
372
+ #: app/admin/RTMediaAdmin.php:1482
373
  msgid "Subscribe to our Feeds"
374
  msgstr ""
375
 
376
+ #: app/admin/RTMediaAdmin.php:1485
377
  msgid "Spread the Word"
378
  msgstr ""
379
 
380
+ #: app/admin/RTMediaAdmin.php:1491 app/admin/RTMediaAdmin.php:1498
381
  msgid "Subscribe"
382
  msgstr ""
383
 
384
+ #: app/admin/RTMediaAdmin.php:1529
385
  msgid "Thank you for your time."
386
  msgstr ""
387
 
388
+ #: app/admin/RTMediaAdmin.php:1542
389
  msgid "Premium Add-ons"
390
  msgstr ""
391
 
392
+ #: app/admin/RTMediaAdmin.php:1560
393
  msgid ""
394
  "You have images enabled on rtMedia but your network allowed filetypes do "
395
  "not permit uploading of %s. Click "
396
  msgstr ""
397
 
398
+ #: app/admin/RTMediaAdmin.php:1561 app/admin/RTMediaAdmin.php:1579
399
+ #: app/admin/RTMediaAdmin.php:1597 app/admin/RTMediaFormHandler.php:435
400
+ #: app/admin/RTMediaFormHandler.php:446 app/helper/RTMediaSettings.php:297
401
+ #: app/helper/RTMediaSupport.php:383 app/helper/RTMediaSupport.php:652
402
+ msgid "here"
403
+ msgstr ""
404
+
405
+ #: app/admin/RTMediaAdmin.php:1562 app/admin/RTMediaAdmin.php:1580
406
+ #: app/admin/RTMediaAdmin.php:1598
407
  msgid " to change your settings manually."
408
  msgstr ""
409
 
410
+ #: app/admin/RTMediaAdmin.php:1564 app/admin/RTMediaAdmin.php:1582
411
+ #: app/admin/RTMediaAdmin.php:1600
412
  msgid "Recommended:"
413
  msgstr ""
414
 
415
+ #: app/admin/RTMediaAdmin.php:1565 app/admin/RTMediaAdmin.php:1583
416
+ #: app/admin/RTMediaAdmin.php:1601
417
  msgid "Update Network Settings Automatically"
418
  msgstr ""
419
 
420
+ #: app/admin/RTMediaAdmin.php:1578
421
  msgid ""
422
  "You have video enabled on BuddyPress Media but your network allowed "
423
  "filetypes do not permit uploading of mp4. Click "
424
  msgstr ""
425
 
426
+ #: app/admin/RTMediaAdmin.php:1596
427
  msgid ""
428
  "You have audio enabled on BuddyPress Media but your network allowed "
429
  "filetypes do not permit uploading of mp3. Click "
430
  msgstr ""
431
 
432
+ #: app/admin/RTMediaAdmin.php:1617
433
  msgid "Network settings updated successfully."
434
  msgstr ""
435
 
436
+ #: app/admin/RTMediaAdmin.php:1670
437
  msgid ""
438
  "Please update rtMedia template files if you have overridden the default "
439
  "rtMedia templates in your theme. If not, you can ignore and hide this "
440
  "notice."
441
  msgstr ""
442
 
443
+ #: app/admin/RTMediaAdmin.php:1670
444
  #: app/importers/RTMediaMediaSizeImporter.php:73
445
  #: app/importers/RTMediaMigration.php:68
446
  msgid "Hide"
447
  msgstr ""
448
 
449
+ #: app/admin/RTMediaAdmin.php:1810
450
+ msgid ""
451
+ "Your license keys can be found on <a href=\"%s\">my-account</a> page. For "
452
+ "more details, please refer to <a href=\"%s\">License documentation</a> page."
453
+ msgstr ""
454
+
455
+ #: app/admin/RTMediaAdmin.php:1827
456
+ msgid ""
457
+ "We found an invalid or expired license key for an rtMedia add-on. Please go "
458
+ "to the <a href=\"%s\">Licenses page</a> to fix this issue."
459
+ msgstr ""
460
+
461
  #: app/admin/RTMediaFormHandler.php:61 app/admin/RTMediaFormHandler.php:102
462
  #: app/admin/RTMediaFormHandler.php:195 app/admin/RTMediaFormHandler.php:230
463
  msgid "Please provide a \"value\" in the argument."
697
  msgid "Crop"
698
  msgstr ""
699
 
700
+ #: app/admin/RTMediaFormHandler.php:812
701
  msgid "JPEG/JPG image quality (1-100)"
702
  msgstr ""
703
 
704
+ #: app/admin/RTMediaFormHandler.php:818
705
  msgid "Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality."
706
  msgstr ""
707
 
708
+ #: app/admin/RTMediaFormHandler.php:826
709
  msgid "Image Quality"
710
  msgstr ""
711
 
712
+ #: app/admin/RTMediaFormHandler.php:848
713
  msgid "Custom CSS settings"
714
  msgstr ""
715
 
716
+ #: app/admin/RTMediaFormHandler.php:865
717
  msgid "rtMedia default styles"
718
  msgstr ""
719
 
720
+ #: app/admin/RTMediaFormHandler.php:871
721
  msgid ""
722
  "Load default rtMedia styles. You need to write your own style for rtMedia "
723
  "if you disable it."
724
  msgstr ""
725
 
726
+ #: app/admin/RTMediaFormHandler.php:876
727
  msgid "Paste your CSS code"
728
  msgstr ""
729
 
730
+ #: app/admin/RTMediaFormHandler.php:882
731
  msgid "Custom rtMedia CSS container"
732
  msgstr ""
733
 
734
+ #: app/admin/RTMediaFormHandler.php:905
735
  msgid "Enable privacy"
736
  msgstr ""
737
 
738
+ #: app/admin/RTMediaFormHandler.php:911
739
  msgid "Enable privacy in rtMedia"
740
  msgstr ""
741
 
742
+ #: app/admin/RTMediaFormHandler.php:916
743
  msgid "Default privacy"
744
  msgstr ""
745
 
746
+ #: app/admin/RTMediaFormHandler.php:922
747
  msgid "Set default privacy for media"
748
  msgstr ""
749
 
750
+ #: app/admin/RTMediaFormHandler.php:928
751
  msgid "Allow users to set privacy for their content"
752
  msgstr ""
753
 
754
+ #: app/admin/RTMediaFormHandler.php:933
755
  msgid ""
756
  "If you choose this, users will be able to change privacy of their own "
757
  "uploads."
758
  msgstr ""
759
 
760
+ #: app/admin/RTMediaFormHandler.php:937
761
  msgid "For group uploads, BuddyPress groups privacy is used."
762
  msgstr ""
763
 
764
+ #: app/admin/RTMediaFormHandler.php:979
765
  msgid "Enable media in profile"
766
  msgstr ""
767
 
768
+ #: app/admin/RTMediaFormHandler.php:984
769
  msgid "Enable Media on BuddyPress Profile"
770
  msgstr ""
771
 
772
+ #: app/admin/RTMediaFormHandler.php:989
773
  msgid "Enable media in group"
774
  msgstr ""
775
 
776
+ #: app/admin/RTMediaFormHandler.php:994
777
  msgid "Enable Media on BuddyPress Groups"
778
  msgstr ""
779
 
780
+ #: app/admin/RTMediaFormHandler.php:999
781
  msgid "Allow upload from activity stream"
782
  msgstr ""
783
 
784
+ #: app/admin/RTMediaFormHandler.php:1004
785
  msgid "Allow upload using status update box present on activity stream page"
786
  msgstr ""
787
 
788
+ #: app/admin/RTMediaFormHandler.php:1010
789
  msgid "Number of media items to show in activity stream"
790
  msgstr ""
791
 
792
+ #: app/admin/RTMediaFormHandler.php:1015
793
  msgid ""
794
  "With bulk uploads activity, the stream may get flooded. You can control the "
795
  "maximum number of media items or files per activity. This limit will not "
797
  "unlimited."
798
  msgstr ""
799
 
800
+ #: app/admin/RTMediaFormHandler.php:1022
801
  msgid "Enable media notification"
802
  msgstr ""
803
 
804
+ #: app/admin/RTMediaFormHandler.php:1027
805
  msgid ""
806
  "This will enable notifications to media authors for media likes and "
807
  "comments."
808
  msgstr ""
809
 
810
+ #: app/admin/RTMediaFormHandler.php:1033
811
  msgid "Create activity for media likes"
812
  msgstr ""
813
 
814
+ #: app/admin/RTMediaFormHandler.php:1038
815
  msgid "Enabling this setting will create BuddyPress activity for media likes."
816
  msgstr ""
817
 
818
+ #: app/admin/RTMediaFormHandler.php:1044
819
  msgid "Create activity for media comments"
820
  msgstr ""
821
 
822
+ #: app/admin/RTMediaFormHandler.php:1049
823
  msgid "Enabling this setting will create BuddyPress activity for media comments."
824
  msgstr ""
825
 
826
+ #: app/admin/RTMediaFormHandler.php:1055
827
  msgid "Organize media into albums"
828
  msgstr ""
829
 
830
+ #: app/admin/RTMediaFormHandler.php:1061
831
  msgid ""
832
  "This will add 'album' tab to BuddyPress profile and group depending on the "
833
  "^above^ settings."
1267
  msgid "Posted "
1268
  msgstr ""
1269
 
1270
+ #: app/helper/RTMediaLicense.php:53
1271
+ msgid "You may be interested in"
1272
  msgstr ""
1273
 
1274
+ #: app/helper/RTMediaLicense.php:53
1275
+ msgid "rtMedia Addons"
1276
  msgstr ""
1277
 
1278
+ #: app/helper/RTMediaLicense.php:83
1279
+ msgid "Deactivate License"
1280
  msgstr ""
1281
 
1282
+ #: app/helper/RTMediaLicense.php:86
1283
+ msgid "Activate License"
1284
  msgstr ""
1285
 
1286
+ #: app/helper/RTMediaLicense.php:126
1287
+ msgid "Your license key expired on %1$s. Please renew your license key."
1288
  msgstr ""
1289
 
1290
+ #: app/helper/RTMediaLicense.php:137
1291
+ msgid ""
1292
+ "Your license key has been disabled. Please contact support for more "
1293
+ "information."
1294
  msgstr ""
1295
 
1296
+ #: app/helper/RTMediaLicense.php:147
1297
+ msgid ""
1298
+ "Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
1299
+ "page</a> and verify it."
1300
+ msgstr ""
1301
+
1302
+ #: app/helper/RTMediaLicense.php:159
1303
+ msgid ""
1304
+ "Your %1$s is not active for this URL. Please <a href=\"%2$s\" "
1305
+ "target=\"_blank\">visit your account page</a> to manage your license key "
1306
+ "URLs."
1307
+ msgstr ""
1308
+
1309
+ #: app/helper/RTMediaLicense.php:171
1310
+ msgid "This appears to be an invalid license key for %s."
1311
+ msgstr ""
1312
+
1313
+ #: app/helper/RTMediaLicense.php:180
1314
+ msgid ""
1315
+ "Your license key has reached its activation limit. <a href=\"%s\">View "
1316
+ "possible upgrades</a> now."
1317
+ msgstr ""
1318
+
1319
+ #: app/helper/RTMediaLicense.php:205
1320
+ msgid "License key never expires."
1321
+ msgstr ""
1322
+
1323
+ #: app/helper/RTMediaLicense.php:214
1324
+ msgid "Your license key expires soon! It expires on %1$s. Renew your license key."
1325
+ msgstr ""
1326
+
1327
+ #: app/helper/RTMediaLicense.php:225
1328
+ msgid "Your license key expires on %s."
1329
+ msgstr ""
1330
+
1331
+ #: app/helper/RTMediaLicense.php:240
1332
+ msgid "To receive updates, please enter your valid license key."
1333
  msgstr ""
1334
 
1335
  #: app/helper/RTMediaLikeNotification.php:93
2537
  msgstr ""
2538
 
2539
  #: app/main/controllers/group/RTMediaGroupExtension.php:30
2540
+ #: app/main/controllers/group/RTMediaGroupExtension.php:109
2541
  msgid "Album Creation Control"
2542
  msgstr ""
2543
 
2544
  #: app/main/controllers/group/RTMediaGroupExtension.php:31
2545
+ #: app/main/controllers/group/RTMediaGroupExtension.php:110
2546
  msgid "Who can create Albums in this group?"
2547
  msgstr ""
2548
 
2549
  #: app/main/controllers/group/RTMediaGroupExtension.php:35
2550
+ #: app/main/controllers/group/RTMediaGroupExtension.php:114
2551
  msgid "All Group Members"
2552
  msgstr ""
2553
 
2554
  #: app/main/controllers/group/RTMediaGroupExtension.php:39
2555
+ #: app/main/controllers/group/RTMediaGroupExtension.php:118
2556
  msgid "Group Admins and Mods only"
2557
  msgstr ""
2558
 
2559
  #: app/main/controllers/group/RTMediaGroupExtension.php:43
2560
+ #: app/main/controllers/group/RTMediaGroupExtension.php:122
2561
  msgid "Group Admin only"
2562
  msgstr ""
2563
 
2564
+ #: app/main/controllers/group/RTMediaGroupExtension.php:130
2565
  #: app/main/controllers/privacy/RTMediaPrivacy.php:409
2566
  #: templates/media/album-single-edit.php:55
2567
  msgid "Save Changes"
2568
  msgstr ""
2569
 
2570
+ #: app/main/controllers/group/RTMediaGroupExtension.php:182
2571
  msgid "There was an error saving, please try again"
2572
  msgstr ""
2573
 
2574
+ #: app/main/controllers/group/RTMediaGroupExtension.php:184
2575
  msgid "Settings saved successfully"
2576
  msgstr ""
2577
 
2578
+ #: app/main/controllers/group/RTMediaGroupExtension.php:205
2579
  msgid ""
2580
  "You could display a small snippet of information from your group extension "
2581
+ "here. It will show on the group home screen."
 
2582
  msgstr ""
2583
 
2584
  #: app/main/controllers/media/RTMediaAlbum.php:36
2640
 
2641
  #: app/main/controllers/media/RTMediaFeatured.php:27
2642
  #: app/main/controllers/media/RTMediaGroupFeatured.php:19
2643
+ msgid "Remove Featured"
2644
  msgstr ""
2645
 
2646
  #: app/main/controllers/media/RTMediaFeatured.php:193
2745
  msgid "Invalid attribute passed for rtmedia_gallery shortcode."
2746
  msgstr ""
2747
 
2748
+ #: app/main/controllers/template/RTMediaTemplate.php:352
2749
+ #: app/main/controllers/template/RTMediaTemplate.php:445
2750
+ #: app/main/controllers/template/RTMediaTemplate.php:543
2751
+ #: app/main/controllers/template/RTMediaTemplate.php:679
2752
  msgid "Ooops !!! Invalid access. No nonce was found !!"
2753
  msgstr ""
2754
 
2755
+ #: app/main/controllers/template/RTMediaTemplate.php:359
2756
  msgid "Media updated Sucessfully"
2757
  msgstr ""
2758
 
2759
+ #: app/main/controllers/template/RTMediaTemplate.php:365
2760
  msgid "Error in updating Media"
2761
  msgstr ""
2762
 
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 4.1
8
  Tested up to: 4.6.1
9
- Stable tag: 4.1.6
10
 
11
  Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
12
 
@@ -135,6 +135,18 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
135
 
136
  == Changelog ==
137
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  = 4.1.6 [Sep 26, 2016] =
139
  * Fix broken UI when image information is edited/updated
140
  * Fix issue related to media sorting
@@ -1231,9 +1243,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
1231
 
1232
  == Upgrade Notice ==
1233
 
1234
- = 4.1.6 =
1235
- Requires BuddyPress 1.7 or higher, if using BuddyPress. Added filters to alter the image/video URLS in activity. Fixed broken UI when image information is edited/updated also fixed issue related to media sorting
1236
- and playlist settings not getting saved in groups.
1237
 
1238
  == Sponsors ==
1239
 
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: WordPress 4.1
8
  Tested up to: 4.6.1
9
+ Stable tag: 4.1.8
10
 
11
  Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
12
 
135
 
136
  == Changelog ==
137
 
138
+ = 4.1.8 [Oct 05, 2016] =
139
+ * Fix fatal error for older PHP version
140
+
141
+ = 4.1.7 [Oct 05, 2016] =
142
+ * Change the UI of addons license tab
143
+ * Update the notice messages
144
+ * Check for the valid URL structure for compatibility with multisite
145
+ * Change string UNSET to REMOVE to improve the translation
146
+ * Fix UI/media broken on activity page
147
+ * Fix the scroll bar on the media pop screen
148
+ * Fix save settings button of manage media in group
149
+
150
  = 4.1.6 [Sep 26, 2016] =
151
  * Fix broken UI when image information is edited/updated
152
  * Fix issue related to media sorting
1243
 
1244
  == Upgrade Notice ==
1245
 
1246
+ = 4.1.8 =
1247
+ Requires BuddyPress 1.7 or higher, if using BuddyPress. Added filters to alter the image/video URLS in activity. Fix UI/media broken on activity page also fixed the fixed fatal error for older PHP version.
 
1248
 
1249
  == Sponsors ==
1250
 
templates/media/album-gallery-item.php CHANGED
@@ -38,4 +38,4 @@ if ( isset( $is_edit_allowed[0] ) ) {
38
 
39
  </a>
40
  <?php do_action( 'rtmedia_after_album_gallery_item' ) ?>
41
- </li>
38
 
39
  </a>
40
  <?php do_action( 'rtmedia_after_album_gallery_item' ) ?>
41
+ </li> <!-- End of .rtmedia-list-item -->
templates/media/media-single.php CHANGED
@@ -38,7 +38,7 @@
38
 
39
  <?php if ( rtmedia_album_name() ) { ?>
40
  <span class="rtmedia-album-name">
41
- <span>&nbsp;<?php echo $media_under = apply_filters( 'rtmedia_update_under_album_text', esc_html__( 'under', 'buddypress-media' )); ?></span>
42
  <a href="<?php rtmedia_album_permalink(); ?>"
43
  title="<?php echo esc_attr( rtmedia_album_name() ); ?>"><?php echo esc_html( rtmedia_album_name() ); ?></a>
44
  </span>
@@ -54,7 +54,7 @@
54
  </div>
55
 
56
  <div class="rtmedia-single-meta rtm-single-meta">
57
-
58
  <?php if ( $rt_ajax_request ) { ?>
59
 
60
  <div class="rtm-single-meta-contents<?php if ( is_user_logged_in() ) {
@@ -159,6 +159,7 @@
159
  <?php } ?>
160
  <?php } ?>
161
  </div>
 
162
 
163
  <?php else : ?>
164
  <p class="rtmedia-no-media-found"><?php
38
 
39
  <?php if ( rtmedia_album_name() ) { ?>
40
  <span class="rtmedia-album-name">
41
+ <span>&nbsp;<?php echo $media_under = apply_filters( 'rtmedia_update_under_album_text', esc_html__( 'under', 'buddypress-media' ) ); ?></span>
42
  <a href="<?php rtmedia_album_permalink(); ?>"
43
  title="<?php echo esc_attr( rtmedia_album_name() ); ?>"><?php echo esc_html( rtmedia_album_name() ); ?></a>
44
  </span>
54
  </div>
55
 
56
  <div class="rtmedia-single-meta rtm-single-meta">
57
+ <div class="rtmedia-scroll">
58
  <?php if ( $rt_ajax_request ) { ?>
59
 
60
  <div class="rtm-single-meta-contents<?php if ( is_user_logged_in() ) {
159
  <?php } ?>
160
  <?php } ?>
161
  </div>
162
+ </div>
163
 
164
  <?php else : ?>
165
  <p class="rtmedia-no-media-found"><?php