rtMedia for WordPress, BuddyPress and bbPress - Version 4.4

Version Description

Masonry in the Activity feed, media search functionality, album descriptions and lots more! Please update/re-save the permalinks after the plugin updates.

=

Download this release

Release Info

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

Code changes from version 4.3.2 to 4.4

app/admin/RTMediaFormHandler.php CHANGED
@@ -27,11 +27,13 @@ class RTMediaFormHandler {
27
  }
28
 
29
  $args['rtForm_options'] = array();
30
- foreach ( $selects as $value => $key ) {
31
- $args['rtForm_options'][] = array(
32
- $key => $value,
33
- 'selected' => ( $default == $value ) ? true : false,
34
- );
 
 
35
  }
36
 
37
  $chkObj = new rtForm();
@@ -297,6 +299,16 @@ class RTMediaFormHandler {
297
  ),
298
  'group' => '10',
299
  ),
 
 
 
 
 
 
 
 
 
 
300
  'general_enableLikes' => array(
301
  'title' => __( 'Enable likes for media', 'buddypress-media' ),
302
  'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
@@ -353,6 +365,18 @@ class RTMediaFormHandler {
353
  'group' => '18',
354
  'after_content' => esc_html__( 'You might need to', 'buddypress-media' ) . ' <a id="rtm-masonry-change-thumbnail-info" href="' . get_admin_url() . 'admin.php?page=rtmedia-settings#rtmedia-sizes">' . esc_html__( 'change thumbnail size', 'buddypress-media' ) . '</a> ' . esc_html__( 'and uncheck the crop box for thumbnails.', 'buddypress-media' ) . '<br /><br />' . esc_html__( 'To set gallery for fixed width, set image height to 0 and width as per your requirement and vice-versa.', 'buddypress-media' ),
355
  ),
 
 
 
 
 
 
 
 
 
 
 
 
356
  'general_direct_upload' => array(
357
  'title' => esc_html__( 'Enable Direct Upload', 'buddypress-media' ),
358
  'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
@@ -365,6 +389,11 @@ class RTMediaFormHandler {
365
  ),
366
  );
367
 
 
 
 
 
 
368
  return $render;
369
  }
370
 
@@ -388,6 +417,7 @@ class RTMediaFormHandler {
388
  $general_group[15] = esc_html__( 'List Media View', 'buddypress-media' );
389
  $general_group[18] = esc_html__( 'Masonry View', 'buddypress-media' );
390
  $general_group[19] = esc_html__( 'Direct Upload', 'buddypress-media' );
 
391
  $general_group = apply_filters( 'rtmedia_display_content_groups', $general_group );
392
  ksort( $general_group );
393
  self::render_tab_content( $render_options, $general_group, 20 );
@@ -799,11 +829,11 @@ class RTMediaFormHandler {
799
  $args = array(
800
  'key' => 'defaultSizes_' . $parent_key . '_' . $entity['title'],
801
  );
802
- foreach ( $entity as $child_key => $value ) {
803
- if ( 'title' !== $child_key ) {
804
- $args[ $child_key ] = $value;
 
805
  }
806
- }
807
  self::dimensions( $args );
808
  ?>
809
  </tr>
27
  }
28
 
29
  $args['rtForm_options'] = array();
30
+ if ( ! empty( $selects ) ) {
31
+ foreach ( $selects as $value => $key ) {
32
+ $args['rtForm_options'][] = array(
33
+ $key => $value,
34
+ 'selected' => ( $default === $value ) ? true : false,
35
+ );
36
+ }
37
  }
38
 
39
  $chkObj = new rtForm();
299
  ),
300
  'group' => '10',
301
  ),
302
+ 'general_enableGallerysearch' => array(
303
+ 'title' => esc_html__( 'Enable gallery media search', 'buddypress-media' ),
304
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
305
+ 'args' => array(
306
+ 'key' => 'general_enableGallerysearch',
307
+ 'value' => $options['general_enableGallerysearch'],
308
+ 'desc' => esc_html__( 'This will enable the search box in gallery page.', 'buddypress-media' ),
309
+ ),
310
+ 'group' => '14',
311
+ ),
312
  'general_enableLikes' => array(
313
  'title' => __( 'Enable likes for media', 'buddypress-media' ),
314
  'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
365
  'group' => '18',
366
  'after_content' => esc_html__( 'You might need to', 'buddypress-media' ) . ' <a id="rtm-masonry-change-thumbnail-info" href="' . get_admin_url() . 'admin.php?page=rtmedia-settings#rtmedia-sizes">' . esc_html__( 'change thumbnail size', 'buddypress-media' ) . '</a> ' . esc_html__( 'and uncheck the crop box for thumbnails.', 'buddypress-media' ) . '<br /><br />' . esc_html__( 'To set gallery for fixed width, set image height to 0 and width as per your requirement and vice-versa.', 'buddypress-media' ),
367
  ),
368
+ 'general_masonry_layout_activity' => array(
369
+ 'title' => esc_html__( 'Enable Masonry Cascading grid layout for activity', 'buddypress-media' ),
370
+ 'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
371
+ 'args' => array(
372
+ 'key' => 'general_masonry_layout_activity',
373
+ 'value' => $options['general_masonry_layout_activity'],
374
+ 'desc' => esc_html__( 'If you enable masonry view, it is advisable to', 'buddypress-media' ) . ' <a href="' . $regenerate_link . '">regenerate thumbnail</a> ' . esc_html__( 'for masonry view.', 'buddypress-media' ),
375
+ 'class' => array( 'rtm_enable_masonry_view' ),
376
+ ),
377
+ 'depends' => 'general_masonry_layout',
378
+ 'group' => '18',
379
+ ),
380
  'general_direct_upload' => array(
381
  'title' => esc_html__( 'Enable Direct Upload', 'buddypress-media' ),
382
  'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
389
  ),
390
  );
391
 
392
+ // If buddypress is not active, then remove the option from rtMedia settings.
393
+ if ( ! is_plugin_active( 'buddypress/bp-loader.php' ) ) {
394
+ unset( $render['general_masonry_layout_activity'] );
395
+ }
396
+
397
  return $render;
398
  }
399
 
417
  $general_group[15] = esc_html__( 'List Media View', 'buddypress-media' );
418
  $general_group[18] = esc_html__( 'Masonry View', 'buddypress-media' );
419
  $general_group[19] = esc_html__( 'Direct Upload', 'buddypress-media' );
420
+ $general_group[14] = esc_html__( 'Gallery Media Search', 'buddypress-media' );
421
  $general_group = apply_filters( 'rtmedia_display_content_groups', $general_group );
422
  ksort( $general_group );
423
  self::render_tab_content( $render_options, $general_group, 20 );
829
  $args = array(
830
  'key' => 'defaultSizes_' . $parent_key . '_' . $entity['title'],
831
  );
832
+ foreach ( $entity as $child_key => $value ) {
833
+ if ( 'title' !== $child_key ) {
834
+ $args[ $child_key ] = $value;
835
+ }
836
  }
 
837
  self::dimensions( $args );
838
  ?>
839
  </tr>
app/assets/css/rtmedia.css CHANGED
@@ -1289,6 +1289,9 @@ img.mfp-img {
1289
  position: relative;
1290
  }
1291
 
 
 
 
1292
  .rtmedia-media img {
1293
  display: inline-block;
1294
  max-height: inherit;
@@ -1527,6 +1530,52 @@ img.mfp-img {
1527
  .rtmedia-activity-container *, .rtmedia-activity-container *:before, .rtmedia-activity-container *:after {
1528
  box-sizing: inherit;
1529
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1530
 
1531
  #buddypress ul.rtmedia-list li {
1532
  border-bottom: 0;
@@ -1633,7 +1682,11 @@ form.rt_media_comment_form .rtmedia-plupload-container {
1633
  text-decoration: underline;
1634
  }
1635
 
1636
- .rtmedia-uploader-div {
 
 
 
 
1637
  opacity: 0;
1638
  display: none;
1639
  visibility: hidden;
@@ -2496,9 +2549,15 @@ body div.bp_members.bp_member .entry-content {
2496
  padding: 10px 0;
2497
  }
2498
 
 
 
 
 
2499
  .rtm-media-options {
2500
  line-height: 1.4;
2501
  margin-bottom: 10px;
 
 
2502
  }
2503
  .rtm-media-options > div {
2504
  display: inline-block;
@@ -2520,6 +2579,82 @@ body div.bp_members.bp_member .entry-content {
2520
  line-height: 1.4;
2521
  }
2522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2523
  .rtmedia-upload-media-link {
2524
  cursor: pointer;
2525
  }
@@ -2602,22 +2737,29 @@ a.rtmedia-upload-media-link {
2602
 
2603
  @media only screen and (min-width: 1025px) {
2604
  .mfp-content .rtm-lightbox-container {
2605
- display: table;
 
 
2606
  table-layout: fixed;
2607
  width: 100%;
 
2608
  }
2609
  .mfp-content .rtm-mfp-close {
2610
  background: transparent;
2611
  }
2612
  .mfp-content .rtm-single-media {
2613
- display: table-cell;
 
 
2614
  width: 66.6667%;
 
 
 
2615
  }
2616
  .mfp-content .rtm-single-meta {
2617
- display: table-cell;
2618
  width: 33.3333%;
2619
  padding: 20px;
2620
- height: 473px;
2621
  }
2622
  .mfp-content .rtm-single-meta .rtmedia-scroll {
2623
  height: 100%;
1289
  position: relative;
1290
  }
1291
 
1292
+ .rtmedia-media {
1293
+ margin: 0 auto;
1294
+ }
1295
  .rtmedia-media img {
1296
  display: inline-block;
1297
  max-height: inherit;
1530
  .rtmedia-activity-container *, .rtmedia-activity-container *:before, .rtmedia-activity-container *:after {
1531
  box-sizing: inherit;
1532
  }
1533
+ .rtmedia-activity-container .rtmedia-list.masonry {
1534
+ list-style: none;
1535
+ padding: 0;
1536
+ }
1537
+ .rtmedia-activity-container .rtmedia-list.masonry p {
1538
+ display: none;
1539
+ }
1540
+ .rtmedia-activity-container .rtmedia-list.masonry:after {
1541
+ content: '';
1542
+ display: block;
1543
+ clear: both;
1544
+ }
1545
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick {
1546
+ display: inline-block;
1547
+ float: left;
1548
+ width: 32%;
1549
+ padding: 0 !important;
1550
+ }
1551
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container {
1552
+ min-width: 33% !important;
1553
+ margin: 0 0 5px 0;
1554
+ width: 100% !important;
1555
+ }
1556
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls {
1557
+ width: 100%;
1558
+ }
1559
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-time-total {
1560
+ display: none;
1561
+ }
1562
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider {
1563
+ width: 20%;
1564
+ padding-left: 5px;
1565
+ }
1566
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
1567
+ width: 100%;
1568
+ }
1569
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-time-loaded {
1570
+ display: none;
1571
+ }
1572
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick img {
1573
+ display: block;
1574
+ max-width: 100%;
1575
+ }
1576
+ .rtmedia-activity-container .rtmedia-list-item.masonry-brick .rtmedia-item-title {
1577
+ display: none;
1578
+ }
1579
 
1580
  #buddypress ul.rtmedia-list li {
1581
  border-bottom: 0;
1682
  text-decoration: underline;
1683
  }
1684
 
1685
+ #whats-new-options {
1686
+ opacity: 0;
1687
+ display: none;
1688
+ }
1689
+ #whats-new-options .rtmedia-uploader-div {
1690
  opacity: 0;
1691
  display: none;
1692
  visibility: hidden;
2549
  padding: 10px 0;
2550
  }
2551
 
2552
+ .rtm-media-options.rtm-media-search-enable > *:nth-last-child(2) {
2553
+ border-right: none;
2554
+ }
2555
+
2556
  .rtm-media-options {
2557
  line-height: 1.4;
2558
  margin-bottom: 10px;
2559
+ clear: both;
2560
+ /*overflow: hidden;*/
2561
  }
2562
  .rtm-media-options > div {
2563
  display: inline-block;
2579
  line-height: 1.4;
2580
  }
2581
 
2582
+ #buddypress .media_search.media_search .search_by {
2583
+ margin-top: 3px;
2584
+ }
2585
+
2586
+ .media_search.media_search {
2587
+ float: right;
2588
+ border: 1px solid #ccc;
2589
+ margin-left: 5px;
2590
+ padding: 3px 0;
2591
+ }
2592
+ .media_search.media_search .media_search_input {
2593
+ width: 200px;
2594
+ outline: 0;
2595
+ max-width: 200px;
2596
+ margin: 0;
2597
+ box-shadow: none;
2598
+ padding: 5px 6px;
2599
+ border: none;
2600
+ background: transparent;
2601
+ float: left;
2602
+ max-height: 30px;
2603
+ }
2604
+ .media_search.media_search #media_fatch_loader.load {
2605
+ float: left;
2606
+ width: 20px;
2607
+ height: 30px;
2608
+ position: relative;
2609
+ }
2610
+ .media_search.media_search #media_fatch_loader.load:before {
2611
+ content: '';
2612
+ border-radius: 50%;
2613
+ border: 1px solid #aaa;
2614
+ border-top-color: rgba(255, 255, 255, 0.9);
2615
+ animation: spinner .8s linear infinite;
2616
+ -webkit-animation: spinner .8s linear infinite;
2617
+ position: absolute;
2618
+ width: 15px;
2619
+ height: 15px;
2620
+ top: 24%;
2621
+ }
2622
+ .media_search.media_search .search_option {
2623
+ padding: 0;
2624
+ background: transparent;
2625
+ color: #000;
2626
+ margin-bottom: 0;
2627
+ line-height: 1;
2628
+ border: none;
2629
+ }
2630
+ .media_search.media_search .media_search_remove.search_option {
2631
+ display: none;
2632
+ }
2633
+ .media_search.media_search .media_search_remove.search_option i {
2634
+ margin-top: 4px;
2635
+ }
2636
+ .media_search.media_search .search_by {
2637
+ background: transparent;
2638
+ margin-top: 3px;
2639
+ float: left;
2640
+ width: auto;
2641
+ margin-bottom: 0;
2642
+ height: auto;
2643
+ padding-top: 0;
2644
+ padding-bottom: 0;
2645
+ }
2646
+
2647
+ @keyframes spinner {
2648
+ to {
2649
+ -webkit-transform: rotate(360deg);
2650
+ transform: rotate(360deg);
2651
+ }
2652
+ }
2653
+ @-webkit-keyframes spinner {
2654
+ to {
2655
+ -webkit-transform: rotate(360deg);
2656
+ }
2657
+ }
2658
  .rtmedia-upload-media-link {
2659
  cursor: pointer;
2660
  }
2737
 
2738
  @media only screen and (min-width: 1025px) {
2739
  .mfp-content .rtm-lightbox-container {
2740
+ display: -webkit-box;
2741
+ display: -ms-flexbox;
2742
+ display: flex;
2743
  table-layout: fixed;
2744
  width: 100%;
2745
+ min-height: 473px;
2746
  }
2747
  .mfp-content .rtm-mfp-close {
2748
  background: transparent;
2749
  }
2750
  .mfp-content .rtm-single-media {
2751
+ display: -webkit-box;
2752
+ display: -ms-flexbox;
2753
+ display: flex;
2754
  width: 66.6667%;
2755
+ -webkit-box-align: center;
2756
+ -ms-flex-align: center;
2757
+ align-items: center;
2758
  }
2759
  .mfp-content .rtm-single-meta {
2760
+ display: block;
2761
  width: 33.3333%;
2762
  padding: 20px;
 
2763
  }
2764
  .mfp-content .rtm-single-meta .rtmedia-scroll {
2765
  height: 100%;
app/assets/css/rtmedia.min.css CHANGED
@@ -1 +1 @@
1
- .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.rtmedia-success,.rtmedia-warning{margin:10px 0;padding:8px 14px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5);border-bottom:1px solid #e7e7e7;cursor:pointer}.rtmedia-success{background-color:#dff0d8;color:#468847}.rtmedia-warning{background-color:#F0D8DD;color:#884646}.clearfix:after{content:"";display:table;clear:both}#buddypress form#whats-new-form textarea{box-sizing:border-box;min-height:70px;width:100%}#buddypress #whats-new-form .rtmedia-uploader-div{display:none}#buddypress #whats-new-form #whats-new-options .rtmedia-uploader-div{display:block}#buddypress #whats-new-options{height:auto !important;overflow:hidden}#buddypress form#whats-new-form p.activity-greeting{line-height:1}#buddypress form#whats-new-form #whats-new-options select{border:1px solid #ccc;font-size:13px;margin-top:0;padding:3px 2px}#whats-new-submit #aw-whats-new-submit{font-size:12px;line-height:18px;padding:4px 6px}#whats-new-post-in-box{float:left;font-size:13px}#buddypress form#whats-new-form #whats-new-submit{margin-top:0}#whats-new-textarea{margin-bottom:10px}body.media.buddypress{overflow-y:auto}#buddypress input[type=submit]:focus{background:#ededed;border:1px solid #bbb;color:#555;outline:0;text-decoration:none}#buddypress ul.activity-list li.activity-item .activity-comments .rtmedia-uploader-div{color:#767676;margin-left:50px;padding-left:15px}.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,form .rtmedia-container .rtm-plupload-list,#rtmedia_uploader_filelist{list-style:none;margin-left:-4px;margin-right:-4px;padding-left:0;padding-top:10px}#rtmedia-uploader-form .rtm-plupload-list li,form .rtmedia-container .rtm-plupload-list li,#rtmedia_uploader_filelist li{background:#eee;float:left;margin:4px;max-width:110px;padding:5px;position:relative}#rtmedia-uploader-form .rtm-plupload-list li.upload-error,form .rtmedia-container .rtm-plupload-list li.upload-error,#rtmedia_uploader_filelist li.upload-error{border:1px solid red}#rtmedia-uploader-form .rtm-plupload-list img,form .rtmedia-container .rtm-plupload-list img,#rtmedia_uploader_filelist img{max-width:100%}#rtmedia-uploader-form .rtm-plupload-list canvas,form .rtmedia-container .rtm-plupload-list canvas,#rtmedia_uploader_filelist canvas{display:block;max-width:100%}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title{font-size:12px}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc,#rtmedia_uploader_filelist .rtm-upload-edit-desc{font-size:12px;display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title-wrapper label,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label{display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title{min-width:100%;margin-top:1px}.rtm-plupload-list:empty{display:none}.rtmedia-uploader-div,.rtmedia-uploader{clear:both}.rtm-upload-button-wrapper button.rtmedia-comment-media-upload,button.rtmedia-comment-media-upload{padding:3px 6px}.rtm-upload-button-wrapper button.rtmedia-comment-media-upload .dashicons,button.rtmedia-comment-media-upload .dashicons{font-size:18px;line-height:20px}button#rtmedia-add-media-button-post-update{padding:3px 6px}button#rtmedia-add-media-button-post-update .dashicons{font-size:18px;line-height:20px}.plupload_file_name{font-size:11px;font-weight:bold;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plupload_file_size{color:#666;font-size:10px}.plupload_file_action{background:#eee;position:absolute;height:18px;right:4px;top:0;width:18px;z-index:10}.plupload_file_action .dashicons{color:#DD3D36;cursor:pointer;font-size:16px;height:18px;padding:2px 1px;width:18px}.plupload_file_status{height:18px;overflow:hidden;position:relative}.plupload_file_progress{background:#7AD03A;height:4px;position:absolute;top:0}.rtm-form .rtm-field-wrap{margin-bottom:20px}.rtmedia_next_prev{padding:0 10px}.rtm-page-number{float:left}.rtm-page-number .rtm-label{line-height:30px}.rtm-page-number .rtm-label,.rtm-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{float:left}.rtm-pagination{background:transparent;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:left;width:100%;padding:10px 0}.rtm-pagination .rtm-paginate{float:right;font-size:15px}.rtm-pagination .rtm-paginate a,.rtm-pagination .rtm-paginate span{display:inline-block;line-height:1;margin:0 2px;padding:8px;text-decoration:none}.rtm-pagination .rtm-paginate a.rtmedia-page-link{padding:8px}.rtm-pagination .dashicons{font-size:14px;height:auto;line-height:1.2;margin:0;padding:0;width:auto}#rtmedia_go_to_num{font-size:16px;margin:0 5px;padding:4px 5px;width:80px}.rtmedia-upload-not-allowed{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;margin-bottom:20px;padding:10px 15px}.plupload_file_name{position:relative}.plupload_file_name .dashicons{background:#eee;color:#DD3D36;cursor:pointer;font-size:14px;height:auto;padding:0 2px 0 5px;position:absolute;right:0;top:0;width:auto}.plupload_file_name .dashicons-yes{color:#7AD03A}.rtmedia-gallery-item-actions{background-color:rgba(0,0,0,0.6);opacity:0;position:absolute;text-align:center;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s;width:100%;z-index:9}.rtmedia-gallery-item-actions a{border:0;box-shadow:0 0 0;color:#fff;display:inline-block;font-size:12px;outline:none;padding:4px;text-align:left;text-decoration:none;text-transform:uppercase}.rtmedia-gallery-item-actions .dashicons{font-size:17px;margin-right:2px;position:relative;top:1px}.rtmedia-gallery-item-actions .dashicons-trash{font-size:15px}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-gallery-item-actions{opacity:1}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-bulk-edit-item-wrap+.rtmedia-gallery-item-actions{opacity:0}.rtmedia-footer-link{clear:both;overflow:hidden;padding:16px 0;position:relative;text-align:center}.rtmedia-text-link-decoration,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span{text-decoration:none}.rtmedia-text-link-decoration:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span:hover{text-decoration:underline}.rtmedia-container .rtmedia-edit-list-media-table{max-height:300px;overflow-y:auto}.rtmedia-container .rtmedia-edit-list-media-table thead tr{background-color:#50A1D7}.rtmedia-container .rtmedia-edit-list-media-table thead th{text-align:center;color:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(odd){background:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(even){background:#DCDCDC}table.rtmedia-edit-media-list tr{line-height:30px}table.rtmedia-edit-media-list tr th{color:#333;padding:4px 10px;line-height:20px}table.rtmedia-edit-media-list tr .rtm-edit-media-list-heading{width:44%}table.rtmedia-edit-media-list tr .rtm-edit-media-list-title-heading{width:56%}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title{padding:4px;font-size:14px;line-height:24px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a{text-decoration:none;color:#333}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a{color:#333;font-size:13px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span{color:#FF0000;cursor:pointer;font-size:13px}.rtm-hide{display:none}.rtmedia-list-item .rtmedia-album-media-count{position:absolute;top:0;right:0;background-color:black;color:white;padding:0 5px}.rtm-tabs.rtm-tabs{border-bottom:1px solid #eee;list-style:none;margin:0 0 20px;padding:0}.rtm-tabs li{border:1px solid #eee;border-bottom:0;float:left;margin:0 5px;padding:0}.rtm-tabs a{border:0;display:block;padding:5px 15px;text-decoration:none}.rtm-tabs a:focus{background:transparent;box-shadow:0 0 0}.rtm-tabs .active{position:relative}.rtm-tabs .active:after{background:#fff;bottom:-1px;content:' ';height:1px;left:0;position:absolute;width:100%}.rtm-tabs .dashicons{font-size:16px;height:auto;line-height:20px;margin-right:8px;width:auto}.rtmedia-edit-media-tabs .rtm-tabs a{border-bottom:0 none}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:104211;overflow:hidden;position:fixed;background:rgba(0,0,0,0.9)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:104311;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;max-width:84%;margin:0 auto;right:0;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{background:#fff;color:#999;cursor:pointer;font-size:24px;font-style:normal;height:30px;line-height:30px;padding:0;position:absolute;right:1px;text-align:center;text-decoration:none;text-indent:2px;top:0;width:32px;z-index:12}.mfp-close:hover,.mfp-close:focus{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{cursor:pointer;position:absolute;opacity:0.65;filter:alpha(opacity=65);margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent;opacity:0;z-index:10;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .mfp-arrow{opacity:1}@media (max-device-width: 640px){.mfp-arrow{display:none}.rtm-single-media:hover .mfp-arrow{display:none}}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1;filter:alpha(opacity=100)}.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after,.mfp-arrow .mfp-a{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before,.mfp-arrow .mfp-b{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after,.mfp-arrow-left .mfp-a{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after,.mfp-arrow-right .mfp-a{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before,.mfp-arrow-right .mfp-b{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}.mfp-preloader{position:absolute;top:50%;left:0;right:0;margin-top:-36px;z-index:1044;font-size:0;width:36px;height:36px;margin-left:auto;margin-right:auto}.mfp-preloader:before{content:'Loading…';position:absolute;width:30px;height:30px}.mfp-preloader:not(:required):before{content:'';border-radius:50%;border:3px solid rgba(255,255,255,0.27);border-top-color:rgba(255,255,255,0.9);animation:spinner .6s linear infinite;-webkit-animation:spinner .6s linear infinite}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}#atwho-container #atwho-ground-comment_content .atwho-view{z-index:2147483647}.mfp-content .rtm-lightbox-container{background:#000;margin:0 auto;position:relative}.mfp-content .rtm-lightbox-container .rtmedia-comment-media-list .mejs-container.mejs-video{min-height:200px;min-width:200px}.mfp-content .rtm-single-meta{background:#fff;overflow:hidden;padding:20px 20px 110px;position:relative;vertical-align:top}.rtm-single-media{overflow:hidden;position:relative;text-align:center;vertical-align:middle}.rtm-single-media .mejs-container{margin:0 auto;max-width:inherit}.rtm-single-media .rtmedia-message-container{position:absolute;top:45%;left:0;right:0;margin-left:auto;margin-right:auto}@media (max-device-width: 640px){.rtm-single-media .rtmedia-message-container{top:25%}}.rtm-ltb-action-container{background-color:rgba(0,0,0,0.6);bottom:0;color:#fff;line-height:38px;opacity:0;padding:0 10px;position:absolute;width:100%;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}@media (max-device-width: 640px){.rtm-ltb-action-container{clear:both;position:relative;opacity:1}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);display:block;font-family:inherit;font-weight:normal;line-height:24px;margin:0;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button:hover{background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.8)}#buddypress #rtmedia-single-media-container.rtmedia-single-media .rtm-options .button{color:#333;margin:0 auto;padding:0 4px 0 0}#buddypress #rtm-media-options-list .rtm-options form button{font-size:small}#buddypress #rtm-media-options-list .rtm-options .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);float:left;font-family:inherit;font-weight:normal;line-height:24px;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}.rtm-options.rtm-options{background:#666;color:#fff;display:none;font-size:14px;list-style:none;margin:0;padding:8px 10px;position:absolute;left:0;top:38px;width:190px;z-index:10}.rtm-options li{margin:0;overflow:hidden;padding:2px 0}.rtm-media-options .rtm-options:after{bottom:100%;left:20px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#666;border-width:6px;margin-left:-6px}.mfp-content .rtm-options{background:#fff;color:#333;bottom:38px;right:0;left:auto;top:auto}.mfp-content .rtm-options:after{top:100%;right:22px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:6px;margin-left:-6px}.rtm-options .dashicons{font-size:14px;line-height:24px;margin-right:2px}.rtm-media-options .rtm-options a{border:0;color:#fff;display:block;text-decoration:none}.rtm-ltb-title{color:rgba(255,255,255,0.7);float:left;font-size:13px}.rtm-ltb-title a{color:inherit}.rtm-ltb-title a:hover{border-bottom:1px dotted;color:#fff}.rtm-item-actions{float:right}.rtm-item-actions>div,.rtm-item-actions>form{float:left;margin:0 4px 0 0;padding:7px 0;position:relative}.rtmedia-media img{display:inline-block;max-height:inherit;height:auto;max-width:100%;width:auto}@media only screen and (max-device-width: 1024px){.rtmedia-media{margin:40px 0}}.rtm-user-meta-details .username{font-size:16px;line-height:1;margin-bottom:6px}.userprofile{float:left;margin:0 16px 16px 0;max-width:54px}.userprofile a{display:block}.userprofile img{height:auto;max-width:100%}.rtm-time-privacy{color:#999;font-size:12px}.rtm-time-privacy .dashicons{font-size:14px;line-height:1.5;margin-top:-2px}.rtmedia-actions-before-comments>span{float:left;margin-right:10px}.rtmedia-actions-before-comments .rtmedia-comment-link,.rtmedia-actions-before-comments .rtmedia-view-conversation,#buddypress .rtmedia-actions-before-comments .rtmedia-like{border:0;font-size:13px;font-weight:normal;line-height:2;padding:0;text-transform:none}.rtmedia-actions-before-comments .rtmedia-comment-link:hover,.rtmedia-actions-before-comments .rtmedia-view-conversation:hover,#buddypress .rtmedia-actions-before-comments .rtmedia-like:hover{background:transparent}.rtmedia-comment-user-pic{float:left;margin-right:10px;max-width:36px}.rtmedia-comment-user-pic img{height:auto;max-width:100%}.rtm-like-comments-info{position:relative}.rtm-like-comments-info:after{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(237,239,244,0);border-bottom-color:#edeff4;border-width:4px;margin-left:-4px}.rtm-comment-list.rtm-comment-list{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{bottom:20px;padding:10px;width:100%}.rtm-media-single-comments textarea{background-color:#edeff4;font-size:12px;line-height:14px;max-height:40px;min-height:30px;padding:4px}.rtmedia-popup{background:#fff;margin:20px auto;max-width:600px;padding:20px;position:relative;width:auto}.rtmedia-popup .rtm-modal-title{font-size:24px;margin-bottom:20px;margin-top:0}.rtmedia-popup label{display:block;margin-bottom:5px}#rtm-modal-container p{margin-bottom:10px}#rtm-mejs-video-container{margin:0 auto}.rtmedia-media-name{float:left;max-width:140px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.rtm-single-media.rtm-media-type-video{padding-bottom:40px;padding-top:40px}.rtmedia-gallery-alert-container{position:fixed;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,0.6);z-index:999997}.rtmedia-gallery-message-box{position:fixed;top:40%;left:50%;margin-left:auto;margin-right:auto;z-index:999999}.rtmedia-gallery-message-box span{position:relative;left:-50%}.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}form.rt_media_comment_form .rtmedia-plupload-container{overflow:hidden}.rtmedia-plupload-container{position:relative;float:left}.rtm-upload-button-wrapper{float:left;margin-right:5px}#rtmedia-action-update{margin-right:10px}.rtmedia-list-item.media-type-photo,.rtmedia-list-item.media-type-document,.rtmedia-list-item.media-type-music,.rtmedia-list-item.media-type-video{display:inline-block}.media-type-music .mejs-container{margin-bottom:10px}.previous-pagination{float:left;margin-top:10px}.next-pagination{float:right;margin-top:10px}@media screen and (max-width: 500px){#activity-stream li .media-type-video{width:100%}#activity-stream li .media-type-video .mejs-video{max-width:100%;min-width:100%}}#rtmedia_show_all_comment{cursor:pointer}#rtmedia_show_all_comment:hover{text-decoration:underline}.rtmedia-uploader-div{opacity:0;display:none;visibility:hidden}.ac-form .rtmedia-uploader-div,.rt_media_comment_form .rtmedia-uploader-div{opacity:1;display:block;visibility:visible}#whats-new-options{opacity:0;display:none}a.rtmedia-comment-link{display:none}a.rtmedia-comment-link.rtmedia-comments-link{display:initial}.rtmedia-album-edit .rtm-checkbox-wrap{background:rgba(255,255,255,0.9);height:30px;line-height:1;padding:10px;position:absolute;z-index:10}.rtmedia-album-edit .rtmedia-item-selector{position:relative;top:-7px}.rtmedia-album-edit .rtmedia-move-container{display:none}.rtm-single-actions.rtm-item-actions{float:none}.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 #item-body{padding:0 0 20px 20px}#buddypress .mejs-controls button{padding:4px 8px;border:none;background:transparent url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mejs-container .mejs-controls .mejs-time{padding:10px 3px 0;content:''}.rtmedia-activity-container .mejs-playpause-button.mejs-play button:before,.rtmedia-activity-container .mejs-playpause-button.mejs-pause button:before,.rtmedia-activity-container .mejs-volume-button.mejs-mute button:before,.rtmedia-activity-container .mejs-fullscreen-button button:before,.rtmedia-media .mejs-playpause-button.mejs-play button:before,.rtmedia-media .mejs-playpause-button.mejs-pause button:before,.rtmedia-media .mejs-volume-button.mejs-mute button:before,.rtmedia-media .mejs-fullscreen-button button:before{content:''}@media only screen and (min-width: 1025px){.mfp-content .rtm-lightbox-container{display:table;table-layout:fixed;width:100%}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:table-cell;width:66.6667%}.mfp-content .rtm-single-meta{display:table-cell;width:33.3333%;padding:20px;height:473px}.mfp-content .rtm-single-meta .rtmedia-scroll{height:100%;overflow-X:hidden}}.rtl #rtSelectPrivacy{float:left}.rtl .rtmedia-plupload-container{float:right}.rtl .rtm-upload-button-wrapper{float:right}.rtl #whats-new-post-in-box{float:right}.rtl .describe-toggle-off{float:left}.rtl .media-item .pinkynail{float:right}.rtl .media-item .progress{float:left}.rtl .media-item .error-div a.dismiss{float:left}.rtl #find-posts-input{float:right}.rtl #find-posts-search{float:right}.rtl .spinner{float:left}.rtl .wp_attachment_image .button,.rtl .A1B1 .button{float:right}.rtl .wp_attachment_image .spinner,.rtl .A1B1 .spinner{float:right}.rtl .imgedit-menu div{float:right}.rtl .wp_attachment_image .bp-media-image-edit{float:right}.rtl .rtmedia-container .rtmedia-list .rtmedia-list-item{float:right}.rtl #buddypress #rtm-media-options-list .rtm-options .button{float:right}.rtl .rtm-ltb-title{float:right}.rtl .rtm-item-actions{float:left}.rtl .rtm-item-actions>div,.rtl .rtm-item-actions>form{float:right}.rtl .userprofile{float:right}.rtl .rtmedia-actions-before-comments>span{float:right}.rtl .rtmedia-comment-user-pic{float:right}.rtl .rtmedia-media-name{float:right}.rtl #rtmedia-uploader-form .rtm-plupload-list li,.rtl #rtmedia_uploader_filelist li{float:right}.rtl .rtm-page-number{float:right}.rtl .rtm-page-number .rtmedia-page-link{float:right}.rtl .rtm-pagination{float:right}.rtl .rtm-pagination .rtm-paginate{float:left}.rtl .rtm-tabs li{float:right}.rtl .alignleft{float:right}.rtl .alignright{float:left}
1
+ .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.rtmedia-success,.rtmedia-warning{margin:10px 0;padding:8px 14px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5);border-bottom:1px solid #e7e7e7;cursor:pointer}.rtmedia-success{background-color:#dff0d8;color:#468847}.rtmedia-warning{background-color:#F0D8DD;color:#884646}.clearfix:after{content:"";display:table;clear:both}#buddypress form#whats-new-form textarea{box-sizing:border-box;min-height:70px;width:100%}#buddypress #whats-new-form .rtmedia-uploader-div{display:none}#buddypress #whats-new-form #whats-new-options .rtmedia-uploader-div{display:block}#buddypress #whats-new-options{height:auto !important;overflow:hidden}#buddypress form#whats-new-form p.activity-greeting{line-height:1}#buddypress form#whats-new-form #whats-new-options select{border:1px solid #ccc;font-size:13px;margin-top:0;padding:3px 2px}#whats-new-submit #aw-whats-new-submit{font-size:12px;line-height:18px;padding:4px 6px}#whats-new-post-in-box{float:left;font-size:13px}#buddypress form#whats-new-form #whats-new-submit{margin-top:0}#whats-new-textarea{margin-bottom:10px}body.media.buddypress{overflow-y:auto}#buddypress input[type=submit]:focus{background:#ededed;border:1px solid #bbb;color:#555;outline:0;text-decoration:none}#buddypress ul.activity-list li.activity-item .activity-comments .rtmedia-uploader-div{color:#767676;margin-left:50px;padding-left:15px}.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,form .rtmedia-container .rtm-plupload-list,#rtmedia_uploader_filelist{list-style:none;margin-left:-4px;margin-right:-4px;padding-left:0;padding-top:10px}#rtmedia-uploader-form .rtm-plupload-list li,form .rtmedia-container .rtm-plupload-list li,#rtmedia_uploader_filelist li{background:#eee;float:left;margin:4px;max-width:110px;padding:5px;position:relative}#rtmedia-uploader-form .rtm-plupload-list li.upload-error,form .rtmedia-container .rtm-plupload-list li.upload-error,#rtmedia_uploader_filelist li.upload-error{border:1px solid red}#rtmedia-uploader-form .rtm-plupload-list img,form .rtmedia-container .rtm-plupload-list img,#rtmedia_uploader_filelist img{max-width:100%}#rtmedia-uploader-form .rtm-plupload-list canvas,form .rtmedia-container .rtm-plupload-list canvas,#rtmedia_uploader_filelist canvas{display:block;max-width:100%}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title{font-size:12px}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc,#rtmedia_uploader_filelist .rtm-upload-edit-desc{font-size:12px;display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper label,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title-wrapper label,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper label,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper label{display:block}#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia-uploader-form .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,form .rtmedia-container .rtm-plupload-list .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-title-wrapper input.rtm-upload-edit-title,#rtmedia_uploader_filelist .rtm-upload-edit-desc-wrapper input.rtm-upload-edit-title{min-width:100%;margin-top:1px}.rtm-plupload-list:empty{display:none}.rtmedia-uploader-div,.rtmedia-uploader{clear:both}.rtm-upload-button-wrapper button.rtmedia-comment-media-upload,button.rtmedia-comment-media-upload{padding:3px 6px}.rtm-upload-button-wrapper button.rtmedia-comment-media-upload .dashicons,button.rtmedia-comment-media-upload .dashicons{font-size:18px;line-height:20px}button#rtmedia-add-media-button-post-update{padding:3px 6px}button#rtmedia-add-media-button-post-update .dashicons{font-size:18px;line-height:20px}.plupload_file_name{font-size:11px;font-weight:bold;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plupload_file_size{color:#666;font-size:10px}.plupload_file_action{background:#eee;position:absolute;height:18px;right:4px;top:0;width:18px;z-index:10}.plupload_file_action .dashicons{color:#DD3D36;cursor:pointer;font-size:16px;height:18px;padding:2px 1px;width:18px}.plupload_file_status{height:18px;overflow:hidden;position:relative}.plupload_file_progress{background:#7AD03A;height:4px;position:absolute;top:0}.rtm-form .rtm-field-wrap{margin-bottom:20px}.rtmedia_next_prev{padding:0 10px}.rtm-page-number{float:left}.rtm-page-number .rtm-label{line-height:30px}.rtm-page-number .rtm-label,.rtm-page-number .rtm-go-to-num,.rtm-page-number .rtmedia-page-link{float:left}.rtm-pagination{background:transparent;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:left;width:100%;padding:10px 0}.rtm-pagination .rtm-paginate{float:right;font-size:15px}.rtm-pagination .rtm-paginate a,.rtm-pagination .rtm-paginate span{display:inline-block;line-height:1;margin:0 2px;padding:8px;text-decoration:none}.rtm-pagination .rtm-paginate a.rtmedia-page-link{padding:8px}.rtm-pagination .dashicons{font-size:14px;height:auto;line-height:1.2;margin:0;padding:0;width:auto}#rtmedia_go_to_num{font-size:16px;margin:0 5px;padding:4px 5px;width:80px}.rtmedia-upload-not-allowed{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;margin-bottom:20px;padding:10px 15px}.plupload_file_name{position:relative}.plupload_file_name .dashicons{background:#eee;color:#DD3D36;cursor:pointer;font-size:14px;height:auto;padding:0 2px 0 5px;position:absolute;right:0;top:0;width:auto}.plupload_file_name .dashicons-yes{color:#7AD03A}.rtmedia-gallery-item-actions{background-color:rgba(0,0,0,0.6);opacity:0;position:absolute;text-align:center;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s;width:100%;z-index:9}.rtmedia-gallery-item-actions a{border:0;box-shadow:0 0 0;color:#fff;display:inline-block;font-size:12px;outline:none;padding:4px;text-align:left;text-decoration:none;text-transform:uppercase}.rtmedia-gallery-item-actions .dashicons{font-size:17px;margin-right:2px;position:relative;top:1px}.rtmedia-gallery-item-actions .dashicons-trash{font-size:15px}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-gallery-item-actions{opacity:1}.rtm-pro-allow-action .rtmedia-list-item:hover .rtmedia-bulk-edit-item-wrap+.rtmedia-gallery-item-actions{opacity:0}.rtmedia-footer-link{clear:both;overflow:hidden;padding:16px 0;position:relative;text-align:center}.rtmedia-text-link-decoration,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span{text-decoration:none}.rtmedia-text-link-decoration:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a:hover,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title span:hover{text-decoration:underline}.rtmedia-container .rtmedia-edit-list-media-table{max-height:300px;overflow-y:auto}.rtmedia-container .rtmedia-edit-list-media-table thead tr{background-color:#50A1D7}.rtmedia-container .rtmedia-edit-list-media-table thead th{text-align:center;color:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(odd){background:#FFF}.rtmedia-container .rtmedia-edit-list-media-table tbody tr:nth-child(even){background:#DCDCDC}table.rtmedia-edit-media-list tr{line-height:30px}table.rtmedia-edit-media-list tr th{color:#333;padding:4px 10px;line-height:20px}table.rtmedia-edit-media-list tr .rtm-edit-media-list-heading{width:44%}table.rtmedia-edit-media-list tr .rtm-edit-media-list-title-heading{width:56%}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete,table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title{padding:4px;font-size:14px;line-height:24px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-title a{text-decoration:none;color:#333}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-edit a{color:#333;font-size:13px}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete{text-align:center}table.rtmedia-edit-media-list tr td.rtm-edit-media-list-delete span{color:#FF0000;cursor:pointer;font-size:13px}.rtm-hide{display:none}.rtmedia-list-item .rtmedia-album-media-count{position:absolute;top:0;right:0;background-color:black;color:white;padding:0 5px}.rtm-tabs.rtm-tabs{border-bottom:1px solid #eee;list-style:none;margin:0 0 20px;padding:0}.rtm-tabs li{border:1px solid #eee;border-bottom:0;float:left;margin:0 5px;padding:0}.rtm-tabs a{border:0;display:block;padding:5px 15px;text-decoration:none}.rtm-tabs a:focus{background:transparent;box-shadow:0 0 0}.rtm-tabs .active{position:relative}.rtm-tabs .active:after{background:#fff;bottom:-1px;content:' ';height:1px;left:0;position:absolute;width:100%}.rtm-tabs .dashicons{font-size:16px;height:auto;line-height:20px;margin-right:8px;width:auto}.rtmedia-edit-media-tabs .rtm-tabs a{border-bottom:0 none}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:104211;overflow:hidden;position:fixed;background:rgba(0,0,0,0.9)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:104311;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;max-width:84%;margin:0 auto;right:0;height:100%;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{background:#fff;color:#999;cursor:pointer;font-size:24px;font-style:normal;height:30px;line-height:30px;padding:0;position:absolute;right:1px;text-align:center;text-decoration:none;text-indent:2px;top:0;width:32px;z-index:12}.mfp-close:hover,.mfp-close:focus{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{cursor:pointer;position:absolute;opacity:0.65;filter:alpha(opacity=65);margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent;opacity:0;z-index:10;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .mfp-arrow{opacity:1}@media (max-device-width: 640px){.mfp-arrow{display:none}.rtm-single-media:hover .mfp-arrow{display:none}}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1;filter:alpha(opacity=100)}.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after,.mfp-arrow .mfp-a{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before,.mfp-arrow .mfp-b{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after,.mfp-arrow-left .mfp-a{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left:before,.mfp-arrow-left .mfp-b{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after,.mfp-arrow-right .mfp-a{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right:before,.mfp-arrow-right .mfp-b{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}.mfp-preloader{position:absolute;top:50%;left:0;right:0;margin-top:-36px;z-index:1044;font-size:0;width:36px;height:36px;margin-left:auto;margin-right:auto}.mfp-preloader:before{content:'Loading…';position:absolute;width:30px;height:30px}.mfp-preloader:not(:required):before{content:'';border-radius:50%;border:3px solid rgba(255,255,255,0.27);border-top-color:rgba(255,255,255,0.9);animation:spinner .6s linear infinite;-webkit-animation:spinner .6s linear infinite}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}#atwho-container #atwho-ground-comment_content .atwho-view{z-index:2147483647}.mfp-content .rtm-lightbox-container{background:#000;margin:0 auto;position:relative}.mfp-content .rtm-lightbox-container .rtmedia-comment-media-list .mejs-container.mejs-video{min-height:200px;min-width:200px}.mfp-content .rtm-single-meta{background:#fff;overflow:hidden;padding:20px 20px 110px;position:relative;vertical-align:top}.rtm-single-media{overflow:hidden;position:relative;text-align:center;vertical-align:middle}.rtm-single-media .mejs-container{margin:0 auto;max-width:inherit}.rtm-single-media .rtmedia-message-container{position:absolute;top:45%;left:0;right:0;margin-left:auto;margin-right:auto}@media (max-device-width: 640px){.rtm-single-media .rtmedia-message-container{top:25%}}.rtm-ltb-action-container{background-color:rgba(0,0,0,0.6);bottom:0;color:#fff;line-height:38px;opacity:0;padding:0 10px;position:absolute;width:100%;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}@media (max-device-width: 640px){.rtm-ltb-action-container{clear:both;position:relative;opacity:1}.rtm-single-media:hover .rtm-ltb-action-container{opacity:1}}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);display:block;font-family:inherit;font-weight:normal;line-height:24px;margin:0;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtmedia-single-media-container.rtmedia-single-media .button:hover{background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.8)}#buddypress #rtmedia-single-media-container.rtmedia-single-media .rtm-options .button{color:#333;margin:0 auto;padding:0 4px 0 0}#buddypress #rtm-media-options-list .rtm-options form button{font-size:small}#buddypress #rtm-media-options-list .rtm-options .button{background:transparent;border:0 none;border-radius:2px;color:rgba(255,255,255,0.5);float:left;font-family:inherit;font-weight:normal;line-height:24px;padding:0 6px;text-shadow:0 0 0;text-transform:none}#buddypress #rtm-media-options-list .rtm-options .rtmedia-delete-favlist{color:#fff;padding:0}.rtm-options.rtm-options{background:#666;color:#fff;display:none;font-size:14px;list-style:none;margin:0;padding:8px 10px;position:absolute;left:0;top:38px;width:190px;z-index:10}.rtm-options li{margin:0;overflow:hidden;padding:2px 0}.rtm-media-options .rtm-options:after{bottom:100%;left:20px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#666;border-width:6px;margin-left:-6px}.mfp-content .rtm-options{background:#fff;color:#333;bottom:38px;right:0;left:auto;top:auto}.mfp-content .rtm-options:after{top:100%;right:22px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:6px;margin-left:-6px}.rtm-options .dashicons{font-size:14px;line-height:24px;margin-right:2px}.rtm-media-options .rtm-options a{border:0;color:#fff;display:block;text-decoration:none}.rtm-ltb-title{color:rgba(255,255,255,0.7);float:left;font-size:13px}.rtm-ltb-title a{color:inherit}.rtm-ltb-title a:hover{border-bottom:1px dotted;color:#fff}.rtm-item-actions{float:right}.rtm-item-actions>div,.rtm-item-actions>form{float:left;margin:0 4px 0 0;padding:7px 0;position:relative}.rtmedia-media{margin:0 auto}.rtmedia-media img{display:inline-block;max-height:inherit;height:auto;max-width:100%;width:auto}@media only screen and (max-device-width: 1024px){.rtmedia-media{margin:40px 0}}.rtm-user-meta-details .username{font-size:16px;line-height:1;margin-bottom:6px}.userprofile{float:left;margin:0 16px 16px 0;max-width:54px}.userprofile a{display:block}.userprofile img{height:auto;max-width:100%}.rtm-time-privacy{color:#999;font-size:12px}.rtm-time-privacy .dashicons{font-size:14px;line-height:1.5;margin-top:-2px}.rtmedia-actions-before-comments>span{float:left;margin-right:10px}.rtmedia-actions-before-comments .rtmedia-comment-link,.rtmedia-actions-before-comments .rtmedia-view-conversation,#buddypress .rtmedia-actions-before-comments .rtmedia-like{border:0;font-size:13px;font-weight:normal;line-height:2;padding:0;text-transform:none}.rtmedia-actions-before-comments .rtmedia-comment-link:hover,.rtmedia-actions-before-comments .rtmedia-view-conversation:hover,#buddypress .rtmedia-actions-before-comments .rtmedia-like:hover{background:transparent}.rtmedia-comment-user-pic{float:left;margin-right:10px;max-width:36px}.rtmedia-comment-user-pic img{height:auto;max-width:100%}.rtm-like-comments-info{position:relative}.rtm-like-comments-info:after{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(237,239,244,0);border-bottom-color:#edeff4;border-width:4px;margin-left:-4px}.rtm-comment-list.rtm-comment-list{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{bottom:20px;padding:10px;width:100%}.rtm-media-single-comments textarea{background-color:#edeff4;font-size:12px;line-height:14px;max-height:40px;min-height:30px;padding:4px}.rtmedia-popup{background:#fff;margin:20px auto;max-width:600px;padding:20px;position:relative;width:auto}.rtmedia-popup .rtm-modal-title{font-size:24px;margin-bottom:20px;margin-top:0}.rtmedia-popup label{display:block;margin-bottom:5px}#rtm-modal-container p{margin-bottom:10px}#rtm-mejs-video-container{margin:0 auto}.rtmedia-media-name{float:left;max-width:140px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.rtm-single-media.rtm-media-type-video{padding-bottom:40px;padding-top:40px}.rtmedia-gallery-alert-container{position:fixed;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,0.6);z-index:999997}.rtmedia-gallery-message-box{position:fixed;top:40%;left:50%;margin-left:auto;margin-right:auto;z-index:999999}.rtmedia-gallery-message-box span{position:relative;left:-50%}.rtmedia-activity-container{box-sizing:border-box}.rtmedia-activity-container *,.rtmedia-activity-container *:before,.rtmedia-activity-container *:after{box-sizing:inherit}.rtmedia-activity-container .rtmedia-list.masonry{list-style:none;padding:0}.rtmedia-activity-container .rtmedia-list.masonry p{display:none}.rtmedia-activity-container .rtmedia-list.masonry:after{content:'';display:block;clear:both}.rtmedia-activity-container .rtmedia-list-item.masonry-brick{display:inline-block;float:left;width:32%;padding:0 !important}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container{min-width:33% !important;margin:0 0 5px 0;width:100% !important}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls{width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-time-total{display:none}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider{width:20%;padding-left:5px}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total{width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .mejs-container .mejs-controls .mejs-horizontal-volume-slider .mejs-time-loaded{display:none}.rtmedia-activity-container .rtmedia-list-item.masonry-brick img{display:block;max-width:100%}.rtmedia-activity-container .rtmedia-list-item.masonry-brick .rtmedia-item-title{display:none}#buddypress ul.rtmedia-list li{border-bottom:0;padding-bottom:0}.rtmedia-activity-container .rtmedia-item-actions{display:none}.rtmedia-activity-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title a{border:0;color:#666;font-size:13px;margin:5px 0 0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}#rtmedia-whts-new-upload-container div{left:0 !important;position:absolute;top:0 !important}#aw-whats-new-submit,.rtmedia-add-media-button{display:block}.rtm-drag-drop-active{border:4px dashed green !important;display:block;height:100%;opacity:0.5;z-index:9999}#rtm-drop-files-title{background:rgba(0,0,0,0.2);display:none;font-size:14px;height:100%;padding:20px;position:absolute;top:0;width:100%}#rtSelectPrivacy{float:right}form.rt_media_comment_form .rtmedia-plupload-container{overflow:hidden}.rtmedia-plupload-container{position:relative;float:left}.rtm-upload-button-wrapper{float:left;margin-right:5px}#rtmedia-action-update{margin-right:10px}.rtmedia-list-item.media-type-photo,.rtmedia-list-item.media-type-document,.rtmedia-list-item.media-type-music,.rtmedia-list-item.media-type-video{display:inline-block}.media-type-music .mejs-container{margin-bottom:10px}.previous-pagination{float:left;margin-top:10px}.next-pagination{float:right;margin-top:10px}@media screen and (max-width: 500px){#activity-stream li .media-type-video{width:100%}#activity-stream li .media-type-video .mejs-video{max-width:100%;min-width:100%}}#rtmedia_show_all_comment{cursor:pointer}#rtmedia_show_all_comment:hover{text-decoration:underline}#whats-new-options{opacity:0;display:none}#whats-new-options .rtmedia-uploader-div{opacity:0;display:none;visibility:hidden}.ac-form .rtmedia-uploader-div,.rt_media_comment_form .rtmedia-uploader-div{opacity:1;display:block;visibility:visible}#whats-new-options{opacity:0;display:none}a.rtmedia-comment-link{display:none}a.rtmedia-comment-link.rtmedia-comments-link{display:initial}.rtmedia-album-edit .rtm-checkbox-wrap{background:rgba(255,255,255,0.9);height:30px;line-height:1;padding:10px;position:absolute;z-index:10}.rtmedia-album-edit .rtmedia-item-selector{position:relative;top:-7px}.rtmedia-album-edit .rtmedia-move-container{display:none}.rtm-single-actions.rtm-item-actions{float:none}.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.rtm-media-search-enable>*:nth-last-child(2){border-right:none}.rtm-media-options{line-height:1.4;margin-bottom:10px;clear:both}.rtm-media-options>div{display:inline-block;cursor:pointer}.rtm-media-options .rtm-media-options-list{margin-right:5px;padding-right:10px;position:relative}.rtm-media-options>*{border-right:1px solid #999}.rtm-media-options>*:last-child{border-right:none}.rtm-media-options .dashicons{font-size:inherit;line-height:1.4}#buddypress .media_search.media_search .search_by{margin-top:3px}.media_search.media_search{float:right;border:1px solid #ccc;margin-left:5px;padding:3px 0}.media_search.media_search .media_search_input{width:200px;outline:0;max-width:200px;margin:0;box-shadow:none;padding:5px 6px;border:none;background:transparent;float:left;max-height:30px}.media_search.media_search #media_fatch_loader.load{float:left;width:20px;height:30px;position:relative}.media_search.media_search #media_fatch_loader.load:before{content:'';border-radius:50%;border:1px solid #aaa;border-top-color:rgba(255,255,255,0.9);animation:spinner .8s linear infinite;-webkit-animation:spinner .8s linear infinite;position:absolute;width:15px;height:15px;top:24%}.media_search.media_search .search_option{padding:0;background:transparent;color:#000;margin-bottom:0;line-height:1;border:none}.media_search.media_search .media_search_remove.search_option{display:none}.media_search.media_search .media_search_remove.search_option i{margin-top:4px}.media_search.media_search .search_by{background:transparent;margin-top:3px;float:left;width:auto;margin-bottom:0;height:auto;padding-top:0;padding-bottom:0}@keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg)}}.rtmedia-upload-media-link{cursor:pointer}a.rtmedia-upload-media-link{border:none}.rtm-album-privacy span{font-size:16px;display:inline-block;margin:0 20px 20px 20px;vertical-align:top}.rtm-album-privacy label{margin-right:8px}.rtm-album-privacy .dashicons{font-size:16px;line-height:1.6;margin-right:5px}#rtm-media-options-list .rtmedia-delete-album{background:transparent;border:0;color:#fff;font-family:inherit;font-size:inherit;font-weight:inherit;padding:0;text-transform:inherit}#rtm-media-options-list .rtmedia-delete-album:hover{background:transparent;border:0;color:#fff}.rtmedia-single-container button.rtmedia-like{background-color:transparent;color:inherit}#buddypress #item-body{padding:0 0 20px 20px}#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:-webkit-box;display:-ms-flexbox;display:flex;table-layout:fixed;width:100%;min-height:473px}.mfp-content .rtm-mfp-close{background:transparent}.mfp-content .rtm-single-media{display:-webkit-box;display:-ms-flexbox;display:flex;width:66.6667%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfp-content .rtm-single-meta{display:block;width:33.3333%;padding:20px}.mfp-content .rtm-single-meta .rtmedia-scroll{height:100%;overflow-X:hidden}}.rtl #rtSelectPrivacy{float:left}.rtl .rtmedia-plupload-container{float:right}.rtl .rtm-upload-button-wrapper{float:right}.rtl #whats-new-post-in-box{float:right}.rtl .describe-toggle-off{float:left}.rtl .media-item .pinkynail{float:right}.rtl .media-item .progress{float:left}.rtl .media-item .error-div a.dismiss{float:left}.rtl #find-posts-input{float:right}.rtl #find-posts-search{float:right}.rtl .spinner{float:left}.rtl .wp_attachment_image .button,.rtl .A1B1 .button{float:right}.rtl .wp_attachment_image .spinner,.rtl .A1B1 .spinner{float:right}.rtl .imgedit-menu div{float:right}.rtl .wp_attachment_image .bp-media-image-edit{float:right}.rtl .rtmedia-container .rtmedia-list .rtmedia-list-item{float:right}.rtl #buddypress #rtm-media-options-list .rtm-options .button{float:right}.rtl .rtm-ltb-title{float:right}.rtl .rtm-item-actions{float:left}.rtl .rtm-item-actions>div,.rtl .rtm-item-actions>form{float:right}.rtl .userprofile{float:right}.rtl .rtmedia-actions-before-comments>span{float:right}.rtl .rtmedia-comment-user-pic{float:right}.rtl .rtmedia-media-name{float:right}.rtl #rtmedia-uploader-form .rtm-plupload-list li,.rtl #rtmedia_uploader_filelist li{float:right}.rtl .rtm-page-number{float:right}.rtl .rtm-page-number .rtmedia-page-link{float:right}.rtl .rtm-pagination{float:right}.rtl .rtm-pagination .rtm-paginate{float:left}.rtl .rtm-tabs li{float:right}.rtl .alignleft{float:right}.rtl .alignright{float:left}
app/assets/css/sass/_activity.scss CHANGED
@@ -12,6 +12,65 @@
12
  box-sizing: inherit;
13
  }
14
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
16
 
17
  // remove border and padding
@@ -132,7 +191,6 @@ form.rt_media_comment_form .rtmedia-plupload-container {
132
  }
133
  }
134
 
135
- //
136
  #rtmedia_show_all_comment {
137
  cursor: pointer;
138
 
@@ -141,16 +199,23 @@ form.rt_media_comment_form .rtmedia-plupload-container {
141
  }
142
  }
