WordPress.org

Plugin Directory

Changeset 67681 for sermon-browser/trunk


Ignore:
Timestamp:
10/06/08 22:25:55 (6 years ago)
Author:
mark8barnes
Message:
 
Location:
sermon-browser/trunk
Files:
5 edited

Legend:

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

    r67002 r67681  
    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 date("j F Y", strtotime($sermon->date)) ?>', 
     14        '[date]' => '<?php echo date(get_option("date_format"), strtotime($sermon->date)) ?>', 
    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 date("j F Y", strtotime($sermon["Sermon"]->date)) ?>', 
     45        '[date]' => '<?php echo date(get_option("date_format"), strtotime($sermon["Sermon"]->date)) ?>', 
    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

    r67002 r67681  
    229229    //Increases the download count 
    230230    function sb_increase_download_count ($stuff_name) { 
    231         global $wpdb; 
    232         $wpdb->query("UPDATE ".$wpdb->prefix."sb_stuff SET COUNT=COUNT+1 WHERE name='".mysql_real_escape_string($stuff_name)."'"); 
     231        if (function_exists('current_user_can')&&!(current_user_can('edit_posts')|current_user_can('publish_posts'))) { 
     232            global $wpdb; 
     233            $wpdb->query("UPDATE ".$wpdb->prefix."sb_stuff SET COUNT=COUNT+1 WHERE name='".mysql_real_escape_string($stuff_name)."'"); 
     234        } 
    233235    } 
    234236     
     
    874876                            <option value="0" <?php echo $_REQUEST['preacher'] != 0 ? '' : 'selected="selected"' ?>><?php _e('[All]', $sermon_domain) ?></option> 
    875877                            <?php foreach ($preachers as $preacher): ?> 
    876                             <option value="<?php echo $preacher->id ?>" <?php echo $_REQUEST['preacher'] == $preacher->id ? 'selected="selected"' : '' ?>><?php echo $preacher->name.' ('.$preacher->count.')' ?></option> 
     878                            <option value="<?php echo $preacher->id ?>" <?php echo $_REQUEST['preacher'] == $preacher->id ? 'selected="selected"' : '' ?>><?php echo stripslashes($preacher->name).' ('.$preacher->count.')' ?></option> 
    877879                            <?php endforeach ?> 
    878880                        </select> 
     
    882884                            <option value="0" <?php echo $_REQUEST['service'] != 0 ? '' : 'selected="selected"' ?>><?php _e('[All]', $sermon_domain) ?></option> 
    883885                            <?php foreach ($services as $service): ?> 
    884                             <option value="<?php echo $service->id ?>" <?php echo $_REQUEST['service'] == $service->id ? 'selected="selected"' : '' ?>><?php echo $service->name.' ('.$service->count.')' ?></option> 
     886                            <option value="<?php echo $service->id ?>" <?php echo $_REQUEST['service'] == $service->id ? 'selected="selected"' : '' ?>><?php echo stripslashes($service->name).' ('.$service->count.')' ?></option> 
    885887                            <?php endforeach ?> 
    886888                        </select> 
     
    892894                            <option value=""><?php _e('[All]', $sermon_domain) ?></option> 
    893895                            <?php foreach ($book_count as $book): ?> 
    894                             <option value="<?php echo $book->name ?>" <?php echo $_REQUEST['book'] == $book->name ? 'selected=selected' : '' ?>><?php echo $book->name. ' ('.$book->count.')' ?></option> 
     896                            <option value="<?php echo $book->name ?>" <?php echo $_REQUEST['book'] == $book->name ? 'selected=selected' : '' ?>><?php echo stripslashes($book->name). ' ('.$book->count.')' ?></option> 
    895897                            <?php endforeach ?> 
    896898                        </select> 
     
    900902                            <option value="0" <?php echo $_REQUEST['series'] != 0 ? '' : 'selected="selected"' ?>><?php _e('[All]', $sermon_domain) ?></option> 
    901903                            <?php foreach ($series as $item): ?> 
    902                             <option value="<?php echo $item->id ?>" <?php echo $_REQUEST['series'] == $item->id ? 'selected="selected"' : '' ?>><?php echo $item->name.' ('.$item->count.')' ?></option> 
     904                            <option value="<?php echo $item->id ?>" <?php echo $_REQUEST['series'] == $item->id ? 'selected="selected"' : '' ?>><?php echo stripslashes($item->name).' ('.$item->count.')' ?></option> 
    903905                            <?php endforeach ?> 
    904906                        </select> 
  • sermon-browser/trunk/sb-includes/sermon-browser.po

    r58027 r67681  
    33"Project-Id-Version: Sermon Browser 0.34\n" 
    44"Report-Msgid-Bugs-To: \n" 
    5 "POT-Creation-Date: 2008-08-04 11:03-0000\n" 
     5"POT-Creation-Date: 2008-10-06 23:23-0000\n" 
    66"PO-Revision-Date: \n" 
    77"Last-Translator: Mark Barnes <mark@4-14.org.uk>\n" 
     
    1515"X-Poedit-SearchPath-0: ..\n" 
    1616 
    17 #: ../sermon.php:58 
    1817#: ../sermon.php:59 
    19 #: ../sermon.php:1379 
     18#: ../sermon.php:60 
     19#: ../sermon.php:1393 
    2020#: ../sb-includes/widget.php:51 
    2121msgid "Sermons" 
    2222msgstr "" 
    2323 
    24 #: ../sermon.php:61 
     24#: ../sermon.php:62 
    2525msgid "Edit Sermon" 
    2626msgstr "" 
    2727 
    28 #: ../sermon.php:63 
     28#: ../sermon.php:64 
    2929msgid "Add Sermon" 
    3030msgstr "" 
    3131 
    32 #: ../sermon.php:65 
    33 #: ../sermon.php:755 
     32#: ../sermon.php:66 
     33#: ../sermon.php:769 
    3434msgid "Preachers" 
    3535msgstr "" 
    3636 
    37 #: ../sermon.php:66 
     37#: ../sermon.php:67 
    3838msgid "Series &amp; Services" 
    3939msgstr "" 
    4040 
    41 #: ../sermon.php:67 
     41#: ../sermon.php:68 
    4242msgid "Uploads" 
    4343msgstr "" 
    4444 
    45 #: ../sermon.php:68 
     45#: ../sermon.php:69 
     46#: ../sermon.php:497 
     47msgid "Options" 
     48msgstr "" 
     49 
     50#: ../sermon.php:70 
     51#: ../sermon.php:602 
     52msgid "Templates" 
     53msgstr "" 
     54 
     55#: ../sermon.php:71 
     56msgid "Help" 
     57msgstr "" 
     58 
     59#: ../sermon.php:298 
     60#: ../sermon.php:787 
     61#: ../sermon.php:953 
     62#: ../sermon.php:963 
     63#: ../sermon.php:1205 
     64#: ../sermon.php:1249 
     65#: ../sermon.php:1422 
     66#: ../sermon.php:2286 
     67#: ../sermon.php:2329 
     68msgid "Delete" 
     69msgstr "" 
     70 
     71#: ../sermon.php:299 
     72msgid "Congratulations, you just completed the installation!" 
     73msgstr "" 
     74 
     75#: ../sermon.php:336 
     76msgid "You do not have the correct permissions to edit the Sermon Browser options" 
     77msgstr "" 
     78 
     79#: ../sermon.php:369 
     80#: ../sermon.php:378 
     81msgid "Upload is disabled. Please contact your administrator." 
     82msgstr "" 
     83 
     84#: ../sermon.php:371 
     85#: ../sermon.php:410 
     86msgid "Error: The upload folder is not writeable. You need to CHMOD the folder to 666 or 777." 
     87msgstr "" 
     88 
     89#: ../sermon.php:380 
     90#: ../sermon.php:415 
     91msgid "Error: The upload folder you have specified does not exist." 
     92msgstr "" 
     93 
     94#: ../sermon.php:386 
     95msgid "Default loaded successfully." 
     96msgstr "" 
     97 
     98#: ../sermon.php:420 
     99msgid "Options saved successfully." 
     100msgstr "" 
     101 
     102#: ../sermon.php:471 
     103msgid "All sermon data has been removed." 
     104msgstr "" 
     105 
     106#: ../sermon.php:473 
     107msgid "Uninstall completed. The Sermon Browser plugin has been deactivated." 
     108msgstr "" 
     109 
    46110#: ../sermon.php:483 
    47 msgid "Options" 
    48 msgstr "" 
    49  
    50 #: ../sermon.php:69 
    51 #: ../sermon.php:588 
    52 msgid "Templates" 
    53 msgstr "" 
    54  
    55 #: ../sermon.php:70 
    56 msgid "Help" 
    57 msgstr "" 
    58  
    59 #: ../sermon.php:297 
    60 #: ../sermon.php:773 
     111msgid "Error" 
     112msgstr "" 
     113 
     114#: ../sermon.php:489 
     115msgid "Warning" 
     116msgstr "" 
     117 
     118#: ../sermon.php:504 
     119msgid "Upload folder" 
     120msgstr "" 
     121 
     122#: ../sermon.php:515 
     123msgid "Public podcast feed" 
     124msgstr "" 
     125 
     126#: ../sermon.php:519 
     127msgid "Private podcast feed" 
     128msgstr "" 
     129 
     130#: ../sermon.php:523 
     131msgid "Sermons per page" 
     132msgstr "" 
     133 
     134#: ../sermon.php:530 
     135msgid "The upload folder is not writeable. You need to CHMOD the folder to 666 or 777." 
     136msgstr "" 
     137 
     138#: ../sermon.php:532 
     139msgid "The upload folder you have specified does not exist." 
     140msgstr "" 
     141 
     142#: ../sermon.php:539 
     143msgid "Your php.ini file does not allow uploads. Please change file_uploads in php.ini." 
     144msgstr "" 
     145 
     146#: ../sermon.php:540 
     147msgid "The maximum file size you can upload is only " 
     148msgstr "" 
     149 
     150#: ../sermon.php:540 
     151msgid "k. Please change upload_max_filesize to at least 15M in php.ini." 
     152msgstr "" 
     153 
     154#: ../sermon.php:541 
     155msgid "The maximum file size you send through the browser is only " 
     156msgstr "" 
     157 
     158#: ../sermon.php:541 
     159msgid "k. Please change post_max_size to at least 15M in php.ini." 
     160msgstr "" 
     161 
     162#: ../sermon.php:542 
     163msgid "The maximum time allowed for any script to run is only " 
     164msgstr "" 
     165 
     166#: ../sermon.php:542 
     167msgid " seconds. Please change max_execution_time to at least 600 in php.ini." 
     168msgstr "" 
     169 
     170#: ../sermon.php:543 
     171msgid "The maximum time allowed for an upload script to run is only " 
     172msgstr "" 
     173 
     174#: ../sermon.php:543 
     175msgid " seconds. Please change max_input_time to at least 600 in php.ini." 
     176msgstr "" 
     177 
     178#: ../sermon.php:544 
     179msgid "The maximum amount of memory allowed is only " 
     180msgstr "" 
     181 
     182#: ../sermon.php:544 
     183msgid "k. Please change memory_limit to at least 16M in php.ini." 
     184msgstr "" 
     185 
     186#: ../sermon.php:548 
     187#: ../sermon.php:624 
     188msgid "Reset to defaults" 
     189msgstr "" 
     190 
     191#: ../sermon.php:548 
     192#: ../sermon.php:624 
     193#: ../sermon.php:759 
     194#: ../sermon.php:1893 
     195msgid "Save" 
     196msgstr "" 
     197 
     198#: ../sermon.php:551 
     199msgid "Delete all data" 
     200msgstr "" 
     201 
     202#: ../sermon.php:551 
     203#: ../sermon.php:558 
     204msgid "Uninstall" 
     205msgstr "" 
     206 
     207#: ../sermon.php:555 
     208msgid "Remove all files" 
     209msgstr "" 
     210 
     211#: ../sermon.php:558 
     212msgid "Delete all" 
     213msgstr "" 
     214 
     215#: ../sermon.php:558 
     216msgid "Do you REALLY want to delete all data?" 
     217msgstr "" 
     218 
     219#: ../sermon.php:563 
     220msgid "Are you sure?" 
     221msgstr "" 
     222 
     223#: ../sermon.php:575 
     224msgid "You do not have the correct permissions to edit the Sermon Browser templates" 
     225msgstr "" 
     226 
     227#: ../sermon.php:594 
     228msgid "Templates saved successfully." 
     229msgstr "" 
     230 
     231#: ../sermon.php:606 
     232msgid "Search results page" 
     233msgstr "" 
     234 
     235#: ../sermon.php:612 
     236msgid "Sermon page" 
     237msgstr "" 
     238 
     239#: ../sermon.php:618 
     240msgid "Style" 
     241msgstr "" 
     242 
     243#: ../sermon.php:641 
     244msgid "You do not have the correct permissions to manage the preachers' database" 
     245msgstr "" 
     246 
     247#: ../sermon.php:643 
     248msgid "Preacher saved to database." 
     249msgstr "" 
     250 
     251#: ../sermon.php:667 
     252msgid "Could not save uploaded file. Please try again." 
     253msgstr "" 
     254 
     255#: ../sermon.php:672 
     256msgid "Could not upload file. Please check the Options page for any errors or warnings." 
     257msgstr "" 
     258 
     259#: ../sermon.php:695 
     260msgid "You can't delete this preacher." 
     261msgstr "" 
     262 
     263#: ../sermon.php:709 
     264msgid "Add" 
     265msgstr "" 
     266 
     267#: ../sermon.php:709 
     268#: ../sermon.php:787 
     269#: ../sermon.php:953 
     270#: ../sermon.php:1422 
     271#: ../sermon.php:2286 
     272msgid "Edit" 
     273msgstr "" 
     274 
     275#: ../sermon.php:709 
     276msgid "preacher" 
     277msgstr "" 
     278 
     279#: ../sermon.php:721 
     280msgid "The images folder is not writeable. You won't be able to upload images." 
     281msgstr "" 
     282 
     283#: ../sermon.php:730 
     284#: ../sermon.php:775 
     285#: ../sermon.php:937 
     286msgid "Name" 
     287msgstr "" 
     288 
     289#: ../sermon.php:738 
     290#: ../sermon.php:1786 
     291msgid "Description" 
     292msgstr "" 
     293 
     294#: ../sermon.php:750 
     295#: ../sermon.php:776 
     296msgid "Image" 
     297msgstr "" 
     298 
     299#: ../sermon.php:769 
     300#: ../sermon.php:931 
     301msgid "add new" 
     302msgstr "" 
     303 
     304#: ../sermon.php:774 
     305#: ../sermon.php:936 
     306#: ../sermon.php:1191 
     307#: ../sermon.php:1225 
     308#: ../sermon.php:1274 
     309#: ../sermon.php:1398 
     310msgid "ID" 
     311msgstr "" 
     312 
     313#: ../sermon.php:777 
    61314#: ../sermon.php:939 
    62 #: ../sermon.php:949 
    63 #: ../sermon.php:1191 
    64 #: ../sermon.php:1235 
    65 #: ../sermon.php:1408 
    66 #: ../sermon.php:2270 
    67 #: ../sermon.php:2313 
    68 msgid "Delete" 
    69 msgstr "" 
    70  
    71 #: ../sermon.php:298 
    72 msgid "Congratulations, you just completed the installation!" 
    73 msgstr "" 
    74  
    75 #: ../sermon.php:326 
    76 msgid "You do not have the correct permissions to edit the Sermon Browser options" 
    77 msgstr "" 
    78  
    79 #: ../sermon.php:359 
    80 #: ../sermon.php:368 
    81 msgid "Upload is disabled. Please contact your administrator." 
    82 msgstr "" 
    83  
    84 #: ../sermon.php:361 
    85 #: ../sermon.php:400 
    86 msgid "Error: The upload folder is not writeable. You need to CHMOD the folder to 666 or 777." 
    87 msgstr "" 
    88  
    89 #: ../sermon.php:370 
    90 #: ../sermon.php:405 
    91 msgid "Error: The upload folder you have specified does not exist." 
    92 msgstr "" 
    93  
    94 #: ../sermon.php:376 
    95 msgid "Default loaded successfully." 
    96 msgstr "" 
    97  
    98 #: ../sermon.php:410 
    99 msgid "Options saved successfully." 
    100 msgstr "" 
    101  
    102 #: ../sermon.php:461 
    103 msgid "All sermon data has been removed." 
    104 msgstr "" 
    105  
    106 #: ../sermon.php:463 
    107 msgid "Uninstall completed. Please deactivate the plugin." 
    108 msgstr "" 
    109  
    110 #: ../sermon.php:469 
    111 msgid "Error" 
    112 msgstr "" 
    113  
    114 #: ../sermon.php:475 
    115 msgid "Warning" 
    116 msgstr "" 
    117  
    118 #: ../sermon.php:490 
    119 msgid "Upload folder" 
    120 msgstr "" 
    121  
    122 #: ../sermon.php:501 
    123 msgid "Public podcast feed" 
    124 msgstr "" 
    125  
    126 #: ../sermon.php:505 
    127 msgid "Private podcast feed" 
    128 msgstr "" 
    129  
    130 #: ../sermon.php:509 
    131 msgid "Sermons per page" 
    132 msgstr "" 
    133  
    134 #: ../sermon.php:516 
    135 msgid "The upload folder is not writeable. You need to CHMOD the folder to 666 or 777." 
    136 msgstr "" 
    137  
    138 #: ../sermon.php:518 
    139 msgid "The upload folder you have specified does not exist." 
    140 msgstr "" 
    141  
    142 #: ../sermon.php:525 
    143 msgid "Your php.ini file does not allow uploads. Please change file_uploads in php.ini." 
    144 msgstr "" 
    145  
    146 #: ../sermon.php:526 
    147 msgid "The maximum file size you can upload is only " 
    148 msgstr "" 
    149  
    150 #: ../sermon.php:526 
    151 msgid "k. Please change upload_max_filesize to at least 15M in php.ini." 
    152 msgstr "" 
    153  
    154 #: ../sermon.php:527 
    155 msgid "The maximum file size you send through the browser is only " 
    156 msgstr "" 
    157  
    158 #: ../sermon.php:527 
    159 msgid "k. Please change post_max_size to at least 15M in php.ini." 
    160 msgstr "" 
    161  
    162 #: ../sermon.php:528 
    163 msgid "The maximum time allowed for any script to run is only " 
    164 msgstr "" 
    165  
    166 #: ../sermon.php:528 
    167 msgid " seconds. Please change max_execution_time to at least 600 in php.ini." 
    168 msgstr "" 
    169  
    170 #: ../sermon.php:529 
    171 msgid "The maximum time allowed for an upload script to run is only " 
    172 msgstr "" 
    173  
    174 #: ../sermon.php:529 
    175 msgid " seconds. Please change max_input_time to at least 600 in php.ini." 
    176 msgstr "" 
    177  
    178 #: ../sermon.php:530 
    179 msgid "The maximum amount of memory allowed is only " 
    180 msgstr "" 
    181  
    182 #: ../sermon.php:530 
    183 msgid "k. Please change memory_limit to at least 16M in php.ini." 
    184 msgstr "" 
    185  
    186 #: ../sermon.php:534 
    187 #: ../sermon.php:610 
    188 msgid "Reset to defaults" 
    189 msgstr "" 
    190  
    191 #: ../sermon.php:534 
    192 #: ../sermon.php:610 
    193 #: ../sermon.php:745 
    194 #: ../sermon.php:1879 
    195 msgid "Save" 
    196 msgstr "" 
    197  
    198 #: ../sermon.php:537 
    199 msgid "Delete all data" 
    200 msgstr "" 
    201  
    202 #: ../sermon.php:537 
    203 #: ../sermon.php:544 
    204 msgid "Uninstall" 
    205 msgstr "" 
    206  
    207 #: ../sermon.php:541 
    208 msgid "Remove all files" 
    209 msgstr "" 
    210  
    211 #: ../sermon.php:544 
    212 msgid "Delete all" 
    213 msgstr "" 
    214  
    215 #: ../sermon.php:544 
    216 msgid "Do you REALLY want to delete all data?" 
    217 msgstr "" 
    218  
    219 #: ../sermon.php:549 
    220 msgid "Are you sure?" 
    221 msgstr "" 
    222  
    223 #: ../sermon.php:561 
    224 msgid "You do not have the correct permissions to edit the Sermon Browser templates" 
    225 msgstr "" 
    226  
    227 #: ../sermon.php:580 
    228 msgid "Templates saved successfully." 
    229 msgstr "" 
    230  
    231 #: ../sermon.php:592 
    232 msgid "Search results page" 
    233 msgstr "" 
    234  
    235 #: ../sermon.php:598 
    236 msgid "Sermon page" 
    237 msgstr "" 
    238  
    239 #: ../sermon.php:604 
    240 msgid "Style" 
    241 msgstr "" 
    242  
    243 #: ../sermon.php:627 
    244 msgid "You do not have the correct permissions to manage the preachers' database" 
    245 msgstr "" 
    246  
    247 #: ../sermon.php:629 
    248 msgid "Preacher saved to database." 
    249 msgstr "" 
    250  
    251 #: ../sermon.php:653 
    252 msgid "Could not save uploaded file. Please try again." 
    253 msgstr "" 
    254  
    255 #: ../sermon.php:658 
    256 msgid "Could not upload file. Please check the Options page for any errors or warnings." 
    257 msgstr "" 
    258  
    259 #: ../sermon.php:681 
    260 msgid "You can't delete this preacher." 
    261 msgstr "" 
    262  
    263 #: ../sermon.php:695 
    264 msgid "Add" 
    265 msgstr "" 
    266  
    267 #: ../sermon.php:695 
    268 #: ../sermon.php:773 
    269 #: ../sermon.php:939 
    270 #: ../sermon.php:1408 
    271 #: ../sermon.php:2270 
    272 msgid "Edit" 
    273 msgstr "" 
    274  
    275 #: ../sermon.php:695 
    276 msgid "preacher" 
    277 msgstr "" 
    278  
    279 #: ../sermon.php:707 
    280 msgid "The images folder is not writeable. You won't be able to upload images." 
    281 msgstr "" 
    282  
    283 #: ../sermon.php:716 
    284 #: ../sermon.php:761 
    285 #: ../sermon.php:923 
    286 msgid "Name" 
    287 msgstr "" 
    288  
    289 #: ../sermon.php:724 
    290 #: ../sermon.php:1772 
    291 msgid "Description" 
    292 msgstr "" 
    293  
    294 #: ../sermon.php:736 
    295 #: ../sermon.php:762 
    296 msgid "Image" 
    297 msgstr "" 
    298  
    299 #: ../sermon.php:755 
    300 #: ../sermon.php:917 
    301 msgid "add new" 
    302 msgstr "" 
    303  
    304 #: ../sermon.php:760 
    305 #: ../sermon.php:922 
    306 #: ../sermon.php:1177 
    307 #: ../sermon.php:1211 
    308 #: ../sermon.php:1260 
    309 #: ../sermon.php:1384 
    310 msgid "ID" 
    311 msgstr "" 
    312  
    313 #: ../sermon.php:763 
    314 #: ../sermon.php:925 
     315#: ../sermon.php:1194 
     316#: ../sermon.php:1229 
     317#: ../sermon.php:1278 
     318#: ../sermon.php:1405 
     319msgid "Actions" 
     320msgstr "" 
     321 
     322#: ../sermon.php:802 
     323msgid "You do not have the correct permissions to manage the series and services database" 
     324msgstr "" 
     325 
     326#: ../sermon.php:938 
     327msgid "Default time" 
     328msgstr "" 
     329 
     330#: ../sermon.php:953 
     331#: ../sermon.php:1205 
     332#: ../sermon.php:1249 
     333#: ../sermon.php:2329 
     334msgid "Rename" 
     335msgstr "" 
     336 
     337#: ../sermon.php:955 
     338msgid "Some sermons are currently assigned to that service. You can only delete services that are not used in the database." 
     339msgstr "" 
     340 
     341#: ../sermon.php:958 
     342msgid "Some sermons are currently in that series. You can only delete series that are empty." 
     343msgstr "" 
     344 
     345#: ../sermon.php:961 
     346msgid "That preacher has sermons in the database. You can only delete preachers who have no sermons in the database." 
     347msgstr "" 
     348 
     349#: ../sermon.php:983 
     350msgid "You do not have the correct permissions to upload sermons" 
     351msgstr "" 
     352 
     353#: ../sermon.php:1011 
     354msgid "Files saved to database." 
     355msgstr "" 
     356 
     357#: ../sermon.php:1014 
     358#: ../sermon.php:1534 
     359msgid " already exists." 
     360msgstr "" 
     361 
     362#: ../sermon.php:1018 
     363#: ../sermon.php:1539 
     364msgid "You are not permitted to upload files of that type." 
     365msgstr "" 
     366 
     367#: ../sermon.php:1056 
     368msgid "New file name?" 
     369msgstr "" 
     370 
     371#: ../sermon.php:1069 
     372msgid "You are not permitted files with that extension." 
     373msgstr "" 
     374 
     375#: ../sermon.php:1071 
     376msgid "The script is unable to rename your file." 
     377msgstr "" 
     378 
     379#: ../sermon.php:1099 
     380msgid "The script is unable to delete your file." 
     381msgstr "" 
     382 
     383#: ../sermon.php:1110 
     384#: ../sermon.php:1129 
     385msgid "Previous" 
     386msgstr "" 
     387 
     388#: ../sermon.php:1116 
     389#: ../sermon.php:1135 
     390msgid "Next" 
     391msgstr "" 
     392 
     393#: ../sermon.php:1152 
     394msgid "Upload Files" 
     395msgstr "" 
     396 
     397#: ../sermon.php:1162 
     398msgid "File to upload" 
     399msgstr "" 
     400 
     401#: ../sermon.php:1167 
     402msgid "Upload" 
     403msgstr "" 
     404 
     405#: ../sermon.php:1176 
     406msgid "Upload is disabled. Please contact your systems administrator." 
     407msgstr "" 
     408 
    315409#: ../sermon.php:1180 
    316 #: ../sermon.php:1215 
    317 #: ../sermon.php:1264 
    318 #: ../sermon.php:1391 
    319 msgid "Actions" 
    320 msgstr "" 
    321  
    322 #: ../sermon.php:788 
    323 msgid "You do not have the correct permissions to manage the series and services database" 
    324 msgstr "" 
    325  
    326 #: ../sermon.php:924 
    327 msgid "Default time" 
    328 msgstr "" 
    329  
    330 #: ../sermon.php:939 
    331 #: ../sermon.php:1191 
    332 #: ../sermon.php:1235 
    333 #: ../sermon.php:2313 
    334 msgid "Rename" 
    335 msgstr "" 
    336  
    337 #: ../sermon.php:941 
    338 msgid "Some sermons are currently assigned to that service. You can only delete services that are not used in the database." 
    339 msgstr "" 
    340  
    341 #: ../sermon.php:944 
    342 msgid "Some sermons are currently in that series. You can only delete series that are empty." 
    343 msgstr "" 
    344  
    345 #: ../sermon.php:947 
    346 msgid "That preacher has sermons in the database. You can only delete preachers who have no sermons in the database." 
    347 msgstr "" 
    348  
    349 #: ../sermon.php:969 
    350 msgid "You do not have the correct permissions to upload sermons" 
    351 msgstr "" 
    352  
    353 #: ../sermon.php:997 
    354 msgid "Files saved to database." 
    355 msgstr "" 
    356  
    357 #: ../sermon.php:1000 
    358 #: ../sermon.php:1520 
    359 msgid " already exists." 
    360 msgstr "" 
    361  
    362 #: ../sermon.php:1004 
    363 #: ../sermon.php:1525 
    364 msgid "You are not permitted to upload files of that type." 
    365 msgstr "" 
    366  
    367 #: ../sermon.php:1042 
    368 msgid "New file name?" 
    369 msgstr "" 
    370  
    371 #: ../sermon.php:1055 
    372 msgid "You are not permitted files with that extension." 
    373 msgstr "" 
    374  
    375 #: ../sermon.php:1057 
    376 msgid "The script is unable to rename your file." 
    377 msgstr "" 
    378  
    379 #: ../sermon.php:1085 
    380 msgid "The script is unable to delete your file." 
    381 msgstr "" 
    382  
    383 #: ../sermon.php:1096 
    384 #: ../sermon.php:1115 
    385 msgid "Previous" 
    386 msgstr "" 
    387  
    388 #: ../sermon.php:1102 
    389 #: ../sermon.php:1121 
    390 msgid "Next" 
    391 msgstr "" 
    392  
    393 #: ../sermon.php:1138 
    394 msgid "Upload Files" 
    395 msgstr "" 
    396  
    397 #: ../sermon.php:1148 
    398 msgid "File to upload" 
    399 msgstr "" 
    400  
    401 #: ../sermon.php:1153 
    402 msgid "Upload" 
    403 msgstr "" 
    404  
    405 #: ../sermon.php:1162 
    406 msgid "Upload is disabled. Please contact your systems administrator." 
    407 msgstr "" 
    408  
    409 #: ../sermon.php:1166 
    410410msgid "Upload is disabled. Please check your folder setting in Options." 
    411411msgstr "" 
    412412 
    413 #: ../sermon.php:1172 
     413#: ../sermon.php:1186 
    414414msgid "Unlinked files" 
    415415msgstr "" 
    416416 
    417 #: ../sermon.php:1178 
    418 #: ../sermon.php:1212 
    419 #: ../sermon.php:1261 
     417#: ../sermon.php:1192 
     418#: ../sermon.php:1226 
     419#: ../sermon.php:1275 
    420420msgid "File name" 
    421421msgstr "" 
    422422 
    423 #: ../sermon.php:1179 
    424 #: ../sermon.php:1213 
    425 #: ../sermon.php:1262 
     423#: ../sermon.php:1193 
     424#: ../sermon.php:1227 
     425#: ../sermon.php:1276 
    426426msgid "File type" 
    427427msgstr "" 
    428428 
    429 #: ../sermon.php:1206 
     429#: ../sermon.php:1220 
    430430msgid "Linked files" 
    431431msgstr "" 
    432432 
    433 #: ../sermon.php:1214 
    434 #: ../sermon.php:1263 
     433#: ../sermon.php:1228 
     434#: ../sermon.php:1277 
    435435#: ../sb-includes/widget.php:49 
    436436msgid "Sermon" 
    437437msgstr "" 
    438438 
    439 #: ../sermon.php:1250 
     439#: ../sermon.php:1264 
    440440msgid "Search for files" 
    441441msgstr "" 
    442442 
    443 #: ../sermon.php:1254 
     443#: ../sermon.php:1268 
    444444msgid "Search" 
    445445msgstr "" 
    446446 
    447 #: ../sermon.php:1269 
     447#: ../sermon.php:1283 
    448448msgid "Search results will appear here." 
    449449msgstr "" 
    450450 
    451 #: ../sermon.php:1287 
     451#: ../sermon.php:1301 
    452452msgid "Clean up" 
    453453msgstr "" 
    454454 
    455 #: ../sermon.php:1289 
     455#: ../sermon.php:1303 
    456456msgid "Pressing the button below scans every sermon in the database, and removes missing attachments. Use with caution!" 
    457457msgstr "" 
    458458 
    459 #: ../sermon.php:1290 
     459#: ../sermon.php:1304 
    460460msgid "Clean up missing files" 
    461461msgstr "" 
    462462 
    463 #: ../sermon.php:1302 
    464 #: ../sermon.php:1477 
     463#: ../sermon.php:1316 
     464#: ../sermon.php:1491 
    465465msgid "You do not have the correct permissions to edit sermons" 
    466466msgstr "" 
    467467 
    468 #: ../sermon.php:1305 
     468#: ../sermon.php:1319 
    469469msgid "Sermon saved to database." 
    470470msgstr "" 
    471471 
    472 #: ../sermon.php:1311 
     472#: ../sermon.php:1325 
    473473msgid "You do not have the correct permissions to delete sermons" 
    474474msgstr "" 
    475475 
    476 #: ../sermon.php:1319 
     476#: ../sermon.php:1333 
    477477msgid "Sermon removed from database." 
    478478msgstr "" 
    479479 
    480 #: ../sermon.php:1355 
    481 #: ../sermon.php:1385 
    482 #: ../sermon.php:1724 
     480#: ../sermon.php:1369 
     481#: ../sermon.php:1399 
     482#: ../sermon.php:1738 
    483483msgid "Title" 
    484484msgstr "" 
    485485 
    486 #: ../sermon.php:1359 
    487 #: ../sermon.php:1386 
    488 #: ../sermon.php:1738 
    489 #: ../sb-includes/frontend.php:869 
     486#: ../sermon.php:1373 
     487#: ../sermon.php:1400 
     488#: ../sermon.php:1752 
     489#: ../sb-includes/frontend.php:874 
    490490msgid "Preacher" 
    491491msgstr "" 
    492492 
    493 #: ../sermon.php:1368 
    494 #: ../sermon.php:1389 
    495 #: ../sermon.php:1751 
    496 #: ../sb-includes/frontend.php:895 
     493#: ../sermon.php:1382 
     494#: ../sermon.php:1403 
     495#: ../sermon.php:1765 
     496#: ../sb-includes/frontend.php:900 
    497497msgid "Series" 
    498498msgstr "" 
    499499 
    500 #: ../sermon.php:1376 
     500#: ../sermon.php:1390 
    501501msgid "Filter" 
    502502msgstr "" 
    503503 
    504 #: ../sermon.php:1387 
    505 #: ../sermon.php:1766 
     504#: ../sermon.php:1401 
     505#: ../sermon.php:1780 
    506506msgid "Date" 
    507507msgstr "" 
    508508 
    509 #: ../sermon.php:1388 
    510 #: ../sermon.php:1780 
     509#: ../sermon.php:1402 
     510#: ../sermon.php:1794 
    511511msgid "Service" 
    512512msgstr "" 
    513513 
    514 #: ../sermon.php:1390 
     514#: ../sermon.php:1404 
    515515msgid "Stats" 
    516516msgstr "" 
    517517 
    518 #: ../sermon.php:1435 
     518#: ../sermon.php:1449 
    519519msgid "You do not have the correct permissions to edit or create sermons" 
    520520msgstr "" 
    521521 
    522 #: ../sermon.php:1470 
     522#: ../sermon.php:1484 
    523523msgid "You do not have the correct permissions to create sermons" 
    524524msgstr "" 
    525525 
    526 #: ../sermon.php:1730 
     526#: ../sermon.php:1744 
    527527msgid "Tags (comma separated)" 
    528528msgstr "" 
    529529 
    530 #: ../sermon.php:1747 
     530#: ../sermon.php:1761 
    531531msgid "Create new preacher" 
    532532msgstr "" 
    533533 
    534 #: ../sermon.php:1760 
     534#: ../sermon.php:1774 
    535535msgid "Create new series" 
    536536msgstr "" 
    537537 
    538 #: ../sermon.php:1789 
     538#: ../sermon.php:1803 
    539539msgid "Create new service" 
    540540msgstr "" 
    541541 
    542 #: ../sermon.php:1795 
     542#: ../sermon.php:1809 
    543543msgid "Time" 
    544544msgstr "" 
    545545 
    546 #: ../sermon.php:1798 
     546#: ../sermon.php:1812 
    547547msgid "Override default time" 
    548548msgstr "" 
    549549 
    550 #: ../sermon.php:1804 
     550#: ../sermon.php:1818 
    551551msgid "Bible passage" 
    552552msgstr "" 
    553553 
    554 #: ../sermon.php:1804 
    555 #: ../sermon.php:1847 
     554#: ../sermon.php:1818 
     555#: ../sermon.php:1861 
    556556msgid "add more" 
    557557msgstr "" 
    558558 
    559 #: ../sermon.php:1808 
     559#: ../sermon.php:1822 
    560560msgid "From" 
    561561msgstr "" 
    562562 
    563 #: ../sermon.php:1809 
     563#: ../sermon.php:1823 
    564564msgid "To" 
    565565msgstr "" 
    566566 
    567 #: ../sermon.php:1847 
     567#: ../sermon.php:1861 
    568568msgid "Attachments" 
    569569msgstr "" 
    570570 
    571 #: ../sermon.php:1856 
     571#: ../sermon.php:1870 
    572572msgid "Choose existing file:" 
    573573msgstr "" 
    574574 
    575 #: ../sermon.php:1857 
     575#: ../sermon.php:1871 
    576576msgid "Upload a new one:" 
    577577msgstr "" 
    578578 
    579 #: ../sermon.php:1858 
     579#: ../sermon.php:1872 
    580580msgid "Enter an URL:" 
    581581msgstr "" 
    582582 
    583 #: ../sermon.php:1859 
     583#: ../sermon.php:1873 
    584584msgid "Enter embed code:" 
    585585msgstr "" 
    586586 
    587 #: ../sermon.php:1999 
     587#: ../sermon.php:2013 
    588588msgid "Help page" 
    589589msgstr "" 
    590590 
    591 #: ../sermon.php:2319 
     591#: ../sermon.php:2335 
    592592msgid "No results" 
    593593msgstr "" 
    594594 
    595 #: ../sermon.php:2333 
     595#: ../sermon.php:2349 
    596596msgid "You must create a post or preferably a page that includes the code [sermons] in order for your sermons to be displayed on your site." 
    597597msgstr "" 
    598598 
    599 #: ../sermon.php:2357 
     599#: ../sermon.php:2377 
    600600msgid "You have" 
    601601msgstr "" 
    602602 
    603 #: ../sermon.php:2361 
    604 #: ../sermon.php:2369 
     603#: ../sermon.php:2381 
     604#: ../sermon.php:2389 
    605605msgid "in" 
    606606msgstr "" 
    607607 
    608 #: ../sermon.php:2365 
     608#: ../sermon.php:2385 
    609609msgid "from" 
    610610msgstr "" 
    611611 
    612 #: ../sermon.php:2370 
     612#: ../sermon.php:2390 
    613613#, php-format 
    614614msgid "%d series" 
    615615msgstr "" 
    616616 
    617 #: ../sermon.php:2373 
     617#: ../sermon.php:2393 
    618618msgid "using" 
    619619msgstr "" 
    620620 
    621 #: ../sermon.php:2381 
     621#: ../sermon.php:2401 
    622622#, php-format 
    623623msgid "The most popular sermon is %s, which has been downloaded %s times" 
    624624msgstr "" 
    625625 
    626 #: ../sermon.php:2544 
     626#: ../sermon.php:2563 
    627627msgid "Genesis" 
    628628msgstr "" 
    629629 
    630 #: ../sermon.php:2544 
     630#: ../sermon.php:2563 
    631631msgid "Exodus" 
    632632msgstr "" 
    633633 
    634 #: ../sermon.php:2544 
     634#: ../sermon.php:2563 
    635635msgid "Leviticus" 
    636636msgstr "" 
    637637 
    638 #: ../sermon.php:2544 
     638#: ../sermon.php:2563 
    639639msgid "Numbers" 
    640640msgstr "" 
    641641 
    642 #: ../sermon.php:2544 
     642#: ../sermon.php:2563 
    643643msgid "Deuteronomy" 
    644644msgstr "" 
    645645 
    646 #: ../sermon.php:2544 
     646#: ../sermon.php:2563 
    647647msgid "Joshua" 
    648648msgstr "" 
    649649 
    650 #: ../sermon.php:2544 
     650#: ../sermon.php:2563 
    651651msgid "Judges" 
    652652msgstr "" 
    653653 
    654 #: ../sermon.php:2544 
     654#: ../sermon.php:2563 
    655655msgid "Ruth" 
    656656msgstr "" 
    657657 
    658 #: ../sermon.php:2544 
     658#: ../sermon.php:2563 
    659659msgid "1 Samuel" 
    660660msgstr "" 
    661661 
    662 #: ../sermon.php:2544 
     662#: ../sermon.php:2563 
    663663msgid "2 Samuel" 
    664664msgstr "" 
    665665 
    666 #: ../sermon.php:2544 
     666#: ../sermon.php:2563 
    667667msgid "1 Kings" 
    668668msgstr "" 
    669669 
    670 #: ../sermon.php:2544 
     670#: ../sermon.php:2563 
    671671msgid "2 Kings" 
    672672msgstr "" 
    673673 
    674 #: ../sermon.php:2544 
     674#: ../sermon.php:2563 
    675675msgid "1 Chronicles" 
    676676msgstr "" 
    677677 
    678 #: ../sermon.php:2544 
     678#: ../sermon.php:2563 
    679679msgid "2 Chronicles" 
    680680msgstr "" 
    681681 
    682 #: ../sermon.php:2544 
     682#: ../sermon.php:2563 
    683683msgid "Ezra" 
    684684msgstr "" 
    685685 
    686 #: ../sermon.php:2544 
     686#: ../sermon.php:2563 
    687687msgid "Nehemiah" 
    688688msgstr "" 
    689689 
    690 #: ../sermon.php:2544 
     690#: ../sermon.php:2563 
    691691msgid "Esther" 
    692692msgstr "" 
    693693 
    694 #: ../sermon.php:2544 
     694#: ../sermon.php:2563 
    695695msgid "Job" 
    696696msgstr "" 
    697697 
    698 #: ../sermon.php:2544 
     698#: ../sermon.php:2563 
    699699msgid "Psalm" 
    700700msgstr "" 
    701701 
    702 #: ../sermon.php:2544 
     702#: ../sermon.php:2563 
    703703msgid "Proverbs" 
    704704msgstr "" 
    705705 
    706 #: ../sermon.php:2544 
     706#: ../sermon.php:2563 
    707707msgid "Ecclesiastes" 
    708708msgstr "" 
    709709 
    710 #: ../sermon.php:2544 
     710#: ../sermon.php:2563 
    711711msgid "Song of Solomon" 
    712712msgstr "" 
    713713 
    714 #: ../sermon.php:2544 
     714#: ../sermon.php:2563 
    715715msgid "Isaiah" 
    716716msgstr "" 
    717717 
    718 #: ../sermon.php:2544 
     718#: ../sermon.php:2563 
    719719msgid "Jeremiah" 
    720720msgstr "" 
    721721 
    722 #: ../sermon.php:2544 
     722#: ../sermon.php:2563 
    723723msgid "Lamentations" 
    724724msgstr "" 
    725725 
    726 #: ../sermon.php:2544 
     726#: ../sermon.php:2563 
    727727msgid "Ezekiel" 
    728728msgstr "" 
    729729 
    730 #: ../sermon.php:2544 
     730#: ../sermon.php:2563 
    731731msgid "Daniel" 
    732732msgstr "" 
    733733 
    734 #: ../sermon.php:2544 
     734#: ../sermon.php:2563 
    735735msgid "Hosea" 
    736736msgstr "" 
    737737 
    738 #: ../sermon.php:2544 
     738#: ../sermon.php:2563 
    739739msgid "Joel" 
    740740msgstr "" 
    741741 
    742 #: ../sermon.php:2544 
     742#: ../sermon.php:2563 
    743743msgid "Amos" 
    744744msgstr "" 
    745745 
    746 #: ../sermon.php:2544 
     746#: ../sermon.php:2563 
    747747msgid "Obadiah" 
    748748msgstr "" 
    749749 
    750 #: ../sermon.php:2544 
     750#: ../sermon.php:2563 
    751751msgid "Jonah" 
    752752msgstr "" 
    753753 
    754 #: ../sermon.php:2544 
     754#: ../sermon.php:2563 
    755755msgid "Micah" 
    756756msgstr "" 
    757757 
    758 #: ../sermon.php:2544 
     758#: ../sermon.php:2563 
    759759msgid "Nahum" 
    760760msgstr "" 
    761761 
    762 #: ../sermon.php:2544 
     762#: ../sermon.php:2563 
    763763msgid "Habakkuk" 
    764764msgstr "" 
    765765 
    766 #: ../sermon.php:2544 
     766#: ../sermon.php:2563 
    767767msgid "Zephaniah" 
    768768msgstr "" 
    769769 
    770 #: ../sermon.php:2544 
     770#: ../sermon.php:2563 
    771771msgid "Haggai" 
    772772msgstr "" 
    773773 
    774 #: ../sermon.php:2544 
     774#: ../sermon.php:2563 
    775775msgid "Zechariah" 
    776776msgstr "" 
    777777 
    778 #: ../sermon.php:2544 
     778#: ../sermon.php:2563 
    779779msgid "Malachi" 
    780780msgstr "" 
    781781 
    782 #: ../sermon.php:2544 
     782#: ../sermon.php:2563 
    783783msgid "Matthew" 
    784784msgstr "" 
    785785 
    786 #: ../sermon.php:2544 
     786#: ../sermon.php:2563 
    787787msgid "Mark" 
    788788msgstr "" 
    789789 
    790 #: ../sermon.php:2544 
     790#: ../sermon.php:2563 
    791791msgid "Luke" 
    792792msgstr "" 
    793793 
    794 #: ../sermon.php:2544 
     794#: ../sermon.php:2563 
    795795msgid "John" 
    796796msgstr "" 
    797797 
    798 #: ../sermon.php:2544 
     798#: ../sermon.php:2563 
    799799msgid "Acts" 
    800800msgstr "" 
    801801 
    802 #: ../sermon.php:2544 
     802#: ../sermon.php:2563 
    803803msgid "Romans" 
    804804msgstr "" 
    805805 
    806 #: ../sermon.php:2544 
     806#: ../sermon.php:2563 
    807807msgid "1 Corinthians" 
    808808msgstr "" 
    809809 
    810 #: ../sermon.php:2544 
     810#: ../sermon.php:2563 
    811811msgid "2 Corinthians" 
    812812msgstr "" 
    813813 
    814 #: ../sermon.php:2544 
     814#: ../sermon.php:2563 
    815815msgid "Galatians" 
    816816msgstr "" 
    817817 
    818 #: ../sermon.php:2544 
     818#: ../sermon.php:2563 
    819819msgid "Ephesians" 
    820820msgstr "" 
    821821 
    822 #: ../sermon.php:2544 
     822#: ../sermon.php:2563 
    823823msgid "Philippians" 
    824824msgstr "" 
    825825 
    826 #: ../sermon.php:2544 
     826#: ../sermon.php:2563 
    827827msgid "Colossians" 
    828828msgstr "" 
    829829 
    830 #: ../sermon.php:2544 
     830#: ../sermon.php:2563 
    831831msgid "1 Thessalonians" 
    832832msgstr "" 
    833833 
    834 #: ../sermon.php:2544 
     834#: ../sermon.php:2563 
    835835msgid "2 Thessalonians" 
    836836msgstr "" 
    837837 
    838 #: ../sermon.php:2544 
     838#: ../sermon.php:2563 
    839839msgid "1 Timothy" 
    840840msgstr "" 
    841841 
    842 #: ../sermon.php:2544 
     842#: ../sermon.php:2563 
    843843msgid "2 Timothy" 
    844844msgstr "" 
    845845 
    846 #: ../sermon.php:2544 
     846#: ../sermon.php:2563 
    847847msgid "Titus" 
    848848msgstr "" 
    849849 
    850 #: ../sermon.php:2544 
     850#: ../sermon.php:2563 
    851851msgid "Philemon" 
    852852msgstr "" 
    853853 
    854 #: ../sermon.php:2544 
     854#: ../sermon.php:2563 
    855855msgid "Hebrews" 
    856856msgstr "" 
    857857 
    858 #: ../sermon.php:2544 
     858#: ../sermon.php:2563 
    859859msgid "James" 
    860860msgstr "" 
    861861 
    862 #: ../sermon.php:2544 
     862#: ../sermon.php:2563 
    863863msgid "1 Peter" 
    864864msgstr "" 
    865865 
    866 #: ../sermon.php:2544 
     866#: ../sermon.php:2563 
    867867msgid "2 Peter" 
    868868msgstr "" 
    869869 
    870 #: ../sermon.php:2544 
     870#: ../sermon.php:2563 
    871871msgid "1 John" 
    872872msgstr "" 
    873873 
    874 #: ../sermon.php:2544 
     874#: ../sermon.php:2563 
    875875msgid "2 John" 
    876876msgstr "" 
    877877 
    878 #: ../sermon.php:2544 
     878#: ../sermon.php:2563 
    879879msgid "3 John" 
    880880msgstr "" 
    881881 
    882 #: ../sermon.php:2544 
     882#: ../sermon.php:2563 
    883883msgid "Jude" 
    884884msgstr "" 
    885885 
    886 #: ../sermon.php:2544 
     886#: ../sermon.php:2563 
    887887msgid "Revelation" 
    888888msgstr "" 
    889889 
    890 #: ../sb-includes/frontend.php:504 
     890#: ../sb-includes/frontend.php:509 
    891891msgid "Sermon podcast" 
    892892msgstr "" 
    893893 
    894 #: ../sb-includes/frontend.php:509 
     894#: ../sb-includes/frontend.php:514 
    895895msgid "Custom sermon podcast" 
    896896msgstr "" 
    897897 
    898 #: ../sb-includes/frontend.php:608 
     898#: ../sb-includes/frontend.php:613 
    899899msgid "Next page" 
    900900msgstr "" 
    901901 
    902 #: ../sb-includes/frontend.php:619 
     902#: ../sb-includes/frontend.php:624 
    903903msgid "Previous page" 
    904904msgstr "" 
    905905 
    906 #: ../sb-includes/frontend.php:674 
     906#: ../sb-includes/frontend.php:679 
    907907msgid "About" 
    908908msgstr "" 
    909909 
    910 #: ../sb-includes/frontend.php:710 
     910#: ../sb-includes/frontend.php:715 
    911911msgid "None" 
    912912msgstr "" 
    913913 
    914 #: ../sb-includes/frontend.php:871 
    915 #: ../sb-includes/frontend.php:879 
    916 #: ../sb-includes/frontend.php:889 
    917 #: ../sb-includes/frontend.php:897 
     914#: ../sb-includes/frontend.php:876 
     915#: ../sb-includes/frontend.php:884 
     916#: ../sb-includes/frontend.php:894 
     917#: ../sb-includes/frontend.php:902 
    918918#: ../sb-includes/widget.php:209 
    919919#: ../sb-includes/widget.php:217 
     
    922922msgstr "" 
    923923 
    924 #: ../sb-includes/frontend.php:877 
     924#: ../sb-includes/frontend.php:882 
    925925msgid "Services" 
    926926msgstr "" 
    927927 
    928 #: ../sb-includes/frontend.php:887 
     928#: ../sb-includes/frontend.php:892 
    929929msgid "Book" 
    930930msgstr "" 
    931931 
    932 #: ../sb-includes/frontend.php:905 
     932#: ../sb-includes/frontend.php:910 
    933933msgid "Start date" 
    934934msgstr "" 
    935935 
    936 #: ../sb-includes/frontend.php:907 
     936#: ../sb-includes/frontend.php:912 
    937937msgid "End date" 
    938938msgstr "" 
    939939 
    940 #: ../sb-includes/frontend.php:911 
     940#: ../sb-includes/frontend.php:916 
    941941msgid "Keywords" 
    942942msgstr "" 
    943943 
    944 #: ../sb-includes/frontend.php:915 
     944#: ../sb-includes/frontend.php:920 
    945945msgid "Sort by" 
    946946msgstr "" 
    947947 
    948 #: ../sb-includes/frontend.php:922 
     948#: ../sb-includes/frontend.php:927 
    949949msgid "Direction" 
    950950msgstr "" 
    951951 
    952 #: ../sb-includes/frontend.php:932 
     952#: ../sb-includes/frontend.php:937 
    953953msgid "Filter &raquo;" 
    954954msgstr "" 
  • sermon-browser/trunk/sermon.php

    r67002 r67681  
    55Description: Add sermons to your Wordpress blog. Main coding by <a href="http://codeandmore.com/">Tien Do Xuan</a>. Design and additional coding 
    66Author: Mark Barnes 
    7 Version: 0.36 
     7Version: 0.37 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    2828 ** Set up                            ** 
    2929 **************************************/ 
    30 define('SB_CURRENT_VERSION', '0.36'); 
     30define('SB_CURRENT_VERSION', '0.37'); 
    3131define('SB_DATABASE_VERSION', '1.5'); 
    3232$directories = explode(DIRECTORY_SEPARATOR,dirname(__FILE__)); 
     
    5252sb_sermon_install(); 
    5353add_action('rightnow_end', 'sb_rightnow'); 
     54register_activation_hook( __FILE__, 'sb_activate' ); 
    5455 
    5556// Add Sermons menu and sub-menus in admin 
     
    319320} 
    320321 
     322// Runs upon activation 
     323function sb_activate () { 
     324    // Re-saves the template in case of changes to dictionary.php 
     325    $sbmf = get_option('sb_sermon_multi_form'); 
     326    if ($sbmf) update_option('sb_sermon_multi_output', base64_encode(strtr(stripslashes(base64_decode($sbmf)), sb_search_results_dictionary()))); 
     327    $sbsf = get_option('sb_sermon_single_form'); 
     328    if ($sbsf) update_option('sb_sermon_single_output', base64_encode(strtr(stripslashes(base64_decode($sbsf)), sb_sermon_page_dictionary()))); 
     329} 
     330 
    321331// Display the options page and handle changes 
    322332function sb_options() { 
     
    450460        delete_option('sb_sermon_single_form'); 
    451461        delete_option('sb_sermon_multi_form'); 
    452         delete_option('sb_sermon_db_version'); 
    453462        delete_option('sb_sermon_style'); 
    454463        delete_option('sb_sermon_multi_output'); 
     
    458467        delete_option('sb_display_method'); 
    459468        delete_option('sb_sermons_per_page'); 
     469        delete_option('sb_sermon_db_version'); 
    460470        if (IS_MU) { 
    461471            echo '<div id="message" class="updated fade"><p><b>'.__('All sermon data has been removed.', $sermon_domain).'</b></div>'; 
    462472        } else { 
    463             echo '<div id="message" class="updated fade"><p><b>'.__('Uninstall completed. Please deactivate the plugin.', $sermon_domain).'</b></div>'; 
     473            echo '<div id="message" class="updated fade"><p><b>'.__('Uninstall completed. The Sermon Browser plugin has been deactivated.', $sermon_domain).'</b></div>'; 
     474            $activeplugins = get_option('active_plugins'); 
     475            array_splice($activeplugins, array_search('sermon-browser/sermon.php', $activeplugins), 1 ); 
     476            do_action('deactivate_sermon-browser/sermon.php'); 
     477            update_option('active_plugins', $activeplugins); 
    464478        } 
    465479    } 
     
    23542368        $tag_count = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."sb_tags WHERE name<>''"); 
    23552369        $download_count = $wpdb->get_var("SELECT SUM(count) FROM ".$wpdb->prefix."sb_stuff"); 
    2356         $download_average = round($download_count/$sermon_count, 1); 
     2370        if ($sermon_count == 0) { 
     2371            $download_average = 0; 
     2372        } else { 
     2373            $download_average = round($download_count/$sermon_count, 1); 
     2374        } 
    23572375        $most_popular = $wpdb->get_results("SELECT title, sermon_id, sum(count) AS c FROM ".$wpdb->prefix."sb_stuff LEFT JOIN ".$wpdb->prefix."sb_sermons ON ".$wpdb->prefix."sb_sermons.id = sermon_id GROUP BY sermon_id ORDER BY c DESC LIMIT 1"); 
    23582376        $most_popular = $most_popular[0]; 
Note: See TracChangeset for help on using the changeset viewer.