Skip to content
Code-Schnipsel Gruppen Projekte
Commit 0de60933 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

slide box -> order

Übergeordneter 851eb110
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
...@@ -51,7 +51,7 @@ public function getBody() ...@@ -51,7 +51,7 @@ public function getBody()
$limit = $this->getAttribute('limit'); $limit = $this->getAttribute('limit');
if (!$limit) { if (!$limit) {
$limit = 2; $limit = 3;
} }
// order // order
......
...@@ -26,7 +26,27 @@ public function getBody() ...@@ -26,7 +26,27 @@ public function getBody()
$limit = $this->getAttribute('limit'); $limit = $this->getAttribute('limit');
if (!$limit) { if (!$limit) {
$limit = 2; $limit = 3;
}
// order
switch ($this->getAttribute('order')) {
case 'name ASC':
case 'name DESC':
case 'title ASC':
case 'title DESC':
case 'c_date ASC':
case 'c_date DESC':
case 'd_date ASC':
case 'd_date DESC':
case 'release_from ASC':
case 'release_from DESC':
$order = $this->getAttribute('order');
break;
default:
$order = 'release_from DESC';
break;
} }
$children = QUI\Projects\Site\Utils::getSitesByInputList( $children = QUI\Projects\Site\Utils::getSitesByInputList(
...@@ -34,10 +54,11 @@ public function getBody() ...@@ -34,10 +54,11 @@ public function getBody()
$this->getAttribute('site'), $this->getAttribute('site'),
array( array(
'limit' => $limit, 'limit' => $limit,
'order' => 'release_from DESC' 'order' => $order
) )
); );
$Engine->assign(array( $Engine->assign(array(
'this' => $this, 'this' => $this,
'children' => $children 'children' => $children
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren