Polylang Test

Portugal established a trading post in Macau in 1557 which grew and flourished to become a hub of international trade in East Asia. The Portuguese who settled there developed their own unique culture, calling themselves Macaense (in English Macanese). They survived many crises, including  an invasion by the Dutch and extreme hardship during World War II.  In time, Macau’s economy declined when it was overtaken in trade by nearby Hong Kong with its magnificent harbour.  After World War II most Macanese dispersed to seek better opportunities elsewhere – in America, Canada, Brazil, Australia and Portugal.  Their culture that evolved over four centuries is in danger of obliteration.

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