143
 
144
- .rtmedia-uploader-div {
145
  opacity: 0;
146
  display: none;
147
- visibility: hidden;
 
 
 
 
 
 
148
  }
149
 
150
  .ac-form .rtmedia-uploader-div, .rt_media_comment_form .rtmedia-uploader-div {
151
  opacity: 1;
152
  display: block;
153
  visibility: visible;
 
154
  }
155
 
156
  #whats-new-options {
@@ -164,4 +229,4 @@ a.rtmedia-comment-link{
164
 
165
  a.rtmedia-comment-link.rtmedia-comments-link{
166
  display: initial;
167
- }
12
  box-sizing: inherit;
13
  }
14
  }
15
+
16
+ .rtmedia-list.masonry {
17
+ list-style:none;
18
+ padding: 0;
19
+ }
20
+
21
+ .rtmedia-list.masonry p {
22
+ display: none;
23
+ }
24
+
25
+ .rtmedia-list.masonry:after {
26
+ content: '';
27
+ display: block;
28
+ clear: both;
29
+ }
30
+
31
+ .rtmedia-list-item.masonry-brick {
32
+ display: inline-block;
33
+ float: left;
34
+ width: 32%;
35
+ padding: 0 !important;
36
+
37
+ .mejs-container {
38
+ min-width: 33% !important;
39
+ margin: 0 0 5px 0;
40
+ width: 100% !important;
41
+
42
+ .mejs-controls {
43
+ width: 100%;
44
+
45
+ .mejs-time-total {
46
+ display: none;
47
+ }
48
+
49
+ .mejs-horizontal-volume-slider {
50
+ width: 20%;
51
+ padding-left: 5px;
52
+
53
+ .mejs-horizontal-volume-total {
54
+ width: 100%;
55
+ }
56
+
57
+ .mejs-time-loaded {
58
+ display: none;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ .rtmedia-list-item.masonry-brick img {
66
+ display: block;
67
+ max-width: 100%;
68
+ }
69
+
70
+ .rtmedia-list-item.masonry-brick .rtmedia-item-title {
71
+ display:none;
72
+ }
73
+
74
  }
75
 
76
  // remove border and padding
191
  }
192
  }
193
 
 
194
  #rtmedia_show_all_comment {
195
  cursor: pointer;
196
 
199
  }
200
  }
201
 
202
+ #whats-new-options {
203
  opacity: 0;
204
  display: none;
205
+
206
+ .rtmedia-uploader-div {
207
+ opacity: 0;
208
+ display: none;
209
+ visibility: hidden;
210
+ }
211
+
212
  }
213
 
214
  .ac-form .rtmedia-uploader-div, .rt_media_comment_form .rtmedia-uploader-div {
215
  opacity: 1;
216
  display: block;
217
  visibility: visible;
218
+
219
  }
220
 
221
  #whats-new-options {
229
 
230
  a.rtmedia-comment-link.rtmedia-comments-link{
231
  display: initial;
232
+ }
app/assets/css/sass/_media-tab.scss CHANGED
@@ -1,17 +1,17 @@
1
  body {
2
- article.bp_members.bp_member,
3
- div.bp_members.bp_member {
4
- .entry-content {
5
- width: 100%;
6
- }
7
- }
8
  }
9
 
10
  .rtm-media-gallery-uploader {
11
  display: none;
12
  }
13
 
