WordPress.org

Plugin Directory


Ignore:
Timestamp:
04/17/09 10:24:35 (5 years ago)
Author:
mark8barnes
Message:
 
Location:
sermon-browser/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sermon-browser/trunk/sb-includes/frontend.php

    r110084 r111224  
    478478    if ($sermon_time == '') 
    479479        $sermon_time = sb_default_time ($sermon->sid); 
    480     return date_i18n(get_option("date_format"), strtotime($sermon->date.' '.$sermon_time)); 
     480    if ($sermon->date == '1970-01-01') 
     481        return __('Unknown Date', $sermon_domain); 
     482    else 
     483        return date_i18n(get_option("date_format"), strtotime($sermon->date.' '.$sermon_time)); 
    481484} 
    482485 
  • sermon-browser/trunk/sb-includes/podcast.php

    r109985 r111224  
    2323//Prints size of .mp3 file 
    2424function sb_mp3_length($media_name, $media_type) { 
    25     if (strtolower(substr($media_name, -3)) == 'mp3' && $media_type == 'Files') { 
     25    if (class_exists('mp3file') && strtolower(substr($media_name, -3)) == 'mp3' && $media_type == 'Files') { 
    2626        $mp3file = new mp3file(sb_get_value('wordpress_path').get_option('sb_sermon_upload_dir').$media_name); 
    2727        $meta = $mp3file->get_metadata(); 
  • sermon-browser/trunk/sermon.php

    r110084 r111224  
    55Description: Add sermons to your Wordpress blog. Coding by <a href="http://codeandmore.com/">Tien Do Xuan</a> and  
    66Author: Mark Barnes 
    7 Version: 0.42.2 
     7Version: 0.42.3 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    218218                );"; 
    219219              dbDelta($sql); 
    220               $sql = "INSERT INTO " . $table_name . "(name, page_id) VALUES ( 'Exposition of the Psalms', '' );"; 
     220              $sql = "INSERT INTO " . $table_name . "(name, page_id) VALUES ( 'Exposition of the Psalms', 0 );"; 
    221221              dbDelta($sql); 
    222               $sql = "INSERT INTO " . $table_name . "(name, page_id) VALUES ( 'Exposition of Romans', '' );"; 
     222              $sql = "INSERT INTO " . $table_name . "(name, page_id) VALUES ( 'Exposition of Romans', 0 );"; 
    223223              dbDelta($sql); 
    224224           } 
     
    15601560                        <td><?php echo stripslashes($sermon->title) ?></td> 
    15611561                        <td><?php echo stripslashes($sermon->pname) ?></td> 
    1562                         <td><?php echo $sermon->date ?></td> 
     1562                        <td><?php echo (($sermon->date == '1970-01-01') ? __('Unknown', $sermon_domain) : $sermon->date); ?></td> 
    15631563                        <td><?php echo stripslashes($sermon->sname) ?></td> 
    15641564                        <td><?php echo stripslashes($sermon->ssname) ?></td> 
     
    19291929                        <strong><?php _e('Date', $sermon_domain) ?></strong> (yyyy-mm-dd) 
    19301930                        <div> 
    1931                             <input type="text" id="date" name="date" value="<?php echo $curSermon->date ?>" /> 
     1931                            <input type="text" id="date" name="date" value="<?php if ($curSermon->date != '1970-01-01') echo $curSermon->date; ?>" /> 
    19321932                        </div> 
    19331933                    </td> 
     
    21902190function sb_return_ajax_data () { 
    21912191    // Throughout this plugin, p stands for preacher, s stands for service and ss stands for series 
    2192     global $wpdb; 
     2192    global $wpdb, $sermon_domain; 
    21932193    if ($_POST['pname']) { // preacher 
    21942194        $pname = mysql_real_escape_string($_POST['pname']); 
     
    23132313                <td><?php echo stripslashes($sermon->title) ?></td> 
    23142314                <td><?php echo stripslashes($sermon->pname) ?></td> 
    2315                 <td><?php echo stripslashes($sermon->date) ?></td> 
     2315                <td><?php echo (($sermon->date == '1970-01-01') ? __('Unknown', $sermon_domain) : $sermon->date); ?></td> 
    23162316                <td><?php echo stripslashes($sermon->sname) ?></td> 
    23172317                <td><?php echo stripslashes($sermon->ssname) ?></td> 
Note: See TracChangeset for help on using the changeset viewer.