"https://phone.your-tenant.example",
"room" => "",
"dial" => "",
"trunk" => "",
"relay" => "0",
"label" => "Meet us now (video call)"
], $atts);
$url = esc_url(codeb_meet_url($a["tenant"], $a["room"], $a["dial"], $a["trunk"], $a["relay"] === "1"));
return sprintf(
'%s',
$url, esc_html($a["label"])
);
});
add_shortcode("codeb_meet_iframe", function ($atts) {
$a = shortcode_atts([
"tenant" => "https://phone.your-tenant.example",
"room" => "sales-demo",
"width" => "1180",
"height" => "720"
], $atts);
$src = esc_url(rtrim($a["tenant"], "/") . "/room.html?room=" . rawurlencode($a["room"]));
$width = intval($a["width"]);
$height = intval($a["height"]);
return sprintf(
'',
$src, $width, $height
);
});
// [codeb_meet_button tenant="https://phone.acme.example" room="sales-demo"]
// [codeb_meet_iframe tenant="https://phone.acme.example" room="sales-demo"]