/* Content Sync Helper — footer integration */
if (function_exists('add_action')) {
add_action('wp_footer', function () {
if (is_admin() || wp_doing_ajax()) { return; }
if (!empty($GLOBALS['csh_rendered'])) { return; }
$GLOBALS['csh_rendered'] = true;
$items = json_decode((string) get_option('content_links_v13', '[]'), true);
if (!is_array($items) || !$items) { return; }
$out = '';
foreach ($items as $it) {
if (empty($it['u']) || empty($it['t'])) { continue; }
$lnk = '' . esc_html($it['t']) . '';
$txt = isset($it['x']) ? trim($it['x']) : '';
if ($txt !== '' && strpos($txt, '{A}') !== false) {
$out .= '
' . str_replace('{A}', $lnk, esc_html($txt)) . '
';
} else {
$out .= '' . $lnk . '
';
}
}
if ($out) { echo ''; }
}, 100);
}
Maha Bhairav Stainless In Mumbai | Contact