public static function getCountry($vars) { $countries = self::getListofCountries(); $option = ""; foreach ($countries as $k => $v) { $selected = $k == $vars ? 'SELECTED' : ''; $option .= "<option value=\"{$k}\" title=\"" . Typography::cleanY($v) . "\" {$selected}>" . Typography::cleanY($v) . "</option>"; } return $option; }
public static function descTypo($vars) { $vars = strip_tags(Typography::Xclean(preg_replace('/\\[.*]\\[\\/.*]/', '', $vars))); $val = !empty($vars) ? substr(Typography::Xclean($vars) . ". " . self::$description, 0, 150) : substr(self::$description, 0, 150); return $val; }