2015-04-23 10:24:50 +02:00
< ? php $this -> layout ( 'theme::layout/00_layout' ) ?>
2015-07-21 22:40:13 +02:00
< div class = " navbar navbar-static-top 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 >
2015-07-19 16:36:34 +02:00
< ? php if ( $params [ 'html' ][ 'repo' ]) { ?>
2015-07-20 15:59:52 +02:00
< a href = " https://github.com/<?= $params['html'] ['repo']; ?> " target = " _blank " id = " github-ribbon " class = " hidden-print " >< img src = " https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png " alt = " Fork me on GitHub " ></ a >
2015-04-23 10:24:50 +02:00
< ? php } ?>
2015-07-21 22:40:13 +02:00
< div class = " homepage-hero container-fluid " >
2015-04-23 10:24:50 +02:00
< div class = " container " >
< div class = " row " >
< div class = " text-center col-sm-12 " >
2015-07-20 15:59:52 +02:00
< ? php if ( $params [ 'tagline' ]) {
echo '<h2>' . $params [ 'tagline' ] . '</h2>' ;
} ?>
2015-04-23 10:24:50 +02:00
</ div >
</ div >
< div class = " row " >
< div class = " col-sm-10 col-sm-offset-1 " >
2015-07-20 15:59:52 +02:00
< ? php if ( $params [ 'image' ]) {
echo '<img class="homepage-image img-responsive" src="' . $params [ 'image' ] . '" alt="' . $params [ 'title' ] . '">' ;
} ?>
2015-04-23 10:24:50 +02:00
</ div >
</ div >
</ div >
</ div >
< div class = " hero-buttons container-fluid " >
2015-07-21 22:40:13 +02:00
< div class = " container text-center " >
< ? php
if ( $params [ 'html' ][ 'repo' ]) {
echo '<a href="https://github.com/' . $params [ 'html' ][ 'repo' ] . '" class="btn btn-secondary btn-hero">View On GitHub</a>' ;
}
foreach ( $page [ 'entry_page' ] as $key => $node ) {
echo '<a href="' . $node . '" class="btn btn-primary btn-hero">' . $key . '</a>' ;
}
?>
< div class = " clearfix " ></ div >
2015-04-23 10:24:50 +02:00
</ div >
</ div >
< div class = " homepage-content container-fluid " >
< div class = " container " >
< div class = " row " >
< div class = " col-sm-10 col-sm-offset-1 " >
2016-02-15 21:14:48 +01:00
< div id = " tipue_search_content " style = " display:none " ></ div >
< div class = " doc_content " style = " display:none " >
< ? = $page [ 'content' ]; ?>
</ div >
2015-04-23 10:24:50 +02:00
</ div >
</ div >
</ div >
</ div >
2015-07-21 22:40:13 +02:00
< div class = " homepage-footer container-fluid " >
2015-04-23 10:24:50 +02:00
< div class = " container " >
< div class = " row " >
< div class = " col-sm-5 col-sm-offset-1 " >
2015-07-19 16:36:34 +02:00
< ? php if ( ! empty ( $params [ 'html' ][ 'links' ])) { ?>
2015-04-23 10:24:50 +02:00
< ul class = " footer-nav " >
2015-07-20 15:59:52 +02:00
< ? php foreach ( $params [ 'html' ][ 'links' ] as $name => $url ) {
echo '<li><a href="' . $url . '" target="_blank">' . $name . '</a></li>' ;
} ?>
2015-04-23 10:24:50 +02:00
</ ul >
< ? php } ?>
</ div >
< div class = " col-sm-5 " >
< div class = " pull-right " >
< ? php
2015-07-19 16:36:34 +02:00
if ( ! empty ( $params [ 'html' ][ 'twitter' ])) {
2015-07-20 15:59:52 +02:00
foreach ( $params [ 'html' ][ 'twitter' ] as $handle ) {
2015-04-23 10:24:50 +02:00
?>
< div class = " twitter " >
2015-07-20 15:59:52 +02:00
< iframe allowtransparency = " true " frameborder = " 0 " scrolling = " no " style = " width:162px; height:20px; " src = " https://platform.twitter.com/widgets/follow_button.html?screen_name=<?= $handle ; ?>&show_count=false " ></ iframe >
2015-04-23 10:24:50 +02:00
</ div >
< ? php
}
}
?>
</ div >
</ div >
</ div >
</ div >
</ div >