Advertisement
bhengh

SB translation fix: sb_print_url_link

Feb 11th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // Print link to attached external URLs
  2. function sb_print_url_link($url) {
  3. global $sermon_domain;
  4. echo '<div class="sermon_file">';
  5. sb_print_url ($url);
  6. if (substr($url, -4) == ".mp3" && function_exists('ap_insert_player_widgets')) {
  7. if (substr($url,0,7) == "http://") {
  8. $param="url"; }
  9. else {
  10. $param="file_name"; }
  11. $url = rawurlencode($url);
  12. echo ' <a href="'.sb_display_url().sb_query_char().'download&amp;'.$param.'='.$url.'">'.__('Download', $sermon_domain).'</a>';
  13. }
  14. echo '</div>';
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement