Fix html for the rest of the main pages
This commit is contained in:
parent
c4c5389fe8
commit
0b0707eafe
|
@ -91,10 +91,10 @@ if($new == 0){
|
|||
<p class="subtitle">Sluttid (YYYY-MM-DD HH:MM:SS)</p>
|
||||
<?= '<input name="end" type="text" class="boxinput" value="' . $event->getStop()->format('Y-m-d H:00:00') . '"><br>' ?>
|
||||
|
||||
<p class="subtitle">Organisert av</p>
|
||||
<p class="subtitle">Arrangør</p>
|
||||
<?= '<input type="text" name="organiser" value="' . $event->getOrganiser(). '" class="boxinput">' ?><br>
|
||||
|
||||
<p class="subtitle">Hvor?</p>
|
||||
<p class="subtitle">Sted</p>
|
||||
<?= '<input type="text" name="location" value="' . $event->getLocation(). '" class="boxinput">' ?><br>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@ $day = (isset($_GET['day']))
|
|||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="no">
|
||||
|
||||
<head>
|
||||
<title>Aktivitetsverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
|
@ -34,11 +36,15 @@ $day = (isset($_GET['day']))
|
|||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
</head>
|
||||
|
||||
<header>Aktivitets­verk­stedet</header>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1, 'aktiviteter'); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<?php
|
||||
$events = ($day==-1)
|
||||
? $agenda->getNextOfEach(new \DateTimeImmutable)
|
||||
|
@ -49,7 +55,7 @@ $events = ($day==-1)
|
|||
$limit = 0;
|
||||
foreach($events as $event) {
|
||||
?>
|
||||
<article>
|
||||
<div>
|
||||
<h2>
|
||||
<?php if ($event->getImageURL()) { ?>
|
||||
<img src="<?= $event->getImageURL() ?>">
|
||||
|
@ -64,22 +70,18 @@ foreach($events as $event) {
|
|||
<?php } ?>
|
||||
</h2>
|
||||
<ul class="subtext">
|
||||
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong>
|
||||
<li>Sted: <strong><?= $event->getLocation() ?></strong>
|
||||
<li>Arrangør: <strong><?= $event->getOrganiser() ?></strong>
|
||||
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong></li>
|
||||
<li>Sted: <strong><?= $event->getLocation() ?></strong></li>
|
||||
<li>Arrangør: <strong><?= $event->getOrganiser() ?></strong></li>
|
||||
</ul>
|
||||
|
||||
<?php $description = $event->getDescription(); ?>
|
||||
<?php if ($limit) array_splice($description, $limit); ?>
|
||||
<?= implode($description, "</p>\n<p>") ?>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<?php if (!$limit || $limit > 4) {$limit = 4;} else $limit = 2; ?>
|
||||
<?php } ?>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'aktiviteter'); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
</body>
|
||||
|
|
|
@ -30,6 +30,8 @@ $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year));
|
|||
|
||||
?><!DOCTYPE html>
|
||||
<html lang="no">
|
||||
|
||||
<head>
|
||||
<title>Kalenderverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
|
@ -38,12 +40,15 @@ $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year));
|
|||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
<link rel="stylesheet" href="../css/calendar.css">
|
||||
</head>
|
||||
|
||||
<header>Kalender­verk­stedet</header>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1, 'kalender'); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<article>
|
||||
<h2 style="text-align:center;">Aktiviteter for <?=$months_translations[$month-1]?> <?=$year?></h2>
|
||||
|
||||
<p><?php
|
||||
|
@ -97,11 +102,5 @@ $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year));
|
|||
</ul>
|
||||
</figure>
|
||||
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'kalender'); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
</body>
|
||||
|
|
|
@ -7,6 +7,8 @@ require __DIR__ . '/../../src/_autoload.php';
|
|||
require __DIR__ . '/../../sql_config.php';
|
||||
?>
|
||||
<html lang="no">
|
||||
|
||||
<head>
|
||||
<title>Kommunikasjonsverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
|
@ -14,13 +16,16 @@ require __DIR__ . '/../../sql_config.php';
|
|||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/events.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1, 'kontakt'); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<header>Kommunikasjons­verk­stedet</header>
|
||||
|
||||
<main>
|
||||
|
||||
<article>
|
||||
|
||||
<h2>Kommunikasjon</h2>
|
||||
<p>
|
||||
Det er ulike måter å kommunisere med PVV-medlemmer på.
|
||||
|
@ -34,11 +39,5 @@ Vi har også en Discord-kanal. Denne kanalen er satt opp slik at man i Discord-k
|
|||
<p>
|
||||
Det er også mulig å ta i bruk analog kontakt ved å møte opp <a href="https://use.mazemap.com/?v=1&left=10.4032&right=10.4044&top=63.4178&bottom=63.4172&campusid=1&zlevel=2&sharepoitype=point&sharepoi=10.40355%2C63.41755%2C2&utm_medium=longurl">på stripa</a>.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'kontakt'); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
</body>
|
|
@ -37,18 +37,22 @@ if (isset($_SESSION['userdata'])) { // if logged in with feide
|
|||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<title>PVV registrering</title>
|
||||
|
||||
<head>
|
||||
<title>PVV registrering</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="../css/normalize.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
</head>
|
||||
|
||||
<header>Registrerings­verks­stedet</header>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<article>
|
||||
<h2>Registrer deg som bruker</h2>
|
||||
|
||||
<p>
|
||||
|
@ -60,7 +64,7 @@ if (isset($_SESSION['userdata'])) { // if logged in with feide
|
|||
lokalene våre slik at vi kan få satt et passord.
|
||||
</p>
|
||||
|
||||
<h3>Meldingen som du kan sendes:</h3>
|
||||
<h3>Meldingen du kan sende:</h3>
|
||||
|
||||
|
||||
<?php if($attrs) { //logged in with pvv account?>
|
||||
|
@ -81,11 +85,5 @@ if (isset($_SESSION['userdata'])) { // if logged in with feide
|
|||
<a class="btn" href=".?login">æ kanj itj lææv uten dæ piær!</a>
|
||||
<?php }?>
|
||||
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
</body>
|
||||
|
|
|
@ -11,8 +11,10 @@ $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|||
$projectManager = new \pvv\side\ProjectManager($pdo);
|
||||
$projects = $projectManager->getAll();
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="no">
|
||||
<head>
|
||||
<title>Prosjektverkstedet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
|
@ -20,12 +22,15 @@ $projects = $projectManager->getAll();
|
|||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/nav.css">
|
||||
<link rel="stylesheet" href="../css/splash.css">
|
||||
</head>
|
||||
|
||||
<header>Prosjekt­verk­stedet</header>
|
||||
<body>
|
||||
<nav>
|
||||
<?php echo navbar(1, 'prosjekt'); ?>
|
||||
<?php echo loginbar(); ?>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
|
||||
<article class="threed">
|
||||
<h2>Prosjekter</h2>
|
||||
<?php
|
||||
if(count($projects) == 0){
|
||||
|
@ -64,11 +69,5 @@ $projects = $projectManager->getAll();
|
|||
<?php
|
||||
}
|
||||
?>
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
<nav>
|
||||
<?= navbar(1, 'prosjekt'); ?>
|
||||
<?= loginbar(); ?>
|
||||
</nav>
|
||||
</body>
|
||||
|
|
Reference in New Issue