Shanghai

Shanghai Whos Who

Portuguese in Shanghai The Portuguese population of Shanghai was monitored by the Shanghai Municipal Government. It rose from 6 in 1850 to a peak of 2281 after World War II. Statistics are plotted in this graph. The book Portuguese in Shanghai by Wang Zhicheng (Fundação Macau, 1998) records much valuable information, including a list of 2,400 residents […]

Shanghai Whos Who Read More »

Pela Patria Index

Pela Patria Pela Patria (“For the Fatherland”, a phrase from the Portuguese National Anthem) was a monthly Magazine published in 1940-41 by the Portuguese community in Shanghai. About half of the articles are in Portuguese and half in English. It captured an invaluable record of the life and people in that city, four years after occupation by

Pela Patria Index 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');