Dia de S. João

In the 17th Century, Macau was a rich and valuable Portuguese trading post. In late June 1622 a large Dutch force attacked Macau. A small group of defenders, augmented by volunteers, fought bravely and defeated the invaders on the 24th June, the feast of the birth of St John the Baptist. Ever since then, Macau has celebrated that great victory as the Dia de São João. In 2022, to celebrate the 400th anniversary of this victory, Mr Victor Marreiros produced this plaque. Hovering the mouse pointer over text will reveal its translation into English.

1 function special_tooltip_shortcode($atts) { // Default attributes $atts = shortcode_atts(array( 'keyword' => 'Test Tooltip', 'id' => '123', 'items' => '', ), $atts); // Escape output $keyword = esc_html($atts['keyword']); $id = (int) $atts['id']; // Clean items: remove empty lines $lines = preg_split('/\r\n|\r|\n/', $atts['items']); $clean_lines = array_filter(array_map('trim', $lines)); // Trim each line, remove empty $items = ''; foreach ($clean_lines as $line) { $items .= esc_html($line) . '
'; } // Fixed base URL $url = "https://www.macaneselibrary.org/macfams/priv/english/"; // Build output $output = "
{$keyword} #{$id}
{$keyword} #{$id} {$items} Details are in the private website: Already logged in?
Register or login?
"; return $output; } add_shortcode('specialtooltip', 'special_tooltip_shortcode');