public static function url($url, $show_domain = false) { $url = self::normalizeUrl($url); if ($show_domain) { if (strpos($url, 'http://' . DOMAIN . '/') === false) { $url = 'http://' . DOMAIN . $url; } } return $url; }