function getPassageHTMLByVerseId($verse_id, $bible_code = 'kjv', $relevant_words = [], $vote_count = 0) { # Get verse reference $verse_reference = getVerseReference($verse_id); # Get passage HTML $passage_html = getPassageHTML($verse_reference, $bible_code, $relevant_words, $vote_count); # Return passage HTML return $passage_html; }
function getTagHTML($tag_id, $bible_code = 'kjv') { # Get tag object $tag_object = getTag($tag_id); # Get tag reference $tag_reference = getTagReference($tag_object->getId()); # Get bible object $bible_object = getBibleByCode($bible_code); # Get tag highlighter object $tag_highlighter_object = TagHighlighterQuery::create()->filterByBible($bible_object)->filterByTag($tag_object)->findOne(); # Define passage HTML data $passage_html_data = ['bible_id' => $bible_object->getId(), 'reference_string' => $tag_reference, 'tag_id' => $tag_object->getId(), 'tag_highlighter_id' => $tag_highlighter_object->getId()]; # Get passage HTML $tag_html = getPassageHTML($passage_html_data); # Return tag HTML return $tag_html; }
</p> </form> </section> s; if ($_GET['reference']) { # Define passage HTML data $passage_html_data = [ 'bible_code' => 'kjv', 'reference_string' => $_GET['reference'], 'show_tags' => true, ]; # Get passage HTML $passage_html = getPassageHTML($passage_html_data); # Echo passage HTML echo <<<s <section> {$passage_html} </section> s; } echo <<<s </div> s; require_once 'components/footer.php';