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

'); echo('15/04/2021 - This section is under construction...

'); echo('
'); echo('
'); endMainCard(); if($SHOW_CONTENT_DEBUG_CARD) { // ################ // Debugging card // ################ echo('

  Debug

'); echo('

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

'); 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('

$raw_additional_tags: '.$raw_additional_tags.'

'); echo('

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

'); echo('

$content_requested_url_part: '.$content_requested_url_part.'

'); if($requested_content_display_type == ContentDisplayType::CONTENT) { echo('
'); echo('

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

'); } echo('
'); } // Checking if an error occurred. if($content_error_code != 200) { // ############# // Error card // ############# 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) { // ############# // Search page // ############# // 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(''); echo('
'); echo('
'); } echo('
'); echo('
'. '

'. 'Card footer here.'. '

'); endMainCard(); } elseif($requested_content_display_type == ContentDisplayType::CONTENT) { // ############## // Content page // ############## // Preparing soma variables for the icon, title and subtitle. $_title_icon = "fad fa-question"; $_title_text_main = ''.localize("error.content.data.no.title").''; $_title_text_sub = NULL; // Attempting to read the card's icon, title and subtitle. if (array_key_exists("title", $requested_item_data)) { if (array_key_exists("icon", $requested_item_data["title"])) { $_title_icon = $requested_item_data["title"]["icon"]; } if (array_key_exists("card", $requested_item_data["title"])) { if (array_key_exists("main", $requested_item_data["title"]["card"])) { $_title_text_main = getContentItemText($requested_item_data["title"]["card"]["main"], true); } if (array_key_exists("sub", $requested_item_data["title"]["card"])) { $_title_text_sub = getContentItemText($requested_item_data["title"]["card"]["sub"], true); } } } // Opening the card. startMainCard($_title_icon, $_title_text_main, (is_null($_title_text_sub) ? "" : $_title_text_sub)); // Opening the content container. echo('
'); // Adding elements defined in the JSON file. if(array_key_exists("parts", $requested_item_data)) { for ($i = 0; $i < count($requested_item_data["parts"]); $i++) { createElementNode($requested_item_data["parts"][$i]); } } else { echo('

'); echo(localize("error.content.data.no.parts").'

'); } // New elements test zone. - START // New elements test zone. - END // Closing the content container. echo('
'); // Printing the tags' section at the end of the card echo('
'); echo('
'); // Closing the card. endMainCard(); } content_printing_end: ?>