rtMedia for WordPress, BuddyPress and bbPress - Version 3.8.21

Version Description

  • Rename plugin text domain from 'rtmedia' to 'buddypress-media'
Download this release

Release Info

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

Code changes from version 3.8.20 to 3.8.21

Files changed (69) hide show
  1. app/admin/RTMediaAdmin.php +102 -102
  2. app/admin/RTMediaFormHandler.php +83 -83
  3. app/helper/RTMediaAddon.php +86 -86
  4. app/helper/RTMediaAdminWidget.php +1 -1
  5. app/helper/RTMediaFeed.php +2 -2
  6. app/helper/RTMediaLicense.php +7 -7
  7. app/helper/RTMediaSettings.php +23 -23
  8. app/helper/RTMediaSupport.php +38 -43
  9. app/helper/RTMediaThemes.php +49 -49
  10. app/helper/RTMediaUploadException.php +6 -6
  11. app/importers/BPMediaAlbumimporter.php +26 -26
  12. app/importers/RTMediaActivityUpgrade.php +1 -1
  13. app/importers/RTMediaMediaSizeImporter.php +2 -2
  14. app/importers/RTMediaMigration.php +12 -12
  15. app/main/RTMedia.php +54 -54
  16. app/main/controllers/activity/RTMediaBuddyPressActivity.php +5 -5
  17. app/main/controllers/api/RTMediaJsonApi.php +54 -54
  18. app/main/controllers/group/RTMediaGroupExtension.php +14 -14
  19. app/main/controllers/media/RTMediaAlbum.php +15 -15
  20. app/main/controllers/media/RTMediaFeatured.php +3 -3
  21. app/main/controllers/media/RTMediaGalleryItemAction.php +5 -5
  22. app/main/controllers/media/RTMediaGroupFeatured.php +3 -3
  23. app/main/controllers/media/RTMediaLike.php +3 -3
  24. app/main/controllers/media/RTMediaLoginPopup.php +4 -4
  25. app/main/controllers/media/RTMediaMedia.php +2 -2
  26. app/main/controllers/privacy/RTMediaPrivacy.php +5 -5
  27. app/main/controllers/shortcodes/RTMediaGalleryShortcode.php +1 -1
  28. app/main/controllers/shortcodes/RTMediaUploadShortcode.php +2 -2
  29. app/main/controllers/template/RTMediaAJAX.php +4 -4
  30. app/main/controllers/template/RTMediaNav.php +7 -6
  31. app/main/controllers/template/RTMediaTemplate.php +10 -10
  32. app/main/controllers/template/rt-template-functions.php +54 -54
  33. app/main/controllers/upload/RTMediaUploadEndpoint.php +1 -1
  34. app/main/controllers/upload/RTMediaUploadView.php +12 -12
  35. app/main/controllers/upload/processors/RTMediaUploadFile.php +10 -10
  36. app/main/deprecated/RTMediaDeprecated.php +1 -1
  37. app/services/RTMediaEncoding.php +53 -53
  38. index.php +2 -2
  39. languages/buddypress-media-ar_AR.mo +0 -0
  40. languages/buddypress-media-bg_BG.mo +0 -0
  41. languages/buddypress-media-da_DK.mo +0 -0
  42. languages/buddypress-media-de_DE.mo +0 -0
  43. languages/buddypress-media-es_ES.mo +0 -0
  44. languages/buddypress-media-fa_IR.mo +0 -0
  45. languages/buddypress-media-fi_FI.mo +0 -0
  46. languages/buddypress-media-fr_FR.mo +0 -0
  47. languages/buddypress-media-hu_HU.mo +0 -0
  48. languages/buddypress-media-it_IT.mo +0 -0
  49. languages/buddypress-media-ja_JA.mo +0 -0
  50. languages/buddypress-media-ko_KR.mo +0 -0
  51. languages/buddypress-media-nb_NO.mo +0 -0
  52. languages/buddypress-media-nl_NL.mo +0 -0
  53. languages/buddypress-media-pl_PL.mo +0 -0
  54. languages/buddypress-media-pt_BR.mo +0 -0
  55. languages/buddypress-media-ro_RO.mo +0 -0
  56. languages/buddypress-media-ru_RU.mo +0 -0
  57. languages/buddypress-media-sk_SK.mo +0 -0
  58. languages/buddypress-media-sr_RS.mo +0 -0
  59. languages/buddypress-media-sv_SE.mo +0 -0
  60. languages/buddypress-media-ta_IN.mo +0 -0
  61. languages/buddypress-media-zh_CN.mo +0 -0
  62. languages/buddypress-media.mo +0 -0
  63. languages/buddypress-media.po +3207 -0
  64. readme.txt +6 -3
  65. templates/media/album-gallery.php +3 -3
  66. templates/media/album-single-edit.php +16 -16
  67. templates/media/media-gallery.php +4 -4
  68. templates/media/media-single-edit.php +8 -8
  69. templates/media/media-single.php +4 -4
