WordPress.org

Plugin Directory


Ignore:
Timestamp:
04/09/09 09:52:13 (5 years ago)
Author:
mark8barnes
Message:
 
Location:
sermon-browser/trunk
Files:
5 edited

Legend:

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

    r108590 r109047  
    1212        '[series_link]' => '<a href="<?php sb_print_series_link($sermon) ?>"><?php echo stripslashes($sermon->series) ?></a>', 
    1313        '[service_link]' => '<a href="<?php sb_print_service_link($sermon) ?>"><?php echo stripslashes($sermon->service) ?></a>',    
    14         '[date]' => '<?php echo sb_format_date(strtotime($sermon->date." 00:00 ".date("O"))) ?>', 
     14        '[date]' => '<?php echo sb_formatted_date ($sermon) ?>', 
    1515        '[first_passage]' => '<?php $foo = unserialize($sermon->start); $bar = unserialize($sermon->end); echo sb_get_books($foo[0], $bar[0]) ?>', 
    1616        '[files_loop]' => '<?php foreach ((array) $stuff["Files"] as $file): ?>', 
     
    4343        '[series_link]' => '<a href="<?php sb_print_series_link($sermon["Sermon"]) ?>"><?php echo stripslashes($sermon["Sermon"]->series) ?></a>', 
    4444        '[service_link]' => '<a href="<?php sb_print_service_link($sermon["Sermon"]) ?>"><?php echo stripslashes($sermon["Sermon"]->service) ?></a>', 
    45         '[date]' => '<?php echo sb_format_date(strtotime($sermon["Sermon"]->date." 00:00 ".date("O"))) ?>', 
     45        '[date]' => '<?php echo sb_formatted_date ($sermon["Sermon"]) ?>', 
    4646        '[passages_loop]' => '<?php for ($i = 0; $i < count($sermon["Sermon"]->start); $i++): ?>', 
    4747        '[/passages_loop]' => '<?php endfor ?>', 
  • sermon-browser/trunk/sb-includes/frontend.php

    r108590 r109047  
    463463 
    464464// Formats date into words 
    465 function sb_format_date ($the_date) { 
    466     if (WPLANG == '' | WPLANG == "en_EN" | WPLANG == "en") { 
    467         return date(get_option("date_format"), $the_date); 
    468     } else { 
    469         return strftime("%e %B %Y", $the_date); 
    470     } 
     465function sb_formatted_date ($sermon) { 
     466    $sermon_time = $sermon->time; 
     467    if ($sermon_time == '') 
     468        $sermon_time = sb_default_time ($sermon->sid); 
     469    return date_i18n(get_option("date_format"), strtotime($sermon->date.' '.$sermon_time)); 
    471470} 
    472471 
  • sermon-browser/trunk/sb-includes/podcast.php

    r108954 r109047  
    66    if ($sermon_time == '') 
    77        $sermon_time = sb_default_time ($sermon->sid); 
    8     $timezone = get_option('gmt_offset')*3600; 
    98    echo date('D, d M Y H:i:s O', strtotime($sermon->date.' '.$sermon_time)); 
    109} 
  • sermon-browser/trunk/sb-includes/widget.php

    r108590 r109047  
    4343        } 
    4444        if ($display_date) 
    45             echo " <span class=\"sermon-date\">".__('on', $sermon_domain)." ".sb_format_date(strtotime($sermon->date))."</span>"; 
     45            echo " <span class=\"sermon-date\">".__('on', $sermon_domain)." ".sb_formatted_date ($sermon)."</span>"; 
    4646        if ($display_player) 
    4747            sb_display_mini_player($sermon); 
     
    173173        } 
    174174        if ($date) 
    175             echo " <span class=\"sermon-date\">".__(' on ', $sermon_domain).sb_format_date(strtotime($sermon->date))."</span>"; 
     175            echo " <span class=\"sermon-date\">".__(' on ', $sermon_domain).sb_formatted_date ($sermon)."</span>"; 
    176176        if ($player) 
    177177            sb_display_mini_player($sermon, $i); 
  • sermon-browser/trunk/sermon.php

    r108954 r109047  
    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.41.1 
     7Version: 0.41.2 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    3030 
    3131//Set global constants 
    32 define('SB_CURRENT_VERSION', '0.41.1'); 
     32define('SB_CURRENT_VERSION', '0.41.2'); 
    3333define('SB_DATABASE_VERSION', '1.5'); 
    3434 
Note: See TracChangeset for help on using the changeset viewer.