daux.io/templates/home.php

86 lignes
2.8 KiB
PHP
Brut Vue normale Historique

2015-04-23 10:24:50 +02:00
<?php $this->layout('theme::layout/00_layout') ?>
2016-05-23 20:09:15 +02:00
<div class="Navbar hidden-print">
2015-04-23 10:24:50 +02:00
<div class="container">
2015-04-27 23:18:00 +02:00
<?php $this->insert('theme::partials/navbar_content', ['params' => $params]); ?>
2015-04-23 10:24:50 +02:00
</div>
</div>
2016-05-23 20:09:15 +02:00
2016-07-27 21:32:51 +02:00
<?php if ($params['html']['repo']) {
?>
2016-05-23 20:09:15 +02:00
<a href="https://github.com/<?= $params['html']['repo']; ?>" target="_blank" id="github-ribbon" class="Github hidden-print"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
2016-07-27 21:32:51 +02:00
<?php
2016-07-29 22:44:35 +02:00
2016-07-27 21:32:51 +02:00
} ?>
2015-04-23 10:24:50 +02:00
2016-05-23 20:09:15 +02:00
<div class="Homepage">
<div class="HomepageTitle container">
<?php if ($params['tagline']) {
2016-07-27 21:32:51 +02:00
echo '<h2>' . $params['tagline'] . '</h2>';
} ?>
2015-04-23 10:24:50 +02:00
</div>
2016-05-23 20:09:15 +02:00
<div class="HomepageImage container">
<?php if ($params['image']) {
2016-07-27 21:32:51 +02:00
echo '<img class="homepage-image img-responsive" src="' . $params['image'] . '" alt="' . $params['title'] . '">';
} ?>
2016-05-23 20:09:15 +02:00
</div>
<div class="HomepageButtons">
<div class="container">
<?php
if ($params['html']['repo']) {
echo '<a href="https://github.com/' . $params['html']['repo'] . '" class="Button Button--secondary Button--hero">View On GitHub</a>';
}
foreach ($page['entry_page'] as $key => $node) {
echo '<a href="' . $node . '" class="Button Button--primary Button--hero">' . $key . '</a>';
}
?>
<div class="clearfix"></div>
</div>
2015-04-23 10:24:50 +02:00
</div>
</div>
2016-05-23 20:09:15 +02:00
<div class="HomepageContent">
2015-04-23 10:24:50 +02:00
<div class="container">
2016-05-23 20:09:15 +02:00
<div class="container--inner">
<div class="doc_content s-content">
<?= $page['content']; ?>
2015-04-23 10:24:50 +02:00
</div>
</div>
</div>
</div>
2016-05-23 20:09:15 +02:00
<div class="HomepageFooter">
2015-04-23 10:24:50 +02:00
<div class="container">
2016-05-23 20:09:15 +02:00
<div class="container--inner">
2016-07-27 21:32:51 +02:00
<?php if (!empty($params['html']['links'])) {
?>
2016-05-23 20:09:15 +02:00
<ul class="HomepageFooter__links">
<?php foreach ($params['html']['links'] as $name => $url) {
2016-07-27 21:32:51 +02:00
echo '<li><a href="' . $url . '" target="_blank">' . $name . '</a></li>';
} ?>
2016-05-23 20:09:15 +02:00
</ul>
2016-07-27 21:32:51 +02:00
<?php
2016-07-29 22:44:35 +02:00
2016-07-27 21:32:51 +02:00
} ?>
2016-05-23 20:09:15 +02:00
2016-07-27 21:32:51 +02:00
<?php if (!empty($params['html']['twitter'])) {
?>
2016-05-23 20:09:15 +02:00
<div class="HomepageFooter__twitter">
2016-07-27 21:32:51 +02:00
<?php foreach ($params['html']['twitter'] as $handle) {
?>
2016-05-23 20:09:15 +02:00
<div class="Twitter">
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?= $handle; ?>&amp;show_count=false"></iframe>
</div>
2016-07-27 21:32:51 +02:00
<?php
2016-07-29 22:44:35 +02:00
2016-07-27 21:32:51 +02:00
} ?>
2015-04-23 10:24:50 +02:00
</div>
2016-07-27 21:32:51 +02:00
<?php
2016-07-29 22:44:35 +02:00
2016-07-27 21:32:51 +02:00
} ?>
2015-04-23 10:24:50 +02:00
</div>
</div>
2016-05-23 20:09:15 +02:00
<div class="clearfix"></div>
2015-04-23 10:24:50 +02:00
</div>