* Feedbacks in der Sidebar
* Status 1 (gelb) bei Reiseprogrammen, falls der Starttermin innerhalb der nächsten 4 Wochen liegt * Sidebar-Boxen auf Reiseprogramm- und Buchungsseiten ausblenden; Suchfilter auf Buchungsseiten ausblenden * Vorauswahl der Destination bei Traveltainment-CMS-Seiten * Vorauswahl von Start- und Enddatum in den Suchmasken entfernen, da Zweck des Feldes (durch Platzhalter) nicht mehr erkennbar git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3317 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
30b80d660a
commit
76da75e891
13 changed files with 75 additions and 15 deletions
|
|
@ -112,6 +112,19 @@ class PageRepository extends NestedTreeRepository
|
|||
;
|
||||
}
|
||||
|
||||
public function findFeedbacks($rootPageId)
|
||||
{
|
||||
$qb = $this->createQueryBuilder('node');
|
||||
return $qb
|
||||
->where($qb->expr()->eq('node.parent', $rootPageId))
|
||||
->andWhere('node.showInNavi = 1')
|
||||
->andWhere('node.status = 1')
|
||||
->orderBy('node.date')
|
||||
->getQuery()
|
||||
->execute()
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Page $page
|
||||
*
|
||||
|
|
|
|||
|
|
@ -174,6 +174,15 @@ final class TravelDate
|
|||
return $this->travelPeriod->getStatus();
|
||||
}
|
||||
|
||||
public function getEffectiveStatus()
|
||||
{
|
||||
if ($this->getStatus() == 2 && $this->getStart()->getTimestamp() < time() + 2419200)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return $this->getStatus();
|
||||
}
|
||||
|
||||
public function getDepartures()
|
||||
{
|
||||
if ($this->departures === null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue