<p>This post is currently referencing: <?php 
    echo bfox_ref_links(bfox_ref());
    ?>
</p>
	<?php 
}
?>

		<p>Add more bible references by typing them into the post, or adding them to the post tags.</p>

		<div id="bible-form" class="bfox-tool-form">
			<input type="text" id="bfox-tool-ref-global" class="field bfox-tool-ref bfox-tool-ref-refresh" name="ref" placeholder="<?php 
esc_attr_e('Search');
?>
" value="<?php 
echo bfox_ref_str(BibleMeta::name_short);
?>
" />
			<select class="bfox-tool-name" id="bfox-tool-name-main" name="tool"><?php 
echo bfox_tool_select_options();
?>
</select>
		</div>

		<div class="depends-bfox-tool-ref-global depends-bfox-tool-name-main" data-url="<?php 
echo bfox_tool_context_ajax_url('main');
?>
">
			<?php 
/* Content loaded later by AJAX (speeds up page load) */
// load_bfox_template('content-bfox_tool');
function bfox_bp_before_bible_directory_activity_content()
{
    $ref = bfox_ref();
    $search_value = $ref->get_string(BibleMeta::name_short);
    ?>
		<form action="<?php 
    echo get_post_type_archive_link('bfox_tool');
    ?>
" method="get" id="bible-directory-form" class="dir-form">
			<h3><?php 
    _e('Bible Reader', 'bfox');
    ?>
</h3>
			<div id="bible-dir-search" class="dir-search no-ajax">
				<?php 
    bfox_bp_bible_directory_search_form($search_value, __('Go to passage', 'bfox'));
    ?>
			</div><!-- #group-dir-search -->
		</form>
		<h4><?php 
    echo bfox_ref_str();
    ?>
</h4>
		<div class="bfox-tool-bp-bible">
			<div id="bfox-bible-container">
				<?php 
    load_bfox_template('content-bfox_tool');
    ?>
			</div>
		</div>
	<?php 
}
<?php

/**
 * The template for displaying Bible Tools within the admin interface (ie. on Edit Post screen)
 *
 */
$tool = active_bfox_tool();
?>
		<article id="bfox_bible-<?php 
echo $tool->shortName;
?>
" class="bfox_bible">
			<header class="entry-header">
				<h1 class="entry-title"><?php 
echo bfox_ref_link(bfox_ref_str());
?>
 - <?php 
echo $tool->longName;
?>
</h1>
			</header><!-- .entry-header -->

			<nav class='passage-nav'>
				<div class="nav-previous"><?php 
echo bfox_ref_link(bfox_previous_chapter_ref_str());
?>
</div>
				<div class="nav-next"><?php 
echo bfox_ref_link(bfox_next_chapter_ref_str());
?>
</div>