Debug

'); echo('

REQUEST_URI: '.$_SERVER['REQUEST_URI'].'

'); echo('

$requested_content_type: '.$requested_content_type.'

'); echo('

$requested_content_display_type: '.$requested_content_display_type.'

'); echo('

$requested_tags: ['.implode(", ", $requested_tags).']

'); echo('

count($requested_tags): '.count($requested_tags).'

'); echo('

$content_has_error: '.$content_has_error.'

'); echo('

$_content_error_message_key: '.$_content_error_message_key.'

'); echo('

localize($_content_error_message_key): '.localize($_content_error_message_key).'

'); echo('

$content_error_message: '.$content_error_message.'

'); echo('

$filtered_content_index_data: '); print_r($filtered_content_index_data); echo('

'); echo('

$content_requested_url_part: '.$content_requested_url_part.'

'); echo('
'); } // Checking if an error occurred. if($content_error_code != 200) { startMainCard("fad fa-exclamation-triangle", localize('error.content.title.generic'), ""); echo('
'); echo('

'.$content_error_message.'

'); echo('
'); echo('
'. '

'. 'Card footer here.'. '

'); endMainCard(); goto content_printing_end; } // Printing the containers if($requested_content_display_type == ContentDisplayType::SEARCH) { // Creating the start of the card, only a "
" should be required afterward. startMainCard( "fad fa-file-search", localize("content.title.search"), strval(count($filtered_content_index_data)) . " " . (count($filtered_content_index_data) > 1 ? localize("content.search.count.multiple") : localize("content.search.count.single"))); echo('
'); for($i = 0; $i < count($filtered_content_index_data); $i++) { if($i > 0) { echo(''); } echo('
'); // https://css-tricks.com/float-an-element-to-the-bottom-corner/ echo(''); echo('
'); echo('
'); echo(''); // TODO: Add button to view article ! echo('
'); echo('
'); } echo('
'); echo('
'. '

'. 'Card footer here.'. '

'); endMainCard(); } elseif($requested_content_display_type == ContentDisplayType::ARTICLE) { startMainCard("fad fa-file-alt", localize("content.title.article"), "subtitle"); endMainCard(); } elseif($requested_content_display_type == ContentDisplayType::APPLICATION) { startMainCard("fad fa-file-alt", localize("content.title.application"), "subtitle"); endMainCard(); } content_printing_end: ?>