Skip to content
Code-Schnipsel Gruppen Projekte
Commit 178f74c3 erstellt von Dominik Chrzanowski's avatar Dominik Chrzanowski
Dateien durchsuchen

refactor: code refactor [CustomerReviewsSlider] #134

Übergeordneter b3281c08
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -37,6 +37,7 @@ public function getBody()
$entries = json_decode($this->getAttribute('entries'), true);
$template = $this->getAttribute('template');
$path = \dirname(__FILE__) . '/CustomerReviewsSlider.' . $template . '.html';
$enabledEntries = [];
$this->setJavaScriptControlOption('delay', $this->getAttribute('delay'));
$this->setJavaScriptControlOption('autoplay', $this->getAttribute('autoplay'));
......@@ -48,9 +49,17 @@ public function getBody()
break;
}
foreach ($entries as $entry) {
if ($entry['isDisabled'] === 1) {
continue;
}
array_push($enabledEntries, $entry);
}
$options = [
'this' => $this,
'entries' => $entries,
'entries' => $enabledEntries,
'arrows' => $this->getAttribute('showArrows')
];
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren