2015-04-23 10:24:50 +02:00
|
|
|
<?php $this->layout('theme::layout/00_layout') ?>
|
2017-02-23 23:15:07 +01:00
|
|
|
|
|
|
|
<?php $this->start('classes') ?>homepage<?php $this->stop() ?>
|
|
|
|
|
2018-02-25 23:02:09 +01:00
|
|
|
<div class="Navbar NoPrint">
|
|
|
|
<div class="Container">
|
2019-12-05 21:25:58 +01:00
|
|
|
<?php $this->insert('theme::partials/navbar_content'); ?>
|
2015-04-23 10:24:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-23 20:09:15 +02:00
|
|
|
|
|
|
|
<div class="Homepage">
|
2018-02-25 23:02:09 +01:00
|
|
|
<div class="HomepageTitle Container">
|
2019-12-05 21:25:58 +01:00
|
|
|
<?= ($config->hasTagline()) ? '<h2>' . $config->getTagline() . '</h2>' : '' ?>
|
2015-04-23 10:24:50 +02:00
|
|
|
</div>
|
|
|
|
|
2018-02-25 23:02:09 +01:00
|
|
|
<div class="HomepageImage Container">
|
2019-12-05 21:25:58 +01:00
|
|
|
<?= ($config->hasImage()) ? '<img class="homepage-image img-responsive" src="' . $config->getImage() . '" alt="' . $config->getTitle() . '">' : '' ?>
|
2016-05-23 20:09:15 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="HomepageButtons">
|
2018-02-25 23:02:09 +01:00
|
|
|
<div class="Container">
|
2016-05-23 20:09:15 +02:00
|
|
|
<?php
|
2019-12-05 21:25:58 +01:00
|
|
|
if ($config->getHTML()->hasRepository()) {
|
|
|
|
echo '<a href="https://github.com/' . $config->getHTML()->getRepository() . '" class="Button Button--secondary Button--hero">' . $this->translate("View_on_github") . '</a>';
|
2016-05-23 20:09:15 +02:00
|
|
|
}
|
2017-10-19 22:18:46 +02:00
|
|
|
$view_doc = $this->translate("View_documentation");
|
2016-05-23 20:09:15 +02:00
|
|
|
foreach ($page['entry_page'] as $key => $node) {
|
2017-10-19 22:18:46 +02:00
|
|
|
echo '<a href="' . $node . '" class="Button Button--primary Button--hero">' . str_replace("__VIEW_DOCUMENTATION__", $view_doc, $key) . '</a>';
|
2016-05-23 20:09:15 +02:00
|
|
|
}
|
2019-12-05 21:25:58 +01:00
|
|
|
if ($config->getHTML()->hasButtons()) {
|
|
|
|
foreach ($config->getHTML()->getButtons() as $name => $link) {
|
2017-05-17 09:48:15 +02:00
|
|
|
echo '<a href="' . $link . '" class="Button Button--secondary Button--hero">' . $name . '</a>';
|
|
|
|
}
|
2017-03-29 22:46:29 +02:00
|
|
|
}
|
2016-05-23 20:09:15 +02:00
|
|
|
?>
|
|
|
|
</div>
|
2015-04-23 10:24:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-05-23 20:09:15 +02:00
|
|
|
<div class="HomepageContent">
|
2018-02-25 23:02:09 +01:00
|
|
|
<div class="Container">
|
|
|
|
<div class="Container--inner">
|
2016-05-23 20:09:15 +02:00
|
|
|
<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">
|
2018-02-25 23:02:09 +01:00
|
|
|
<div class="Container">
|
|
|
|
<div class="Container--inner">
|
2019-12-05 21:25:58 +01:00
|
|
|
<?php if ($config->getHTML()->hasLinks()) { ?>
|
2016-05-23 20:09:15 +02:00
|
|
|
<ul class="HomepageFooter__links">
|
2019-12-05 21:25:58 +01:00
|
|
|
<?php foreach ($config->getHTML()->getLinks() 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>
|
2017-10-19 22:18:46 +02:00
|
|
|
<?php } ?>
|
2016-05-23 20:09:15 +02:00
|
|
|
|
2019-12-05 21:25:58 +01:00
|
|
|
<?php if ($config->getHTML()->hasTwitterHandles()) { ?>
|
2016-05-23 20:09:15 +02:00
|
|
|
<div class="HomepageFooter__twitter">
|
|
|
|
<div class="Twitter">
|
2019-12-05 21:25:58 +01:00
|
|
|
<?php $this->insert('theme::partials/twitter_buttons'); ?>
|
2016-05-23 20:09:15 +02:00
|
|
|
</div>
|
2015-04-23 10:24:50 +02:00
|
|
|
</div>
|
2017-10-19 22:18:46 +02:00
|
|
|
<?php } ?>
|
2015-04-23 10:24:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|