rtMedia for WordPress, BuddyPress and bbPress - Version 3.2.6

Version Description

  • Updated dutch transalation.
  • Fix WordPress template issue.
Download this release

Release Info

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

Code changes from version 3.2.5 to 3.2.6

app/admin/RTMediaAdmin.php CHANGED
@@ -19,6 +19,7 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
19
public function __construct () {
20
global $rtmedia;
21
add_action ( 'init', array( $this, 'video_transcoding_survey_response' ) );
22
if ( is_multisite () ) {
23
add_action ( 'network_admin_notices', array( $this, 'upload_filetypes_error' ) );
24
add_action ( 'admin_notices', array( $this, 'upload_filetypes_error' ) );
@@ -273,11 +274,11 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
273
'rtmedia_page_rtmedia-addons',
274
'rtmedia_page_rtmedia-support',
275
'rtmedia_page_rtmedia-importer',
276
- 'rtmedia_page_rtmedia-regenerate'
277
);
278
$admin_pages = apply_filters ( 'rtmedia_filter_admin_pages_array', $admin_pages );
279
-
280
- if ( in_array ( $hook, $admin_pages ) ) {
281
$admin_ajax = admin_url ( 'admin-ajax.php' );
282
283
wp_enqueue_script ( 'bootstrap-switch', RTMEDIA_URL . 'app/assets/js/bootstrap-switch.js', array( 'jquery' ), RTMEDIA_VERSION );
@@ -336,6 +337,10 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
336
add_submenu_page ( 'rtmedia-settings', __ ( 'Settings', 'rtmedia' ), __ ( 'Settings', 'rtmedia' ), 'manage_options', 'rtmedia-settings', array( $this, 'settings_page' ) );
337
add_submenu_page ( 'rtmedia-settings', __ ( 'Addons', 'rtmedia' ), __ ( 'Addons', 'rtmedia' ), 'manage_options', 'rtmedia-addons', array( $this, 'addons_page' ) );
338
add_submenu_page ( 'rtmedia-settings', __ ( 'Support', 'rtmedia' ), __ ( 'Support ', 'rtmedia' ), 'manage_options', 'rtmedia-support', array( $this, 'support_page' ) );
339
$obj_encoding = new RTMediaEncoding(true);
340
if ($obj_encoding->api_key)
341
add_submenu_page ( 'rtmedia-settings', __ ( 'Regenerate Thumbnail', 'rtmedia' ), __ ( 'Regen. Thumbnail ', 'rtmedia' ), 'manage_options', 'rtmedia-regenerate', array( $this, 'rt_regenerate_thumbnail' ) );
@@ -546,7 +551,11 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
546
$this->render_page ( 'rtmedia-support' );
547
}
548
549
- /**
550
*
551
* @return type
552
*/
@@ -606,7 +615,11 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
606
<?php
607
if ( $page == 'rtmedia-addons' )
608
RTMediaAddon::render_addons ( $page );
609
- else
610
do_settings_sections ( $page );
611
?>
612
<?php
@@ -692,6 +705,9 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
692
foreach ( array_values ( $tabs ) as $tab_data ) {
693
$is_current = ( bool ) ( $tab_data[ 'slug' ] == $this->get_current_tab () );
694
$tab_class = $is_current ? $active_class : $idle_class;
695
$tabs_html .= '<a href="' . $tab_data[ 'href' ] . '" class="' . $tab_class . '">' . $tab_data[ 'name' ] . '</a>';
696
}
697
@@ -1133,6 +1149,57 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
1133
</script>
1134
<?php
1135
}
1136
}
1137
1138
}
19
public function __construct () {
20
global $rtmedia;
21
add_action ( 'init', array( $this, 'video_transcoding_survey_response' ) );
22
+ add_action ( 'admin_init', array( $this, 'presstrends_plugin' ) );
23
if ( is_multisite () ) {
24
add_action ( 'network_admin_notices', array( $this, 'upload_filetypes_error' ) );
25
add_action ( 'admin_notices', array( $this, 'upload_filetypes_error' ) );
274
'rtmedia_page_rtmedia-addons',
275
'rtmedia_page_rtmedia-support',
276
'rtmedia_page_rtmedia-importer',
277
+ 'rtmedia_page_rtmedia-regenerate',
278
+ 'rtmedia_page_rtmedia-premium'
279
);
280
$admin_pages = apply_filters ( 'rtmedia_filter_admin_pages_array', $admin_pages );
281
+ if ( in_array ( $hook, $admin_pages ) || strpos( $hook, 'rtmedia-migration') ) {
282
$admin_ajax = admin_url ( 'admin-ajax.php' );
283
284
wp_enqueue_script ( 'bootstrap-switch', RTMEDIA_URL . 'app/assets/js/bootstrap-switch.js', array( 'jquery' ), RTMEDIA_VERSION );
337
add_submenu_page ( 'rtmedia-settings', __ ( 'Settings', 'rtmedia' ), __ ( 'Settings', 'rtmedia' ), 'manage_options', 'rtmedia-settings', array( $this, 'settings_page' ) );
338
add_submenu_page ( 'rtmedia-settings', __ ( 'Addons', 'rtmedia' ), __ ( 'Addons', 'rtmedia' ), 'manage_options', 'rtmedia-addons', array( $this, 'addons_page' ) );
339
add_submenu_page ( 'rtmedia-settings', __ ( 'Support', 'rtmedia' ), __ ( 'Support ', 'rtmedia' ), 'manage_options', 'rtmedia-support', array( $this, 'support_page' ) );
340
+ if(! defined("RTMEDIA_PRO_VERSION")) {
341
+ add_submenu_page ( 'rtmedia-settings', __ ( 'Premium', 'rtmedia' ), __ ( 'Premium ', 'rtmedia' ), 'manage_options', 'rtmedia-premium', array( $this, 'premium_page' ) );
342
+ }
343
+
344
$obj_encoding = new RTMediaEncoding(true);
345
if ($obj_encoding->api_key)
346
add_submenu_page ( 'rtmedia-settings', __ ( 'Regenerate Thumbnail', 'rtmedia' ), __ ( 'Regen. Thumbnail ', 'rtmedia' ), 'manage_options', 'rtmedia-regenerate', array( $this, 'rt_regenerate_thumbnail' ) );
551
$this->render_page ( 'rtmedia-support' );
552
}
553
554
+ public function premium_page() {
555
+ $this->render_page ( 'rtmedia-premium' );
556
+ }
557
+
558
+ /**
559
*
560
* @return type
561
*/
615
<?php
616
if ( $page == 'rtmedia-addons' )
617
RTMediaAddon::render_addons ( $page );
618
+ else if ( $page == 'rtmedia-support' ) {
619
+ $rtmedia_support = new RTMediaSupport(false);
620
+ $rtmedia_support->render_support($page);
621
+ }
622
+ else
623
do_settings_sections ( $page );
624
?>
625
<?php
705
foreach ( array_values ( $tabs ) as $tab_data ) {
706
$is_current = ( bool ) ( $tab_data[ 'slug' ] == $this->get_current_tab () );
707
$tab_class = $is_current ? $active_class : $idle_class;
708
+ if(isset($tab_data['class']) && is_array($tab_data['class'])) {
709
+ $tab_class .= " ".implode(" ", $tab_data['class']);
710
+ }
711
$tabs_html .= '<a href="' . $tab_data[ 'href' ] . '" class="' . $tab_class . '">' . $tab_data[ 'name' ] . '</a>';
712
}
713
1149
</script>
1150
<?php
1151
}
1152
+
1153
+ function presstrends_plugin() {
1154
+ // PressTrends Account API Key
1155
+ $api_key = 'o3w063qppl7ha022jyc3bjpi7usrmczho';
1156
+ $auth = '';
1157
+ // Start of Metrics
1158
+ global $wpdb;
1159
+ $data = get_transient( 'presstrends_cache_data' );
1160
+ if ( !$data || $data == '' ) {
1161
+ $api_base = 'http://api.presstrends.io/index.php/api/pluginsites/update?auth=';
1162
+ $url = $api_base . $auth . '&api=' . $api_key . '';
1163
+ $count_posts = wp_count_posts();
1164
+ $count_pages = wp_count_posts( 'page' );
1165
+ $comments_count = wp_count_comments();
1166
+ if ( function_exists( 'wp_get_theme' ) ) {
1167
+ $theme_data = wp_get_theme();
1168
+ $theme_name = urlencode( $theme_data->Name );
1169
+ } else {
1170
+ $theme_data = get_theme_data( get_stylesheet_directory() . '/style.css' );
1171
+ $theme_name = $theme_data['Name'];
1172
+ }
1173
+ $plugin_name = '&';
1174
+ foreach ( get_plugins() as $plugin_info ) {
1175
+ $plugin_name .= $plugin_info['Name'] . '&';
1176
+ }
1177
+ // CHANGE __FILE__ PATH IF LOCATED OUTSIDE MAIN PLUGIN FILE
1178
+ $plugin_data = get_plugin_data( __FILE__ );
1179
+ $posts_with_comments = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type='post' AND comment_count > 0" );
1180
+ $data = array(
1181
+ 'url' => base64_encode(site_url()),
1182
+ 'posts' => $count_posts->publish,
1183
+ 'pages' => $count_pages->publish,
1184
+ 'comments' => $comments_count->total_comments,
1185
+ 'approved' => $comments_count->approved,
1186
+ 'spam' => $comments_count->spam,
1187
+ 'pingbacks' => $wpdb->get_var( "SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_type = 'pingback'" ),
1188
+ 'post_conversion' => ( $count_posts->publish > 0 && $posts_with_comments > 0 ) ? number_format( ( $posts_with_comments / $count_posts->publish ) * 100, 0, '.', '' ) : 0,
1189
+ 'theme_version' => $plugin_data['Version'],
1190
+ 'theme_name' => $theme_name,
1191
+ 'site_name' => str_replace( ' ', '', get_bloginfo( 'name' ) ),
1192
+ 'plugins' => count( get_option( 'active_plugins' ) ),
1193
+ 'plugin' => urlencode( $plugin_name ),
1194
+ 'wpversion' => get_bloginfo( 'version' ),
1195
+ );
1196
+ foreach ( $data as $k => $v ) {
1197
+ $url .= '&' . $k . '=' . $v . '';
1198
+ }
1199
+ wp_remote_get( $url );
1200
+ set_transient( 'presstrends_cache_data', $data, 60 * 60 * 24 );
1201
+ }
1202
+ }
1203
}
1204
1205
}
app/assets/css/admin.css CHANGED
@@ -655,4 +655,23 @@ abbr {
655
.rtmedia-admin-ad img{
656
text-align: center;
657
width:100%;
658
}
655
.rtmedia-admin-ad img{
656
text-align: center;
657
width:100%;
658
+ }
659
+
660
+ .bp-media-admin .rtm-premium {
661
+ background-color: #DDD;
662
+ }
663
+
664
+ .bp-media-admin .premium-title {
665
+ color: #444;
666
+ border-bottom: 1px solid #DDD ;
667
+ padding-bottom: 10px;
668
+ }
669
+
670
+ .bp-media-admin .premium-page-container {
671
+ margin-bottom: 20px;
672
+ }
673
+
674
+ .bp-media-admin .premium-page-container .rtm-premium-icon-pro {
675
+ margin-top: 9px;
676
+ width: 40px;
677
}
app/assets/js/admin.js CHANGED
@@ -496,6 +496,12 @@ jQuery(document).ready(function($) {
496
defaultTab: manageHash()
497
});
498
499
if (jQuery('#rtmedia-privacy-enable').is(":checked")) {
500
jQuery(".privacy-driven-disable label input").prop("disabled", false);
501
jQuery(".privacy-driven-disable label .rt-switch").bootstrapSwitch("setActive", true);
496
defaultTab: manageHash()
497
});
498
499
+ jQuery("#rtm-support").sliderTabs({
500
+ autoplay: false,
501
+ mousewheel: false,
502
+ defaultTab: manageHash()
503
+ });
504
+
505
if (jQuery('#rtmedia-privacy-enable').is(":checked")) {
506
jQuery(".privacy-driven-disable label input").prop("disabled", false);
507
jQuery(".privacy-driven-disable label .rt-switch").bootstrapSwitch("setActive", true);
app/assets/js/rtMedia.js CHANGED
@@ -101,7 +101,7 @@ jQuery('document').ready(function($) {
101
})
102
//rtmedia_lightbox_enabled from setting
103
if (typeof(rtmedia_lightbox_enabled) != 'undefined' && rtmedia_lightbox_enabled == "1") {
104
- apply_rtMagnificPopup('.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content');
105
}
106
107
jQuery('.rtmedia-container').on('click', '.select-all', function(e) {
@@ -175,8 +175,12 @@ jQuery('document').ready(function($) {
175
jQuery('#rtmedia_album_name').val("");
176
jQuery("#rtmedia-create-album-modal").append("<span class='rtmedia-success rtmedia-create-album-alert'><b>" + $albumname + "</b>" + rtmedia_album_created_msg + "</span>");
177
setTimeout(function() {
178
- jQuery(".rtmedia-create-album-alert").remove()
179
}, 4000);
180
181
} else {
182
alert(rtmedia_something_wrong_msg);
101
})
102
//rtmedia_lightbox_enabled from setting
103
if (typeof(rtmedia_lightbox_enabled) != 'undefined' && rtmedia_lightbox_enabled == "1") {
104
+ apply_rtMagnificPopup('.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content, .rtm-bbp-container');
105
}
106
107
jQuery('.rtmedia-container').on('click', '.select-all', function(e) {
175
jQuery('#rtmedia_album_name').val("");
176
jQuery("#rtmedia-create-album-modal").append("<span class='rtmedia-success rtmedia-create-album-alert'><b>" + $albumname + "</b>" + rtmedia_album_created_msg + "</span>");
177
setTimeout(function() {
178
+ jQuery(".rtmedia-create-album-alert").remove();
179
}, 4000);
180
+ setTimeout(function() {
181
+ galleryObj.reloadView();
182
+ jQuery(".close-reveal-modal").click();
183
+ }, 2000);
184
185
} else {
186
alert(rtmedia_something_wrong_msg);
app/assets/sass/main.scss CHANGED
@@ -633,4 +633,6 @@ button.mfp-close {
633
color : red;
634
}
635
//audio player fix under the current lightbox.
636
- .mfp-content #rtmedia-single-media-container .wp-audio-shortcode{ margin-left : 30px; }
633
color : red;
634
}
635
//audio player fix under the current lightbox.
636
+ .mfp-content #rtmedia-single-media-container .wp-audio-shortcode{ margin-left : 30px; }
637
+
638
+
app/helper/RTMediaSettings.php CHANGED
@@ -98,8 +98,8 @@ if (!class_exists('RTMediaSettings')) {
98
}
99
$rtmedia_addon = new RTMediaAddon();
100
add_settings_section('rtm-addons', __('BuddyPress Media Addons for Photos', 'rtmedia'), array($rtmedia_addon, 'get_addons'), 'rtmedia-addons');
101
-
102
- add_settings_section('rtm-support', __('Support', 'rtmedia'), array($this, 'rtmedia_support_intro'), 'rtmedia-support');
103
104
// if (!BPMediaPrivacy::is_installed()) {
105
// $rtmedia_privacy = new BPMediaPrivacySettings();
98
}
99
$rtmedia_addon = new RTMediaAddon();
100
add_settings_section('rtm-addons', __('BuddyPress Media Addons for Photos', 'rtmedia'), array($rtmedia_addon, 'get_addons'), 'rtmedia-addons');
101
+ $rtmedia_support = new RTMediaSupport(false);
102
+ add_settings_section('rtm-support', __('Support', 'rtmedia'), array($rtmedia_support, 'get_support_content'), 'rtmedia-support');
103
104
// if (!BPMediaPrivacy::is_installed()) {
105
// $rtmedia_privacy = new BPMediaPrivacySettings();
app/helper/RTMediaSupport.php CHANGED
@@ -16,18 +16,86 @@ if (!class_exists('RTMediaSupport')) {
16
if( !is_admin () ) {
17
return;
18
}
19
- $this->curr_sub_tab = "debug";
20
if(isset($_REQUEST['tab'])) {
21
$this->curr_sub_tab = $_REQUEST['tab'];
22
}
23
- if($init) {
24
- $this->debug_info();
25
- if($this->curr_sub_tab == "debug") {
26
- add_action('rtmedia_admin_page_insert', array($this, 'debug_info_html'), 20);
27
- }
28
- }
29
}
30
31
public function service_selector() {
32
?>
33
<div>
@@ -47,46 +115,52 @@ if (!class_exists('RTMediaSupport')) {
47
//$this->get_form("premium_support");
48
}
49
50
- public function get_current_sub_tab() {
51
- return isset ( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : "debug";
52
- }
53
- public function rtmedia_support_sub_tabs ( $active_tab = '' ) {
54
- // Declare local variables
55
- $tabs_html = '';
56
- $idle_class = 'nav-tab';
57
- $active_class = 'nav-tab nav-tab-active';
58
-
59
- // Setup core admin tabs
60
- $tabs = array(
61
- array(
62
- 'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=debug",
63
- 'name' => __ ( 'Debug Info', 'rtmedia' ),
64
- 'slug' => 'rtmedia-support&tab=debug'
65
- ),
66
- array(
67
- 'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=support",
68
- 'name' => __ ( 'Support Request', 'rtmedia' ),
69
- 'slug' => 'rtmedia-support&tab=support'
70
- )
71
- );
72
- $tabs = apply_filters ( 'rtmedia_support_add_sub_tabs', $tabs );
73
- // Loop through tabs and build navigation
74
- $tabs_html = "";
75
- foreach ( array_values ( $tabs ) as $tab_data ) {
76
- $is_current = (bool) ( $tab_data[ 'slug' ] == (RTMediaAdmin::get_current_tab()."&tab=".$this->get_current_sub_tab () ) );
77
- $tab_class = $is_current ? $active_class : $idle_class;
78
- $tabs_html .= '<a href="' . $tab_data[ 'href' ] . '" class="' . $tab_class . '">' . $tab_data[ 'name' ] . '</a>';
79
- }
80
- // Output the tabs
81
- return $tabs_html;
82
83
- // // Do other fun things
84
- // do_action('bp_media_admin_tabs');
85
- }
86
87
function call_get_form () {
88
if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'rtmedia-support') {
89
- echo "<h2 class='nav-tab-wrapper'>".$this->rtmedia_support_sub_tabs()."</h2>";
90
if($this->curr_sub_tab == "support") {
91
echo "<div id='rtmedia_service_contact_container'><form name='rtmedia_service_contact_detail' method='post'>";
92
$this->get_form("premium_support");
@@ -95,11 +169,11 @@ if (!class_exists('RTMediaSupport')) {
95
}
96
}
97
98
- public function load_service_form() {
99
- if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'rtmedia-support') {
100
- add_action('rtmedia_admin_page_insert', array($this,'call_get_form'),11);
101
- }
102
- }
103
104
public function get_plugin_info() {
105
$active_plugins = (array) get_option( 'active_plugins', array() );
@@ -189,11 +263,11 @@ if (!class_exists('RTMediaSupport')) {
189
$this->debug_info = $debug_info;
190
}
191
192
- public function debug_info_html($page) {
193
- if ('rtmedia-support' == $page) {
194
?>
195
<div id="debug-info">
196
- <h3><?php _e('Debug info', 'rtmedia'); ?></h3>
197
<table class="form-table">
198
<tbody><?php
199
if ($this->debug_info) {
@@ -209,18 +283,42 @@ if (!class_exists('RTMediaSupport')) {
209
</tbody>
210
</table>
211
</div><?php
212
- }
213
}
214
215
/**
216
*
217
* @global type $current_user
218
* @param type $form
219
*/
220
- public function get_form($form) {
221
if (empty($form))
222
$form = (isset($_POST['form'])) ? $_POST['form'] : '';
223
-
224
global $current_user;
225
switch ($form) {
226
case "bug_report":
@@ -233,63 +331,74 @@ if (!class_exists('RTMediaSupport')) {
233
$meta_title = __('Submit a Premium Support Request', 'rtmedia');
234
break;
235
}
236
- ?>
237
- <h3><?php echo $meta_title; ?></h3>
238
- <div id="support-form" class="bp-media-form">
239
- <ul>
240
- <li>
241
- <label class="bp-media-label" for="name"><?php _e('Name', 'rtmedia'); ?>:</label><input class="bp-media-input" id="name" type="text" name="name" value="<?php echo (isset($_REQUEST['name'])) ? esc_attr(stripslashes(trim($_REQUEST['name']))) : $current_user->display_name; ?>" required />
242
- </li>
243
- <li>
244
- <label class="bp-media-label" for="email"><?php _e('Email', 'rtmedia'); ?>:</label><input id="email" class="bp-media-input" type="text" name="email" value="<?php echo (isset($_REQUEST['email'])) ? esc_attr(stripslashes(trim($_REQUEST['email']))) : get_option('admin_email'); ?>" required />
245
- </li>
246
- <li>
247
- <label class="bp-media-label" for="website"><?php _e('Website', 'rtmedia'); ?>:</label><input id="website" class="bp-media-input" type="text" name="website" value="<?php echo (isset($_REQUEST['website'])) ? esc_attr(stripslashes(trim($_REQUEST['website']))) : get_bloginfo('url'); ?>" required />
248
- </li>
249
- <li>
250
- <label class="bp-media-label" for="phone"><?php _e('Phone', 'rtmedia'); ?>:</label><input class="bp-media-input" id="phone" type="text" name="phone" value="<?php echo (isset($_REQUEST['phone'])) ? esc_attr(stripslashes(trim($_REQUEST['phone']))) : ''; ?>"/>
251
- </li>
252
- <li>
253
- <label class="bp-media-label" for="subject"><?php _e('Subject', 'rtmedia'); ?>:</label><input id="subject" class="bp-media-input" type="text" name="subject" value="<?php echo (isset($_REQUEST['subject'])) ? esc_attr(stripslashes(trim($_REQUEST['subject']))) : ''; ?>" required />
254
- </li>
255
- <li>
256
- <label class="bp-media-label" for="details"><?php _e('Details', 'rtmedia'); ?>:</label><textarea id="details" class="bp-media-textarea" type="text" name="details" required/><?php echo (isset($_REQUEST['details'])) ? esc_textarea(stripslashes(trim($_REQUEST['details']))) : ''; ?></textarea>
257
- </li>
258
- <input type="hidden" name="request_type" value="<?php echo $form; ?>"/>
259
- <input type="hidden" name="request_id" value="<?php echo wp_create_nonce(date('YmdHis')); ?>"/>
260
- <input type="hidden" name="server_address" value="<?php echo $_SERVER['SERVER_ADDR']; ?>"/>
261
- <input type="hidden" name="ip_address" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>"/>
262
- <input type="hidden" name="server_type" value="<?php echo $_SERVER['SERVER_SOFTWARE']; ?>"/>
263
- <input type="hidden" name="user_agent" value="<?php echo $_SERVER['HTTP_USER_AGENT']; ?>"/>
264
-
265
- </ul>
266
- </div><!-- .submit-bug-box --><?php if ($form == 'bug_report') { ?>
267
- <h3><?php _e('Additional Information', 'rtmedia'); ?></h3>
268
- <div id="support-form" class="bp-media-form">
269
- <ul>
270
-
271
- <li>
272
- <label class="bp-media-label" for="wp_admin_username"><?php _e('Your WP Admin Login:', 'rtmedia'); ?></label><input class="bp-media-input" id="wp_admin_username" type="text" name="wp_admin_username" value="<?php echo (isset($_REQUEST['wp_admin_username'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_username']))) : $current_user->user_login; ?>"/>
273
- </li>
274
- <li>
275
- <label class="bp-media-label" for="wp_admin_pwd"><?php _e('Your WP Admin password:', 'rtmedia'); ?></label><input class="bp-media-input" id="wp_admin_pwd" type="password" name="wp_admin_pwd" value="<?php echo (isset($_REQUEST['wp_admin_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_pwd']))) : ''; ?>"/>
276
- </li>
277
- <li>
278
- <label class="bp-media-label" for="ssh_ftp_host"><?php _e('Your SSH / FTP host:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_host" type="text" name="ssh_ftp_host" value="<?php echo (isset($_REQUEST['ssh_ftp_host'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_host']))) : ''; ?>"/>
279
- </li>
280
- <li>
281
- <label class="bp-media-label" for="ssh_ftp_username"><?php _e('Your SSH / FTP login:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_username" type="text" name="ssh_ftp_username" value="<?php echo (isset($_REQUEST['ssh_ftp_username'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_username']))) : ''; ?>"/>
282
- </li>
283
- <li>
284
- <label class="bp-media-label" for="ssh_ftp_pwd"><?php _e('Your SSH / FTP password:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_pwd" type="password" name="ssh_ftp_pwd" value="<?php echo (isset($_REQUEST['ssh_ftp_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_pwd']))) : ''; ?>"/>
285
- </li>
286
- </ul>
287
- </div><!-- .submit-bug-box --><?php } ?>
288
-
289
- <?php submit_button('Submit', 'primary', 'submit-request', false); ?>
290
- <?php submit_button('Cancel', 'secondary', 'cancel-request', false); ?>
291
-
292
- <?php
293
// if (DOING_AJAX) {
294
// die();
295
// }
16
if( !is_admin () ) {
17
return;
18
}
19
+
20
+ $this->curr_sub_tab = "support";
21
if(isset($_REQUEST['tab'])) {
22
$this->curr_sub_tab = $_REQUEST['tab'];
23
}
24
+ // if($init) {
25
+ // $this->debug_info();
26
+ // if($this->curr_sub_tab == "debug") {
27
+ // add_action('rtmedia_admin_page_insert', array($this, 'debug_info_html'), 20);
28
+ // }
29
+ // if($this->curr_sub_tab == "migration") {
30
+ // add_action('rtmedia_admin_page_insert', array($this, 'migration_html'), 20);
31
+ // }
32
+ // }
33
+ //add_action('admin_init', array($this,'load_service_form'),99);
34
}
35
36
+ public function get_support_content() {
37
+ $tabs = array();
38
+ global $rtmedia_admin;
39
+ $tabs[] = array(
40
+ 'title' => 'Premium Support',
41
+ 'name' => __('Premium Support', 'rtmedia'),
42
+ 'href' => '#support',
43
+ 'callback' => array($this, 'call_get_form')
44
+ );
45
+ $tabs[] = array(
46
+ 'title' => 'Debug Info',
47
+ 'name' => __('Debug Info', 'rtmedia'),
48
+ 'href' => '#debug',
49
+ 'callback' => array($this, 'debug_info_html')
50
+ );
51
+ $tabs[] = array(
52
+ 'title' => 'Migration',
53
+ 'name' => __('Migration', 'rtmedia'),
54
+ 'href' => '#migration',
55
+ 'callback' => array($this, 'migration_html')
56
+ );
57
+ ?>
58
+ <div id="rtm-support">
59
+ <ul>
60
+ <?php
61
+ foreach ($tabs as $tab) {?>
62
+ <li><a id="tab-<?php echo substr ( $tab[ 'href' ], 1 ); ?>" title="<?php echo $tab['title'] ?>" href="<?php echo $tab['href']; ?>" class="rtmedia-tab-title"><?php echo $tab['name']; ?></a></li>
63
+ <?php }
64
+ ?>
65
+ </ul>
66
+
67
+ <?php
68
+ foreach ($tabs as $tab) {
69
+ echo '<div id="' . substr($tab['href'],1) . '">';
70
+ call_user_func($tab['callback']);
71
+ echo '</div>';
72
+ }
73
+ ?>
74
+ </div>
75
+ <?php
76
+
77
+ }
78
+
79
+ public function render_support($page = '') {
80
+ global $wp_settings_sections, $wp_settings_fields;
81
+
82
+ if ( ! isset( $wp_settings_sections ) || !isset( $wp_settings_sections[$page] ) )
83
+ return;
84
+
85
+ foreach ( (array) $wp_settings_sections[$page] as $section ) {
86
+
87
+ if ( $section['callback'] )
88
+ call_user_func( $section['callback'], $section );
89
+
90
+ if ( ! isset( $wp_settings_fields ) || !isset( $wp_settings_fields[$page] ) || !isset( $wp_settings_fields[$page][$section['id']] ) )
91
+ continue;
92
+
93
+ echo '<table class="form-table">';
94
+ do_settings_fields( $page, $section['id'] );
95
+ echo '</table>';
96
+ }
97
+ }
98
+
99
public function service_selector() {
100
?>
101
<div>
115
//$this->get_form("premium_support");
116
}
117
118
+ // public function get_current_sub_tab() {
119
+ // return isset ( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : "support";
120
+ // }
121
122
+ // public function rtmedia_support_sub_tabs ( $active_tab = '' ) {
123
+ // // Declare local variables
124
+ // $tabs_html = '';
125
+ // $idle_class = 'nav-tab';
126
+ // $active_class = 'nav-tab nav-tab-active';
127
+ //
128
+ // // Setup core admin tabs
129
+ // $tabs = array(
130
+ // array(
131
+ // 'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=support",
132
+ // 'name' => __ ( 'Premium Support', 'rtmedia' ),
133
+ // 'slug' => 'rtmedia-support&tab=support'
134
+ // ),
135
+ // array(
136
+ // 'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=debug",
137
+ // 'name' => __ ( 'Debug Info', 'rtmedia' ),
138
+ // 'slug' => 'rtmedia-support&tab=debug'
139
+ // ),
140
+ // array(
141
+ // 'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=migration",
142
+ // 'name' => __ ( 'Migration', 'rtmedia' ),
143
+ // 'slug' => 'rtmedia-support&tab=migration'
144
+ // )
145
+ // );
146
+ // $tabs = apply_filters ( 'rtmedia_support_add_sub_tabs', $tabs );
147
+ // // Loop through tabs and build navigation
148
+ // $tabs_html = "";
149
+ // foreach ( array_values ( $tabs ) as $tab_data ) {
150
+ // $is_current = (bool) ( $tab_data[ 'slug' ] == (RTMediaAdmin::get_current_tab()."&tab=".$this->get_current_sub_tab () ) );
151
+ // $tab_class = $is_current ? $active_class : $idle_class;
152
+ // $tabs_html .= '<a href="' . $tab_data[ 'href' ] . '" class="' . $tab_class . '">' . $tab_data[ 'name' ] . '</a>';
153
+ // }
154
+ // // Output the tabs
155
+ // return $tabs_html;
156
+ //
157
+ //// // Do other fun things
158
+ //// do_action('bp_media_admin_tabs');
159
+ // }
160
161
function call_get_form () {
162
if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'rtmedia-support') {
163
+ //echo "<h2 class='nav-tab-wrapper'>".$this->rtmedia_support_sub_tabs()."</h2>";
164
if($this->curr_sub_tab == "support") {
165
echo "<div id='rtmedia_service_contact_container'><form name='rtmedia_service_contact_detail' method='post'>";
166
$this->get_form("premium_support");
169
}
170
}
171
172
+ // public function load_service_form() {
173
+ // if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'rtmedia-support') {
174
+ // add_action('rtmedia_admin_page_insert', array($this,'call_get_form'),11);
175
+ // }
176
+ // }
177
178
public function get_plugin_info() {
179
$active_plugins = (array) get_option( 'active_plugins', array() );
263
$this->debug_info = $debug_info;
264
}
265
266
+ public function debug_info_html() {
267
+ $this->debug_info();
268
?>
269
<div id="debug-info">
270
+
271
<table class="form-table">
272
<tbody><?php
273
if ($this->debug_info) {
283
</tbody>
284
</table>
285
</div><?php
286
+
287
}
288
289
+ public function migration_html($page = '') {
290
+ $pending_rtmedia_migrate = get_site_option ( "rtMigration-pending-count" );
291
+
292
+ $content = " ";
293
+ $flag = true;
294
+ if( ( $pending_rtmedia_migrate === false || $pending_rtmedia_migrate == 0 ) ) {
295
+ $content.= __('There is no media found to migrate.','rtmedia');
296
+ $flag = false;
297
+ }
298
+ $content = apply_filters("rtmedia_migration_content_filter", $content);
299
+ if( $flag ) {
300
+ $content.= ' <div class="rtmedia-migration-support">';
301
+ $content.=' <p>'.__('Click','rtmedia').' <a href="'.get_admin_url().'admin.php?page=rtmedia-migration">'. _e('here','rtmedia').'</a>'. __('here to migrate media from rtMedia 2.x to rtMedia 3.0+.','rtmedia').'</p>';
302
+ $content.='</div>';
303
+ }
304
+ ?>
305
+ <div id="rtmedia-migration-html">
306
+ <?php echo $content; ?>
307
+ </div>
308
+ <?php
309
+ }
310
+
311
/**
312
*
313
* @global type $current_user
314
* @param type $form
315
*/
316
+ public function get_form($form = '') {
317
if (empty($form))
318
$form = (isset($_POST['form'])) ? $_POST['form'] : '';
319
+ if($form == "") {
320
+ $form = "premium_support";
321
+ }
322
global $current_user;
323
switch ($form) {
324
case "bug_report":
331
$meta_title = __('Submit a Premium Support Request', 'rtmedia');
332
break;
333
}
334
+
335
+ if($form == "premium_support") {
336
+ if(! defined("RTMEDIA_PRO_VERSION")) {
337
+ $content = '<p>' . __('If your site has some issues due to BuddyPress Media and you want one on one support then you can create a support topic on the <a target="_blank" href="http://rtcamp.com/groups/buddypress-media/forum/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media">rtCamp Support Forum</a>.', 'rtmedia') . '</p>';
338
+ $content.= '<p>' . __('If you have any suggestions, enhancements or bug reports, then you can open a new issue on <a target="_blank" href="https://github.com/rtCamp/buddypress-media/issues/new">GitHub</a>.', 'rtmedia') . '</p>';
339
+
340
+ echo $content;
341
+
342
+ } else {
343
+ ?>
344
+ <h3><?php echo $meta_title; ?></h3>
345
+ <div id="support-form" class="bp-media-form">
346
+ <ul>
347
+ <li>
348
+ <label class="bp-media-label" for="name"><?php _e('Name', 'rtmedia'); ?>:</label><input class="bp-media-input" id="name" type="text" name="name" value="<?php echo (isset($_REQUEST['name'])) ? esc_attr(stripslashes(trim($_REQUEST['name']))) : $current_user->display_name; ?>" required />
349
+ </li>
350
+ <li>
351
+ <label class="bp-media-label" for="email"><?php _e('Email', 'rtmedia'); ?>:</label><input id="email" class="bp-media-input" type="text" name="email" value="<?php echo (isset($_REQUEST['email'])) ? esc_attr(stripslashes(trim($_REQUEST['email']))) : get_option('admin_email'); ?>" required />
352
+ </li>
353
+ <li>
354
+ <label class="bp-media-label" for="website"><?php _e('Website', 'rtmedia'); ?>:</label><input id="website" class="bp-media-input" type="text" name="website" value="<?php echo (isset($_REQUEST['website'])) ? esc_attr(stripslashes(trim($_REQUEST['website']))) : get_bloginfo('url'); ?>" required />
355
+ </li>
356
+ <li>
357
+ <label class="bp-media-label" for="phone"><?php _e('Phone', 'rtmedia'); ?>:</label><input class="bp-media-input" id="phone" type="text" name="phone" value="<?php echo (isset($_REQUEST['phone'])) ? esc_attr(stripslashes(trim($_REQUEST['phone']))) : ''; ?>"/>
358
+ </li>
359
+ <li>
360
+ <label class="bp-media-label" for="subject"><?php _e('Subject', 'rtmedia'); ?>:</label><input id="subject" class="bp-media-input" type="text" name="subject" value="<?php echo (isset($_REQUEST['subject'])) ? esc_attr(stripslashes(trim($_REQUEST['subject']))) : ''; ?>" required />
361
+ </li>
362
+ <li>
363
+ <label class="bp-media-label" for="details"><?php _e('Details', 'rtmedia'); ?>:</label><textarea id="details" class="bp-media-textarea" type="text" name="details" required/><?php echo (isset($_REQUEST['details'])) ? esc_textarea(stripslashes(trim($_REQUEST['details']))) : ''; ?></textarea>
364
+ </li>
365
+ <input type="hidden" name="request_type" value="<?php echo $form; ?>"/>
366
+ <input type="hidden" name="request_id" value="<?php echo wp_create_nonce(date('YmdHis')); ?>"/>
367
+ <input type="hidden" name="server_address" value="<?php echo $_SERVER['SERVER_ADDR']; ?>"/>
368
+ <input type="hidden" name="ip_address" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>"/>
369
+ <input type="hidden" name="server_type" value="<?php echo $_SERVER['SERVER_SOFTWARE']; ?>"/>
370
+ <input type="hidden" name="user_agent" value="<?php echo $_SERVER['HTTP_USER_AGENT']; ?>"/>
371
+
372
+ </ul>
373
+ </div><!-- .submit-bug-box --><?php if ($form == 'bug_report') { ?>
374
+ <h3><?php _e('Additional Information', 'rtmedia'); ?></h3>
375
+ <div id="support-form" class="bp-media-form">
376
+ <ul>
377
+
378
+ <li>
379
+ <label class="bp-media-label" for="wp_admin_username"><?php _e('Your WP Admin Login:', 'rtmedia'); ?></label><input class="bp-media-input" id="wp_admin_username" type="text" name="wp_admin_username" value="<?php echo (isset($_REQUEST['wp_admin_username'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_username']))) : $current_user->user_login; ?>"/>
380
+ </li>
381
+ <li>
382
+ <label class="bp-media-label" for="wp_admin_pwd"><?php _e('Your WP Admin password:', 'rtmedia'); ?></label><input class="bp-media-input" id="wp_admin_pwd" type="password" name="wp_admin_pwd" value="<?php echo (isset($_REQUEST['wp_admin_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_pwd']))) : ''; ?>"/>
383
+ </li>
384
+ <li>
385
+ <label class="bp-media-label" for="ssh_ftp_host"><?php _e('Your SSH / FTP host:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_host" type="text" name="ssh_ftp_host" value="<?php echo (isset($_REQUEST['ssh_ftp_host'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_host']))) : ''; ?>"/>
386
+ </li>
387
+ <li>
388
+ <label class="bp-media-label" for="ssh_ftp_username"><?php _e('Your SSH / FTP login:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_username" type="text" name="ssh_ftp_username" value="<?php echo (isset($_REQUEST['ssh_ftp_username'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_username']))) : ''; ?>"/>
389
+ </li>
390
+ <li>
391
+ <label class="bp-media-label" for="ssh_ftp_pwd"><?php _e('Your SSH / FTP password:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_pwd" type="password" name="ssh_ftp_pwd" value="<?php echo (isset($_REQUEST['ssh_ftp_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_pwd']))) : ''; ?>"/>
392
+ </li>
393
+ </ul>
394
+ </div><!-- .submit-bug-box --><?php } ?>
395
+
396
+ <?php submit_button('Submit', 'primary', 'submit-request', false); ?>
397
+ <?php submit_button('Cancel', 'secondary', 'cancel-request', false); ?>
398
+ <?php
399
+ }
400
+ }
401
+
402
// if (DOING_AJAX) {
403
// die();
404
// }
app/importers/RTMediaMigration.php CHANGED
@@ -75,7 +75,7 @@ class RTMediaMigration {
75
}
76
77
function menu () {
78
- add_submenu_page ( 'rtmedia-settings', __ ( 'Migration', 'buddypress-media' ), __ ( 'Migration', 'buddypress-media' ), 'manage_options', 'rtmedia-migration', array( $this, 'test' ) );
79
}
80
81
function get_total_count () {
@@ -387,6 +387,12 @@ class RTMediaMigration {
387
?>
388
<script type="text/javascript">
389
jQuery(document).ready(function(e) {
390
if (db_total < 1)
391
jQuery("#submit").attr('disabled', "disabled");
392
})
75
}
76
77
function menu () {
78
+ add_submenu_page ( 'rtmedia-setting', __ ( 'Migration', 'buddypress-media' ), __ ( 'Migration', 'buddypress-media' ), 'manage_options', 'rtmedia-migration', array( $this, 'test' ) );
79
}
80
81
function get_total_count () {
387
?>
388
<script type="text/javascript">
389
jQuery(document).ready(function(e) {
390
+ jQuery("#toplevel_page_rtmedia-settings").addClass("wp-has-current-submenu")
391
+ jQuery("#toplevel_page_rtmedia-settings").removeClass("wp-not-current-submenu")
392
+ jQuery("#toplevel_page_rtmedia-settings").addClass("wp-menu-open")
393
+ jQuery("#toplevel_page_rtmedia-settings>a").addClass("wp-menu-open")
394
+ jQuery("#toplevel_page_rtmedia-settings>a").addClass("wp-has-current-submenu")
395
+
396
if (db_total < 1)
397
jQuery("#submit").attr('disabled', "disabled");
398
})
app/main/controllers/media/RTMediaMedia.php CHANGED
@@ -352,7 +352,11 @@ class RTMediaMedia {
352
if ( $uploaded[ 'album_id' ] ) {
353
$model = new RTMediaModel();
354
$parent_details = $model->get ( array( 'id' => $uploaded[ 'album_id' ] ) );
355
- $album_id = $parent_details[ 0 ]->media_id;
356
} else {
357
$album_id = 0;
358
}
@@ -456,7 +460,7 @@ class RTMediaMedia {
456
foreach ( $attachment_ids as $id ) {
457
$attachment = get_post ( $id, ARRAY_A );
458
$mime_type = explode ( '/', $attachment[ 'post_mime_type' ] );
459
-
460
$media = array(
461
'blog_id' => $blog_id,
462
'media_id' => $id,
352
if ( $uploaded[ 'album_id' ] ) {
353
$model = new RTMediaModel();
354
$parent_details = $model->get ( array( 'id' => $uploaded[ 'album_id' ] ) );
355
+ if(is_array($parent_details) && sizeof($parent_details) > 0 ) {
356
+ $album_id = $parent_details[ 0 ]->media_id;
357
+ } else {
358
+ $album_id = 0;
359
+ }
360
} else {
361
$album_id = 0;
362
}
460
foreach ( $attachment_ids as $id ) {
461
$attachment = get_post ( $id, ARRAY_A );
462
$mime_type = explode ( '/', $attachment[ 'post_mime_type' ] );
463
+
464
$media = array(
465
'blog_id' => $blog_id,
466
'media_id' => $id,
app/main/controllers/template/RTMediaNav.php CHANGED
@@ -62,10 +62,11 @@ class RTMediaNav {
62
function admin_nav () {
63
global $wp_admin_bar;
64
65
- if ( ! function_exists ( "bp_use_wp_admin_bar" ) )
66
return;
67
// Bail if this is an ajax request
68
- if ( ! bp_use_wp_admin_bar () || defined ( 'DOING_AJAX' ) )
69
return;
70
// Only add menu for logged in user
71
if ( is_user_logged_in () ) {
62
function admin_nav () {
63
global $wp_admin_bar;
64
65
+ if ( function_exists ( "bp_use_wp_admin_bar" ) && ! bp_use_wp_admin_bar () )
66
return;
67
+
68
// Bail if this is an ajax request
69
+ if ( defined ( 'DOING_AJAX' ) )
70
return;
71
// Only add menu for logged in user
72
if ( is_user_logged_in () ) {
app/main/controllers/template/rt-template-functions.php CHANGED
@@ -152,7 +152,10 @@ function rtmedia_id ( $media_id = false ) {
152
if ( $media_id ) {
153
$model = new RTMediaModel();
154
$media = $model->get_media ( array( 'media_id' => $media_id ), 0, 1 );
155
- return $media[ 0 ]->id;
156
} else {
157
global $rtmedia_media;
158
return $rtmedia_media->id;
@@ -1407,3 +1410,122 @@ function get_music_cover_art($file, $id) {
1407
$mediaObj->model->update ( array( 'cover_art' => "-1" ), array( 'id' => $id ) );
1408
return false;
1409
}
152
if ( $media_id ) {
153
$model = new RTMediaModel();
154
$media = $model->get_media ( array( 'media_id' => $media_id ), 0, 1 );
155
+ if(isset($media) && sizeof($media) > 0 ) {
156
+ return $media[ 0 ]->id;
157
+ }
158
+ return false;
159
} else {
160
global $rtmedia_media;
161
return $rtmedia_media->id;
1410
$mediaObj->model->update ( array( 'cover_art' => "-1" ), array( 'id' => $id ) );
1411
return false;
1412
}
1413
+
1414
+ add_filter("media_add_tabs","rtmedia_admin_premium_tab", 99, 1);
1415
+ function rtmedia_admin_premium_tab($tabs) {
1416
+ if(sizeof($tabs) == 0) {
1417
+ $tabs = array();
1418
+ }
1419
+ $tabs[] = array(
1420
+ 'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-premium' ), 'admin.php' ) ),
1421
+ 'name' => __ ( 'Premium', 'rtmedia' ),
1422
+ 'slug' => 'rtmedia-premium',
1423
+ 'class' => array('rtm-premium')
1424
+ );
1425
+ return $tabs;
1426
+ }
1427
+
1428
+ add_action("rtmedia_admin_page_insert", "rtmedia_admin_premium_page", 99, 1);
1429
+
1430
+ function rtmedia_admin_premium_page($page) {
1431
+ if ('rtmedia-premium' == $page) {
1432
+ ?>
1433
+ <div class="premium-page-container">
1434
+ <div class="row">
1435
+ <h1 class="premium-title">17 Reasons to buy rtMedia-PRO</h1>
1436
+ </div>
1437
+ <div class="row">
1438
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-user icon-3x"></i></div>
1439
+ <div class="columns large-10">
1440
+ <h2>bbPress Attachment</h2>
1441
+ <p>You can attach files to bbPress topic and reply.</p>
1442
+ </div>
1443
+ </div>
1444
+ <div class="row">
1445
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-file icon-3x"></i></div>
1446
+ <div class="columns large-10">
1447
+ <h2>Document Support</h2>
1448
+ <p>You can add, view and download documents like txt, doc, pdf, also add and upload other file types like zip, tar and tar.gz etc.</p>
1449
+ </div>
1450
+ </div>
1451
+ <div class="row">
1452
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-gamepad icon-3x"></i></div>
1453
+ <div class="columns large-10">
1454
+ <h2>CubePoints & MyCRED Integration</h2>
1455
+ <p>Integrating CubePoints/myCRED with rtMedia, you can reward users with virtual points on rtMedia activities.</p>
1456
+ </div>
1457
+ </div>
1458
+ <div class="row">
1459
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-lock icon-3x"></i></div>
1460
+ <div class="columns large-10">
1461
+ <h2>Album Privacy</h2>
1462
+ <p>This will allow you to set album privacy while creating albums or change album privacy with editing albums too.</p>
1463
+ </div>
1464
+ </div>
1465
+ <div class="row">
1466
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-play icon-3x"></i></div>
1467
+ <div class="columns large-10">
1468
+ <h2>Audio Playlist</h2>
1469
+ <p>With this feature you can create your audio playlists and listen to your favorite music at will.</p>
1470
+ </div>
1471
+ </div>
1472
+ <div class="row">
1473
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-warning-sign icon-3x"></i></div>
1474
+ <div class="columns large-10">
1475
+ <h2>Report Button & Moderation Tools</h2>
1476
+ <p>Users can report media if they find it offensive. Set number of reports to automatically take down media.</p>
1477
+ </div>
1478
+ </div>
1479
+ <div class="row">
1480
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-download-alt icon-3x"></i></div>
1481
+ <div class="columns large-10">
1482
+ <h2>Download Button For Media</h2>
1483
+ <p>Users can download photos, videos and music. Admin has option to allow download the media.</p>
1484
+ </div>
1485
+ </div>
1486
+ <div class="row">
1487
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-align-right icon-3x"></i></div>
1488
+ <div class="columns large-10">
1489
+ <h2>Sidebar widgets</h2>
1490
+ <p>These will let you display a gallery or an uploader in a sidebar. Several of them can be used in a single sidebar.</p>
1491
+ </div>
1492
+ </div>
1493
+ <div class="row">
1494
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-edit icon-3x"></i></div>
1495
+ <div class="columns large-10">
1496
+ <h2>Post-editor button</h2>
1497
+ <p>With this button, a UI appears to quickly generate shortcodes for special pages like ‘Editorial Picks’.</p>
1498
+ </div>
1499
+ </div>
1500
+ <div class="row">
1501
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-star icon-3x"></i></div>
1502
+ <div class="columns large-10">
1503
+ <h2>Star-Rating option</h2>
1504
+ <p>Users can give up to five stars to rate media. This data can be used for ‘Most Rated Media’ in sidebars.</p>
1505
+ </div>
1506
+ </div>
1507
+ <div class="row">
1508
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-picture icon-3x"></i></div>
1509
+ <div class="columns large-10">
1510
+ <h2>Global Albums</h2>
1511
+ <p>Multiple global albums can be created beforehand. One of these can be chosen as the default album.</p>
1512
+ </div>
1513
+ </div>
1514
+ <div class="row">
1515
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-wrench icon-3x"></i></div>
1516
+ <div class="columns large-10">
1517
+ <h2>Premium one-to-one support</h2>
1518
+ <p>Without leaving your WordPress dashboard, you can contact us for help using a support form.</p>
1519
+ </div>
1520
+ </div>
1521
+ <div class="row">
1522
+ <div class="columns large-1 rtm-premium-icon-pro"><i class="icon-code icon-3x"></i></div>
1523
+ <div class="columns large-10">
1524
+ <h2>Premium & Open-Source</h2>
1525
+ <p>Developers get full control over rtMedia-PRO’s source. They’ll get access to <a href="http://git.rtcamp.com/" target="_blank">git.rtcamp.com</a> to dive into the code.</p>
1526
+ </div>
1527
+ </div>
1528
+ </div>
1529
+ <?php
1530
+ }
1531
+ }
app/main/controllers/upload/RTMediaUploadEndpoint.php CHANGED
@@ -25,13 +25,15 @@ class RTMediaUploadEndpoint {
25
include get_404_template ();
26
} else {
27
$nonce = $_REQUEST[ 'rtmedia_upload_nonce' ];
28
- $mode = $_REQUEST[ 'mode' ];
29
$rtupload = false;
30
$activity_id = -1;
31
if ( wp_verify_nonce ( $nonce, 'rtmedia_upload_nonce' ) ) {
32
$model = new RTMediaUploadModel();
33
$this->upload = $model->set_post_object ();
34
- if ( isset ( $_POST[ 'activity_id' ] ) && $_POST[ 'activity_id' ] != -1 ) {
35
$this->upload[ 'activity_id' ] = $_POST[ 'activity_id' ];
36
$activity_id = $_POST[ 'activity_id' ];
37
}
@@ -40,41 +42,47 @@ class RTMediaUploadEndpoint {
40
$media = $mediaObj->model->get ( array( 'id' => $rtupload->media_ids[ 0 ] ) );
41
$rtMediaNav = new RTMediaNav();
42
$perma_link = "";
43
- $perma_link = get_rtmedia_permalink($rtupload->media_ids[ 0 ]);
44
- if($media[0]->media_type == "photo") {
45
- $thumb_image = rtmedia_image("rt_media_thumbnail", $rtupload->media_ids[ 0 ], false);
46
- } elseif( $media[0]->media_type == "music" ) {
47
- $thumb_image = $media[0]->cover_art;
48
- } else {
49
- $thumb_image = "";
50
- }
51
-
52
- if ( $media[ 0 ]->context == "group" ) {
53
- $rtMediaNav->refresh_counts ( $media[ 0 ]->context_id, array( "context" => $media[ 0 ]->context, 'context_id' => $media[ 0 ]->context_id ) );
54
- } else {
55
- $rtMediaNav->refresh_counts ( $media[ 0 ]->media_author, array( "context" => "profile", 'media_author' => $media[ 0 ]->media_author ) );
56
- }
57
- if ( $activity_id == -1 && ( ! (isset ( $_POST[ "rtmedia_update" ] ) && $_POST[ "rtmedia_update" ] == "true")) ) {
58
- $activity_id = $mediaObj->insert_activity ( $media[ 0 ]->media_id, $media[ 0 ] );
59
- } else {
60
- $mediaObj->model->update ( array( 'activity_id' => $activity_id ), array( 'id' => $rtupload->media_ids[ 0 ] ) );
61
- //
62
- $same_medias = $mediaObj->model->get ( array( 'activity_id' => $activity_id ) );
63
64
- $update_activity_media = Array( );
65
- foreach ( $same_medias as $a_media ) {
66
- $update_activity_media[ ] = $a_media->id;
67
- }
68
- $privacy = 0;
69
- if ( isset ( $_POST[ "privacy" ] ) ) {
70
- $privacy = $_POST[ "privacy" ];
71
- }
72
- $objActivity = new RTMediaActivity ( $update_activity_media, $privacy, false );
73
- global $wpdb, $bp;
74
- $wpdb->update ( $bp->activity->table_name, array( "type" => "rtmedia_update", "content" => $objActivity->create_activity_html () ), array( "id" => $activity_id ) );
75
- }
76
}
77
-
78
$redirect_url = "";
79
if ( isset ( $_POST[ "redirect" ] ) && is_numeric ( $_POST[ "redirect" ] ) ) {
80
if ( intval ( $_POST[ "redirect" ] ) > 1 ) {
25
include get_404_template ();
26
} else {
27
$nonce = $_REQUEST[ 'rtmedia_upload_nonce' ];
28
+ if(isset($_REQUEST[ 'mode' ])) {
29
+ $mode = $_REQUEST[ 'mode' ];
30
+ }
31
$rtupload = false;
32
$activity_id = -1;
33
if ( wp_verify_nonce ( $nonce, 'rtmedia_upload_nonce' ) ) {
34
$model = new RTMediaUploadModel();
35
$this->upload = $model->set_post_object ();
36
+ if ( isset ( $_POST[ 'activity_id' ] ) && $_POST[ 'activity_id' ] != -1 ) {
37
$this->upload[ 'activity_id' ] = $_POST[ 'activity_id' ];
38
$activity_id = $_POST[ 'activity_id' ];
39
}
42
$media = $mediaObj->model->get ( array( 'id' => $rtupload->media_ids[ 0 ] ) );
43
$rtMediaNav = new RTMediaNav();
44
$perma_link = "";
45
+ if(isset($media) && sizeof($media) > 0) {
46
+ $perma_link = get_rtmedia_permalink($media[0]->id);
47
+ if($media[0]->media_type == "photo") {
48
+ $thumb_image = rtmedia_image("rt_media_thumbnail", $rtupload->media_ids[ 0 ], false);
49
+ } elseif( $media[0]->media_type == "music" ) {
50
+ $thumb_image = $media[0]->cover_art;
51
+ } else {
52
+ $thumb_image = "";
53
+ }
54
55
+ if ( $media[ 0 ]->context == "group" ) {
56
+ $rtMediaNav->refresh_counts ( $media[ 0 ]->context_id, array( "context" => $media[ 0 ]->context, 'context_id' => $media[ 0 ]->context_id ) );
57
+ } else {
58
+ $rtMediaNav->refresh_counts ( $media[ 0 ]->media_author, array( "context" => "profile", 'media_author' => $media[ 0 ]->media_author ) );
59
+ }
60
+ if ( $activity_id == -1 && ( ! (isset ( $_POST[ "rtmedia_update" ] ) && $_POST[ "rtmedia_update" ] == "true")) ) {
61
+ $activity_id = $mediaObj->insert_activity ( $media[ 0 ]->media_id, $media[ 0 ] );
62
+ } else {
63
+ $mediaObj->model->update ( array( 'activity_id' => $activity_id ), array( 'id' => $rtupload->media_ids[ 0 ] ) );
64
+ //
65
+ $same_medias = $mediaObj->model->get ( array( 'activity_id' => $activity_id ) );
66
+
67
+ $update_activity_media = Array( );
68
+ foreach ( $same_medias as $a_media ) {
69
+ $update_activity_media[ ] = $a_media->id;
70
+ }
71
+ $privacy = 0;
72
+ if ( isset ( $_POST[ "privacy" ] ) ) {
73
+ $privacy = $_POST[ "privacy" ];
74
+ }
75
+ $objActivity = new RTMediaActivity ( $update_activity_media, $privacy, false );
76
+ global $wpdb, $bp;
77
+ $wpdb->update ( $bp->activity->table_name, array( "type" => "rtmedia_update", "content" => $objActivity->create_activity_html () ), array( "id" => $activity_id ) );
78
+ }
79
+
80
+ }
81
+ if(isset($this->upload['rtmedia_simple_file_upload']) && $this->upload['rtmedia_simple_file_upload'] == true ) {
82
+ return $media;
83
+ }
84
}
85
+
86
$redirect_url = "";
87
if ( isset ( $_POST[ "redirect" ] ) && is_numeric ( $_POST[ "redirect" ] ) ) {
88
if ( intval ( $_POST[ "redirect" ] ) > 1 ) {
app/main/controllers/upload/processors/RTMediaUploadFile.php CHANGED
@@ -40,28 +40,30 @@ class RTMediaUploadFile {
40
$upload_type = $this->fake ? 'wp_handle_sideload' : 'wp_handle_upload';
41
42
add_filter ( 'upload_dir', array( $this, 'upload_dir' ) );
43
- foreach ( $this->files as $key => $file ) {
44
45
- $uploaded_file[ ] = $upload_type ( $file, array( 'test_form' => false ) );
46
- try {
47
- if ( isset ( $uploaded_file[ $key ][ 'error' ] ) || $uploaded_file[ $key ] === null ) {
48
- array_pop ( $uploaded_file );
49
50
- throw new RTMediaUploadException ( 0, __ ( 'Error Uploading File', 'rtmedia' ) );
51
- }
52
- $uploaded_file[ $key ][ 'name' ] = $file[ 'name' ];
53
- } catch ( RTMediaUploadException $e ) {
54
- echo $e->getMessage ();
55
- }
56
-
57
- if ( strpos ( $file[ 'type' ], 'image' ) !== false ) {
58
- if ( function_exists ( 'read_exif_data' ) ) {
59
- $file = $this->exif ( $uploaded_file[ $key ] );
60
- }
61
- }
62
- }
63
64
- return $uploaded_file;
65
}
66
67
function upload_dir ( $upload_dir ) {
@@ -94,6 +96,8 @@ class RTMediaUploadFile {
94
. 'rtMedia/' . $rtmedia_upload_prefix . $id
95
. $upload_dir[ 'subdir' ];
96
97
return $upload_dir;
98
}
99
40
$upload_type = $this->fake ? 'wp_handle_sideload' : 'wp_handle_upload';
41
42
add_filter ( 'upload_dir', array( $this, 'upload_dir' ) );
43
+ if(isset($this->files) && sizeof($this->files) > 0) {
44
+ foreach ( $this->files as $key => $file ) {
45
46
+ $uploaded_file[ ] = $upload_type ( $file, array( 'test_form' => false ) );
47
+ try {
48
+ if ( isset ( $uploaded_file[ $key ][ 'error' ] ) || $uploaded_file[ $key ] === null ) {
49
+ array_pop ( $uploaded_file );
50
51
+ throw new RTMediaUploadException ( 0, __ ( 'Error Uploading File', 'rtmedia' ) );
52
+ }
53
+ $uploaded_file[ $key ][ 'name' ] = $file[ 'name' ];
54
+ } catch ( RTMediaUploadException $e ) {
55
+ echo $e->getMessage ();
56
+ }
57
58
+ if ( strpos ( $file[ 'type' ], 'image' ) !== false ) {
59
+ if ( function_exists ( 'read_exif_data' ) ) {
60
+ $file = $this->exif ( $uploaded_file[ $key ] );
61
+ }
62
+ }
63
+ }
64
+ return $uploaded_file;
65
+ }
66
+ return false;
67
}
68
69
function upload_dir ( $upload_dir ) {
96
. 'rtMedia/' . $rtmedia_upload_prefix . $id
97
. $upload_dir[ 'subdir' ];
98
99
+ $upload_dir = apply_filters("rtmedia_filter_upload_dir",$upload_dir);
100
+
101
return $upload_dir;
102
}
103
app/main/routers/RTMediaRouter.php CHANGED
@@ -184,13 +184,24 @@ function rt_theme_compat_reset_post( $args = array() ) {
184
global $wp_query, $post;
185
186
// Switch defaults if post is set
187
- if ( isset( $wp_query->post ) ) {
188
$dummy = wp_parse_args( $args, array(
189
'ID' => $wp_query->post->ID,
190
'post_status' => $wp_query->post->post_status,
191
'post_author' => $wp_query->post->post_author,
192
'post_parent' => $wp_query->post->post_parent,
193
- 'post_type' => $wp_query->post->post_type,
194
'post_date' => $wp_query->post->post_date,
195
'post_date_gmt' => $wp_query->post->post_date_gmt,
196
'post_modified' => $wp_query->post->post_modified,
@@ -217,7 +228,7 @@ function rt_theme_compat_reset_post( $args = array() ) {
217
'is_archive' => false,
218
'is_tax' => false,
219
) );
220
- } else {
221
$dummy = wp_parse_args( $args, array(
222
'ID' => 0,
223
'post_status' => 'public',
@@ -260,6 +271,18 @@ function rt_theme_compat_reset_post( $args = array() ) {
260
if("bp-default" != get_option( 'stylesheet' ))
261
$dummy['post_title'] = '<a href="' . bp_get_displayed_user_link() . '">' . bp_get_displayed_user_fullname() . '</a>';
262
}
263
}
264
265
184
global $wp_query, $post;
185
186
// Switch defaults if post is set
187
+ global $rtmedia_query;
188
+ if ( isset( $wp_query->post ) ) {
189
+ if(isset($rtmedia_query->query) && isset( $rtmedia_query->query["media_type"] ) && $rtmedia_query->query["media_type"] == "album" && isset( $rtmedia_query->media_query["album_id"])){
190
+ foreach($rtmedia_query->album as $al){
191
+ if($al->id == $rtmedia_query->media_query["album_id"]){
192
+ $wp_query->post = get_post($al->media_id);
193
+ break;
194
+ }
195
+ }
196
+ }else if( isset($rtmedia_query->media) && count($rtmedia_query->media) == 1 ){
197
+ $wp_query->post = get_post($rtmedia_query->media[0]->media_id);
198
+ }
199
$dummy = wp_parse_args( $args, array(
200
'ID' => $wp_query->post->ID,
201
'post_status' => $wp_query->post->post_status,
202
'post_author' => $wp_query->post->post_author,
203
'post_parent' => $wp_query->post->post_parent,
204
+ 'post_type' => 'rtmedia', //$wp_query->post->post_type,
205
'post_date' => $wp_query->post->post_date,
206
'post_date_gmt' => $wp_query->post->post_date_gmt,
207
'post_modified' => $wp_query->post->post_modified,
228
'is_archive' => false,
229
'is_tax' => false,
230
) );
231
+ } else {
232
$dummy = wp_parse_args( $args, array(
233
'ID' => 0,
234
'post_status' => 'public',
271
if("bp-default" != get_option( 'stylesheet' ))
272
$dummy['post_title'] = '<a href="' . bp_get_displayed_user_link() . '">' . bp_get_displayed_user_fullname() . '</a>';
273
}
274
+ }else{
275
+ global $rtmedia_query;
276
+ $dummy['comment_status'] = 'closed';
277
+ if(isset($rtmedia_query->media_query)){
278
+ if(isset($rtmedia_query->media_query["media_author"])){
279
+ $dummy["post_author"] =$rtmedia_query->media_query["media_author"];
280
+ }
281
+ if(isset($rtmedia_query->media_query["id"])){
282
+ //var_dump($rtmedia_query);
283
+ //echo $rtmedia_query->media_query["id"];
284
+ }
285
+ }
286
}
287
288
index.php CHANGED
@@ -4,7 +4,7 @@
4
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
6
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
7
- Version: 3.2.5
8
Author: rtCamp
9
Text Domain: rtmedia
10
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
4
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
6
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
7
+ Version: 3.2.6
8
Author: rtCamp
9
Text Domain: rtmedia
10
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
languages/rtmedia-nl_NL.mo CHANGED
Binary file
languages/rtmedia.mo CHANGED
Binary file
languages/rtmedia.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: BuddyPress Media\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-10-17 21:39+0530\n"
6
- "PO-Revision-Date: 2013-10-17 21:39+0530\n"
7
"Last-Translator: faishal <faishal.saiyed@rtcamp.com>\n"
8
"Language-Team: rtCamp <info@rtcamp.com>\n"
9
"Language: en_IN\n"
@@ -15,219 +15,228 @@ msgstr ""
15
"X-Generator: Poedit 1.5.7\n"
16
"X-Poedit-SearchPath-0: .\n"
17
18
- #: app/admin/RTMediaAdmin.php:95
19
msgid "Media Stats"
20
msgstr ""
21
22
- #: app/admin/RTMediaAdmin.php:117
23
msgid "Usage Stats"
24
msgstr ""
25
26
- #: app/admin/RTMediaAdmin.php:125
27
msgid "Total "
28
msgstr ""
29
30
- #: app/admin/RTMediaAdmin.php:133
31
msgid "With Media"
32
msgstr ""
33
34
- #: app/admin/RTMediaAdmin.php:141
35
msgid "Comments "
36
msgstr ""
37
38
- #: app/admin/RTMediaAdmin.php:149
39
#: app/main/controllers/media/RTMediaLike.php:18
40
msgid "Likes"
41
msgstr ""
42
43
- #: app/admin/RTMediaAdmin.php:167
44
msgid "Right Now in rtMedia"
45
msgstr ""
46
47
- #: app/admin/RTMediaAdmin.php:222 app/admin/RTMediaAdmin.php:647
48
- #: app/admin/RTMediaAdmin.php:648
49
msgid "rtMedia"
50
msgstr ""
51
52
- #: app/admin/RTMediaAdmin.php:228 app/admin/RTMediaAdmin.php:231
53
- #: app/admin/RTMediaAdmin.php:336 app/admin/RTMediaAdmin.php:669
54
msgid "Settings"
55
msgstr ""
56
57
- #: app/admin/RTMediaAdmin.php:238 app/admin/RTMediaAdmin.php:241
58
- #: app/admin/RTMediaAdmin.php:337 app/admin/RTMediaAdmin.php:674
59
msgid "Addons"
60
msgstr ""
61
62
- #: app/admin/RTMediaAdmin.php:248 app/admin/RTMediaAdmin.php:251
63
- #: app/admin/RTMediaAdmin.php:338 app/admin/RTMediaAdmin.php:679
64
#: app/helper/RTMediaSettings.php:102
65
msgid "Support"
66
msgstr ""
67
68
- #: app/admin/RTMediaAdmin.php:288
69
msgid "ON"
70
msgstr ""
71
72
- #: app/admin/RTMediaAdmin.php:289
73
msgid "OFF"
74
msgstr ""
75
76
- #: app/admin/RTMediaAdmin.php:301
77
msgid "Please do not refresh this page."
78
msgstr ""
79
80
- #: app/admin/RTMediaAdmin.php:302
81
msgid ""
82
"Something went wronng. Please <a href onclick=\"location.reload();"
83
"\">refresh</a> page."
84
msgstr ""
85
86
- #: app/admin/RTMediaAdmin.php:303
87
msgid "This will subscribe you to the free plan."
88
msgstr ""
89
90
- #: app/admin/RTMediaAdmin.php:304
91
msgid ""
92
"Are you sure you want to disable the encoding service? Make sure you note "
93
"your api key before disabling it incase you want to activate it in future."
94
msgstr ""
95
96
- #: app/admin/RTMediaAdmin.php:338
97
msgid "Support "
98
msgstr ""
99
100
#: app/admin/RTMediaAdmin.php:341
101
- msgid "Regenerate Thumbnail"
102
msgstr ""
103
104
#: app/admin/RTMediaAdmin.php:341
105
msgid "Regen. Thumbnail "
106
msgstr ""
107
108
- #: app/admin/RTMediaAdmin.php:354 app/admin/RTMediaAdmin.php:1131
109
msgid "Regenerate Video Thumbnails"
110
msgstr ""
111
112
- #: app/admin/RTMediaAdmin.php:371
113
msgid "Regenerate Pending Thumbnails"
114
msgstr ""
115
116
- #: app/admin/RTMediaAdmin.php:379
117
msgid "Total Videos"
118
msgstr ""
119
120
- #: app/admin/RTMediaAdmin.php:380
121
msgid "Sent of regenerate thumbails"
122
msgstr ""
123
124
- #: app/admin/RTMediaAdmin.php:381
125
msgid "Fail to regenerate thumbails"
126
msgstr ""
127
128
- #: app/admin/RTMediaAdmin.php:423
129
msgid "Regenerate Video Thumbnails Done"
130
msgstr ""
131
132
- #: app/admin/RTMediaAdmin.php:458
133
msgid "You have total "
134
msgstr ""
135
136
- #: app/admin/RTMediaAdmin.php:598
137
msgid "Save Settings"
138
msgstr ""
139
140
- #: app/admin/RTMediaAdmin.php:600 app/admin/RTMediaAdmin.php:615
141
msgid "By"
142
msgstr ""
143
144
- #: app/admin/RTMediaAdmin.php:600 app/admin/RTMediaAdmin.php:615
145
msgid "Empowering The Web With WordPress"
146
msgstr ""
147
148
- #: app/admin/RTMediaAdmin.php:741
149
msgid "rtMedia General"
150
msgstr ""
151
152
- #: app/admin/RTMediaAdmin.php:742
153
msgid "General"
154
msgstr ""
155
156
- #: app/admin/RTMediaAdmin.php:748
157
msgid "rtMedia Types"
158
msgstr ""
159
160
- #: app/admin/RTMediaAdmin.php:749
161
msgid "Types"
162
msgstr ""
163
164
- #: app/admin/RTMediaAdmin.php:756
165
msgid "rtMedia Sizes"
166
msgstr ""
167
168
- #: app/admin/RTMediaAdmin.php:757
169
msgid "Sizes"
170
msgstr ""
171
172
- #: app/admin/RTMediaAdmin.php:764
173
msgid "rtMedia Privacy"
174
msgstr ""
175
176
- #: app/admin/RTMediaAdmin.php:765
177
#: app/main/controllers/privacy/RTMediaPrivacy.php:257
178
msgid "Privacy"
179
msgstr ""
180
181
- #: app/admin/RTMediaAdmin.php:772
182
msgid "rtMedia BuddyPress"
183
msgstr ""
184
185
- #: app/admin/RTMediaAdmin.php:773
186
msgid "BuddyPress"
187
msgstr ""
188
189
- #: app/admin/RTMediaAdmin.php:879
190
#, php-format
191
msgid "I use @buddypressmedia http://goo.gl/8Upmv on %s"
192
msgstr ""
193
194
- #: app/admin/RTMediaAdmin.php:881
195
msgid "Add link to footer"
196
msgstr ""
197
198
- #: app/admin/RTMediaAdmin.php:884
199
msgid "Share"
200
msgstr ""
201
202
- #: app/admin/RTMediaAdmin.php:886
203
msgid "Tweet"
204
msgstr ""
205
206
- #: app/admin/RTMediaAdmin.php:887
207
msgid "Review"
208
msgstr ""
209
210
- #: app/admin/RTMediaAdmin.php:888
211
msgid "Subscribe to our feeds"
212
msgstr ""
213
214
- #: app/admin/RTMediaAdmin.php:888
215
msgid "Feeds"
216
msgstr ""
217
218
- #: app/admin/RTMediaAdmin.php:893
219
msgid "Spread the Word"
220
msgstr ""
221
222
- #: app/admin/RTMediaAdmin.php:925 app/admin/RTMediaAdmin.php:928
223
msgid "Subscribe"
224
msgstr ""
225
226
- #: app/admin/RTMediaAdmin.php:931
227
msgid "Latest News"
228
msgstr ""
229
230
- #: app/admin/RTMediaAdmin.php:976
231
#, php-format
232
msgid ""
233
"You have images enabled on rtMedia but your network allowed filetypes does "
@@ -235,17 +244,17 @@ msgid ""
235
"settings manually."
236
msgstr ""
237
238
- #: app/admin/RTMediaAdmin.php:977 app/admin/RTMediaAdmin.php:988
239
- #: app/admin/RTMediaAdmin.php:997
240
msgid "Recommended"
241
msgstr ""
242
243
- #: app/admin/RTMediaAdmin.php:977 app/admin/RTMediaAdmin.php:988
244
- #: app/admin/RTMediaAdmin.php:997
245
msgid "Update Network Settings Automatically"
246
msgstr ""
247
248
- #: app/admin/RTMediaAdmin.php:987
249
#, php-format
250
msgid ""
251
"You have video enabled on BuddyPress Media but your network allowed "
@@ -253,7 +262,7 @@ msgid ""
253
"change your settings manually."
254
msgstr ""
255
256
- #: app/admin/RTMediaAdmin.php:996
257
#, php-format
258
msgid ""
259
"You have audio enabled on BuddyPress Media but your network allowed "
@@ -261,15 +270,15 @@ msgid ""
261
"change your settings manually."
262
msgstr ""
263
264
- #: app/admin/RTMediaAdmin.php:1011
265
msgid "Network settings updated successfully."
266
msgstr ""
267
268
- #: app/admin/RTMediaAdmin.php:1114
269
msgid "Video is sent to generate thumbnails."
270
msgstr ""
271
272
- #: app/admin/RTMediaAdmin.php:1117
273
msgid "Video can't be sent to generate thumbnails."
274
msgstr ""
275
@@ -285,8 +294,8 @@ msgstr ""
285
#: app/admin/RTMediaFormHandler.php:184 app/main/RTMedia.php:454
286
#: app/main/controllers/media/RTMediaAlbum.php:39
287
#: app/main/controllers/media/RTMediaAlbum.php:51
288
- #: app/main/controllers/template/RTMediaNav.php:84
289
- #: app/main/controllers/template/RTMediaNav.php:154
290
msgid "Albums"
291
msgstr ""
292
@@ -572,7 +581,7 @@ msgstr ""
572
msgid "Update Database"
573
msgstr ""
574
575
- #: app/helper/RTMediaSettings.php:249
576
msgid ""
577
"If your site has some issues due to BuddyPress Media and you want one on one "
578
"support then you can create a support topic on the <a target=\"_blank\" href="
@@ -581,134 +590,150 @@ msgid ""
581
"\">rtCamp Support Forum</a>."
582
msgstr ""
583
584
- #: app/helper/RTMediaSettings.php:250
585
msgid ""
586
"If you have any suggestions, enhancements or bug reports, then you can open "
587
"a new issue on <a target=\"_blank\" href=\"https://github.com/rtCamp/"
588
"buddypress-media/issues/new\">GitHub</a>."
589
msgstr ""
590
591
- #: app/helper/RTMediaSupport.php:36
592
- msgid "Service"
593
msgstr ""
594
595
- #: app/helper/RTMediaSupport.php:63 app/helper/RTMediaSupport.php:383
596
msgid "Debug Info"
597
msgstr ""
598
599
- #: app/helper/RTMediaSupport.php:68
600
- msgid "Support Request"
601
msgstr ""
602
603
- #: app/helper/RTMediaSupport.php:114
604
msgid "by"
605
msgstr ""
606
607
- #: app/helper/RTMediaSupport.php:114
608
msgid "version"
609
msgstr ""
610
611
- #: app/helper/RTMediaSupport.php:196
612
- msgid "Debug info"
613
msgstr ""
614
615
- #: app/helper/RTMediaSupport.php:227
616
msgid "Submit a Bug Report"
617
msgstr ""
618
619
- #: app/helper/RTMediaSupport.php:230
620
msgid "Submit a New Feature Request"
621
msgstr ""
622
623
- #: app/helper/RTMediaSupport.php:233
624
msgid "Submit a Premium Support Request"
625
msgstr ""
626
627
- #: app/helper/RTMediaSupport.php:241
628
msgid "Name"
629
msgstr ""
630
631
- #: app/helper/RTMediaSupport.php:244
632
msgid "Email"
633
msgstr ""
634
635
- #: app/helper/RTMediaSupport.php:247
636
msgid "Website"
637
msgstr ""
638
639
- #: app/helper/RTMediaSupport.php:250
640
msgid "Phone"
641
msgstr ""
642
643
- #: app/helper/RTMediaSupport.php:253
644
msgid "Subject"
645
msgstr ""
646
647
- #: app/helper/RTMediaSupport.php:256
648
msgid "Details"
649
msgstr ""
650
651
- #: app/helper/RTMediaSupport.php:267
652
msgid "Additional Information"
653
msgstr ""
654
655
- #: app/helper/RTMediaSupport.php:272
656
msgid "Your WP Admin Login:"
657
msgstr ""
658
659
- #: app/helper/RTMediaSupport.php:275
660
msgid "Your WP Admin password:"
661
msgstr ""
662
663
- #: app/helper/RTMediaSupport.php:278
664
msgid "Your SSH / FTP host:"
665
msgstr ""
666
667
- #: app/helper/RTMediaSupport.php:281
668
msgid "Your SSH / FTP login:"
669
msgstr ""
670
671
- #: app/helper/RTMediaSupport.php:284
672
msgid "Your SSH / FTP password:"
673
msgstr ""
674
675
- #: app/helper/RTMediaSupport.php:313
676
msgid "rtMedia Premium Support Request from"
677
msgstr ""
678
679
- #: app/helper/RTMediaSupport.php:316
680
msgid "rtMedia New Feature Request from"
681
msgstr ""
682
683
- #: app/helper/RTMediaSupport.php:319
684
msgid "rtMedia Bug Report from"
685
msgstr ""
686
687
- #: app/helper/RTMediaSupport.php:322
688
msgid "rtMedia Contact from"
689
msgstr ""
690
691
- #: app/helper/RTMediaSupport.php:406
692
msgid "Thank you for your Feedback/Suggestion."
693
msgstr ""
694
695
- #: app/helper/RTMediaSupport.php:408
696
msgid "Thank you for posting your support request."
697
msgstr ""
698
699
- #: app/helper/RTMediaSupport.php:409
700
msgid "We will get back to you shortly."
701
msgstr ""
702
703
- #: app/helper/RTMediaSupport.php:414
704
msgid "Your server failed to send an email."
705
msgstr ""
706
707
- #: app/helper/RTMediaSupport.php:415
708
msgid "Kindly contact your server support to fix this."
709
msgstr ""
710
711
- #: app/helper/RTMediaSupport.php:416
712
#, php-format
713
msgid "You can alternatively create a support request <a href=\"%s\">here</a>"
714
msgstr ""
@@ -858,10 +883,6 @@ msgstr ""
858
msgid "Hide"
859
msgstr ""
860
861
- #: app/importers/RTMediaMigration.php:78
862
- msgid "Migration"
863
- msgstr ""
864
-
865
#: app/importers/RTMediaMigration.php:369
866
msgid "It will migrate following things"
867
msgstr ""
@@ -902,7 +923,7 @@ msgstr ""
902
msgid "<strong>Public</strong> - Visible to the world"
903
msgstr ""
904
905
- #: app/main/RTMedia.php:442 app/main/controllers/template/RTMediaNav.php:133
906
msgid "All"
907
msgstr ""
908
@@ -920,51 +941,51 @@ msgstr ""
920
msgid "Wall Post"
921
msgstr ""
922
923
- #: app/main/RTMedia.php:659
924
msgid "Wall Posts"
925
msgstr ""
926
927
- #: app/main/RTMedia.php:694
928
msgid ": Can't Create Database table. Please check create table permission."
929
msgstr ""
930
931
- #: app/main/RTMedia.php:719
932
msgid "Loading media"
933
msgstr ""
934
935
- #: app/main/RTMedia.php:720
936
msgid "Please enter some content to post."
937
msgstr ""
938
939
- #: app/main/RTMedia.php:721
940
msgid "Empty Comment is not allowed."
941
msgstr ""
942
943
- #: app/main/RTMedia.php:722
944
msgid "Are you sure you want to delete this media?"
945
msgstr ""
946
947
- #: app/main/RTMedia.php:723
948
msgid "Are you sure you want to delete this Album?"
949
msgstr ""
950
951
- #: app/main/RTMedia.php:724
952
msgid "Drop files here"
953
msgstr ""
954
955
- #: app/main/RTMedia.php:725
956
msgid "album created successfully."
957
msgstr ""
958
959
- #: app/main/RTMedia.php:726
960
msgid "Something went wrong. Please try again."
961
msgstr ""
962
963
- #: app/main/RTMedia.php:727
964
msgid "Enter an album name."
965
msgstr ""
966
967
- #: app/main/RTMedia.php:728
968
msgid "Max file size is"
969
msgstr ""
970
@@ -1018,7 +1039,7 @@ msgid "Create"
1018
msgstr ""
1019
1020
#: app/main/controllers/media/RTMediaAlbum.php:42
1021
- #: app/main/controllers/template/rt-template-functions.php:1105
1022
msgid "Create Album"
1023
msgstr ""
1024
@@ -1062,7 +1083,7 @@ msgstr ""
1062
msgid "Unlike"
1063
msgstr ""
1064
1065
- #: app/main/controllers/media/RTMediaMedia.php:397
1066
msgid "Error creating attachment for the media file, please try again"
1067
msgstr ""
1068
@@ -1075,66 +1096,66 @@ msgstr ""
1075
msgid "All "
1076
msgstr ""
1077
1078
- #: app/main/controllers/template/rt-template-functions.php:504
1079
- #: app/main/controllers/template/rt-template-functions.php:1148
1080
msgid "Edit"
1081
msgstr ""
1082
1083
- #: app/main/controllers/template/rt-template-functions.php:541
1084
msgid "There are no comments on this media yet."
1085
msgstr ""
1086
1087
- #: app/main/controllers/template/rt-template-functions.php:570
1088
msgid "on"
1089
msgstr ""
1090
1091
- #: app/main/controllers/template/rt-template-functions.php:890
1092
msgid "Type Comment..."
1093
msgstr ""
1094
1095
- #: app/main/controllers/template/rt-template-functions.php:893
1096
msgid "Comment"
1097
msgstr ""
1098
1099
- #: app/main/controllers/template/rt-template-functions.php:924
1100
- #: app/main/controllers/template/rt-template-functions.php:1151
1101
msgid "Delete"
1102
msgstr ""
1103
1104
- #: app/main/controllers/template/rt-template-functions.php:1022
1105
msgid "Profile Albums"
1106
msgstr ""
1107
1108
- #: app/main/controllers/template/rt-template-functions.php:1024
1109
- #: app/main/controllers/template/rt-template-functions.php:1055
1110
msgid "Group Albums"
1111
msgstr ""
1112
1113
- #: app/main/controllers/template/rt-template-functions.php:1096
1114
#: app/main/controllers/template/rt-template-functions.php:1099
1115
msgid "Create New Album"
1116
msgstr ""
1117
1118
- #: app/main/controllers/template/rt-template-functions.php:1101
1119
msgid "Album Title : "
1120
msgstr ""
1121
1122
- #: app/main/controllers/template/rt-template-functions.php:1161
1123
- #: app/main/controllers/template/rt-template-functions.php:1196
1124
msgid "Merge"
1125
msgstr ""
1126
1127
- #: app/main/controllers/template/rt-template-functions.php:1164
1128
- #: app/main/controllers/template/rt-template-functions.php:1169
1129
msgid "Merge Album"
1130
msgstr ""
1131
1132
- #: app/main/controllers/template/rt-template-functions.php:1166
1133
msgid "Select Album to merge with : "
1134
msgstr ""
1135
1136
- #: app/main/controllers/template/rt-template-functions.php:1372
1137
#: app/main/controllers/template/rt-template-functions.php:1375
1138
msgid "Upload Media"
1139
msgstr ""
1140
@@ -1169,41 +1190,41 @@ msgstr ""
1169
msgid "Insert from URL"
1170
msgstr ""
1171
1172
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:50
1173
msgid "Error Uploading File"
1174
msgstr ""
1175
1176
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:195
1177
msgid "MP4 file you have uploaded is corrupt."
1178
msgstr ""
1179
1180
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:202
1181
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:207
1182
msgid ""
1183
"The MP4 file you have uploaded is using an unsupported video codec. "
1184
"Supported video codec is H.264."
1185
msgstr ""
1186
1187
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:212
1188
msgid "The MP4 file you have uploaded is not a video file."
1189
msgstr ""
1190
1191
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:224
1192
msgid "MP3 file you have uploaded is currupt."
1193
msgstr ""
1194
1195
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:231
1196
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:236
1197
msgid ""
1198
"The MP3 file you have uploaded is using an unsupported audio format. "
1199
"Supported audio format is MP3."
1200
msgstr ""
1201
1202
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:241
1203
msgid "The MP3 file you have uploaded is not an audio file."
1204
msgstr ""
1205
1206
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:249
1207
msgid ""
1208
"Media File you have tried to upload is not supported. Supported media files "
1209
"are .jpg, .png, .gif, .mp3, .mov and .mp4."
2
msgstr ""
3
"Project-Id-Version: BuddyPress Media\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-10-30 21:19+0530\n"
6
+ "PO-Revision-Date: 2013-10-30 21:20+0530\n"
7
"Last-Translator: faishal <faishal.saiyed@rtcamp.com>\n"
8
"Language-Team: rtCamp <info@rtcamp.com>\n"
9
"Language: en_IN\n"
15
"X-Generator: Poedit 1.5.7\n"
16
"X-Poedit-SearchPath-0: .\n"
17
18
+ #: app/admin/RTMediaAdmin.php:96
19
msgid "Media Stats"
20
msgstr ""
21
22
+ #: app/admin/RTMediaAdmin.php:118
23
msgid "Usage Stats"
24
msgstr ""
25
26
+ #: app/admin/RTMediaAdmin.php:126
27
msgid "Total "
28
msgstr ""
29
30
+ #: app/admin/RTMediaAdmin.php:134
31
msgid "With Media"
32
msgstr ""
33
34
+ #: app/admin/RTMediaAdmin.php:142
35
msgid "Comments "
36
msgstr ""
37
38
+ #: app/admin/RTMediaAdmin.php:150
39
#: app/main/controllers/media/RTMediaLike.php:18
40
msgid "Likes"
41
msgstr ""
42
43
+ #: app/admin/RTMediaAdmin.php:168
44
msgid "Right Now in rtMedia"
45
msgstr ""
46
47
+ #: app/admin/RTMediaAdmin.php:223 app/admin/RTMediaAdmin.php:660
48
+ #: app/admin/RTMediaAdmin.php:661
49
msgid "rtMedia"
50
msgstr ""
51
52
+ #: app/admin/RTMediaAdmin.php:229 app/admin/RTMediaAdmin.php:232
53
+ #: app/admin/RTMediaAdmin.php:337 app/admin/RTMediaAdmin.php:682
54
msgid "Settings"
55
msgstr ""
56
57
+ #: app/admin/RTMediaAdmin.php:239 app/admin/RTMediaAdmin.php:242
58
+ #: app/admin/RTMediaAdmin.php:338 app/admin/RTMediaAdmin.php:687
59
msgid "Addons"
60
msgstr ""
61
62
+ #: app/admin/RTMediaAdmin.php:249 app/admin/RTMediaAdmin.php:252
63
+ #: app/admin/RTMediaAdmin.php:339 app/admin/RTMediaAdmin.php:692
64
#: app/helper/RTMediaSettings.php:102
65
msgid "Support"
66
msgstr ""
67
68
+ #: app/admin/RTMediaAdmin.php:289
69
msgid "ON"
70
msgstr ""
71
72
+ #: app/admin/RTMediaAdmin.php:290
73
msgid "OFF"
74
msgstr ""
75
76
+ #: app/admin/RTMediaAdmin.php:302
77
msgid "Please do not refresh this page."
78
msgstr ""
79
80
+ #: app/admin/RTMediaAdmin.php:303
81
msgid ""
82
"Something went wronng. Please <a href onclick=\"location.reload();"
83
"\">refresh</a> page."
84
msgstr ""
85
86
+ #: app/admin/RTMediaAdmin.php:304
87
msgid "This will subscribe you to the free plan."
88
msgstr ""
89
90
+ #: app/admin/RTMediaAdmin.php:305
91
msgid ""
92
"Are you sure you want to disable the encoding service? Make sure you note "
93
"your api key before disabling it incase you want to activate it in future."
94
msgstr ""
95
96
+ #: app/admin/RTMediaAdmin.php:339
97
msgid "Support "
98
msgstr ""
99
100
#: app/admin/RTMediaAdmin.php:341
101
+ #: app/main/controllers/template/rt-template-functions.php:1421
102
+ msgid "Premium"
103
msgstr ""
104
105
#: app/admin/RTMediaAdmin.php:341
106
+ msgid "Premium "
107
+ msgstr ""
108
+
109
+ #: app/admin/RTMediaAdmin.php:346
110
+ msgid "Regenerate Thumbnail"
111
+ msgstr ""
112
+
113
+ #: app/admin/RTMediaAdmin.php:346
114
msgid "Regen. Thumbnail "
115
msgstr ""
116
117
+ #: app/admin/RTMediaAdmin.php:359 app/admin/RTMediaAdmin.php:1147
118
msgid "Regenerate Video Thumbnails"
119
msgstr ""
120
121
+ #: app/admin/RTMediaAdmin.php:376
122
msgid "Regenerate Pending Thumbnails"
123
msgstr ""
124
125
+ #: app/admin/RTMediaAdmin.php:384
126
msgid "Total Videos"
127
msgstr ""
128
129
+ #: app/admin/RTMediaAdmin.php:385
130
msgid "Sent of regenerate thumbails"
131
msgstr ""
132
133
+ #: app/admin/RTMediaAdmin.php:386
134
msgid "Fail to regenerate thumbails"
135
msgstr ""
136
137
+ #: app/admin/RTMediaAdmin.php:428
138
msgid "Regenerate Video Thumbnails Done"
139
msgstr ""
140
141
+ #: app/admin/RTMediaAdmin.php:463
142
msgid "You have total "
143
msgstr ""
144
145
+ #: app/admin/RTMediaAdmin.php:607
146
msgid "Save Settings"
147
msgstr ""
148
149
+ #: app/admin/RTMediaAdmin.php:609 app/admin/RTMediaAdmin.php:628
150
msgid "By"
151
msgstr ""
152
153
+ #: app/admin/RTMediaAdmin.php:609 app/admin/RTMediaAdmin.php:628
154
msgid "Empowering The Web With WordPress"
155
msgstr ""
156
157
+ #: app/admin/RTMediaAdmin.php:757
158
msgid "rtMedia General"
159
msgstr ""
160
161
+ #: app/admin/RTMediaAdmin.php:758
162
msgid "General"
163
msgstr ""
164
165
+ #: app/admin/RTMediaAdmin.php:764
166
msgid "rtMedia Types"
167
msgstr ""
168
169
+ #: app/admin/RTMediaAdmin.php:765
170
msgid "Types"
171
msgstr ""
172
173
+ #: app/admin/RTMediaAdmin.php:772
174
msgid "rtMedia Sizes"
175
msgstr ""
176
177
+ #: app/admin/RTMediaAdmin.php:773
178
msgid "Sizes"
179
msgstr ""
180
181
+ #: app/admin/RTMediaAdmin.php:780
182
msgid "rtMedia Privacy"
183
msgstr ""
184
185
+ #: app/admin/RTMediaAdmin.php:781
186
#: app/main/controllers/privacy/RTMediaPrivacy.php:257
187
msgid "Privacy"
188
msgstr ""
189
190
+ #: app/admin/RTMediaAdmin.php:788
191
msgid "rtMedia BuddyPress"
192
msgstr ""
193
194
+ #: app/admin/RTMediaAdmin.php:789
195
msgid "BuddyPress"
196
msgstr ""
197
198
+ #: app/admin/RTMediaAdmin.php:895
199
#, php-format
200
msgid "I use @buddypressmedia http://goo.gl/8Upmv on %s"
201
msgstr ""
202
203
+ #: app/admin/RTMediaAdmin.php:897
204
msgid "Add link to footer"
205
msgstr ""
206
207
+ #: app/admin/RTMediaAdmin.php:900
208
msgid "Share"
209
msgstr ""
210
211
+ #: app/admin/RTMediaAdmin.php:902
212
msgid "Tweet"
213
msgstr ""
214
215
+ #: app/admin/RTMediaAdmin.php:903
216
msgid "Review"
217
msgstr ""
218
219
+ #: app/admin/RTMediaAdmin.php:904
220
msgid "Subscribe to our feeds"
221
msgstr ""
222
223
+ #: app/admin/RTMediaAdmin.php:904
224
msgid "Feeds"
225
msgstr ""
226
227
+ #: app/admin/RTMediaAdmin.php:909
228
msgid "Spread the Word"
229
msgstr ""
230
231
+ #: app/admin/RTMediaAdmin.php:941 app/admin/RTMediaAdmin.php:944
232
msgid "Subscribe"
233
msgstr ""
234
235
+ #: app/admin/RTMediaAdmin.php:947
236
msgid "Latest News"
237
msgstr ""
238
239
+ #: app/admin/RTMediaAdmin.php:992
240
#, php-format
241
msgid ""
242
"You have images enabled on rtMedia but your network allowed filetypes does "
244
"settings manually."
245
msgstr ""
246
247
+ #: app/admin/RTMediaAdmin.php:993 app/admin/RTMediaAdmin.php:1004
248
+ #: app/admin/RTMediaAdmin.php:1013
249
msgid "Recommended"
250
msgstr ""
251
252
+ #: app/admin/RTMediaAdmin.php:993 app/admin/RTMediaAdmin.php:1004
253
+ #: app/admin/RTMediaAdmin.php:1013
254
msgid "Update Network Settings Automatically"
255
msgstr ""
256
257
+ #: app/admin/RTMediaAdmin.php:1003
258
#, php-format
259
msgid ""
260
"You have video enabled on BuddyPress Media but your network allowed "
262
"change your settings manually."
263
msgstr ""
264
265
+ #: app/admin/RTMediaAdmin.php:1012
266
#, php-format
267
msgid ""
268
"You have audio enabled on BuddyPress Media but your network allowed "
270
"change your settings manually."
271
msgstr ""
272
273
+ #: app/admin/RTMediaAdmin.php:1027
274
msgid "Network settings updated successfully."
275
msgstr ""
276
277
+ #: app/admin/RTMediaAdmin.php:1130
278
msgid "Video is sent to generate thumbnails."
279
msgstr ""
280
281
+ #: app/admin/RTMediaAdmin.php:1133
282
msgid "Video can't be sent to generate thumbnails."
283
msgstr ""
284
294
#: app/admin/RTMediaFormHandler.php:184 app/main/RTMedia.php:454
295
#: app/main/controllers/media/RTMediaAlbum.php:39
296
#: app/main/controllers/media/RTMediaAlbum.php:51
297
+ #: app/main/controllers/template/RTMediaNav.php:85
298
+ #: app/main/controllers/template/RTMediaNav.php:155
299
msgid "Albums"
300
msgstr ""
301
581
msgid "Update Database"
582
msgstr ""
583
584
+ #: app/helper/RTMediaSettings.php:249 app/helper/RTMediaSupport.php:334
585
msgid ""
586
"If your site has some issues due to BuddyPress Media and you want one on one "
587
"support then you can create a support topic on the <a target=\"_blank\" href="
590
"\">rtCamp Support Forum</a>."
591
msgstr ""
592
593
+ #: app/helper/RTMediaSettings.php:250 app/helper/RTMediaSupport.php:335
594
msgid ""
595
"If you have any suggestions, enhancements or bug reports, then you can open "
596
"a new issue on <a target=\"_blank\" href=\"https://github.com/rtCamp/"
597
"buddypress-media/issues/new\">GitHub</a>."
598
msgstr ""
599
600
+ #: app/helper/RTMediaSupport.php:41
601
+ msgid "Premium Support"
602
msgstr ""
603
604
+ #: app/helper/RTMediaSupport.php:47 app/helper/RTMediaSupport.php:489
605
msgid "Debug Info"
606
msgstr ""
607
608
+ #: app/helper/RTMediaSupport.php:53 app/importers/RTMediaMigration.php:78
609
+ msgid "Migration"
610
+ msgstr ""
611
+
612
+ #: app/helper/RTMediaSupport.php:104
613
+ msgid "Service"
614
msgstr ""
615
616
+ #: app/helper/RTMediaSupport.php:188
617
msgid "by"
618
msgstr ""
619
620
+ #: app/helper/RTMediaSupport.php:188
621
msgid "version"
622
msgstr ""
623
624
+ #: app/helper/RTMediaSupport.php:293 app/helper/RTMediaSupport.php:299
625
+ msgid "Click"
626
+ msgstr ""
627
+
628
+ #: app/helper/RTMediaSupport.php:293 app/helper/RTMediaSupport.php:299
629
+ msgid "here"
630
+ msgstr ""
631
+
632
+ #: app/helper/RTMediaSupport.php:293
633
+ msgid "here to migrate media from rtMedia 2.x to rtMedia 3.0+."
634
msgstr ""
635
636
+ #: app/helper/RTMediaSupport.php:299
637
+ msgid "here to migrate attachments from GD bbPress Attacemnt to rtMedia."
638
+ msgstr ""
639
+
640
+ #: app/helper/RTMediaSupport.php:322
641
msgid "Submit a Bug Report"
642
msgstr ""
643
644
+ #: app/helper/RTMediaSupport.php:325
645
msgid "Submit a New Feature Request"
646
msgstr ""
647
648
+ #: app/helper/RTMediaSupport.php:328
649
msgid "Submit a Premium Support Request"
650
msgstr ""
651
652
+ #: app/helper/RTMediaSupport.php:345
653
msgid "Name"
654
msgstr ""
655
656
+ #: app/helper/RTMediaSupport.php:348
657
msgid "Email"
658
msgstr ""
659
660
+ #: app/helper/RTMediaSupport.php:351
661
msgid "Website"
662
msgstr ""
663
664
+ #: app/helper/RTMediaSupport.php:354
665
msgid "Phone"
666
msgstr ""
667
668
+ #: app/helper/RTMediaSupport.php:357
669
msgid "Subject"
670
msgstr ""
671
672
+ #: app/helper/RTMediaSupport.php:360
673
msgid "Details"
674
msgstr ""
675
676
+ #: app/helper/RTMediaSupport.php:371
677
msgid "Additional Information"
678
msgstr ""
679
680
+ #: app/helper/RTMediaSupport.php:376
681
msgid "Your WP Admin Login:"
682
msgstr ""
683
684
+ #: app/helper/RTMediaSupport.php:379
685
msgid "Your WP Admin password:"
686
msgstr ""
687
688
+ #: app/helper/RTMediaSupport.php:382
689
msgid "Your SSH / FTP host:"
690
msgstr ""
691
692
+ #: app/helper/RTMediaSupport.php:385
693
msgid "Your SSH / FTP login:"
694
msgstr ""
695
696
+ #: app/helper/RTMediaSupport.php:388
697
msgid "Your SSH / FTP password:"
698
msgstr ""
699
700
+ #: app/helper/RTMediaSupport.php:419
701
msgid "rtMedia Premium Support Request from"
702
msgstr ""
703
704
+ #: app/helper/RTMediaSupport.php:422
705
msgid "rtMedia New Feature Request from"
706
msgstr ""
707
708
+ #: app/helper/RTMediaSupport.php:425
709
msgid "rtMedia Bug Report from"
710
msgstr ""
711
712
+ #: app/helper/RTMediaSupport.php:428
713
msgid "rtMedia Contact from"
714
msgstr ""
715
716
+ #: app/helper/RTMediaSupport.php:512
717
msgid "Thank you for your Feedback/Suggestion."
718
msgstr ""
719
720
+ #: app/helper/RTMediaSupport.php:514
721
msgid "Thank you for posting your support request."
722
msgstr ""
723
724
+ #: app/helper/RTMediaSupport.php:515
725
msgid "We will get back to you shortly."
726
msgstr ""
727
728
+ #: app/helper/RTMediaSupport.php:520
729
msgid "Your server failed to send an email."
730
msgstr ""
731
732
+ #: app/helper/RTMediaSupport.php:521
733
msgid "Kindly contact your server support to fix this."
734
msgstr ""
735
736
+ #: app/helper/RTMediaSupport.php:522
737
#, php-format
738
msgid "You can alternatively create a support request <a href=\"%s\">here</a>"
739
msgstr ""
883
msgid "Hide"
884
msgstr ""
885
886
#: app/importers/RTMediaMigration.php:369
887
msgid "It will migrate following things"
888
msgstr ""
923
msgid "<strong>Public</strong> - Visible to the world"
924
msgstr ""
925
926
+ #: app/main/RTMedia.php:442 app/main/controllers/template/RTMediaNav.php:134
927
msgid "All"
928
msgstr ""
929
941
msgid "Wall Post"
942
msgstr ""
943
944
+ #: app/main/RTMedia.php:658
945
msgid "Wall Posts"
946
msgstr ""
947
948
+ #: app/main/RTMedia.php:693
949
msgid ": Can't Create Database table. Please check create table permission."
950
msgstr ""
951
952
+ #: app/main/RTMedia.php:718
953
msgid "Loading media"
954
msgstr ""
955
956
+ #: app/main/RTMedia.php:719
957
msgid "Please enter some content to post."
958
msgstr ""
959
960
+ #: app/main/RTMedia.php:720
961
msgid "Empty Comment is not allowed."
962
msgstr ""
963
964
+ #: app/main/RTMedia.php:721
965
msgid "Are you sure you want to delete this media?"
966
msgstr ""
967
968
+ #: app/main/RTMedia.php:722
969
msgid "Are you sure you want to delete this Album?"
970
msgstr ""
971
972
+ #: app/main/RTMedia.php:723
973
msgid "Drop files here"
974
msgstr ""
975
976
+ #: app/main/RTMedia.php:724
977
msgid "album created successfully."
978
msgstr ""
979
980
+ #: app/main/RTMedia.php:725
981
msgid "Something went wrong. Please try again."
982
msgstr ""
983
984
+ #: app/main/RTMedia.php:726
985
msgid "Enter an album name."
986
msgstr ""
987
988
+ #: app/main/RTMedia.php:727
989
msgid "Max file size is"
990
msgstr ""
991
1039
msgstr ""
1040
1041
#: app/main/controllers/media/RTMediaAlbum.php:42
1042
+ #: app/main/controllers/template/rt-template-functions.php:1108
1043
msgid "Create Album"
1044
msgstr ""
1045
1083
msgid "Unlike"
1084
msgstr ""
1085
1086
+ #: app/main/controllers/media/RTMediaMedia.php:401
1087
msgid "Error creating attachment for the media file, please try again"
1088
msgstr ""
1089
1096
msgid "All "
1097
msgstr ""
1098
1099
+ #: app/main/controllers/template/rt-template-functions.php:507
1100
+ #: app/main/controllers/template/rt-template-functions.php:1151
1101
msgid "Edit"
1102
msgstr ""
1103
1104
+ #: app/main/controllers/template/rt-template-functions.php:544
1105
msgid "There are no comments on this media yet."
1106
msgstr ""
1107
1108
+ #: app/main/controllers/template/rt-template-functions.php:573
1109
msgid "on"
1110
msgstr ""
1111
1112
+ #: app/main/controllers/template/rt-template-functions.php:893
1113
msgid "Type Comment..."
1114
msgstr ""
1115
1116
+ #: app/main/controllers/template/rt-template-functions.php:896
1117
msgid "Comment"
1118
msgstr ""
1119
1120
+ #: app/main/controllers/template/rt-template-functions.php:927
1121
+ #: app/main/controllers/template/rt-template-functions.php:1154
1122
msgid "Delete"
1123
msgstr ""
1124
1125
+ #: app/main/controllers/template/rt-template-functions.php:1025
1126
msgid "Profile Albums"
1127
msgstr ""
1128
1129
+ #: app/main/controllers/template/rt-template-functions.php:1027
1130
+ #: app/main/controllers/template/rt-template-functions.php:1058
1131
msgid "Group Albums"
1132
msgstr ""
1133
1134
#: app/main/controllers/template/rt-template-functions.php:1099
1135
+ #: app/main/controllers/template/rt-template-functions.php:1102
1136
msgid "Create New Album"
1137
msgstr ""
1138
1139
+ #: app/main/controllers/template/rt-template-functions.php:1104
1140
msgid "Album Title : "
1141
msgstr ""
1142
1143
+ #: app/main/controllers/template/rt-template-functions.php:1164
1144
+ #: app/main/controllers/template/rt-template-functions.php:1199
1145
msgid "Merge"
1146
msgstr ""
1147
1148
+ #: app/main/controllers/template/rt-template-functions.php:1167
1149
+ #: app/main/controllers/template/rt-template-functions.php:1172
1150
msgid "Merge Album"
1151
msgstr ""
1152
1153
+ #: app/main/controllers/template/rt-template-functions.php:1169
1154
msgid "Select Album to merge with : "
1155
msgstr ""
1156
1157
#: app/main/controllers/template/rt-template-functions.php:1375
1158
+ #: app/main/controllers/template/rt-template-functions.php:1378
1159
msgid "Upload Media"
1160
msgstr ""
1161
1190
msgid "Insert from URL"
1191
msgstr ""
1192
1193
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:51
1194
msgid "Error Uploading File"
1195
msgstr ""
1196
1197
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:199
1198
msgid "MP4 file you have uploaded is corrupt."
1199
msgstr ""
1200
1201
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:206
1202
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:211
1203
msgid ""
1204
"The MP4 file you have uploaded is using an unsupported video codec. "
1205
"Supported video codec is H.264."
1206
msgstr ""
1207
1208
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:216
1209
msgid "The MP4 file you have uploaded is not a video file."
1210
msgstr ""
1211
1212
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:228
1213
msgid "MP3 file you have uploaded is currupt."
1214
msgstr ""
1215
1216
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:235
1217
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:240
1218
msgid ""
1219
"The MP3 file you have uploaded is using an unsupported audio format. "
1220
"Supported audio format is MP3."
1221
msgstr ""
1222
1223
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:245
1224
msgid "The MP3 file you have uploaded is not an audio file."
1225
msgstr ""
1226
1227
+ #: app/main/controllers/upload/processors/RTMediaUploadFile.php:253
1228
msgid ""
1229
"Media File you have tried to upload is not supported. Supported media files "
1230
"are .jpg, .png, .gif, .mp3, .mov and .mp4."
readme.txt CHANGED
@@ -5,8 +5,8 @@ Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, i
5
License: GPLv2 or later
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Requires at least: WordPress 3.6
8
- Tested up to: WordPress 3.6.1 + BuddyPress 1.8.1
9
- Stable tag: 3.2.5
10
11
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
@@ -119,6 +119,11 @@ Please visit [rtMedia's Features page](http://rtcamp.com/rtmedia/?utm_source=rea
119
120
Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
121
122
= 3.2.5 =
123
* Bug fixes
124
@@ -581,7 +586,7 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
581
582
== Upgrade Notice ==
583
584
- = 3.2.5 =
585
Requires BuddyPress 1.7 or higher, if using BuddyPress. Updated translation files and bug fixes.
586
587
== Sponsors ==
@@ -595,6 +600,7 @@ Requires BuddyPress 1.7 or higher, if using BuddyPress. Updated translation file
595
596
rtMedia includes [full translation support](https://rtcamp.com/tutorials/rtmedia-translation/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media). Head over to the [translation project](http://rtcamp.com/translate/projects/rtmedia/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) to contribute your translations. If you don't see the language of your choice, let us know in the support forum, we'll add it.
597
598
* [Polish](https://rtcamp.com/translate/projects/rtmedia/pl/default) translation by [Polski_Ziom](http://profiles.wordpress.org/polski_ziom)
599
* [Spanish](https://rtcamp.com/translate/projects/rtmedia/es/default) translation by [Andrés Felipe](http://profiles.wordpress.org/naturalworldstm/) and [d3ne]
600
* [Solvak](https://rtcamp.com/translate/projects/rtmedia/sk/default) translation by [igid26](http://profiles.wordpress.org/igid26)
5
License: GPLv2 or later
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Requires at least: WordPress 3.6
8
+ Tested up to: WordPress 3.7 + BuddyPress 1.8.1
9
+ Stable tag: 3.2.6
10
11
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
119
120
Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
121
122
+ = 3.2.6 =
123
+ * Updated dutch transalation.
124
+ * Fix WordPress template issue.
125
+
126
+
127
= 3.2.5 =
128
* Bug fixes
129
586
587
== Upgrade Notice ==
588
589
+ = 3.2.6 =
590
Requires BuddyPress 1.7 or higher, if using BuddyPress. Updated translation files and bug fixes.
591
592
== Sponsors ==
600
601
rtMedia includes [full translation support](https://rtcamp.com/tutorials/rtmedia-translation/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media). Head over to the [translation project](http://rtcamp.com/translate/projects/rtmedia/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) to contribute your translations. If you don't see the language of your choice, let us know in the support forum, we'll add it.
602
603
+ * [Dutch](https://rtcamp.com/translate/projects/rtmedia/nl/default) translation by [rjpj](http://profiles.wordpress.org/rjpj)
604
* [Polish](https://rtcamp.com/translate/projects/rtmedia/pl/default) translation by [Polski_Ziom](http://profiles.wordpress.org/polski_ziom)
605
* [Spanish](https://rtcamp.com/translate/projects/rtmedia/es/default) translation by [Andrés Felipe](http://profiles.wordpress.org/naturalworldstm/) and [d3ne]
606
* [Solvak](https://rtcamp.com/translate/projects/rtmedia/sk/default) translation by [igid26](http://profiles.wordpress.org/igid26)
templates/upload/uploader.php CHANGED
@@ -1,6 +1,26 @@
1
<?php if ( is_array ( $tabs ) && count ( $tabs ) ) { ?>
2
<div class="rtmedia-container">
3
- <div class="rtmedia-uploader no-js">
4
<form id="rtmedia-uploader-form" method="post" action="upload" enctype="multipart/form-data">
5
<?php do_action ( 'rtmedia_before_uploader' ); ?>
6
@@ -47,6 +67,9 @@
47
<input type="submit" id='rtMedia-start-upload' name="rtmedia-upload" value="<?php echo RTMEDIA_UPLOAD_LABEL; ?>" />
48
</form>
49
</div>
50
</div>
51
<?php
52
}
1
<?php if ( is_array ( $tabs ) && count ( $tabs ) ) { ?>
2
<div class="rtmedia-container">
3
+ <?php
4
+
5
+ if( isset($attr['rtmedia_simple_file_upload']) && $attr['rtmedia_simple_file_upload'] == true) {
6
+ echo '<div class="rtm-file-input-container"> <input type="file" name="rtmedia_file_multiple[]" multiple="true" class="rtm-simple-file-input" id="rtmedia_simple_file_input" />';
7
+ RTMediaUploadView::upload_nonce_generator ( true );
8
+ if ( ! empty ( $attr ) ) {
9
+ foreach ( $attr as $key => $value ) {
10
+ if ( $key == 'context' )
11
+ echo '<input type="hidden" name="context" value="' . $value . '" />';
12
+ if ( $key == 'context_id' )
13
+ echo '<input type="hidden" name="context_id" value="' . $value . '" />';
14
+ if ( $key == 'privacy' )
15
+ echo '<input type="hidden" name="privacy" value="' . $value . '" />';
16
+ if ( $key == 'album_id' )
17
+ echo '<input type="hidden" name="album_id" value="' . $value . '" />';
18
+ }
19
+ }
20
+ echo "</div>";
21
+ } else {
22
+ ?>
23
+ <div class="rtmedia-uploader no-js">
24
<form id="rtmedia-uploader-form" method="post" action="upload" enctype="multipart/form-data">
25
<?php do_action ( 'rtmedia_before_uploader' ); ?>
26
67
<input type="submit" id='rtMedia-start-upload' name="rtmedia-upload" value="<?php echo RTMEDIA_UPLOAD_LABEL; ?>" />
68
</form>
69
</div>
70
+ <?php
71
+ }
72
+ ?>
73
</div>
74
<?php
75
}