-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from alexplusde/v6-namespace
Namespace + Code-Verbesserungen
- Loading branch information
Showing
62 changed files
with
1,252 additions
and
918 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
namespace Alexplusde\Events; | ||
|
||
/** @var rex_fragment $this */ | ||
|
||
$manager = \Url\Url::resolveCurrent(); | ||
if($manager) { | ||
/** @var Date $date */ | ||
$date = $manager->getDataset(); | ||
?> | ||
<div class="banner_title"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-xl-8"> | ||
|
||
<p><?= $date->getFormattedStartDate() ?>, | ||
<?= $date->getFormattedStartTime() ?> Uhr | ||
</p> | ||
<h1><?= $date->getName() ?></h1> | ||
<p class="category-badges"> | ||
<?php | ||
$categories = $date->getCategories(); | ||
foreach($categories as $category) { | ||
/** @var Category $category */ | ||
?> | ||
<span | ||
class="badge bg-primary"><?= $category->getName() ?></span> | ||
<?php | ||
} | ||
?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<section class="module- events-date"> | ||
<div class="container"> | ||
<div class=" events-date row g-4"> | ||
|
||
<div class="col-md-6"> | ||
<h2 class="h3 text-primary">{{events.date.details}}</h2> | ||
<p class="fw-bolder events-teaser"> | ||
<?= $date->getTeaser() ?> | ||
</p> | ||
|
||
<?= $date->getDescription() ?> | ||
</div> | ||
<div class="col-md-6"> | ||
<?php | ||
$this->setVar('location', $date->getLocation()); | ||
echo $this->subfragment('bs5/events/location.php'); | ||
?> | ||
</div> | ||
</div> | ||
|
||
<?= $this->getSubfragment('bs5/events/list-back.php'); ?> | ||
|
||
</div> | ||
</section> | ||
<?php | ||
|
||
} | ||
?> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** @var rex_fragment $this */ | ||
$date = $this->getVar('date'); | ||
$category = $date->getCategory(); | ||
?> | ||
<div class=" event card mb-4"> | ||
<div class="card-body"> | ||
|
||
<p> | ||
<?php | ||
$categories = $date->getCategories(); | ||
foreach($categories as $category) { | ||
?> | ||
<span | ||
class="badge bg-primary"><?= $category->getName() ?></span> | ||
<?php | ||
} | ||
?> | ||
<?= $date->getFormattedStartDate() ?>, | ||
<?= $date->getFormattedStartTime() ?> Uhr | ||
</p> | ||
<h2 class="h4"><?= $date->getName() ?></h2> | ||
<p class=" events-teaser"> | ||
<?= $date->getTeaser() ?> | ||
</p> | ||
<a href="<?= $date->getRegisterUrl() ?>" | ||
class="btn btn-medium btn-primary">{{ events.date.more}}</a> | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Alexplusde\Events; | ||
|
||
use Url\Url; | ||
|
||
$event = null; | ||
$manager = Url::resolveCurrent(); | ||
if ($manager) { | ||
/** @var Date|Category $event */ | ||
$event = $manager->getDataset(); | ||
|
||
} | ||
?> | ||
<!-- BEGIN plus_bs5/fragments/events/index.php --> | ||
<?php | ||
if($event instanceof Category) { | ||
echo $this->subFragment('bs5/events/list-category.php'); | ||
} | ||
|
||
if($event instanceof Date) { | ||
echo $this->subFragment('bs5/events/date-details.php', ['event' => $event]); | ||
} | ||
|
||
if($event === null) { | ||
echo $this->subFragment('bs5/events/list.php'); | ||
} | ||
?> | ||
<!-- END plus_bs5/fragments/events/index.php --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Alexplusde\Events; | ||
|
||
/** @var rex_fragment $this */ | ||
|
||
use rex_config; | ||
?> | ||
<a class="btn btn-secondary" href="<?= rex_getUrl(rex_config::get('events', 'article_id')) ?>"> | ||
<i class="bi bi-arrow-left"></i> {{ events.list.back}} | ||
</a> |
Oops, something went wrong.