Commit 3dd26965 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

added template for presentation of external requests

parent e22dd314
<?php
/**
* Template Name: Extern
*
* @package WordPress
* @subpackage Fachschaft Informatik
* @since Fachschaft Informatik 2.0.0
*/
get_header("extern");
if (is_user_logged_in()) {
?>
<main>
<section class="row">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
echo "
<fsi-tile class=\"page\">
<article class=\"page\" lang='de'>";
the_content();
echo "
</article>
<div style='clear: both;'></div>
</fsi-tile>
";
}
}
?>
</section>
</main>
<?php
}
else {
?>
<main>
<section class="row">
<fsi-tile>
<article class="page">
<fsi-title class="page">Du bist nicht eingeloggt.</fsi-title>
<fsi-subtitle class="page">FEHLER</fsi-subtitle>
<p>
Um diese Seite betrachten zu dürfen, musst du dich auf der Homepage mit deiner <b>RZ/HT-Kennung</b>
einloggen.
</p>
<p>
<i style="color: #888;">
(Du wirst unter Umständen nicht auf diese Seite zurück geleitet und musst sie manuell neu aufrufen.)
</i>
</p>
<p style="text-align: center; margin-top: 50px;">
<a href="https://fsi.hochschule-trier.de/wp-login.php?action=shibboleth" class="btn btn-lg btn-primary">einloggen</a>
</p>
</article>
</fsi-tile>
</section>
</main>
<?php
}
get_footer("extern");
\ No newline at end of file
<footer class="row">
<section class="overlay">
<nav class="col-md-3">
<?php
\FSI\FooterMenus::getMenu("footer1");
?>
</nav>
<nav class="col-md-3">
<?php
\FSI\FooterMenus::getMenu("footer2");
?>
</nav>
<nav class="col-md-3">
<?php
\FSI\FooterMenus::getMenu("footer3");
?>
</nav>
<nav class="col-md-3">
<?php
\FSI\FooterMenus::getMenu("footer4");
?>
<section class="social">
<?php
$socials = explode("\n", get_option("fsi-social", ""));
foreach ($socials as $social) {
$values = explode("::", $social);
echo "<a href='".$values[1]."'><span class='dashicons ".$values[0]."'></span></a>";
}
?>
</section>
</nav>
<p class="col-md-12">&copy; <?php echo date("Y"); ?>, Fachschaft Informatik – <a href="https://hochschule-trier.de">Hochschule Trier</a></p>
<div style="clear: both;"></div>
</section>
</footer>
</section>
<?php wp_footer(); ?>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head lang="de">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<link rel="icon" href="favicon_temp.png" sizes="192x192" />
<?php wp_head(); ?>
<style>
header {
padding: 8px;
}
main, body {
background: #aaa !important;
}
.fsilogo {
right: 12px;
display: block;
width: 40%;
float: right;
text-align: right;
}
.fsilogo img{
max-width: 60px;
}
.externlogo {
}
.externlogo fsi-title, .externlogo fsi-subtitle {
display: inline-block;
}
.externlogo img {
max-width: 100px;
}
</style>
</head>
<body>
<section class="wrapper">
<header class="row">
<span class="externlogo">
<?php
echo get_the_post_thumbnail($post->ID)."
<fsi-title>".get_the_title()."</fsi-title>
<fsi-subtitle> Version vom ".get_the_date()."</fsi-subtitle>
"; ?>
</span>
<span class="fsilogo">
powered by
<img src="<?php echo get_template_directory_uri() ?>/images/logo_fachschaft_Informatik.svg" alt="Fachschaft Informatik - Hochschule Trier" />
</span>
<div style="clear: both;"></div>
</header>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment