rtMedia for WordPress, BuddyPress and bbPress - Version 3.7.5

Version Description

  • Bug fixes
Download this release

Release Info

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

Code changes from version 3.7.4 to 3.7.5

app/admin/RTMediaAdmin.php CHANGED
@@ -1332,9 +1332,9 @@ if ( ! class_exists( 'RTMediaAdmin' ) ){
1332
<div class="row">
1333
<div class="columns large-11">
1334
<p><a href="http://twitter.com/home/?status=' . $message . '" class="button" target= "_blank" title="' . __( 'Post to Twitter Now', 'rtmedia' ) . '">' . __( 'Post to Twitter', 'rtmedia' ) . '</a></p>
1335
- <p><a href="https://www.facebook.com/sharer/sharer.php?u=http://rtcamp.com/buddypress-media/" class="button" target="_blank" title="' . __( 'Share on Facebook Now', 'rtmedia' ) . '">' . __( 'Share on Facebook', 'rtmedia' ) . '</a></p>
1336
<p><a href="http://wordpress.org/support/view/plugin-reviews/buddypress-media?rate=5#postform" class="button" target= "_blank" title="' . __( 'Rate rtMedia on Wordpress.org', 'rtmedia' ) . '">' . __( 'Rate on Wordpress.org', 'rtmedia' ) . '</a></p>
1337
- <p><a href="' . sprintf( '%s', 'http://feeds.feedburner.com/rtcamp/' ) . '" title="' . __( 'Subscribe to our feeds', 'rtmedia' ) . '" class="button" target="_blank" title="' . __( 'Subscribe to our Feeds', 'rtmedia' ) . '">' . __( 'Subscribe to our Feeds', 'rtmedia' ) . '</a></p>
1338
<p><a href="' . $setting_page_url . '" title="' . __( 'Add link to footer', 'rtmedia' ) . '" class="button" title="' . __( 'Add link to footer', 'rtmedia' ) . '">' . __( 'Add link to footer', 'rtmedia' ) . '</a></p>
1339
</div>
1340
</div>
1332
<div class="row">
1333
<div class="columns large-11">
1334
<p><a href="http://twitter.com/home/?status=' . $message . '" class="button" target= "_blank" title="' . __( 'Post to Twitter Now', 'rtmedia' ) . '">' . __( 'Post to Twitter', 'rtmedia' ) . '</a></p>
1335
+ <p><a href="https://www.facebook.com/sharer/sharer.php?u=http://rtcamp.com/rtmedia/" class="button" target="_blank" title="' . __( 'Share on Facebook Now', 'rtmedia' ) . '">' . __( 'Share on Facebook', 'rtmedia' ) . '</a></p>
1336
<p><a href="http://wordpress.org/support/view/plugin-reviews/buddypress-media?rate=5#postform" class="button" target= "_blank" title="' . __( 'Rate rtMedia on Wordpress.org', 'rtmedia' ) . '">' . __( 'Rate on Wordpress.org', 'rtmedia' ) . '</a></p>
1337
+ <p><a href="' . sprintf( '%s', 'https://rtcamp.com/feed/' ) . '" title="' . __( 'Subscribe to our feeds', 'rtmedia' ) . '" class="button" target="_blank" title="' . __( 'Subscribe to our Feeds', 'rtmedia' ) . '">' . __( 'Subscribe to our Feeds', 'rtmedia' ) . '</a></p>
1338
<p><a href="' . $setting_page_url . '" title="' . __( 'Add link to footer', 'rtmedia' ) . '" class="button" title="' . __( 'Add link to footer', 'rtmedia' ) . '">' . __( 'Add link to footer', 'rtmedia' ) . '</a></p>
1339
</div>
1340
</div>
app/admin/RTMediaFormHandler.php CHANGED
@@ -1096,7 +1096,7 @@ class RTMediaFormHandler {
1096
}
1097
$i++;
1098
if ( isset ( $tab[ 'icon' ] ) && ! empty ( $tab[ 'icon' ] ) ){
1099
- $icon = '<i class="' . $tab[ 'icon' ] . '"></i>';
1100
}
1101
echo '<dd class="' . $active_class . '"><a id="tab-' . substr ( $tab[ 'href' ], 1 ) . '" title="' . $tab[ 'title' ] . '" href="' . $tab[ 'href' ] . '" class="rtmedia-tab-title ' . sanitize_title ( $tab[ 'name' ] ) . '">' . $icon . $tab[ 'name' ] . '</a></dd>';
1102
}
1096
}
1097
$i++;
1098
if ( isset ( $tab[ 'icon' ] ) && ! empty ( $tab[ 'icon' ] ) ){
1099
+ $icon = '<i class="' . $tab[ 'icon' ] . ' rtmicon-fw"></i>';
1100
}
1101
echo '<dd class="' . $active_class . '"><a id="tab-' . substr ( $tab[ 'href' ], 1 ) . '" title="' . $tab[ 'title' ] . '" href="' . $tab[ 'href' ] . '" class="rtmedia-tab-title ' . sanitize_title ( $tab[ 'name' ] ) . '">' . $icon . $tab[ 'name' ] . '</a></dd>';
1102
}
app/assets/img/rtmedia-watermark-240x184.png ADDED
Binary file
app/helper/RTMediaAddon.php CHANGED
@@ -67,12 +67,6 @@ if ( ! class_exists( 'RTMediaAddon' ) ){
67
public function get_addons() {
68
$tabs = array();
69
global $rtmedia_admin;
70
- $tabs[] = array(
71
- 'title' => __( 'Audio/Video Encoding', 'rtmedia' ),
72
- 'name' => __( 'Audio/Video Encoding', 'rtmedia' ),
73
- 'href' => '#rtm-services',
74
- 'callback' => array( $rtmedia_admin->rtmedia_encoding, 'encoding_service_intro' )
75
- );
76
$tabs[] = array(
77
'title' => __( 'Plugins', 'rtmedia' ),
78
'name' => __( 'Plugins', 'rtmedia' ),
@@ -80,6 +74,13 @@ if ( ! class_exists( 'RTMediaAddon' ) ){
80
'callback' => array( $this, 'plugins_content' )
81
);
82
83
/* $tabs[] = array(
84
'title' => __('Themes', 'rtmedia'),
85
'name' => __('Themes', 'rtmedia'),
@@ -140,6 +141,16 @@ if ( ! class_exists( 'RTMediaAddon' ) ){
140
public function plugins_content( $args = '' ) {
141
$img_src = RTMEDIA_URL .'app/assets/img/';
142
$addons = array(
143
array(
144
'title' => __( 'rtMedia Photo Tagging', 'rtmedia' ),
145
'img_src' => $img_src.'rtmedia-phototagging-240x184.png',
@@ -147,7 +158,7 @@ if ( ! class_exists( 'RTMediaAddon' ) ){
147
'desc' => '<p>' . __( 'rtMedia Photo Tagging add-on enables tagging on photos uploaded using BuddyPress Media.', 'rtmedia' ) . '</p>
148
<p><strong>' . __( 'Important', 'rtmedia' ) . ':</strong> ' . __( 'You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia' ) . '</p>',
149
'price' => '$49',
150
- 'demo_link' => 'http://demo.rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
151
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=37506'
152
),
153
array(
@@ -157,7 +168,7 @@ if ( ! class_exists( 'RTMediaAddon' ) ){
157
'desc' => '<p>' . __( 'rtMedia Instagram adds Instagram like filters to images uploaded with rtMedia.', 'rtmedia' ) . '</p>
158
<p><strong>' . __( 'Important', 'rtmedia' ) . ':</strong> ' . __( 'You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia' ) . '</p>',
159
'price' => '$49',
160
- 'demo_link' => 'http://demo.rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
161
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=34379'
162
),
163
array(
67
public function get_addons() {
68
$tabs = array();
69
global $rtmedia_admin;
70
$tabs[] = array(
71
'title' => __( 'Plugins', 'rtmedia' ),
72
'name' => __( 'Plugins', 'rtmedia' ),
74
'callback' => array( $this, 'plugins_content' )
75
);
76
77
+ $tabs[] = array(
78
+ 'title' => __( 'Audio/Video Encoding', 'rtmedia' ),
79
+ 'name' => __( 'Audio/Video Encoding', 'rtmedia' ),
80
+ 'href' => '#rtm-services',
81
+ 'callback' => array( $rtmedia_admin->rtmedia_encoding, 'encoding_service_intro' )
82
+ );
83
+
84
/* $tabs[] = array(
85
'title' => __('Themes', 'rtmedia'),
86
'name' => __('Themes', 'rtmedia'),
141
public function plugins_content( $args = '' ) {
142
$img_src = RTMEDIA_URL .'app/assets/img/';
143
$addons = array(
144
+ array(
145
+ 'title' => __( 'rtMedia Photo Watermark', 'rtmedia' ),
146
+ 'img_src' => $img_src.'rtmedia-watermark-240x184.png',
147
+ 'product_link' => 'http://rtcamp.com/store/rtmedia-photo-watermark/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
148
+ 'desc' => '<p>' . __( 'rtMedia Photo Watermark add-on let you add text or copyright on your images uploaded using rtMedia.', 'rtmedia' ) . '</p>
149
+ <p><strong>' . __( 'Important', 'rtmedia' ) . ':</strong> ' . __( 'You need to have either ImageMagick or GD library installed on your server for this addon to work.', 'rtmedia' ) . '</p>',
150
+ 'price' => '$49',
151
+ 'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
152
+ 'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=70305'
153
+ ),
154
array(
155
'title' => __( 'rtMedia Photo Tagging', 'rtmedia' ),
156
'img_src' => $img_src.'rtmedia-phototagging-240x184.png',
158
'desc' => '<p>' . __( 'rtMedia Photo Tagging add-on enables tagging on photos uploaded using BuddyPress Media.', 'rtmedia' ) . '</p>
159
<p><strong>' . __( 'Important', 'rtmedia' ) . ':</strong> ' . __( 'You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia' ) . '</p>',
160
'price' => '$49',
161
+ 'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
162
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=37506'
163
),
164
array(
168
'desc' => '<p>' . __( 'rtMedia Instagram adds Instagram like filters to images uploaded with rtMedia.', 'rtmedia' ) . '</p>
169
<p><strong>' . __( 'Important', 'rtmedia' ) . ':</strong> ' . __( 'You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia' ) . '</p>',
170
'price' => '$49',
171
+ 'demo_link' => 'http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
172
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=34379'
173
),
174
array(
app/importers/BPMediaAlbumimporter.php CHANGED
@@ -179,7 +179,7 @@ class BPMediaAlbumimporter extends BPMediaImporter {
179
<div class="product_footer">
180
<span class="price alignleft"><span class="amount">$19</span></span>
181
<a class="add_to_cart_button alignright product_type_simple" href="http://rtcamp.com/store/?utm_source=dashboard&amp;utm_medium=plugin&amp;utm_campaign=buddypress-media&amp;utm_content=bp-album-importer&amp;add-to-cart=34379" target="_blank">'.__('Buy Now','rtmedia').'</a>
182
- <a class="alignleft product_demo_link" href="http://demo.rtcamp.com/buddypress-media/?utm_source=dashboard&amp;utm_medium=plugin&amp;utm_campaign=buddypress-media&amp;utm_content=bp-album-importer" title="BuddyPress-Media Instagram" target="_blank">'.__('Live Demo','rtmedia').'</a>
183
</div></div>';
184
}
185
echo '</div>';
179
<div class="product_footer">
180
<span class="price alignleft"><span class="amount">$19</span></span>
181
<a class="add_to_cart_button alignright product_type_simple" href="http://rtcamp.com/store/?utm_source=dashboard&amp;utm_medium=plugin&amp;utm_campaign=buddypress-media&amp;utm_content=bp-album-importer&amp;add-to-cart=34379" target="_blank">'.__('Buy Now','rtmedia').'</a>
182
+ <a class="alignleft product_demo_link" href="http://demo.rtcamp.com/rtmedia/?utm_source=dashboard&amp;utm_medium=plugin&amp;utm_campaign=buddypress-media&amp;utm_content=bp-album-importer" title="BuddyPress-Media Instagram" target="_blank">'.__('Live Demo','rtmedia').'</a>
183
</div></div>';
184
}
185
echo '</div>';
app/main/RTMedia.php CHANGED
@@ -122,7 +122,7 @@ class RTMedia
122
$ext_arr = explode("," ,$ext[0]["extensions"]);
123
$options = trim($options);
124
foreach($ext_arr as $f_ext){
125
- if( strpos( $options , $f_ext ) === false){
126
$options .= " " . $f_ext;
127
}
128
}
122
$ext_arr = explode("," ,$ext[0]["extensions"]);
123
$options = trim($options);
124
foreach($ext_arr as $f_ext){
125
+ if( $f_ext && strpos( $options , $f_ext ) === false){
126
$options .= " " . $f_ext;
127
}
128
}
app/main/controllers/activity/RTMediaActivity.php CHANGED
@@ -12,127 +12,137 @@
12
*/
13
class RTMediaActivity {
14
15
- var $media = array( );
16
- var $activity_text = '';
17
- var $privacy;
18
-
19
- /**
20
- *
21
- */
22
- function __construct ( $media, $privacy = 0, $activity_text = false ) {
23
- if ( ! isset ( $media ) )
24
- return false;
25
- if ( ! is_array ( $media ) )
26
- $media = array( $media );
27
-
28
- $this->media = $media;
29
- $this->activity_text = $activity_text;
30
- $this->privacy = $privacy;
31
- }
32
-
33
- function create_activity_html () {
34
-
35
-
36
- $html = '';
37
-
38
- $html .='<div class="rtmedia-activity-container">';
39
-
40
- if ( ! empty ( $this->activity_text ) ) {
41
- $html .= '<div class="rtmedia-activity-text">';
42
- $html .= $this->activity_text;
43
- $html .= '</div>';
44
- }
45
-
46
- global $rtmedia;
47
- if( isset( $rtmedia->options['buddypress_limitOnActivity'] ) ) {
48
- $limitActivityFeed = $rtmedia->options['buddypress_limitOnActivity'];
49
- } else {
50
- $limitActivityFeed = 0;
51
}
52
53
- $mediaObj = new RTMediaModel();
54
- $media_details = $mediaObj->get ( array( 'id' => $this->media ) );
55
-
56
- if( intval( $limitActivityFeed ) > 0 )
57
- $media_details = array_slice( $media_details, 0, $limitActivityFeed, true);
58
- $rtmedia_activity_ul_class = apply_filters("rtmedia_activity_ul_class","large-block-grid-3");
59
- $li_content = "";
60
- $count = 0;
61
- foreach ( $media_details as $media ) {
62
- $li_content .= '<li class="rtmedia-list-item media-type-' . $media->media_type . '">';
63
- if ( $media->media_type == 'photo' )
64
- $li_content .= '<a href ="' . get_rtmedia_permalink ( $media->id ) . '">';
65
- $li_content .= '<div class="rtmedia-item-thumbnail">';
66
-
67
- $li_content .= $this->media ( $media );
68
-
69
- $li_content .= '</div>';
70
-
71
- $li_content .= '<div class="rtmedia-item-title">';
72
- $li_content .= '<h4 title="' . $media->media_title . '">';
73
- if ( $media->media_type != 'photo' )
74
- $li_content .= '<a href="' . get_rtmedia_permalink ( $media->id ) . '">';
75
-
76
- $li_content .= $media->media_title;
77
- if ( $media->media_type != 'photo' )
78
- $li_content .= '</a>';
79
- $li_content .= '</h4>';
80
- $li_content .= '</div>';
81
- if ( $media->media_type == 'photo' )
82
- $li_content .= '</a>';
83
-
84
- $li_content .= '<div class="rtmedia-item-actions">';
85
- $li_content .= $this->actions ();
86
- $li_content .= '</div>';
87
- $li_content .= '</li>';
88
- $count++;
89
- }
90
- $html .= '<ul class="rtmedia-list '.$rtmedia_activity_ul_class.' rtmedia-activity-media-length-'.$count.'">';
91
- $html .= $li_content;
92
- $html .= '</ul>';
93
- $html .= '</div>';
94
- return $html;
95
- }
96
-
97
- function actions () {
98
-
99
- }
100
-
101
- function media ( $media ) {
102
- if ( isset ( $media->media_type ) ) {
103
- // if ($media->media_type == 'album' ||
104
- // $media->media_type != 'photo') {
105
- // $thumbnail_id = get_rtmedia_meta($media->media_id,'cover_art');
106
- // if ( $thumbnail_id ) {
107
- // list($src, $width, $height) = wp_get_attachment_image_src($thumbnail_id);
108
- // return '<img src="'.$src.'" />';
109
- // }
110
- // }
111
- global $rtmedia;
112
- if ( $media->media_type == 'photo' ) {
113
- $thumbnail_id = $media->media_id;
114
- if ( $thumbnail_id ) {
115
- list($src, $width, $height) = wp_get_attachment_image_src ( $thumbnail_id, "rt_media_activity_image" );
116
- $html = '<img src="' . $src . '" />';
117
- }
118
- } elseif ( $media->media_type == 'video' ) {
119
- $cover_art = rtmedia_get_cover_art_src($media->id);
120
- if($cover_art) {
121
- $poster = 'poster = "'. $cover_art .'"';
122
- }
123
- else {
124
- $poster = "";
125
- }
126
- $html = '<video '.$poster.' src="' . wp_get_attachment_url ( $media->media_id ) . '" width="' . $rtmedia->options[ "defaultSizes_video_activityPlayer_width" ] . '" height="' . $rtmedia->options[ "defaultSizes_video_activityPlayer_height" ] . '" type="video/mp4" class="wp-video-shortcode" id="rt_media_video_' . $media->id . '" controls="controls" preload="none"></video>';
127
- } elseif ( $media->media_type == 'music' ) {
128
- $html = '<audio src="' . wp_get_attachment_url ( $media->media_id ) . '" width="' . $rtmedia->options[ "defaultSizes_music_activityPlayer_width" ] . '" height="0" type="audio/mp3" class="wp-audio-shortcode" id="rt_media_audio_' . $media->id . '" controls="controls" preload="none"></audio>';
129
- } else {
130
- $html = false;
131
- }
132
- } else {
133
- $html = false;
134
- }
135
- return apply_filters ( 'rtmedia_single_activity_filter', $html, $media, true );
136
- }
137
138
}
12
*/
13
class RTMediaActivity {
14
15
+ var $media = array();
16
+ var $activity_text = '';
17
+ var $privacy;
18
+
19
+ /**
20
+ *
21
+ */
22
+ function __construct( $media, $privacy = 0, $activity_text = false ) {
23
+ if ( !isset ( $media ) ) {
24
+ return false;
25
+ }
26
+ if ( !is_array( $media ) ) {
27
+ $media = array( $media );
28
+ }
29
+
30
+ $this->media = $media;
31
+ $this->activity_text = bp_activity_filter_kses( $activity_text );
32
+ $this->privacy = $privacy;
33
}
34
35
+ function create_activity_html() {
36
+
37
+
38
+ $html = '';
39
+
40
+ $html .= '<div class="rtmedia-activity-container">';
41
+
42
+ if ( !empty ( $this->activity_text ) ) {
43
+ $html .= '<div class="rtmedia-activity-text">';
44
+ $html .= $this->activity_text;
45
+ $html .= '</div>';
46
+ }
47
+
48
+ global $rtmedia;
49
+ if ( isset( $rtmedia->options[ 'buddypress_limitOnActivity' ] ) ) {
50
+ $limitActivityFeed = $rtmedia->options[ 'buddypress_limitOnActivity' ];
51
+ } else {
52
+ $limitActivityFeed = 0;
53
+ }
54
+
55
+ $mediaObj = new RTMediaModel();
56
+ $media_details = $mediaObj->get( array( 'id' => $this->media ) );
57
+
58
+ if ( intval( $limitActivityFeed ) > 0 ) {
59
+ $media_details = array_slice( $media_details, 0, $limitActivityFeed, true );
60
+ }
61
+ $rtmedia_activity_ul_class = apply_filters( "rtmedia_activity_ul_class", "large-block-grid-3" );
62
+ $li_content = "";
63
+ $count = 0;
64
+ foreach ( $media_details as $media ) {
65
+ $li_content .= '<li class="rtmedia-list-item media-type-' . $media->media_type . '">';
66
+ if ( $media->media_type == 'photo' ) {
67
+ $li_content .= '<a href ="' . get_rtmedia_permalink( $media->id ) . '">';
68
+ }
69
+ $li_content .= '<div class="rtmedia-item-thumbnail">';
70
+
71
+ $li_content .= $this->media( $media );
72
+
73
+ $li_content .= '</div>';
74
+
75
+ $li_content .= '<div class="rtmedia-item-title">';
76
+ $li_content .= '<h4 title="' . $media->media_title . '">';
77
+ if ( $media->media_type != 'photo' ) {
78
+ $li_content .= '<a href="' . get_rtmedia_permalink( $media->id ) . '">';
79
+ }
80
+
81
+ $li_content .= $media->media_title;
82
+ if ( $media->media_type != 'photo' ) {
83
+ $li_content .= '</a>';
84
+ }
85
+ $li_content .= '</h4>';
86
+ $li_content .= '</div>';
87
+ if ( $media->media_type == 'photo' ) {
88
+ $li_content .= '</a>';
89
+ }
90
+
91
+ $li_content .= '<div class="rtmedia-item-actions">';
92
+ $li_content .= $this->actions();
93
+ $li_content .= '</div>';
94
+ $li_content .= '</li>';
95
+ $count ++;
96
+ }
97
+ $html .= '<ul class="rtmedia-list ' . $rtmedia_activity_ul_class . ' rtmedia-activity-media-length-' . $count . '">';
98
+ $html .= $li_content;
99
+ $html .= '</ul>';
100
+ $html .= '</div>';
101
+
102
+ return bp_activity_filter_kses( $html );
103
+ }
104
+ /**
105
+ * @fixme me Why this function is required ?
106
+ */
107
+ function actions() {
108
+
109
+ }
110
+
111
+ function media( $media ) {
112
+ if ( isset ( $media->media_type ) ) {
113
+ // if ($media->media_type == 'album' ||
114
+ // $media->media_type != 'photo') {
115
+ // $thumbnail_id = get_rtmedia_meta($media->media_id,'cover_art');
116
+ // if ( $thumbnail_id ) {
117
+ // list($src, $width, $height) = wp_get_attachment_image_src($thumbnail_id);
118
+ // return '<img src="'.$src.'" />';
119
+ // }
120
+ // }
121
+ global $rtmedia;
122
+ if ( $media->media_type == 'photo' ) {
123
+ $thumbnail_id = $media->media_id;
124
+ if ( $thumbnail_id ) {
125
+ list( $src, $width, $height ) = wp_get_attachment_image_src( $thumbnail_id, "rt_media_activity_image" );
126
+ $html = '<img src="' . $src . '" />';
127
+ }
128
+ } elseif ( $media->media_type == 'video' ) {
129
+ $cover_art = rtmedia_get_cover_art_src( $media->id );
130
+ if ( $cover_art ) {
131
+ $poster = 'poster = "' . $cover_art . '"';
132
+ } else {
133
+ $poster = "";
134
+ }
135
+ $html = '<video ' . $poster . ' src="' . wp_get_attachment_url( $media->media_id ) . '" width="' . $rtmedia->options[ "defaultSizes_video_activityPlayer_width" ] . '" height="' . $rtmedia->options[ "defaultSizes_video_activityPlayer_height" ] . '" type="video/mp4" class="wp-video-shortcode" id="rt_media_video_' . $media->id . '" controls="controls" preload="none"></video>';
136
+ } elseif ( $media->media_type == 'music' ) {
137
+ $html = '<audio src="' . wp_get_attachment_url( $media->media_id ) . '" width="' . $rtmedia->options[ "defaultSizes_music_activityPlayer_width" ] . '" height="0" type="audio/mp3" class="wp-audio-shortcode" id="rt_media_audio_' . $media->id . '" controls="controls" preload="none"></audio>';
138
+ } else {
139
+ $html = false;
140
+ }
141
+ } else {
142
+ $html = false;
143
+ }
144
+
145
+ return apply_filters( 'rtmedia_single_activity_filter', $html, $media, true );
146
+ }
147
148
}
app/main/controllers/activity/RTMediaBuddyPressActivity.php CHANGED
@@ -217,8 +217,8 @@ class RTMediaBuddyPressActivity {
217
$activity_allowedtags[ 'li' ][ 'class' ] = array( );
218
219
/* Legacy Code */
220
- $activity_allowedtags[ 'script' ] = array( );
221
- $activity_allowedtags[ 'script' ][ 'type' ] = array( );
222
223
return $activity_allowedtags;
224
}
217
$activity_allowedtags[ 'li' ][ 'class' ] = array( );
218
219
/* Legacy Code */
220
+ //$activity_allowedtags[ 'script' ] = array( );
221
+ //$activity_allowedtags[ 'script' ][ 'type' ] = array( );
222
223
return $activity_allowedtags;
224
}
index.php CHANGED
@@ -2,9 +2,9 @@
2
3
/*
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.7.4
8
Author: rtCamp
9
Text Domain: rtmedia
10
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
2
3
/*
4
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
+ Plugin URI: http://rtcamp.com/rtmedia/?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.7.5
8
Author: rtCamp
9
Text Domain: rtmedia
10
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
readme.txt CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Requires at least: WordPress 3.6
8
Tested up to: WordPress 3.9 + BuddyPress 2.0
9
- Stable tag: 3.7.4
10
11
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
@@ -133,6 +133,9 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
133
134
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.
135
136
= 3.7.4 =
137
* Update Spanish translation
138
* Bug fixes
@@ -789,8 +792,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
789
790
== Upgrade Notice ==
791
792
- = 3.7.4 =
793
- Requires BuddyPress 1.7 or higher, if using BuddyPress. Update spanish translation and bug fixes.
794
795
== Sponsors ==
796
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.9 + BuddyPress 2.0
9
+ Stable tag: 3.7.5
10
11
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
133
134
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.
135
136
+ = 3.7.5 =
137
+ * Bug fixes
138
+
139
= 3.7.4 =
140
* Update Spanish translation
141
* Bug fixes
792
793
== Upgrade Notice ==
794
795
+ = 3.7.5 =
796
+ Requires BuddyPress 1.7 or higher, if using BuddyPress. Bug fixes.
797
798
== Sponsors ==
799