Merge branch 'master' of github.com:Programvareverkstedet/nettsiden
This commit is contained in:
commit
3d2f07418d
|
@ -1,9 +1,6 @@
|
||||||
<?php //declare(strict_types=1);
|
<?php //declare(strict_types=1);
|
||||||
namespace pvv\side;
|
namespace pvv\side;
|
||||||
|
|
||||||
use \pvv\side\social\NerdepitsaActivity;
|
|
||||||
use \pvv\side\social\AnimekveldActivity;
|
|
||||||
|
|
||||||
use \DateTimeImmutable;
|
use \DateTimeImmutable;
|
||||||
use \DateInterval;
|
use \DateInterval;
|
||||||
|
|
||||||
|
@ -74,7 +71,9 @@ class Agenda {
|
||||||
function($a) use ($startDate){
|
function($a) use ($startDate){
|
||||||
return $a->getNextEventFrom($startDate);
|
return $a->getNextEventFrom($startDate);
|
||||||
}, $this->activities
|
}, $this->activities
|
||||||
), function($a){return $a;});
|
), function($a){
|
||||||
|
return isset($a);
|
||||||
|
});
|
||||||
usort($result, function($a, $b) {
|
usort($result, function($a, $b) {
|
||||||
return ($a->getStart()->getTimeStamp() < $b->getStart()->getTimeStamp())
|
return ($a->getStart()->getTimeStamp() < $b->getStart()->getTimeStamp())
|
||||||
? -1
|
? -1
|
||||||
|
|
|
@ -20,7 +20,7 @@ class BrettspillEvent extends Event {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getOrganiser() /* : User */ {
|
public function getOrganiser() /* : User */ {
|
||||||
return "PVV";
|
return "Robert Maikher";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getURL() /* : string */ {
|
public function getURL() /* : string */ {
|
||||||
|
|
|
@ -12,6 +12,7 @@ img.float-right {
|
||||||
.calendar-events ul .date {
|
.calendar-events ul .date {
|
||||||
color: rgba(0,0,0,.5);
|
color: rgba(0,0,0,.5);
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
margin-top: .2em;
|
||||||
}
|
}
|
||||||
.calendar-events > li > p {
|
.calendar-events > li > p {
|
||||||
border-bottom: .1em solid rgba(0,0,0,.2);
|
border-bottom: .1em solid rgba(0,0,0,.2);
|
||||||
|
@ -30,8 +31,8 @@ img.float-right {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
.calendar-events ul .time {
|
.calendar-events ul .time {
|
||||||
float: left;
|
color: rgba(0,0,0,.5);
|
||||||
width: 4em;
|
float: right;
|
||||||
}
|
}
|
||||||
.calendar-events ul .icon, .calendar-events ul .date {
|
.calendar-events ul .icon, .calendar-events ul .date {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
|
@ -54,13 +54,13 @@ include '../inc/ticker.php';
|
||||||
<li>
|
<li>
|
||||||
<a href="<?= htmlspecialchars($event->getURL()) ?>"><?= $event->getName(); ?></a>
|
<a href="<?= htmlspecialchars($event->getURL()) ?>"><?= $event->getName(); ?></a>
|
||||||
<?php /* <a class="icon subscribe">+</a> */ ?>
|
<?php /* <a class="icon subscribe">+</a> */ ?>
|
||||||
<?php if ($period) {
|
<?php if ($period !== \pvv\side\Agenda::TODAY) {
|
||||||
|
echo '<span class="time">' . $event->getStart()->format('H:i') . '</span>';
|
||||||
if (\pvv\side\Agenda::isThisWeek($event->getStart()) || $event->getStart()->sub(new DateInterval('P3D'))->getTimestamp() < time()) {
|
if (\pvv\side\Agenda::isThisWeek($event->getStart()) || $event->getStart()->sub(new DateInterval('P3D'))->getTimestamp() < time()) {
|
||||||
echo '<span class="time">' . strftime('%a', $event->getStart()->getTimestamp()) . '</span>';
|
echo '<span class="date">' . strftime('%a', $event->getStart()->getTimestamp()) . '</span>';
|
||||||
} else {
|
} else {
|
||||||
echo '<span class="time">' . strftime('%e. %b', $event->getStart()->getTimestamp()) . '</span>';
|
echo '<span class="date">' . strftime('%e. %b', $event->getStart()->getTimestamp()) . '</span>';
|
||||||
}
|
}
|
||||||
echo '<span class="date">' . $event->getStart()->format('H:i') . '</span>';
|
|
||||||
} else {
|
} else {
|
||||||
echo '<span class="time">' . $event->getStart()->format('H:i') . '</span>';
|
echo '<span class="time">' . $event->getStart()->format('H:i') . '</span>';
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,9 @@ include '../inc/ticker.php';
|
||||||
<p>
|
<p>
|
||||||
Alle med tilknytning til NTNU kan bli medlem hos oss
|
Alle med tilknytning til NTNU kan bli medlem hos oss
|
||||||
og benytte seg av våre ressurser.
|
og benytte seg av våre ressurser.
|
||||||
<!--For å bli med i våre prosjekter og komitéer må du søke.-->
|
<!--
|
||||||
|
For å bli med i våre prosjekter og komitéer må du søke.
|
||||||
|
-->
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a class="btn" href="paamelding/">Bli medlem</a>
|
<a class="btn" href="paamelding/">Bli medlem</a>
|
||||||
|
|
Before Width: | Height: | Size: 923 KiB After Width: | Height: | Size: 923 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Loading…
Reference in New Issue