* rel="nofollow" und target="_blank" für verschiedene externe Links
* Mindestpreis im Slider oben im Reiseprogramm nicht anzeigen, wenn keine Termine vorhanden sind * Tripodo-Export git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3315 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
42c55d44a1
commit
b8ec81329a
17 changed files with 380 additions and 18 deletions
|
|
@ -40,6 +40,19 @@ class Util
|
|||
return 'http' . (($_SERVER['SERVER_PORT'] == 443) ? 's://' : '://') .$_SERVER['HTTP_HOST'];
|
||||
}
|
||||
|
||||
public static function convertUrisInHtmlToAbsolute($html, $baseUrl = null)
|
||||
{
|
||||
if ($baseUrl === null)
|
||||
{
|
||||
$baseUrl = self::getBaseUrl();
|
||||
}
|
||||
$phpUri = \phpUri::parse($baseUrl);
|
||||
|
||||
return preg_replace_callback('/(href|src)="((\\\\.|[^"\\\\])*)"/', function($matches) use ($phpUri) {
|
||||
return $matches[1] .'="'. $phpUri->join($matches[2]) .'"';
|
||||
}, $html);
|
||||
}
|
||||
|
||||
public static function formatPrice($value)
|
||||
{
|
||||
return number_format($value, 2, ',', '.') .' €';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue