History

The Past Master

The Past Master The good, the bad and the infamous by Jason Wordie [Source unknown, but possibly The South China Morning Post, Hong Kong, 2010] Hong Kong’s Legislative Council is often criticised as being an ineffectual “talk shop”. While few would disagree entirely with that, it is a distinct improvement on times past when Hansard issues […]

The Past Master Read More »

Dutch Attack

The Dutch Attack and Rout at Macau, 24 June 1622 by J. Bosco Correa This is an edited version of an article first published in the Bulletin of Casa de Macau (Australia). Philip III of Spain (Philip II of Portugal) In the early part of the 17th Century, Portugal had a great advantage in trade with

Dutch Attack Read More »

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