14
- .rtmedia-uploader{
15
  .drag-drop {
16
  border: 4px dashed #DDD;
17
  text-align: center;
@@ -53,37 +53,39 @@ body {
53
  }
54
  }
55
 
56
-
57
  .rtm-uploader-main-wrapper {
58
- .rtm-uploader-tabs {
59
- margin-bottom: 10px;
60
- text-align: left;
61
- }
62
- ul{
63
- border-bottom: 1px solid #CCC;
64
- }
65
- li{
66
- margin: 0 0 -1px 10px;
67
- display: inline-block;
68
- padding: 5px 10px;
69
- line-height: 25px;
70
- background-color: #e4e4e4;
71
- border: 1px solid #CCC;
72
- &.active{
73
- background: transparent;
74
- border-left: 1px solid #CCC;
75
- border-top: 1px solid #CCC;
76
- border-right: 1px solid #CCC;
77
- border-bottom: 1px solid #fafafa;
78
- }
79
- &:hover{
80
- cursor: pointer;
81
- }
82
- }
 
 
 
 
83
  }
84
 
85
  .rtmedia-container .rtmedia-list {
86
-
87
  margin: 10px -5px;
88
 
89
  .rtmedia-list-item {
@@ -142,9 +144,19 @@ body {
142
  }
143
  }
144
 
 
 
 
 
 
 
 
 
145
  .rtm-media-options {
146
  line-height: 1.4;
147
  margin-bottom: 10px;
 
 
148
 
149
  & > div {
150
  display: inline-block;
@@ -157,13 +169,13 @@ body {
157
  position: relative;
158
  }
159
 
160
- & > * {
161
- border-right: 1px solid #999;
162
 
163
- &:last-child {
164
- border-right: none;
165
- }
166
- }
167
 
168
  .dashicons {
169
  font-size: inherit;
@@ -171,6 +183,94 @@ body {
171
  }
172
  }
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  .rtmedia-upload-media-link {
175
  cursor: pointer;
176
  }
@@ -179,7 +279,6 @@ a.rtmedia-upload-media-link {
179
  border: none;
180
  }
181
 
182
-
183
  .rtm-album-privacy {
184
  span {
185
  font-size: 16px;
1
  body {
2
+ article.bp_members.bp_member,
3
+ div.bp_members.bp_member {
4
+ .entry-content {
5
+ width: 100%;
6
+ }
7
+ }
8
  }
9
 
10
  .rtm-media-gallery-uploader {
11
  display: none;
12
  }
13
 
14
+ .rtmedia-uploader {
15
  .drag-drop {
16
  border: 4px dashed #DDD;
17
  text-align: center;
53
  }
54
  }
55
 
 
56
  .rtm-uploader-main-wrapper {
57
+ .rtm-uploader-tabs {
58
+ margin-bottom: 10px;
59
+ text-align: left;
60
+ }
61
+
62
+ ul {
63
+ border-bottom: 1px solid #CCC;
64
+ }
65
+
66
+ li {
67
+ margin: 0 0 -1px 10px;
68
+ display: inline-block;
69
+ padding: 5px 10px;
70
+ line-height: 25px;
71
+ background-color: #e4e4e4;
72
+ border: 1px solid #CCC;
73
+
74
+ &.active {
75
+ background: transparent;
76
+ border-left: 1px solid #CCC;
77
+ border-top: 1px solid #CCC;
78
+ border-right: 1px solid #CCC;
79
+ border-bottom: 1px solid #fafafa;
80
+ }
81
+
82
+ &:hover {
83
+ cursor: pointer;
84
+ }
85
+ }
86
  }
87
 
88
  .rtmedia-container .rtmedia-list {
 
89
  margin: 10px -5px;
90
 
91
  .rtmedia-list-item {
144
  }
145
  }
146
 
147
+ .rtm-media-options.rtm-media-search-enable {
148
+ & > * {
149
+ &:nth-last-child(2) {
150
+ border-right: none;
151
+ }
152
+ }
153
+ }
154
+
155
  .rtm-media-options {
156
  line-height: 1.4;
157
  margin-bottom: 10px;
158
+ clear: both;
159
+ /*overflow: hidden;*/
160
 
161
  & > div {
162
  display: inline-block;
169
  position: relative;
170
  }
171
 
172
+ & > * {
173
+ border-right: 1px solid #999;
174
 
175
+ &:last-child {
176
+ border-right: none;
177
+ }
178
+ }
179
 
180
  .dashicons {
181
  font-size: inherit;
183
  }
184
  }
185
 
186
+ #buddypress {
187
+ .media_search.media_search {
188
+ .search_by {
189
+ margin-top: 3px;
190
+ }
191
+ }
192
+ }
193
+
194
+ .media_search.media_search {
195
+ float: right;
196
+ border: 1px solid #ccc;
197
+ margin-left: 5px;
198
+ padding: 3px 0;
199
+
200
+ .media_search_input {
201
+ width: 200px;
202
+ outline: 0;
203
+ max-width: 200px;
204
+ margin: 0;
205
+ box-shadow: none;
206
+ padding: 5px 6px;
207
+ border: none;
208
+ background: transparent;
209
+ float: left;
210
+ max-height: 30px;
211
+ }
212
+
213
+ #media_fatch_loader.load {
214
+ float: left;
215
+ width: 20px;
216
+ height: 30px;
217
+ position: relative;
218
+
219
+ &:before {
220
+ content: '';
221
+ border-radius: 50%;
222
+ border: 1px solid #aaa;
223
+ border-top-color: rgba(255, 255, 255, 0.9);
224
+ animation: spinner .8s linear infinite;
225
+ -webkit-animation: spinner .8s linear infinite;
226
+ position: absolute;
227
+ width: 15px;
228
+ height: 15px;
229
+ top: 24%;
230
+ }
231
+ }
232
+
233
+ .search_option {
234
+ padding: 0;
235
+ background: transparent;
236
+ color: #000;
237
+ margin-bottom: 0;
238
+ line-height: 1;
239
+ border: none;
240
+ }
241
+
242
+ .media_search_remove.search_option {
243
+ display: none;
244
+
245
+ i {
246
+ margin-top: 4px;
247
+ }
248
+ }
249
+
250
+ .search_by {
251
+ background: transparent;
252
+ margin-top: 3px;
253
+ float: left;
254
+ width: auto;
255
+ margin-bottom: 0;
256
+ height: auto;
257
+ padding-top: 0;
258
+ padding-bottom: 0;
259
+ }
260
+ }
261
+
262
+ @keyframes spinner {
263
+ to {
264
+ transform: rotate(360deg);
265
+ }
266
+ }
267
+
268
+ @-webkit-keyframes spinner {
269
+ to {
270
+ -webkit-transform: rotate(360deg);
271
+ }
272
+ }
273
+
274
  .rtmedia-upload-media-link {
275
  cursor: pointer;
276
  }
279
  border: none;
280
  }
281
 
 
282
  .rtm-album-privacy {
283
  span {
284
  font-size: 16px;
app/assets/css/sass/_popup.scss CHANGED
@@ -267,6 +267,7 @@
267
  }
268
 
269
  .rtmedia-media {
 
270
  img {
271
  display: inline-block;
272
  max-height: inherit;
267
  }
268
 
269
  .rtmedia-media {
270
+ margin: 0 auto;
271
  img {
272
  display: inline-block;
273
  max-height: inherit;
app/assets/css/sass/_responsive.scss CHANGED
@@ -2,11 +2,12 @@
2
 
3
  .mfp-content {
4
  .rtm-lightbox-container {
5
- display: table;
6
 
7
  // Fixed issue in Firefox and Opera
8
  table-layout: fixed;
9
  width: 100%;
 
10
  }
11
 
12
  .rtm-mfp-close {
@@ -14,15 +15,15 @@
14
  }
15
 
16
  .rtm-single-media {
17
- display: table-cell;
18
  width: 66.6667%;
 
19
  }
20
 
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%;
2
 
3
  .mfp-content {
4
  .rtm-lightbox-container {
5
+ display: flex;
6
 
7
  // Fixed issue in Firefox and Opera
8
  table-layout: fixed;
9
  width: 100%;
10
+ min-height: 473px;
11
  }
12
 
13
  .rtm-mfp-close {
15
  }
16
 
17
  .rtm-single-media {
18
+ display: flex;
19
  width: 66.6667%;
20
+ align-items: center;
21
  }
22
 
23
  .rtm-single-meta {
24
+ display: block;
25
  width: 33.3333%;
26
  padding: 20px;
 
27
 
28
  .rtmedia-scroll {
29
  height: 100%;
app/assets/js/rtMedia.backbone.js CHANGED
@@ -92,7 +92,8 @@ jQuery( function( $ ) {
92
  }
93
  return url;
94
  },
95
- getNext: function( page, el, element ) {
 
96
  if ( jQuery( '.rtmedia-no-media-found' ).length > 0 ) {
97
  jQuery( '.rtmedia-no-media-found' ).replaceWith( '<ul class=\'rtmedia-list rtmedia-list-media\'></ul>' );
98
  }
@@ -106,15 +107,32 @@ jQuery( function( $ ) {
106
  }
107
  $( '#rtmedia-gallery-item-template' ).load( template_url, { backbone: true, is_album: o_is_album, is_edit_allowed: o_is_edit_allowed }, function() {
108
  rtmedia_load_template_flag = false;
109
- that.getNext( page, el, element );
110
  } );
111
  }
112
 
113
  if ( ! rtmedia_load_template_flag ) {
114
  var query = {
115
  json: true,
116
- rtmedia_page: nextpage
117
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  if ( el == undefined ) {
119
  el = jQuery( '.rtmedia-list' ).parent().parent();
120
  }
@@ -134,10 +152,10 @@ jQuery( function( $ ) {
134
  }
135
  } );
136
  }
137
-
138
  this.fetch( {
139
  data: query,
140
  success: function( model, response ) {
 
141
  jQuery( '.rtm-media-loading' ).hide();
142
  var list_el = '';
143
 
@@ -150,7 +168,6 @@ jQuery( function( $ ) {
150
  } else {
151
  list_el = element.parent().siblings( '.rtmedia-list' );
152
  }
153
-
154
  nextpage = response.next;
155
 
156
  if ( nextpage < 1 ) {
@@ -160,10 +177,13 @@ jQuery( function( $ ) {
160
  //$("#rtMedia-galary-next").show();
161
  }
162
 
 
 
163
  var galleryViewObj = new rtMedia.GalleryView( {
164
  collection: new rtMedia.Gallery( response.data ),
165
- el: list_el
166
  } );
 
167
  //Element.show();
168
 
169
  // get current gallery container object
@@ -185,6 +205,7 @@ jQuery( function( $ ) {
185
  }
186
  } );
187
  }
 
188
  },
189
  reloadView: function( parent_el ) {
190
  upload_sync = true;
@@ -219,6 +240,7 @@ jQuery( function( $ ) {
219
  tagName: 'ul',
220
  className: 'rtmedia-list',
221
  initialize: function() {
 
222
  this.template = _.template( $( '#rtmedia-gallery-item-template' ).html() );
223
  this.render();
224
  },
@@ -230,13 +252,21 @@ jQuery( function( $ ) {
230
  $( that.el ).html( '' );
231
  }
232
 
233
- if ( typeof ( rtmedia_load_more_or_pagination ) != 'undefined' && rtmedia_load_more_or_pagination == 'pagination' ) {
234
  $( that.el ).html( '' );
235
  }
236
 
237
- $.each( this.collection.toJSON(), function( key, media ) {
238
- $( that.el ).append( that.template( media ) );
239
- } );
 
 
 
 
 
 
 
 
240
 
241
  if ( upload_sync ) {
242
  upload_sync = false;
@@ -245,9 +275,10 @@ jQuery( function( $ ) {
245
  $( that.el ).siblings( '.rtmedia_next_prev' ).children( '#rtMedia-galary-next' ).show();
246
  //$("#rtMedia-galary-next").show();
247
  }
248
- if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
249
  rtm_masonry_reload( rtm_masonry_container );
250
  }
 
251
  },
252
  appendTo: function( media ) {
253
  var mediaView = new rtMedia.MediaView( {
@@ -280,7 +311,6 @@ jQuery( function( $ ) {
280
 
281
  /**
282
  * onClick Show all comment
283
- * By: Yahil
284
  */
285
  $( document ).on( 'click', '#rtmedia_show_all_comment', function() {
286
  var show_comment = $( '#rtmedia_show_all_comment' ).parent().next();
@@ -361,8 +391,71 @@ jQuery( function( $ ) {
361
  galleryObj.getNext( nextpage, $( this ).parents( '.rtmedia_gallery_wrapper' ), $( this ).parents( '.rtm-pagination' ) );
362
  }
363
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  change_rtBrowserAddressUrl( href, '' );
 
 
 
 
365
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
366
  } );
367
 
368
  if ( window.location.pathname.indexOf( rtmedia_media_slug ) != -1 ) {
@@ -774,6 +867,34 @@ jQuery( function( $ ) {
774
 
775
  jQuery( document ).ready( function( $ ) {
776
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
777
  // Handling the "post update: button on activity page
778
  /**
779
  * Commented by : Naveen giri
@@ -843,8 +964,9 @@ jQuery( document ).ready( function( $ ) {
843
  $.each( rfiles, function( i, file ) {
844
 
845
  //Set file title along with file
 
 
846
  rtm_file_name_array = file.name.split( '.' );
847
- file.title = rtm_file_name_array[0];
848
 
849
  var hook_respo = rtMediaHook.call( 'rtmedia_js_file_added', [ upl, file, '#rtmedia_uploader_filelist' ] );
850
 
@@ -1079,7 +1201,7 @@ jQuery( document ).ready( function( $ ) {
1079
 
1080
  up.settings.multipart_params.context = object;
1081
  up.settings.multipart_params.context_id = item_id;
1082
- up.settings.multipart_params.title = files.title.split( '.' )[ 0 ];
1083
 
1084
  if ( typeof files.description != 'undefined' ) {
1085
  up.settings.multipart_params.description = files.description;
@@ -1575,6 +1697,44 @@ function change_rtBrowserAddressUrl( url, page ) {
1575
  }
1576
 
1577
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1578
 
1579
  /*
1580
  * To change this template, choose Tools | Templates
@@ -2141,10 +2301,9 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
2141
 
2142
  rtMediaHook.call( 'rtmedia_js_after_files_added', [ upl, rfiles ] );
2143
 
2144
- if ( typeof rtmedia_direct_upload_enabled != 'undefined' && rtmedia_direct_upload_enabled == '1' ) {
2145
-
2146
  var allow_upload = rtMediaHook.call( 'rtmedia_js_upload_file', true );
2147
- if ( allow_upload == false ) {
2148
  return false;
2149
  }
2150
 
@@ -2237,7 +2396,6 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
2237
  up.settings.multipart_params.rtmedia_update = true;
2238
  up.settings.multipart_params.activity_id = 'null';
2239
  up.settings.multipart_params.title = files.title.split( '.' )[ 0 ];
2240
-
2241
  if ( typeof files.description != 'undefined' ) {
2242
  up.settings.multipart_params.description = files.description;
2243
  } else {
92
  }
93
  return url;
94
  },
95
+ getNext: function( page, el, element) {
96
+
97
  if ( jQuery( '.rtmedia-no-media-found' ).length > 0 ) {
98
  jQuery( '.rtmedia-no-media-found' ).replaceWith( '<ul class=\'rtmedia-list rtmedia-list-media\'></ul>' );
99
  }
107
  }
108
  $( '#rtmedia-gallery-item-template' ).load( template_url, { backbone: true, is_album: o_is_album, is_edit_allowed: o_is_edit_allowed }, function() {
109
  rtmedia_load_template_flag = false;
110
+ that.getNext( page, el, element);
111
  } );
112
  }
113
 
114
  if ( ! rtmedia_load_template_flag ) {
115
  var query = {
116
  json: true,
 
117
  };
118
+
119
+ //media search
120
+ if( check_condition( 'search' ) ) {
121
+ if ( '' != $( '#media_search_input' ).val() ) {
122
+ var search = check_url( 'search' );
123
+ query.search = search;
124
+ if ( check_condition( 'search_by' ) ) {
125
+ var search_by = check_url( 'search_by' );
126
+ query.search_by = search_by;
127
+ }
128
+ query.rtmedia_page = nextpage;
129
+ } else {
130
+ query.rtmedia_page = 1;
131
+ }
132
+ } else {
133
+ query.rtmedia_page = nextpage;
134
+ }
135
+
136
  if ( el == undefined ) {
137
  el = jQuery( '.rtmedia-list' ).parent().parent();
138
  }
152
  }
153
  } );
154
  }
 
155
  this.fetch( {
156
  data: query,
157
  success: function( model, response ) {
158
+
159
  jQuery( '.rtm-media-loading' ).hide();
160
  var list_el = '';
161
 
168
  } else {
169
  list_el = element.parent().siblings( '.rtmedia-list' );
170
  }
 
171
  nextpage = response.next;
172
 
173
  if ( nextpage < 1 ) {
177
  //$("#rtMedia-galary-next").show();
178
  }
179
 
180
+ rtMedia.gallery = {};
181
+ rtMedia.gallery.page = page;
182
  var galleryViewObj = new rtMedia.GalleryView( {
183
  collection: new rtMedia.Gallery( response.data ),
184
+ el: list_el,
185
  } );
186
+
187
  //Element.show();
188
 
189
  // get current gallery container object
205
  }
206
  } );
207
  }
208
+
209
  },
210
  reloadView: function( parent_el ) {
211
  upload_sync = true;
240
  tagName: 'ul',
241
  className: 'rtmedia-list',
242
  initialize: function() {
243
+
244
  this.template = _.template( $( '#rtmedia-gallery-item-template' ).html() );
245
  this.render();
246
  },
252
  $( that.el ).html( '' );
253
  }
254
 
255
+ if ( typeof ( rtmedia_load_more_or_pagination ) != 'undefined' && rtmedia_load_more_or_pagination == 'pagination' || ( 1 == rtMedia.gallery.page ) ) {
256
  $( that.el ).html( '' );
257
  }
258
 
259
+ // Remove no data found message if it's there.
260
+ if ( $( '.rtmedia-nodata' ).length > 0 ) {
261
+ $( '.rtmedia-nodata' ).remove();
262
+ }
263
+ if ( 0 == this.collection.length ) {
264
+ $( '.rtmedia-container' ).append( '<p class="rtmedia-nodata">' + rtmedia_no_media_found + '</p>' );
265
+ } else {
266
+ $.each( this.collection.toJSON(), function( key, media ) {
267
+ $( that.el ).append( that.template( media ) );
268
+ } );
269
+ }
270
 
271
  if ( upload_sync ) {
272
  upload_sync = false;
275
  $( that.el ).siblings( '.rtmedia_next_prev' ).children( '#rtMedia-galary-next' ).show();
276
  //$("#rtMedia-galary-next").show();
277
  }
278
+ if ( 'undefined' != typeof rtmedia_masonry_layout && 'true' == rtmedia_masonry_layout && 0 == jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length ) {
279
  rtm_masonry_reload( rtm_masonry_container );
280
  }
281
+ $( '#media_fatch_loader' ).removeClass('load');
282
  },
283
  appendTo: function( media ) {
284
  var mediaView = new rtMedia.MediaView( {
311
 
312
  /**
313
  * onClick Show all comment
 
314
  */
315
  $( document ).on( 'click', '#rtmedia_show_all_comment', function() {
316
  var show_comment = $( '#rtmedia_show_all_comment' ).parent().next();
391
  galleryObj.getNext( nextpage, $( this ).parents( '.rtmedia_gallery_wrapper' ), $( this ).parents( '.rtm-pagination' ) );
392
  }
393
 
394
+ if( check_condition( 'search' ) ) {
395
+ var search_val = check_url( 'search' );
396
+ href += '?search=' + search_val;
397
+
398
+ if( check_condition( 'search_by' ) ) {
399
+ var search_by = check_url( 'search_by' );
400
+ href += '&search_by=' + search_by ;
401
+ }
402
+ }
403
+
404
+ change_rtBrowserAddressUrl( href, '' );
405
+ if ( $( this ).data( 'page-type' ) == 'num' ) {
406
+ galleryObj.getNext( nextpage, $( this ).parent().parent().parent().parent().parent(), $( this ).parent().parent() );
407
+ } else {
408
+ galleryObj.getNext( nextpage, $( this ).parent().parent().parent().parent().parent(), $( this ).parent().parent() );
409
+ }
410
+ } );
411
+
412
+ $( document ).on( 'submit', 'form#media_search_form', function( e ) {
413
+ e.preventDefault();
414
+
415
+ var $media_search_input = $( '#media_search_input' ).val();
416
+ var $media_search = $( '#media_search' );
417
+ var $media_fatch_loader = $( '#media_fatch_loader' );
418
+
419
+ if ( '' === $media_search_input ) {
420
+ return false;
421
+ }
422
+
423
+ $media_search.css( 'cursor', 'pointer');
424
+ $media_fatch_loader.addClass('load');
425
+ nextpage = 1;
426
+
427
+ var href = window.location.href;
428
+ // Remove query string.
429
+ if ( href.indexOf('?') > -1) {
430
+ href = window.location.pathname;
431
+ }
432
+
433
+ href += '?search=' + $media_search_input;
434
+ if ( $( '#search_by' ).length > 0 ) {
435
+ href += '&search_by=' + $( '#search_by' ).val();
436
+ }
437
+
438
  change_rtBrowserAddressUrl( href, '' );
439
+ galleryObj.getNext( nextpage, $( this ).closest( '.rtmedia-container' ).parent() );
440
+
441
+ $( '#media_search_remove' ).show();
442
+ } );
443
 
444
+ // media search remove
445
+ $( document ).on( 'click', '#media_search_remove', function( e ) {
446
+ $( '#media_search' ).css( 'cursor', 'not-allowed');
447
+ $( '#media_fatch_loader' ).addClass('load');
448
+ jQuery( '#media_search_input' ).val('');
449
+ nextpage = 1;
450
+ var href = window.location.pathname;
451
+ if ( check_condition( '/pg' ) ) {
452
+ remove_index = href.indexOf('pg');
453
+ remove_href = href.substring( remove_index );
454
+ href = href.replace( remove_href, '' );
455
+ }
456
+ change_rtBrowserAddressUrl( href, '' );
457
+ galleryObj.getNext( nextpage, $( this ).parent().parent().parent().parent().parent());
458
+ $( '#media_search_remove' ).hide();
459
  } );
460
 
461
  if ( window.location.pathname.indexOf( rtmedia_media_slug ) != -1 ) {
867
 
868
  jQuery( document ).ready( function( $ ) {
869
 
870
+ /*
871
+ * Fix for file selector does not open in Safari browser in IOS.
872
+ * In Safari in IOS, Plupload don't click on it's input(type=file), so file selector dialog won't open.
873
+ * In order to fix this, when rtMedia's attach media button is clicked,
874
+ * we check if Plupload's input(type=file) is clicked or not, if it's not clicked, then we click it manually
875
+ * to open file selector.
876
+ */
877
+
878
+ // Initially, select file dialog is close.
879
+ var file_dialog_open = false;
880
+
881
+ var button = '#rtmedia-upload-container #rtMedia-upload-button';
882
+
883
+ var input_file_el = '#rtmedia-upload-container input[type=file]:first';
884
+
885
+ // Bind callback on Plupload's input element.
886
+ jQuery( document.body ).on( 'click', input_file_el, function() {
887
+ file_dialog_open = true;
888
+ } );
889
+
890
+ // Bind callback on rtMedia's attach media button.
891
+ jQuery( document.body ).on( 'click', button, function() {
892
+ if ( false === file_dialog_open ) {
893
+ jQuery( input_file_el ).click();
894
+ file_dialog_open = false;
895
+ }
896
+ } );
897
+
898
  // Handling the "post update: button on activity page
899
  /**
900
  * Commented by : Naveen giri
964
  $.each( rfiles, function( i, file ) {
965
 
966
  //Set file title along with file
967
+ file.title = file.name.substring(0,file.name.lastIndexOf("."));
968
+
969
  rtm_file_name_array = file.name.split( '.' );
 
970
 
971
  var hook_respo = rtMediaHook.call( 'rtmedia_js_file_added', [ upl, file, '#rtmedia_uploader_filelist' ] );
972
 
1201
 
1202
  up.settings.multipart_params.context = object;
1203
  up.settings.multipart_params.context_id = item_id;
1204
+ up.settings.multipart_params.title = files.title;
1205
 
1206
  if ( typeof files.description != 'undefined' ) {
1207
  up.settings.multipart_params.description = files.description;
1697
  }
1698
 
1699
 
1700
+ /**
1701
+ * Get query string value
1702
+ * ref: http://stackoverflow.com/questions/9870512/how-to-obtaining-the-querystring-from-the-current-url-with-javascript
1703
+ * return string
1704
+ */
1705
+ function getQueryStringValue (key) {
1706
+ return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + encodeURIComponent(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));
1707
+ }
1708
+
1709
+ /**
1710
+ * Check paramater are available or not in url
1711
+ * return bool
1712
+ */
1713
+ function check_condition( key ) {
1714
+ if( window.location.href.indexOf(key) > 0 ) {
1715
+ return true;
1716
+ } else {
1717
+ return false;
1718
+ }
1719
+ }
1720
+
1721
+ /**
1722
+ * Check paramater are available or not in URL parameters
1723
+ * Ref: https://www.kevinleary.net/jquery-parse-url
1724
+ * return bool
1725
+ */
1726
+ function check_url( query ) {
1727
+ query = query.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
1728
+ var expr = "[\\?&]"+query+"=([^&#]*)";
1729
+ var regex = new RegExp( expr );
1730
+ var results = regex.exec( window.location.href );
1731
+ if( null !== results ) {
1732
+ return results[1];
1733
+ return decodeURIComponent(results[1].replace(/\+/g, " "));
1734
+ } else {
1735
+ return false;
1736
+ }
1737
+ }
1738
 
1739
  /*
1740
  * To change this template, choose Tools | Templates
2301
 
2302
  rtMediaHook.call( 'rtmedia_js_after_files_added', [ upl, rfiles ] );
2303
 
2304
+ if ( 'undefined' != typeof rtmedia_direct_upload_enabled && '1' == rtmedia_direct_upload_enabled ) {
 
2305
  var allow_upload = rtMediaHook.call( 'rtmedia_js_upload_file', true );
2306
+ if ( false == allow_upload ) {
2307
  return false;
2308
  }
2309
 
2396
  up.settings.multipart_params.rtmedia_update = true;
2397
  up.settings.multipart_params.activity_id = 'null';
2398
  up.settings.multipart_params.title = files.title.split( '.' )[ 0 ];
 
2399
  if ( typeof files.description != 'undefined' ) {
2400
  up.settings.multipart_params.description = files.description;
2401
  } else {
app/assets/js/rtMedia.js CHANGED
@@ -106,8 +106,9 @@ function apply_rtMagnificPopup( selector ) {
106
  }
107
  }, false);
108
  // Call the play method
 
109
  // check if it's mobile
110
- if( probablymobile && mediaElement.hasClass( "wp-video-shortcode" ) ){
111
  jQuery( 'body' ).on('touchstart', '.mejs-overlay-button' , function(e) {
112
  mediaElement.paused ? mediaElement.play() : mediaElement.pause();
113
  });
@@ -196,6 +197,16 @@ function rtmedia_init_action_dropdown( parent ) {
196
 
197
  jQuery( 'document' ).ready( function( $ ) {
198
 
 
 
 
 
 
 
 
 
 
 
199
  // Tabs
200
  if ( typeof $.fn.rtTab !== 'undefined' ) {
201
  $( '.rtm-tabs' ).rtTab();
@@ -206,7 +217,7 @@ jQuery( 'document' ).ready( function( $ ) {
206
  $( '.rtmedia-modal-link' ).magnificPopup( {
207
  type: 'inline',
208
  midClick: true, // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href
209
- closeBtnInside: true
210
  } );
211
  }
212
 
@@ -330,6 +341,7 @@ jQuery( 'document' ).ready( function( $ ) {
330
 
331
  jQuery( '#rtmedia-create-album-modal' ).on( 'click', '#rtmedia_create_new_album', function( e ) {
332
  $albumname = jQuery( '<span/>' ).text( jQuery.trim( jQuery( '#rtmedia_album_name' ).val() ) ).html();
 
333
  $context = jQuery.trim( jQuery( '#rtmedia_album_context' ).val() );
334
  $context_id = jQuery.trim( jQuery( '#rtmedia_album_context_id' ).val() );
335
  $privacy = jQuery.trim( jQuery( '#rtmedia_select_album_privacy' ).val() );
@@ -339,6 +351,7 @@ jQuery( 'document' ).ready( function( $ ) {
339
  var data = {
340
  action: 'rtmedia_create_album',
341
  name: $albumname,
 
342
  context: $context,
343
  context_id: $context_id,
344
  create_album_nonce: $create_album_nonce
@@ -352,11 +365,12 @@ jQuery( 'document' ).ready( function( $ ) {
352
  $( '#rtmedia_create_new_album' ).attr( 'disabled', 'disabled' );
353
  var old_val = $( '#rtmedia_create_new_album' ).html();
354
  $( '#rtmedia_create_new_album' ).prepend( '<img src=\'' + rMedia_loading_file + '\' />' );
355
-
356
  jQuery.post( rtmedia_ajax_url, data, function( response ) {
357
  if ( typeof response.album != 'undefined' ) {
358
  response = jQuery.trim( response.album );
359
  var flag = true;
 
 
360
 
361
  jQuery( '.rtmedia-user-album-list' ).each( function() {
362
  jQuery( this ).children( 'optgroup' ).each( function() {
@@ -459,6 +473,10 @@ jQuery( 'document' ).ready( function( $ ) {
459
  } );
460
  } );
461
 
 
 
 
 
462
  function rtmedia_media_view_counts() {
463
  //Var view_count_action = jQuery('#rtmedia-media-view-form').attr("action");
464
  if ( jQuery( '#rtmedia-media-view-form' ).length > 0 ) {
@@ -648,7 +666,21 @@ jQuery( 'document' ).ready( function( $ ) {
648
  } );
649
  }
650
 
651
- // Masonry code
 
 
 
 
 
 
 
 
 
 
 
 
 
 
652
  if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
653
  rtm_masonry_container = jQuery( '.rtmedia-container .rtmedia-list' );
654
  rtm_masonry_container.masonry( {
@@ -911,20 +943,30 @@ function rtm_masonry_reload( el ) {
911
  })( jQuery );
912
 
913
  window.onload = function() {
914
- if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
915
  rtm_masonry_reload( rtm_masonry_container );
916
  }
917
- jQuery( ' .rtmedia-uploader-div' ).css({
918
- 'opacity': '1',
919
- 'display': 'block',
920
- 'visibility': 'visible'
921
- });
922
 
923
- jQuery( ' #whats-new-options ' ).css({
924
- 'opacity': '1',
925
- });
 
 
 
926
  };
927
 
 
 
 
 
 
 
 
 
 
 
 
 
928
  // Get query string parameters from url
929
  function rtmediaGetParameterByName( name ) {
930
  name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
@@ -972,3 +1014,24 @@ function rtmedia_gallery_action_alert_message( msg, action ) {
972
  jQuery( '.rtmedia-gallery-alert-container' ).remove();
973
  } );
974
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  }
107
  }, false);
108
  // Call the play method
109
+
110
  // check if it's mobile
111
+ if( probablymobile && $( mediaElement ).hasClass( "wp-video-shortcode" ) ){
112
  jQuery( 'body' ).on('touchstart', '.mejs-overlay-button' , function(e) {
113
  mediaElement.paused ? mediaElement.play() : mediaElement.pause();
114
  });
197
 
198
  jQuery( 'document' ).ready( function( $ ) {
199
 
200
+ jQuery( '.rtmedia-uploader-div' ).css({
201
+ 'opacity': '1',
202
+ 'display': 'block',
203
+ 'visibility': 'visible'
204
+ });
205
+
206
+ jQuery( ' #whats-new-options ' ).css({
207
+ 'opacity': '1',
208
+ });
209
+
210
  // Tabs
211
  if ( typeof $.fn.rtTab !== 'undefined' ) {
212
  $( '.rtm-tabs' ).rtTab();
217
  $( '.rtmedia-modal-link' ).magnificPopup( {
218
  type: 'inline',
219
  midClick: true, // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href
220
+ closeBtnInside: true,
221
  } );
222
  }
223
 
341
 
342
  jQuery( '#rtmedia-create-album-modal' ).on( 'click', '#rtmedia_create_new_album', function( e ) {
343
  $albumname = jQuery( '<span/>' ).text( jQuery.trim( jQuery( '#rtmedia_album_name' ).val() ) ).html();
344
+ $album_description = jQuery( '#rtmedia_album_description' );
345
  $context = jQuery.trim( jQuery( '#rtmedia_album_context' ).val() );
346
  $context_id = jQuery.trim( jQuery( '#rtmedia_album_context_id' ).val() );
347
  $privacy = jQuery.trim( jQuery( '#rtmedia_select_album_privacy' ).val() );
351
  var data = {
352
  action: 'rtmedia_create_album',
353
  name: $albumname,
354
+ description: $album_description.val(),
355
  context: $context,
356
  context_id: $context_id,
357
  create_album_nonce: $create_album_nonce
365
  $( '#rtmedia_create_new_album' ).attr( 'disabled', 'disabled' );
366
  var old_val = $( '#rtmedia_create_new_album' ).html();
367
  $( '#rtmedia_create_new_album' ).prepend( '<img src=\'' + rMedia_loading_file + '\' />' );
 
368
  jQuery.post( rtmedia_ajax_url, data, function( response ) {
369
  if ( typeof response.album != 'undefined' ) {
370
  response = jQuery.trim( response.album );
371
  var flag = true;
372
+ $album_description.val('');
373
+ $( '#rtmedia_album_name' ).focus();
374
 
375
  jQuery( '.rtmedia-user-album-list' ).each( function() {
376
  jQuery( this ).children( 'optgroup' ).each( function() {
473
  } );
474
  } );
475
 
476
+ jQuery( '.media_search_input' ).on( 'keyup', function() {
477
+ rtm_search_media_text_validation();
478
+ } );
479
+
480
  function rtmedia_media_view_counts() {
481
  //Var view_count_action = jQuery('#rtmedia-media-view-form').attr("action");
482
  if ( jQuery( '#rtmedia-media-view-form' ).length > 0 ) {
666
  } );
667
  }
668
 
669
+ // Masonry code for activity
670
+ if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && typeof rtmedia_masonry_layout_activity != 'undefined' && rtmedia_masonry_layout_activity == 'true' ) {
671
+ // Arrange media into masonry view
672
+ rtmedia_activity_masonry();
673
+ }
674
+
675
+ // Arrange media into masonry view right after upload or clicking on readmore link to activity without pageload
676
+ jQuery( document ).ajaxComplete( function( event, xhr, settings ) {
677
+ var params = new URLSearchParams( settings.data );
678
+ if ( ( params.get('action') == 'post_update' || params.get('action') == 'get_single_activity_content' || params.get('action') == 'activity_get_older_updates' ) && typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && typeof rtmedia_masonry_layout_activity != 'undefined' && rtmedia_masonry_layout_activity == 'true' ) {
679
+ rtmedia_activity_masonry();
680
+ }
681
+ });
682
+
683
+ // Masonry code
684
  if ( typeof rtmedia_masonry_layout != 'undefined' && rtmedia_masonry_layout == 'true' && jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length == 0 ) {
685
  rtm_masonry_container = jQuery( '.rtmedia-container .rtmedia-list' );
686
  rtm_masonry_container.masonry( {
943
  })( jQuery );
944
 
945
  window.onload = function() {
946
+ if ( 'undefined' != typeof rtmedia_masonry_layout && 'true' == rtmedia_masonry_layout && 0 == jQuery( '.rtmedia-container .rtmedia-list.rtm-no-masonry' ).length ) {
947
  rtm_masonry_reload( rtm_masonry_container );
948
  }
 
 
 
 
 
949
 
950
+ rtm_search_media_text_validation();
951
+
952
+ if ( check_condition( 'search' ) ) {
953
+ jQuery( '#media_search_remove' ).show();
954
+ }
955
+
956
  };
957
 
958
+ /**
959
+ * Update style as per search testbox value
960
+ * issue: https://github.com/rtMediaWP/rtMedia/issues/834
961
+ */
962
+ function rtm_search_media_text_validation() {
963
+ if ( '' === jQuery( '#media_search_input' ).val() ) {
964
+ jQuery( '#media_search' ).css( 'cursor', 'not-allowed');
965
+ } else {
966
+ jQuery( '#media_search' ).css( 'cursor', 'pointer');
967
+ }
968
+ }
969
+
970
  // Get query string parameters from url
971
  function rtmediaGetParameterByName( name ) {
972
  name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
1014
  jQuery( '.rtmedia-gallery-alert-container' ).remove();
1015
  } );
1016
  }
1017
+
1018
+ // Set masonry view for activity
1019
+ function rtmedia_activity_masonry() {
1020
+ jQuery('#activity-stream .rtmedia-activity-container .rtmedia-list').masonry({
1021
+ itemSelector: '.rtmedia-list-item',
1022
+ gutter: 7,
1023
+ });
1024
+ var timesRun = 0;
1025
+ var interval = setInterval( function() {
1026
+ timesRun += 1;
1027
+ // Run this for 5 times only.
1028
+ if(timesRun === 5){
1029
+ clearInterval(interval);
1030
+ }
1031
+ jQuery.each( jQuery( '.rtmedia-activity-container .rtmedia-list.masonry .rtmedia-item-title' ), function( i, item ) {
1032
+ jQuery( item ).width( jQuery( item ).siblings( '.rtmedia-item-thumbnail' ).children( 'img' ).width() );
1033
+ } );
1034
+ // Reload masonry view.
1035
+ rtm_masonry_reload( jQuery('#activity-stream .rtmedia-activity-container .rtmedia-list') );
1036
+ }, 1000 );
1037
+ }
app/assets/js/rtmedia.min.js CHANGED
@@ -3,5 +3,5 @@
3
  * @package rtMedia
4
  */
5
 
6
- function apply_rtMagnificPopup(a){jQuery("document").ready(function(b){var c="";c="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&(b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length>0&&b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(a).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",tLoading:c+" #%curr%...",mainClass:"mfp-img-mobile",preload:[1,3],closeOnBgClick:!0,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:"",preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(a){return a.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){a=jQuery.magnificPopup.instance,1===jQuery(a.items).size()&&jQuery(".mfp-arrow").remove();var a=jQuery.magnificPopup.instance,c=a.currItem.el,d=c.parent();if(d.is("li")||(d=d.parent()),(d.is(":nth-last-child(2)")||d.is(":last-child"))&&d.find("a").hasClass("rtmedia-list-item-a")){d.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&jQuery("#rtMedia-galary-next").click()}var e=a.items.length;if(a.index==e-1&&!d.is(":last-child"))return void c.click();var f={};"undefined"!=typeof _wpmejsSettings&&(f.pluginPath=_wpmejsSettings.pluginPath);var g=jQuery(".rtmedia-container .rtmedia-single-meta").height(),h=!1;void 0!==a&&void 0!==a.probablyMobile&&1==a.probablyMobile&&(h=!0),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("autoplay",!0),h&&b(".mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("muted",!1),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").mediaelementplayer({defaultVideoWidth:480,hideVolumeOnTouchDevices:!1,features:["playpause","progress","current","volume","fullscreen"],defaultVideoHeight:270,alwaysShowControls:h,enableAutosize:!0,clickToPlayPause:!0,videoHeight:-1,success:function(a,c){a.addEventListener("loadeddata",function(c){var d=b(a).height(),e=b(window).height(),f=jQuery("div.rtm-ltb-action-container").height(),f=f+50,h=g-f;d>e&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+h+"px !important; transition:0.2s")},!1),h&&a.hasClass("wp-video-shortcode")?jQuery("body").on("touchstart",".mejs-overlay-button",function(b){a.paused?a.play():a.pause()}):a.play()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),"undefined"!=typeof bp&&void 0!==bp.mentions&&void 0!==bp.mentions.users&&(b("#atwho-container #atwho-ground-comment_content").remove(),b("#comment_content").bp_mentions(bp.mentions.users)),rtmedia_reset_video_and_audio_for_popup(),apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container")},close:function(a){rtmedia_single_page_popup_close()},BeforeChange:function(a){}}})),jQuery(document).ajaxComplete(function(){jQuery("[id^=imgedit-leaving]").filter(function(){var a=jQuery(this).text();jQuery(this).text(a.replace("OK","Save"))})})})}function rtmedia_init_action_dropdown(a){var b,c;jQuery(a+" .click-nav > span,"+a+" .click-nav > div").toggleClass("no-js js"),jQuery(a+" .click-nav .js ul").hide(),jQuery(a+" .click-nav .clicker").click(function(a){b=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),c=jQuery(this).next("ul"),jQuery.each(b,function(a,b){jQuery(b).html()!=c.html()&&jQuery(b).hide()}),jQuery(c).toggle(),a.stopPropagation()})}function bp_media_create_element(a){return!1}function rtmedia_version_compare(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);e<f;e++){if(c[e]&&!d[e]&&parseInt(c[e])>0||parseInt(c[e])>parseInt(d[e]))return!0;if(d[e]&&!c[e]&&parseInt(d[e])>0||parseInt(c[e])<parseInt(d[e]))return!1}return!0}function rtm_is_element_exist(a){return jQuery(a).length>0}function rtm_masonry_reload(a){setTimeout(function(){a.masonry("reload")},250)}function rtmediaGetParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null==c?"":decodeURIComponent(c[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning"),jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","0.2"),jQuery(".rtmedia-single-media .rtmedia-media").after("<div class='rtmedia-message-container'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()},3e3),jQuery(".rtmedia-message-container").click(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()})}function rtmedia_gallery_action_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning");jQuery("body").append('<div class="rtmedia-gallery-alert-container"> </div>'),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-gallery-alert-container").remove()},3e3),jQuery(".rtmedia-gallery-message-box").click(function(){jQuery(".rtmedia-gallery-alert-container").remove()})}!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h=function(){},i=!!window.jQuery,j=a(window),k=function(a,c){b.ev.on("mfp"+a+".mfp",c)},l=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},m=function(c,d){b.ev.triggerHandler("mfp"+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},n=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},o=function(){a.magnificPopup.instance||(b=new h,b.init(),a.magnificPopup.instance=b)},p=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};h.prototype={constructor:h,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=p(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(!1===c.isObj){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=l("bg").on("click.mfp",function(){b.close()}),b.wrap=l("wrap").attr("tabindex",-1).on("click.mfp",function(a){b._checkIfClose(a.target)&&b.close()}),b.container=l("container",b.wrap)),b.contentContainer=l("content"),b.st.preloader&&(b.preloader=l("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var o=i[e];o=o.charAt(0).toUpperCase()+o.slice(1),b["init"+o].call(b)}m("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(k("MarkupParse",function(a,b,c,d){c.close_replaceWith=n(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(n())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:j.scrollTop(),position:"absolute"}),(!1===b.st.fixedBgPos||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup.mfp",function(a){27===a.keyCode&&b.close()}),j.on("resize.mfp",function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var p=b.wH=j.height(),q={};if(b.fixedContentPos&&b._hasScrollBar(p)){var r=b._getScrollbarSize();r&&(q.marginRight=r)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):q.overflow="hidden");var s=b.st.mainClass;return b.isIE7&&(s+=" mfp-ie7"),s&&b._addClassToMFP(s),b.updateItemHTML(),m("BuildControls"),a("html").css(q),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP("mfp-ready"),b._setFocus()):b.bgOverlay.addClass("mfp-ready"),d.on("focusin.mfp",b._onFocusIn)},16),b.isOpen=!0,b.updateSize(p),m("Open"),c},close:function(){b.isOpen&&(m("BeforeClose"),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP("mfp-removing"),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){m("Close");var c="mfp-removing mfp-ready ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup.mfp focusin.mfp"),b.ev.off(".mfp"),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&!0!==b.currTemplate[b.currItem.type]||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,m("AfterClose")},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||j.height();b.fixedContentPos||b.wrap.css("height",b.wH),m("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(m("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=!!b.st[d]&&b.st[d].markup;m("FirstMarkupParse",f),b.currTemplate[d]=!f||a(f)}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,m("Change",c),e=c.type,b.container.prepend(b.contentContainer),m("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&!0===b.currTemplate[c]?b.content.find(".mfp-close").length||b.content.append(n()):b.content=a:b.content="",m("BeforeAppend"),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,m("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){if((void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick)||2!==c.which&&!c.ctrlKey&&!c.metaKey){var f=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(b))return!0}else if(j.width()<f)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};m("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass("mfp-prevent-close")){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||j.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return b._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),m("MarkupParse",[b,c,d]),a.each(c,function(a,c){if(void 0===c||!1===c)return!0;if(e=a.split("_"),e.length>1){var d=b.find(".mfp-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(".mfp-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(b,c){return o(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){o();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=i?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),i?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var q,r,s,t=function(){s&&(r.after(s.addClass(q)).detach(),s=null)};a.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push("inline"),k("Close.inline",function(){t()})},getInline:function(c,d){if(t(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(r||(q=e.hiddenClass,r=l(q),q="mfp-"+q),s=f.after(r).detach().removeClass(q)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var u,v=function(){u&&a(document.body).removeClass(u)},w=function(){v(),b.req&&b.req.abort()};a.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push("ajax"),u=b.st.ajax.cursor,k("Close.ajax",w),k("BeforeChange.ajax",w)},getAjax:function(c){u&&a(document.body).addClass(u),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};m("ParseAjax",g),b.appendContent(a(g.data),"ajax"),c.finished=!0,v(),b._setFocus(),setTimeout(function(){b.wrap.addClass("mfp-ready")},16),b.updateStatus("ready"),m("AjaxContentAdded")},error:function(){v(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var x,y=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),k("Open"+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),k("Close"+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),j.off("resize.mfp")}),k("Resize"+d,b.resizeImage),b.isLowIE&&k("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,x&&clearInterval(x),a.isCheckingImgSize=!1,m("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){x&&clearInterval(x),x=setInterval(function(){if(d.naturalWidth>0)return void b._onImageHasSize(a);c>200&&clearInterval(x),c++,3===c?e(10):40===c?e(50):100===c&&e(500)},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,m("ImageLoadComplete")):(e++,e<200?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:y(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(x&&clearInterval(x),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var z,A=function(){return void 0===z&&(z=void 0!==document.createElement("p").style.MozTransform),z};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,h=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},i=function(){b.content.css("visibility","visible")};k("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),!(a=b._getItemToZoom()))return void i();f=h(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){i(),setTimeout(function(){f.remove(),a=f=null,m("ZoomAnimationEnded")},16)},g)},16)}}),k("BeforeClose"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(!(a=b._getItemToZoom()))return;f=h(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),k("Close"+d,function(){b._allowZoom()&&(i(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return!!b.currItem.hasSize&&b.currItem.img},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(i?d.innerHeight():d[0].offsetHeight)-g-f};return A()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var B=function(a){if(b.currTemplate.iframe){var c=b.currTemplate.iframe.find("iframe");c.length&&(a||(c[0].src="//about:blank"),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push("iframe"),k("BeforeChange",function(a,b,c){b!==c&&("iframe"===b?B():"iframe"===c&&B(!0))}),k("Close.iframe",function(){B()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){if(e.indexOf(this.index)>-1)return this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var C=function(a){var c=b.items.length;return a>c-1?a-c:a<0?c+a:a},D=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);if(b.direction=!0,!c||!c.enabled)return!1;f+=" mfp-gallery",k("Open"+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){if(b.items.length>1)return b.next(),!1}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),k("UpdateStatus"+e,function(a,c){c.text&&(c.text=D(c.text,b.currItem.index,b.items.length))}),k("MarkupParse"+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?D(c.tCounter,f.index,g):""}),k("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(l("b",e[0],!1,!0),l("a",e[0],!1,!0),l("b",f[0],!1,!0),l("a",f[0],!1,!0)),b.container.append(e.add(f))}}),k("Change"+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),k("Close"+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})},next:function(){b.direction=!0,b.index=C(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=C(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=C(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),m("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,m("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});a.magnificPopup.registerModule("retina",{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(k("ImageHasSize.retina",function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),k("ElementParse.retina",function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b="ontouchstart"in window,c=function(){j.off("touchmove"+d+" touchend"+d)},d=".mfpFastClick";a.fn.mfpFastClick=function(e){return a(this).each(function(){var f,g=a(this);if(b){var h,i,k,l,m,n;g.on("touchstart"+d,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],i=m.clientX,k=m.clientY,j.on("touchmove"+d,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-i)>10||Math.abs(m.clientY-k)>10)&&(l=!0,c())}).on("touchend"+d,function(a){c(),l||n>1||(f=!0,a.preventDefault(),clearTimeout(h),h=setTimeout(function(){f=!1},1e3),e())})})}g.on("click"+d,function(){f||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+d+" click"+d),b&&j.off("touchmove"+d+" touchend"+d)}}(),o()}),"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;if(c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick(),!0==("false"!==c.$elem.attr("data-hash"))){var e=b.location.hash;e&&c.$elem.find("li").find('a[href="'+e+'"]').trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find('a[href="'+a+'"]').trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li");d.find("a").on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");if(a(f).removeClass("hide"),1==("false"!==c.$elem.attr("data-hash"))){var g=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(g)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){this.$elem.find("li").find("a").each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var rtMagnificPopup,rtm_masonry_container,comment_media=!1,rtMediaHook={hooks:[],is_break:!1,register:function(a,b){void 0===rtMediaHook.hooks[a]&&(rtMediaHook.hooks[a]=[]),rtMediaHook.hooks[a].push(b)},call:function(a,arguments){if(void 0!==rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](arguments))return rtMediaHook.is_break=!0,!1;return!0}};jQuery("document").ready(function(a){function b(){if(jQuery("#rtmedia-media-view-form").length>0){var a=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(a,{},function(a){})}}function c(){var a=jQuery.magnificPopup.instance;jQuery(".mfp-arrow-right").on("click",function(b){a.next()}),jQuery(".mfp-arrow-left").on("click",function(b){a.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(b,c,d,e,f){a.next()},swipeRight:function(b,c,d,e,f){a.prev()},threshold:0})}function d(){jQuery(".mfp-arrow-right").hide(),jQuery(".mfp-arrow-left").hide(),jQuery(document).unbind("keydown")}function e(){rtmedia_disable_popup_navigation("#comment_content")}function f(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}void 0!==a.fn.rtTab&&a(".rtm-tabs").rtTab(),jQuery(".rtmedia-modal-link").length>0&&a(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),a("#rt_media_comment_form").submit(function(b){return""!=a.trim(a("#comment_content").val())||(0==jQuery("#rtmedia-single-media-container").length?rtmedia_gallery_action_alert_message(rtmedia_empty_comment_msg,"warning"):rtmedia_single_media_alert_message(rtmedia_empty_comment_msg,"warning"),!1)}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||void 0===b.data||void 0===b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}else if("get_single_activity_content"==b.data.action){var d=b.success;a.success=function(a){d(a),setTimeout(function(){apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode").mediaelementplayer({
7
- defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||void 0===b.data||void 0===b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270}),setTimeout(function(){rtmedia_activity_stream_comment_media()},900),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(a){jQuery(this).toggleClass("unselect-all").toggleClass("select-all"),jQuery(this).attr("title",rtmedia_unselect_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!0)}),jQuery(".rtmedia-list-item").addClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".unselect-all",function(a){jQuery(this).toggleClass("select-all").toggleClass("unselect-all"),jQuery(this).attr("title",rtmedia_select_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!1)}),jQuery(".rtmedia-list-item").removeClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".rtmedia-move",function(a){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(b){if($albumname=jQuery("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$context=jQuery.trim(jQuery("#rtmedia_album_context").val()),$context_id=jQuery.trim(jQuery("#rtmedia_album_context_id").val()),$privacy=jQuery.trim(jQuery("#rtmedia_select_album_privacy").val()),$create_album_nonce=jQuery.trim(jQuery("#rtmedia_create_album_nonce").val()),""!=$albumname){var c={action:"rtmedia_create_album",name:$albumname,context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(c.privacy=$privacy),a("#rtmedia_create_new_album").attr("disabled","disabled");var d=a("#rtmedia_create_new_album").html();a("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,c,function(b){if(void 0!==b.album){b=jQuery.trim(b.album);var c=!0;jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){if(jQuery(this).attr("value")===$context)return c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,d='<optgroup value="'+$context+'" label="'+a+'"><option value="'+b+'">'+$albumname+"</option></optgroup>";jQuery(this).append(d)}}),jQuery('select.rtmedia-user-album-list option[value="'+b+'"]').prop("selected",!0),jQuery(".rtmedia-create-new-album-container").slideToggle(),jQuery("#rtmedia_album_name").val(""),jQuery("#rtmedia-create-album-modal").append("<div class='rtmedia-success rtmedia-create-album-alert'><b>"+$albumname+"</b>"+rtmedia_album_created_msg+"</div>"),setTimeout(function(){jQuery(".rtmedia-create-album-alert").remove()},4e3),setTimeout(function(){galleryObj.reloadView(),jQuery(".close-reveal-modal").click()},2e3)}else void 0!==b.error?rtmedia_gallery_action_alert_message(b.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");a("#rtmedia_create_new_album").removeAttr("disabled"),a("#rtmedia_create_new_album").html(d)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_delete_confirmation)&&jQuery(this).closest("form").attr("action","../../../"+rtmedia_media_slug+"/delete").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-move-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery("#buddypress").on("change",".rtm-activity-privacy-opt",function(){var a=jQuery(this).attr("id");a=a.split("-"),a=a[a.length-1];var b=this;data={activity_id:a,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(a){var c="",d="";"true"==a?(c=rtmedia_main_js_strings.privacy_update_success,d="success"):(c=rtmedia_main_js_strings.privacy_update_error,d="fail"),jQuery(b).after('<p class="rtm-ac-privacy-updated '+d+'">'+c+"</p>"),setTimeout(function(){jQuery(b).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),b(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){b(),f(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&0==comment_media?c():d(),e(),rtmedia_disable_popup_navigation_comment_media_focus();var g=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*g,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*g,"over-flow":"hidden"}),rtmedia_init_action_dropdown(".rtm-lightbox-container .rtmedia-actions"),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var h=a(".rtm-gallery-title"),i="";""!=(i=a.isEmptyObject(h)?a("#subnav.item-list-tabs li.selected ").html():h.html())&&a(".rtm-ltb-gallery-title .ltb-title").html(i);var j=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(j),!0});var g=jQuery("#drag-drop-area"),h=jQuery("#whats-new");g.html();jQuery("#rtmedia-upload-container").after("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&jQuery("#whats-new-textarea").append("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),jQuery(document).on("dragover",function(a){a.preventDefault(),a.target!=this&&(jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&h.addClass("rtm-drag-drop-active"),g.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show())}).on("dragleave",function(a){if(a.preventDefault(),0!=a.originalEvent.pageX&&0!=a.originalEvent.pageY)return!1;"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(h.removeClass("rtm-drag-drop-active"),h.removeAttr("style")),g.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(a){a.preventDefault(),jQuery(".bp-suggestions").focus(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(h.removeClass("rtm-drag-drop-active"),h.removeAttr("style")),g.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(a){a.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(""),a(document).click(function(){a(".click-nav ul").is(":visible")&&a(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").length>0&&a(".rtm-more").shorten({showChars:200}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&(rtm_masonry_container=jQuery(".rtmedia-container .rtmedia-list"),rtm_masonry_container.masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())})),jQuery(".rtm-uploader-tabs").length>0&&jQuery(".rtm-uploader-tabs li").click(function(a){jQuery(this).hasClass("active")||(jQuery(this).siblings().removeClass("active"),jQuery(this).parents(".rtm-uploader-tabs").siblings().hide(),class_name=jQuery(this).attr("class"),jQuery(this).parents(".rtm-uploader-tabs").siblings('[data-id="'+class_name+'"]').show(),jQuery(this).addClass("active"),"rtm-upload-tab"!=class_name?jQuery("div.moxie-shim").hide():jQuery("div.moxie-shim").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(a){a.preventDefault();var b="Are you sure you want to delete this media?";if("undefined"!=typeof rtmedia_media_delete_confirmation&&(b=rtmedia_media_delete_confirmation),confirm(b)){var c=jQuery(this).closest("li"),d=jQuery("#rtmedia_media_delete_nonce").val(),e={action:"delete_uploaded_media",nonce:d,media_id:c.attr("id")};jQuery.ajax({url:ajaxurl,type:"post",data:e,success:function(a){"1"==a?(rtmedia_gallery_action_alert_message(rtmedia_main_js_strings.file_delete_success,"success"),c.remove(),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)):rtmedia_gallery_action_alert_message(rtmedia_file_not_deleted,"warning")}})}})}),function(a){a.fn.shorten=function(b){"use strict";var c={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return b&&a.extend(c,b),!(a(this).data("jquery.shorten")&&!c.force)&&(a(this).data("jquery.shorten",!0),a(document).off("click",".morelink"),a(document).on({click:function(){var b=a(this);return b.hasClass("less")?(b.removeClass("less"),b.html(c.moreText),b.parent().prev().hide(0,function(){b.parent().prev().prev().show()}).hide(0,function(){c.onLess()})):(b.addClass("less"),b.html(c.lessText),b.parent().prev().show(0,function(){b.parent().prev().prev().hide()}).show(0,function(){c.onMore()})),!1}},".morelink"),this.each(function(){var b=a(this),d=b.html();if(b.text().length>c.showChars+c.minHideChars){var e=d.substr(0,c.showChars);if(e.indexOf("<")>=0){for(var f=!1,g="",h=0,i=[],k=null,l=0,m=0;m<=c.showChars;l++)if("<"!=d[l]||f||(f=!0,k=d.substring(l+1,d.indexOf(">",l)),"/"==k[0]?k!="/"+i[0]?c.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":i.shift():"br"!=k.toLowerCase()&&i.unshift(k)),f&&">"==d[l]&&(f=!1),f)g+=d.charAt(l);else if(m++,h<=c.showChars)g+=d.charAt(l),h++;else if(i.length>0){for(j=0;j<i.length;j++)g+="</"+i[j]+">";break}e=a("<div/>").html(g+'<span class="ellip">'+c.ellipsesText+"</span>").html()}else e+=c.ellipsesText;var n='<div class="shortcontent">'+e+'</div><div class="allcontent">'+d+'</div><span><a href="javascript://nop/" class="morelink">'+c.moreText+"</a></span>";b.html(n),b.find(".allcontent").hide(),a(".shortcontent p:last",b).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container),jQuery(" .rtmedia-uploader-div").css({opacity:"1",display:"block",visibility:"visible"}),jQuery(" #whats-new-options ").css({opacity:"1"})};
3
  * @package rtMedia
4
  */
5
 
6
+ function apply_rtMagnificPopup(a){jQuery("document").ready(function(b){var c="";c="undefined"==typeof rtmedia_load_more?"Loading media":rtmedia_load_more,"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&(b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").length>0&&b(".activity-item .rtmedia-activity-container .rtmedia-list-item > a").siblings("p").children("a").addClass("no-popup"),rtMagnificPopup=jQuery(a).magnificPopup({delegate:"a:not(.no-popup, .mejs-time-slider, .mejs-volume-slider, .mejs-horizontal-volume-slider)",type:"ajax",tLoading:c+" #%curr%...",mainClass:"mfp-img-mobile",preload:[1,3],closeOnBgClick:!0,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:"",preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(a){return a.el.attr("title")+"<small>by Marsel Van Oosten</small>"}},callbacks:{ajaxContentAdded:function(){a=jQuery.magnificPopup.instance,1===jQuery(a.items).size()&&jQuery(".mfp-arrow").remove();var a=jQuery.magnificPopup.instance,c=a.currItem.el,d=c.parent();if(d.is("li")||(d=d.parent()),(d.is(":nth-last-child(2)")||d.is(":last-child"))&&d.find("a").hasClass("rtmedia-list-item-a")){d.next();"block"==jQuery("#rtMedia-galary-next").css("display")&&jQuery("#rtMedia-galary-next").click()}var e=a.items.length;if(a.index==e-1&&!d.is(":last-child"))return void c.click();var f={};"undefined"!=typeof _wpmejsSettings&&(f.pluginPath=_wpmejsSettings.pluginPath);var g=jQuery(".rtmedia-container .rtmedia-single-meta").height(),h=!1;void 0!==a&&void 0!==a.probablyMobile&&1==a.probablyMobile&&(h=!0),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("autoplay",!0),h&&b(".mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").attr("muted",!1),b(".mfp-content .rtmedia-single-media .wp-audio-shortcode,.mfp-content .rtmedia-single-media .wp-video-shortcode,.mfp-content .rtmedia-single-media .bp_media_content video").mediaelementplayer({defaultVideoWidth:480,hideVolumeOnTouchDevices:!1,features:["playpause","progress","current","volume","fullscreen"],defaultVideoHeight:270,alwaysShowControls:h,enableAutosize:!0,clickToPlayPause:!0,videoHeight:-1,success:function(a,c){a.addEventListener("loadeddata",function(c){var d=b(a).height(),e=b(window).height(),f=jQuery("div.rtm-ltb-action-container").height(),f=f+50,h=g-f;d>e&&jQuery(".rtmedia-container #rtmedia-single-media-container .mejs-container").attr("style","height:"+h+"px !important; transition:0.2s")},!1),h&&b(a).hasClass("wp-video-shortcode")?jQuery("body").on("touchstart",".mejs-overlay-button",function(b){a.paused?a.play():a.pause()}):a.play()}}),b(".mfp-content .mejs-audio .mejs-controls").css("position","relative"),rtMediaHook.call("rtmedia_js_popup_after_content_added",[]),"undefined"!=typeof bp&&void 0!==bp.mentions&&void 0!==bp.mentions.users&&(b("#atwho-container #atwho-ground-comment_content").remove(),b("#comment_content").bp_mentions(bp.mentions.users)),rtmedia_reset_video_and_audio_for_popup(),apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container")},close:function(a){rtmedia_single_page_popup_close()},BeforeChange:function(a){}}})),jQuery(document).ajaxComplete(function(){jQuery("[id^=imgedit-leaving]").filter(function(){var a=jQuery(this).text();jQuery(this).text(a.replace("OK","Save"))})})})}function rtmedia_init_action_dropdown(a){var b,c;jQuery(a+" .click-nav > span,"+a+" .click-nav > div").toggleClass("no-js js"),jQuery(a+" .click-nav .js ul").hide(),jQuery(a+" .click-nav .clicker").click(function(a){b=jQuery("#rtm-media-options .click-nav .clicker").next("ul"),c=jQuery(this).next("ul"),jQuery.each(b,function(a,b){jQuery(b).html()!=c.html()&&jQuery(b).hide()}),jQuery(c).toggle(),a.stopPropagation()})}function bp_media_create_element(a){return!1}function rtmedia_version_compare(a,b){if(typeof a+typeof b!="stringstring")return!1;for(var c=a.split("."),d=b.split("."),e=0,f=Math.max(c.length,d.length);e<f;e++){if(c[e]&&!d[e]&&parseInt(c[e])>0||parseInt(c[e])>parseInt(d[e]))return!0;if(d[e]&&!c[e]&&parseInt(d[e])>0||parseInt(c[e])<parseInt(d[e]))return!1}return!0}function rtm_is_element_exist(a){return jQuery(a).length>0}function rtm_masonry_reload(a){setTimeout(function(){a.masonry("reload")},250)}function rtm_search_media_text_validation(){""===jQuery("#media_search_input").val()?jQuery("#media_search").css("cursor","not-allowed"):jQuery("#media_search").css("cursor","pointer")}function rtmediaGetParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null==c?"":decodeURIComponent(c[1].replace(/\+/g," "))}function rtmedia_single_media_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning"),jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","0.2"),jQuery(".rtmedia-single-media .rtmedia-media").after("<div class='rtmedia-message-container'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()},3e3),jQuery(".rtmedia-message-container").click(function(){jQuery(".rtmedia-single-media .rtmedia-media").css("opacity","1"),jQuery(".rtmedia-message-container").remove()})}function rtmedia_gallery_action_alert_message(a,b){var c="rtmedia-success";"warning"==b&&(c="rtmedia-warning");jQuery("body").append('<div class="rtmedia-gallery-alert-container"> </div>'),jQuery(".rtmedia-gallery-alert-container").append("<div class='rtmedia-gallery-message-box'><span class='"+c+"'>"+a+" </span></div>"),setTimeout(function(){jQuery(".rtmedia-gallery-alert-container").remove()},3e3),jQuery(".rtmedia-gallery-message-box").click(function(){jQuery(".rtmedia-gallery-alert-container").remove()})}function rtmedia_activity_masonry(){jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list").masonry({itemSelector:".rtmedia-list-item",gutter:7});var a=0,b=setInterval(function(){a+=1,5===a&&clearInterval(b),jQuery.each(jQuery(".rtmedia-activity-container .rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(jQuery("#activity-stream .rtmedia-activity-container .rtmedia-list"))},1e3)}!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h=function(){},i=!!window.jQuery,j=a(window),k=function(a,c){b.ev.on("mfp"+a+".mfp",c)},l=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},m=function(c,d){b.ev.triggerHandler("mfp"+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},n=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},o=function(){a.magnificPopup.instance||(b=new h,b.init(),a.magnificPopup.instance=b)},p=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};h.prototype={constructor:h,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=p(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(!1===c.isObj){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=l("bg").on("click.mfp",function(){b.close()}),b.wrap=l("wrap").attr("tabindex",-1).on("click.mfp",function(a){b._checkIfClose(a.target)&&b.close()}),b.container=l("container",b.wrap)),b.contentContainer=l("content"),b.st.preloader&&(b.preloader=l("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var o=i[e];o=o.charAt(0).toUpperCase()+o.slice(1),b["init"+o].call(b)}m("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(k("MarkupParse",function(a,b,c,d){c.close_replaceWith=n(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(n())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:j.scrollTop(),position:"absolute"}),(!1===b.st.fixedBgPos||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup.mfp",function(a){27===a.keyCode&&b.close()}),j.on("resize.mfp",function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var p=b.wH=j.height(),q={};if(b.fixedContentPos&&b._hasScrollBar(p)){var r=b._getScrollbarSize();r&&(q.marginRight=r)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):q.overflow="hidden");var s=b.st.mainClass;return b.isIE7&&(s+=" mfp-ie7"),s&&b._addClassToMFP(s),b.updateItemHTML(),m("BuildControls"),a("html").css(q),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP("mfp-ready"),b._setFocus()):b.bgOverlay.addClass("mfp-ready"),d.on("focusin.mfp",b._onFocusIn)},16),b.isOpen=!0,b.updateSize(p),m("Open"),c},close:function(){b.isOpen&&(m("BeforeClose"),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP("mfp-removing"),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){m("Close");var c="mfp-removing mfp-ready ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup.mfp focusin.mfp"),b.ev.off(".mfp"),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&!0!==b.currTemplate[b.currItem.type]||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,m("AfterClose")},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||j.height();b.fixedContentPos||b.wrap.css("height",b.wH),m("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(m("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=!!b.st[d]&&b.st[d].markup;m("FirstMarkupParse",f),b.currTemplate[d]=!f||a(f)}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,m("Change",c),e=c.type,b.container.prepend(b.contentContainer),m("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&!0===b.currTemplate[c]?b.content.find(".mfp-close").length||b.content.append(n()):b.content=a:b.content="",m("BeforeAppend"),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,m("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){if((void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick)||2!==c.which&&!c.ctrlKey&&!c.metaKey){var f=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(b))return!0}else if(j.width()<f)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};m("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass("mfp-prevent-close")){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||j.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){if(c.target!==b.wrap[0]&&!a.contains(b.wrap[0],c.target))return b._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),m("MarkupParse",[b,c,d]),a.each(c,function(a,c){if(void 0===c||!1===c)return!0;if(e=a.split("_"),e.length>1){var d=b.find(".mfp-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(".mfp-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(b,c){return o(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){o();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=i?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),i?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var q,r,s,t=function(){s&&(r.after(s.addClass(q)).detach(),s=null)};a.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push("inline"),k("Close.inline",function(){t()})},getInline:function(c,d){if(t(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(r||(q=e.hiddenClass,r=l(q),q="mfp-"+q),s=f.after(r).detach().removeClass(q)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var u,v=function(){u&&a(document.body).removeClass(u)},w=function(){v(),b.req&&b.req.abort()};a.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push("ajax"),u=b.st.ajax.cursor,k("Close.ajax",w),k("BeforeChange.ajax",w)},getAjax:function(c){u&&a(document.body).addClass(u),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};m("ParseAjax",g),b.appendContent(a(g.data),"ajax"),c.finished=!0,v(),b._setFocus(),setTimeout(function(){b.wrap.addClass("mfp-ready")},16),b.updateStatus("ready"),m("AjaxContentAdded")},error:function(){v(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var x,y=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),k("Open"+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),k("Close"+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),j.off("resize.mfp")}),k("Resize"+d,b.resizeImage),b.isLowIE&&k("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,x&&clearInterval(x),a.isCheckingImgSize=!1,m("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){x&&clearInterval(x),x=setInterval(function(){if(d.naturalWidth>0)return void b._onImageHasSize(a);c>200&&clearInterval(x),c++,3===c?e(10):40===c?e(50):100===c&&e(500)},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,m("ImageLoadComplete")):(e++,e<200?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:y(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(x&&clearInterval(x),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var z,A=function(){return void 0===z&&(z=void 0!==document.createElement("p").style.MozTransform),z};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,h=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},i=function(){b.content.css("visibility","visible")};k("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),!(a=b._getItemToZoom()))return void i();f=h(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){i(),setTimeout(function(){f.remove(),a=f=null,m("ZoomAnimationEnded")},16)},g)},16)}}),k("BeforeClose"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(!(a=b._getItemToZoom()))return;f=h(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),k("Close"+d,function(){b._allowZoom()&&(i(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return!!b.currItem.hasSize&&b.currItem.img},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(i?d.innerHeight():d[0].offsetHeight)-g-f};return A()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var B=function(a){if(b.currTemplate.iframe){var c=b.currTemplate.iframe.find("iframe");c.length&&(a||(c[0].src="//about:blank"),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push("iframe"),k("BeforeChange",function(a,b,c){b!==c&&("iframe"===b?B():"iframe"===c&&B(!0))}),k("Close.iframe",function(){B()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){if(e.indexOf(this.index)>-1)return this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var C=function(a){var c=b.items.length;return a>c-1?a-c:a<0?c+a:a},D=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);if(b.direction=!0,!c||!c.enabled)return!1;f+=" mfp-gallery",k("Open"+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){if(b.items.length>1)return b.next(),!1}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),k("UpdateStatus"+e,function(a,c){c.text&&(c.text=D(c.text,b.currItem.index,b.items.length))}),k("MarkupParse"+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?D(c.tCounter,f.index,g):""}),k("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(l("b",e[0],!1,!0),l("a",e[0],!1,!0),l("b",f[0],!1,!0),l("a",f[0],!1,!0)),b.container.append(e.add(f))}}),k("Change"+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),k("Close"+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})},next:function(){b.direction=!0,b.index=C(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=C(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=C(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),m("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,m("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});a.magnificPopup.registerModule("retina",{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(k("ImageHasSize.retina",function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),k("ElementParse.retina",function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b="ontouchstart"in window,c=function(){j.off("touchmove"+d+" touchend"+d)},d=".mfpFastClick";a.fn.mfpFastClick=function(e){return a(this).each(function(){var f,g=a(this);if(b){var h,i,k,l,m,n;g.on("touchstart"+d,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],i=m.clientX,k=m.clientY,j.on("touchmove"+d,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-i)>10||Math.abs(m.clientY-k)>10)&&(l=!0,c())}).on("touchend"+d,function(a){c(),l||n>1||(f=!0,a.preventDefault(),clearTimeout(h),h=setTimeout(function(){f=!1},1e3),e())})})}g.on("click"+d,function(){f||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+d+" click"+d),b&&j.off("touchmove"+d+" touchend"+d)}}(),o()}),"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;if(c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick(),!0==("false"!==c.$elem.attr("data-hash"))){var e=b.location.hash;e&&c.$elem.find("li").find('a[href="'+e+'"]').trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find('a[href="'+a+'"]').trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li");d.find("a").on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");if(a(f).removeClass("hide"),1==("false"!==c.$elem.attr("data-hash"))){var g=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(g)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){this.$elem.find("li").find("a").each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document);var rtMagnificPopup,rtm_masonry_container,comment_media=!1,rtMediaHook={hooks:[],is_break:!1,register:function(a,b){void 0===rtMediaHook.hooks[a]&&(rtMediaHook.hooks[a]=[]),rtMediaHook.hooks[a].push(b)},call:function(a,arguments){if(void 0!==rtMediaHook.hooks[a])for(i=0;i<rtMediaHook.hooks[a].length;++i)if(1!=rtMediaHook.hooks[a][i](arguments))return rtMediaHook.is_break=!0,!1;return!0}};jQuery("document").ready(function(a){function b(){if(jQuery("#rtmedia-media-view-form").length>0){var a=jQuery("#rtmedia-media-view-form").attr("action");jQuery.post(a,{},function(a){})}}function c(){var a=jQuery.magnificPopup.instance;jQuery(".mfp-arrow-right").on("click",function(b){a.next()}),jQuery(".mfp-arrow-left").on("click",function(b){a.prev()}),jQuery(".mfp-content .rtmedia-media").swipe({swipeLeft:function(b,c,d,e,f){a.next()},swipeRight:function(b,c,d,e,f){a.prev()},threshold:0})}function d(){jQuery(".mfp-arrow-right").hide(),jQuery(".mfp-arrow-left").hide(),jQuery(document).unbind("keydown")}function e(){rtmedia_disable_popup_navigation("#comment_content")}function f(){jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()})}jQuery(".rtmedia-uploader-div").css({opacity:"1",display:"block",visibility:"visible"}),jQuery(" #whats-new-options ").css({opacity:"1"}),void 0!==a.fn.rtTab&&a(".rtm-tabs").rtTab(),jQuery(".rtmedia-modal-link").length>0&&a(".rtmedia-modal-link").magnificPopup({type:"inline",midClick:!0,closeBtnInside:!0}),a("#rt_media_comment_form").submit(function(b){return""!=a.trim(a("#comment_content").val())||(0==jQuery("#rtmedia-single-media-container").length?rtmedia_gallery_action_alert_message(rtmedia_empty_comment_msg,"warning"):rtmedia_single_media_alert_message(rtmedia_empty_comment_msg,"warning"),!1)}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),a("li.rtmedia-list-item p a").each(function(b){a(this).addClass("no-popup")}),"undefined"!=typeof rtmedia_lightbox_enabled&&"1"==rtmedia_lightbox_enabled&&apply_rtMagnificPopup(".rtmedia-list-media.rtm-gallery-list, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container, ul.rtm-comment-container"),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||void 0===b.data||void 0===b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success
7
+ ;a.success=function(a){d(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}else if("get_single_activity_content"==b.data.action){var d=b.success;a.success=function(a){d(a),setTimeout(function(){apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270})},900)}}}),jQuery.ajaxPrefilter(function(a,b,c){try{if(null==b.data||void 0===b.data||void 0===b.data.action)return!0}catch(a){return!0}if("activity_get_older_updates"==b.data.action){var d=b.success;a.success=function(a){d(a),apply_rtMagnificPopup(".rtmedia-activity-container ul.rtmedia-list, #bp-media-list, .bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content"),jQuery("ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > audio.wp-audio-shortcode, ul.activity-list li.rtmedia_update div.rtmedia-item-thumbnail > video.wp-video-shortcode").mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270}),setTimeout(function(){rtmedia_activity_stream_comment_media()},900),rtMediaHook.call("rtmedia_js_after_activity_added",[])}}}),jQuery(".rtmedia-container").on("click",".select-all",function(a){jQuery(this).toggleClass("unselect-all").toggleClass("select-all"),jQuery(this).attr("title",rtmedia_unselect_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!0)}),jQuery(".rtmedia-list-item").addClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".unselect-all",function(a){jQuery(this).toggleClass("select-all").toggleClass("unselect-all"),jQuery(this).attr("title",rtmedia_select_all_visible),jQuery(".rtmedia-list input").each(function(){jQuery(this).prop("checked",!1)}),jQuery(".rtmedia-list-item").removeClass("bulk-selected")}),jQuery(".rtmedia-container").on("click",".rtmedia-move",function(a){jQuery(".rtmedia-delete-container").slideUp(),jQuery(".rtmedia-move-container").slideToggle()}),jQuery("#rtmedia-create-album-modal").on("click","#rtmedia_create_new_album",function(b){if($albumname=jQuery("<span/>").text(jQuery.trim(jQuery("#rtmedia_album_name").val())).html(),$album_description=jQuery("#rtmedia_album_description"),$context=jQuery.trim(jQuery("#rtmedia_album_context").val()),$context_id=jQuery.trim(jQuery("#rtmedia_album_context_id").val()),$privacy=jQuery.trim(jQuery("#rtmedia_select_album_privacy").val()),$create_album_nonce=jQuery.trim(jQuery("#rtmedia_create_album_nonce").val()),""!=$albumname){var c={action:"rtmedia_create_album",name:$albumname,description:$album_description.val(),context:$context,context_id:$context_id,create_album_nonce:$create_album_nonce};""!==$privacy&&(c.privacy=$privacy),a("#rtmedia_create_new_album").attr("disabled","disabled");var d=a("#rtmedia_create_new_album").html();a("#rtmedia_create_new_album").prepend("<img src='"+rMedia_loading_file+"' />"),jQuery.post(rtmedia_ajax_url,c,function(b){if(void 0!==b.album){b=jQuery.trim(b.album);var c=!0;$album_description.val(""),a("#rtmedia_album_name").focus(),jQuery(".rtmedia-user-album-list").each(function(){if(jQuery(this).children("optgroup").each(function(){if(jQuery(this).attr("value")===$context)return c=!1,void jQuery(this).append('<option value="'+b+'">'+$albumname+"</option>")}),c){var a=$context.charAt(0).toUpperCase()+$context.slice(1)+" "+rtmedia_main_js_strings.rtmedia_albums,d='<optgroup value="'+$context+'" label="'+a+'"><option value="'+b+'">'+$albumname+"</option></optgroup>";jQuery(this).append(d)}}),jQuery('select.rtmedia-user-album-list option[value="'+b+'"]').prop("selected",!0),jQuery(".rtmedia-create-new-album-container").slideToggle(),jQuery("#rtmedia_album_name").val(""),jQuery("#rtmedia-create-album-modal").append("<div class='rtmedia-success rtmedia-create-album-alert'><b>"+$albumname+"</b>"+rtmedia_album_created_msg+"</div>"),setTimeout(function(){jQuery(".rtmedia-create-album-alert").remove()},4e3),setTimeout(function(){galleryObj.reloadView(),jQuery(".close-reveal-modal").click()},2e3)}else void 0!==b.error?rtmedia_gallery_action_alert_message(b.error,"warning"):rtmedia_gallery_action_alert_message(rtmedia_something_wrong_msg,"warning");a("#rtmedia_create_new_album").removeAttr("disabled"),a("#rtmedia_create_new_album").html(d)})}else rtmedia_gallery_action_alert_message(rtmedia_empty_album_name_msg,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_delete_confirmation)&&jQuery(this).closest("form").attr("action","../../../"+rtmedia_media_slug+"/delete").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery(".rtmedia-container").on("click",".rtmedia-move-selected",function(a){jQuery(".rtmedia-list :checkbox:checked").length>0?confirm(rtmedia_selected_media_move_confirmation)&&jQuery(this).closest("form").attr("action","").submit():rtmedia_gallery_action_alert_message(rtmedia_no_media_selected,"warning")}),jQuery("#buddypress").on("change",".rtm-activity-privacy-opt",function(){var a=jQuery(this).attr("id");a=a.split("-"),a=a[a.length-1];var b=this;data={activity_id:a,privacy:jQuery(this).val(),nonce:jQuery("#rtmedia_activity_privacy_nonce").val(),action:"rtm_change_activity_privacy"},jQuery.post(ajaxurl,data,function(a){var c="",d="";"true"==a?(c=rtmedia_main_js_strings.privacy_update_success,d="success"):(c=rtmedia_main_js_strings.privacy_update_error,d="fail"),jQuery(b).after('<p class="rtm-ac-privacy-updated '+d+'">'+c+"</p>"),setTimeout(function(){jQuery(b).siblings(".rtm-ac-privacy-updated").remove()},2e3)})}),jQuery(".media_search_input").on("keyup",function(){rtm_search_media_text_validation()}),b(),rtMediaHook.register("rtmedia_js_popup_after_content_added",function(){b(),f(),mfp=jQuery.magnificPopup.instance,jQuery(mfp.items).size()>1&&0==comment_media?c():d(),e(),rtmedia_disable_popup_navigation_comment_media_focus();var g=a(window).height();jQuery(".rtm-lightbox-container .mejs-video").css({height:.8*g,"over-flow":"hidden"}),jQuery(".mfp-content .rtmedia-media").css({"max-height":.87*g,"over-flow":"hidden"}),rtmedia_init_action_dropdown(".rtm-lightbox-container .rtmedia-actions"),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").shorten({showChars:130});var h=a(".rtm-gallery-title"),i="";""!=(i=a.isEmptyObject(h)?a("#subnav.item-list-tabs li.selected ").html():h.html())&&a(".rtm-ltb-gallery-title .ltb-title").html(i);var j=a("#subnav.item-list-tabs li.selected span").html();return a("li.total").html(j),!0});var g=jQuery("#drag-drop-area"),h=jQuery("#whats-new");g.html();jQuery("#rtmedia-upload-container").after("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&jQuery("#whats-new-textarea").append("<div id='rtm-drop-files-title'>"+rtmedia_drop_media_msg+"</div>"),jQuery(document).on("dragover",function(a){a.preventDefault(),a.target!=this&&(jQuery("#rtm-media-gallery-uploader").show(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&h.addClass("rtm-drag-drop-active"),g.addClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").show())}).on("dragleave",function(a){if(a.preventDefault(),0!=a.originalEvent.pageX&&0!=a.originalEvent.pageY)return!1;"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(h.removeClass("rtm-drag-drop-active"),h.removeAttr("style")),g.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}).on("drop",function(a){a.preventDefault(),jQuery(".bp-suggestions").focus(),"undefined"!=typeof rtmedia_bp_enable_activity&&"1"==rtmedia_bp_enable_activity&&(h.removeClass("rtm-drag-drop-active"),h.removeAttr("style")),g.removeClass("rtm-drag-drop-active"),jQuery("#rtm-drop-files-title").hide()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-album",function(a){a.preventDefault(),confirm(rtmedia_album_delete_confirmation)&&jQuery(this).closest("form").submit()}),jQuery(".rtmedia-container").on("click",".rtmedia-delete-media",function(a){a.preventDefault(),confirm(rtmedia_media_delete_confirmation)&&jQuery(this).closest("form").submit()}),rtmedia_init_action_dropdown(""),a(document).click(function(){a(".click-nav ul").is(":visible")&&a(".click-nav ul",this).hide()}),jQuery(".rtmedia-comment-link").on("click",function(a){a.preventDefault(),jQuery("#comment_content").focus()}),jQuery(".rtm-more").length>0&&a(".rtm-more").shorten({showChars:200}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&"undefined"!=typeof rtmedia_masonry_layout_activity&&"true"==rtmedia_masonry_layout_activity&&rtmedia_activity_masonry(),jQuery(document).ajaxComplete(function(a,b,c){var d=new URLSearchParams(c.data);"post_update"!=d.get("action")&&"get_single_activity_content"!=d.get("action")&&"activity_get_older_updates"!=d.get("action")||"undefined"==typeof rtmedia_masonry_layout||"true"!=rtmedia_masonry_layout||"undefined"==typeof rtmedia_masonry_layout_activity||"true"!=rtmedia_masonry_layout_activity||rtmedia_activity_masonry()}),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&(rtm_masonry_container=jQuery(".rtmedia-container .rtmedia-list"),rtm_masonry_container.masonry({itemSelector:".rtmedia-list-item"}),setInterval(function(){jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())}),rtm_masonry_reload(rtm_masonry_container)},1e3),jQuery.each(jQuery(".rtmedia-list.masonry .rtmedia-item-title"),function(a,b){jQuery(b).width(jQuery(b).siblings(".rtmedia-item-thumbnail").children("img").width())})),jQuery(".rtm-uploader-tabs").length>0&&jQuery(".rtm-uploader-tabs li").click(function(a){jQuery(this).hasClass("active")||(jQuery(this).siblings().removeClass("active"),jQuery(this).parents(".rtm-uploader-tabs").siblings().hide(),class_name=jQuery(this).attr("class"),jQuery(this).parents(".rtm-uploader-tabs").siblings('[data-id="'+class_name+'"]').show(),jQuery(this).addClass("active"),"rtm-upload-tab"!=class_name?jQuery("div.moxie-shim").hide():jQuery("div.moxie-shim").show())}),jQuery(".rtmedia-container").on("click",".rtm-delete-media",function(a){a.preventDefault();var b="Are you sure you want to delete this media?";if("undefined"!=typeof rtmedia_media_delete_confirmation&&(b=rtmedia_media_delete_confirmation),confirm(b)){var c=jQuery(this).closest("li"),d=jQuery("#rtmedia_media_delete_nonce").val(),e={action:"delete_uploaded_media",nonce:d,media_id:c.attr("id")};jQuery.ajax({url:ajaxurl,type:"post",data:e,success:function(a){"1"==a?(rtmedia_gallery_action_alert_message(rtmedia_main_js_strings.file_delete_success,"success"),c.remove(),"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container)):rtmedia_gallery_action_alert_message(rtmedia_file_not_deleted,"warning")}})}})}),function(a){a.fn.shorten=function(b){"use strict";var c={showChars:100,minHideChars:10,ellipsesText:"...",moreText:rtmedia_read_more,lessText:rtmedia__show_less,onLess:function(){},onMore:function(){},errMsg:null,force:!1};return b&&a.extend(c,b),!(a(this).data("jquery.shorten")&&!c.force)&&(a(this).data("jquery.shorten",!0),a(document).off("click",".morelink"),a(document).on({click:function(){var b=a(this);return b.hasClass("less")?(b.removeClass("less"),b.html(c.moreText),b.parent().prev().hide(0,function(){b.parent().prev().prev().show()}).hide(0,function(){c.onLess()})):(b.addClass("less"),b.html(c.lessText),b.parent().prev().show(0,function(){b.parent().prev().prev().hide()}).show(0,function(){c.onMore()})),!1}},".morelink"),this.each(function(){var b=a(this),d=b.html();if(b.text().length>c.showChars+c.minHideChars){var e=d.substr(0,c.showChars);if(e.indexOf("<")>=0){for(var f=!1,g="",h=0,i=[],k=null,l=0,m=0;m<=c.showChars;l++)if("<"!=d[l]||f||(f=!0,k=d.substring(l+1,d.indexOf(">",l)),"/"==k[0]?k!="/"+i[0]?c.errMsg="ERROR en HTML: the top of the stack should be the tag that closes":i.shift():"br"!=k.toLowerCase()&&i.unshift(k)),f&&">"==d[l]&&(f=!1),f)g+=d.charAt(l);else if(m++,h<=c.showChars)g+=d.charAt(l),h++;else if(i.length>0){for(j=0;j<i.length;j++)g+="</"+i[j]+">";break}e=a("<div/>").html(g+'<span class="ellip">'+c.ellipsesText+"</span>").html()}else e+=c.ellipsesText;var n='<div class="shortcontent">'+e+'</div><div class="allcontent">'+d+'</div><span><a href="javascript://nop/" class="morelink">'+c.moreText+"</a></span>";b.html(n),b.find(".allcontent").hide(),a(".shortcontent p:last",b).css("margin-bottom",0)}}))}}(jQuery),window.onload=function(){"undefined"!=typeof rtmedia_masonry_layout&&"true"==rtmedia_masonry_layout&&0==jQuery(".rtmedia-container .rtmedia-list.rtm-no-masonry").length&&rtm_masonry_reload(rtm_masonry_container),rtm_search_media_text_validation(),check_condition("search")&&jQuery("#media_search_remove").show()};
app/helper/RTMediaModel.php CHANGED
@@ -135,6 +135,7 @@ class RTMediaModel extends RTDBModel {
135
 
136
  $sql .= $limit;
137
  }
 
138
  if ( ! $count_flag ) {
139
  return $wpdb->get_results( $sql ); // @codingStandardsIgnoreLine
140
  } else {
135
 
136
  $sql .= $limit;
137
  }
138
+
139
  if ( ! $count_flag ) {
140
  return $wpdb->get_results( $sql ); // @codingStandardsIgnoreLine
141
  } else {
app/helper/RTMediaSettings.php CHANGED
@@ -43,30 +43,32 @@ if ( ! class_exists( 'RTMediaSettings' ) ) {
43
  $options = $rtmedia->options;
44
 
45
  $defaults = array(
46
- 'general_enableAlbums' => 1,
47
- 'general_enableAlbums_description' => 0,
48
- 'general_enableComments' => 0,
49
- 'general_enableLikes' => 1,
50
- 'general_downloadButton' => 0,
51
- 'general_enableLightbox' => 1,
52
- 'general_perPageMedia' => 10,
53
- 'general_display_media' => 'load_more',
54
- 'general_enableMediaEndPoint' => 0,
55
- 'general_showAdminMenu' => 0,
56
- 'general_videothumbs' => 2,
57
- 'general_jpeg_image_quality' => 90,
58
- 'general_uniqueviewcount' => 0,
59
- 'general_viewcount' => 0,
60
- 'general_AllowUserData' => 1,
61
- 'rtmedia_add_linkback' => 0,
62
- 'rtmedia_affiliate_id' => '',
63
- 'rtmedia_enable_api' => 0,
64
- 'general_masonry_layout' => 0,
65
- 'general_direct_upload' => 0,
 
 
66
  );
67
 
68
  foreach ( $rtmedia->allowed_types as $type ) {
69
- // invalid keys handled in sanitize method
70
  $defaults[ 'allowedTypes_' . $type['name'] . '_enabled' ] = 0;
71
  $defaults[ 'allowedTypes_' . $type['name'] . '_featured' ] = 0;
72
  }
@@ -213,7 +215,7 @@ if ( ! class_exists( 'RTMediaSettings' ) ) {
213
  $rtmedia->options = $options;
214
  // Save Settings first then proceed.
215
  $rtmedia_option_save = filter_input( INPUT_POST, 'rtmedia-options-save', FILTER_SANITIZE_STRING );
216
- if ( isset( $rtmedia_option_save ) && current_user_can('manage_options') ) {
217
  $options = filter_input( INPUT_POST, 'rtmedia-options', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
218
  $options = $this->sanitize_before_save_options( $options );
219
  $options = apply_filters( 'rtmedia_pro_options_save_settings', $options );
@@ -382,7 +384,7 @@ if ( ! class_exists( 'RTMediaSettings' ) ) {
382
  } else {
383
  $regenerate_link = wp_nonce_url( admin_url( 'update.php?action=install-plugin&plugin=regenerate-thumbnails' ), 'install-plugin_regenerate-thumbnails' );
384
  }
385
- echo '<span class="description">' . esc_html__( 'If you make changes to width, height or crop settings, you must use ', 'buddypress-media' ).
386
  '<a href="' . esc_url( $regenerate_link ) . '">' . esc_html__( 'Regenerate Thumbnail Plugin', 'buddypress-media' ) . '</a>' .
387
  esc_html__( ' to regenerate old images.', 'buddypress-media' ) .
388
  '</span>';
43
  $options = $rtmedia->options;
44
 
45
  $defaults = array(
46
+ 'general_enableAlbums' => 1,
47
+ 'general_enableAlbums_description' => 0,
48
+ 'general_enableComments' => 0,
49
+ 'general_enableGallerysearch' => 0,
50
+ 'general_enableLikes' => 1,
51
+ 'general_downloadButton' => 0,
52
+ 'general_enableLightbox' => 1,
53
+ 'general_perPageMedia' => 10,
54
+ 'general_display_media' => 'load_more',
55
+ 'general_enableMediaEndPoint' => 0,
56
+ 'general_showAdminMenu' => 0,
57
+ 'general_videothumbs' => 2,
58
+ 'general_jpeg_image_quality' => 90,
59
+ 'general_uniqueviewcount' => 0,
60
+ 'general_viewcount' => 0,
61
+ 'general_AllowUserData' => 1,
62
+ 'rtmedia_add_linkback' => 0,
63
+ 'rtmedia_affiliate_id' => '',
64
+ 'rtmedia_enable_api' => 0,
65
+ 'general_masonry_layout' => 0,
66
+ 'general_masonry_layout_activity' => 0,
67
+ 'general_direct_upload' => 0,
68
  );
69
 
70
  foreach ( $rtmedia->allowed_types as $type ) {
71
+ // invalid keys handled in sanitize method.
72
  $defaults[ 'allowedTypes_' . $type['name'] . '_enabled' ] = 0;
73
  $defaults[ 'allowedTypes_' . $type['name'] . '_featured' ] = 0;
74
  }
215
  $rtmedia->options = $options;
216
  // Save Settings first then proceed.
217
  $rtmedia_option_save = filter_input( INPUT_POST, 'rtmedia-options-save', FILTER_SANITIZE_STRING );
218
+ if ( isset( $rtmedia_option_save ) && current_user_can( 'manage_options' ) ) {
219
  $options = filter_input( INPUT_POST, 'rtmedia-options', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
220
  $options = $this->sanitize_before_save_options( $options );
221
  $options = apply_filters( 'rtmedia_pro_options_save_settings', $options );
384
  } else {
385
  $regenerate_link = wp_nonce_url( admin_url( 'update.php?action=install-plugin&plugin=regenerate-thumbnails' ), 'install-plugin_regenerate-thumbnails' );
386
  }
387
+ echo '<span class="description">' . esc_html__( 'If you make changes to width, height or crop settings, you must use ', 'buddypress-media' ) .
388
  '<a href="' . esc_url( $regenerate_link ) . '">' . esc_html__( 'Regenerate Thumbnail Plugin', 'buddypress-media' ) . '</a>' .
389
  esc_html__( ' to regenerate old images.', 'buddypress-media' ) .
390
  '</span>';
app/helper/RTMediaSupport.php CHANGED
@@ -213,6 +213,7 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
213
  * @return array $rtmedia_plugins
214
  */
215
  public function get_plugin_info() {
 
216
  $active_plugins = (array) get_option( 'active_plugins', array() );
217
  if ( is_multisite() ) {
218
  $active_plugins = array_merge( $active_plugins, rtmedia_get_site_option( 'active_sitewide_plugins', array() ) );
@@ -736,6 +737,8 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
736
  $debug_info['[php.ini] post_max_size'] = esc_html( ini_get( 'post_max_size' ) );
737
  $debug_info['[php.ini] upload_max_filesize'] = esc_html( ini_get( 'upload_max_filesize' ) );
738
  $debug_info['[php.ini] memory_limit'] = esc_html( ini_get( 'memory_limit' ) );
 
 
739
  $active_theme = wp_get_theme();
740
  $debug_info['Theme Name'] = esc_html( $active_theme->Name );
741
  $debug_info['Theme Version'] = esc_html( $active_theme->Version );
@@ -753,7 +756,7 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
753
  echo ucwords( str_replace( '_', ' ', $option ) ) . str_repeat( ' ', 50 - strlen($option) ) . wp_strip_all_tags( $value ) . PHP_EOL;
754
  }
755
 
756
- readfile("debuginfo.txt");
757
  exit();
758
  }
759
 
213
  * @return array $rtmedia_plugins
214
  */
215
  public function get_plugin_info() {
216
+ include_once( ABSPATH . '/wp-admin/includes/plugin.php' );
217
  $active_plugins = (array) get_option( 'active_plugins', array() );
218
  if ( is_multisite() ) {
219
  $active_plugins = array_merge( $active_plugins, rtmedia_get_site_option( 'active_sitewide_plugins', array() ) );
737
  $debug_info['[php.ini] post_max_size'] = esc_html( ini_get( 'post_max_size' ) );
738
  $debug_info['[php.ini] upload_max_filesize'] = esc_html( ini_get( 'upload_max_filesize' ) );
739
  $debug_info['[php.ini] memory_limit'] = esc_html( ini_get( 'memory_limit' ) );
740
+ $plugin_info = explode( ',', $this->get_plugin_info() );
741
+ $debug_info['Installed Plugins'] = implode( ', '. PHP_EOL . str_repeat( ' ', 49 ) , $plugin_info );
742
  $active_theme = wp_get_theme();
743
  $debug_info['Theme Name'] = esc_html( $active_theme->Name );
744
  $debug_info['Theme Version'] = esc_html( $active_theme->Version );
756
  echo ucwords( str_replace( '_', ' ', $option ) ) . str_repeat( ' ', 50 - strlen($option) ) . wp_strip_all_tags( $value ) . PHP_EOL;
757
  }
758
 
759
+ readfile( "debuginfo.txt" );
760
  exit();
761
  }
762
 
app/main/RTMedia.php CHANGED
@@ -1009,7 +1009,7 @@ class RTMedia {
1009
  wp_localize_script( 'rtmedia-magnific', 'rtmedia_load_more', esc_html__( 'Loading media', 'buddypress-media' ) );
1010
  wp_localize_script( 'rtmedia-main', 'rtmedia_empty_activity_msg', esc_html__( 'Please enter some content to post.', 'buddypress-media' ) );
1011
  wp_localize_script( 'rtmedia-main', 'rtmedia_empty_comment_msg', esc_html__( 'Empty Comment is not allowed.', 'buddypress-media' ) );
1012
- wp_localize_script( 'rtmedia-main', 'rtmedia_media_delete_confirmation', esc_html__( 'Are you sure you want to delete this media?', 'buddypress-media' ) );
1013
  wp_localize_script( 'rtmedia-main', 'rtmedia_media_comment_delete_confirmation', esc_html__( 'Are you sure you want to delete this comment?', 'buddypress-media' ) );
1014
  wp_localize_script( 'rtmedia-main', 'rtmedia_album_delete_confirmation', esc_html__( 'Are you sure you want to delete this Album?', 'buddypress-media' ) );
1015
  wp_localize_script( 'rtmedia-main', 'rtmedia_drop_media_msg', esc_html__( 'Drop files here', 'buddypress-media' ) );
@@ -1053,6 +1053,7 @@ class RTMedia {
1053
  'title' => esc_html__( 'Title:', 'buddypress-media' ),
1054
  'description' => esc_html__( 'Description:', 'buddypress-media' ),
1055
  ) );
 
1056
 
1057
  // Localizing strings for rtMedia.backbone.js
1058
  $rtmedia_backbone_strings = array(
@@ -1079,6 +1080,11 @@ class RTMedia {
1079
  wp_enqueue_style( 'jquery-masonry' );
1080
  wp_enqueue_script( 'jquery-masonry' );
1081
  wp_localize_script( 'rtmedia-main', 'rtmedia_masonry_layout', 'true' );
 
 
 
 
 
1082
  } else {
1083
  wp_localize_script( 'rtmedia-main', 'rtmedia_masonry_layout', 'false' );
1084
  }
1009
  wp_localize_script( 'rtmedia-magnific', 'rtmedia_load_more', esc_html__( 'Loading media', 'buddypress-media' ) );
1010
  wp_localize_script( 'rtmedia-main', 'rtmedia_empty_activity_msg', esc_html__( 'Please enter some content to post.', 'buddypress-media' ) );
1011
  wp_localize_script( 'rtmedia-main', 'rtmedia_empty_comment_msg', esc_html__( 'Empty Comment is not allowed.', 'buddypress-media' ) );
1012
+ wp_localize_script( 'rtmedia-main', 'rtmedia_media_delete_confirmation', apply_filters( 'rtmedia_delete_prompt_message', esc_html__( 'Are you sure you want to delete this media?', 'buddypress-media' ) ) );
1013
  wp_localize_script( 'rtmedia-main', 'rtmedia_media_comment_delete_confirmation', esc_html__( 'Are you sure you want to delete this comment?', 'buddypress-media' ) );
1014
  wp_localize_script( 'rtmedia-main', 'rtmedia_album_delete_confirmation', esc_html__( 'Are you sure you want to delete this Album?', 'buddypress-media' ) );
1015
  wp_localize_script( 'rtmedia-main', 'rtmedia_drop_media_msg', esc_html__( 'Drop files here', 'buddypress-media' ) );
1053
  'title' => esc_html__( 'Title:', 'buddypress-media' ),
1054
  'description' => esc_html__( 'Description:', 'buddypress-media' ),
1055
  ) );
1056
+ wp_localize_script( 'rtmedia-backbone', 'rtmedia_no_media_found', esc_html__( 'Oops !! There\'s no media found for the request !!', 'buddypress-media' ) );
1057
 
1058
  // Localizing strings for rtMedia.backbone.js
1059
  $rtmedia_backbone_strings = array(
1080
  wp_enqueue_style( 'jquery-masonry' );
1081
  wp_enqueue_script( 'jquery-masonry' );
1082
  wp_localize_script( 'rtmedia-main', 'rtmedia_masonry_layout', 'true' );
1083
+ if ( isset( $rtmedia->options ) && isset( $rtmedia->options['general_masonry_layout_activity'] ) && 1 === intval( $rtmedia->options['general_masonry_layout_activity'] ) ) {
1084
+ wp_localize_script( 'rtmedia-main', 'rtmedia_masonry_layout_activity', 'true' );
1085
+ } else {
1086
+ wp_localize_script( 'rtmedia-main', 'rtmedia_masonry_layout_activity', 'false' );
1087
+ }
1088
  } else {
1089
  wp_localize_script( 'rtmedia-main', 'rtmedia_masonry_layout', 'false' );
1090
  }
app/main/controllers/api/RTMediaJsonApi.php CHANGED
@@ -909,11 +909,10 @@ class RTMediaJsonApi {
909
  $ec_look_updated = 140004;
910
  $msg_look_updated = esc_html__( 'media updated', 'buddypress-media' );
911
 
912
- $description = '';
913
-
914
  $rtmedia_file = filter_input( INPUT_POST, 'rtmedia_file', FILTER_SANITIZE_STRING );
915
  $image_type = filter_input( INPUT_POST, 'image_type', FILTER_SANITIZE_STRING );
916
- $title = filter_input( INPUT_POST, 'title', FILTER_SANITIZE_STRING );
 
917
 
918
  $updated = false;
919
  $uploaded_look = false;
909
  $ec_look_updated = 140004;
910
  $msg_look_updated = esc_html__( 'media updated', 'buddypress-media' );
911
 
 
 
912
  $rtmedia_file = filter_input( INPUT_POST, 'rtmedia_file', FILTER_SANITIZE_STRING );
913
  $image_type = filter_input( INPUT_POST, 'image_type', FILTER_SANITIZE_STRING );
914
+ $title = filter_input( INPUT_POST, 'title', FILTER_SANITIZE_STRING );
915
+ $description = filter_input( INPUT_POST, 'description', FILTER_SANITIZE_STRING );
916
 
917
  $updated = false;
918
  $uploaded_look = false;
app/main/controllers/media/RTMediaAlbum.php CHANGED
@@ -146,7 +146,7 @@ class RTMediaAlbum {
146
  * @global type $rtmedia_interaction
147
  *
148
  */
149
- function add( $title = '', $author_id = false, $new = true, $post_id = false, $context = false, $context_id = false ) {
150
 
151
  global $rtmedia_interaction;
152
  /* action to perform any task before adding the album */
@@ -162,6 +162,10 @@ class RTMediaAlbum {
162
  'post_status' => 'hidden',
163
  );
164
 
 
 
 
 
165
  /* Check whether to create a new album in wp_post table
166
  * This is the case when a user creates a album of his own. We need to
167
  * create a separte post in wp_post which will work as parent for
146
  * @global type $rtmedia_interaction
147
  *
148
  */
149
+ function add( $title = '', $author_id = false, $new = true, $post_id = false, $context = false, $context_id = false, $album_description = '' ) {
150
 
151
  global $rtmedia_interaction;
152
  /* action to perform any task before adding the album */
162
  'post_status' => 'hidden',
163
  );
164
 
165
+ if ( ! empty( $album_description ) ) {
166
+ $post_vars['post_content'] = $album_description;
167
+ }
168
+
169
  /* Check whether to create a new album in wp_post table
170
  * This is the case when a user creates a album of his own. We need to
171
  * create a separte post in wp_post which will work as parent for
app/main/controllers/media/RTMediaLike.php CHANGED
@@ -30,6 +30,7 @@ class RTMediaLike extends RTMediaUserInteraction {
30
  remove_filter( 'rtmedia_action_buttons_before_delete', array( $this, 'button_filter' ) );
31
  add_action( 'rtmedia_action_buttons_after_media', array( $this, 'button_filter' ), 12 );
32
  add_action( 'rtmedia_actions_before_comments', array( $this, 'like_button_filter' ), 10 );
 
33
  add_action( 'rtmedia_like_button_filter', array( $this, 'like_button_filter_nonce' ), 10, 1 );
34
  if ( ! rtmedia_comments_enabled() ) {
35
  add_action( 'rtmedia_actions_without_lightbox', array( $this, 'like_button_without_lightbox_filter' ) );
@@ -66,6 +67,21 @@ class RTMediaLike extends RTMediaUserInteraction {
66
  }
67
  }
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  function like_button_without_lightbox_filter() {
70
  if ( empty( $this->media ) ) {
71
  $this->init();
30
  remove_filter( 'rtmedia_action_buttons_before_delete', array( $this, 'button_filter' ) );
31
  add_action( 'rtmedia_action_buttons_after_media', array( $this, 'button_filter' ), 12 );
32
  add_action( 'rtmedia_actions_before_comments', array( $this, 'like_button_filter' ), 10 );
33
+ add_action( 'like_button_no_comments', array( $this, 'like_button_no_comments_callback' ), 10 );
34
  add_action( 'rtmedia_like_button_filter', array( $this, 'like_button_filter_nonce' ), 10, 1 );
35
  if ( ! rtmedia_comments_enabled() ) {
36
  add_action( 'rtmedia_actions_without_lightbox', array( $this, 'like_button_without_lightbox_filter' ) );
67
  }
68
  }
69
 
70
+ /**
71
+ * This function displays the like button even if comment
72
+ * section is disabled.
73
+ */
74
+ function like_button_no_comments_callback() {
75
+ if ( empty( $this->media ) ) {
76
+ $this->init();
77
+ }
78
+ $button = $this->render();
79
+
80
+ if ( $button ) {
81
+ echo '<span>' . $button . '</span>'; // @codingStandardsIgnoreLine
82
+ }
83
+ }
84
+
85
  function like_button_without_lightbox_filter() {
86
  if ( empty( $this->media ) ) {
87
  $this->init();
app/main/controllers/shortcodes/RTMediaGalleryShortcode.php CHANGED
@@ -148,7 +148,10 @@ class RTMediaGalleryShortcode {
148
  $attr = true;
149
  }
150
 
151
- $attr = array( 'name' => 'gallery', 'attr' => $attr );
 
 
 
152
 
153
  $attr = apply_filters( 'rtmedia_gallery_shortcode_parameter_pre_filter', $attr );
154
 
@@ -213,6 +216,18 @@ class RTMediaGalleryShortcode {
213
  }
214
  wp_localize_script( 'rtmedia-backbone', 'template_url', $template_url );
215
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  if ( $authorized_member ) { // if current user has access to view the gallery (when context is 'group')
217
  global $rtmedia_query;
218
  if ( ! $rtmedia_query ) {
@@ -239,6 +254,13 @@ class RTMediaGalleryShortcode {
239
  $attr['attr']['hide_comment_media'] = true;
240
  }
241
 
 
 
 
 
 
 
 
242
  $template->set_template( $gallery_template, $attr );
243
 
244
  if ( isset( $remove_comment_media ) && ! empty( $remove_comment_media ) ) {
@@ -251,7 +273,6 @@ class RTMediaGalleryShortcode {
251
  'rtmedia_query_where_filter',
252
  ), 10, 3 );
253
  }// End if().
254
-
255
  } else { //if user cannot view the media gallery (when context is 'group'), show message
256
  esc_html_e( 'You do not have sufficient privileges to view this gallery', 'buddypress-media' );
257
  return false;
@@ -262,7 +283,7 @@ class RTMediaGalleryShortcode {
262
 
263
  // for gallery shortcode remove all comment media reply
264
  static function rtmedia_query_where_filter_remove_comment_media( $where, $table_name, $join ) {
265
- if( function_exists( 'rtmedia_query_where_filter_remove_comment_media' ) ){
266
  $where = rtmedia_query_where_filter_remove_comment_media( $where, $table_name, $join );
267
  }
268
  return $where;
148
  $attr = true;
149
  }
150
 
151
+ $attr = array(
152
+ 'name' => 'gallery',
153
+ 'attr' => $attr,
154
+ );
155
 
156
  $attr = apply_filters( 'rtmedia_gallery_shortcode_parameter_pre_filter', $attr );
157
 
216
  }
217
  wp_localize_script( 'rtmedia-backbone', 'template_url', $template_url );
218
 
219
+ /**
220
+ * Remove search_filter paramater from attr,
221
+ * Reason: Showing error on Database Errors [ SQL Query ]
222
+ * Solution: Unset search_filter parameter store value on another variable.
223
+ */
224
+ if ( isset( $attr['attr']['search_filter'] ) ) {
225
+ if ( 'true' === $attr['attr']['search_filter'] ) {
226
+ $search_filter_status = $attr['attr']['search_filter'];
227
+ unset( $attr['attr']['search_filter'] );
228
+ }
229
+ }
230
+
231
  if ( $authorized_member ) { // if current user has access to view the gallery (when context is 'group')
232
  global $rtmedia_query;
233
  if ( ! $rtmedia_query ) {
254
  $attr['attr']['hide_comment_media'] = true;
255
  }
256
 
257
+ /**
258
+ * Set search_filter into attr array, if set search_filter parameter in shortcode.
259
+ */
260
+ if ( isset( $search_filter_status ) ) {
261
+ $attr['attr']['search_filter'] = $search_filter_status;
262
+ }
263
+
264
  $template->set_template( $gallery_template, $attr );
265
 
266
  if ( isset( $remove_comment_media ) && ! empty( $remove_comment_media ) ) {
273
  'rtmedia_query_where_filter',
274
  ), 10, 3 );
275
  }// End if().
 
276
  } else { //if user cannot view the media gallery (when context is 'group'), show message
277
  esc_html_e( 'You do not have sufficient privileges to view this gallery', 'buddypress-media' );
278
  return false;
283
 
284
  // for gallery shortcode remove all comment media reply
285
  static function rtmedia_query_where_filter_remove_comment_media( $where, $table_name, $join ) {
286
+ if ( function_exists( 'rtmedia_query_where_filter_remove_comment_media' ) ) {
287
  $where = rtmedia_query_where_filter_remove_comment_media( $where, $table_name, $join );
288
  }
289
  return $where;
app/main/controllers/template/RTMediaAJAX.php CHANGED
@@ -24,6 +24,7 @@ class RTMediaAJAX {
24
  function create_album() {
25
  $nonce = filter_input( INPUT_POST, 'create_album_nonce', FILTER_SANITIZE_STRING );
26
  $_name = filter_input( INPUT_POST, 'name', FILTER_SANITIZE_STRING );
 
27
 
28
  $return['error'] = false;
29
  if ( wp_verify_nonce( $nonce, 'rtmedia_create_album_nonce' ) && isset( $_name ) && $_name && is_rtmedia_album_enable() ) {
@@ -62,15 +63,16 @@ class RTMediaAJAX {
62
 
63
  // setup new album data
64
  $album_data = apply_filters( 'rtmedia_create_album_data', array(
65
- 'title' => $_name,
66
- 'author' => get_current_user_id(),
67
- 'new' => true,
68
- 'post_id' => false,
69
- 'context' => $context,
70
- 'context_id' => $context_id,
 
71
  ) );
72
 
73
- $rtmedia_id = $album->add( $album_data['title'], $album_data['author'], $album_data['new'], $album_data['post_id'], $album_data['context'], $album_data['context_id'] );
74
 
75
  $rtmedia_nav = new RTMediaNav();
76
 
24
  function create_album() {
25
  $nonce = filter_input( INPUT_POST, 'create_album_nonce', FILTER_SANITIZE_STRING );
26
  $_name = filter_input( INPUT_POST, 'name', FILTER_SANITIZE_STRING );
27
+ $_description = filter_input( INPUT_POST, 'description', FILTER_SANITIZE_STRING );
28
 
29
  $return['error'] = false;
30
  if ( wp_verify_nonce( $nonce, 'rtmedia_create_album_nonce' ) && isset( $_name ) && $_name && is_rtmedia_album_enable() ) {
63
 
64
  // setup new album data
65
  $album_data = apply_filters( 'rtmedia_create_album_data', array(
66
+ 'title' => $_name,
67
+ 'author' => get_current_user_id(),
68
+ 'new' => true,
69
+ 'post_id' => false,
70
+ 'context' => $context,
71
+ 'context_id' => $context_id,
72
+ 'album_description' => $_description,
73
  ) );
74
 
75
+ $rtmedia_id = $album->add( $album_data['title'], $album_data['author'], $album_data['new'], $album_data['post_id'], $album_data['context'], $album_data['context_id'], $album_data['album_description'] );
76
 
77
  $rtmedia_nav = new RTMediaNav();
78
 
app/main/controllers/template/rtmedia-actions.php CHANGED
@@ -182,7 +182,7 @@ add_action( 'rtmedia_album_gallery_actions', 'rtmedia_gallery_options', 80 );
182
  */
183
  function rtmedia_create_album_modal() {
184
 
185
- global $rtmedia_query;
186
 
187
  if ( is_rtmedia_album_enable() && isset( $rtmedia_query->query['context_id'] ) && isset( $rtmedia_query->query['context'] ) && ( ! ( isset( $rtmedia_query->is_gallery_shortcode ) && true === $rtmedia_query->is_gallery_shortcode ) ) || apply_filters( 'rtmedia_load_add_album_modal', false ) ) {
188
  ?>
@@ -194,6 +194,10 @@ function rtmedia_create_album_modal() {
194
  <label class="rtm-modal-grid-title-column" for="rtmedia_album_name"><?php esc_html_e( 'Album Title : ', 'buddypress-media' ); ?></label>
195
  <input type="text" id="rtmedia_album_name" value="" class="rtm-input-medium" />
196
  </p>
 
 
 
 
197
  <?php do_action( 'rtmedia_add_album_privacy' ); ?>
198
  <input type="hidden" id="rtmedia_album_context" value="<?php echo esc_attr( $rtmedia_query->query['context'] ); ?>">
199
  <input type="hidden" id="rtmedia_album_context_id" value="<?php echo esc_attr( $rtmedia_query->query['context_id'] ); ?>">
@@ -308,7 +312,6 @@ function add_upload_button() {
308
  /**
309
  * Add filter to transfer "Upload" string,
310
  * issue: http://git.rtcamp.com/rtmedia/rtMedia/issues/133
311
- * By: Yahil
312
  */
313
  $upload_string = apply_filters( 'rtmedia_upload_button_string', __( 'Upload', 'buddypress-media' ) );
314
 
@@ -327,6 +330,8 @@ function add_upload_button() {
327
  add_action( 'rtmedia_media_gallery_actions', 'add_upload_button', 99 );
328
  add_action( 'rtmedia_album_gallery_actions', 'add_upload_button', 99 );
329
 
 
 
330
  /**
331
  * Add music cover art
332
  *
@@ -709,11 +714,11 @@ function rt_check_addon_status() {
709
 
710
  foreach ( $addons as $addon ) {
711
 
712
- if ( isset( $addon['args'] ) && isset( $addon['args']['addon_id'] ) && ! empty( $addon['args']['addon_id'] ) ){
713
 
714
  $addon_id = $addon['args']['addon_id'];
715
  // If license key is not present, then remove the status from config
716
- // This forces the `Deactivate License` to `Activate License`
717
  if ( empty( $addon['args']['license_key'] ) ) {
718
  delete_option( 'edd_' . $addon_id . '_license_status' );
719
  }
@@ -721,7 +726,7 @@ function rt_check_addon_status() {
721
  $addon_data = get_option( 'edd_' . $addon_id . '_active' );
722
 
723
  // Remove the license from the addon if black license/input is provided
724
- // This allows user to remove the license from the addon
725
  if ( ! empty( $addon_data ) && is_object( $addon_data ) && empty( $addon['args']['license_key'] ) ) {
726
  if ( isset( $addon_data->success ) && isset( $addon_data->license ) ) {
727
  if ( ( isset( $_POST[ 'edd_' . $addon_id . '_license_key' ] ) && '' == $_POST[ 'edd_' . $addon_id . '_license_key' ] ) || '' == $addon_data->success || 'invalid' == $addon_data->license ) {
@@ -731,7 +736,6 @@ function rt_check_addon_status() {
731
  }
732
  }
733
  }
734
-
735
  }
736
 
737
  if ( ! empty( $addon['args']['license_key'] ) && ! empty( $addon['name'] ) && ! empty( $addon['args']['addon_id'] ) ) {
@@ -852,7 +856,118 @@ add_action( 'bp_activity_register_activity_actions', 'rtmedia_activity_register_
852
 
853
 
854
  /**
855
- * rtmedia_set_permalink Re-save premalink settings on plugin activation or plugin updates
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
856
  */
857
  function rtmedia_set_permalink() {
858
  $is_permalink_reset = get_option( 'is_permalink_reset' );
@@ -982,3 +1097,18 @@ if ( ! function_exists( 'rtmedia_gallery_after_title_callback' ) ) {
982
  }
983
  }
984
  add_action( 'rtmedia_gallery_after_title', 'rtmedia_gallery_after_title_callback', 11, 1 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  */
183
  function rtmedia_create_album_modal() {
184
 
185
+ global $rtmedia_query, $rtmedia;
186
 
187
  if ( is_rtmedia_album_enable() && isset( $rtmedia_query->query['context_id'] ) && isset( $rtmedia_query->query['context'] ) && ( ! ( isset( $rtmedia_query->is_gallery_shortcode ) && true === $rtmedia_query->is_gallery_shortcode ) ) || apply_filters( 'rtmedia_load_add_album_modal', false ) ) {
188
  ?>
194
  <label class="rtm-modal-grid-title-column" for="rtmedia_album_name"><?php esc_html_e( 'Album Title : ', 'buddypress-media' ); ?></label>
195
  <input type="text" id="rtmedia_album_name" value="" class="rtm-input-medium" />
196
  </p>
197
+ <p>
198
+ <label class="rtm-modal-grid-title-column" for="rtmedia_album_description"><?php esc_html_e( 'Album Description : ', 'buddypress-media' ); ?></label>
199
+ <textarea type="text" id="rtmedia_album_description" value="" class="rtm-input-medium"></textarea>
200
+ </p>
201
  <?php do_action( 'rtmedia_add_album_privacy' ); ?>
202
  <input type="hidden" id="rtmedia_album_context" value="<?php echo esc_attr( $rtmedia_query->query['context'] ); ?>">
203
  <input type="hidden" id="rtmedia_album_context_id" value="<?php echo esc_attr( $rtmedia_query->query['context_id'] ); ?>">
312
  /**
313
  * Add filter to transfer "Upload" string,
314
  * issue: http://git.rtcamp.com/rtmedia/rtMedia/issues/133
 
315
  */
316
  $upload_string = apply_filters( 'rtmedia_upload_button_string', __( 'Upload', 'buddypress-media' ) );
317
 
330
  add_action( 'rtmedia_media_gallery_actions', 'add_upload_button', 99 );
331
  add_action( 'rtmedia_album_gallery_actions', 'add_upload_button', 99 );
332
 
333
+
334
+
335
  /**
336
  * Add music cover art
337
  *
714
 
715
  foreach ( $addons as $addon ) {
716
 
717
+ if ( ! empty( $addon['args']['addon_id'] ) ) {
718
 
719
  $addon_id = $addon['args']['addon_id'];
720
  // If license key is not present, then remove the status from config
721
+ // This forces the `Deactivate License` to `Activate License`.
722
  if ( empty( $addon['args']['license_key'] ) ) {
723
  delete_option( 'edd_' . $addon_id . '_license_status' );
724
  }
726
  $addon_data = get_option( 'edd_' . $addon_id . '_active' );
727
 
728
  // Remove the license from the addon if black license/input is provided
729
+ // This allows user to remove the license from the addon.
730
  if ( ! empty( $addon_data ) && is_object( $addon_data ) && empty( $addon['args']['license_key'] ) ) {
731
  if ( isset( $addon_data->success ) && isset( $addon_data->license ) ) {
732
  if ( ( isset( $_POST[ 'edd_' . $addon_id . '_license_key' ] ) && '' == $_POST[ 'edd_' . $addon_id . '_license_key' ] ) || '' == $addon_data->success || 'invalid' == $addon_data->license ) {
736
  }
737
  }
738
  }
 
739
  }
740
 
741
  if ( ! empty( $addon['args']['license_key'] ) && ! empty( $addon['name'] ) && ! empty( $addon['args']['addon_id'] ) ) {
856
 
857
 
858
  /**
859
+ * Search Media mockup
860
+ * @param array $attr
861
+ *
862
+ * @since 4.4
863
+ */
864
+ function add_search_filter( $attr = null ) {
865
+
866
+ global $rtmedia, $rtmedia_query;
867
+
868
+ // Get media type.
869
+ $media_type = get_query_var( 'media' );
870
+
871
+ // Prevent search box from these tabs.
872
+ $notallowed_types = array(
873
+ 'likes' => true,
874
+ 'other' => true,
875
+ 'favlist' => true,
876
+ 'playlist' => true,
877
+ );
878
+ if ( function_exists( 'rtmedia_media_search_enabled' ) && rtmedia_media_search_enabled() ) {
879
+
880
+ // If found the prevented tab, then stop.
881
+ if ( ! empty( $media_type ) && isset( $notallowed_types[ $media_type ] ) ) {
882
+ return;
883
+ }
884
+
885
+ // Prevent showing search box for not allowed media types.
886
+ if ( isset( $rtmedia_query->query['media_type'] ) && isset( $notallowed_types[ $rtmedia_query->query['media_type'] ] ) ) {
887
+ return;
888
+ }
889
+
890
+ // Do not show search box if playlist view is enabled.
891
+ if ( ! empty( $rtmedia->options['general_enable_music_playlist_view'] ) && 1 == $rtmedia->options['general_enable_music_playlist_view'] && 'music' === $media_type ) {
892
+ return;
893
+ }
894
+
895
+ // Do not show search box if table view is enabled for documents.
896
+ if ( ! empty( $rtmedia->options['general_enable_document_other_table_view'] ) && 1 == $rtmedia->options['general_enable_document_other_table_view'] && 'document' === $media_type ) {
897
+ return;
898
+ }
899
+
900
+ $search_value = ( isset( $_GET['search'] ) ? sanitize_text_field( wp_unslash( $_GET['search'] ) ) : '' );
901
+
902
+ $html = "<form method='post' id='media_search_form' class='media_search'>";
903
+ $html .= "<input type='text' id='media_search_input' value='" . esc_attr( $search_value ) . "' class='media_search_input' name='media_search' value='' placeholder='Search Media'>";
904
+ $html .= "<span id='media_fatch_loader'></span>";
905
+
906
+ $search_by = '';
907
+ /**
908
+ * Filters the search by parameter for searching media with specific type.
909
+ *
910
+ * @param string $search_by Default is blank.
911
+ */
912
+ $search_by = apply_filters( 'rtmedia_media_search_by', $search_by );
913
+
914
+ if ( isset( $search_by ) && $search_by ) {
915
+ $html .= "<select id='search_by' class='search_by'>";
916
+
917
+ if ( ! rtm_check_member_type() || strpos( $_SERVER['REQUEST_URI'], 'members' ) || ( isset( $attr['media_author'] ) && $attr['media_author'] ) ) {
918
+ unset( $search_by['member_type'] );
919
+ }
920
+
921
+ if ( strpos( $_SERVER['REQUEST_URI'], 'members' ) ) {
922
+ unset( $search_by['author'] );
923
+ }
924
+
925
+ if ( function_exists( 'is_plugin_active' ) && ! is_plugin_active( 'rtmedia-custom-attributes/index.php' ) ) {
926
+ unset( $search_by['attribute'] );
927
+ }
928
+
929
+ if ( strpos( $_SERVER['REQUEST_URI'], 'attribute' ) ) {
930
+ unset( $search_by['attribute'] );
931
+ }
932
+
933
+ if ( isset( $rtmedia_query->media_query['media_type'] ) && ! is_array( $rtmedia_query->media_query['media_type'] ) ) {
934
+ unset( $search_by['media_type'] );
935
+ }
936
+
937
+ if ( isset( $attr['media_author'] ) && $attr['media_author'] ) {
938
+ unset( $search_by['author'] );
939
+ }
940
+ foreach ( $search_by as $key => $value ) {
941
+ $selected = ( isset( $_REQUEST['search_by'] ) && $_REQUEST['search_by'] == $key ? 'selected' : '' );
942
+ if ( $search_by[ $key ] ) {
943
+ $key = esc_attr( $key );
944
+ $search_keyword = str_replace( '_', ' ', $key );
945
+
946
+ $html .= "<option value='$key' $selected > " . esc_html__( $search_keyword, 'buddypress-media' ) . "</option>";
947
+ }
948
+ }
949
+
950
+ $html .= '</select>';
951
+ }
952
+
953
+ $html .= "<span id='media_search_remove' class='media_search_remove search_option'><i class='dashicons dashicons-no rtmicon'></i></span>";
954
+ $html .= "<button type='submit' id='media_search' class='search_option'><i class='dashicons dashicons-search rtmicon'></i></button>";
955
+ $html .= '</form>';
956
+
957
+ /**
958
+ * Filters the html of search form.
959
+ *
960
+ * @param string $html HTML content of form.
961
+ */
962
+ echo apply_filters( 'rtmedia_gallery_search', $html );
963
+ }
964
+ }
965
+
966
+ add_action( 'rtmedia_media_gallery_actions', 'add_search_filter', 99 );
967
+
968
+
969
+ /**
970
+ * Re-save premalink settings on plugin activation or plugin updates
971
  */
972
  function rtmedia_set_permalink() {
973
  $is_permalink_reset = get_option( 'is_permalink_reset' );
1097
  }
1098
  }
1099
  add_action( 'rtmedia_gallery_after_title', 'rtmedia_gallery_after_title_callback', 11, 1 );
1100
+
1101
+ /**
1102
+ * Add hidden field for media type.
1103
+ * This will used by search functionality.
1104
+ */
1105
+ function rtmedia_hidden_field() {
1106
+ // Get media type from query string.
1107
+ $media_type = get_query_var( 'media' );
1108
+ if ( ! empty( $media_type ) ) {
1109
+ ?>
1110
+ <input type="hidden" name="media_type" value="<?php echo esc_attr( $media_type ); ?>" />
1111
+ <?php
1112
+ }
1113
+ }
1114
+ add_action( 'rtmedia_after_media_gallery_title', 'rtmedia_hidden_field' );
app/main/controllers/template/rtmedia-filters.php CHANGED
@@ -668,6 +668,150 @@ function rtmedia_like_html_you_and_more_like_callback( $like_count, $user_like_i
668
  }
669
  add_filter( 'rtmedia_like_html_you_and_more_like', 'rtmedia_like_html_you_and_more_like_callback', 10, 2 );
670
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
671
  function rtmedia_comment_max_links_callback( $values, $option = '' ) {
672
  $new_values = $values;
673
  if ( apply_filters( 'rtmedia_comment_max_links', true ) && 'comment_max_links' == $option ) {
668
  }
669
  add_filter( 'rtmedia_like_html_you_and_more_like', 'rtmedia_like_html_you_and_more_like_callback', 10, 2 );
670
 
671
+ /**
672
+ * Update where query for media search
673
+ * @param string $where
674
+ * @param string $table_name
675
+ * @param string $join
676
+ * @return string
677
+ */
678
+ function rtmedia_search_fillter_where_query( $where, $table_name, $join ) {
679
+ global $wpdb;
680
+ $posts_table = $wpdb->posts;
681
+ $terms_table = $wpdb->terms;
682
+ $term_relationships_table = $wpdb->term_relationships;
683
+ $term_taxonomy_table = $wpdb->term_taxonomy;
684
+ $search = ( isset( $_REQUEST['search'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['search'] ) ) : '';
685
+ $search_by = ( isset( $_REQUEST['search_by'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['search_by'] ) ) : '';
686
+ $media_type = ( isset( $_REQUEST['media_type'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['media_type'] ) ) : '';
687
+ $rtmedia_current_album = ( isset( $_REQUEST['rtmedia-current-album'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['rtmedia-current-album'] ) ) : '';
688
+
689
+ if ( '' != $search ) {
690
+ $author_id = rtm_select_user( $search );
691
+ $member_type = rtm_fetch_user_by_member_type( $search );
692
+
693
+ $where .= ' AND ';
694
+ if ( ! empty( $search_by ) ) {
695
+
696
+ if ( ! empty( $rtmedia_current_album ) ) {
697
+ $where .= " $table_name.album_id = '" . $rtmedia_current_album . "' AND ";
698
+ }
699
+
700
+ if ( ! empty( $media_type ) && empty( $rtmedia_current_album ) ) {
701
+ $where .= " $table_name.media_type = '" . $media_type . "' AND ";
702
+ }
703
+
704
+ if ( 'title' == $search_by ) {
705
+ $where .= " $table_name.media_title LIKE '%" . $search . "%' ";
706
+ } else if ( 'description' == $search_by ) {
707
+ $where .= " post_table.post_content LIKE '%" . $search . "%'";
708
+
709
+ } else if ( 'author' == $search_by ) {
710
+ if ( ! empty( $author_id ) ) {
711
+ $where .= " $table_name.media_author IN (" . $author_id . ") ";
712
+ }
713
+ } else if ( 'member_type' == $search_by ) {
714
+ if ( ! empty( $member_type ) ) {
715
+ $where .= " $table_name.media_author IN (" . $member_type . ") ";
716
+ }
717
+ } else {
718
+ $where .= '2=2';
719
+ }
720
+ } else {
721
+ if ( ! empty( $rtmedia_current_album ) ) {
722
+ $where .= " $table_name.album_id = '" . $rtmedia_current_album . "' AND ";
723
+ }
724
+
725
+ if ( ! empty( $media_type ) && empty( $rtmedia_current_album ) ) {
726
+ $where .= " $table_name.media_type = '" . $media_type . "' AND ";
727
+ }
728
+ $where .= ' ( ';
729
+ $where .= " $table_name.media_title LIKE '%" . $search . "%' ";
730
+ if ( ! empty( $author_id ) ) {
731
+ $where .= " OR $table_name.media_author IN (" . $author_id . ") ";
732
+ }
733
+ if ( ! empty( $member_type ) ) {
734
+ $where .= " OR $table_name.media_author IN (" . $member_type . ") ";
735
+ }
736
+ $where .= " OR post_table.post_content LIKE '%" . $search . "%'";
737
+
738
+ if ( empty( $media_type ) ) {
739
+ $where .= " OR $table_name.media_type = '" . $search . "' ";
740
+ }
741
+
742
+ $where .= ' ) ';
743
+ } // End if().
744
+ } else {
745
+
746
+ // Reset data for album's media.
747
+ if ( ! empty( $rtmedia_current_album ) ) {
748
+ $where .= " AND $table_name.album_id = '" . $rtmedia_current_album . "' ";
749
+ }
750
+
751
+ // Reset data for particular media type.
752
+ if ( ! empty( $media_type ) && empty( $rtmedia_current_album ) ) {
753
+ $where .= " AND $table_name.media_type = '" . $media_type . "' ";
754
+ }
755
+ } // End if().
756
+
757
+ return $where;
758
+ }
759
+
760
+ add_filter( 'rtmedia-model-where-query', 'rtmedia_search_fillter_where_query', 10, 3 );
761
+
762
+ /**
763
+ * Update join query for media search
764
+ * @param string $join
765
+ * @param string $table_name
766
+ * @return string
767
+ */
768
+ function rtmedia_search_fillter_join_query( $join, $table_name ) {
769
+
770
+ global $wpdb;
771
+ $posts_table = $wpdb->posts;
772
+ $terms_table = $wpdb->terms;
773
+ $term_relationships_table = $wpdb->term_relationships;
774
+ $term_taxonomy_table = $wpdb->term_taxonomy;
775
+ $search = ( isset( $_REQUEST['search'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['search'] ) ) : '';
776
+ $search_by = ( isset( $_REQUEST['search_by'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['search_by'] ) ) : '';
777
+
778
+ if ( '' != $search ) {
779
+ $join .= "INNER JOIN $posts_table as post_table ON ( post_table.ID = $table_name.media_id AND post_table.post_type = 'attachment')";
780
+
781
+ $request_url = explode( '/', $_SERVER['REQUEST_URI'] );
782
+ if ( ! empty( $search_by ) && 'attribute' === $search_by && ! in_array( 'attribute', $request_url ) ) {
783
+ $join .= " INNER JOIN $posts_table ON ( $posts_table.ID = $table_name.media_id AND $posts_table.post_type = 'attachment' )
784
+ INNER JOIN $terms_table ON ( $terms_table.slug IN ('" . $search . "') )
785
+ INNER JOIN $term_taxonomy_table ON ( $term_taxonomy_table.term_id = $terms_table.term_id )
786
+ INNER JOIN $term_relationships_table ON ( $term_relationships_table.term_taxonomy_id = $term_taxonomy_table.term_taxonomy_id AND $term_relationships_table.object_id = $posts_table.ID ) ";
787
+ }
788
+ }
789
+ return $join;
790
+ }
791
+
792
+ add_filter( 'rtmedia-model-join-query', 'rtmedia_search_fillter_join_query', 11, 2 );
793
+
794
+ /**
795
+ * Update media type for media search
796
+ * @param array $columns
797
+ * @return array
798
+ */
799
+ function rtmedia_model_query_columns( $columns ) {
800
+ $search = ( isset( $_REQUEST['search'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['search'] ) ) : '';
801
+ $search_by = ( isset( $_REQUEST['search_by'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['search_by'] ) ) : '';
802
+ if ( ! empty( $search ) ) {
803
+ if ( ! empty( $search_by ) && 'media_type' === $search_by ) {
804
+ if ( isset( $columns['media_type']['value'] ) && is_array( $columns['media_type']['value'] ) ) {
805
+ $columns['media_type']['value'] = array( $search );
806
+ }
807
+ }
808
+ }
809
+
810
+ return $columns;
811
+ }
812
+
813
+ add_filter( 'rtmedia-model-query-columns', 'rtmedia_model_query_columns', 10, 1 );
814
+
815
  function rtmedia_comment_max_links_callback( $values, $option = '' ) {
816
  $new_values = $values;
817
  if ( apply_filters( 'rtmedia_comment_max_links', true ) && 'comment_max_links' == $option ) {
app/main/controllers/template/rtmedia-functions.php CHANGED
@@ -90,7 +90,7 @@ function rtmedia_title() {
90
  }
91
 
92
  /**
93
- * echo the album name of the media
94
  *
95
  * @global object $rtmedia_media
96
  *
@@ -557,8 +557,8 @@ function rtmedia_media( $size_flag = true, $echo = true, $media_size = 'rt_media
557
  $size = '';
558
  }
559
 
560
- $html = '<audio src="%s" %s type="audio/mp3" class="wp-audio-shortcode" id="bp_media_audio_%s" controls="controls" preload="none"></audio>';
561
- $html .= sprintf( $html, esc_url( wp_get_attachment_url( $rtmedia_media->media_id ) ), esc_attr( $size ), esc_attr( $rtmedia_media->id ) );
562
  } else {
563
  $html = false;
564
  }
@@ -3942,6 +3942,104 @@ if ( ! function_exists( 'rtmedia_show_title' ) ) {
3942
  }
3943
  }
3944
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3945
 
3946
  /**
3947
  *
90
  }
91
 
92
  /**
93
+ * Echo the album name of the media.
94
  *
95
  * @global object $rtmedia_media
96
  *
557
  $size = '';
558
  }
559
 
560
+ $audio_html = '<audio src="%s" %s type="audio/mp3" class="wp-audio-shortcode" id="bp_media_audio_%s" controls="controls" preload="none"></audio>';
561
+ $html = sprintf( $audio_html, esc_url( wp_get_attachment_url( $rtmedia_media->media_id ) ), esc_attr( $size ), esc_attr( $rtmedia_media->id ) );
562
  } else {
563
  $html = false;
564
  }
3942
  }
3943
  }
3944
 
3945
+ /**
3946
+ * Fetch user as per keyword.
3947
+ *
3948
+ * @param [string] $user
3949
+ * @return [string] $user_id
3950
+ */
3951
+ function rtm_select_user( $user ) {
3952
+ $user_ids = array();
3953
+
3954
+ if ( ! empty( $user ) ) {
3955
+ $user_query = new WP_User_Query( array( 'search' => '*' . esc_attr( $user ) . '*' ) );
3956
+
3957
+ if ( ! empty( $user_query->results ) ) {
3958
+ foreach ( $user_query->results as $user_id ) {
3959
+ array_push( $user_ids, $user_id->ID );
3960
+ }
3961
+ }
3962
+ }
3963
+
3964
+
3965
+ $user_id = implode( ',', $user_ids );
3966
+ return $user_id;
3967
+ }
3968
+
3969
+ /**
3970
+ * Fetch user id by member type.
3971
+ *
3972
+ * @author Yahil
3973
+ *
3974
+ * @since 4.4
3975
+ * @param string $type user member type string
3976
+ * @return string $member_id
3977
+ */
3978
+ function rtm_fetch_user_by_member_type( $type ) {
3979
+ $member_id = array();
3980
+
3981
+ // Search for uppercase also.
3982
+ $type = strtolower( $type );
3983
+
3984
+ if ( ! empty( $type ) ) {
3985
+ $member_args = array(
3986
+ 'member_type' => array( $type ),
3987
+ );
3988
+
3989
+ if ( bp_has_members( $member_args ) ) {
3990
+ while ( bp_members() ) {
3991
+ bp_the_member();
3992
+
3993
+ array_push( $member_id, bp_get_member_user_id() );
3994
+ }
3995
+ }
3996
+ $member_id = implode( ',', $member_id );
3997
+ }
3998
+
3999
+ return $member_id;
4000
+
4001
+ }
4002
+
4003
+ /**
4004
+ * Check member type set or not.
4005
+ *
4006
+ * @author Yahil
4007
+ *
4008
+ * @since 4.4
4009
+ * @return bool
4010
+ */
4011
+ function rtm_check_member_type() {
4012
+ $status = false;
4013
+
4014
+ if ( function_exists( 'buddypress' ) ) {
4015
+ $bp = buddypress();
4016
+
4017
+ if ( isset( $bp->members->types ) ) {
4018
+ if ( is_array( $bp->members->types ) && ! empty( $bp->members->types ) ) {
4019
+ $status = true;
4020
+ }
4021
+ }
4022
+ }
4023
+
4024
+ return $status;
4025
+ }
4026
+ /**
4027
+ * Checking if media search option are enabled
4028
+ *
4029
+ * @global RTMedia $rtmedia
4030
+ *
4031
+ * @return bool
4032
+ */
4033
+ function rtmedia_media_search_enabled() {
4034
+
4035
+ global $rtmedia;
4036
+
4037
+ if ( isset( $rtmedia->options['general_enableGallerysearch'] ) ) {
4038
+ return $rtmedia->options['general_enableGallerysearch'];
4039
+ }
4040
+
4041
+ return 0;
4042
+ }
4043
 
4044
  /**
4045
  *
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
  Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
- Version: 4.3.2
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -22,7 +22,7 @@ if ( ! defined( 'RTMEDIA_VERSION' ) ) {
22
  * The version of the plugin
23
  *
24
  */
25
- define( 'RTMEDIA_VERSION', '4.3.2' );
26
  }
27
 
28
  if ( ! defined( 'RTMEDIA_PATH' ) ) {
3
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
  Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
+ Version: 4.4
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
22
  * The version of the plugin
23
  *
24
  */
25
+ define( 'RTMEDIA_VERSION', '4.4' );
26
  }
27
 
28
  if ( ! defined( 'RTMEDIA_PATH' ) ) {
languages/buddypress-media.po CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.3.2\n"
6
  "Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
7
- "POT-Creation-Date: 2017-05-11 11:20:09+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -139,7 +139,7 @@ msgstr ""
139
 
140
  #: app/admin/RTMediaAdmin.php:735 app/admin/RTMediaAdmin.php:791
141
  #: app/admin/RTMediaAdmin.php:794 app/admin/RTMediaAdmin.php:957
142
- #: app/admin/RTMediaAdmin.php:1320 app/helper/RTMediaSettings.php:247
143
  #: app/helper/RTMediaSupport.php:67 app/helper/RTMediaSupport.php:68
144
  msgid "Support"
145
  msgstr ""
@@ -400,9 +400,9 @@ msgid ""
400
  msgstr ""
401
 
402
  #: app/admin/RTMediaAdmin.php:1584 app/admin/RTMediaAdmin.php:1602
403
- #: app/admin/RTMediaAdmin.php:1620 app/admin/RTMediaFormHandler.php:446
404
- #: app/admin/RTMediaFormHandler.php:457 app/helper/RTMediaSettings.php:323
405
- #: app/helper/RTMediaSupport.php:416 app/helper/RTMediaSupport.php:694
406
  msgid "here"
407
  msgstr ""
408
 
@@ -462,364 +462,380 @@ msgid ""
462
  "to the <a href=\"%s\">Licenses page</a> to fix this issue."
463
  msgstr ""
464
 
465
- #: app/admin/RTMediaFormHandler.php:61 app/admin/RTMediaFormHandler.php:102
466
- #: app/admin/RTMediaFormHandler.php:195 app/admin/RTMediaFormHandler.php:230
467
  msgid "Please provide a \"value\" in the argument."
468
  msgstr ""
469
 
470
- #: app/admin/RTMediaFormHandler.php:143
471
  msgid "Need to specify atleast two radios, else use a checkbox instead"
472
  msgstr ""
473
 
474
- #: app/admin/RTMediaFormHandler.php:278 templates/media/album-gallery.php:67
475
- #: templates/media/media-gallery.php:84
476
  msgid "Load More"
477
  msgstr ""
478
 
479
- #: app/admin/RTMediaFormHandler.php:279
480
  msgid "Pagination"
481
  msgstr ""
482
 
483
- #: app/admin/RTMediaFormHandler.php:291
484
  msgid "Allow user to comment on uploaded media"
485
  msgstr ""
486
 
487
- #: app/admin/RTMediaFormHandler.php:296
488
  msgid ""
489
  "This will display the comment form and comment listing on single media "
490
  "pages as well as inside lightbox (if lightbox is enabled)."
491
  msgstr ""
492
 
493
- #: app/admin/RTMediaFormHandler.php:301
 
 
 
 
 
 
 
 
494
  msgid "Enable likes for media"
495
  msgstr ""
496
 
497
- #: app/admin/RTMediaFormHandler.php:306
498
  msgid "Enabling this setting will add like feature for media."
499
  msgstr ""
500
 
501
- #: app/admin/RTMediaFormHandler.php:311
502
  msgid "Use lightbox to display media"
503
  msgstr ""
504
 
505
- #: app/admin/RTMediaFormHandler.php:316
506
  msgid "View single media in facebook style lightbox."
507
  msgstr ""
508
 
509
- #: app/admin/RTMediaFormHandler.php:321
510
  msgid "Number of media per page"
511
  msgstr ""
512
 
513
- #: app/admin/RTMediaFormHandler.php:327
514
  msgid "Number of media items you want to show per page on front end."
515
  msgstr ""
516
 
517
- #: app/admin/RTMediaFormHandler.php:333
518
  msgid "Media display pagination option"
519
  msgstr ""
520
 
521
- #: app/admin/RTMediaFormHandler.php:339
522
  msgid "Choose whether you want the load more button or pagination buttons."
523
  msgstr ""
524
 
525
- #: app/admin/RTMediaFormHandler.php:345
526
  msgid "Enable"
527
  msgstr ""
528
 
529
- #: app/admin/RTMediaFormHandler.php:345
530
  msgid "Cascading grid layout"
531
  msgstr ""
532
 
533
- #: app/admin/RTMediaFormHandler.php:350
534
  msgid "If you enable masonry view, it is advisable to"
535
  msgstr ""
536
 
537
- #: app/admin/RTMediaFormHandler.php:350
538
  msgid "for masonry view."
539
  msgstr ""
540
 
541
- #: app/admin/RTMediaFormHandler.php:354
542
  msgid "You might need to"
543
  msgstr ""
544
 
545
- #: app/admin/RTMediaFormHandler.php:354
546
  msgid "change thumbnail size"
547
  msgstr ""
548
 
549
- #: app/admin/RTMediaFormHandler.php:354
550
  msgid "and uncheck the crop box for thumbnails."
551
  msgstr ""
552
 
553
- #: app/admin/RTMediaFormHandler.php:354
554
  msgid ""
555
  "To set gallery for fixed width, set image height to 0 and width as per your "
556
  "requirement and vice-versa."
557
  msgstr ""
558
 
559
- #: app/admin/RTMediaFormHandler.php:357
 
 
 
 
560
  msgid "Enable Direct Upload"
561
  msgstr ""
562
 
563
- #: app/admin/RTMediaFormHandler.php:362
564
  msgid "Uploading media directly as soon as it gets selected."
565
  msgstr ""
566
 
567
- #: app/admin/RTMediaFormHandler.php:386
568
  msgid "Single Media View"
569
  msgstr ""
570
 
571
- #: app/admin/RTMediaFormHandler.php:387 app/helper/RTMediaAddon.php:348
572
  msgid "Media Likes"
573
  msgstr ""
574
 
575
- #: app/admin/RTMediaFormHandler.php:388
576
  msgid "List Media View"
577
  msgstr ""
578
 
579
- #: app/admin/RTMediaFormHandler.php:389
580
  msgid "Masonry View"
581
  msgstr ""
582
 
583
- #: app/admin/RTMediaFormHandler.php:390
584
  msgid "Direct Upload"
585
  msgstr ""
586
 
587
- #: app/admin/RTMediaFormHandler.php:408
 
 
 
 
588
  msgid "Allow usage data tracking"
589
  msgstr ""
590
 
591
- #: app/admin/RTMediaFormHandler.php:413
592
  msgid ""
593
  "To make rtMedia better compatible with your sites, you can help the rtMedia "
594
  "team learn what themes and plugins you are using. No private information "
595
  "about your setup will be sent during tracking."
596
  msgstr ""
597
 
598
- #: app/admin/RTMediaFormHandler.php:417
599
  msgid "Admin bar menu integration"
600
  msgstr ""
601
 
602
- #: app/admin/RTMediaFormHandler.php:422
603
  msgid ""
604
  "Add rtMedia menu to WordPress admin bar for easy access to settings and "
605
  "moderation page (if enabled)."
606
  msgstr ""
607
 
608
- #: app/admin/RTMediaFormHandler.php:427
609
  msgid "Add a link to rtMedia in footer"
610
  msgstr ""
611
 
612
- #: app/admin/RTMediaFormHandler.php:432
613
  msgid "Help us promote rtMedia."
614
  msgstr ""
615
 
616
- #: app/admin/RTMediaFormHandler.php:437
617
  msgid "Also add my affiliate-id to rtMedia footer link"
618
  msgstr ""
619
 
620
- #: app/admin/RTMediaFormHandler.php:442
621
  msgid ""
622
  "Add your affiliate-id along with footer link and get rewarded by our "
623
  "affiliation program."
624
  msgstr ""
625
 
626
- #: app/admin/RTMediaFormHandler.php:446
627
  msgid "Signup for"
628
  msgstr ""
629
 
630
- #: app/admin/RTMediaFormHandler.php:446
631
  msgid "affiliate program"
632
  msgstr ""
633
 
634
- #: app/admin/RTMediaFormHandler.php:449
635
  msgid "Enable JSON API"
636
  msgstr ""
637
 
638
- #: app/admin/RTMediaFormHandler.php:454
639
  msgid ""
640
  "This will allow handling API requests for rtMedia sent through any mobile "
641
  "app."
642
  msgstr ""
643
 
644
- #: app/admin/RTMediaFormHandler.php:457
645
  msgid "You can refer to the API document from"
646
  msgstr ""
647
 
648
- #: app/admin/RTMediaFormHandler.php:477
649
  msgid "Admin Settings"
650
  msgstr ""
651
 
652
- #: app/admin/RTMediaFormHandler.php:478
653
  msgid "API Settings"
654
  msgstr ""
655
 
656
- #: app/admin/RTMediaFormHandler.php:479
657
  msgid "Miscellaneous"
658
  msgstr ""
659
 
660
- #: app/admin/RTMediaFormHandler.php:480
661
  msgid "Footer Link"
662
  msgstr ""
663
 
664
- #: app/admin/RTMediaFormHandler.php:560
665
  msgid "Media Types Settings"
666
  msgstr ""
667
 
668
- #: app/admin/RTMediaFormHandler.php:568 app/helper/RTMediaSettings.php:345
669
  msgid "Media Type"
670
  msgstr ""
671
 
672
- #: app/admin/RTMediaFormHandler.php:573
673
  msgid "Allow Upload"
674
  msgstr ""
675
 
676
- #: app/admin/RTMediaFormHandler.php:575
677
  msgid "Allows you to upload a particular media type on your post."
678
  msgstr ""
679
 
680
- #: app/admin/RTMediaFormHandler.php:583
681
  msgid "Set Featured"
682
  msgstr ""
683
 
684
- #: app/admin/RTMediaFormHandler.php:585
685
  msgid "Place a specific media as a featured content on the post."
686
  msgstr ""
687
 
688
- #: app/admin/RTMediaFormHandler.php:633
689
  msgid "File Extensions"
690
  msgstr ""
691
 
692
- #: app/admin/RTMediaFormHandler.php:764
693
  msgid "Media Size Settings"
694
  msgstr ""
695
 
696
- #: app/admin/RTMediaFormHandler.php:769
697
  msgid "Category"
698
  msgstr ""
699
 
700
- #: app/admin/RTMediaFormHandler.php:770
701
  msgid "Entity"
702
  msgstr ""
703
 
704
- #: app/admin/RTMediaFormHandler.php:771
705
  msgid "Width"
706
  msgstr ""
707
 
708
- #: app/admin/RTMediaFormHandler.php:772
709
  msgid "Height"
710
  msgstr ""
711
 
712
- #: app/admin/RTMediaFormHandler.php:773
713
  msgid "Crop"
714
  msgstr ""
715
 
716
- #: app/admin/RTMediaFormHandler.php:823
717
  msgid "JPEG/JPG image quality (1-100)"
718
  msgstr ""
719
 
720
- #: app/admin/RTMediaFormHandler.php:829
721
  msgid "Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality."
722
  msgstr ""
723
 
724
- #: app/admin/RTMediaFormHandler.php:837
725
  msgid "Image Quality"
726
  msgstr ""
727
 
728
- #: app/admin/RTMediaFormHandler.php:859
729
  msgid "Custom CSS settings"
730
  msgstr ""
731
 
732
- #: app/admin/RTMediaFormHandler.php:876
733
  msgid "rtMedia default styles"
734
  msgstr ""
735
 
736
- #: app/admin/RTMediaFormHandler.php:882
737
  msgid ""
738
  "Load default rtMedia styles. You need to write your own style for rtMedia "
739
  "if you disable it."
740
  msgstr ""
741
 
742
- #: app/admin/RTMediaFormHandler.php:887
743
  msgid "Paste your CSS code"
744
  msgstr ""
745
 
746
- #: app/admin/RTMediaFormHandler.php:893
747
  msgid "Custom rtMedia CSS container"
748
  msgstr ""
749
 
750
- #: app/admin/RTMediaFormHandler.php:916
751
  msgid "Enable privacy"
752
  msgstr ""
753
 
754
- #: app/admin/RTMediaFormHandler.php:922
755
  msgid "Enable privacy in rtMedia"
756
  msgstr ""
757
 
758
- #: app/admin/RTMediaFormHandler.php:927
759
  msgid "Default privacy"
760
  msgstr ""
761
 
762
- #: app/admin/RTMediaFormHandler.php:933
763
  msgid "Set default privacy for media"
764
  msgstr ""
765
 
766
- #: app/admin/RTMediaFormHandler.php:939
767
  msgid "Allow users to set privacy for their content"
768
  msgstr ""
769
 
770
- #: app/admin/RTMediaFormHandler.php:944
771
  msgid ""
772
  "If you choose this, users will be able to change privacy of their own "
773
  "uploads."
774
  msgstr ""
775
 
776
- #: app/admin/RTMediaFormHandler.php:948
777
  msgid "For group uploads, BuddyPress groups privacy is used."
778
  msgstr ""
779
 
780
- #: app/admin/RTMediaFormHandler.php:990
781
  msgid "Enable media in profile"
782
  msgstr ""
783
 
784
- #: app/admin/RTMediaFormHandler.php:995
785
  msgid "Enable Media on BuddyPress Profile"
786
  msgstr ""
787
 
788
- #: app/admin/RTMediaFormHandler.php:1000
789
  msgid "Enable media in group"
790
  msgstr ""
791
 
792
- #: app/admin/RTMediaFormHandler.php:1005
793
  msgid "Enable Media on BuddyPress Groups"
794
  msgstr ""
795
 
796
- #: app/admin/RTMediaFormHandler.php:1010
797
  msgid "Allow upload from activity stream"
798
  msgstr ""
799
 
800
- #: app/admin/RTMediaFormHandler.php:1015
801
  msgid "Allow upload using status update box present on activity stream page"
802
  msgstr ""
803
 
804
- #: app/admin/RTMediaFormHandler.php:1021
805
  msgid "Enable media in comment"
806
  msgstr ""
807
 
808
- #: app/admin/RTMediaFormHandler.php:1026
809
  msgid ""
810
  "This will allow users to upload media in comment section for originally "
811
  "uploaded media up to 1 level."
812
  msgstr ""
813
 
814
- #: app/admin/RTMediaFormHandler.php:1031 app/admin/RTMediaFormHandler.php:1036
815
  msgid "Disable upload in comment media"
816
  msgstr ""
817
 
818
- #: app/admin/RTMediaFormHandler.php:1042
819
  msgid "Number of media items to show in activity stream"
820
  msgstr ""
821
 
822
- #: app/admin/RTMediaFormHandler.php:1047
823
  msgid ""
824
  "With bulk uploads activity, the stream may get flooded. You can control the "
825
  "maximum number of media items or files per activity. This limit will not "
@@ -827,47 +843,47 @@ msgid ""
827
  "unlimited."
828
  msgstr ""
829
 
830
- #: app/admin/RTMediaFormHandler.php:1054
831
  msgid "Enable media notification"
832
  msgstr ""
833
 
834
- #: app/admin/RTMediaFormHandler.php:1059
835
  msgid ""
836
  "This will enable notifications to media authors for media likes and "
837
  "comments."
838
  msgstr ""
839
 
840
- #: app/admin/RTMediaFormHandler.php:1065
841
  msgid "Create activity for media likes"
842
  msgstr ""
843
 
844
- #: app/admin/RTMediaFormHandler.php:1070
845
  msgid "Enabling this setting will create BuddyPress activity for media likes."
846
  msgstr ""
847
 
848
- #: app/admin/RTMediaFormHandler.php:1076
849
  msgid "Create activity for media comments"
850
  msgstr ""
851
 
852
- #: app/admin/RTMediaFormHandler.php:1081
853
  msgid "Enabling this setting will create BuddyPress activity for media comments."
854
  msgstr ""
855
 
856
- #: app/admin/RTMediaFormHandler.php:1087
857
  msgid "Organize media into albums"
858
  msgstr ""
859
 
860
- #: app/admin/RTMediaFormHandler.php:1093
861
  msgid ""
862
  "This will add 'album' tab to BuddyPress profile and group depending on the "
863
  "^above^ settings."
864
  msgstr ""
865
 
866
- #: app/admin/RTMediaFormHandler.php:1098
867
  msgid "Show album description"
868
  msgstr ""
869
 
870
- #: app/admin/RTMediaFormHandler.php:1104
871
  msgid "This will show description of an album under album gallery page."
872
  msgstr ""
873
 
@@ -1388,86 +1404,86 @@ msgstr ""
1388
  msgid "other friends liked your"
1389
  msgstr ""
1390
 
1391
- #: app/helper/RTMediaSettings.php:242
1392
  msgid "BuddyPress Media Addons for Photos"
1393
  msgstr ""
1394
 
1395
- #: app/helper/RTMediaSettings.php:252
1396
  msgid "rtMedia Themes"
1397
  msgstr ""
1398
 
1399
- #: app/helper/RTMediaSettings.php:322
1400
  msgid ""
1401
  "Currently your network allows uploading of the following file types. You "
1402
  "can change the settings %s"
1403
  msgstr ""
1404
 
1405
- #: app/helper/RTMediaSettings.php:343 app/helper/RTMediaSettings.php:345
1406
  msgid "Atleast one Media Type Must be selected"
1407
  msgstr ""
1408
 
1409
- #: app/helper/RTMediaSettings.php:354 app/helper/RTMediaSettings.php:356
1410
  msgid "\"Number of media\" count value should be numeric and greater than 0."
1411
  msgstr ""
1412
 
1413
- #: app/helper/RTMediaSettings.php:356
1414
  msgid "Default Count"
1415
  msgstr ""
1416
 
1417
- #: app/helper/RTMediaSettings.php:361
1418
  msgid "Settings saved."
1419
  msgstr ""
1420
 
1421
- #: app/helper/RTMediaSettings.php:385
1422
  msgid "If you make changes to width, height or crop settings, you must use "
1423
  msgstr ""
1424
 
1425
- #: app/helper/RTMediaSettings.php:386
1426
  msgid "Regenerate Thumbnail Plugin"
1427
  msgstr ""
1428
 
1429
- #: app/helper/RTMediaSettings.php:387
1430
  msgid " to regenerate old images."
1431
  msgstr ""
1432
 
1433
- #: app/helper/RTMediaSettings.php:410
1434
  msgid "BuddyPress Media 2.6 requires a database upgrade. "
1435
  msgstr ""
1436
 
1437
- #: app/helper/RTMediaSettings.php:411
1438
  msgid "Update Database"
1439
  msgstr ""
1440
 
1441
- #: app/helper/RTMediaSettings.php:425
1442
  msgid ""
1443
  "If your site has some issues due to rtMedia and you want one on one support "
1444
  "then you can create a support topic on the "
1445
  msgstr ""
1446
 
1447
- #: app/helper/RTMediaSettings.php:426
1448
  msgid "rtMedia Support Forum"
1449
  msgstr ""
1450
 
1451
- #: app/helper/RTMediaSettings.php:428
1452
  msgid ""
1453
  "If you have any suggestions, enhancements or bug reports, then you can open "
1454
  "a new issue on "
1455
  msgstr ""
1456
 
1457
- #: app/helper/RTMediaSettings.php:429 app/helper/RTMediaSupport.php:467
1458
  msgid "GitHub"
1459
  msgstr ""
1460
 
1461
- #: app/helper/RTMediaSupport.php:43 app/helper/RTMediaSupport.php:577
1462
  msgid "Cheatin' uh?"
1463
  msgstr ""
1464
 
1465
- #: app/helper/RTMediaSupport.php:44 app/helper/RTMediaSupport.php:578
1466
  msgid "Can not verify request source."
1467
  msgstr ""
1468
 
1469
  #: app/helper/RTMediaSupport.php:74 app/helper/RTMediaSupport.php:75
1470
- #: app/helper/RTMediaSupport.php:351
1471
  msgid "Debug Info"
1472
  msgstr ""
1473
 
@@ -1496,133 +1512,133 @@ msgstr ""
1496
  msgid "Submit"
1497
  msgstr ""
1498
 
1499
- #: app/helper/RTMediaSupport.php:225
1500
  msgid "by"
1501
  msgstr ""
1502
 
1503
- #: app/helper/RTMediaSupport.php:225
1504
  msgid "version"
1505
  msgstr ""
1506
 
1507
- #: app/helper/RTMediaSupport.php:371
1508
  msgid "Download Debug Info"
1509
  msgstr ""
1510
 
1511
- #: app/helper/RTMediaSupport.php:410
1512
  msgid "There is no media found to migrate."
1513
  msgstr ""
1514
 
1515
- #: app/helper/RTMediaSupport.php:416
1516
  #: app/main/controllers/media/RTMediaLoginPopup.php:56
1517
  msgid "Click"
1518
  msgstr ""
1519
 
1520
- #: app/helper/RTMediaSupport.php:416
1521
  msgid "here to migrate media from rtMedia 2.x to rtMedia 3.0+."
1522
  msgstr ""
1523
 
1524
- #: app/helper/RTMediaSupport.php:444
1525
  msgid "Submit a Bug Report"
1526
  msgstr ""
1527
 
1528
- #: app/helper/RTMediaSupport.php:447
1529
  msgid "Submit a New Feature Request"
1530
  msgstr ""
1531
 
1532
- #: app/helper/RTMediaSupport.php:450
1533
  msgid "Submit Support Request"
1534
  msgstr ""
1535
 
1536
- #: app/helper/RTMediaSupport.php:459
1537
  msgid ""
1538
  "If your site has some issues due to rtMedia and you want support, feel free "
1539
  "to create a support topic on %s"
1540
  msgstr ""
1541
 
1542
- #: app/helper/RTMediaSupport.php:460
1543
  msgid "Community Forum"
1544
  msgstr ""
1545
 
1546
- #: app/helper/RTMediaSupport.php:466
1547
  msgid ""
1548
  "If you have any suggestions, enhancements or bug reports, then you can open "
1549
  "a new issue on %s"
1550
  msgstr ""
1551
 
1552
- #: app/helper/RTMediaSupport.php:486
1553
  msgid "Name"
1554
  msgstr ""
1555
 
1556
- #: app/helper/RTMediaSupport.php:491
1557
  msgid "Use actual user name which used during purchased."
1558
  msgstr ""
1559
 
1560
- #: app/helper/RTMediaSupport.php:498
1561
  msgid "Email"
1562
  msgstr ""
1563
 
1564
- #: app/helper/RTMediaSupport.php:503
1565
  msgid "Use email id which used during purchased"
1566
  msgstr ""
1567
 
1568
- #: app/helper/RTMediaSupport.php:510
1569
  msgid "Website"
1570
  msgstr ""
1571
 
1572
- #: app/helper/RTMediaSupport.php:518
1573
  msgid "Subject"
1574
  msgstr ""
1575
 
1576
- #: app/helper/RTMediaSupport.php:526 templates/media/album-single-edit.php:20
1577
  #: templates/media/media-single-edit.php:17
1578
  msgid "Details"
1579
  msgstr ""
1580
 
1581
- #: app/helper/RTMediaSupport.php:542
1582
  msgid "Attachement"
1583
  msgstr ""
1584
 
1585
- #: app/helper/RTMediaSupport.php:547
1586
  msgid "Allowed file types are : images, documents and texts."
1587
  msgstr ""
1588
 
1589
- #: app/helper/RTMediaSupport.php:593
1590
  msgid "rtMedia Premium Support Request from"
1591
  msgstr ""
1592
 
1593
- #: app/helper/RTMediaSupport.php:596
1594
  msgid "rtMedia New Feature Request from"
1595
  msgstr ""
1596
 
1597
- #: app/helper/RTMediaSupport.php:599
1598
  msgid "rtMedia Bug Report from"
1599
  msgstr ""
1600
 
1601
- #: app/helper/RTMediaSupport.php:602
1602
  msgid "rtMedia Contact from"
1603
  msgstr ""
1604
 
1605
- #: app/helper/RTMediaSupport.php:681
1606
  msgid "Thank you for your Feedback/Suggestion."
1607
  msgstr ""
1608
 
1609
- #: app/helper/RTMediaSupport.php:683
1610
  msgid "Thank you for posting your support request."
1611
  msgstr ""
1612
 
1613
- #: app/helper/RTMediaSupport.php:684
1614
  msgid "We will get back to you shortly."
1615
  msgstr ""
1616
 
1617
- #: app/helper/RTMediaSupport.php:689
1618
  msgid "Your server failed to send an email."
1619
  msgstr ""
1620
 
1621
- #: app/helper/RTMediaSupport.php:690
1622
  msgid "Kindly contact your server support to fix this."
1623
  msgstr ""
1624
 
1625
- #: app/helper/RTMediaSupport.php:693
1626
  msgid "You can alternatively create a support request %s"
1627
  msgstr ""
1628
 
@@ -2147,16 +2163,16 @@ msgstr ""
2147
  msgid "Album"
2148
  msgstr ""
2149
 
2150
- #: app/main/RTMedia.php:663 app/main/RTMedia.php:1066
2151
  #: app/main/controllers/media/RTMediaAlbum.php:53
2152
  #: app/main/controllers/media/RTMediaAlbum.php:65
2153
  msgid "Albums"
2154
  msgstr ""
2155
 
2156
  #: app/main/RTMedia.php:673 app/main/controllers/media/RTMediaLoginPopup.php:38
2157
- #: app/main/controllers/template/rtmedia-actions.php:313
2158
  #: app/main/controllers/template/rtmedia-actions.php:316
2159
- #: app/main/controllers/template/rtmedia-actions.php:320
 
2160
  msgid "Upload"
2161
  msgstr ""
2162
 
@@ -2329,27 +2345,31 @@ msgstr ""
2329
  msgid "Description:"
2330
  msgstr ""
2331
 
2332
- #: app/main/RTMedia.php:1059
 
 
 
 
2333
  msgid "Edit File Name"
2334
  msgstr ""
2335
 
2336
- #: app/main/RTMedia.php:1067
2337
  msgid "Privacy updated successfully."
2338
  msgstr ""
2339
 
2340
- #: app/main/RTMedia.php:1068
2341
  msgid "Couldn't change privacy, please try again."
2342
  msgstr ""
2343
 
2344
- #: app/main/RTMedia.php:1069
2345
  msgid "file deleted successfully."
2346
  msgstr ""
2347
 
2348
- #: app/main/RTMedia.php:1101
2349
  msgid "There are some uploads in progress. Do you want to cancel them?"
2350
  msgstr ""
2351
 
2352
- #: app/main/RTMedia.php:1211
2353
  msgid "Adding media in Comments is not allowed"
2354
  msgstr ""
2355
 
@@ -2598,19 +2618,19 @@ msgstr ""
2598
  msgid "media updated"
2599
  msgstr ""
2600
 
2601
- #: app/main/controllers/api/RTMediaJsonApi.php:1051
2602
  msgid "media list"
2603
  msgstr ""
2604
 
2605
- #: app/main/controllers/api/RTMediaJsonApi.php:1054
2606
  msgid "no media found for requested media type"
2607
  msgstr ""
2608
 
2609
- #: app/main/controllers/api/RTMediaJsonApi.php:1057
2610
  msgid "media_type not allowed"
2611
  msgstr ""
2612
 
2613
- #: app/main/controllers/api/RTMediaJsonApi.php:1159
2614
  msgid "single media"
2615
  msgstr ""
2616
 
@@ -2670,7 +2690,7 @@ msgid "Create"
2670
  msgstr ""
2671
 
2672
  #: app/main/controllers/media/RTMediaAlbum.php:56
2673
- #: app/main/controllers/template/rtmedia-actions.php:202
2674
  msgid "Create Album"
2675
  msgstr ""
2676
 
@@ -2758,8 +2778,8 @@ msgid "Unlike"
2758
  msgstr ""
2759
 
2760
  #: app/main/controllers/media/RTMediaLoginPopup.php:38
2761
- #: app/main/controllers/template/rtmedia-actions.php:316
2762
- #: app/main/controllers/template/rtmedia-actions.php:320
2763
  msgid "Upload Media"
2764
  msgstr ""
2765
 
@@ -2807,23 +2827,23 @@ msgstr ""
2807
  msgid "Default Privacy"
2808
  msgstr ""
2809
 
2810
- #: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:256
2811
  msgid "You do not have sufficient privileges to view this gallery"
2812
  msgstr ""
2813
 
2814
- #: app/main/controllers/template/RTMediaAJAX.php:35
2815
  msgid "You can not create album in this group."
2816
  msgstr ""
2817
 
2818
- #: app/main/controllers/template/RTMediaAJAX.php:41
2819
  msgid "You can not create album."
2820
  msgstr ""
2821
 
2822
- #: app/main/controllers/template/RTMediaAJAX.php:46
2823
  msgid "You can not create more albums, you exceed your album limit."
2824
  msgstr ""
2825
 
2826
- #: app/main/controllers/template/RTMediaAJAX.php:96
2827
  msgid "Data mismatch, Please insert data properly."
2828
  msgstr ""
2829
 
@@ -2868,76 +2888,80 @@ msgstr ""
2868
  msgid "Album Title : "
2869
  msgstr ""
2870
 
2871
- #: app/main/controllers/template/rtmedia-actions.php:242
2872
- #: app/main/controllers/template/rtmedia-actions.php:249
 
 
 
 
2873
  #: app/main/controllers/template/rtmedia-filters.php:92
2874
  msgid "Merge Album"
2875
  msgstr ""
2876
 
2877
- #: app/main/controllers/template/rtmedia-actions.php:245
2878
  msgid "Select Album to merge with : "
2879
  msgstr ""
2880
 
2881
- #: app/main/controllers/template/rtmedia-actions.php:295
2882
  msgid "Merge"
2883
  msgstr ""
2884
 
2885
- #: app/main/controllers/template/rtmedia-actions.php:364
2886
  msgid "Empowering your community with "
2887
  msgstr ""
2888
 
2889
- #: app/main/controllers/template/rtmedia-actions.php:365
2890
  msgid "The only complete media solution for WordPress, BuddyPress and bbPress"
2891
  msgstr ""
2892
 
2893
- #: app/main/controllers/template/rtmedia-actions.php:384
2894
  msgid "Close (Esc)"
2895
  msgstr ""
2896
 
2897
- #: app/main/controllers/template/rtmedia-actions.php:529
2898
  msgid "You can consider rtMedia Team for following :"
2899
  msgstr ""
2900
 
2901
- #: app/main/controllers/template/rtmedia-actions.php:531
2902
  msgid "rtMedia Customization ( in Upgrade Safe manner )"
2903
  msgstr ""
2904
 
2905
- #: app/main/controllers/template/rtmedia-actions.php:532
2906
  msgid "WordPress/BuddyPress Theme Design and Development"
2907
  msgstr ""
2908
 
2909
- #: app/main/controllers/template/rtmedia-actions.php:533
2910
  msgid "WordPress/BuddyPress Plugin Development"
2911
  msgstr ""
2912
 
2913
- #: app/main/controllers/template/rtmedia-actions.php:536
2914
  msgid "Contact Us"
2915
  msgstr ""
2916
 
2917
- #: app/main/controllers/template/rtmedia-actions.php:623
2918
- #: app/main/controllers/template/rtmedia-actions.php:624
2919
  msgid "Previous"
2920
  msgstr ""
2921
 
2922
- #: app/main/controllers/template/rtmedia-actions.php:625
2923
- #: app/main/controllers/template/rtmedia-actions.php:626
2924
  #: templates/media/album-single-edit.php:121
2925
  msgid "Next"
2926
  msgstr ""
2927
 
2928
- #: app/main/controllers/template/rtmedia-actions.php:823
2929
  msgid "Settings has been saved successfully."
2930
  msgstr ""
2931
 
2932
- #: app/main/controllers/template/rtmedia-actions.php:827
2933
  msgid "Refresh the page in case if license data is not showing correct."
2934
  msgstr ""
2935
 
2936
- #: app/main/controllers/template/rtmedia-actions.php:845
2937
  msgid "Posted a status update"
2938
  msgstr ""
2939
 
2940
- #: app/main/controllers/template/rtmedia-actions.php:847
2941
  msgid "rtMedia Updates"
2942
  msgstr ""
2943
 
@@ -3147,7 +3171,7 @@ msgstr ""
3147
 
3148
  #: templates/media/album-gallery.php:75
3149
  #: templates/media/media-single-edit.php:63
3150
- #: templates/media/media-single.php:165
3151
  msgid "Sorry !! There's no media found for the request !!"
3152
  msgstr ""
3153
 
@@ -3206,14 +3230,10 @@ msgstr ""
3206
  msgid "Sorry !! You can not edit this album."
3207
  msgstr ""
3208
 
3209
- #: templates/media/media-gallery.php:17 templates/media/media-gallery.php:37
3210
  msgid "Media Gallery"
3211
  msgstr ""
3212
 
3213
- #: templates/media/media-gallery.php:92
3214
- msgid "Oops !! There's no media found for the request !!"
3215
- msgstr ""
3216
-
3217
  #: templates/media/media-single-edit.php:48
3218
  msgid "Save"
3219
  msgstr ""
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.4\n"
6
  "Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
7
+ "POT-Creation-Date: 2017-06-06 09:02:25+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
139
 
140
  #: app/admin/RTMediaAdmin.php:735 app/admin/RTMediaAdmin.php:791
141
  #: app/admin/RTMediaAdmin.php:794 app/admin/RTMediaAdmin.php:957
142
+ #: app/admin/RTMediaAdmin.php:1320 app/helper/RTMediaSettings.php:249
143
  #: app/helper/RTMediaSupport.php:67 app/helper/RTMediaSupport.php:68
144
  msgid "Support"
145
  msgstr ""
400
  msgstr ""
401
 
402
  #: app/admin/RTMediaAdmin.php:1584 app/admin/RTMediaAdmin.php:1602
403
+ #: app/admin/RTMediaAdmin.php:1620 app/admin/RTMediaFormHandler.php:476
404
+ #: app/admin/RTMediaFormHandler.php:487 app/helper/RTMediaSettings.php:325
405
+ #: app/helper/RTMediaSupport.php:417 app/helper/RTMediaSupport.php:695
406
  msgid "here"
407
  msgstr ""
408
 
462
  "to the <a href=\"%s\">Licenses page</a> to fix this issue."
463
  msgstr ""
464
 
465
+ #: app/admin/RTMediaFormHandler.php:63 app/admin/RTMediaFormHandler.php:104
466
+ #: app/admin/RTMediaFormHandler.php:197 app/admin/RTMediaFormHandler.php:232
467
  msgid "Please provide a \"value\" in the argument."
468
  msgstr ""
469
 
470
+ #: app/admin/RTMediaFormHandler.php:145
471
  msgid "Need to specify atleast two radios, else use a checkbox instead"
472
  msgstr ""
473
 
474
+ #: app/admin/RTMediaFormHandler.php:280 templates/media/album-gallery.php:67
475
+ #: templates/media/media-gallery.php:95
476
  msgid "Load More"
477
  msgstr ""
478
 
479
+ #: app/admin/RTMediaFormHandler.php:281
480
  msgid "Pagination"
481
  msgstr ""
482
 
483
+ #: app/admin/RTMediaFormHandler.php:293
484
  msgid "Allow user to comment on uploaded media"
485
  msgstr ""
486
 
487
+ #: app/admin/RTMediaFormHandler.php:298
488
  msgid ""
489
  "This will display the comment form and comment listing on single media "
490
  "pages as well as inside lightbox (if lightbox is enabled)."
491
  msgstr ""
492
 
493
+ #: app/admin/RTMediaFormHandler.php:303
494
+ msgid "Enable gallery media search"
495
+ msgstr ""
496
+
497
+ #: app/admin/RTMediaFormHandler.php:308
498
+ msgid "This will enable the search box in gallery page."
499
+ msgstr ""
500
+
501
+ #: app/admin/RTMediaFormHandler.php:313
502
  msgid "Enable likes for media"
503
  msgstr ""
504
 
505
+ #: app/admin/RTMediaFormHandler.php:318
506
  msgid "Enabling this setting will add like feature for media."
507
  msgstr ""
508
 
509
+ #: app/admin/RTMediaFormHandler.php:323
510
  msgid "Use lightbox to display media"
511
  msgstr ""
512
 
513
+ #: app/admin/RTMediaFormHandler.php:328
514
  msgid "View single media in facebook style lightbox."
515
  msgstr ""
516
 
517
+ #: app/admin/RTMediaFormHandler.php:333
518
  msgid "Number of media per page"
519
  msgstr ""
520
 
521
+ #: app/admin/RTMediaFormHandler.php:339
522
  msgid "Number of media items you want to show per page on front end."
523
  msgstr ""
524
 
525
+ #: app/admin/RTMediaFormHandler.php:345
526
  msgid "Media display pagination option"
527
  msgstr ""
528
 
529
+ #: app/admin/RTMediaFormHandler.php:351
530
  msgid "Choose whether you want the load more button or pagination buttons."
531
  msgstr ""
532
 
533
+ #: app/admin/RTMediaFormHandler.php:357
534
  msgid "Enable"
535
  msgstr ""
536
 
537
+ #: app/admin/RTMediaFormHandler.php:357
538
  msgid "Cascading grid layout"
539
  msgstr ""
540
 
541
+ #: app/admin/RTMediaFormHandler.php:362 app/admin/RTMediaFormHandler.php:374
542
  msgid "If you enable masonry view, it is advisable to"
543
  msgstr ""
544
 
545
+ #: app/admin/RTMediaFormHandler.php:362 app/admin/RTMediaFormHandler.php:374
546
  msgid "for masonry view."
547
  msgstr ""
548
 
549
+ #: app/admin/RTMediaFormHandler.php:366
550
  msgid "You might need to"
551
  msgstr ""
552
 
553
+ #: app/admin/RTMediaFormHandler.php:366
554
  msgid "change thumbnail size"
555
  msgstr ""
556
 
557
+ #: app/admin/RTMediaFormHandler.php:366
558
  msgid "and uncheck the crop box for thumbnails."
559
  msgstr ""
560
 
561
+ #: app/admin/RTMediaFormHandler.php:366
562
  msgid ""
563
  "To set gallery for fixed width, set image height to 0 and width as per your "
564
  "requirement and vice-versa."
565
  msgstr ""
566
 
567
+ #: app/admin/RTMediaFormHandler.php:369
568
+ msgid "Enable Masonry Cascading grid layout for activity"
569
+ msgstr ""
570
+
571
+ #: app/admin/RTMediaFormHandler.php:381
572
  msgid "Enable Direct Upload"
573
  msgstr ""
574
 
575
+ #: app/admin/RTMediaFormHandler.php:386
576
  msgid "Uploading media directly as soon as it gets selected."
577
  msgstr ""
578
 
579
+ #: app/admin/RTMediaFormHandler.php:415
580
  msgid "Single Media View"
581
  msgstr ""
582
 
583
+ #: app/admin/RTMediaFormHandler.php:416 app/helper/RTMediaAddon.php:348
584
  msgid "Media Likes"
585
  msgstr ""
586
 
587
+ #: app/admin/RTMediaFormHandler.php:417
588
  msgid "List Media View"
589
  msgstr ""
590
 
591
+ #: app/admin/RTMediaFormHandler.php:418
592
  msgid "Masonry View"
593
  msgstr ""
594
 
595
+ #: app/admin/RTMediaFormHandler.php:419
596
  msgid "Direct Upload"
597
  msgstr ""
598
 
599
+ #: app/admin/RTMediaFormHandler.php:420
600
+ msgid "Gallery Media Search"
601
+ msgstr ""
602
+
603
+ #: app/admin/RTMediaFormHandler.php:438
604
  msgid "Allow usage data tracking"
605
  msgstr ""
606
 
607
+ #: app/admin/RTMediaFormHandler.php:443
608
  msgid ""
609
  "To make rtMedia better compatible with your sites, you can help the rtMedia "
610
  "team learn what themes and plugins you are using. No private information "
611
  "about your setup will be sent during tracking."
612
  msgstr ""
613
 
614
+ #: app/admin/RTMediaFormHandler.php:447
615
  msgid "Admin bar menu integration"
616
  msgstr ""
617
 
618
+ #: app/admin/RTMediaFormHandler.php:452
619
  msgid ""
620
  "Add rtMedia menu to WordPress admin bar for easy access to settings and "
621
  "moderation page (if enabled)."
622
  msgstr ""
623
 
624
+ #: app/admin/RTMediaFormHandler.php:457
625
  msgid "Add a link to rtMedia in footer"
626
  msgstr ""
627
 
628
+ #: app/admin/RTMediaFormHandler.php:462
629
  msgid "Help us promote rtMedia."
630
  msgstr ""
631
 
632
+ #: app/admin/RTMediaFormHandler.php:467
633
  msgid "Also add my affiliate-id to rtMedia footer link"
634
  msgstr ""
635
 
636
+ #: app/admin/RTMediaFormHandler.php:472
637
  msgid ""
638
  "Add your affiliate-id along with footer link and get rewarded by our "
639
  "affiliation program."
640
  msgstr ""
641
 
642
+ #: app/admin/RTMediaFormHandler.php:476
643
  msgid "Signup for"
644
  msgstr ""
645
 
646
+ #: app/admin/RTMediaFormHandler.php:476
647
  msgid "affiliate program"
648
  msgstr ""
649
 
650
+ #: app/admin/RTMediaFormHandler.php:479
651
  msgid "Enable JSON API"
652
  msgstr ""
653
 
654
+ #: app/admin/RTMediaFormHandler.php:484
655
  msgid ""
656
  "This will allow handling API requests for rtMedia sent through any mobile "
657
  "app."
658
  msgstr ""
659
 
660
+ #: app/admin/RTMediaFormHandler.php:487
661
  msgid "You can refer to the API document from"
662
  msgstr ""
663
 
664
+ #: app/admin/RTMediaFormHandler.php:507
665
  msgid "Admin Settings"
666
  msgstr ""
667
 
668
+ #: app/admin/RTMediaFormHandler.php:508
669
  msgid "API Settings"
670
  msgstr ""
671
 
672
+ #: app/admin/RTMediaFormHandler.php:509
673
  msgid "Miscellaneous"
674
  msgstr ""
675
 
676
+ #: app/admin/RTMediaFormHandler.php:510
677
  msgid "Footer Link"
678
  msgstr ""
679
 
680
+ #: app/admin/RTMediaFormHandler.php:590
681
  msgid "Media Types Settings"
682
  msgstr ""
683
 
684
+ #: app/admin/RTMediaFormHandler.php:598 app/helper/RTMediaSettings.php:347
685
  msgid "Media Type"
686
  msgstr ""
687
 
688
+ #: app/admin/RTMediaFormHandler.php:603
689
  msgid "Allow Upload"
690
  msgstr ""
691
 
692
+ #: app/admin/RTMediaFormHandler.php:605
693
  msgid "Allows you to upload a particular media type on your post."
694
  msgstr ""
695
 
696
+ #: app/admin/RTMediaFormHandler.php:613
697
  msgid "Set Featured"
698
  msgstr ""
699
 
700
+ #: app/admin/RTMediaFormHandler.php:615
701
  msgid "Place a specific media as a featured content on the post."
702
  msgstr ""
703
 
704
+ #: app/admin/RTMediaFormHandler.php:663
705
  msgid "File Extensions"
706
  msgstr ""
707
 
708
+ #: app/admin/RTMediaFormHandler.php:794
709
  msgid "Media Size Settings"
710
  msgstr ""
711
 
712
+ #: app/admin/RTMediaFormHandler.php:799
713
  msgid "Category"
714
  msgstr ""
715
 
716
+ #: app/admin/RTMediaFormHandler.php:800
717
  msgid "Entity"
718
  msgstr ""
719
 
720
+ #: app/admin/RTMediaFormHandler.php:801
721
  msgid "Width"
722
  msgstr ""
723
 
724
+ #: app/admin/RTMediaFormHandler.php:802
725
  msgid "Height"
726
  msgstr ""
727
 
728
+ #: app/admin/RTMediaFormHandler.php:803
729
  msgid "Crop"
730
  msgstr ""
731
 
732
+ #: app/admin/RTMediaFormHandler.php:853
733
  msgid "JPEG/JPG image quality (1-100)"
734
  msgstr ""
735
 
736
+ #: app/admin/RTMediaFormHandler.php:859
737
  msgid "Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality."
738
  msgstr ""
739
 
740
+ #: app/admin/RTMediaFormHandler.php:867
741
  msgid "Image Quality"
742
  msgstr ""
743
 
744
+ #: app/admin/RTMediaFormHandler.php:889
745
  msgid "Custom CSS settings"
746
  msgstr ""
747
 
748
+ #: app/admin/RTMediaFormHandler.php:906
749
  msgid "rtMedia default styles"
750
  msgstr ""
751
 
752
+ #: app/admin/RTMediaFormHandler.php:912
753
  msgid ""
754
  "Load default rtMedia styles. You need to write your own style for rtMedia "
755
  "if you disable it."
756
  msgstr ""
757
 
758
+ #: app/admin/RTMediaFormHandler.php:917
759
  msgid "Paste your CSS code"
760
  msgstr ""
761
 
762
+ #: app/admin/RTMediaFormHandler.php:923
763
  msgid "Custom rtMedia CSS container"
764
  msgstr ""
765
 
766
+ #: app/admin/RTMediaFormHandler.php:946
767
  msgid "Enable privacy"
768
  msgstr ""
769
 
770
+ #: app/admin/RTMediaFormHandler.php:952
771
  msgid "Enable privacy in rtMedia"
772
  msgstr ""
773
 
774
+ #: app/admin/RTMediaFormHandler.php:957
775
  msgid "Default privacy"
776
  msgstr ""
777
 
778
+ #: app/admin/RTMediaFormHandler.php:963
779
  msgid "Set default privacy for media"
780
  msgstr ""
781
 
782
+ #: app/admin/RTMediaFormHandler.php:969
783
  msgid "Allow users to set privacy for their content"
784
  msgstr ""
785
 
786
+ #: app/admin/RTMediaFormHandler.php:974
787
  msgid ""
788
  "If you choose this, users will be able to change privacy of their own "
789
  "uploads."
790
  msgstr ""
791
 
792
+ #: app/admin/RTMediaFormHandler.php:978
793
  msgid "For group uploads, BuddyPress groups privacy is used."
794
  msgstr ""
795
 
796
+ #: app/admin/RTMediaFormHandler.php:1020
797
  msgid "Enable media in profile"
798
  msgstr ""
799
 
800
+ #: app/admin/RTMediaFormHandler.php:1025
801
  msgid "Enable Media on BuddyPress Profile"
802
  msgstr ""
803
 
804
+ #: app/admin/RTMediaFormHandler.php:1030
805
  msgid "Enable media in group"
806
  msgstr ""
807
 
808
+ #: app/admin/RTMediaFormHandler.php:1035
809
  msgid "Enable Media on BuddyPress Groups"
810
  msgstr ""
811
 
812
+ #: app/admin/RTMediaFormHandler.php:1040
813
  msgid "Allow upload from activity stream"
814
  msgstr ""
815
 
816
+ #: app/admin/RTMediaFormHandler.php:1045
817
  msgid "Allow upload using status update box present on activity stream page"
818
  msgstr ""
819
 
820
+ #: app/admin/RTMediaFormHandler.php:1051
821
  msgid "Enable media in comment"
822
  msgstr ""
823
 
824
+ #: app/admin/RTMediaFormHandler.php:1056
825
  msgid ""
826
  "This will allow users to upload media in comment section for originally "
827
  "uploaded media up to 1 level."
828
  msgstr ""
829
 
830
+ #: app/admin/RTMediaFormHandler.php:1061 app/admin/RTMediaFormHandler.php:1066
831
  msgid "Disable upload in comment media"
832
  msgstr ""
833
 
834
+ #: app/admin/RTMediaFormHandler.php:1072
835
  msgid "Number of media items to show in activity stream"
836
  msgstr ""
837
 
838
+ #: app/admin/RTMediaFormHandler.php:1077
839
  msgid ""
840
  "With bulk uploads activity, the stream may get flooded. You can control the "
841
  "maximum number of media items or files per activity. This limit will not "
843
  "unlimited."
844
  msgstr ""
845
 
846
+ #: app/admin/RTMediaFormHandler.php:1084
847
  msgid "Enable media notification"
848
  msgstr ""
849
 
850
+ #: app/admin/RTMediaFormHandler.php:1089
851
  msgid ""
852
  "This will enable notifications to media authors for media likes and "
853
  "comments."
854
  msgstr ""
855
 
856
+ #: app/admin/RTMediaFormHandler.php:1095
857
  msgid "Create activity for media likes"
858
  msgstr ""
859
 
860
+ #: app/admin/RTMediaFormHandler.php:1100
861
  msgid "Enabling this setting will create BuddyPress activity for media likes."
862
  msgstr ""
863
 
864
+ #: app/admin/RTMediaFormHandler.php:1106
865
  msgid "Create activity for media comments"
866
  msgstr ""
867
 
868
+ #: app/admin/RTMediaFormHandler.php:1111
869
  msgid "Enabling this setting will create BuddyPress activity for media comments."
870
  msgstr ""
871
 
872
+ #: app/admin/RTMediaFormHandler.php:1117
873
  msgid "Organize media into albums"
874
  msgstr ""
875
 
876
+ #: app/admin/RTMediaFormHandler.php:1123
877
  msgid ""
878
  "This will add 'album' tab to BuddyPress profile and group depending on the "
879
  "^above^ settings."
880
  msgstr ""
881
 
882
+ #: app/admin/RTMediaFormHandler.php:1128
883
  msgid "Show album description"
884
  msgstr ""
885
 
886
+ #: app/admin/RTMediaFormHandler.php:1134
887
  msgid "This will show description of an album under album gallery page."
888
  msgstr ""
889
 
1404
  msgid "other friends liked your"
1405
  msgstr ""
1406
 
1407
+ #: app/helper/RTMediaSettings.php:244
1408
  msgid "BuddyPress Media Addons for Photos"
1409
  msgstr ""
1410
 
1411
+ #: app/helper/RTMediaSettings.php:254
1412
  msgid "rtMedia Themes"
1413
  msgstr ""
1414
 
1415
+ #: app/helper/RTMediaSettings.php:324
1416
  msgid ""
1417
  "Currently your network allows uploading of the following file types. You "
1418
  "can change the settings %s"
1419
  msgstr ""
1420
 
1421
+ #: app/helper/RTMediaSettings.php:345 app/helper/RTMediaSettings.php:347
1422
  msgid "Atleast one Media Type Must be selected"
1423
  msgstr ""
1424
 
1425
+ #: app/helper/RTMediaSettings.php:356 app/helper/RTMediaSettings.php:358
1426
  msgid "\"Number of media\" count value should be numeric and greater than 0."
1427
  msgstr ""
1428
 
1429
+ #: app/helper/RTMediaSettings.php:358
1430
  msgid "Default Count"
1431
  msgstr ""
1432
 
1433
+ #: app/helper/RTMediaSettings.php:363
1434
  msgid "Settings saved."
1435
  msgstr ""
1436
 
1437
+ #: app/helper/RTMediaSettings.php:387
1438
  msgid "If you make changes to width, height or crop settings, you must use "
1439
  msgstr ""
1440
 
1441
+ #: app/helper/RTMediaSettings.php:388
1442
  msgid "Regenerate Thumbnail Plugin"
1443
  msgstr ""
1444
 
1445
+ #: app/helper/RTMediaSettings.php:389
1446
  msgid " to regenerate old images."
1447
  msgstr ""
1448
 
1449
+ #: app/helper/RTMediaSettings.php:412
1450
  msgid "BuddyPress Media 2.6 requires a database upgrade. "
1451
  msgstr ""
1452
 
1453
+ #: app/helper/RTMediaSettings.php:413
1454
  msgid "Update Database"
1455
  msgstr ""
1456
 
1457
+ #: app/helper/RTMediaSettings.php:427
1458
  msgid ""
1459
  "If your site has some issues due to rtMedia and you want one on one support "
1460
  "then you can create a support topic on the "
1461
  msgstr ""
1462
 
1463
+ #: app/helper/RTMediaSettings.php:428
1464
  msgid "rtMedia Support Forum"
1465
  msgstr ""
1466
 
1467
+ #: app/helper/RTMediaSettings.php:430
1468
  msgid ""
1469
  "If you have any suggestions, enhancements or bug reports, then you can open "
1470
  "a new issue on "
1471
  msgstr ""
1472
 
1473
+ #: app/helper/RTMediaSettings.php:431 app/helper/RTMediaSupport.php:468
1474
  msgid "GitHub"
1475
  msgstr ""
1476
 
1477
+ #: app/helper/RTMediaSupport.php:43 app/helper/RTMediaSupport.php:578
1478
  msgid "Cheatin' uh?"
1479
  msgstr ""
1480
 
1481
+ #: app/helper/RTMediaSupport.php:44 app/helper/RTMediaSupport.php:579
1482
  msgid "Can not verify request source."
1483
  msgstr ""
1484
 
1485
  #: app/helper/RTMediaSupport.php:74 app/helper/RTMediaSupport.php:75
1486
+ #: app/helper/RTMediaSupport.php:352
1487
  msgid "Debug Info"
1488
  msgstr ""
1489
 
1512
  msgid "Submit"
1513
  msgstr ""
1514
 
1515
+ #: app/helper/RTMediaSupport.php:226
1516
  msgid "by"
1517
  msgstr ""
1518
 
1519
+ #: app/helper/RTMediaSupport.php:226
1520
  msgid "version"
1521
  msgstr ""
1522
 
1523
+ #: app/helper/RTMediaSupport.php:372
1524
  msgid "Download Debug Info"
1525
  msgstr ""
1526
 
1527
+ #: app/helper/RTMediaSupport.php:411
1528
  msgid "There is no media found to migrate."
1529
  msgstr ""
1530
 
1531
+ #: app/helper/RTMediaSupport.php:417
1532
  #: app/main/controllers/media/RTMediaLoginPopup.php:56
1533
  msgid "Click"
1534
  msgstr ""
1535
 
1536
+ #: app/helper/RTMediaSupport.php:417
1537
  msgid "here to migrate media from rtMedia 2.x to rtMedia 3.0+."
1538
  msgstr ""
1539
 
1540
+ #: app/helper/RTMediaSupport.php:445
1541
  msgid "Submit a Bug Report"
1542
  msgstr ""
1543
 
1544
+ #: app/helper/RTMediaSupport.php:448
1545
  msgid "Submit a New Feature Request"
1546
  msgstr ""
1547
 
1548
+ #: app/helper/RTMediaSupport.php:451
1549
  msgid "Submit Support Request"
1550
  msgstr ""
1551
 
1552
+ #: app/helper/RTMediaSupport.php:460
1553
  msgid ""
1554
  "If your site has some issues due to rtMedia and you want support, feel free "
1555
  "to create a support topic on %s"
1556
  msgstr ""
1557
 
1558
+ #: app/helper/RTMediaSupport.php:461
1559
  msgid "Community Forum"
1560
  msgstr ""
1561
 
1562
+ #: app/helper/RTMediaSupport.php:467
1563
  msgid ""
1564
  "If you have any suggestions, enhancements or bug reports, then you can open "
1565
  "a new issue on %s"
1566
  msgstr ""
1567
 
1568
+ #: app/helper/RTMediaSupport.php:487
1569
  msgid "Name"
1570
  msgstr ""
1571
 
1572
+ #: app/helper/RTMediaSupport.php:492
1573
  msgid "Use actual user name which used during purchased."
1574
  msgstr ""
1575
 
1576
+ #: app/helper/RTMediaSupport.php:499
1577
  msgid "Email"
1578
  msgstr ""
1579
 
1580
+ #: app/helper/RTMediaSupport.php:504
1581
  msgid "Use email id which used during purchased"
1582
  msgstr ""
1583
 
1584
+ #: app/helper/RTMediaSupport.php:511
1585
  msgid "Website"
1586
  msgstr ""
1587
 
1588
+ #: app/helper/RTMediaSupport.php:519
1589
  msgid "Subject"
1590
  msgstr ""
1591
 
1592
+ #: app/helper/RTMediaSupport.php:527 templates/media/album-single-edit.php:20
1593
  #: templates/media/media-single-edit.php:17
1594
  msgid "Details"
1595
  msgstr ""
1596
 
1597
+ #: app/helper/RTMediaSupport.php:543
1598
  msgid "Attachement"
1599
  msgstr ""
1600
 
1601
+ #: app/helper/RTMediaSupport.php:548
1602
  msgid "Allowed file types are : images, documents and texts."
1603
  msgstr ""
1604
 
1605
+ #: app/helper/RTMediaSupport.php:594
1606
  msgid "rtMedia Premium Support Request from"
1607
  msgstr ""
1608
 
1609
+ #: app/helper/RTMediaSupport.php:597
1610
  msgid "rtMedia New Feature Request from"
1611
  msgstr ""
1612
 
1613
+ #: app/helper/RTMediaSupport.php:600
1614
  msgid "rtMedia Bug Report from"
1615
  msgstr ""
1616
 
1617
+ #: app/helper/RTMediaSupport.php:603
1618
  msgid "rtMedia Contact from"
1619
  msgstr ""
1620
 
1621
+ #: app/helper/RTMediaSupport.php:682
1622
  msgid "Thank you for your Feedback/Suggestion."
1623
  msgstr ""
1624
 
1625
+ #: app/helper/RTMediaSupport.php:684
1626
  msgid "Thank you for posting your support request."
1627
  msgstr ""
1628
 
1629
+ #: app/helper/RTMediaSupport.php:685
1630
  msgid "We will get back to you shortly."
1631
  msgstr ""
1632
 
1633
+ #: app/helper/RTMediaSupport.php:690
1634
  msgid "Your server failed to send an email."
1635
  msgstr ""
1636
 
1637
+ #: app/helper/RTMediaSupport.php:691
1638
  msgid "Kindly contact your server support to fix this."
1639
  msgstr ""
1640
 
1641
+ #: app/helper/RTMediaSupport.php:694
1642
  msgid "You can alternatively create a support request %s"
1643
  msgstr ""
1644
 
2163
  msgid "Album"
2164
  msgstr ""
2165
 
2166
+ #: app/main/RTMedia.php:663 app/main/RTMedia.php:1067
2167
  #: app/main/controllers/media/RTMediaAlbum.php:53
2168
  #: app/main/controllers/media/RTMediaAlbum.php:65
2169
  msgid "Albums"
2170
  msgstr ""
2171
 
2172
  #: app/main/RTMedia.php:673 app/main/controllers/media/RTMediaLoginPopup.php:38
 
2173
  #: app/main/controllers/template/rtmedia-actions.php:316
2174
+ #: app/main/controllers/template/rtmedia-actions.php:319
2175
+ #: app/main/controllers/template/rtmedia-actions.php:323
2176
  msgid "Upload"
2177
  msgstr ""
2178
 
2345
  msgid "Description:"
2346
  msgstr ""
2347
 
2348
+ #: app/main/RTMedia.php:1056 templates/media/media-gallery.php:103
2349
+ msgid "Oops !! There's no media found for the request !!"
2350
+ msgstr ""
2351
+
2352
+ #: app/main/RTMedia.php:1060
2353
  msgid "Edit File Name"
2354
  msgstr ""
2355
 
2356
+ #: app/main/RTMedia.php:1068
2357
  msgid "Privacy updated successfully."
2358
  msgstr ""
2359
 
2360
+ #: app/main/RTMedia.php:1069
2361
  msgid "Couldn't change privacy, please try again."
2362
  msgstr ""
2363
 
2364
+ #: app/main/RTMedia.php:1070
2365
  msgid "file deleted successfully."
2366
  msgstr ""
2367
 
2368
+ #: app/main/RTMedia.php:1107
2369
  msgid "There are some uploads in progress. Do you want to cancel them?"
2370
  msgstr ""
2371
 
2372
+ #: app/main/RTMedia.php:1217
2373
  msgid "Adding media in Comments is not allowed"
2374
  msgstr ""
2375
 
2618
  msgid "media updated"
2619
  msgstr ""
2620
 
2621
+ #: app/main/controllers/api/RTMediaJsonApi.php:1050
2622
  msgid "media list"
2623
  msgstr ""
2624
 
2625
+ #: app/main/controllers/api/RTMediaJsonApi.php:1053
2626
  msgid "no media found for requested media type"
2627
  msgstr ""
2628
 
2629
+ #: app/main/controllers/api/RTMediaJsonApi.php:1056
2630
  msgid "media_type not allowed"
2631
  msgstr ""
2632
 
2633
+ #: app/main/controllers/api/RTMediaJsonApi.php:1158
2634
  msgid "single media"
2635
  msgstr ""
2636
 
2690
  msgstr ""
2691
 
2692
  #: app/main/controllers/media/RTMediaAlbum.php:56
2693
+ #: app/main/controllers/template/rtmedia-actions.php:206
2694
  msgid "Create Album"
2695
  msgstr ""
2696
 
2778
  msgstr ""
2779
 
2780
  #: app/main/controllers/media/RTMediaLoginPopup.php:38
2781
+ #: app/main/controllers/template/rtmedia-actions.php:319
2782
+ #: app/main/controllers/template/rtmedia-actions.php:323
2783
  msgid "Upload Media"
2784
  msgstr ""
2785
 
2827
  msgid "Default Privacy"
2828
  msgstr ""
2829
 
2830
+ #: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:277
2831
  msgid "You do not have sufficient privileges to view this gallery"
2832
  msgstr ""
2833
 
2834
+ #: app/main/controllers/template/RTMediaAJAX.php:36
2835
  msgid "You can not create album in this group."
2836
  msgstr ""
2837
 
2838
+ #: app/main/controllers/template/RTMediaAJAX.php:42
2839
  msgid "You can not create album."
2840
  msgstr ""
2841
 
2842
+ #: app/main/controllers/template/RTMediaAJAX.php:47
2843
  msgid "You can not create more albums, you exceed your album limit."
2844
  msgstr ""
2845
 
2846
+ #: app/main/controllers/template/RTMediaAJAX.php:98
2847
  msgid "Data mismatch, Please insert data properly."
2848
  msgstr ""
2849
 
2888
  msgid "Album Title : "
2889
  msgstr ""
2890
 
2891
+ #: app/main/controllers/template/rtmedia-actions.php:198
2892
+ msgid "Album Description : "
2893
+ msgstr ""
2894
+
2895
+ #: app/main/controllers/template/rtmedia-actions.php:246
2896
+ #: app/main/controllers/template/rtmedia-actions.php:253
2897
  #: app/main/controllers/template/rtmedia-filters.php:92
2898
  msgid "Merge Album"
2899
  msgstr ""
2900
 
2901
+ #: app/main/controllers/template/rtmedia-actions.php:249
2902
  msgid "Select Album to merge with : "
2903
  msgstr ""
2904
 
2905
+ #: app/main/controllers/template/rtmedia-actions.php:299
2906
  msgid "Merge"
2907
  msgstr ""
2908
 
2909
+ #: app/main/controllers/template/rtmedia-actions.php:369
2910
  msgid "Empowering your community with "
2911
  msgstr ""
2912
 
2913
+ #: app/main/controllers/template/rtmedia-actions.php:370
2914
  msgid "The only complete media solution for WordPress, BuddyPress and bbPress"
2915
  msgstr ""
2916
 
2917
+ #: app/main/controllers/template/rtmedia-actions.php:389
2918
  msgid "Close (Esc)"
2919
  msgstr ""
2920
 
2921
+ #: app/main/controllers/template/rtmedia-actions.php:534
2922
  msgid "You can consider rtMedia Team for following :"
2923
  msgstr ""
2924
 
2925
+ #: app/main/controllers/template/rtmedia-actions.php:536
2926
  msgid "rtMedia Customization ( in Upgrade Safe manner )"
2927
  msgstr ""
2928
 
2929
+ #: app/main/controllers/template/rtmedia-actions.php:537
2930
  msgid "WordPress/BuddyPress Theme Design and Development"
2931
  msgstr ""
2932
 
2933
+ #: app/main/controllers/template/rtmedia-actions.php:538
2934
  msgid "WordPress/BuddyPress Plugin Development"
2935
  msgstr ""
2936
 
2937
+ #: app/main/controllers/template/rtmedia-actions.php:541
2938
  msgid "Contact Us"
2939
  msgstr ""
2940
 
2941
+ #: app/main/controllers/template/rtmedia-actions.php:628
2942
+ #: app/main/controllers/template/rtmedia-actions.php:629
2943
  msgid "Previous"
2944
  msgstr ""
2945
 
2946
+ #: app/main/controllers/template/rtmedia-actions.php:630
2947
+ #: app/main/controllers/template/rtmedia-actions.php:631
2948
  #: templates/media/album-single-edit.php:121
2949
  msgid "Next"
2950
  msgstr ""
2951
 
2952
+ #: app/main/controllers/template/rtmedia-actions.php:827
2953
  msgid "Settings has been saved successfully."
2954
  msgstr ""
2955
 
2956
+ #: app/main/controllers/template/rtmedia-actions.php:831
2957
  msgid "Refresh the page in case if license data is not showing correct."
2958
  msgstr ""
2959
 
2960
+ #: app/main/controllers/template/rtmedia-actions.php:849
2961
  msgid "Posted a status update"
2962
  msgstr ""
2963
 
2964
+ #: app/main/controllers/template/rtmedia-actions.php:851
2965
  msgid "rtMedia Updates"
2966
  msgstr ""
2967
 
3171
 
3172
  #: templates/media/album-gallery.php:75
3173
  #: templates/media/media-single-edit.php:63
3174
+ #: templates/media/media-single.php:175
3175
  msgid "Sorry !! There's no media found for the request !!"
3176
  msgstr ""
3177
 
3230
  msgid "Sorry !! You can not edit this album."
3231
  msgstr ""
3232
 
3233
+ #: templates/media/media-gallery.php:17 templates/media/media-gallery.php:48
3234
  msgid "Media Gallery"
3235
  msgstr ""
3236
 
 
 
 
 
3237
  #: templates/media/media-single-edit.php:48
3238
  msgid "Save"
3239
  msgstr ""
readme.txt CHANGED
@@ -1,13 +1,12 @@
1
  === rtMedia for WordPress, BuddyPress and bbPress ===
2
- Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, 1naveengiri, bhargavbhandari90, raftaar1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel, rahul3883
3
-
4
  Donate link: http://rtcamp.com/donate/
5
  Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, ffmpeg, kaltura, media-node, rtMedia, WordPress, bbPress, masonry
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Requires at least: WordPress 4.1
9
- Tested up to: 4.7.2
10
- Stable tag: 4.3.2
11
 
12
  Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
13
 
@@ -138,6 +137,31 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
138
 
139
  == Changelog ==
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  = 4.3.2 [May 11, 2017] =
142
 
143
  * ENHANCEMENTS
@@ -1343,7 +1367,7 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
1343
 
1344
  = 2.0.1 =
1345
  * Replaced codec finding library
1346
- * Fixed warning on activities page.
1347
 
1348
  = 2.0 =
1349
  * Integration into BuddyPress Activities
@@ -1352,8 +1376,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
1352
 
1353
  == Upgrade Notice ==
1354
 
1355
- = 4.3.2 =
1356
- Now set icon for like/dislike text using a simple filter. It also includes some bug fixes. Please update/re-save the permalinks after the plugin update.
1357
 
1358
  == Sponsors ==
1359
 
1
  === rtMedia for WordPress, BuddyPress and bbPress ===
2
+ Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, 1naveengiri, bhargavbhandari90, raftaar1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel, rahul3883, nomnom99
 
3
  Donate link: http://rtcamp.com/donate/
4
  Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, ffmpeg, kaltura, media-node, rtMedia, WordPress, bbPress, masonry
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: WordPress 4.1
8
+ Tested up to: 4.8
9
+ Stable tag: 4.4
10
 
11
  Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
12
 
137
 
138
  == Changelog ==
139
 
140
+ = 4.4 [June 6, 2017] =
141
+
142
+ * NEW
143
+
144
+ * Enabled Masonry Cascading grid layout for BuddyPress Activity feed [Documentation](https://rtmedia.io/docs/features/lightboxes-masonry/#masonry-activity-feed)
145
+ * Added search functionality in Media Gallery [Documentation](https://rtmedia.io/docs/features/upload-media/#search-media)
146
+ * Added album description input while creating an album [Documentation](https://rtmedia.io/docs/features/view-media/#album-description)
147
+
148
+ * ENHANCEMENTS
149
+
150
+ * Added media description parameter in JSON API [Documentation](https://rtmedia.io/docs/developers/json-api/#media-upload)
151
+ * Added: Filter to change the text "Are you sure you want to delete this media?" [Documentation](https://rtmedia.io/docs/developers/hooks/rtmedia_delete_prompt_message/)
152
+ * Applied Post Update button style once the document is ready instead of window load
153
+
154
+ * FIXED
155
+
156
+ * Audio player display issue in lightbox
157
+ * Fixed trimming media name issue when it contains a dot in the name
158
+ * Added missing data in debuginfo file
159
+ * rtMedia shortcode uploader issue with IOS mobile safari browser
160
+ * Issue while playing video on IOS safari
161
+ * White strip-line issue in lightbox
162
+ * Like button will display in the right sidebar of light box even when media comments are deactivated
163
+
164
+
165
  = 4.3.2 [May 11, 2017] =
166
 
167
  * ENHANCEMENTS
1367
 
1368
  = 2.0.1 =
1369
  * Replaced codec finding library
1370
+ * Fixed warning on activities page
1371
 
1372
  = 2.0 =
1373
  * Integration into BuddyPress Activities
1376
 
1377
  == Upgrade Notice ==
1378
 
1379
+ = 4.4 =
1380
+ Masonry in the Activity feed, media search functionality, album descriptions and lots more! Please update/re-save the permalinks after the plugin updates.
1381
 
1382
  == Sponsors ==
1383
 
templates/media/media-gallery.php CHANGED
@@ -19,8 +19,19 @@ $rand_id = rand( 0, 1000 );
19
 
20
  <?php do_action( 'rtmedia_gallery_after_title' ); ?>
21
 
22
- <div id="rtm-media-options" class="rtm-media-options">
23
  <?php do_action( 'rtmedia_media_gallery_shortcode_actions' ); ?>
 
 
 
 
 
 
 
 
 
 
 
24
  </div>
25
  </div>
26
 
@@ -41,7 +52,7 @@ $rand_id = rand( 0, 1000 );
41
 
42
  <?php do_action( 'rtmedia_gallery_after_title' ); ?>
43
 
44
- <div id="rtm-media-options" class="rtm-media-options">
45
  <?php do_action( 'rtmedia_media_gallery_actions' ); ?>
46
  </div>
47
  </div>
19
 
20
  <?php do_action( 'rtmedia_gallery_after_title' ); ?>
21
 
22
+ <div id="rtm-media-options" class="rtm-media-options <?php echo ( function_exists( 'rtmedia_media_search_enabled' ) && rtmedia_media_search_enabled() ? 'rtm-media-search-enable': '' ); ?>">
23
  <?php do_action( 'rtmedia_media_gallery_shortcode_actions' ); ?>
24
+
25
+ <?php /**
26
+ * Show media search if search_filter="true"
27
+ */
28
+ if ( isset( $shortcode_attr['attr']['search_filter'] ) ) {
29
+ if ( 'true' === $shortcode_attr['attr']['search_filter'] ) {
30
+ add_search_filter( $shortcode_attr['attr'] );
31
+ }
32
+ unset( $shortcode_attr['attr']['search_filter'] );
33
+ } ?>
34
+
35
  </div>
36
  </div>
37
 
52
 
53
  <?php do_action( 'rtmedia_gallery_after_title' ); ?>
54
 
55
+ <div id="rtm-media-options" class="rtm-media-options <?php echo ( function_exists( 'rtmedia_media_search_enabled' ) && rtmedia_media_search_enabled() ? 'rtm-media-search-enable': '' ); ?>">
56
  <?php do_action( 'rtmedia_media_gallery_actions' ); ?>
57
  </div>
58
  </div>
templates/media/media-single.php CHANGED
@@ -105,9 +105,19 @@
105
  </div>
106
  </div>
107
  </div>
 
 
 
 
 
 
 
 
 
 
 
108
  <?php } ?>
109
 
110
-
111
  </div>
112
 
113
  <?php if ( rtmedia_comments_enabled() && is_user_logged_in() ) { ?>
105
  </div>
106
  </div>
107
  </div>
108
+ <?php } else { ?>
109
+ <div class="rtmedia-item-comments">
110
+ <div class="rtmedia-actions-before-comments clearfix">
111
+ <div class="like-button-no-comments">
112
+ <?php do_action( 'like_button_no_comments' ); ?>
113
+ </div>
114
+ </div>
115
+ <div class="rtm-like-comments-info">
116
+ <?php show_rtmedia_like_counts(); ?>
117
+ </div>
118
+ </div>
119
  <?php } ?>
120
 
 
121
  </div>
122
 
123
  <?php if ( rtmedia_comments_enabled() && is_user_logged_in() ) { ?>