Vergleich admin/inc/functions_themes.php - 1.6.2 - 1.6.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 193Zeile 193
		
foreach($theme['stylesheets']['stylesheet'] as $stylesheet)
{

		
foreach($theme['stylesheets']['stylesheet'] as $stylesheet)
{

 
			if(substr($stylesheet['attributes']['name'], -4) != ".css")
{
continue;
}


			if(!$stylesheet['attributes']['lastmodified'])
{
$stylesheet['attributes']['lastmodified'] = TIME_NOW;

			if(!$stylesheet['attributes']['lastmodified'])
{
$stylesheet['attributes']['lastmodified'] = TIME_NOW;

Zeile 373Zeile 378

function fix_css_urls($url)
{


function fix_css_urls($url)
{

	if(!preg_match("#^(https?://|/)#i", $url) && strpos($url, "../../../") === false)

	if(!preg_match("#^([a-z0-9]+\:|/)#i", $url) && strpos($url, "../../../") === false)

	{
return "url(../../../{$url})";
}

	{
return "url(../../../{$url})";
}

Zeile 514Zeile 519
	$stripped_css = preg_replace('#(?<!\\")\}#', "\n}\n", $css);

// Fetch out classes and comments

	$stripped_css = preg_replace('#(?<!\\")\}#', "\n}\n", $css);

// Fetch out classes and comments

	preg_match_all('#(\/\*(.|[\r\n])*?\*\/)?([a-z0-9a+\\\[\]\-\"=_:>\*\.\#\,\s\(\)\|~\^]+)(\s*)\{(.*?)\}\n#msi', $stripped_css, $matches, PREG_PATTERN_ORDER);

	preg_match_all('#(\/\*(.|[\r\n])*?\*\/)?([a-z0-9a+\\\[\]\-\"=_:>\*\.\#\,\s\(\)\|~|@\^]+)(\s*)\{(.*?)\}\n#msi', $stripped_css, $matches, PREG_PATTERN_ORDER);

	$total = count($matches[1]);

for($i=0; $i < $total; $i++)

	$total = count($matches[1]);

for($i=0; $i < $total; $i++)