-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathintro-gfd.php
More file actions
18 lines (16 loc) · 788 Bytes
/
intro-gfd.php
File metadata and controls
18 lines (16 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
$feeder_permalink = FEEDER_LINK;
$ready_string = "<h3 class=\"text-center\"><strong>" . get_theme_mod('essentials_ready', ESS_READY) . "</strong></h3>";
if (!isset($_GET[TOPIC])){
$feeder_permalink .= "?" . SHOW_QUESTION . "=1";
echo "<div>";
the_content();
$html = "</div>" . $ready_string;
}
else{
$html = "<div>
<h2 class=\"text-center\">Topic Chosen: " . get_term_by('slug', filter_input(INPUT_GET, TOPIC, FILTER_SANITIZE_STRING), 'topic')->name . "</h2>
" . $ready_string . "</div>";
$feeder_permalink .= "?" . SHOW_QUESTION . "=1&" . TOPIC . "=" . filter_input(INPUT_GET, TOPIC, FILTER_SANITIZE_STRING);
}
echo $html . "<div class=\"text-center\"><a class=\"btn btn-primary return-button\" href=\"" . $feeder_permalink . "\">Begin</a></div>";