Fixed empty loop wich execute contents problem

This commit is contained in:
franck
2013-08-02 13:58:59 +02:00
parent 0482b8c1bd
commit 3a99023c1d
2 changed files with 9 additions and 0 deletions

View File

@@ -120,8 +120,12 @@ class TheliaLoop extends AbstractSmartyPlugin
self::$pagination[$name] = null;
$loopResults = $loop->exec(self::$pagination[$name]);
$this->loopstack[$name] = $loopResults;
// Pas de résultat ? la boucle est terminée, ne pas évaluer le contenu.
if ($loopResults->isEmpty()) $repeat = false;
} else {
$loopResults = $this->loopstack[$name];

View File

@@ -22,6 +22,11 @@
.background-clip(padding-box);
}
.background-clip(@argument: padding-box) {
-moz-background-clip: @argument;
-webkit-background-clip: @argument;
background-clip: @argument;
}
.box-shadow(@shadow: 0 1px 2px rgba(0,0,0,.05)) {
-webkit-box-shadow: @shadow;