app/admin/RTMediaAdmin.php CHANGED
@@ -124,7 +124,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
124
if ( $rtm_id ) {
125
$link = get_rtmedia_permalink( $rtm_id );
126
$title =_draft_or_post_title( $post->post_parent );
127
- $action[ 'view' ] = '<a href="' . $link . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;', 'rtmedia' ), $title ) ) . '" rel="permalink">' . __( 'View', 'rtmedia' ) . '</a>';
128
}
129
130
return $action;
@@ -366,7 +366,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
366
*/
367
public function rtmedia_permalink_notice() {
368
echo '<div class="error rtmedia-permalink-change-notice">
369
- <p> <b>rtMedia:</b> ' . __( ' You must', 'rtmedia' ) . ' <a href="' . admin_url( 'options-permalink.php' ) . '">' . __( 'update permalink structure', 'rtmedia' ) . '</a> ' . __( 'to something other than the default for it to work.', 'rtmedia' ) . ' </p>
370
</div>';
371
}
372
@@ -392,7 +392,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
392
?>
393
<div class="error rtmedia-addon-upate-notice">
394
<p>
395
- <strong><?php _e( 'rtMedia:', 'rtmedia' ) ?></strong> <?php _e( 'Please update all premium add-ons that you have purchased from rtCamp from', 'rtmedia' ) ?> <a href="https://rtcamp.com/my-account/" target="_blank"><?php _e( 'your account', 'rtmedia' ) ?></a>. <a href="#" onclick="rtmedia_hide_addon_update_notice()" style="float:right"><?php _e( 'Dismiss', 'rtmedia' ) ?></a>
396
</p>
397
</div>
398
<script type="text/javascript">
@@ -505,7 +505,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
505
?>
506
<div class='rtmedia-admin-ad'>
507
<a href='http://rtcamp.com/products/rtmedia-pro/' target='_blank' title='rtMedia Pro'>
508
- <img src='<?php echo $src; ?>' alt="<?php _e( 'rtMedia Pro is released', 'rtmedia' ); ?>"/>
509
</a>
510
</div>
511
<?php
@@ -526,7 +526,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
526
<div class="clearfix">
527
528
<div class="rtm-column alignleft">
529
- <h4 class="sub"><?php _e( 'Media Stats', 'rtmedia' ); ?></h4>
530
531
<table>
532
<tbody>
@@ -553,7 +553,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
553
</div>
554
555
<div class="rtm-column alignright">
556
- <h4 class="sub"><?php _e( 'Usage Stats', 'rtmedia' ); ?></h4>
557
558
<table>
559
<tbody> <?php
@@ -562,7 +562,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
562
?>
563
<tr>
564
<td class="b"> <?php echo $results; ?> </td>
565
- <td class="t"><?php _e( 'Total ', 'rtmedia' ) ?></td>
566
</tr>
567
<?php
568
$sql = "select count(distinct media_author) from {$rtMedia_model->table_name}";
@@ -570,7 +570,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
570
?>
571
<tr>
572
<td class="b"> <?php echo $results; ?> </td>
573
- <td class="t"><?php _e( 'With Media', 'rtmedia' ) ?></td>
574
</tr>
575
<?php
576
$sql = "select count(*) from $wpdb->comments where comment_post_ID in (select media_id from {$rtMedia_model->table_name})";
@@ -578,7 +578,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
578
?>
579
<tr>
580
<td class="b"> <?php echo $results; ?> </td>
581
- <td class="t"><?php _e( 'Comments ', 'rtmedia' ) ?></td>
582
</tr>
583
<?php
584
$sql = "select sum(likes) from {$rtMedia_model->table_name}";
@@ -586,7 +586,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
586
?>
587
<tr>
588
<td class="b"> <?php echo $results; ?> </td>
589
- <td class="t"><?php _e( 'Likes', 'rtmedia' ) ?></td>
590
</tr>
591
592
</tbody>
@@ -597,10 +597,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
597
598
<div class="rtm-meta-container">
599
<ul class="rtm-meta-links">
600
- <li><b><?php _e( 'rtMedia Links:', 'rtmedia' ); ?></b></li>
601
- <li><a href="https://rtcamp.com/rtmedia/"><?php _e( 'Homepage', 'rtmedia' ); ?></a></li>
602
- <li><a href="admin.php?page=rtmedia-support#rtmedia-general"><?php _e( 'Free Support', 'rtmedia' ); ?></a></li>
603
- <li><a href="https://rtcamp.com/products/category/rtmedia/"><?php _e( 'Premium Addons', 'rtmedia' ); ?></a></li>
604
</ul>
605
</div>
606
<?php
@@ -616,7 +616,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
616
* @return void
617
*/
618
public function add_dashboard_widgets() {
619
- wp_add_dashboard_widget( 'rtmedia_dashboard_widget', __( 'Right Now in rtMedia', 'rtmedia' ), array( &$this, 'rtmedia_dashboard_widget_function' ) );
620
global $wp_meta_boxes;
621
622
// Get the regular dashboard widgets array
@@ -670,7 +670,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
670
671
$mime_type_array = explode( '/', $post->post_mime_type );
672
if ( is_array( $mime_type_array ) && '' != $mime_type_array && 'video' == $mime_type_array[ 0 ] ) {
673
- $actions[ 'reencode' ] = '<a class="submitdelete" onclick="return rtmedia_regenerate_thumbs(' . $post->ID . ')" href="#">' . __( 'Regenerate Thumbnail', 'rtmedia' ) . '</a>';
674
}
675
676
return $actions;
@@ -711,17 +711,17 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
711
'title' => 'rtMedia',
712
'href' => admin_url( 'admin.php?page=rtmedia-settings' ),
713
'meta' => array(
714
- 'title' => __( 'rtMedia', 'rtmedia' ),
715
),
716
)
717
);
718
$admin_bar->add_menu( array(
719
'id' => 'rt-media-dashborad',
720
'parent' => 'rtMedia',
721
- 'title' => __( 'Settings', 'rtmedia' ),
722
'href' => admin_url( 'admin.php?page=rtmedia-settings' ),
723
'meta' => array(
724
- 'title' => __( 'Settings', 'rtmedia' ),
725
'target' => '_self',
726
),
727
)
@@ -729,10 +729,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
729
$admin_bar->add_menu( array(
730
'id' => 'rt-media-addons',
731
'parent' => 'rtMedia',
732
- 'title' => __( 'Addons', 'rtmedia' ),
733
'href' => admin_url( 'admin.php?page=rtmedia-addons' ),
734
'meta' => array(
735
- 'title' => __( 'Addons', 'rtmedia' ),
736
'target' => '_self',
737
),
738
)
@@ -740,10 +740,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
740
$admin_bar->add_menu( array(
741
'id' => 'rt-media-support',
742
'parent' => 'rtMedia',
743
- 'title' => __( 'Support', 'rtmedia' ),
744
'href' => admin_url( 'admin.php?page=rtmedia-support' ),
745
'meta' => array(
746
- 'title' => __( 'Support', 'rtmedia' ),
747
'target' => '_self',
748
),
749
)
@@ -751,10 +751,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
751
$admin_bar->add_menu( array(
752
'id' => 'rt-media-themes',
753
'parent' => 'rtMedia',
754
- 'title' => __( 'Themes', 'rtmedia' ),
755
'href' => admin_url( 'admin.php?page=rtmedia-themes' ),
756
'meta' => array(
757
- 'title' => __( 'Themes', 'rtmedia' ),
758
'target' => '_self',
759
),
760
)
@@ -762,10 +762,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
762
$admin_bar->add_menu( array(
763
'id' => 'rt-media-hire-us',
764
'parent' => 'rtMedia',
765
- 'title' => __( 'Hire Us', 'rtmedia' ),
766
'href' => admin_url( 'admin.php?page=rtmedia-hire-us' ),
767
'meta' => array(
768
- 'title' => __( 'Hire Us', 'rtmedia' ),
769
'target' => '_self',
770
),
771
)
@@ -774,10 +774,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
774
$admin_bar->add_menu( array(
775
'id' => 'rt-media-license',
776
'parent' => 'rtMedia',
777
- 'title' => __( 'Licenses', 'rtmedia' ),
778
'href' => admin_url( 'admin.php?page=rtmedia-license' ),
779
'meta' => array(
780
- 'title' => __( 'Licenses', 'rtmedia' ),
781
'target' => '_self',
782
),
783
)
@@ -828,18 +828,18 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
828
wp_enqueue_script( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/admin/js/admin.min.js', array( 'backbone' ), RTMEDIA_VERSION );
829
}
830
831
- wp_localize_script( 'rtmedia-admin', 'rtmedia_on_label', __( 'ON', 'rtmedia' ) );
832
- wp_localize_script( 'rtmedia-admin', 'rtmedia_off_label', __( 'OFF', 'rtmedia' ) );
833
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_ajax', $admin_ajax );
834
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_url', admin_url() );
835
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_url', admin_url() );
836
837
$rtmedia_admin_strings = array(
838
- 'no_refresh' => __( 'Please do not refresh this page.', 'rtmedia' ),
839
- 'something_went_wrong' => __( 'Something went wrong. Please <a href onclick="location.reload();">refresh</a> page.', 'rtmedia' ),
840
- 'are_you_sure' => __( 'This will subscribe you to the free plan.', 'rtmedia' ),
841
- 'disable_encoding' => __( 'Are you sure you want to disable the encoding service?', 'rtmedia' ),
842
- 'enable_encoding' => __( 'Are you sure you want to enable the encoding service?', 'rtmedia' ),
843
);
844
845
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_strings', $rtmedia_admin_strings );
@@ -859,7 +859,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
859
* Add Admin Menu.
860
*
861
* @access public
862
- * @global string 'rtmedia'
863
*
864
* @param void
865
*
@@ -867,19 +867,19 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
867
*/
868
public function menu() {
869
add_menu_page( 'rtMedia', 'rtMedia', 'manage_options', 'rtmedia-settings', array( $this, 'settings_page' ), RTMEDIA_URL . 'app/assets/admin/img/rtmedia-logo.png', '40.1111' );
870
- add_submenu_page( 'rtmedia-settings', __( 'Settings', 'rtmedia' ), __( 'Settings', 'rtmedia' ), 'manage_options', 'rtmedia-settings', array( $this, 'settings_page' ) );
871
- add_submenu_page( 'rtmedia-settings', __( 'Addons', 'rtmedia' ), __( 'Addons', 'rtmedia' ), 'manage_options', 'rtmedia-addons', array( $this, 'addons_page' ) );
872
- add_submenu_page( 'rtmedia-settings', __( 'Support', 'rtmedia' ), __( 'Support', 'rtmedia' ), 'manage_options', 'rtmedia-support', array( $this, 'support_page' ) );
873
- add_submenu_page( 'rtmedia-settings', __( 'Themes', 'rtmedia' ), __( 'Themes', 'rtmedia' ), 'manage_options', 'rtmedia-themes', array( $this, 'theme_page' ) );
874
- add_submenu_page( 'rtmedia-settings', __( 'Hire Us', 'rtmedia' ), __( 'Hire Us', 'rtmedia' ), 'manage_options', 'rtmedia-hire-us', array( $this, 'hire_us_page' ) );
875
if ( has_filter( 'rtmedia_license_tabs' ) || has_action( 'rtmedia_addon_license_details' ) ) {
876
- add_submenu_page( 'rtmedia-settings', __( 'Licenses', 'rtmedia' ), __( 'Licenses', 'rtmedia' ), 'manage_options', 'rtmedia-license', array( $this, 'license_page' ) );
877
}
878
879
$obj_encoding = new RTMediaEncoding( true );
880
881
if ( $obj_encoding->api_key ) {
882
- add_submenu_page( 'rtmedia-settings', __( 'Regenerate Thumbnail', 'rtmedia' ), __( 'Regen. Thumbnail ', 'rtmedia' ), 'manage_options', 'rtmedia-regenerate', array( $this, 'rt_regenerate_thumbnail' ) );
883
}
884
}
885
@@ -897,7 +897,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
897
$done = 0;
898
?>
899
<div class="wrap">
900
- <h2> rtMedia: <?php _e( 'Regenerate Video Thumbnails', 'rtmedia' ); ?> </h2>
901
<?php
902
if ( isset( $_REQUEST[ 'media_ids' ] ) && trim( $_REQUEST[ 'media_ids' ] ) != '' ) {
903
$requested = false;
@@ -915,7 +915,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
915
if ( ! isset( $requested ) ) {
916
?>
917
<br/>
918
- <p>You can see this page because you have <a href="<?php echo admin_url( 'admin.php?page=rtmedia-addons' ) ?>">subscribed</a> for <a href="https://rtcamp.com/rtmedia/docs/admin/addons/audio-video-encoding/" target="_blank">rtMedia audio/video encoding service</a>.</p> <p>You can regenerate thumbnails of a specific video by visiting <a href="<?php echo admin_url( 'upload.php?post_mime_type=video' ); ?>">media page</a> and clicking the <b>Regenerate Thumbnail</b> option for that particular video.</p> <p>Click <b>Regenerate Pending Thumbnails</b> to regenerate thumbnails of pending videos.</p> <p><input type="button" class="button button-primary" id="rt-start-media-regenerate" value="<?php echo __( 'Regenerate Pending Thumbnails', 'rtmedia' ) . ' (' . $total . ')'; ?>"/> </p>
919
<?php
920
}
921
?>
@@ -925,12 +925,12 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
925
$temp = $prog->progress( $done, $total );
926
$prog->progress_ui( $temp, true );
927
?>
928
- <p> <?php _e( 'Total Videos', 'rtmedia' ) ?> : <span class='rt-total'><?php echo $total; ?></span>
929
</p>
930
931
- <p> <?php _e( 'Sent of regenerate thumbails', 'rtmedia' ) ?> : <span class='rt-done'>0</span></p>
932
933
- <p> <?php _e( 'Fail to regenerate thumbails', 'rtmedia' ) ?> : <span class='rt-fail'>0</span></p>
934
935
</div>
936
<script>
@@ -969,7 +969,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
969
}
970
} );
971
} else {
972
- alert( "<?php _e( 'Regenerate Video Thumbnails Done', 'rtmedia' ); ?>" );
973
}
974
}
975
function handle_regenrate_fail() {
@@ -1013,7 +1013,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1013
if ( isset( $videos_without_thumbs ) && is_array( $videos_without_thumbs ) && sizeof( $videos_without_thumbs ) > 0 ) {
1014
echo '<div class="error rtmedia-regenerate-video-thumb-error">
1015
<p>
1016
- ' . sprintf( __( "You have %s videos without thumbnails. Click <a href='%s'> here </a> to generate thumbnails. <a href='#' onclick='rtmedia_hide_video_thumb_notice()' style='float:right'>Hide</a>", 'rtmedia' ), sizeof( $videos_without_thumbs ), admin_url( 'admin.php?page=rtmedia-regenerate' ) ) . '
1017
</p>
1018
</div>';
1019
?>
@@ -1091,7 +1091,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1091
$response[ 'status' ] = true;
1092
} else {
1093
$response[ 'status' ] = false;
1094
- $response[ 'message' ] = __( 'not a video ...', 'rtmedia' );
1095
}
1096
echo json_encode( $response );
1097
die();
@@ -1126,7 +1126,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1126
* @return void
1127
*/
1128
public function settings_page() {
1129
- $this->render_page( 'rtmedia-settings', 'rtmedia' );
1130
}
1131
1132
/**
@@ -1241,7 +1241,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1241
* Render BPMedia Settings.
1242
*
1243
* @access public
1244
- * @global string 'rtmedia'
1245
*
1246
* @param type $page
1247
* @param type $option_group
@@ -1256,7 +1256,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1256
<div>
1257
<h2 class="nav-tab-wrapper"><?php $this->rtmedia_tabs(); ?>
1258
<span class="alignright by">
1259
- <a class="rt-link" href="http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" target="_blank" title="rtCamp : <?php _e( 'Empowering The Web With WordPress', 'rtmedia' ); ?>">
1260
<img src="<?php echo RTMEDIA_URL; ?>app/assets/admin/img/rtcamp-logo.png" alt="rtCamp" />
1261
</a>
1262
</span>
@@ -1276,10 +1276,10 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1276
<div class="bp-media-metabox-holder">
1277
<div class="rtm-button-container top">
1278
<?php if ( isset( $_GET[ 'settings-saved' ] ) && $_GET[ 'settings-saved' ] ) { ?>
1279
- <div class="rtm-success rtm-fly-warning rtm-save-settings-msg"><?php _e( 'Settings saved successfully!', 'rtmedia' ); ?></div>
1280
<?php } ?>
1281
<input type="hidden" name="rtmedia-options-save" value="true">
1282
- <input type="submit" class="rtmedia-settings-submit button button-primary button-big" value="<?php _e( 'Save Settings', 'rtmedia' ); ?>">
1283
</div>
1284
<?php
1285
settings_fields( $option_group );
@@ -1302,7 +1302,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1302
</div>
1303
1304
<input type="hidden" name="rtmedia-options-save" value="true">
1305
- <input type="submit" class="rtmedia-settings-submit button button-primary button-big" value="<?php _e( 'Save Settings', 'rtmedia' ); ?>">
1306
</div>
1307
</div>
1308
</form><?php
@@ -1365,8 +1365,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1365
/* rtMedia */
1366
$tabs[] = array(
1367
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-settings' ), 'admin.php' ) ) ),
1368
- 'title' => __( 'rtMedia', 'rtmedia' ),
1369
- 'name' => __( 'rtMedia', 'rtmedia' ),
1370
'class' => ( $tab == 'rtmedia-settings' || $tab == 'rtmedia-addons' || $tab == 'rtmedia-support' || $tab == 'rtmedia-importer' ) ? $active_class : $idle_class,
1371
);
1372
@@ -1395,23 +1395,23 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1395
$tabs = array(
1396
array(
1397
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-settings' ), 'admin.php' ) ) ),
1398
- 'name' => __( 'Settings', 'rtmedia' ),
1399
'slug' => 'rtmedia-settings',
1400
), array(
1401
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-addons' ), 'admin.php' ) ) ),
1402
- 'name' => __( 'Addons', 'rtmedia' ),
1403
'slug' => 'rtmedia-addons',
1404
), array(
1405
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-themes' ), 'admin.php' ) ) ),
1406
- 'name' => __( 'Themes', 'rtmedia' ),
1407
'slug' => 'rtmedia-themes',
1408
), array(
1409
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-hire-us' ), 'admin.php' ) ) ),
1410
- 'name' => __( 'Hire Us', 'rtmedia' ),
1411
'slug' => 'rtmedia-hire-us',
1412
), array(
1413
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) ),
1414
- 'name' => __( 'Support', 'rtmedia' ),
1415
'slug' => 'rtmedia-support',
1416
),
1417
);
@@ -1419,7 +1419,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1419
if ( has_filter( 'rtmedia_license_tabs' ) || has_action( 'rtmedia_addon_license_details' ) ) {
1420
$tabs[] = array(
1421
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-license' ), 'admin.php' ) ) ),
1422
- 'name' => __( 'Licenses', 'rtmedia' ),
1423
'slug' => 'rtmedia-license',
1424
);
1425
}
@@ -1501,8 +1501,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1501
$tabs[ 7 ] = array(
1502
'href' => '#rtmedia-display',
1503
'icon' => 'dashicons-desktop',
1504
- 'title' => __( 'Display', 'rtmedia' ),
1505
- 'name' => __( 'Display', 'rtmedia' ),
1506
'callback' => array( 'RTMediaFormHandler', 'display_content' )
1507
);
1508
@@ -1510,8 +1510,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1510
$tabs[ 20 ] = array(
1511
'href' => '#rtmedia-bp',
1512
'icon' => 'dashicons-groups',
1513
- 'title' => __( 'rtMedia BuddyPress', 'rtmedia' ),
1514
- 'name' => __( 'BuddyPress', 'rtmedia' ),
1515
'callback' => array( 'RTMediaFormHandler', 'buddypress_content' ) //change it to BuddyPress Content
1516
);
1517
}
@@ -1519,31 +1519,31 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1519
$tabs[ 30 ] = array(
1520
'href' => '#rtmedia-types',
1521
'icon' => 'dashicons-editor-video',
1522
- 'title' => __( 'rtMedia Types', 'rtmedia' ),
1523
- 'name' => __( 'Types', 'rtmedia' ),
1524
'callback' => array( 'RTMediaFormHandler', 'types_content' )
1525
);
1526
1527
$tabs[ 40 ] = array(
1528
'href' => '#rtmedia-sizes',
1529
'icon' => 'dashicons-editor-expand',
1530
- 'title' => __( 'rtMedia Sizes', 'rtmedia' ),
1531
- 'name' => __( 'Media Sizes', 'rtmedia' ),
1532
'callback' => array( 'RTMediaFormHandler', 'sizes_content' )
1533
);
1534
1535
$tabs[ 50 ] = array(
1536
'href' => '#rtmedia-privacy',
1537
'icon' => 'dashicons-lock',
1538
- 'title' => __( 'rtMedia Privacy', 'rtmedia' ),
1539
- 'name' => __( 'Privacy', 'rtmedia' ),
1540
'callback' => array( 'RTMediaFormHandler', 'privacy_content' )
1541
);
1542
$tabs[ 60 ] = array(
1543
'href' => '#rtmedia-custom-css-settings',
1544
'icon' => 'dashicons-clipboard',
1545
- 'title' => __( 'rtMedia Custom CSS', 'rtmedia' ),
1546
- 'name' => __( 'Custom CSS', 'rtmedia' ),
1547
'callback' => array( 'RTMediaFormHandler', 'custom_css_content' )
1548
);
1549
@@ -1552,8 +1552,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1552
$tabs[] = array(
1553
'href' => '#rtmedia-general',
1554
'icon' => 'dashicons-admin-tools',
1555
- 'title' => __( 'Other Settings', 'rtmedia' ),
1556
- 'name' => __( 'Other Settings', 'rtmedia' ),
1557
'callback' => array( 'RTMediaFormHandler', 'general_content' )
1558
);
1559
@@ -1648,31 +1648,31 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1648
public function admin_sidebar() {
1649
do_action( 'rtmedia_before_default_admin_widgets' );
1650
$current_user = wp_get_current_user();
1651
- $message = sprintf( __( 'I use @rtMediaWP http://rt.cx/rtmedia on %s', 'rtmedia' ), home_url() );
1652
$addons = '<div id="social" class="rtm-social-share">
1653
- <p><a href="http://twitter.com/home/?status=' . $message . '" class="button twitter" target= "_blank" title="' . __( 'Post to Twitter Now', 'rtmedia' ) . '">' . __( 'Post to Twitter', 'rtmedia' ) . '<span class="dashicons dashicons-twitter"></span></a></p>
1654
- <p><a href="https://www.facebook.com/sharer/sharer.php?u=http://rtcamp.com/rtmedia/" class="button facebook" target="_blank" title="' . __( 'Share on Facebook Now', 'rtmedia' ) . '">' . __( 'Share on Facebook', 'rtmedia' ) . '<span class="dashicons dashicons-facebook"></span></a></p>
1655
- <p><a href="http://wordpress.org/support/view/plugin-reviews/buddypress-media?rate=5#postform" class="button wordpress" target= "_blank" title="' . __( 'Rate rtMedia on Wordpress.org', 'rtmedia' ) . '">' . __( 'Rate on Wordpress.org', 'rtmedia' ) . '<span class="dashicons dashicons-wordpress"></span></a></p>
1656
- <p><a href="' . sprintf( '%s', 'https://rtcamp.com/feed/' ) . '" class="button rss" target="_blank" title="' . __( 'Subscribe to our Feeds', 'rtmedia' ) . '">' . __( 'Subscribe to our Feeds', 'rtmedia' ) . '<span class="dashicons dashicons-rss"></span></a></p>
1657
</div>';
1658
1659
- new RTMediaAdminWidget( 'spread-the-word', __( 'Spread the Word', 'rtmedia' ), $addons );
1660
1661
$branding = '<form action="http://rtcamp.us1.list-manage1.com/subscribe/post?u=85b65c9c71e2ba3fab8cb1950&amp;id=9e8ded4470" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
1662
<div class="mc-field-group">
1663
<input type="email" value="' . $current_user->user_email . '" name="EMAIL" placeholder="Email" class="required email" id="mce-EMAIL">
1664
<input style="display:none;" type="checkbox" checked="checked" value="1" name="group[1721][1]" id="mce-group[1721]-1721-0">
1665
- <input type="submit" value="' . __( 'Subscribe', 'rtmedia' ) . '" name="subscribe" id="mc-embedded-subscribe" class="button">
1666
<div id="mce-responses" class="clear">
1667
<div class="response" id="mce-error-response" style="display:none"></div>
1668
<div class="response" id="mce-success-response" style="display:none"></div>
1669
</div>
1670
</div>
1671
</form>';
1672
- new RTMediaAdminWidget( 'branding', __( 'Subscribe', 'rtmedia' ), $branding );
1673
1674
$news = '<img src ="' . admin_url( '/images/wpspin_light.gif' ) . '" /> Loading...';
1675
- //new RTMediaAdminWidget ( 'latest-news', __( 'Latest News', 'rtmedia' ), $news );
1676
do_action( 'rtmedia_after_default_admin_widgets' );
1677
}
1678
@@ -1691,7 +1691,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1691
} else {
1692
rtmedia_update_site_option( 'rtmedia-survey', 0 );
1693
}
1694
- _e( 'Thank you for your time.', 'rtmedia' );
1695
die;
1696
}
1697
@@ -1703,7 +1703,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1703
1704
public function plugin_meta_premium_addon_link( $plugin_meta, $plugin_file, $plugin_data, $status ) {
1705
if ( plugin_basename( RTMEDIA_PATH . 'index.php' ) == $plugin_file ) {
1706
- $plugin_meta[] = '<a href="https://rtcamp.com/rtmedia/addons/?utm_source=dashboard&#038;utm_medium=plugin&#038;utm_campaign=buddypress-media" title="' . __( 'Premium Add-ons', 'rtmedia' ) . '">' . __( 'Premium Add-ons', 'rtmedia' ) . '</a>';
1707
}
1708
1709
return $plugin_meta;
@@ -1719,8 +1719,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1719
if ( ! empty( $not_supported_image ) ) {
1720
echo '<div class="error upload-filetype-network-settings-error">
1721
<p>
1722
- ' . sprintf( __( 'You have images enabled on rtMedia but your network allowed filetypes do not permit uploading of %s. Click <a href="%s">here</a> to change your settings manually.', 'rtmedia' ), implode( ', ', $not_supported_image ), network_admin_url( 'settings.php#upload_filetypes' ) ) . '
1723
- <br /><strong>' . __( 'Recommended', 'rtmedia' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __( 'Update Network Settings Automatically', 'rtmedia' ) . '"> <img style="display:none;" src="' . admin_url( 'images/wpspin_light.gif' ) . '" />
1724
</p>
1725
</div>';
1726
$flag = true;
@@ -1730,8 +1730,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1730
if ( ! in_array( 'mp4', $upload_filetypes ) ) {
1731
echo '<div class="error upload-filetype-network-settings-error">
1732
<p>
1733
- ' . sprintf( __( 'You have video enabled on BuddyPress Media but your network allowed filetypes do not permit uploading of mp4. Click <a href="%s">here</a> to change your settings manually.', 'rtmedia' ), network_admin_url( 'settings.php#upload_filetypes' ) ) . '
1734
- <br /><strong>' . __( 'Recommended', 'rtmedia' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __( 'Update Network Settings Automatically', 'rtmedia' ) . '"> <img style="display:none;" src="' . admin_url( 'images/wpspin_light.gif' ) . '" />
1735
</p>
1736
</div>';
1737
$flag = true;
@@ -1739,8 +1739,8 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1739
}
1740
if ( isset( $rtmedia->options[ 'audio_enabled' ] ) && $rtmedia->options[ 'audio_enabled' ] ) {
1741
if ( ! in_array( 'mp3', $upload_filetypes ) ) {
1742
- echo '<div class="error upload-filetype-network-settings-error"><p>' . sprintf( __( 'You have audio enabled on BuddyPress Media but your network allowed filetypes do not permit uploading of mp3. Click <a href="%s">here</a> to change your settings manually.', 'rtmedia' ), network_admin_url( 'settings.php#upload_filetypes' ) ) . '
1743
- <br /><strong>' . __( 'Recommended', 'rtmedia' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __( 'Update Network Settings Automatically', 'rtmedia' ) . '"> <img style="display:none;" src="' . admin_url( 'images/wpspin_light.gif' ) . '" />
1744
</p>
1745
</div>';
1746
$flag = true;
@@ -1754,7 +1754,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1754
jQuery( '.update-network-settings-upload-filetypes' ).prop( 'disabled', true );
1755
jQuery.post( ajaxurl, { action: 'rtmedia_correct_upload_filetypes' }, function ( response ) {
1756
if ( response ) {
1757
- jQuery( '.upload-filetype-network-settings-error:first' ).after( '<div style="display: none;" class="updated rtmedia-network-settings-updated-successfully"><p><?php _e( 'Network settings updated successfully.', 'rtmedia' ); ?></p></div>' )
1758
jQuery( '.upload-filetype-network-settings-error' ).remove();
1759
jQuery( '.bp-media-network-settings-updated-successfully' ).show();
1760
}
@@ -1860,9 +1860,9 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1860
jQuery.post( ajaxurl, data, function ( data ) {
1861
data = JSON.parse( data );
1862
if ( data.status === true ) {
1863
- alert( "<?php _e( 'Video is sent to generate thumbnails.', 'rtmedia' ) ?>" );
1864
} else {
1865
- alert( "<?php _e( 'Video cannot be sent to generate thumbnails.', 'rtmedia' ) ?>" );
1866
}
1867
} );
1868
}
@@ -1876,7 +1876,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1876
?>
1877
<script type="text/javascript">
1878
jQuery( document ).ready( function ( $ ) {
1879
- $( 'select[name^="action"] option:last-child' ).before( '<option value="bulk_video_regenerate_thumbnails"><?php esc_attr_e( 'Regenerate Video Thumbnails', 'rtmedia' ); ?></option>' );
1880
} );
1881
</script>
1882
<?php
@@ -1941,7 +1941,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1941
if ( ! $site_option || 'hide' != $site_option ) {
1942
rtmedia_update_site_option( 'rtmedia-update-template-notice-v3_8', 'show' );
1943
if ( is_dir( get_template_directory() . '/rtmedia' ) ) {
1944
- echo '<div class="error rtmedia-update-template-notice"><p>' . __( 'Please update rtMedia template files if you have overridden the default rtMedia templates in your theme. If not, you can ignore and hide this notice.', 'rtmedia' ) . '<a href="#" onclick="rtmedia_hide_template_override_notice()" style="float:right">' . __( 'Hide', 'rtmedia' ) . '</a>' . ' </p></div>';
1945
?>
1946
<script type="text/javascript">
1947
function rtmedia_hide_template_override_notice() {
124
if ( $rtm_id ) {
125
$link = get_rtmedia_permalink( $rtm_id );
126
$title =_draft_or_post_title( $post->post_parent );
127
+ $action[ 'view' ] = '<a href="' . $link . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;', 'buddypress-media' ), $title ) ) . '" rel="permalink">' . __( 'View', 'buddypress-media' ) . '</a>';
128
}
129
130
return $action;
366
*/
367
public function rtmedia_permalink_notice() {
368
echo '<div class="error rtmedia-permalink-change-notice">
369
+ <p> <b>rtMedia:</b> ' . __( ' You must', 'buddypress-media' ) . ' <a href="' . admin_url( 'options-permalink.php' ) . '">' . __( 'update permalink structure', 'buddypress-media' ) . '</a> ' . __( 'to something other than the default for it to work.', 'buddypress-media' ) . ' </p>
370
</div>';
371
}
372
392
?>
393
<div class="error rtmedia-addon-upate-notice">
394
<p>
395
+ <strong><?php _e( 'rtMedia:', 'buddypress-media' ) ?></strong> <?php _e( 'Please update all premium add-ons that you have purchased from rtCamp from', 'buddypress-media' ) ?> <a href="https://rtcamp.com/my-account/" target="_blank"><?php _e( 'your account', 'buddypress-media' ) ?></a>. <a href="#" onclick="rtmedia_hide_addon_update_notice()" style="float:right"><?php _e( 'Dismiss', 'buddypress-media' ) ?></a>
396
</p>
397
</div>
398
<script type="text/javascript">
505
?>
506
<div class='rtmedia-admin-ad'>
507
<a href='http://rtcamp.com/products/rtmedia-pro/' target='_blank' title='rtMedia Pro'>
508
+ <img src='<?php echo $src; ?>' alt="<?php _e( 'rtMedia Pro is released', 'buddypress-media' ); ?>"/>
509
</a>
510
</div>
511
<?php
526
<div class="clearfix">
527
528
<div class="rtm-column alignleft">
529
+ <h4 class="sub"><?php _e( 'Media Stats', 'buddypress-media' ); ?></h4>
530
531
<table>
532
<tbody>
553
</div>
554
555
<div class="rtm-column alignright">
556
+ <h4 class="sub"><?php _e( 'Usage Stats', 'buddypress-media' ); ?></h4>
557
558
<table>
559
<tbody> <?php
562
?>
563
<tr>
564
<td class="b"> <?php echo $results; ?> </td>
565
+ <td class="t"><?php _e( 'Total ', 'buddypress-media' ) ?></td>
566
</tr>
567
<?php
568
$sql = "select count(distinct media_author) from {$rtMedia_model->table_name}";
570
?>
571
<tr>
572
<td class="b"> <?php echo $results; ?> </td>
573
+ <td class="t"><?php _e( 'With Media', 'buddypress-media' ) ?></td>
574
</tr>
575
<?php
576
$sql = "select count(*) from $wpdb->comments where comment_post_ID in (select media_id from {$rtMedia_model->table_name})";
578
?>
579
<tr>
580
<td class="b"> <?php echo $results; ?> </td>
581
+ <td class="t"><?php _e( 'Comments ', 'buddypress-media' ) ?></td>
582
</tr>
583
<?php
584
$sql = "select sum(likes) from {$rtMedia_model->table_name}";
586
?>
587
<tr>
588
<td class="b"> <?php echo $results; ?> </td>
589
+ <td class="t"><?php _e( 'Likes', 'buddypress-media' ) ?></td>
590
</tr>
591
592
</tbody>
597
598
<div class="rtm-meta-container">
599
<ul class="rtm-meta-links">
600
+ <li><b><?php _e( 'rtMedia Links:', 'buddypress-media' ); ?></b></li>
601
+ <li><a href="https://rtcamp.com/rtmedia/"><?php _e( 'Homepage', 'buddypress-media' ); ?></a></li>
602
+ <li><a href="admin.php?page=rtmedia-support#rtmedia-general"><?php _e( 'Free Support', 'buddypress-media' ); ?></a></li>
603
+ <li><a href="https://rtcamp.com/products/category/rtmedia/"><?php _e( 'Premium Addons', 'buddypress-media' ); ?></a></li>
604
</ul>
605
</div>
606
<?php
616
* @return void
617
*/
618
public function add_dashboard_widgets() {
619
+ wp_add_dashboard_widget( 'rtmedia_dashboard_widget', __( 'Right Now in rtMedia', 'buddypress-media' ), array( &$this, 'rtmedia_dashboard_widget_function' ) );
620
global $wp_meta_boxes;
621
622
// Get the regular dashboard widgets array
670
671
$mime_type_array = explode( '/', $post->post_mime_type );
672
if ( is_array( $mime_type_array ) && '' != $mime_type_array && 'video' == $mime_type_array[ 0 ] ) {
673
+ $actions[ 'reencode' ] = '<a class="submitdelete" onclick="return rtmedia_regenerate_thumbs(' . $post->ID . ')" href="#">' . __( 'Regenerate Thumbnail', 'buddypress-media' ) . '</a>';
674
}
675
676
return $actions;
711
'title' => 'rtMedia',
712
'href' => admin_url( 'admin.php?page=rtmedia-settings' ),
713
'meta' => array(
714
+ 'title' => __( 'rtMedia', 'buddypress-media' ),
715
),
716
)
717
);
718
$admin_bar->add_menu( array(
719
'id' => 'rt-media-dashborad',
720
'parent' => 'rtMedia',
721
+ 'title' => __( 'Settings', 'buddypress-media' ),
722
'href' => admin_url( 'admin.php?page=rtmedia-settings' ),
723
'meta' => array(
724
+ 'title' => __( 'Settings', 'buddypress-media' ),
725
'target' => '_self',
726
),
727
)
729
$admin_bar->add_menu( array(
730
'id' => 'rt-media-addons',
731
'parent' => 'rtMedia',
732
+ 'title' => __( 'Addons', 'buddypress-media' ),
733
'href' => admin_url( 'admin.php?page=rtmedia-addons' ),
734
'meta' => array(
735
+ 'title' => __( 'Addons', 'buddypress-media' ),
736
'target' => '_self',
737
),
738
)
740
$admin_bar->add_menu( array(
741
'id' => 'rt-media-support',
742
'parent' => 'rtMedia',
743
+ 'title' => __( 'Support', 'buddypress-media' ),
744
'href' => admin_url( 'admin.php?page=rtmedia-support' ),
745
'meta' => array(
746
+ 'title' => __( 'Support', 'buddypress-media' ),
747
'target' => '_self',
748
),
749
)
751
$admin_bar->add_menu( array(
752
'id' => 'rt-media-themes',
753
'parent' => 'rtMedia',
754
+ 'title' => __( 'Themes', 'buddypress-media' ),
755
'href' => admin_url( 'admin.php?page=rtmedia-themes' ),
756
'meta' => array(
757
+ 'title' => __( 'Themes', 'buddypress-media' ),
758
'target' => '_self',
759
),
760
)
762
$admin_bar->add_menu( array(
763
'id' => 'rt-media-hire-us',
764
'parent' => 'rtMedia',
765
+ 'title' => __( 'Hire Us', 'buddypress-media' ),
766
'href' => admin_url( 'admin.php?page=rtmedia-hire-us' ),
767
'meta' => array(
768
+ 'title' => __( 'Hire Us', 'buddypress-media' ),
769
'target' => '_self',
770
),
771
)
774
$admin_bar->add_menu( array(
775
'id' => 'rt-media-license',
776
'parent' => 'rtMedia',
777
+ 'title' => __( 'Licenses', 'buddypress-media' ),
778
'href' => admin_url( 'admin.php?page=rtmedia-license' ),
779
'meta' => array(
780
+ 'title' => __( 'Licenses', 'buddypress-media' ),
781
'target' => '_self',
782
),
783
)
828
wp_enqueue_script( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/admin/js/admin.min.js', array( 'backbone' ), RTMEDIA_VERSION );
829
}
830
831
+ wp_localize_script( 'rtmedia-admin', 'rtmedia_on_label', __( 'ON', 'buddypress-media' ) );
832
+ wp_localize_script( 'rtmedia-admin', 'rtmedia_off_label', __( 'OFF', 'buddypress-media' ) );
833
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_ajax', $admin_ajax );
834
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_url', admin_url() );
835
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_url', admin_url() );
836
837
$rtmedia_admin_strings = array(
838
+ 'no_refresh' => __( 'Please do not refresh this page.', 'buddypress-media' ),
839
+ 'something_went_wrong' => __( 'Something went wrong. Please <a href onclick="location.reload();">refresh</a> page.', 'buddypress-media' ),
840
+ 'are_you_sure' => __( 'This will subscribe you to the free plan.', 'buddypress-media' ),
841
+ 'disable_encoding' => __( 'Are you sure you want to disable the encoding service?', 'buddypress-media' ),
842
+ 'enable_encoding' => __( 'Are you sure you want to enable the encoding service?', 'buddypress-media' ),
843
);
844
845
wp_localize_script( 'rtmedia-admin', 'rtmedia_admin_strings', $rtmedia_admin_strings );
859
* Add Admin Menu.
860
*
861
* @access public
862
+ * @global string 'buddypress-media'
863
*
864
* @param void
865
*
867
*/
868
public function menu() {
869
add_menu_page( 'rtMedia', 'rtMedia', 'manage_options', 'rtmedia-settings', array( $this, 'settings_page' ), RTMEDIA_URL . 'app/assets/admin/img/rtmedia-logo.png', '40.1111' );
870
+ add_submenu_page( 'rtmedia-settings', __( 'Settings', 'buddypress-media' ), __( 'Settings', 'buddypress-media' ), 'manage_options', 'rtmedia-settings', array( $this, 'settings_page' ) );
871
+ add_submenu_page( 'rtmedia-settings', __( 'Addons', 'buddypress-media' ), __( 'Addons', 'buddypress-media' ), 'manage_options', 'rtmedia-addons', array( $this, 'addons_page' ) );
872
+ add_submenu_page( 'rtmedia-settings', __( 'Support', 'buddypress-media' ), __( 'Support', 'buddypress-media' ), 'manage_options', 'rtmedia-support', array( $this, 'support_page' ) );
873
+ add_submenu_page( 'rtmedia-settings', __( 'Themes', 'buddypress-media' ), __( 'Themes', 'buddypress-media' ), 'manage_options', 'rtmedia-themes', array( $this, 'theme_page' ) );
874
+ add_submenu_page( 'rtmedia-settings', __( 'Hire Us', 'buddypress-media' ), __( 'Hire Us', 'buddypress-media' ), 'manage_options', 'rtmedia-hire-us', array( $this, 'hire_us_page' ) );
875
if ( has_filter( 'rtmedia_license_tabs' ) || has_action( 'rtmedia_addon_license_details' ) ) {
876
+ add_submenu_page( 'rtmedia-settings', __( 'Licenses', 'buddypress-media' ), __( 'Licenses', 'buddypress-media' ), 'manage_options', 'rtmedia-license', array( $this, 'license_page' ) );
877
}
878
879
$obj_encoding = new RTMediaEncoding( true );
880
881
if ( $obj_encoding->api_key ) {
882
+ add_submenu_page( 'rtmedia-settings', __( 'Regenerate Thumbnail', 'buddypress-media' ), __( 'Regen. Thumbnail ', 'buddypress-media' ), 'manage_options', 'rtmedia-regenerate', array( $this, 'rt_regenerate_thumbnail' ) );
883
}
884
}
885
897
$done = 0;
898
?>
899
<div class="wrap">
900
+ <h2> rtMedia: <?php _e( 'Regenerate Video Thumbnails', 'buddypress-media' ); ?> </h2>
901
<?php
902
if ( isset( $_REQUEST[ 'media_ids' ] ) && trim( $_REQUEST[ 'media_ids' ] ) != '' ) {
903
$requested = false;
915
if ( ! isset( $requested ) ) {
916
?>
917
<br/>
918
+ <p>You can see this page because you have <a href="<?php echo admin_url( 'admin.php?page=rtmedia-addons' ) ?>">subscribed</a> for <a href="https://rtcamp.com/rtmedia/docs/admin/addons/audio-video-encoding/" target="_blank">rtMedia audio/video encoding service</a>.</p> <p>You can regenerate thumbnails of a specific video by visiting <a href="<?php echo admin_url( 'upload.php?post_mime_type=video' ); ?>">media page</a> and clicking the <b>Regenerate Thumbnail</b> option for that particular video.</p> <p>Click <b>Regenerate Pending Thumbnails</b> to regenerate thumbnails of pending videos.</p> <p><input type="button" class="button button-primary" id="rt-start-media-regenerate" value="<?php echo __( 'Regenerate Pending Thumbnails', 'buddypress-media' ) . ' (' . $total . ')'; ?>"/> </p>
919
<?php
920
}
921
?>
925
$temp = $prog->progress( $done, $total );
926
$prog->progress_ui( $temp, true );
927
?>
928
+ <p> <?php _e( 'Total Videos', 'buddypress-media' ) ?> : <span class='rt-total'><?php echo $total; ?></span>
929
</p>
930
931
+ <p> <?php _e( 'Sent of regenerate thumbails', 'buddypress-media' ) ?> : <span class='rt-done'>0</span></p>
932
933
+ <p> <?php _e( 'Fail to regenerate thumbails', 'buddypress-media' ) ?> : <span class='rt-fail'>0</span></p>
934
935
</div>
936
<script>
969
}
970
} );
971
} else {
972
+ alert( "<?php _e( 'Regenerate Video Thumbnails Done', 'buddypress-media' ); ?>" );
973
}
974
}
975
function handle_regenrate_fail() {
1013
if ( isset( $videos_without_thumbs ) && is_array( $videos_without_thumbs ) && sizeof( $videos_without_thumbs ) > 0 ) {
1014
echo '<div class="error rtmedia-regenerate-video-thumb-error">
1015
<p>
1016
+ ' . sprintf( __( "You have %s videos without thumbnails. Click <a href='%s'> here </a> to generate thumbnails. <a href='#' onclick='rtmedia_hide_video_thumb_notice()' style='float:right'>Hide</a>", 'buddypress-media' ), sizeof( $videos_without_thumbs ), admin_url( 'admin.php?page=rtmedia-regenerate' ) ) . '
1017
</p>
1018
</div>';
1019
?>
1091
$response[ 'status' ] = true;
1092
} else {
1093
$response[ 'status' ] = false;
1094
+ $response[ 'message' ] = __( 'not a video ...', 'buddypress-media' );
1095
}
1096
echo json_encode( $response );
1097
die();
1126
* @return void
1127
*/
1128
public function settings_page() {
1129
+ $this->render_page( 'rtmedia-settings', 'buddypress-media' );
1130
}
1131
1132
/**
1241
* Render BPMedia Settings.
1242
*
1243
* @access public
1244
+ * @global string 'buddypress-media'
1245
*
1246
* @param type $page
1247
* @param type $option_group
1256
<div>
1257
<h2 class="nav-tab-wrapper"><?php $this->rtmedia_tabs(); ?>
1258
<span class="alignright by">
1259
+ <a class="rt-link" href="http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" target="_blank" title="rtCamp : <?php _e( 'Empowering The Web With WordPress', 'buddypress-media' ); ?>">
1260
<img src="<?php echo RTMEDIA_URL; ?>app/assets/admin/img/rtcamp-logo.png" alt="rtCamp" />
1261
</a>
1262
</span>
1276
<div class="bp-media-metabox-holder">
1277
<div class="rtm-button-container top">
1278
<?php if ( isset( $_GET[ 'settings-saved' ] ) && $_GET[ 'settings-saved' ] ) { ?>
1279
+ <div class="rtm-success rtm-fly-warning rtm-save-settings-msg"><?php _e( 'Settings saved successfully!', 'buddypress-media' ); ?></div>
1280
<?php } ?>
1281
<input type="hidden" name="rtmedia-options-save" value="true">
1282
+ <input type="submit" class="rtmedia-settings-submit button button-primary button-big" value="<?php _e( 'Save Settings', 'buddypress-media' ); ?>">
1283
</div>
1284
<?php
1285
settings_fields( $option_group );
1302
</div>
1303
1304
<input type="hidden" name="rtmedia-options-save" value="true">
1305
+ <input type="submit" class="rtmedia-settings-submit button button-primary button-big" value="<?php _e( 'Save Settings', 'buddypress-media' ); ?>">
1306
</div>
1307
</div>
1308
</form><?php
1365
/* rtMedia */
1366
$tabs[] = array(
1367
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-settings' ), 'admin.php' ) ) ),
1368
+ 'title' => __( 'rtMedia', 'buddypress-media' ),
1369
+ 'name' => __( 'rtMedia', 'buddypress-media' ),
1370
'class' => ( $tab == 'rtmedia-settings' || $tab == 'rtmedia-addons' || $tab == 'rtmedia-support' || $tab == 'rtmedia-importer' ) ? $active_class : $idle_class,
1371
);
1372
1395
$tabs = array(
1396
array(
1397
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-settings' ), 'admin.php' ) ) ),
1398
+ 'name' => __( 'Settings', 'buddypress-media' ),
1399
'slug' => 'rtmedia-settings',
1400
), array(
1401
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-addons' ), 'admin.php' ) ) ),
1402
+ 'name' => __( 'Addons', 'buddypress-media' ),
1403
'slug' => 'rtmedia-addons',
1404
), array(
1405
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-themes' ), 'admin.php' ) ) ),
1406
+ 'name' => __( 'Themes', 'buddypress-media' ),
1407
'slug' => 'rtmedia-themes',
1408
), array(
1409
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-hire-us' ), 'admin.php' ) ) ),
1410
+ 'name' => __( 'Hire Us', 'buddypress-media' ),
1411
'slug' => 'rtmedia-hire-us',
1412
), array(
1413
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) ),
1414
+ 'name' => __( 'Support', 'buddypress-media' ),
1415
'slug' => 'rtmedia-support',
1416
),
1417
);
1419
if ( has_filter( 'rtmedia_license_tabs' ) || has_action( 'rtmedia_addon_license_details' ) ) {
1420
$tabs[] = array(
1421
'href' => get_admin_url( null, esc_url( add_query_arg( array( 'page' => 'rtmedia-license' ), 'admin.php' ) ) ),
1422
+ 'name' => __( 'Licenses', 'buddypress-media' ),
1423
'slug' => 'rtmedia-license',
1424
);
1425
}
1501
$tabs[ 7 ] = array(
1502
'href' => '#rtmedia-display',
1503
'icon' => 'dashicons-desktop',
1504
+ 'title' => __( 'Display', 'buddypress-media' ),
1505
+ 'name' => __( 'Display', 'buddypress-media' ),
1506
'callback' => array( 'RTMediaFormHandler', 'display_content' )
1507
);
1508
1510
$tabs[ 20 ] = array(
1511
'href' => '#rtmedia-bp',
1512
'icon' => 'dashicons-groups',
1513
+ 'title' => __( 'rtMedia BuddyPress', 'buddypress-media' ),
1514
+ 'name' => __( 'BuddyPress', 'buddypress-media' ),
1515
'callback' => array( 'RTMediaFormHandler', 'buddypress_content' ) //change it to BuddyPress Content
1516
);
1517
}
1519
$tabs[ 30 ] = array(
1520
'href' => '#rtmedia-types',
1521
'icon' => 'dashicons-editor-video',
1522
+ 'title' => __( 'rtMedia Types', 'buddypress-media' ),
1523
+ 'name' => __( 'Types', 'buddypress-media' ),
1524
'callback' => array( 'RTMediaFormHandler', 'types_content' )
1525
);
1526
1527
$tabs[ 40 ] = array(
1528
'href' => '#rtmedia-sizes',
1529
'icon' => 'dashicons-editor-expand',
1530
+ 'title' => __( 'rtMedia Sizes', 'buddypress-media' ),
1531
+ 'name' => __( 'Media Sizes', 'buddypress-media' ),
1532
'callback' => array( 'RTMediaFormHandler', 'sizes_content' )
1533
);
1534
1535
$tabs[ 50 ] = array(
1536
'href' => '#rtmedia-privacy',
1537
'icon' => 'dashicons-lock',
1538
+ 'title' => __( 'rtMedia Privacy', 'buddypress-media' ),
1539
+ 'name' => __( 'Privacy', 'buddypress-media' ),
1540
'callback' => array( 'RTMediaFormHandler', 'privacy_content' )
1541
);
1542
$tabs[ 60 ] = array(
1543
'href' => '#rtmedia-custom-css-settings',
1544
'icon' => 'dashicons-clipboard',
1545
+ 'title' => __( 'rtMedia Custom CSS', 'buddypress-media' ),
1546
+ 'name' => __( 'Custom CSS', 'buddypress-media' ),
1547
'callback' => array( 'RTMediaFormHandler', 'custom_css_content' )
1548
);
1549
1552
$tabs[] = array(
1553
'href' => '#rtmedia-general',
1554
'icon' => 'dashicons-admin-tools',
1555
+ 'title' => __( 'Other Settings', 'buddypress-media' ),
1556
+ 'name' => __( 'Other Settings', 'buddypress-media' ),
1557
'callback' => array( 'RTMediaFormHandler', 'general_content' )
1558
);
1559
1648
public function admin_sidebar() {
1649
do_action( 'rtmedia_before_default_admin_widgets' );
1650
$current_user = wp_get_current_user();
1651
+ $message = sprintf( __( 'I use @rtMediaWP http://rt.cx/rtmedia on %s', 'buddypress-media' ), home_url() );
1652
$addons = '<div id="social" class="rtm-social-share">
1653
+ <p><a href="http://twitter.com/home/?status=' . $message . '" class="button twitter" target= "_blank" title="' . __( 'Post to Twitter Now', 'buddypress-media' ) . '">' . __( 'Post to Twitter', 'buddypress-media' ) . '<span class="dashicons dashicons-twitter"></span></a></p>
1654
+ <p><a href="https://www.facebook.com/sharer/sharer.php?u=http://rtcamp.com/rtmedia/" class="button facebook" target="_blank" title="' . __( 'Share on Facebook Now', 'buddypress-media' ) . '">' . __( 'Share on Facebook', 'buddypress-media' ) . '<span class="dashicons dashicons-facebook"></span></a></p>
1655
+ <p><a href="http://wordpress.org/support/view/plugin-reviews/buddypress-media?rate=5#postform" class="button wordpress" target= "_blank" title="' . __( 'Rate rtMedia on Wordpress.org', 'buddypress-media' ) . '">' . __( 'Rate on Wordpress.org', 'buddypress-media' ) . '<span class="dashicons dashicons-wordpress"></span></a></p>
1656
+ <p><a href="' . sprintf( '%s', 'https://rtcamp.com/feed/' ) . '" class="button rss" target="_blank" title="' . __( 'Subscribe to our Feeds', 'buddypress-media' ) . '">' . __( 'Subscribe to our Feeds', 'buddypress-media' ) . '<span class="dashicons dashicons-rss"></span></a></p>
1657
</div>';
1658
1659
+ new RTMediaAdminWidget( 'spread-the-word', __( 'Spread the Word', 'buddypress-media' ), $addons );
1660
1661
$branding = '<form action="http://rtcamp.us1.list-manage1.com/subscribe/post?u=85b65c9c71e2ba3fab8cb1950&amp;id=9e8ded4470" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
1662
<div class="mc-field-group">
1663
<input type="email" value="' . $current_user->user_email . '" name="EMAIL" placeholder="Email" class="required email" id="mce-EMAIL">
1664
<input style="display:none;" type="checkbox" checked="checked" value="1" name="group[1721][1]" id="mce-group[1721]-1721-0">
1665
+ <input type="submit" value="' . __( 'Subscribe', 'buddypress-media' ) . '" name="subscribe" id="mc-embedded-subscribe" class="button">
1666
<div id="mce-responses" class="clear">
1667
<div class="response" id="mce-error-response" style="display:none"></div>
1668
<div class="response" id="mce-success-response" style="display:none"></div>
1669
</div>
1670
</div>
1671
</form>';
1672
+ new RTMediaAdminWidget( 'branding', __( 'Subscribe', 'buddypress-media' ), $branding );
1673
1674
$news = '<img src ="' . admin_url( '/images/wpspin_light.gif' ) . '" /> Loading...';
1675
+ //new RTMediaAdminWidget ( 'latest-news', __( 'Latest News', 'buddypress-media' ), $news );
1676
do_action( 'rtmedia_after_default_admin_widgets' );
1677
}
1678
1691
} else {
1692
rtmedia_update_site_option( 'rtmedia-survey', 0 );
1693
}
1694
+ _e( 'Thank you for your time.', 'buddypress-media' );
1695
die;
1696
}
1697
1703
1704
public function plugin_meta_premium_addon_link( $plugin_meta, $plugin_file, $plugin_data, $status ) {
1705
if ( plugin_basename( RTMEDIA_PATH . 'index.php' ) == $plugin_file ) {
1706
+ $plugin_meta[] = '<a href="https://rtcamp.com/rtmedia/addons/?utm_source=dashboard&#038;utm_medium=plugin&#038;utm_campaign=buddypress-media" title="' . __( 'Premium Add-ons', 'buddypress-media' ) . '">' . __( 'Premium Add-ons', 'buddypress-media' ) . '</a>';
1707
}
1708
1709
return $plugin_meta;
1719
if ( ! empty( $not_supported_image ) ) {
1720
echo '<div class="error upload-filetype-network-settings-error">
1721
<p>
1722
+ ' . sprintf( __( 'You have images enabled on rtMedia but your network allowed filetypes do not permit uploading of %s. Click <a href="%s">here</a> to change your settings manually.', 'buddypress-media' ), implode( ', ', $not_supported_image ), network_admin_url( 'settings.php#upload_filetypes' ) ) . '
1723
+ <br /><strong>' . __( 'Recommended', 'buddypress-media' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __( 'Update Network Settings Automatically', 'buddypress-media' ) . '"> <img style="display:none;" src="' . admin_url( 'images/wpspin_light.gif' ) . '" />
1724
</p>
1725
</div>';
1726
$flag = true;
1730
if ( ! in_array( 'mp4', $upload_filetypes ) ) {
1731
echo '<div class="error upload-filetype-network-settings-error">
1732
<p>
1733
+ ' . sprintf( __( 'You have video enabled on BuddyPress Media but your network allowed filetypes do not permit uploading of mp4. Click <a href="%s">here</a> to change your settings manually.', 'buddypress-media' ), network_admin_url( 'settings.php#upload_filetypes' ) ) . '
1734
+ <br /><strong>' . __( 'Recommended', 'buddypress-media' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __( 'Update Network Settings Automatically', 'buddypress-media' ) . '"> <img style="display:none;" src="' . admin_url( 'images/wpspin_light.gif' ) . '" />
1735
</p>
1736
</div>';
1737
$flag = true;
1739
}
1740
if ( isset( $rtmedia->options[ 'audio_enabled' ] ) && $rtmedia->options[ 'audio_enabled' ] ) {
1741
if ( ! in_array( 'mp3', $upload_filetypes ) ) {
1742
+ echo '<div class="error upload-filetype-network-settings-error"><p>' . sprintf( __( 'You have audio enabled on BuddyPress Media but your network allowed filetypes do not permit uploading of mp3. Click <a href="%s">here</a> to change your settings manually.', 'buddypress-media' ), network_admin_url( 'settings.php#upload_filetypes' ) ) . '
1743
+ <br /><strong>' . __( 'Recommended', 'buddypress-media' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __( 'Update Network Settings Automatically', 'buddypress-media' ) . '"> <img style="display:none;" src="' . admin_url( 'images/wpspin_light.gif' ) . '" />
1744
</p>
1745
</div>';
1746
$flag = true;
1754
jQuery( '.update-network-settings-upload-filetypes' ).prop( 'disabled', true );
1755
jQuery.post( ajaxurl, { action: 'rtmedia_correct_upload_filetypes' }, function ( response ) {
1756
if ( response ) {
1757
+ jQuery( '.upload-filetype-network-settings-error:first' ).after( '<div style="display: none;" class="updated rtmedia-network-settings-updated-successfully"><p><?php _e( 'Network settings updated successfully.', 'buddypress-media' ); ?></p></div>' )
1758
jQuery( '.upload-filetype-network-settings-error' ).remove();
1759
jQuery( '.bp-media-network-settings-updated-successfully' ).show();
1760
}
1860
jQuery.post( ajaxurl, data, function ( data ) {
1861
data = JSON.parse( data );
1862
if ( data.status === true ) {
1863
+ alert( "<?php _e( 'Video is sent to generate thumbnails.', 'buddypress-media' ) ?>" );
1864
} else {
1865
+ alert( "<?php _e( 'Video cannot be sent to generate thumbnails.', 'buddypress-media' ) ?>" );
1866
}
1867
} );
1868
}
1876
?>
1877
<script type="text/javascript">
1878
jQuery( document ).ready( function ( $ ) {
1879
+ $( 'select[name^="action"] option:last-child' ).before( '<option value="bulk_video_regenerate_thumbnails"><?php esc_attr_e( 'Regenerate Video Thumbnails', 'buddypress-media' ); ?></option>' );
1880
} );
1881
</script>
1882
<?php
1941
if ( ! $site_option || 'hide' != $site_option ) {
1942
rtmedia_update_site_option( 'rtmedia-update-template-notice-v3_8', 'show' );
1943
if ( is_dir( get_template_directory() . '/rtmedia' ) ) {
1944
+ echo '<div class="error rtmedia-update-template-notice"><p>' . __( 'Please update rtMedia template files if you have overridden the default rtMedia templates in your theme. If not, you can ignore and hide this notice.', 'buddypress-media' ) . '<a href="#" onclick="rtmedia_hide_template_override_notice()" style="float:right">' . __( 'Hide', 'buddypress-media' ) . '</a>' . ' </p></div>';
1945
?>
1946
<script type="text/javascript">
1947
function rtmedia_hide_template_override_notice() {
app/admin/RTMediaFormHandler.php CHANGED
@@ -62,7 +62,7 @@ class RTMediaFormHandler {
62
extract( $args );
63
64
if ( ! isset( $value ) ) {
65
- trigger_error( __( 'Please provide a "value" in the argument.', 'rtmedia' ) );
66
67
return;
68
}
@@ -104,7 +104,7 @@ class RTMediaFormHandler {
104
extract( $args );
105
106
if ( ! isset( $value ) ) {
107
- trigger_error( __( 'Please provide a "value" in the argument.', 'rtmedia' ) );
108
109
return;
110
}
@@ -147,7 +147,7 @@ class RTMediaFormHandler {
147
extract( $args );
148
149
if ( 2 > count( $radios ) ) {
150
- trigger_error( __( 'Need to specify atleast two radios, else use a checkbox instead', 'rtmedia' ) );
151
152
return;
153
}
@@ -199,7 +199,7 @@ class RTMediaFormHandler {
199
extract( $args );
200
201
if ( ! isset( $value ) ) {
202
- trigger_error( __( 'Please provide a "value" in the argument.', 'rtmedia' ) );
203
204
return;
205
}
@@ -234,7 +234,7 @@ class RTMediaFormHandler {
234
extract( $args );
235
236
if ( ! isset( $value ) ) {
237
- trigger_error( __( 'Please provide a "value" in the argument.', 'rtmedia' ) );
238
239
return;
240
}
@@ -282,8 +282,8 @@ class RTMediaFormHandler {
282
*/
283
static function display_render_options( $options ){
284
$radios = array();
285
- $radios['load_more'] = '<strong>' . __( 'Load More', 'rtmedia' ) .'</strong>';
286
- $radios['pagination'] = '<strong>' . __( 'Pagination', 'rtmedia' ) .'</strong>';
287
288
if ( is_plugin_active( 'regenerate-thumbnails/regenerate-thumbnails.php' ) ) {
289
$regenerate_link = admin_url( '/tools.php?page=regenerate-thumbnails' );
@@ -295,67 +295,67 @@ class RTMediaFormHandler {
295
296
$render = array(
297
'general_enableComments' => array(
298
- 'title' => __( 'Allow user to comment on uploaded media', 'rtmedia' ),
299
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
300
'args' => array(
301
'key' => 'general_enableComments',
302
'value' => $options[ 'general_enableComments' ],
303
- 'desc' => __( 'This will display the comment form and comment listing on single media pages as well as inside lightbox (if lightbox is enabled).', 'rtmedia' ),
304
),
305
'group' => '10',
306
),
307
'general_enableLightbox' => array(
308
- 'title' => __( 'Use lightbox to display media', 'rtmedia' ),
309
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
310
'args' => array(
311
'key' => 'general_enableLightbox',
312
'value' => $options[ 'general_enableLightbox' ],
313
- 'desc' => __( 'View single media in facebook style lightbox.', 'rtmedia' ),
314
),
315
'group' => '15',
316
),
317
'general_perPageMedia' => array(
318
- 'title' => __( 'Number of media per page', 'rtmedia' ),
319
'callback' => array( 'RTMediaFormHandler', 'number' ),
320
'args' => array(
321
'key' => 'general_perPageMedia',
322
'value' => $options[ 'general_perPageMedia' ],
323
'class' => array( 'rtmedia-setting-text-box' ),
324
- 'desc' => __( 'Number of media items you want to show per page on front end.', 'rtmedia' ),
325
'min' => 1,
326
),
327
'group' => '15',
328
),
329
'general_display_media' => array(
330
- 'title' => __( 'Media display pagination option', 'rtmedia' ),
331
'callback' => array( 'RTMediaFormHandler', 'radio' ),
332
'args' => array(
333
'key' => 'general_display_media',
334
'radios' => $radios,
335
'default' => $options[ 'general_display_media' ],
336
- 'desc' => __( 'Choose whether you want the load more button or pagination buttons.', 'rtmedia' ),
337
'class' => array( 'rtmedia-load-more-radio' ),
338
),
339
'group' => '15',
340
), 'general_masonry_layout' => array(
341
- 'title' => __( 'Enable', 'rtmedia' ) . ' <a href="http://masonry.desandro.com/" target="_blank">Masonry</a> ' . __( 'Cascading grid layout', 'rtmedia' ),
342
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
343
'args' => array(
344
'key' => 'general_masonry_layout',
345
'value' => $options[ 'general_masonry_layout' ],
346
- 'desc' => __( 'If you enable masonry view, it is advisable to', 'rtmedia' ) . ' <a href="' . $regenerate_link . '">regenerate thumbnail</a> ' . __( 'for masonry view.', 'rtmedia' ),
347
'class' => array( 'rtm_enable_masonry_view' ),
348
),
349
'group' => '18',
350
- 'after_content' => __( 'You might need to', 'rtmedia' ) . ' <a id="rtm-masonry-change-thumbnail-info" href="' . get_admin_url() . 'admin.php?page=rtmedia-settings#rtmedia-sizes">' . __( 'change thumbnail size', 'rtmedia' ) . '</a> ' . __( 'and uncheck the crop box for thumbnails.', 'rtmedia' ) . '<br /><br />' . __( 'To set gallery for fixed width, set image height to 0 and width as per your requirement and vice-versa.', 'rtmedia' ),
351
),
352
'general_direct_upload' => array(
353
- 'title' => __( 'Enable Direct Upload', 'rtmedia' ),
354
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
355
'args' => array(
356
'key' => 'general_direct_upload',
357
'value' => $options[ 'general_direct_upload' ],
358
- 'desc' => __( 'Uploading media directly as soon as it gets selected.', 'rtmedia' ),
359
),
360
'group' => '19',
361
),
@@ -381,10 +381,10 @@ class RTMediaFormHandler {
381
// $render_options = apply_filters('rtmedia_general_content_single_view_add_itmes',$render_options, $options);
382
$render_options = apply_filters( 'rtmedia_display_content_add_itmes', $render_options, $options );
383
$general_group = array();
384
- $general_group[10] = __( 'Single Media View', 'rtmedia' );
385
- $general_group[15] = __( 'List Media View', 'rtmedia' );
386
- $general_group[18] = __( 'Masonry View', 'rtmedia' );
387
- $general_group[19] = __( 'Direct Upload', 'rtmedia' );
388
$general_group = apply_filters( 'rtmedia_display_content_groups', $general_group );
389
ksort( $general_group );
390
self::render_tab_content( $render_options, $general_group, 20 );
@@ -402,56 +402,56 @@ class RTMediaFormHandler {
402
static function render_general_content( $options ) {
403
$render = array(
404
'general_AllowUserData' => array(
405
- 'title' => __( 'Allow usage data tracking', 'rtmedia' ),
406
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
407
'args' => array(
408
'key' => 'general_AllowUserData',
409
'value' => $options[ 'general_AllowUserData' ],
410
- 'desc' => __( 'To make rtMedia better compatible with your sites, you can help the rtMedia team learn what themes and plugins you are using. No private information about your setup will be sent during tracking.', 'rtmedia' ),
411
)
412
),
413
'general_showAdminMenu' => array(
414
- 'title' => __( 'Admin bar menu integration', 'rtmedia' ),
415
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
416
'args' => array(
417
'key' => 'general_showAdminMenu',
418
'value' => $options[ 'general_showAdminMenu' ],
419
- 'desc' => __( 'Add rtMedia menu to WordPress admin bar for easy access to settings and moderation page (if enabled).', 'rtmedia' ),
420
),
421
'group' => 10,
422
), //
423
'rtmedia_add_linkback' => array(
424
- 'title' => __( 'Add a link to rtMedia in footer', 'rtmedia' ),
425
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
426
'args' => array(
427
'key' => 'rtmedia_add_linkback',
428
'value' => $options[ 'rtmedia_add_linkback' ],
429
- 'desc' => __( 'Help us promote rtMedia.', 'rtmedia' ),
430
),
431
'group' => 100,
432
), //
433
'rtmedia_affiliate_id' => array(
434
- 'title' => __( 'Also add my affiliate-id to rtMedia footer link', 'rtmedia' ),
435
'callback' => array( 'RTMediaFormHandler', 'textbox' ),
436
'args' => array(
437
'key' => 'rtmedia_affiliate_id',
438
'value' => $options[ 'rtmedia_affiliate_id' ],
439
- 'desc' => __( 'Add your affiliate-id along with footer link and get rewarded by our affiliation program.', 'rtmedia' ),
440
),
441
'group' => 100,
442
'depends' => 'rtmedia_add_linkback',
443
- 'after_content' => __( 'Signup for', 'rtmedia' ) . ' rtMedia ' . __( 'affiliate program', 'rtmedia' ) . ' <a href="https://rtcamp.com/affiliates">' . __( 'here', 'rtmedia' ) . '</a>',
444
), //
445
'rtmedia_enable_api' => array(
446
- 'title' => __( 'Enable JSON API', 'rtmedia' ),
447
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
448
'args' => array(
449
'key' => 'rtmedia_enable_api',
450
'value' => $options[ 'rtmedia_enable_api' ],
451
- 'desc' => __( 'This will allow handling API requests for rtMedia sent through any mobile app.', 'rtmedia' ),
452
),
453
'group' => 80,
454
- 'after_content' => __( 'You can refer to the API document from', 'rtmedia' ) . ' <a href="http://docs.rtcamp.com/rtmedia/developers/json-api.html">' . __( 'here', 'rtmedia' ) . '</a>',
455
), //
456
);
457
@@ -474,10 +474,10 @@ class RTMediaFormHandler {
474
$render_options = self::render_general_content( $options );
475
$render_options = apply_filters( 'rtmedia_general_content_add_itmes', $render_options, $options );
476
$general_group = array();
477
- $general_group[10] = __( 'Admin Settings' ,'rtmedia' );
478
- $general_group[80] = __( 'API Settings', 'rtmedia' );
479
- $general_group[90] = __( 'Miscellaneous', 'rtmedia' );
480
- $general_group[100] = __( 'Footer Link', 'rtmedia' );
481
$general_group = apply_filters( 'rtmedia_general_content_groups', $general_group );
482
ksort( $general_group );
483
$html = '';
@@ -557,7 +557,7 @@ class RTMediaFormHandler {
557
<?php do_action( 'rtmedia_media_type_setting_message' ); ?>
558
559
<h3 class="rtm-option-title">
560
- <?php _e( 'Media Types Settings', 'rtmedia' ); ?>
561
</h3>
562
563
<table class="form-table">
@@ -565,14 +565,14 @@ class RTMediaFormHandler {
565
<?php do_action( 'rtmedia_type_settings_before_heading' ); ?>
566
567
<tr>
568
- <th><strong><?php _e( 'Media Type', 'rtmedia' ) ?></strong></th>
569
570
<th>
571
572
<span class="rtm-tooltip bottom">
573
- <strong class="rtm-title"><?php _e( 'Allow Upload', 'rtmedia' ); ?></strong>
574
<span class="rtm-tip-top">
575
- <?php _e( 'Allows you to upload a particular media type on your post.', 'rtmedia' ); ?>
576
</span>
577
</span>
578
</th>
@@ -580,9 +580,9 @@ class RTMediaFormHandler {
580
<th>
581
582
<span class="rtm-tooltip bottom">
583
- <strong class="rtm-title"><?php _e( 'Set Featured', 'rtmedia' ); ?></strong>
584
<span class="rtm-tip-top">
585
- <?php _e( 'Place a specific media as a featured content on the post.', 'rtmedia' ); ?>
586
</span>
587
</span>
588
</th>
@@ -624,7 +624,7 @@ class RTMediaFormHandler {
624
<span class="rtm-tooltip rtm-extensions">
625
<i class="dashicons dashicons-info rtmicon"></i>
626
<span class="rtm-tip">
627
- <strong><?php echo __( 'File Extensions', 'rtmedia' ); ?></strong><br />
628
<hr />
629
<?php echo $extensions; ?>
630
</span>
@@ -682,11 +682,11 @@ class RTMediaFormHandler {
682
$data = explode( '_', $key );
683
if ( ! isset( $render[ $data[ 1 ] ] ) ) {
684
$render[ $data[ 1 ] ] = array();
685
- $render[ $data[ 1 ] ][ 'title' ] = __( $data[ 1 ], 'rtmedia' );
686
}
687
if ( ! isset( $render[ $data[ 1 ] ][ $data[ 2 ] ] ) ) {
688
$render[ $data[ 1 ] ][ $data[ 2 ] ] = array();
689
- $render[ $data[ 1 ] ][ $data[ 2 ] ][ 'title' ] = __( $data[ 2 ], 'rtmedia' );
690
}
691
692
$render[ $data[ 1 ] ][ $data[ 2 ] ][ $data[ 3 ] ] = $value;
@@ -712,16 +712,16 @@ class RTMediaFormHandler {
712
713
<div class="rtm-option-wrapper rtm-img-size-setting">
714
<h3 class="rtm-option-title">
715
- <?php _e( 'Media Size Settings', 'rtmedia' ); ?>
716
</h3>
717
718
<table class="form-table">
719
<tr>
720
- <th><strong><?php _e( 'Category', 'rtmedia' ) ?></strong></th>
721
- <th><strong><?php _e( 'Entity', 'rtmedia' ); ?></strong></th>
722
- <th><strong><?php _e( 'Width', 'rtmedia' ); ?></strong></th>
723
- <th><strong><?php _e( 'Height', 'rtmedia' ); ?></strong></th>
724
- <th><strong><?php _e( 'Crop', 'rtmedia' ); ?></strong></th>
725
</tr>
726
727
<?php
@@ -774,13 +774,13 @@ class RTMediaFormHandler {
774
775
if ( isset( $rtmedia_encoding_api_key ) && $rtmedia_encoding_api_key != '' && $rtmedia_encoding_api_key ) {
776
$render_video_thumb = array(
777
- 'title' => __( 'Number of thumbnails to generate on video upload', 'rtmedia' ),
778
'callback' => array( 'RTMediaFormHandler', 'number' ),
779
'args' => array(
780
'key' => 'general_videothumbs',
781
'value' => $options[ 'general_videothumbs' ],
782
'class' => array( 'rtmedia-setting-text-box' ),
783
- 'desc' => __( ' If you choose more than 1 thumbnail, your users will be able to change the thumbnail by going to video \'edit\' section. Maximum value is 10.', 'rtmedia' ),
784
'min' => 1,
785
'max' => 10,
786
)
@@ -788,20 +788,20 @@ class RTMediaFormHandler {
788
?>
789
790
<div class="rtm-option-wrapper">
791
- <?php self::render_option_group( __( 'Encoding Settings', 'rtmedia' ) ); ?>
792
<?php self::render_option_content( $render_video_thumb ); ?>
793
</div>
794
<?php
795
}
796
797
$render_jpeg_image_quality = array(
798
- 'title' => __( 'JPEG/JPG image quality (1-100)', 'rtmedia' ),
799
'callback' => array( 'RTMediaFormHandler', 'number' ),
800
'args' => array(
801
'key' => 'general_jpeg_image_quality',
802
'value' => $options[ 'general_jpeg_image_quality' ],
803
'class' => array( 'rtmedia-setting-text-box' ),
804
- 'desc' => __( 'Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality.', 'rtmedia' ),
805
'min' => 1,
806
'max' => 100,
807
)
@@ -809,7 +809,7 @@ class RTMediaFormHandler {
809
?>
810
811
<div class="rtm-option-wrapper">
812
- <?php self::render_option_group( __( 'Image Quality', 'rtmedia' ) ); ?>
813
<?php self::render_option_content( $render_jpeg_image_quality ); ?>
814
</div>
815
@@ -831,7 +831,7 @@ class RTMediaFormHandler {
831
$render_data = self::custom_css_render_options( $options );
832
833
$render_groups = array();
834
- $render_groups[ 10 ] = __( 'Custom CSS settings', 'rtmedia' );
835
836
self::render_tab_content( $render_data, $render_groups, 10 );
837
}
@@ -850,24 +850,24 @@ class RTMediaFormHandler {
850
851
$render = array(
852
'disable_styles' => array(
853
- 'title' => __( 'rtMedia default styles', 'rtmedia' ),
854
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
855
'args' => array(
856
'id' => 'rtmedia-disable-styles',
857
'key' => 'styles_enabled',
858
'value' => $options[ 'styles_enabled' ],
859
- 'desc' => __( 'Load default rtMedia styles. You need to write your own style for rtMedia if you disable it.', 'rtmedia' ),
860
),
861
'group' => 10,
862
),
863
'custom_styles' => array(
864
- 'title' => __( 'Paste your CSS code', 'rtmedia' ),
865
'callback' => array( 'RTMediaFormHandler', 'textarea' ),
866
'args' => array(
867
'id' => 'rtmedia-custom-css',
868
'key' => 'styles_custom',
869
'value' => stripcslashes( $options[ 'styles_custom' ] ),
870
- 'desc' => __( 'Custom rtMedia CSS container', 'rtmedia' ),
871
),
872
'group' => 10,
873
),
@@ -890,39 +890,39 @@ class RTMediaFormHandler {
890
891
$render = array(
892
'enable' => array(
893
- 'title' => __( 'Enable privacy', 'rtmedia' ),
894
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
895
'args' => array(
896
'id' => 'rtmedia-privacy-enable',
897
'key' => 'privacy_enabled',
898
'value' => $options[ 'privacy_enabled' ],
899
- 'desc' => __( 'Enable privacy in rtMedia', 'rtmedia' ),
900
),
901
'group' => 10,
902
),
903
'default' => array(
904
- 'title' => __( 'Default privacy', 'rtmedia' ),
905
'callback' => array( 'RTMediaFormHandler', 'radio' ),
906
'args' => array(
907
'key' => 'privacy_default',
908
'radios' => $rtmedia->privacy_settings[ 'levels' ],
909
'default' => $options[ 'privacy_default' ],
910
- 'desc' => __( 'Set default privacy for media', 'rtmedia' ),
911
),
912
'group' => 10,
913
'depends' => 'privacy_enabled'
914
),
915
'user_override' => array(
916
- 'title' => __( 'Allow users to set privacy for their content', 'rtmedia' ),
917
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
918
'args' => array(
919
'key' => 'privacy_userOverride',
920
'value' => $options[ 'privacy_userOverride' ],
921
- 'desc' => __( 'If you choose this, users will be able to change privacy of their own uploads.', 'rtmedia' ),
922
),
923
'group' => 10,
924
'depends' => 'privacy_enabled',
925
- 'after_content' => __( 'For group uploads, BuddyPress groups privacy is used.', 'rtmedia' ),
926
),
927
);
928
@@ -964,56 +964,56 @@ class RTMediaFormHandler {
964
static function buddypress_render_options( $options ) {
965
$render = array(
966
'rtmedia-enable-on-profile' => array(
967
- 'title' => __( 'Enable media in profile', 'rtmedia' ),
968
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
969
'args' => array(
970
'key' => 'buddypress_enableOnProfile',
971
'value' => $options[ 'buddypress_enableOnProfile' ],
972
- 'desc' => __( 'Enable Media on BuddyPress Profile', 'rtmedia' ),
973
),
974
'group' => 10,
975
),
976
'rtmedia-enable-on-group' => array(
977
- 'title' => __( 'Enable media in group', 'rtmedia' ),
978
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
979
'args' => array(
980
'key' => 'buddypress_enableOnGroup',
981
'value' => $options[ 'buddypress_enableOnGroup' ],
982
- 'desc' => __( 'Enable Media on BuddyPress Groups', 'rtmedia' ),
983
),
984
'group' => 10,
985
),
986
'rtmedia-enable-on-activity' => array(
987
- 'title' => __( 'Allow upload from activity stream', 'rtmedia' ),
988
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
989
'args' => array(
990
'key' => 'buddypress_enableOnActivity',
991
'value' => $options[ 'buddypress_enableOnActivity' ],
992
- 'desc' => __( 'Allow upload using status update box present on activity stream page', 'rtmedia' ),
993
'id' => 'rtmedia-bp-enable-activity',
994
),
995
'group' => 10,
996
),
997
'rtmedia-activity-feed-limit' => array(
998
- 'title' => __( 'Number of media items to show in activity stream', 'rtmedia' ),
999
'callback' => array( 'RTMediaFormHandler', 'number' ),
1000
'args' => array(
1001
'key' => 'buddypress_limitOnActivity',
1002
'value' => $options[ 'buddypress_limitOnActivity' ],
1003
- 'desc' => __( 'With bulk uploads activity, the stream may get flooded. You can control the maximum number of media items or files per activity. This limit will not affect the actual number of uploads. This is only for display. <em>0</em> means unlimited.', 'rtmedia' ),
1004
'class' => array( 'rtmedia-setting-text-box rtmedia-bp-activity-setting' ),
1005
'min' => 0,
1006
),
1007
'group' => 10,
1008
),
1009
'general_enableAlbums' => array(
1010
- 'title' => __( 'Organize media into albums', 'rtmedia' ),
1011
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1012
'args' => array(
1013
'id' => 'rtmedia-album-enable',
1014
'key' => 'general_enableAlbums',
1015
'value' => $options[ 'general_enableAlbums' ],
1016
- 'desc' => __( 'This will add \'album\' tab to BuddyPress profile and group depending on the ^above^ settings.', 'rtmedia' ),
1017
),
1018
'group' => 50,
1019
),
62
extract( $args );
63
64
if ( ! isset( $value ) ) {
65
+ trigger_error( __( 'Please provide a "value" in the argument.', 'buddypress-media' ) );
66
67
return;
68
}
104
extract( $args );
105
106
if ( ! isset( $value ) ) {
107
+ trigger_error( __( 'Please provide a "value" in the argument.', 'buddypress-media' ) );
108
109
return;
110
}
147
extract( $args );
148
149
if ( 2 > count( $radios ) ) {
150
+ trigger_error( __( 'Need to specify atleast two radios, else use a checkbox instead', 'buddypress-media' ) );
151
152
return;
153
}
199
extract( $args );
200
201
if ( ! isset( $value ) ) {
202
+ trigger_error( __( 'Please provide a "value" in the argument.', 'buddypress-media' ) );
203
204
return;
205
}
234
extract( $args );
235
236
if ( ! isset( $value ) ) {
237
+ trigger_error( __( 'Please provide a "value" in the argument.', 'buddypress-media' ) );
238
239
return;
240
}
282
*/
283
static function display_render_options( $options ){
284
$radios = array();
285
+ $radios['load_more'] = '<strong>' . __( 'Load More', 'buddypress-media' ) .'</strong>';
286
+ $radios['pagination'] = '<strong>' . __( 'Pagination', 'buddypress-media' ) .'</strong>';
287
288
if ( is_plugin_active( 'regenerate-thumbnails/regenerate-thumbnails.php' ) ) {
289
$regenerate_link = admin_url( '/tools.php?page=regenerate-thumbnails' );
295
296
$render = array(
297
'general_enableComments' => array(
298
+ 'title' => __( 'Allow user to comment on uploaded media', 'buddypress-media' ),
299
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
300
'args' => array(
301
'key' => 'general_enableComments',
302
'value' => $options[ 'general_enableComments' ],
303
+ 'desc' => __( 'This will display the comment form and comment listing on single media pages as well as inside lightbox (if lightbox is enabled).', 'buddypress-media' ),
304
),
305
'group' => '10',
306
),
307
'general_enableLightbox' => array(
308
+ 'title' => __( 'Use lightbox to display media', 'buddypress-media' ),
309
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
310
'args' => array(
311
'key' => 'general_enableLightbox',
312
'value' => $options[ 'general_enableLightbox' ],
313
+ 'desc' => __( 'View single media in facebook style lightbox.', 'buddypress-media' ),
314
),
315
'group' => '15',
316
),
317
'general_perPageMedia' => array(
318
+ 'title' => __( 'Number of media per page', 'buddypress-media' ),
319
'callback' => array( 'RTMediaFormHandler', 'number' ),
320
'args' => array(
321
'key' => 'general_perPageMedia',
322
'value' => $options[ 'general_perPageMedia' ],
323
'class' => array( 'rtmedia-setting-text-box' ),
324
+ 'desc' => __( 'Number of media items you want to show per page on front end.', 'buddypress-media' ),
325
'min' => 1,
326
),
327
'group' => '15',
328
),
329
'general_display_media' => array(
330
+ 'title' => __( 'Media display pagination option', 'buddypress-media' ),
331
'callback' => array( 'RTMediaFormHandler', 'radio' ),
332
'args' => array(
333
'key' => 'general_display_media',
334
'radios' => $radios,
335
'default' => $options[ 'general_display_media' ],
336
+ 'desc' => __( 'Choose whether you want the load more button or pagination buttons.', 'buddypress-media' ),
337
'class' => array( 'rtmedia-load-more-radio' ),
338
),
339
'group' => '15',
340
), 'general_masonry_layout' => array(
341
+ 'title' => __( 'Enable', 'buddypress-media' ) . ' <a href="http://masonry.desandro.com/" target="_blank">Masonry</a> ' . __( 'Cascading grid layout', 'buddypress-media' ),
342
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
343
'args' => array(
344
'key' => 'general_masonry_layout',
345
'value' => $options[ 'general_masonry_layout' ],
346
+ 'desc' => __( 'If you enable masonry view, it is advisable to', 'buddypress-media' ) . ' <a href="' . $regenerate_link . '">regenerate thumbnail</a> ' . __( 'for masonry view.', 'buddypress-media' ),
347
'class' => array( 'rtm_enable_masonry_view' ),
348
),
349
'group' => '18',
350
+ 'after_content' => __( 'You might need to', 'buddypress-media' ) . ' <a id="rtm-masonry-change-thumbnail-info" href="' . get_admin_url() . 'admin.php?page=rtmedia-settings#rtmedia-sizes">' . __( 'change thumbnail size', 'buddypress-media' ) . '</a> ' . __( 'and uncheck the crop box for thumbnails.', 'buddypress-media' ) . '<br /><br />' . __( 'To set gallery for fixed width, set image height to 0 and width as per your requirement and vice-versa.', 'buddypress-media' ),
351
),
352
'general_direct_upload' => array(
353
+ 'title' => __( 'Enable Direct Upload', 'buddypress-media' ),
354
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
355
'args' => array(
356
'key' => 'general_direct_upload',
357
'value' => $options[ 'general_direct_upload' ],
358
+ 'desc' => __( 'Uploading media directly as soon as it gets selected.', 'buddypress-media' ),
359
),
360
'group' => '19',
361
),
381
// $render_options = apply_filters('rtmedia_general_content_single_view_add_itmes',$render_options, $options);
382
$render_options = apply_filters( 'rtmedia_display_content_add_itmes', $render_options, $options );
383
$general_group = array();
384
+ $general_group[10] = __( 'Single Media View', 'buddypress-media' );
385
+ $general_group[15] = __( 'List Media View', 'buddypress-media' );
386
+ $general_group[18] = __( 'Masonry View', 'buddypress-media' );
387
+ $general_group[19] = __( 'Direct Upload', 'buddypress-media' );
388
$general_group = apply_filters( 'rtmedia_display_content_groups', $general_group );
389
ksort( $general_group );
390
self::render_tab_content( $render_options, $general_group, 20 );
402
static function render_general_content( $options ) {
403
$render = array(
404
'general_AllowUserData' => array(
405
+ 'title' => __( 'Allow usage data tracking', 'buddypress-media' ),
406
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
407
'args' => array(
408
'key' => 'general_AllowUserData',
409
'value' => $options[ 'general_AllowUserData' ],
410
+ 'desc' => __( 'To make rtMedia better compatible with your sites, you can help the rtMedia team learn what themes and plugins you are using. No private information about your setup will be sent during tracking.', 'buddypress-media' ),
411
)
412
),
413
'general_showAdminMenu' => array(
414
+ 'title' => __( 'Admin bar menu integration', 'buddypress-media' ),
415
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
416
'args' => array(
417
'key' => 'general_showAdminMenu',
418
'value' => $options[ 'general_showAdminMenu' ],
419
+ 'desc' => __( 'Add rtMedia menu to WordPress admin bar for easy access to settings and moderation page (if enabled).', 'buddypress-media' ),
420
),
421
'group' => 10,
422
), //
423
'rtmedia_add_linkback' => array(
424
+ 'title' => __( 'Add a link to rtMedia in footer', 'buddypress-media' ),
425
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
426
'args' => array(
427
'key' => 'rtmedia_add_linkback',
428
'value' => $options[ 'rtmedia_add_linkback' ],
429
+ 'desc' => __( 'Help us promote rtMedia.', 'buddypress-media' ),
430
),
431
'group' => 100,
432
), //
433
'rtmedia_affiliate_id' => array(
434
+ 'title' => __( 'Also add my affiliate-id to rtMedia footer link', 'buddypress-media' ),
435
'callback' => array( 'RTMediaFormHandler', 'textbox' ),
436
'args' => array(
437
'key' => 'rtmedia_affiliate_id',
438
'value' => $options[ 'rtmedia_affiliate_id' ],
439
+ 'desc' => __( 'Add your affiliate-id along with footer link and get rewarded by our affiliation program.', 'buddypress-media' ),
440
),
441
'group' => 100,
442
'depends' => 'rtmedia_add_linkback',
443
+ 'after_content' => __( 'Signup for', 'buddypress-media' ) . ' rtMedia ' . __( 'affiliate program', 'buddypress-media' ) . ' <a href="https://rtcamp.com/affiliates">' . __( 'here', 'buddypress-media' ) . '</a>',
444
), //
445
'rtmedia_enable_api' => array(
446
+ 'title' => __( 'Enable JSON API', 'buddypress-media' ),
447
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
448
'args' => array(
449
'key' => 'rtmedia_enable_api',
450
'value' => $options[ 'rtmedia_enable_api' ],
451
+ 'desc' => __( 'This will allow handling API requests for rtMedia sent through any mobile app.', 'buddypress-media' ),
452
),
453
'group' => 80,
454
+ 'after_content' => __( 'You can refer to the API document from', 'buddypress-media' ) . ' <a href="http://docs.rtcamp.com/rtmedia/developers/json-api.html">' . __( 'here', 'buddypress-media' ) . '</a>',
455
), //
456
);
457
474
$render_options = self::render_general_content( $options );
475
$render_options = apply_filters( 'rtmedia_general_content_add_itmes', $render_options, $options );
476
$general_group = array();
477
+ $general_group[10] = __( 'Admin Settings' ,'buddypress-media' );
478
+ $general_group[80] = __( 'API Settings', 'buddypress-media' );
479
+ $general_group[90] = __( 'Miscellaneous', 'buddypress-media' );
480
+ $general_group[100] = __( 'Footer Link', 'buddypress-media' );
481
$general_group = apply_filters( 'rtmedia_general_content_groups', $general_group );
482
ksort( $general_group );
483
$html = '';
557
<?php do_action( 'rtmedia_media_type_setting_message' ); ?>
558
559
<h3 class="rtm-option-title">
560
+ <?php _e( 'Media Types Settings', 'buddypress-media' ); ?>
561
</h3>
562
563
<table class="form-table">
565
<?php do_action( 'rtmedia_type_settings_before_heading' ); ?>
566
567
<tr>
568
+ <th><strong><?php _e( 'Media Type', 'buddypress-media' ) ?></strong></th>
569
570
<th>
571
572
<span class="rtm-tooltip bottom">
573
+ <strong class="rtm-title"><?php _e( 'Allow Upload', 'buddypress-media' ); ?></strong>
574
<span class="rtm-tip-top">
575
+ <?php _e( 'Allows you to upload a particular media type on your post.', 'buddypress-media' ); ?>
576
</span>
577
</span>
578
</th>
580
<th>
581
582
<span class="rtm-tooltip bottom">
583
+ <strong class="rtm-title"><?php _e( 'Set Featured', 'buddypress-media' ); ?></strong>
584
<span class="rtm-tip-top">
585
+ <?php _e( 'Place a specific media as a featured content on the post.', 'buddypress-media' ); ?>
586
</span>
587
</span>
588
</th>
624
<span class="rtm-tooltip rtm-extensions">
625
<i class="dashicons dashicons-info rtmicon"></i>
626
<span class="rtm-tip">
627
+ <strong><?php echo __( 'File Extensions', 'buddypress-media' ); ?></strong><br />
628
<hr />
629
<?php echo $extensions; ?>
630
</span>
682
$data = explode( '_', $key );
683
if ( ! isset( $render[ $data[ 1 ] ] ) ) {
684
$render[ $data[ 1 ] ] = array();
685
+ $render[ $data[ 1 ] ][ 'title' ] = __( $data[ 1 ], 'buddypress-media' );
686
}
687
if ( ! isset( $render[ $data[ 1 ] ][ $data[ 2 ] ] ) ) {
688
$render[ $data[ 1 ] ][ $data[ 2 ] ] = array();
689
+ $render[ $data[ 1 ] ][ $data[ 2 ] ][ 'title' ] = __( $data[ 2 ], 'buddypress-media' );
690
}
691
692
$render[ $data[ 1 ] ][ $data[ 2 ] ][ $data[ 3 ] ] = $value;
712
713
<div class="rtm-option-wrapper rtm-img-size-setting">
714
<h3 class="rtm-option-title">
715
+ <?php _e( 'Media Size Settings', 'buddypress-media' ); ?>
716
</h3>
717
718
<table class="form-table">
719
<tr>
720
+ <th><strong><?php _e( 'Category', 'buddypress-media' ) ?></strong></th>
721
+ <th><strong><?php _e( 'Entity', 'buddypress-media' ); ?></strong></th>
722
+ <th><strong><?php _e( 'Width', 'buddypress-media' ); ?></strong></th>
723
+ <th><strong><?php _e( 'Height', 'buddypress-media' ); ?></strong></th>
724
+ <th><strong><?php _e( 'Crop', 'buddypress-media' ); ?></strong></th>
725
</tr>
726
727
<?php
774
775
if ( isset( $rtmedia_encoding_api_key ) && $rtmedia_encoding_api_key != '' && $rtmedia_encoding_api_key ) {
776
$render_video_thumb = array(
777
+ 'title' => __( 'Number of thumbnails to generate on video upload', 'buddypress-media' ),
778
'callback' => array( 'RTMediaFormHandler', 'number' ),
779
'args' => array(
780
'key' => 'general_videothumbs',
781
'value' => $options[ 'general_videothumbs' ],
782
'class' => array( 'rtmedia-setting-text-box' ),
783
+ 'desc' => __( ' If you choose more than 1 thumbnail, your users will be able to change the thumbnail by going to video \'edit\' section. Maximum value is 10.', 'buddypress-media' ),
784
'min' => 1,
785
'max' => 10,
786
)
788
?>
789
790
<div class="rtm-option-wrapper">
791
+ <?php self::render_option_group( __( 'Encoding Settings', 'buddypress-media' ) ); ?>
792
<?php self::render_option_content( $render_video_thumb ); ?>
793
</div>
794
<?php
795
}
796
797
$render_jpeg_image_quality = array(
798
+ 'title' => __( 'JPEG/JPG image quality (1-100)', 'buddypress-media' ),
799
'callback' => array( 'RTMediaFormHandler', 'number' ),
800
'args' => array(
801
'key' => 'general_jpeg_image_quality',
802
'value' => $options[ 'general_jpeg_image_quality' ],
803
'class' => array( 'rtmedia-setting-text-box' ),
804
+ 'desc' => __( 'Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality.', 'buddypress-media' ),
805
'min' => 1,
806
'max' => 100,
807
)
809
?>
810
811
<div class="rtm-option-wrapper">
812
+ <?php self::render_option_group( __( 'Image Quality', 'buddypress-media' ) ); ?>
813
<?php self::render_option_content( $render_jpeg_image_quality ); ?>
814
</div>
815
831
$render_data = self::custom_css_render_options( $options );
832
833
$render_groups = array();
834
+ $render_groups[ 10 ] = __( 'Custom CSS settings', 'buddypress-media' );
835
836
self::render_tab_content( $render_data, $render_groups, 10 );
837
}
850
851
$render = array(
852
'disable_styles' => array(
853
+ 'title' => __( 'rtMedia default styles', 'buddypress-media' ),
854
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
855
'args' => array(
856
'id' => 'rtmedia-disable-styles',
857
'key' => 'styles_enabled',
858
'value' => $options[ 'styles_enabled' ],
859
+ 'desc' => __( 'Load default rtMedia styles. You need to write your own style for rtMedia if you disable it.', 'buddypress-media' ),
860
),
861
'group' => 10,
862
),
863
'custom_styles' => array(
864
+ 'title' => __( 'Paste your CSS code', 'buddypress-media' ),
865
'callback' => array( 'RTMediaFormHandler', 'textarea' ),
866
'args' => array(
867
'id' => 'rtmedia-custom-css',
868
'key' => 'styles_custom',
869
'value' => stripcslashes( $options[ 'styles_custom' ] ),
870
+ 'desc' => __( 'Custom rtMedia CSS container', 'buddypress-media' ),
871
),
872
'group' => 10,
873
),
890
891
$render = array(
892
'enable' => array(
893
+ 'title' => __( 'Enable privacy', 'buddypress-media' ),
894
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
895
'args' => array(
896
'id' => 'rtmedia-privacy-enable',
897
'key' => 'privacy_enabled',
898
'value' => $options[ 'privacy_enabled' ],
899
+ 'desc' => __( 'Enable privacy in rtMedia', 'buddypress-media' ),
900
),
901
'group' => 10,
902
),
903
'default' => array(
904
+ 'title' => __( 'Default privacy', 'buddypress-media' ),
905
'callback' => array( 'RTMediaFormHandler', 'radio' ),
906
'args' => array(
907
'key' => 'privacy_default',
908
'radios' => $rtmedia->privacy_settings[ 'levels' ],
909
'default' => $options[ 'privacy_default' ],
910
+ 'desc' => __( 'Set default privacy for media', 'buddypress-media' ),
911
),
912
'group' => 10,
913
'depends' => 'privacy_enabled'
914
),
915
'user_override' => array(
916
+ 'title' => __( 'Allow users to set privacy for their content', 'buddypress-media' ),
917
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
918
'args' => array(
919
'key' => 'privacy_userOverride',
920
'value' => $options[ 'privacy_userOverride' ],
921
+ 'desc' => __( 'If you choose this, users will be able to change privacy of their own uploads.', 'buddypress-media' ),
922
),
923
'group' => 10,
924
'depends' => 'privacy_enabled',
925
+ 'after_content' => __( 'For group uploads, BuddyPress groups privacy is used.', 'buddypress-media' ),
926
),
927
);
928
964
static function buddypress_render_options( $options ) {
965
$render = array(
966
'rtmedia-enable-on-profile' => array(
967
+ 'title' => __( 'Enable media in profile', 'buddypress-media' ),
968
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
969
'args' => array(
970
'key' => 'buddypress_enableOnProfile',
971
'value' => $options[ 'buddypress_enableOnProfile' ],
972
+ 'desc' => __( 'Enable Media on BuddyPress Profile', 'buddypress-media' ),
973
),
974
'group' => 10,
975
),
976
'rtmedia-enable-on-group' => array(
977
+ 'title' => __( 'Enable media in group', 'buddypress-media' ),
978
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
979
'args' => array(
980
'key' => 'buddypress_enableOnGroup',
981
'value' => $options[ 'buddypress_enableOnGroup' ],
982
+ 'desc' => __( 'Enable Media on BuddyPress Groups', 'buddypress-media' ),
983
),
984
'group' => 10,
985
),
986
'rtmedia-enable-on-activity' => array(
987
+ 'title' => __( 'Allow upload from activity stream', 'buddypress-media' ),
988
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
989
'args' => array(
990
'key' => 'buddypress_enableOnActivity',
991
'value' => $options[ 'buddypress_enableOnActivity' ],
992
+ 'desc' => __( 'Allow upload using status update box present on activity stream page', 'buddypress-media' ),
993
'id' => 'rtmedia-bp-enable-activity',
994
),
995
'group' => 10,
996
),
997
'rtmedia-activity-feed-limit' => array(
998
+ 'title' => __( 'Number of media items to show in activity stream', 'buddypress-media' ),
999
'callback' => array( 'RTMediaFormHandler', 'number' ),
1000
'args' => array(
1001
'key' => 'buddypress_limitOnActivity',
1002
'value' => $options[ 'buddypress_limitOnActivity' ],
1003
+ 'desc' => __( 'With bulk uploads activity, the stream may get flooded. You can control the maximum number of media items or files per activity. This limit will not affect the actual number of uploads. This is only for display. <em>0</em> means unlimited.', 'buddypress-media' ),
1004
'class' => array( 'rtmedia-setting-text-box rtmedia-bp-activity-setting' ),
1005
'min' => 0,
1006
),
1007
'group' => 10,
1008
),
1009
'general_enableAlbums' => array(
1010
+ 'title' => __( 'Organize media into albums', 'buddypress-media' ),
1011
'callback' => array( 'RTMediaFormHandler', 'checkbox' ),
1012
'args' => array(
1013
'id' => 'rtmedia-album-enable',
1014
'key' => 'general_enableAlbums',
1015
'value' => $options[ 'general_enableAlbums' ],
1016
+ 'desc' => __( 'This will add \'album\' tab to BuddyPress profile and group depending on the ^above^ settings.', 'buddypress-media' ),
1017
),
1018
'group' => 50,
1019
),
app/helper/RTMediaAddon.php CHANGED
@@ -76,16 +76,16 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
76
$tabs = array();
77
global $rtmedia_admin;
78
$tabs[] = array(
79
- 'title' => __( 'Plugins', 'rtmedia' ),
80
- 'name' => __( 'Plugins', 'rtmedia' ),
81
'href' => '#rtm-plugins',
82
'icon' => 'dashicons-admin-plugins',
83
'callback' => array( $this, 'plugins_content' )
84
);
85
86
$tabs[] = array(
87
- 'title' => __( 'Audio/Video Encoding', 'rtmedia' ),
88
- 'name' => __( 'Audio/Video Encoding', 'rtmedia' ),
89
'href' => '#rtm-services',
90
'icon' => 'dashicons-playlist-video',
91
'callback' => array( $rtmedia_admin->rtmedia_encoding, 'encoding_service_intro' )
@@ -108,20 +108,20 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
108
$rtcamp_upload_url = 'https://rtcamp.r.worldssl.net/wp-content/uploads/';
109
$addons = array(
110
array(
111
- 'title' => __( 'SEO', 'rtmedia' ),
112
'img_src' => $rtcamp_upload_url . 'edd/2015/08/seo-xml.png',
113
'product_link' => 'https://rtcamp.com/products/rtmedia-seo/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
114
- 'desc' => '<p>' . __( 'Generate an XML sitemap for all the public media files uploaded via rtMedia plugin. These sitemaps can be useful to index search engine to improve website SEO.', 'rtmedia' ) . '</p>',
115
'price' => '$29',
116
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
117
'buy_now' => 'https://rtcamp.com/products/rtmedia-seo/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
118
'category' => 'general',
119
'purchased' => ( defined( 'RTMEDIA_SEO_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-seo/index.php' ) ) ? true : false,
120
),array(
121
- 'title' => __( 'Moderation', 'rtmedia' ),
122
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-moderation.jpg',
123
'product_link' => 'https://rtcamp.com/products/rtmedia-moderation/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
124
- 'desc' => '<p>' . __( 'Report media if they find offensive. Set number of reports to automatically take down media from site.', 'rtmedia' ) . '</p>',
125
'price' => '$49',
126
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
127
'buy_now' => 'https://rtcamp.com/products/rtmedia-moderation/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -129,10 +129,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
129
'purchased' => ( defined( 'RTMEDIA_MODERATION_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-moderation/index.php' ) ) ? true : false,
130
),
131
array(
132
- 'title' => __( 'Custom Attributes', 'rtmedia' ),
133
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-custom-attributes.jpg',
134
'product_link' => 'https://rtcamp.com/products/rtmedia-custom-attributes/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
135
- 'desc' => '<p>' . __( 'Categories media based on attributes. Site owner need to create attributes. When user upload a media, can select in which attribute that media can add.', 'rtmedia' ) . '</p>',
136
'price' => '$29',
137
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
138
'buy_now' => 'https://rtcamp.com/products/rtmedia-custom-attributes/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -140,10 +140,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
140
'purchased' => ( defined( 'RTMEDIA_ATTRIBUTES_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-custom-attributes/index.php' ) ) ? true : false,
141
),
142
array(
143
- 'title' => __( 'Docs and Other files', 'rtmedia' ),
144
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-docs-files.jpg',
145
'product_link' => 'https://rtcamp.com/products/rtmedia-docs-files/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
146
- 'desc' => '<p>' . __( 'Allow users to upload documents and other file type using rtMedia upload box. This addon support all the file extensions which WordPress allows.', 'rtmedia' ) . '</p>',
147
'price' => '$29',
148
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
149
'buy_now' => 'https://rtcamp.com/products/rtmedia-docs-files/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -151,10 +151,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
151
'purchased' => ( defined( 'RTMEDIA_OTHER_FILES_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-docs-files/index.php' ) ) ? true : false,
152
),
153
array(
154
- 'title' => __( 'Default Albums', 'rtmedia' ),
155
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-default-albums.jpg',
156
'product_link' => 'https://rtcamp.com/products/rtmedia-default-albums/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
157
- 'desc' => '<p>' . __( 'This plugin allows the creation of multiple default albums for rtMedia uploads. One of these albums can be set as the default global album.', 'rtmedia' ) . '</p>',
158
'price' => '$19',
159
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
160
'buy_now' => 'https://rtcamp.com/products/rtmedia-default-albums/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -162,10 +162,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
162
'purchased' => ( defined( 'RTMEDIA_DEFAULT_ALBUMS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-default-albums/index.php' ) ) ? true : false,
163
),
164
array(
165
- 'title' => __( 'Podcast (RSS and Atom feeds)', 'rtmedia' ),
166
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-podcast-feed.jpg',
167
'product_link' => 'https://rtcamp.com/products/rtmedia-podcast-feed/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
168
- 'desc' => '<p>' . __( 'Read rtMedia uploads from iTunes as well as any RSS feed-reader/podcasting software.', 'rtmedia' ) . '</p>',
169
'price' => '$29',
170
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
171
'buy_now' => 'https://rtcamp.com/products/rtmedia-podcast-feed/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -173,10 +173,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
173
'purchased' => ( defined( 'RTMEDIA_RSS_ATOM_FEED_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-podcast-feed/index.php' ) ) ? true : false,
174
),
175
array(
176
- 'title' => __( 'Playlists', 'rtmedia' ),
177
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-playlists.jpg',
178
'product_link' => 'https://rtcamp.com/products/rtmedia-playlists/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
179
- 'desc' => '<p>' . __( 'Audio can be grouped into playlists. Once the user upload any audio file, can create a playlist or use existing one to manage audio files.', 'rtmedia' ) . '</p>',
180
'price' => '$29',
181
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
182
'buy_now' => 'https://rtcamp.com/products/rtmedia-playlists/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -184,10 +184,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
184
'purchased' => ( defined( 'RTMEDIA_PLAYLIST_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-playlists/index.php' ) ) ? true : false,
185
),
186
array(
187
- 'title' => __( 'Favorites', 'rtmedia' ),
188
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-favorites.jpg',
189
'product_link' => 'https://rtcamp.com/products/rtmedia-favorites/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
190
- 'desc' => '<p>' . __( 'Users can create their list of favorite media in which they can add media previously uploaded by any user.', 'rtmedia' ) . '</p>',
191
'price' => '$29',
192
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
193
'buy_now' => 'https://rtcamp.com/products/rtmedia-favorites/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -195,10 +195,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
195
'purchased' => ( defined( 'RTMEDIA_FAVORITES_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-favorites/index.php' ) ) ? true : false,
196
),
197
array(
198
- 'title' => __( 'Restrictions', 'rtmedia' ),
199
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-restrictions.jpg',
200
'product_link' => 'https://rtcamp.com/products/rtmedia-restrictions/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
201
- 'desc' => '<p>' . __( 'Site admin can set an upload limit on the basis of time span, file size (MB) and number of files user can upload.', 'rtmedia' ) . '</p>',
202
'price' => '$19',
203
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
204
'buy_now' => 'https://rtcamp.com/products/rtmedia-podcast-feed/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -206,10 +206,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
206
'purchased' => ( defined( 'RTMEDIA_RSS_ATOM_FEED_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-podcast-feed/index.php' ) ) ? true : false,
207
),
208
array(
209
- 'title' => __( 'bbPress Attachments', 'rtmedia' ),
210
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-bbpress-attachments.jpg',
211
'product_link' => 'https://rtcamp.com/products/rtmedia-bbpress-attachments/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
212
- 'desc' => '<p>' . __( 'Attach media files to bbPress forum topics and replies.', 'rtmedia' ) . '</p>',
213
'price' => '$19',
214
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
215
'buy_now' => 'https://rtcamp.com/products/rtmedia-bbpress-attachments/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -217,10 +217,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
217
'purchased' => ( defined( 'RTMEDIA_BBPRESS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-bbpress-attachments/index.php' ) ) ? true : false,
218
),
219
array(
220
- 'title' => __( 'WordPress Sitewide Gallery', 'rtmedia' ),
221
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-wordpress-sitewide-gallery.jpg',
222
'product_link' => 'https://rtcamp.com/products/rtmedia-wordpress-sitewide-gallery/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
223
- 'desc' => '<p>' . __( 'Site admin can create and upload media into WordPress album. Create album without being dependent on BuddyPress.', 'rtmedia' ) . '</p>',
224
'price' => '$19',
225
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
226
'buy_now' => 'https://rtcamp.com/products/rtmedia-wordpress-sitewide-gallery/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -228,10 +228,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
228
'purchased' => ( defined( 'RTMEDIA_WORDPRESS_SITEWIDE_GALLERY_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-wordpress-sitewide-gallery/index.php' ) ) ? true : false,
229
),
230
array(
231
- 'title' => __( 'WordPress Comment Attachments', 'rtmedia' ),
232
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-wordpress-comment-attachments.jpg',
233
'product_link' => 'https://rtcamp.com/products/rtmedia-wordpress-comment-attachments/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
234
- 'desc' => '<p>' . __( 'Allow users to upload a media file in WordPress comment attachment box. It will display a thumbnail of attached file.', 'rtmedia' ) . '</p>',
235
'price' => '$19',
236
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
237
'buy_now' => 'https://rtcamp.com/products/rtmedia-wordpress-comment-attachments/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -239,10 +239,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
239
'purchased' => ( defined( 'RTMEDIA_WORDPRESS_COMMENT_ATTACHMENT_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-wordpress-comment-attachments/index.php' ) ) ? true : false,
240
),
241
array(
242
- 'title' => __( 'Social Sharing', 'rtmedia' ),
243
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-social-sharing.jpg',
244
'product_link' => 'https://rtcamp.com/products/rtmedia-social-sharing/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
245
- 'desc' => '<p>' . __( 'Share uploaded media on social network sites like Facebook, twitter, linkedin, Google +. This addon integrate with rtSocial plugin.', 'rtmedia' ) . '</p>',
246
'price' => '$19',
247
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
248
'buy_now' => 'https://rtcamp.com/products/rtmedia-social-sharing/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -250,10 +250,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
250
'purchased' => ( defined( 'RTMEDIA_SOCIAL_SHARING_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-social-sharing/index.php' ) ) ? true : false,
251
),
252
array(
253
- 'title' => __( 'Sidebar Widgets', 'rtmedia' ),
254
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-sidebar-widgets.jpg',
255
'product_link' => 'https://rtcamp.com/products/rtmedia-sidebar-widgets/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
256
- 'desc' => '<p>' . __( 'This addon provide widgets to upload media and display gallery for rtMedia plugin.', 'rtmedia' ) . '</p>',
257
'price' => '$19',
258
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
259
'buy_now' => 'https://rtcamp.com/products/rtmedia-sidebar-widgets/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -261,10 +261,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
261
'purchased' => ( defined( 'RTMEDIA_WIDGETS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-sidebar-widgets/index.php' ) ) ? true : false,
262
),
263
array(
264
- 'title' => __( '5 Star Ratings', 'rtmedia' ),
265
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-ratings.jpg',
266
'product_link' => 'https://rtcamp.com/products/rtmedia-ratings/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
267
- 'desc' => '<p>' . __( 'Display 5 star rating for all the uploaded media. User can rate the media files from 1 to 5 star.', 'rtmedia' ) . '</p>',
268
'price' => '$19',
269
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
270
'buy_now' => 'https://rtcamp.com/products/rtmedia-ratings/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -272,10 +272,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
272
'purchased' => ( defined( 'RTMEDIA_RATINGS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-ratings/index.php' ) ) ? true : false,
273
),
274
array(
275
- 'title' => __( 'Edit Mp3 Info (ID3 Tags)', 'rtmedia' ),
276
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-edit-mp3-info.jpg',
277
'product_link' => 'https://rtcamp.com/products/rtmedia-edit-mp3-info/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
278
- 'desc' => '<p>' . __( 'Allow user to edit MP3 FIle Audio tags (ID 3 tags).', 'rtmedia' ) . '</p>',
279
'price' => '$19',
280
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
281
'buy_now' => 'https://rtcamp.com/products/rtmedia-edit-mp3-info/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -283,10 +283,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
283
'purchased' => ( defined( 'RTMEDIA_AUDIO_TAGS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-edit-mp3-info/index.php' ) ) ? true : false,
284
),
285
array(
286
- 'title' => __( 'Media Sorting', 'rtmedia' ),
287
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-sorting.jpg',
288
'product_link' => 'https://rtcamp.com/products/rtmedia-sorting/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
289
- 'desc' => '<p>' . __( 'Sort uploaded media based on file size, ascending/descending title, upload date of media.', 'rtmedia' ) . '</p>',
290
'price' => '$19',
291
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
292
'buy_now' => 'https://rtcamp.com/products/rtmedia-sorting/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -294,10 +294,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
294
'purchased' => ( defined( 'RTMEDIA_SORTING_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-sorting/index.php' ) ) ? true : false,
295
),
296
array(
297
- 'title' => __( 'Bulk Edit', 'rtmedia' ),
298
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-bulk-edit.jpg',
299
'product_link' => 'https://rtcamp.com/products/rtmedia-bulk-edit/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
300
- 'desc' => '<p>' . __( 'Bulk edit option will allow user to quickly select media files and do required actions like move files from one album to another, change attributes, change privacy, delete files.', 'rtmedia' ) . '</p>',
301
'price' => '$19',
302
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
303
'buy_now' => 'https://rtcamp.com/products/rtmedia-bulk-edit/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -305,10 +305,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
305
'purchased' => ( defined( 'RTMEDIA_BULK_EDIT_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-bulk-edit/index.php' ) ) ? true : false,
306
),
307
array(
308
- 'title' => __( 'BuddyPress Profile Picture', 'rtmedia' ),
309
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-buddypress-profile-picture.jpg',
310
'product_link' => 'https://rtcamp.com/products/rtmedia-buddypress-profile-picture/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
311
- 'desc' => '<p>' . __( 'User can easily set his/her profile picture from media uploaded via rtMedia.', 'rtmedia' ) . '</p>',
312
'price' => '$19',
313
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
314
'buy_now' => 'https://rtcamp.com/products/rtmedia-buddypress-profile-picture/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -316,10 +316,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
316
'purchased' => ( defined( 'RTMEDIA_BUDDYPRESS_PROFILE_PICTURE_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-buddypress-profile-picture/index.php' ) ) ? true : false,
317
),
318
array(
319
- 'title' => __( 'Album Cover Art', 'rtmedia' ),
320
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-album-cover-art.jpg',
321
'product_link' => 'https://rtcamp.com/products/rtmedia-album-cover-art/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
322
- 'desc' => '<p>' . __( 'User can easily set any of the image of the album as album cover photo', 'rtmedia' ) . '</p>',
323
'price' => '$19',
324
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
325
'buy_now' => 'https://rtcamp.com/products/rtmedia-album-cover-art/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -327,10 +327,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
327
'purchased' => ( defined( 'RTMEDIA_ALBUM_COVER_ART_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-album-cover-art/index.php' ) ) ? true : false,
328
),
329
array(
330
- 'title' => __( 'Direct Download Link', 'rtmedia' ),
331
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-direct-download-link.jpg',
332
'product_link' => 'https://rtcamp.com/products/rtmedia-direct-download-link/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
333
- 'desc' => '<p>' . __( 'User can download media from website. Site owner can restrict which media type can be allowed to download.', 'rtmedia' ) . '</p>',
334
'price' => '$19',
335
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
336
'buy_now' => 'https://rtcamp.com/products/rtmedia-direct-download-link/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -338,10 +338,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
338
'purchased' => ( defined( 'RTMEDIA_DOWNLOADS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-direct-download-link/index.php' ) ) ? true : false,
339
),
340
array(
341
- 'title' => __( 'Upload by URL', 'rtmedia' ),
342
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-upload-by-url.jpg',
343
'product_link' => 'https://rtcamp.com/products/rtmedia-upload-by-url/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
344
- 'desc' => '<p>' . __( 'Users do not need to download media files from a URL and then upload it with rtMedia. Just provide the absolute URL for the media and it will upload on site.', 'rtmedia' ) . '</p>',
345
'price' => '$19',
346
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
347
'buy_now' => 'https://rtcamp.com/products/rtmedia-upload-by-url/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -349,10 +349,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
349
'purchased' => ( defined( 'RTMEDIA_DOWNLOADS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-upload-by-url/index.php' ) ) ? true : false,
350
),
351
array(
352
- 'title' => __( 'Media Likes', 'rtmedia' ),
353
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-likes.jpg',
354
'product_link' => 'https://rtcamp.com/products/rtmedia-likes/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
355
- 'desc' => '<p>' . __( 'This add-on let you know who liked the media. User can also see which media they liked under their profile.', 'rtmedia' ) . '</p>',
356
'price' => '$19',
357
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
358
'buy_now' => 'https://rtcamp.com/products/rtmedia-likes/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -360,10 +360,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
360
'purchased' => ( defined( 'RTMEDIA_LIKES_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-likes/index.php' ) ) ? true : false,
361
),
362
array(
363
- 'title' => __( 'Activity URL Preview', 'rtmedia' ),
364
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-activity-url-preview.jpg',
365
'product_link' => 'https://rtcamp.com/products/rtmedia-activity-url-preview/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
366
- 'desc' => '<p>' . __( 'This addon provides a preview of the URL that is shared in BuddyPress activity. Just enter the URL you want to share on your site and see a preview of it before it is shared.', 'rtmedia' ) . '</p>',
367
'price' => '$19',
368
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
369
'buy_now' => 'https://rtcamp.com/products/rtmedia-activity-url-preview/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -371,10 +371,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
371
'purchased' => ( defined( 'RTMEDIA_ACTIVITY_URL_PREVIEW_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-activity-url-preview/index.php' ) ) ? true : false,
372
),
373
array(
374
- 'title' => __( 'View Counter', 'rtmedia' ),
375
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-view-counter.jpg',
376
'product_link' => 'https://rtcamp.com/products/rtmedia-view-counter/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
377
- 'desc' => '<p>' . __( 'Enable view count for all the uploaded media. Whenever user open that media file in lightbox or in single media view, that view count will be calculated and display next to media file.', 'rtmedia' ) . '</p>',
378
'price' => '$19',
379
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
380
'buy_now' => 'https://rtcamp.com/products/rtmedia-view-counter/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -382,10 +382,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
382
'purchased' => ( defined( 'RTMEDIA_VIEW_COUNT_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-view-counter/index.php' ) ) ? true : false,
383
),
384
array(
385
- 'title' => __( 'Shortcode Generator', 'rtmedia' ),
386
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-shortcode-generator.jpg',
387
'product_link' => 'https://rtcamp.com/products/rtmedia-shortcode-generator/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
388
- 'desc' => '<p>' . __( 'This add-on will add shortcode generator button in WordPress post and page editor for all the rtMedia shortcodes.', 'rtmedia' ) . '</p>',
389
'price' => '$19',
390
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
391
'buy_now' => 'https://rtcamp.com/products/rtmedia-shortcode-generator/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -393,10 +393,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
393
'purchased' => ( defined( 'RTMEDIA_SHORTCODE_GENERATOR_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-shortcode-generator/index.php' ) ) ? true : false,
394
),
395
array(
396
- 'title' => __( 'Album Privacy', 'rtmedia' ),
397
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-album-privacy.jpg',
398
'product_link' => 'https://rtcamp.com/products/rtmedia-album-privacy/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
399
- 'desc' => '<p>' . __( 'Set album privacy when user create an album or change album privacy when editing existing albums. The privacy levels are Public, Logged in user, Friends and Private.', 'rtmedia' ) . '</p>',
400
'price' => '$29',
401
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
402
'buy_now' => 'https://rtcamp.com/products/rtmedia-album-privacy/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -404,10 +404,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
404
'purchased' => ( defined( 'RTMEDIA_ALBUM_PRIVACY_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-album-privacy/index.php' ) ) ? true : false,
405
),
406
array(
407
- 'title' => __( 'BuddyPress Group Media Control', 'rtmedia' ),
408
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-buddypress-group-media-control.jpg',
409
'product_link' => 'https://rtcamp.com/products/rtmedia-buddypress-group-media-control/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
410
- 'desc' => '<p>' . __( 'This add-on allows group owner to manage media upload feature group wise.', 'rtmedia' ) . '</p>',
411
'price' => '$19',
412
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
413
'buy_now' => 'https://rtcamp.com/products/rtmedia-buddypress-group-media-control/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -415,10 +415,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
415
'purchased' => ( defined( 'RTMEDIA_GROUP_MEDIA_CONTROL_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-buddypress-group-media-control/index.php' ) ) ? true : false,
416
),
417
array(
418
- 'title' => __( 'Set Custom Thumbnail for Audio/Video', 'rtmedia' ),
419
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-set-custom-thumbnail.jpg',
420
'product_link' => 'https://rtcamp.com/products/rtmedia-set-custom-thumbnail/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
421
- 'desc' => '<p>' . __( 'Allow media owner to change the thumbnail of uploaded audio/video files. The File Upload box will be provided to change media thumbnail.', 'rtmedia' ) . '</p>',
422
'price' => '$29',
423
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
424
'buy_now' => 'https://rtcamp.com/products/rtmedia-set-custom-thumbnail/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -426,10 +426,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
426
'purchased' => ( defined( 'RTMEDIA_MEDIA_CUSTOM_THUMBNAIL_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-set-custom-thumbnail/index.php' ) ) ? true : false,
427
),
428
array(
429
- 'title' => __( 'myCRED', 'rtmedia' ),
430
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-mycred.jpg',
431
'product_link' => 'https://rtcamp.com/products/rtmedia-mycred/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
432
- 'desc' => '<p>' . __( 'This plugin integrates rtMedia and myCRED plugin, users can be can award virtual points for various rtMedia activities, like media upload, likes, deleted etc.', 'rtmedia' ) . '</p>',
433
'price' => '$19',
434
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
435
'buy_now' => 'https://rtcamp.com/products/rtmedia-mycred/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -437,10 +437,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
437
'purchased' => ( defined( 'RTMEDIA_MYCRED_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-mycred/index.php' ) ) ? true : false,
438
),
439
array(
440
- 'title' => __( 'Upload terms', 'rtmedia' ),
441
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-upload-terms.jpg',
442
'product_link' => 'https://rtcamp.com/products/rtmedia-upload-terms/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
443
- 'desc' => '<p>' . __( 'User must have to check the terms and conditions checkbox before uploading the media.', 'rtmedia' ) . '</p>',
444
'price' => '$19',
445
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
446
'buy_now' => 'https://rtcamp.com/products/rtmedia-upload-terms/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -448,10 +448,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
448
'purchased' => ( defined( 'RTMEDIA_UPLOAD_TERMS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-upload-terms/index.php' ) ) ? true : false,
449
),
450
array(
451
- 'title' => __( 'CubePoints', 'rtmedia' ),
452
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-cubepoints.jpg',
453
'product_link' => 'https://rtcamp.com/products/rtmedia-cubepoints/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
454
- 'desc' => '<p>' . __( 'If you are using CubePoints plugin on your website than rtMedia CubePoint add-on can be integrate with that plugin to setup point management system for rtMedia related activities.', 'rtmedia' ) . '</p>',
455
'price' => '$19',
456
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
457
'buy_now' => 'https://rtcamp.com/products/rtmedia-cubepoints/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -459,10 +459,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
459
'purchased' => ( defined( 'RTMEDIA_CUBEPOINTS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-cubepoints/index.php' ) ) ? true : false,
460
),
461
array(
462
- 'title' => __( 'Social Sync', 'rtmedia' ),
463
'img_src' => $rtcamp_upload_url . 'edd/2015/08/rtMedia-Social-Sync.png',
464
'product_link' => 'https://rtcamp.com/products/rtmedia-social-sync/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
465
- 'desc' => '<p>' . __( 'rtMedia Social Sync allows you to import media from your Facebook account.', 'rtmedia' ) . '</p>',
466
'price' => '$49',
467
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
468
'buy_now' => 'https://rtcamp.com/products/rtmedia-social-sync/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -470,10 +470,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
470
'purchased' => ( defined( 'RTMEDIA_SOCIAL_SYNC_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-social-sync/index.php' ) ) ? true : false,
471
),
472
array(
473
- 'title' => __( 'Photo Watermark', 'rtmedia' ),
474
'img_src' => $rtcamp_upload_url . 'edd/2015/08/rtMedia-Photo-Watermark.png',
475
'product_link' => 'http://rtcamp.com/products/rtmedia-photo-watermark/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
476
- 'desc' => '<p>' . __( 'rtMedia Photo Watermark let you add watermark on your images uploaded using rtMedia.', 'rtmedia' ) . '</p>',
477
'price' => '$49',
478
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
479
'buy_now' => 'https://rtcamp.com/products/rtmedia-photo-watermark/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -481,10 +481,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
481
'purchased' => ( defined( 'RTMEDIA_WATERMARK_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-photo-watermak/index.php' ) ) ? true : false,
482
),
483
array(
484
- 'title' => __( 'Photo Tagging', 'rtmedia' ),
485
'img_src' => $rtcamp_upload_url . 'edd/2015/08/rtMedia-Photo-Tagging.png',
486
'product_link' => 'http://rtcamp.com/products/rtmedia-photo-tagging/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
487
- 'desc' => '<p>' . __( 'rtMedia Photo Tagging enable users to tag their friends on photos uploaded using rtMedia.', 'rtmedia' ) . '</p>',
488
'price' => '$49',
489
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
490
'buy_now' => 'https://rtcamp.com/products/rtmedia-photo-tagging/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -492,10 +492,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
492
'purchased' => ( defined( 'RTMEDIA_PHOTO_TAGGING_URL' ) || file_exists( WP_PLUGIN_DIR . '/bpm-photo-tag/index.php' ) ) ? true : false,
493
),
494
array(
495
- 'title' => __( 'Photo Filters', 'rtmedia' ),
496
'img_src' => $rtcamp_upload_url . 'edd/2015/08/rtMedia-Photo-Filters.png',
497
'product_link' => 'http://rtcamp.com/products/rtmedia-photo-filters/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
498
- 'desc' => '<p>' . __( 'rtMedia Photo Filters adds Instagram like filters to images uploaded with rtMedia.', 'rtmedia' ) . '</p>',
499
'price' => '$49',
500
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
501
'buy_now' => 'https://rtcamp.com/products/rtmedia-photo-filters/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -503,10 +503,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
503
'purchased' => ( defined( 'RTMEDIA_INSTAGRAM_URL' ) || file_exists( WP_PLUGIN_DIR . '/bpm-instagram/index.php' ) || defined( 'RTMEDIA_PHOTO_FILTERS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-photo-filters/index.php' ) ) ? true : false,
504
),
505
array(
506
- 'title' => __( 'Kaltura Add-on', 'rtmedia' ),
507
'img_src' => $rtcamp_upload_url . 'edd/2015/08/rtMedia-Kaltura-Add-on.png',
508
'product_link' => 'http://rtcamp.com/products/rtmedia-kaltura-add-on/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
509
- 'desc' => '<p>' . __( 'Add support for more video formats using Kaltura video solution. It works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise.', 'rtmedia' ) . '</p>',
510
'price' => '$199',
511
'demo_link' => 'http://demo.rtcamp.com/bpm-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
512
'buy_now' => 'https://rtcamp.com/products/rtmedia-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -514,10 +514,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
514
'purchased' => ( defined( 'RTMEDIA_KALTURA_PATH' ) || file_exists( WP_PLUGIN_DIR . '/bpm-kaltura/index.php' ) ) ? true : false,
515
),
516
array(
517
- 'title' => __( 'FFMPEG Add-on', 'rtmedia' ),
518
'img_src' => $rtcamp_upload_url . 'edd/2015/08/rtMedia-FFMPEG-Addon.png',
519
'product_link' => 'http://rtcamp.com/products/buddypress-media-ffmpeg-converter/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
520
- 'desc' => '<p>' . __( 'Add supports for more audio & video formats using open-source media-node. Media node comes with automated setup script for Ubuntu/Debian.', 'rtmedia' ) . '</p>',
521
'price' => '$199',
522
'demo_link' => 'http://demo.rtcamp.com/bpm-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
523
'buy_now' => 'https://rtcamp.com/products/rtmedia-ffmpeg/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
@@ -525,10 +525,10 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
525
'purchased' => ( defined( 'RTMEDIA_FFMPEG_URL' ) || file_exists( WP_PLUGIN_DIR . '/bpm-ffmpeg/index.php' ) ) ? true : false,
526
),
527
array(
528
- 'title' => __( 'Membership Add-on', 'rtmedia' ),
529
'img_src' => $rtcamp_upload_url . 'edd/2015/08/rtMedia-Membership.png',
530
'product_link' => 'https://rtcamp.com/products/rtmedia-membership/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
531
- 'desc' => '<p>' . __( 'rtMedia Membership add-on provides membership functionality in your site in terms of media upload.', 'rtmedia' ),
532
'price' => '$99',
533
'buy_now' => 'https://rtcamp.com/products/rtmedia-membership/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
534
'category' => 'membership',
@@ -568,7 +568,7 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
568
* @return void
569
*/
570
public function themes_content( $args = '' ) {
571
- echo '<h3>' . __( 'Coming Soon !!', 'rtmedia' ) . '</h3>';
572
}
573
574
/**
@@ -601,9 +601,9 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
601
$coming_soon ? ' coming-soon' : '';
602
603
if ( $purchased ) {
604
- $purchase_link = '<span class="rtm-addon-purchased button-primary disabled alignright product_type_simple">' . __( 'Purchased', 'rtmedia' ) . '</span>';
605
} else {
606
- $purchase_link = '<a class="button-primary alignright product_type_simple" href="' . $buy_now . '" target="_blank">' . __( 'Buy Now', 'rtmedia' ) . '</a>';
607
}
608
609
$coming_soon_div = ( $coming_soon ) ? $this->coming_soon_div() : '';
@@ -632,7 +632,7 @@ if ( ! class_exists( 'RTMediaAddon' ) ) {
632
echo $purchase_link;
633
634
if ( $demo_link != '' ) {
635
- echo '<a class="alignright rtm-live-demo button" href="' . $demo_link . '" title="' . $title . '" target="_blank">' . __( 'Live Demo', 'rtmedia' ) . '</a>';
636
}
637
?>
638
</div>
76
$tabs = array();
77
global $rtmedia_admin;
78
$tabs[] = array(
79
+ 'title' => __( 'Plugins', 'buddypress-media' ),
80
+ 'name' => __( 'Plugins', 'buddypress-media' ),
81
'href' => '#rtm-plugins',
82
'icon' => 'dashicons-admin-plugins',
83
'callback' => array( $this, 'plugins_content' )
84
);
85
86
$tabs[] = array(
87
+ 'title' => __( 'Audio/Video Encoding', 'buddypress-media' ),
88
+ 'name' => __( 'Audio/Video Encoding', 'buddypress-media' ),
89
'href' => '#rtm-services',
90
'icon' => 'dashicons-playlist-video',
91
'callback' => array( $rtmedia_admin->rtmedia_encoding, 'encoding_service_intro' )
108
$rtcamp_upload_url = 'https://rtcamp.r.worldssl.net/wp-content/uploads/';
109
$addons = array(
110
array(
111
+ 'title' => __( 'SEO', 'buddypress-media' ),
112
'img_src' => $rtcamp_upload_url . 'edd/2015/08/seo-xml.png',
113
'product_link' => 'https://rtcamp.com/products/rtmedia-seo/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
114
+ 'desc' => '<p>' . __( 'Generate an XML sitemap for all the public media files uploaded via rtMedia plugin. These sitemaps can be useful to index search engine to improve website SEO.', 'buddypress-media' ) . '</p>',
115
'price' => '$29',
116
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
117
'buy_now' => 'https://rtcamp.com/products/rtmedia-seo/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
118
'category' => 'general',
119
'purchased' => ( defined( 'RTMEDIA_SEO_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-seo/index.php' ) ) ? true : false,
120
),array(
121
+ 'title' => __( 'Moderation', 'buddypress-media' ),
122
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-moderation.jpg',
123
'product_link' => 'https://rtcamp.com/products/rtmedia-moderation/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
124
+ 'desc' => '<p>' . __( 'Report media if they find offensive. Set number of reports to automatically take down media from site.', 'buddypress-media' ) . '</p>',
125
'price' => '$49',
126
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
127
'buy_now' => 'https://rtcamp.com/products/rtmedia-moderation/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
129
'purchased' => ( defined( 'RTMEDIA_MODERATION_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-moderation/index.php' ) ) ? true : false,
130
),
131
array(
132
+ 'title' => __( 'Custom Attributes', 'buddypress-media' ),
133
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-custom-attributes.jpg',
134
'product_link' => 'https://rtcamp.com/products/rtmedia-custom-attributes/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
135
+ 'desc' => '<p>' . __( 'Categories media based on attributes. Site owner need to create attributes. When user upload a media, can select in which attribute that media can add.', 'buddypress-media' ) . '</p>',
136
'price' => '$29',
137
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
138
'buy_now' => 'https://rtcamp.com/products/rtmedia-custom-attributes/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
140
'purchased' => ( defined( 'RTMEDIA_ATTRIBUTES_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-custom-attributes/index.php' ) ) ? true : false,
141
),
142
array(
143
+ 'title' => __( 'Docs and Other files', 'buddypress-media' ),
144
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-docs-files.jpg',
145
'product_link' => 'https://rtcamp.com/products/rtmedia-docs-files/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
146
+ 'desc' => '<p>' . __( 'Allow users to upload documents and other file type using rtMedia upload box. This addon support all the file extensions which WordPress allows.', 'buddypress-media' ) . '</p>',
147
'price' => '$29',
148
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
149
'buy_now' => 'https://rtcamp.com/products/rtmedia-docs-files/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
151
'purchased' => ( defined( 'RTMEDIA_OTHER_FILES_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-docs-files/index.php' ) ) ? true : false,
152
),
153
array(
154
+ 'title' => __( 'Default Albums', 'buddypress-media' ),
155
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-default-albums.jpg',
156
'product_link' => 'https://rtcamp.com/products/rtmedia-default-albums/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
157
+ 'desc' => '<p>' . __( 'This plugin allows the creation of multiple default albums for rtMedia uploads. One of these albums can be set as the default global album.', 'buddypress-media' ) . '</p>',
158
'price' => '$19',
159
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
160
'buy_now' => 'https://rtcamp.com/products/rtmedia-default-albums/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
162
'purchased' => ( defined( 'RTMEDIA_DEFAULT_ALBUMS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-default-albums/index.php' ) ) ? true : false,
163
),
164
array(
165
+ 'title' => __( 'Podcast (RSS and Atom feeds)', 'buddypress-media' ),
166
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-podcast-feed.jpg',
167
'product_link' => 'https://rtcamp.com/products/rtmedia-podcast-feed/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
168
+ 'desc' => '<p>' . __( 'Read rtMedia uploads from iTunes as well as any RSS feed-reader/podcasting software.', 'buddypress-media' ) . '</p>',
169
'price' => '$29',
170
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
171
'buy_now' => 'https://rtcamp.com/products/rtmedia-podcast-feed/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
173
'purchased' => ( defined( 'RTMEDIA_RSS_ATOM_FEED_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-podcast-feed/index.php' ) ) ? true : false,
174
),
175
array(
176
+ 'title' => __( 'Playlists', 'buddypress-media' ),
177
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-playlists.jpg',
178
'product_link' => 'https://rtcamp.com/products/rtmedia-playlists/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
179
+ 'desc' => '<p>' . __( 'Audio can be grouped into playlists. Once the user upload any audio file, can create a playlist or use existing one to manage audio files.', 'buddypress-media' ) . '</p>',
180
'price' => '$29',
181
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
182
'buy_now' => 'https://rtcamp.com/products/rtmedia-playlists/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
184
'purchased' => ( defined( 'RTMEDIA_PLAYLIST_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-playlists/index.php' ) ) ? true : false,
185
),
186
array(
187
+ 'title' => __( 'Favorites', 'buddypress-media' ),
188
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-favorites.jpg',
189
'product_link' => 'https://rtcamp.com/products/rtmedia-favorites/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
190
+ 'desc' => '<p>' . __( 'Users can create their list of favorite media in which they can add media previously uploaded by any user.', 'buddypress-media' ) . '</p>',
191
'price' => '$29',
192
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
193
'buy_now' => 'https://rtcamp.com/products/rtmedia-favorites/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
195
'purchased' => ( defined( 'RTMEDIA_FAVORITES_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-favorites/index.php' ) ) ? true : false,
196
),
197
array(
198
+ 'title' => __( 'Restrictions', 'buddypress-media' ),
199
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-restrictions.jpg',
200
'product_link' => 'https://rtcamp.com/products/rtmedia-restrictions/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
201
+ 'desc' => '<p>' . __( 'Site admin can set an upload limit on the basis of time span, file size (MB) and number of files user can upload.', 'buddypress-media' ) . '</p>',
202
'price' => '$19',
203
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
204
'buy_now' => 'https://rtcamp.com/products/rtmedia-podcast-feed/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
206
'purchased' => ( defined( 'RTMEDIA_RSS_ATOM_FEED_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-podcast-feed/index.php' ) ) ? true : false,
207
),
208
array(
209
+ 'title' => __( 'bbPress Attachments', 'buddypress-media' ),
210
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-bbpress-attachments.jpg',
211
'product_link' => 'https://rtcamp.com/products/rtmedia-bbpress-attachments/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
212
+ 'desc' => '<p>' . __( 'Attach media files to bbPress forum topics and replies.', 'buddypress-media' ) . '</p>',
213
'price' => '$19',
214
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
215
'buy_now' => 'https://rtcamp.com/products/rtmedia-bbpress-attachments/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
217
'purchased' => ( defined( 'RTMEDIA_BBPRESS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-bbpress-attachments/index.php' ) ) ? true : false,
218
),
219
array(
220
+ 'title' => __( 'WordPress Sitewide Gallery', 'buddypress-media' ),
221
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-wordpress-sitewide-gallery.jpg',
222
'product_link' => 'https://rtcamp.com/products/rtmedia-wordpress-sitewide-gallery/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
223
+ 'desc' => '<p>' . __( 'Site admin can create and upload media into WordPress album. Create album without being dependent on BuddyPress.', 'buddypress-media' ) . '</p>',
224
'price' => '$19',
225
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
226
'buy_now' => 'https://rtcamp.com/products/rtmedia-wordpress-sitewide-gallery/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
228
'purchased' => ( defined( 'RTMEDIA_WORDPRESS_SITEWIDE_GALLERY_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-wordpress-sitewide-gallery/index.php' ) ) ? true : false,
229
),
230
array(
231
+ 'title' => __( 'WordPress Comment Attachments', 'buddypress-media' ),
232
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-wordpress-comment-attachments.jpg',
233
'product_link' => 'https://rtcamp.com/products/rtmedia-wordpress-comment-attachments/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
234
+ 'desc' => '<p>' . __( 'Allow users to upload a media file in WordPress comment attachment box. It will display a thumbnail of attached file.', 'buddypress-media' ) . '</p>',
235
'price' => '$19',
236
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
237
'buy_now' => 'https://rtcamp.com/products/rtmedia-wordpress-comment-attachments/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
239
'purchased' => ( defined( 'RTMEDIA_WORDPRESS_COMMENT_ATTACHMENT_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-wordpress-comment-attachments/index.php' ) ) ? true : false,
240
),
241
array(
242
+ 'title' => __( 'Social Sharing', 'buddypress-media' ),
243
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-social-sharing.jpg',
244
'product_link' => 'https://rtcamp.com/products/rtmedia-social-sharing/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
245
+ 'desc' => '<p>' . __( 'Share uploaded media on social network sites like Facebook, twitter, linkedin, Google +. This addon integrate with rtSocial plugin.', 'buddypress-media' ) . '</p>',
246
'price' => '$19',
247
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
248
'buy_now' => 'https://rtcamp.com/products/rtmedia-social-sharing/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
250
'purchased' => ( defined( 'RTMEDIA_SOCIAL_SHARING_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-social-sharing/index.php' ) ) ? true : false,
251
),
252
array(
253
+ 'title' => __( 'Sidebar Widgets', 'buddypress-media' ),
254
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-sidebar-widgets.jpg',
255
'product_link' => 'https://rtcamp.com/products/rtmedia-sidebar-widgets/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
256
+ 'desc' => '<p>' . __( 'This addon provide widgets to upload media and display gallery for rtMedia plugin.', 'buddypress-media' ) . '</p>',
257
'price' => '$19',
258
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
259
'buy_now' => 'https://rtcamp.com/products/rtmedia-sidebar-widgets/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
261
'purchased' => ( defined( 'RTMEDIA_WIDGETS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-sidebar-widgets/index.php' ) ) ? true : false,
262
),
263
array(
264
+ 'title' => __( '5 Star Ratings', 'buddypress-media' ),
265
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-ratings.jpg',
266
'product_link' => 'https://rtcamp.com/products/rtmedia-ratings/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
267
+ 'desc' => '<p>' . __( 'Display 5 star rating for all the uploaded media. User can rate the media files from 1 to 5 star.', 'buddypress-media' ) . '</p>',
268
'price' => '$19',
269
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
270
'buy_now' => 'https://rtcamp.com/products/rtmedia-ratings/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
272
'purchased' => ( defined( 'RTMEDIA_RATINGS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-ratings/index.php' ) ) ? true : false,
273
),
274
array(
275
+ 'title' => __( 'Edit Mp3 Info (ID3 Tags)', 'buddypress-media' ),
276
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-edit-mp3-info.jpg',
277
'product_link' => 'https://rtcamp.com/products/rtmedia-edit-mp3-info/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
278
+ 'desc' => '<p>' . __( 'Allow user to edit MP3 FIle Audio tags (ID 3 tags).', 'buddypress-media' ) . '</p>',
279
'price' => '$19',
280
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
281
'buy_now' => 'https://rtcamp.com/products/rtmedia-edit-mp3-info/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
283
'purchased' => ( defined( 'RTMEDIA_AUDIO_TAGS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-edit-mp3-info/index.php' ) ) ? true : false,
284
),
285
array(
286
+ 'title' => __( 'Media Sorting', 'buddypress-media' ),
287
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-sorting.jpg',
288
'product_link' => 'https://rtcamp.com/products/rtmedia-sorting/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
289
+ 'desc' => '<p>' . __( 'Sort uploaded media based on file size, ascending/descending title, upload date of media.', 'buddypress-media' ) . '</p>',
290
'price' => '$19',
291
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
292
'buy_now' => 'https://rtcamp.com/products/rtmedia-sorting/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
294
'purchased' => ( defined( 'RTMEDIA_SORTING_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-sorting/index.php' ) ) ? true : false,
295
),
296
array(
297
+ 'title' => __( 'Bulk Edit', 'buddypress-media' ),
298
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-bulk-edit.jpg',
299
'product_link' => 'https://rtcamp.com/products/rtmedia-bulk-edit/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
300
+ 'desc' => '<p>' . __( 'Bulk edit option will allow user to quickly select media files and do required actions like move files from one album to another, change attributes, change privacy, delete files.', 'buddypress-media' ) . '</p>',
301
'price' => '$19',
302
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
303
'buy_now' => 'https://rtcamp.com/products/rtmedia-bulk-edit/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
305
'purchased' => ( defined( 'RTMEDIA_BULK_EDIT_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-bulk-edit/index.php' ) ) ? true : false,
306
),
307
array(
308
+ 'title' => __( 'BuddyPress Profile Picture', 'buddypress-media' ),
309
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-buddypress-profile-picture.jpg',
310
'product_link' => 'https://rtcamp.com/products/rtmedia-buddypress-profile-picture/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
311
+ 'desc' => '<p>' . __( 'User can easily set his/her profile picture from media uploaded via rtMedia.', 'buddypress-media' ) . '</p>',
312
'price' => '$19',
313
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
314
'buy_now' => 'https://rtcamp.com/products/rtmedia-buddypress-profile-picture/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
316
'purchased' => ( defined( 'RTMEDIA_BUDDYPRESS_PROFILE_PICTURE_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-buddypress-profile-picture/index.php' ) ) ? true : false,
317
),
318
array(
319
+ 'title' => __( 'Album Cover Art', 'buddypress-media' ),
320
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-album-cover-art.jpg',
321
'product_link' => 'https://rtcamp.com/products/rtmedia-album-cover-art/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
322
+ 'desc' => '<p>' . __( 'User can easily set any of the image of the album as album cover photo', 'buddypress-media' ) . '</p>',
323
'price' => '$19',
324
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
325
'buy_now' => 'https://rtcamp.com/products/rtmedia-album-cover-art/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
327
'purchased' => ( defined( 'RTMEDIA_ALBUM_COVER_ART_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-album-cover-art/index.php' ) ) ? true : false,
328
),
329
array(
330
+ 'title' => __( 'Direct Download Link', 'buddypress-media' ),
331
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-direct-download-link.jpg',
332
'product_link' => 'https://rtcamp.com/products/rtmedia-direct-download-link/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
333
+ 'desc' => '<p>' . __( 'User can download media from website. Site owner can restrict which media type can be allowed to download.', 'buddypress-media' ) . '</p>',
334
'price' => '$19',
335
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
336
'buy_now' => 'https://rtcamp.com/products/rtmedia-direct-download-link/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
338
'purchased' => ( defined( 'RTMEDIA_DOWNLOADS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-direct-download-link/index.php' ) ) ? true : false,
339
),
340
array(
341
+ 'title' => __( 'Upload by URL', 'buddypress-media' ),
342
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-upload-by-url.jpg',
343
'product_link' => 'https://rtcamp.com/products/rtmedia-upload-by-url/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
344
+ 'desc' => '<p>' . __( 'Users do not need to download media files from a URL and then upload it with rtMedia. Just provide the absolute URL for the media and it will upload on site.', 'buddypress-media' ) . '</p>',
345
'price' => '$19',
346
'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
347
'buy_now' => 'https://rtcamp.com/products/rtmedia-upload-by-url/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
349
'purchased' => ( defined( 'RTMEDIA_DOWNLOADS_URL' ) || file_exists( WP_PLUGIN_DIR . '/rtmedia-upload-by-url/index.php' ) ) ? true : false,
350
),
351
array(
352
+ 'title' => __( 'Media Likes', 'buddypress-media' ),
353
'img_src' => $rtcamp_upload_url . 'edd/2015/06/rtmedia-likes.jpg',
354
'product_link' => 'https://rtcamp.com/products/rtmedia-likes/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
355