"; } else $img_url = ''; if (strlen($params['country_code'])) { if (!isset($params['country_name']) || !strlen($params['country_name'])) $params['country_name'] = ''; if (isset($params['simple']) && $params['simple']) { if (!strlen($img_url)) return '
'.htmlspecialchars($params['country_name'], ENT_QUOTES, 'cp1251').'
'; else return $img_url.' '.htmlspecialchars($params['country_name'], ENT_QUOTES, 'cp1251'); } else { if (strlen($params['country_name'])) $country_name = ' ('.htmlspecialchars($params['country_name'], ENT_QUOTES, 'cp1251').')'; else $country_name = ''; if (!strlen($img_url)) return '
'.''.htmlspecialchars($params['country_code'], ENT_QUOTES, 'cp1251').''.$country_name.'
'; else return $img_url.''.htmlspecialchars($params['country_code'], ENT_QUOTES, 'cp1251').''.$country_name; } } return ''; } ?>