rtMedia for WordPress, BuddyPress and bbPress - Version 3.6.5

Version Description

  • rtMedia premium theme InspireBook 1.0 released
Download this release

Release Info

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

Code changes from version 3.6.4 to 3.6.5

app/admin/RTMediaAdmin.php CHANGED
@@ -89,6 +89,41 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
89
  add_action ( 'wp_ajax_rtmedia_hide_template_override_notice', array( $this, 'rtmedia_hide_template_override_notice' ), 1 );
90
  add_action ( 'admin_notices', array( $this, 'rtmedia_update_template_notice' ) );
91
  add_action ( 'admin_init', array( $this, 'rtmedia_bp_add_update_type' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  }
93
 
94
  function rtmedia_bp_add_update_type() {
89
  add_action ( 'wp_ajax_rtmedia_hide_template_override_notice', array( $this, 'rtmedia_hide_template_override_notice' ), 1 );
90
  add_action ( 'admin_notices', array( $this, 'rtmedia_update_template_notice' ) );
91
  add_action ( 'admin_init', array( $this, 'rtmedia_bp_add_update_type' ) );
92
+ add_action ( 'admin_notices', array( $this, 'rtmedia_inspirebook_release_notice' ) );
93
+ add_action ( 'wp_ajax_rtmedia_hide_inspirebook_release_notice', array( $this, 'rtmedia_hide_inspirebook_release_notice' ), 1 );
94
+ }
95
+
96
+ function rtmedia_inspirebook_release_notice() {
97
+ $site_option = rtmedia_get_site_option("rtmedia_inspirebook_release_notice");
98
+ if(!$site_option || $site_option != "hide") {
99
+ rtmedia_update_site_option("rtmedia_inspirebook_release_notice", "show");
100
+ ?>
101
+ <div class="updated rtmedia-inspire-book-notice">
102
+ <p>
103
+ <span><a href="https://rtcamp.com/store/inspirebook/" target="_blank"><b>Meet InspireBook</b></a> - First official rtMedia premium theme.</span>
104
+ <a href="#" onclick="rtmedia_hide_template_override_notice()" style="float:right">Dismiss</a>
105
+ </p>
106
+ </div>
107
+ <script type="text/javascript">
108
+ function rtmedia_hide_template_override_notice() {
109
+ var data = {action : 'rtmedia_hide_inspirebook_release_notice'};
110
+ jQuery.post(ajaxurl,data,function(response){
111
+ response = response.trim();
112
+ if(response === "1")
113
+ jQuery('.rtmedia-inspire-book-notice').remove();
114
+ });
115
+ }
116
+ </script>
117
+ <?php
118
+ }
119
+ }
120
+
121
+ function rtmedia_hide_inspirebook_release_notice() {
122
+ if( rtmedia_update_site_option("rtmedia_inspirebook_release_notice", "hide" ) )
123
+ echo "1";
124
+ else
125
+ echo "0";
126
+ die();
127
  }
128
 
129
  function rtmedia_bp_add_update_type() {
app/assets/css/admin.css CHANGED
@@ -757,11 +757,11 @@ abbr {
757
  width: 100%;
758
  }
759
 
760
- #rtm-themes h3.rtmedia-theme-3rd-party-title {
761
  margin: 5px 0;
762
  }
763
 
764
- #rtm-themes h3.rtmedia-theme-3rd-party-title a {
765
  text-decoration: none;
766
  }
767
 
757
  width: 100%;
758
  }
759
 
760
+ #rtm-themes h3.rtmedia-theme-3rd-party-title, #rtm-themes h3.rtmedia-theme-title {
761
  margin: 5px 0;
762
  }
763
 
764
+ #rtm-themes h3.rtmedia-theme-3rd-party-title a, #rtm-themes h3.rtmedia-theme-title a, #rtm-themes .rtmedia-theme-content a {
765
  text-decoration: none;
766
  }
767
 
app/assets/img/rtmedia-theme-InspireBook.png ADDED
Binary file
app/helper/RTMediaThemes.php CHANGED
@@ -93,8 +93,21 @@ class RTMediaThemes {
93
  ?>
94
  <div class="row">
95
  <div class="columns large-12">
96
- <h3><?php _e('Coming Soon...','rtmedia'); ?></h3>
97
- <p><?php _e('We are working on some rtMedia themes which will be available shortly.','rtmedia'); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  </div>
99
  </div>
100
  <?php
93
  ?>
94
  <div class="row">
95
  <div class="columns large-12">
96
+ <div class="columns large-4 rtmedia-theme-image"><a href="https://rtcamp.com/store/inspirebook/" target="_blank"><img src="<?php echo RTMEDIA_URL.'app/assets/img/rtmedia-theme-InspireBook.png' ?>" /></a> </div>
97
+ <div class="columns large-7 rtmedia-theme-content">
98
+ <h3 class="rtmedia-theme-title"><a href="https://rtcamp.com/store/inspirebook/" target="_blank">InspireBook</a></h3>
99
+ <div>
100
+ <p>
101
+ <span><a href="https://rtcamp.com/store/inspirebook/" target="_blank"><b>Meet InspireBook</b></a> - First official rtMedia premium theme.</span>
102
+ </p>
103
+ <p>
104
+ <span>InspireBook is a premium WordPress theme, designed especially for BuddyPress and rtMedia powered social-networks. <a href="https://rtcamp.com/introducing-inspirebook/" class="rtmedia-theme-inner-a" target="_blank">Read More</a> </span>
105
+ </p>
106
+ <p>
107
+ <span>Links: <a href="https://rtcamp.com/store/inspirebook/" target="_blank">Buy InspireBook</a> | <a href="http://demo.rtcamp.com/rtmedia/?theme=InspireBook" target="_blank">Live Demo</a> | <a href="https://rtcamp.com/docs/inspirebook/" target="_blank">Documentation</a> | <a href="https://rtcamp.com/support/forum/premium-themes/" target="_blank">Support Forum</a></span>
108
+ </p>
109
+ </div>
110
+ </div>
111
  </div>
112
  </div>
113
  <?php
app/main/RTMedia.php CHANGED
@@ -835,6 +835,13 @@ class RTMedia
835
  wp_localize_script('rtmedia-main', 'rtmedia_less', __('less',"rtmedia"));
836
  wp_localize_script('rtmedia-main', 'rtmedia_delete_uploaded_media', __('This media is uploaded. Are you sure you want to delete this media?',"rtmedia"));
837
  wp_localize_script ( 'rtmedia-backbone', 'rMedia_loading_media', RTMEDIA_URL . "app/assets/img/boxspinner.gif" );
 
 
 
 
 
 
 
838
  }
839
 
840
  function set_bp_bar() {
835
  wp_localize_script('rtmedia-main', 'rtmedia_less', __('less',"rtmedia"));
836
  wp_localize_script('rtmedia-main', 'rtmedia_delete_uploaded_media', __('This media is uploaded. Are you sure you want to delete this media?',"rtmedia"));
837
  wp_localize_script ( 'rtmedia-backbone', 'rMedia_loading_media', RTMEDIA_URL . "app/assets/img/boxspinner.gif" );
838
+ global $rtmedia_query;
839
+ if( class_exists('BuddyPress') ) {
840
+ $rtmedia_user_domain = trailingslashit ( bp_displayed_user_domain() . constant('RTMEDIA_MEDIA_SLUG') );
841
+ } else {
842
+ $rtmedia_user_domain = trailingslashit( trailingslashit( get_author_posts_url($rtmedia_query->query['context_id'] ) ). constant('RTMEDIA_MEDIA_SLUG') );
843
+ }
844
+ wp_localize_script ( 'rtmedia-backbone', 'rtmedia_user_domain', $rtmedia_user_domain );
845
  }
846
 
847
  function set_bp_bar() {
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.6.4
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.6.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.7 + BuddyPress 1.8.1
9
- Stable tag: 3.6.4
10
 
11
  Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
 
@@ -132,6 +132,9 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
132
  == Changelog ==
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
  = 3.6.4 =
136
  * Update German language files
137
  * Bug fixes
@@ -709,8 +712,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
709
 
710
  == Upgrade Notice ==
711
 
712
- = 3.6.4 =
713
- Requires BuddyPress 1.7 or higher, if using BuddyPress. German translation updated, bug fixes.
714
 
715
  == Sponsors ==
716
 
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.6.5
10
 
11
  Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
 
132
  == Changelog ==
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
+ = 3.6.5 =
136
+ * rtMedia premium theme InspireBook 1.0 released
137
+
138
  = 3.6.4 =
139
  * Update German language files
140
  * Bug fixes
712
 
713
  == Upgrade Notice ==
714
 
715
+ = 3.6.5 =
716
+ Requires BuddyPress 1.7 or higher, if using BuddyPress. rtMedia premium theme InspireBook 1.0 released.
717
 
718
  == Sponsors ==
719