WordPress.org

Plugin Directory

Changeset 51772 for sermon-browser/trunk


Ignore:
Timestamp:
06/24/08 13:17:15 (6 years ago)
Author:
mark8barnes
Message:
 
Location:
sermon-browser/trunk
Files:
7 edited

Legend:

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

    r51345 r51772  
    1515    '[files_loop]' => '<?php foreach ((array) $stuff["Files"] as $file): ?>', 
    1616    '[/files_loop]' => '<?php endforeach ?>', 
    17     '[file]' => '<?php sb_print_file($file) ?>', 
    18     '[urls_loop]' => '<?php foreach ((array) $stuff["URLs"] as $url): ?>', 
    19     '[/urls_loop]' => '<?php endforeach ?>', 
    20     '[url]' => '<?php sb_print_url($url) ?>', 
     17    '[file]' => '<?php sb_print_url($file) ?>', 
     18    '[file_with_download]' => '<?php sb_print_url_link($file) ?>', 
    2119    '[embed_loop]' => '<?php foreach ((array) $stuff["Code"] as $code): ?>', 
    2220    '[/embed_loop]' => '<?php endforeach ?>', 
     
    3028    '[podcasticon]' => '<img alt="Subscribe to full podcast" title="Subscribe to full podcast" class="podcasticon" src="<?php echo get_bloginfo("wpurl") ?>/wp-content/plugins/sermon-browser/icons/podcast.png"/>', 
    3129    '[podcasticon_for_search]' => '<img alt="Subscribe to custom podcast" title="Subscribe to custom podcast" class="podcasticon" src="<?php echo get_bloginfo("wpurl") ?>/wp-content/plugins/sermon-browser/icons/podcast_custom.png"/>', 
     30    '[editlink]' => '<?php sb_edit_link($sermon->id) ?>', 
    3231    '[creditlink]' => '<div id="poweredbysermonbrowser">Powered by <a href="http://www.4-14.org.uk/sermon-browser">Sermon Browser</a></div>', 
    3332); 
     
    3534$sdict = array( 
    3635    '[sermon_title]' => '<?php echo stripslashes($sermon["Sermon"]->title) ?>', 
     36    '[sermon_description]' => '<?php echo stripslashes($sermon["Sermon"]->description) ?>', 
    3737    '[preacher_link]' => '<a href="<?php sb_print_preacher_link($sermon["Sermon"]) ?>"><?php echo stripslashes($sermon["Sermon"]->preacher) ?></a>', 
    3838    '[preacher_description]' => '<?php sb_print_preacher_description($sermon["Sermon"]) ?>', 
     
    4646    '[files_loop]' => '<?php foreach ((array) $sermon["Files"] as $file): ?>', 
    4747    '[/files_loop]' => '<?php endforeach ?>', 
    48     '[file]' => '<?php sb_print_file($file) ?>', 
    49     '[urls_loop]' => '<?php foreach ((array) $sermon["URLs"] as $url): ?>', 
    50     '[/urls_loop]' => '<?php endforeach ?>', 
    51     '[url]' => '<?php sb_print_url($url) ?>', 
     48    '[file]' => '<?php sb_print_url($file) ?>', 
     49    '[file_with_download]' => '<?php sb_print_url_link($file) ?>', 
    5250    '[embed_loop]' => '<?php foreach ((array) $sermon["Code"] as $code): ?>', 
    5351    '[/embed_loop]' => '<?php endforeach ?>', 
     
    6361    '[webtext]' => '<?php for ($i = 0; $i < count($sermon["Sermon"]->start); $i++): echo sb_add_bible_text ($sermon["Sermon"]->start[$i], $sermon["Sermon"]->end[$i], "asv"); endfor ?>', 
    6462    '[biblepassage]' => '<?php for ($i = 0; $i < count($sermon["Sermon"]->start); $i++): sb_print_bible_passage ($sermon["Sermon"]->start[$i], $sermon["Sermon"]->end[$i]); endfor ?>', 
     63    '[editlink]' => '<?php sb_edit_link($_GET["sermon_id"]) ?>', 
    6564    '[creditlink]' => '<div id="poweredbysermonbrowser">Powered by <a href="http://www.4-14.org.uk/sermon-browser">Sermon Browser</a></div>', 
    6665); 
  • sermon-browser/trunk/frontend.php

    r51345 r51772  
    3535    if ($_GET['sermon_id']) { 
    3636        $id = $_GET['sermon_id']; 
    37         $sermon = $wpdb->get_row("SELECT m.id, m.title, m.date, m.start, m.end, p.id as pid, p.name as preacher, s.id as sid, s.name as service, ss.id as ssid, ss.name as series FROM {$wpdb->prefix}sb_sermons as m, {$wpdb->prefix}sb_preachers as p, {$wpdb->prefix}sb_services as s, {$wpdb->prefix}sb_series as ss where m.preacher_id = p.id and m.service_id = s.id and m.series_id = ss.id and m.id = $id"); 
     37        $sermon = $wpdb->get_row("SELECT m.title as title, p.name as preacher FROM {$wpdb->prefix}sb_sermons as m, {$wpdb->prefix}sb_preachers as p where m.id = $id"); 
    3838        return $title.' ('.stripslashes($sermon->title).' - '.stripslashes($sermon->preacher).')'; 
    3939    } 
     
    4747        return insert_audio_player($params); 
    4848    } 
     49} 
     50 
     51function sb_edit_link ($id) { 
     52    if (current_user_can('edit_posts'))  
     53        echo '<div class="sb_edit_link"><a href="'.get_bloginfo('wpurl').'/wp-admin/admin.php?page=sermon-browser/new_sermon.php&mid='.$id.'">Edit Sermon</a></div>'; 
    4954} 
    5055 
     
    199204} 
    200205 
    201 // Display podcast 
     206// Display podcast or do download 
    202207function sb_hijack() { 
    203     global $wordpressRealPath; 
    204208    if (isset($_REQUEST['podcast'])) { 
     209        global $wordpressRealPath; 
    205210        $sermons = sb_get_sermons(array( 
    206211            'title' => $_REQUEST['title'], 
     
    225230        die(); 
    226231    } 
    227 } 
     232    if (isset($_REQUEST['download']) AND isset($_REQUEST['file_name'])) { 
     233        global $wordpressRealPath; 
     234        $file_name = urldecode($_GET['file_name']); 
     235        header("Pragma: public"); 
     236        header("Expires: 0"); 
     237        header("Cache-Control: must-revalidate, post-check=0, pre-check=0");  
     238        header("Content-Type: application/force-download"); 
     239        header("Content-Type: application/octet-stream"); 
     240        header("Content-Type: application/download"); 
     241        header("Content-Disposition: attachment; filename=".$file_name.";"); 
     242        header("Content-Transfer-Encoding: binary"); 
     243        $file_name = $wordpressRealPath.get_option("sb_sermon_upload_dir").$file_name; 
     244        header("Content-Length: ".filesize($file_name)); 
     245        @readfile($file_name); 
     246        exit(); 
     247    } 
     248    if (isset($_REQUEST['download']) AND isset($_REQUEST['url'])) { 
     249        $url = urldecode($_GET['url']); 
     250        if(ini_get('allow_url_fopen')) { 
     251            $headers = array_change_key_case(get_headers($url, 1),CASE_LOWER); 
     252            $filesize = $headers['content-length']; 
     253            $cd =  $headers['content-disposition']; 
     254            $location =  $headers['location']; 
     255            if ($location) { 
     256                header('Location: '.get_bloginfo('wpurl').'?download&url='.$location); 
     257                die(); 
     258            } 
     259            header("Pragma: public"); 
     260            header("Expires: 0"); 
     261            header("Cache-Control: must-revalidate, post-check=0, pre-check=0");  
     262            header("Content-Type: application/force-download"); 
     263            header("Content-Type: application/octet-stream"); 
     264            header("Content-Type: application/download"); 
     265            if ($cd) { 
     266                header ("Content-Disposition: ".$cd); } 
     267            else { 
     268                header("Content-Disposition: attachment; filename=".basename($url).";"); } 
     269            header("Content-Transfer-Encoding: binary"); 
     270            if ($filesize) header("Content-Length: ".$filesize); 
     271            @readfile($url); 
     272            exit(); 
     273        } 
     274        else { 
     275            header('Location: '.$url); 
     276        } 
     277    } 
     278} 
     279 
     280//Emulates get_headers on PHP 4 
     281if (!function_exists('get_headers')) { 
     282function get_headers($Url, $Format= 0, $Depth= 0) { 
     283    if ($Depth > 5) return; 
     284    $Parts = parse_url($Url); 
     285    if (!array_key_exists('path', $Parts))   $Parts['path'] = '/'; 
     286    if (!array_key_exists('port', $Parts))   $Parts['port'] = 80; 
     287    if (!array_key_exists('scheme', $Parts)) $Parts['scheme'] = 'http'; 
     288 
     289    $Return = array(); 
     290    $fp = fsockopen($Parts['host'], $Parts['port'], $errno, $errstr, 30); 
     291    if ($fp) { 
     292        $Out = 'GET '.$Parts['path'].(isset($Parts['query']) ? '?'.@$Parts['query'] : '')." HTTP/1.1\r\n". 
     293               'Host: '.$Parts['host'].($Parts['port'] != 80 ? ':'.$Parts['port'] : '')."\r\n". 
     294               'Connection: Close'."\r\n"; 
     295        fwrite($fp, $Out."\r\n"); 
     296        $Redirect = false; $RedirectUrl = ''; 
     297        while (!feof($fp) && $InLine = fgets($fp, 1280)) { 
     298            if ($InLine == "\r\n") break; 
     299            $InLine = rtrim($InLine); 
     300 
     301            list($Key, $Value) = explode(': ', $InLine, 2); 
     302            if ($Key == $InLine) { 
     303                if ($Format == 1) 
     304                        $Return[$Depth] = $InLine; 
     305                else    $Return[] = $InLine; 
     306 
     307                if (strpos($InLine, 'Moved') > 0) $Redirect = true; 
     308            } else { 
     309                if ($Key == 'Location') $RedirectUrl = $Value; 
     310                if ($Format == 1) 
     311                        $Return[$Key] = $Value; 
     312                else    $Return[] = $Key.': '.$Value; 
     313            } 
     314        } 
     315        fclose($fp); 
     316        if ($Redirect && !empty($RedirectUrl)) { 
     317            $NewParts = parse_url($RedirectUrl); 
     318            if (!array_key_exists('host', $NewParts))   $RedirectUrl = $Parts['host'].$RedirectUrl; 
     319            if (!array_key_exists('scheme', $NewParts)) $RedirectUrl = $Parts['scheme'].'://'.$RedirectUrl; 
     320            $RedirectHeaders = get_headers($RedirectUrl, $Format, $Depth+1); 
     321            if ($RedirectHeaders) $Return = array_merge_recursive($Return, $RedirectHeaders); 
     322        } 
     323        return $Return; 
     324    } 
     325    return false; 
     326}} 
    228327 
    229328// main entry 
     
    431530    }    
    432531} 
    433  
     532/* 
    434533function sb_print_file($name) { 
    435534    $file_url = get_option('sb_sermon_upload_url').$name; 
    436535    sb_print_url($file_url); 
    437536} 
    438  
     537*/ 
    439538function sb_print_iso_date($sermon) { 
    440539    echo date('d M Y H:i:s O', strtotime($sermon->date.' '.$sermon->time)); 
     
    443542function sb_print_url($url) { 
    444543    global $siteicons, $default_site_icon ,$filetypes; 
     544    if (!substr($url,0,7) == "http://") 
     545        $url=get_option('sb_sermon_upload_url').$url; 
    445546    $icon_url = get_bloginfo('wpurl').'/wp-content/plugins/sermon-browser/icons/'; 
    446547    $uicon = $default_site_icon; 
     
    455556    $uicon = isset($filetypes[$ext]['icon']) ? $filetypes[$ext]['icon'] : $uicon; 
    456557    if (strtolower($ext) == 'mp3' && function_exists('ap_insert_player_widgets')) { 
    457         echo '<div class="audioplayer">'.ap_insert_player_widgets('[audio:'.$url.']').'</div>'; 
     558        echo ap_insert_player_widgets('[audio:'.$url.']'); 
    458559    } else { 
    459560        echo '<a href="'.$url.'"><img class="site-icon" alt="'.$url.'" title="'.$url.'" src="'.$icon_url.$uicon.'"></a>'; 
     
    462563} 
    463564 
     565function sb_print_url_link($url) { 
     566    echo '<div class="sermon_file">'; 
     567    sb_print_url ($url); 
     568    if (substr($url,0,7) == "http://") { 
     569        $param="url"; } 
     570    else { 
     571        $param="file_name"; } 
     572    if (substr($url, -4) == ".mp3" && function_exists('ap_insert_player_widgets')) { 
     573        $url = URLencode($url); 
     574        echo ' <a href="'.sb_display_url().'?download&'.$param.'='.$url.'">Download</a>'; 
     575    } 
     576    echo '</div>'; 
     577} 
     578/* 
     579function sb_print_download_link($name) { 
     580    echo '<div class="sermon_file">'; 
     581    sb_print_url($name); 
     582    if (substr($name, -4) == ".mp3" && function_exists('ap_insert_player_widgets')) { 
     583        $url = URLencode($name); 
     584        echo ' <a href="'.sb_display_url().'?download&file_name='.$url.'">Download</a>'; 
     585    } 
     586    echo '</div>'; 
     587} 
     588*/ 
    464589function sb_print_code($code) { 
    465590    echo base64_decode($code); 
     
    514639    global $wpdb; 
    515640    $id = (int) $id; 
    516     $sermon = $wpdb->get_row("SELECT m.id, m.title, m.date, m.start, m.end, p.id as pid, p.name as preacher, p.image as image, p.description as preacher_description, s.id as sid, s.name as service, ss.id as ssid, ss.name as series FROM {$wpdb->prefix}sb_sermons as m, {$wpdb->prefix}sb_preachers as p, {$wpdb->prefix}sb_services as s, {$wpdb->prefix}sb_series as ss where m.preacher_id = p.id and m.service_id = s.id and m.series_id = ss.id and m.id = $id"); 
    517     $stuff = $wpdb->get_results("SELECT f.type, f.name FROM {$wpdb->prefix}sb_stuff as f WHERE sermon_id = $id ORDER BY id desc");   
     641    $sermon = $wpdb->get_row("SELECT m.id, m.title, m.date, m.start, m.end, m.description, p.id as pid, p.name as preacher, p.image as image, p.description as preacher_description, s.id as sid, s.name as service, ss.id as ssid, ss.name as series FROM {$wpdb->prefix}sb_sermons as m, {$wpdb->prefix}sb_preachers as p, {$wpdb->prefix}sb_services as s, {$wpdb->prefix}sb_series as ss where m.preacher_id = p.id and m.service_id = s.id and m.series_id = ss.id and m.id = $id"); 
     642    $stuff = $wpdb->get_results("SELECT f.id, f.type, f.name FROM {$wpdb->prefix}sb_stuff as f WHERE sermon_id = $id ORDER BY id desc");     
    518643    $rawtags = $wpdb->get_results("SELECT t.name FROM {$wpdb->prefix}sb_sermons_tags as st LEFT JOIN {$wpdb->prefix}sb_tags as t ON st.tag_id = t.id WHERE st.sermon_id = $sermon->id ORDER BY t.name asc"); 
    519644    foreach ($rawtags as $tag) { 
     
    521646    } 
    522647    foreach ($stuff as $cur) { 
    523         ${$cur->type}[] = $cur->name; 
     648        switch ($cur->type) { 
     649            case "file": 
     650            case "url": 
     651                $file[] = $cur->name; 
     652                break; 
     653            default: 
     654                ${$cur->type}[] = $cur->name; 
     655        } 
    524656    } 
    525657    $sermon->start = unserialize($sermon->start); 
    526658    $sermon->end = unserialize($sermon->end); 
     659    print_r ($url); 
    527660    return array(        
    528661        'Sermon' => $sermon, 
    529662        'Files' => $file, 
    530         'URLs' => $url, 
    531663        'Code' => $code, 
    532664        'Tags' => $tags, 
  • sermon-browser/trunk/multi.php

    r51345 r51772  
    1616        </tr> 
    1717        <tr> 
    18             <td class="files"><?php foreach ((array) $stuff["Files"] as $file): ?><?php sb_print_file($file) ?><?php endforeach ?></td> 
    19         </tr> 
    20         <tr> 
    21             <td class="urls"><?php foreach ((array) $stuff["URLs"] as $url): ?><?php sb_print_url($url) ?><?php endforeach ?></td> 
     18            <td class="files"><?php foreach ((array) $stuff["Files"] as $file): ?><?php sb_print_url($file) ?><?php endforeach ?></td> 
    2219        </tr> 
    2320        <tr> 
     
    2522        </tr> 
    2623        <tr> 
    27             <td class="preacher">Preached by <a href="<?php sb_print_preacher_link($sermon) ?>"><?php echo stripslashes($sermon->preacher) ?></a> on <?php echo date("j F Y", strtotime($sermon->date)) ?> (<a href="<?php sb_print_service_link($sermon) ?>"><?php echo stripslashes($sermon->service) ?></a>).</td> 
     24            <td class="preacher">Preached by <a href="<?php sb_print_preacher_link($sermon) ?>"><?php echo stripslashes($sermon->preacher) ?></a> on <?php echo date("j F Y", strtotime($sermon->date)) ?> (<a href="<?php sb_print_service_link($sermon) ?>"><?php echo stripslashes($sermon->service) ?></a>). <?php sb_edit_link($sermon->id) ?></td> 
    2825        </tr> 
    2926    <?php endforeach ?> 
  • sermon-browser/trunk/readme.txt

    r51344 r51772  
    166166* **[files\_loop][/files\_loop]** - These two tags should be placed around the [file] tag if you want to display all the files linked with to sermon. They are not needed if you only want to display the first file. 
    167167* **[file]** - Displays the files and external URLs 
     168* **[file_with_download]** - As above, but also adds a download link if the AudioPlayer is displayed 
    168169* **[embed\_loop][/embed\_loop]** - These two tags should be placed around the [embed] tag if you want to display all the embedded objects linked to this sermon. They are not needed if you only want to display the first embedded object. 
    169170* **[embed]** - Displays an embedded object (e.g. video) 
     171* **[editlink]** - displays an "Edit Sermon" link if currently logged-in user has edit rights. 
    170172* **[creditlink]** - displays a "Powered by Sermon Browser" link. 
    171173 
     
    174176* **[preacher\_description]** - The description of the preacher. 
    175177* **[preacher\_image]** - The photo of the preacher. 
     178* **[sermon\_description]** - The description of the sermon. 
    176179* **[passages\_loop][/passages\_loop]** - These two tags should be placed around the [passage] tag if you want to display all the passages linked with to sermon. 
    177180* **[passage]** - Displays the reference of the bible passage with the book name hyperlinked to search results. 
  • sermon-browser/trunk/sermon.php

    r51347 r51772  
    55Description: Add sermons to your Wordpress blog. Coding by <a href="http://codeandmore.com/">Tien Do Xuan</a>. Design  
    66Author: Mark Barnes 
    7 Version: 0.24 
     7Version: 0.25 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    20762076        <p>If you need help with using Sermon Browser for the first time, these five minute screencast tutorials should be your first port of call:</p> 
    20772077        <ul> 
    2078             <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-1.html" target="_blank">Installation and Overview</a>.</li> 
    2079             <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-2.html" target="_blank">Basic Options</a>.</li> 
    2080             <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-3.html" target="_blank">Preachers, Series and Services</a>.</li> 
    2081             <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-4.html" target="_blank">Entering a new sermon</a>.</li> 
    2082             <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-5.html" target="_blank">Editing a sermon and adding embedded video</a>.</li> 
     2078            <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-1.html" target="_blank">Installation and Overview</a></li> 
     2079            <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-2.html" target="_blank">Basic Options</a></li> 
     2080            <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-3.html" target="_blank">Preachers, Series and Services</a></li> 
     2081            <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-4.html" target="_blank">Entering a new sermon</a></li> 
     2082            <li><a href="http://www.4-14.org.uk/sermonbrowser-tutorial/tutorial-5.html" target="_blank">Editing a sermon and adding embedded video</a></li> 
    20832083        </ul> 
    20842084        <h4>Template tags</h4> 
     
    21872187            <li><b>[files_loop][/files_loop]</b> - These two tags should be placed around the [file] tag if you want to display all the files linked with to sermon. They are not needed if you only want to display the first file.</li> 
    21882188            <li><b>[file]</b> - Displays the files and external URLs</li> 
     2189            <li><b>[file_with_download]</b> - As above, but also adds a download link if the AudioPlayer is displayed</li> 
    21892190            <li><b>[embed_loop][/embed_loop]</b> - These two tags should be placed around the [embed] tag if you want to display all the embedded objects linked to this sermon. They are not needed if you only want to display the first embedded object.</li> 
    21902191            <li><b>[embed]</b> - Displays an embedded object (e.g. video)</li> 
     2192            <li><b>[editlink]</b> - displays an "Edit Sermon" link if currently logged-in user has edit rights.</li> 
    21912193            <li><b>[creditlink]</b> - displays a "Powered by Sermon Browser" link.</li> 
    21922194        </ul> 
     
    21952197            <li><b>[preacher_description]</b> - The description of the preacher.</li> 
    21962198            <li><b>[preacher_image]</b> - The photo of the preacher.</li> 
     2199            <li><b>[sermon_description]</b> - The description of the sermon</li> 
    21972200            <li><b>[passages_loop][/passages_loop]</b> - These two tags should be placed around the [passage] tag if you want to display all the passages linked with to sermon.</li> 
    21982201            <li><b>[passage]</b> - Displays the reference of the bible passage with the book name hyperlinked to search results.</li> 
     
    22342237        </tr> 
    22352238        <tr> 
    2236             <td class="urls">[urls_loop][url][/urls_loop]</td> 
    2237         </tr> 
    2238         <tr> 
    22392239            <td class="embed">[embed_loop][embed][/embed_loop]</td> 
    22402240        </tr> 
    22412241        <tr> 
    2242             <td class="preacher">Preached by [preacher_link] on [date] ([service_link]).</td> 
     2242            <td class="preacher">Preached by [preacher_link] on [date] ([service_link]). [editlink]</td> 
    22432243        </tr> 
    22442244    [/sermons_loop] 
     
    22552255$single = <<<HERE 
    22562256<div class="sermon-browser-results"> 
    2257     <h2>[sermon_title] <span class="scripture">([passages_loop][passage] [/passages_loop])</span></h2> 
     2257    <h2>[sermon_title] <span class="scripture">([passages_loop][passage] [/passages_loop])</span> [editlink]</h2> 
    22582258    [preacher_image]<span class="preacher">[preacher_link], [date]</span><br /> 
    22592259    Part of the [series_link] series, preached at a [service_link] service<br /> 
    22602260    Tags: [tags]<br /> 
    2261     [files_loop]     
    2262         [file 
     2261    [files_loop] 
     2262        [file_with_download] 
    22632263    [/files_loop] 
    2264     [urls_loop] 
    2265         [url]   
    2266     [/urls_loop] 
    22672264    [embed_loop] 
    22682265        <br />[embed]<br /> 
     
    24672464} 
    24682465 
    2469 ul.sermon-widget li span.sermon-title{ 
     2466ul.sermon-widget li span.sermon-title { 
    24702467    font-weight:bold; 
     2468} 
     2469 
     2470p.audioplayer-container { 
     2471    display:inline !important; 
     2472} 
     2473div.sb_edit_link { 
     2474    display:inline; 
     2475} 
     2476h2 div.sb_edit_link { 
     2477    font-size: 80%; 
    24712478} 
    24722479HERE; 
  • sermon-browser/trunk/single.php

    r51332 r51772  
    11<div class="sermon-browser-results"> 
    2     <h2><?php echo stripslashes($sermon["Sermon"]->title) ?> <span class="scripture">(<?php for ($i = 0; $i < count($sermon["Sermon"]->start); $i++): ?><?php echo sb_get_books($sermon["Sermon"]->start[$i], $sermon["Sermon"]->end[$i]) ?> <?php endfor ?>)</span></h2> 
     2    <h2><?php echo stripslashes($sermon["Sermon"]->title) ?> <span class="scripture">(<?php for ($i = 0; $i < count($sermon["Sermon"]->start); $i++): ?><?php echo sb_get_books($sermon["Sermon"]->start[$i], $sermon["Sermon"]->end[$i]) ?> <?php endfor ?>)</span> <?php sb_edit_link($_GET["sermon_id"]) ?></h2> 
    33    <?php sb_print_preacher_image($sermon["Sermon"]) ?><span class="preacher"><a href="<?php sb_print_preacher_link($sermon["Sermon"]) ?>"><?php echo stripslashes($sermon["Sermon"]->preacher) ?></a>, <?php echo date("j F Y", strtotime($sermon["Sermon"]->date)) ?></span><br /> 
    44    Part of the <a href="<?php sb_print_series_link($sermon["Sermon"]) ?>"><?php echo stripslashes($sermon["Sermon"]->series) ?></a> series, preached at a <a href="<?php sb_print_service_link($sermon["Sermon"]) ?>"><?php echo stripslashes($sermon["Sermon"]->service) ?></a> service<br /> 
    55    Tags: <?php sb_print_tags($sermon["Tags"]) ?><br /> 
    6     <?php foreach ((array) $sermon["Files"] as $file): ?>    
    7         <?php sb_print_file($file) ?>   
    8     <?php endforeach ?> 
    9     <?php foreach ((array) $sermon["URLs"] as $url): ?> 
    10         <?php sb_print_url($url) ?>   
     6    <?php foreach ((array) $sermon["Files"] as $file): ?> 
     7        <?php sb_print_url_link($file) ?> 
    118    <?php endforeach ?> 
    129    <?php foreach ((array) $sermon["Code"] as $code): ?> 
  • sermon-browser/trunk/style.css

    r51332 r51772  
    176176} 
    177177 
    178 ul.sermon-widget li span.sermon-title{ 
     178ul.sermon-widget li span.sermon-title { 
    179179    font-weight:bold; 
    180180} 
     181 
     182p.audioplayer-container { 
     183    display:inline !important; 
     184} 
     185div.sb_edit_link { 
     186    display:inline; 
     187} 
     188h2 div.sb_edit_link { 
     189    font-size: 80%; 
     190} 
Note: See TracChangeset for help on using the changeset viewer.