Changeset 753109
- Timestamp:
- 08/07/2013 05:34:50 PM (13 years ago)
- Location:
- sermon-browser/trunk
- Files:
-
- 3 edited
-
sb-includes/admin.php (modified) (2 diffs)
-
sb-includes/podcast.php (modified) (1 diff)
-
sermon.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sermon-browser/trunk/sb-includes/admin.php
r737860 r753109 1464 1464 $id3_tags = array(); 1465 1465 if (isset($_GET['getid3'])) { 1466 require_once(SB_INCLUDES_DIR.'/getid3/getid3.php');1467 1466 $file_data = $wpdb->get_row("SELECT name, type FROM {$wpdb->prefix}sb_stuff WHERE id = ".$wpdb->escape($_GET['getid3'])); 1468 1467 if ($file_data !== NULL) { 1468 if ( ! class_exists( 'getID3' ) ) { 1469 if ( version_compare(get_bloginfo('version'), '3.6', '<') ) 1470 require(SB_INCLUDES_DIR.'/getid3/getid3.php'); 1471 else 1472 require( ABSPATH . WPINC . '/ID3/getid3.php' ); 1473 } 1469 1474 $getID3 = new getID3; 1470 1475 if ($file_data->type == 'url') { … … 2139 2144 if (stripos(sb_get_option('mp3_shortcode'), '%SERMONURL%') === FALSE) { 2140 2145 echo '<div id="message" class="updated fade"><p><b>'; 2141 _e('Error:</b> The MP3 shortcode must link to individual sermon files. You do this by including <span style="color:red">%SERMONURL%</span> in your shortcode (e.g. [audio :%SERMONURL%]). SermonBrowser will then replace %SERMONURL% with a link to each sermon.', $sermon_domain);2146 _e('Error:</b> The MP3 shortcode must link to individual sermon files. You do this by including <span style="color:red">%SERMONURL%</span> in your shortcode (e.g. [audio mp3="%SERMONURL%"]). SermonBrowser will then replace %SERMONURL% with a link to each sermon.', $sermon_domain); 2142 2147 echo '</div>'; 2143 2148 } elseif (do_shortcode(sb_get_option('mp3_shortcode')) == sb_get_option('mp3_shortcode')) { 2144 if ((substr(sb_get_option('mp3_shortcode'), 0, 18) == '[audio:%SERMONURL%') && !function_exists('ap_insert_player_widgets')) { 2145 if ($wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sb_stuff WHERE name LIKE '%.mp3'")>0) 2146 echo '<div id="message" class="updated"><p><b>'.sprintf(__('Tip: Installing the %1$sWordpress Audio Player%2$s, or another Wordpress MP3 player plugin will allow users to listen to your sermons more easily.', $sermon_domain), '<a href="'.site_url().'/wp-admin/plugin-install.php?tab=search&s=audio%20player&type=term&search=Search">', '</a>').'</b></div>'; 2147 } elseif (substr(sb_get_option('mp3_shortcode'), 0, 18) != '[audio:%SERMONURL%') { 2148 echo '<div id="message" class="updated fade"><p><b>'; 2149 _e('Error:</b> You have specified a custom MP3 shortcode, but Wordpress doesn’t know how to interpret it. Make sure the shortcode is correct, and that the appropriate plugin is activated.', $sermon_domain); 2150 echo '</div>'; 2151 } 2149 echo '<div id="message" class="updated fade"><p><b>'; 2150 _e('Error:</b> You have specified a custom MP3 shortcode, but Wordpress doesn’t know how to interpret it. Make sure the shortcode is correct, and that the appropriate plugin is activated.', $sermon_domain); 2151 echo '</div>'; 2152 2152 } 2153 2153 if (sb_display_url() == "") { -
sermon-browser/trunk/sb-includes/podcast.php
r389293 r753109 29 29 return $duration; 30 30 else { 31 require_once(SB_INCLUDES_DIR.'/getid3/getid3.php'); 31 if ( ! class_exists( 'getID3' ) ) { 32 if ( version_compare(get_bloginfo('version'), '3.6', '<') ) 33 require(SB_INCLUDES_DIR.'/getid3/getid3.php'); 34 else 35 require( ABSPATH . WPINC . '/ID3/getid3.php' ); 36 } 32 37 $getID3 = new getID3; 33 38 $MediaFileInfo = $getID3->analyze(SB_ABSPATH.sb_get_option('upload_dir').$media_name); -
sermon-browser/trunk/sermon.php
r748934 r753109 5 5 Description: Upload sermons to your website, where they can be searched, listened to, and downloaded. Easy to use with comprehensive help and tutorials. 6 6 Author: Mark Barnes 7 Version: 0.45.1 07 Version: 0.45.11 8 8 Author URI: http://www.4-14.org.uk/ 9 9 … … 54 54 * @package common_functions 55 55 */ 56 define('SB_CURRENT_VERSION', '0.45.1 0');56 define('SB_CURRENT_VERSION', '0.45.11'); 57 57 define('SB_DATABASE_VERSION', '1.7'); 58 58 sb_define_constants(); … … 709 709 define ('SB_INCLUDES_DIR', SB_PLUGIN_DIR.'/sermon-browser/sb-includes'); 710 710 define ('SB_ABSPATH', sb_sanitise_path(ABSPATH)); 711 define ('GETID3_INCLUDEPATH', SB_PLUGIN_DIR.'/'.plugin_basename(dirname(__FILE__)).'/sb-includes/getid3/'); 712 define ('GETID3_HELPERAPPSDIR', GETID3_INCLUDEPATH); 711 if ( version_compare(get_bloginfo('version'), '3.6', '<') ) { 712 define ('GETID3_INCLUDEPATH', SB_PLUGIN_DIR.'/'.plugin_basename(dirname(__FILE__)).'/sb-includes/getid3/'); 713 define ('GETID3_HELPERAPPSDIR', GETID3_INCLUDEPATH); 714 } 713 715 } 714 716
Note: See TracChangeset
for help on using the changeset viewer.