WordPress.org

Plugin Directory

Changeset 68148 for sermon-browser/trunk


Ignore:
Timestamp:
10/08/08 23:26:03 (6 years ago)
Author:
mark8barnes
Message:
 
Location:
sermon-browser/trunk
Files:
2 edited

Legend:

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

    r67681 r68148  
    11<?php  
    2  
    3 // Required files 
    4 require_once('dictionary.php'); //Imports template tags 
    5 require_once('widget.php'); // Displays widget if requested 
    6  
    7 // Word list for URL building purpose 
    8 $wl = array('preacher', 'title', 'date', 'enddate', 'series', 'service', 'sortby', 'dir', 'page', 'sermon_id', 'book', 'stag', 'podcast'); 
    9  
    10 // Hooks & filters 
    11 add_action('template_redirect', 'sb_hijack'); 
    12 add_filter('wp_title', 'sb_page_title'); 
    13 add_action('wp_head', 'sb_print_header'); 
    14 add_filter('the_content', 'sb_sermons_filter'); 
    15 add_action('widgets_init', 'sb_widget_sermon_init'); 
    16 if (SAVEQUERIES) add_action('wp_footer', 'sb_footer_stats'); 
    17 if (SAVEQUERIES) add_action('admin_footer', 'sb_footer_stats'); 
    18  
    192// Get the URL of the sermons page 
    203function sb_display_url() { 
     
    486469// Returns URL for search links 
    487470function sb_build_url($arr, $clear = false) { 
    488     global $wl, $post, $wpdb; 
     471    global $post, $wpdb; 
     472    // Word list for URL building purpose 
     473    $wl = array('preacher', 'title', 'date', 'enddate', 'series', 'service', 'sortby', 'dir', 'page', 'sermon_id', 'book', 'stag', 'podcast'); 
    489474    $foo = array_merge((array) $_GET, (array) $_POST, $arr); 
    490475    if ($foo['page'] && (strpos ($foo['page'], 'sermon-browser/options.php') != FALSE)) { //Remove unwanted parameters passed by the admin page when re-generating pages/posts 
  • sermon-browser/trunk/sermon.php

    r67967 r68148  
    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.37.1 
     7Version: 0.37.2 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    2828 ** Initialisation                    ** 
    2929 **************************************/ 
    30 // Add admin menu items and check to see whether install/upgrade is necessary 
    3130add_action('init', 'sb_sermon_init'); 
    3231add_action('admin_menu', 'sb_add_pages'); 
    3332add_action('rightnow_end', 'sb_rightnow'); 
     33add_action('template_redirect', 'sb_hijack'); 
     34add_filter('wp_title', 'sb_page_title'); 
     35add_action('wp_head', 'sb_print_header'); 
     36add_filter('the_content', 'sb_sermons_filter'); 
     37add_action('widgets_init', 'sb_widget_sermon_init'); 
     38if (SAVEQUERIES) add_action('wp_footer', 'sb_footer_stats'); 
     39if (SAVEQUERIES) add_action('admin_footer', 'sb_footer_stats'); 
    3440register_activation_hook( __FILE__, 'sb_activate' ); 
     41 
     42// Include required files 
     43require('sb-includes/dictionary.php'); // Template functions 
     44require('sb-includes/filetypes.php'); // User-defined icons 
     45require('sb-includes/frontend.php'); // Everything related to displaying sermons 
     46require('sb-includes/widget.php'); // Displays widget if requested 
    3547 
    3648// Initialisation 
    3749function sb_sermon_init () { 
     50    global $sermon_domain; 
    3851    //Set global constants 
    39     define('SB_CURRENT_VERSION', '0.37.1'); 
     52    define('SB_CURRENT_VERSION', '0.37.2'); 
    4053    define('SB_DATABASE_VERSION', '1.5'); 
    4154    $directories = explode(DIRECTORY_SEPARATOR,dirname(__FILE__)); 
     
    5265    } 
    5366     
    54     // Include required files 
    55     require_once('sb-includes/dictionary.php'); // Template functions 
    56     include_once('sb-includes/filetypes.php'); // User-defined icons 
    57     include('sb-includes/frontend.php'); // Everything related to displaying sermons 
    58  
    5967    // Return AJAX data if that is all that is required 
    6068    if ($_POST['sermon'] == 1) sb_return_ajax_data(); 
Note: See TracChangeset for help on using the changeset viewer.