theme option
$b24_raw = get_option('branch_button_script', '');
if (empty($b24_raw)) {
$b24_raw = carbon_get_theme_option('site_bitrix_script');
}
if (! empty($b24_raw)) {
$_b24_form = '';
$_b24_url = '';
if (preg_match('/data-b24-form="([^"]+)"/', $b24_raw, $_m)) {
$_b24_form = $_m[1];
}
if (preg_match("/\\(window,document,'([^']+)'\\)/", $b24_raw, $_m)) {
$_b24_url = $_m[1];
}
}
?>