Duplicate scripts/stylesheets now included once
This commit is contained in:
parent
4a006168e5
commit
078b95fc8e
1 changed files with 2 additions and 2 deletions
|
@ -7,10 +7,10 @@
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<title><?php echo $this->context->title ?></title>
|
<title><?php echo $this->context->title ?></title>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php foreach ($this->context->stylesheets as $name): ?>
|
<?php foreach (array_unique($this->context->stylesheets) as $name): ?>
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo \Chibi\UrlHelper::absoluteUrl('/media/css/' . $name) ?>"/>
|
<link rel="stylesheet" type="text/css" href="<?php echo \Chibi\UrlHelper::absoluteUrl('/media/css/' . $name) ?>"/>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<?php foreach ($this->context->scripts as $name): ?>
|
<?php foreach (array_unique($this->context->scripts) as $name): ?>
|
||||||
<script type="text/javascript" src="<?php echo \Chibi\UrlHelper::absoluteUrl('/media/js/' . $name) ?>"></script>
|
<script type="text/javascript" src="<?php echo \Chibi\UrlHelper::absoluteUrl('/media/js/' . $name) ?>"></script>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue