/**
 * Loops through Bible Tool links and adds a Bible Tool for each (loaded in Iframe)
 */
function load_blog_bfox_tools()
{
    $query = bfox_tool_query();
    while ($query->have_posts()) {
        $query->the_post();
        $url = bfox_tool_meta('url', $post_id);
        $title = get_the_title();
        $post =& get_post($id);
        add_bfox_tool(new BfoxWPBibleToolIframeApi($url), $post->post_name, $title);
    }
}
Exemplo n.º 2
0
 * Use this file to customize the Bible Tools used on your site
 */
// Official ESV API
add_bfox_tool(new BfoxESVApi(), 'ESV', 'English Standard Version');
// Official NET Bible API
add_bfox_tool(new BfoxNETBibleApi(), 'NET', 'New English Translation');
// Official ESV API via Javascript
add_bfox_tool(new BfoxESVJavaScriptApi(), 'ESVJS', 'English Standard VersionJS');
// NET Bible via Javascript
add_bfox_tool(new BfoxNETBibleTaggerApi(), 'NETJS', 'New English TranslationJS');
// RefTagger API via Javascript
add_bfox_tool(new BfoxRefTaggerApi('NIV'), 'NIV', 'New International Version');
// Biblia API
// Requires API Key, visit: http://api.biblia.com/docs/API_Keys
if (defined('BFOX_BIBLIA_API_KEY')) {
    add_bfox_tool(new BfoxBibliaApi('LEB', BFOX_BIBLIA_API_KEY), 'LEB', 'Lexham English Bible');
}
/*
 * You can also load Bible Tools your own locally stored Database
 *
 * An example of a Bible stored in a local database
 * In this example,
 *  'wp_bfox_trans_KJV_verses' is the name of the local database table
 *  'verse' is a column in the table that has the text for an individual verse
 *  'unique_id' is a column that has a unique ID for verse
 *    Verse unique IDs need to be formatted as such, unique_id = bookNum * 256 * 256 + chapterNum * 256 + verseNum
 *    bookNum begins with Genesis = 1, Exodus = 2
 */
/*
 * Use this as an example of loading scripture from a local database
 */