Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Helper/HeadScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,18 +422,18 @@ public function itemToString($item, $indent, $escapeStart, $escapeEnd)
$html .= $indent . ' ' . $item->source;

if ($addScriptEscape) {
$html .= $indent . ' ' . $escapeEnd . PHP_EOL;
$html .= $indent . PHP_EOL . ' ' . $escapeEnd;
}

$html .= $indent;
$html .= PHP_EOL . $indent;
}
$html .= '</script>';

if (isset($item->attributes['conditional'])
&& !empty($item->attributes['conditional'])
&& is_string($item->attributes['conditional']))
{
$html = $indent . '<!--[if ' . $item->attributes['conditional'] . ']> ' . $html . '<![endif]-->';
$html = $indent . '<!--[if ' . $item->attributes['conditional'] . ']>' . $html . '<![endif]-->';
} else {
$html = $indent . $html;
}
Expand Down

0 comments on commit 4feb67b

Please sign in to comment.