mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Remove empty class and style attributes when compiling template v2
This commit is contained in:
parent
cd3af499e8
commit
50dd010e2d
4 changed files with 14 additions and 1 deletions
|
|
@ -865,7 +865,14 @@ class Template
|
|||
}
|
||||
}
|
||||
|
||||
return sprintf(' %s="%s"', $attribute, escape(implode($delimiters[$attribute], $values), false));
|
||||
if (count($values))
|
||||
{
|
||||
return sprintf(' %s="%s"', $attribute, escape(implode($delimiters[$attribute], $values), false));
|
||||
}
|
||||
else
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue