diff options
author | emkael <emkael@tlen.pl> | 2016-10-11 14:01:29 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-10-11 14:01:29 +0200 |
commit | 51609351f2c4b5082b7e6f0744cd3811c325303f (patch) | |
tree | 739015e9ec69bc185ebe30db21369ae0b8b692ce /template | |
parent | 8d1b0dad63e3906efa9393ef01d08b77d83417b5 (diff) |
* initial template
Diffstat (limited to 'template')
-rw-r--r-- | template/404.tpl | 9 | ||||
-rw-r--r-- | template/content/main.tpl | 0 | ||||
-rw-r--r-- | template/index.tpl | 32 | ||||
-rw-r--r-- | template/menu.tpl | 41 |
4 files changed, 82 insertions, 0 deletions
diff --git a/template/404.tpl b/template/404.tpl new file mode 100644 index 0000000..9aba434 --- /dev/null +++ b/template/404.tpl @@ -0,0 +1,9 @@ +<div class="container"> + <div class="page-header"> + <h1>Oops!</h1> + </div> + <p> + Page was not found.<br /> + You might get lucky at <a href="">the main page</a>. + </p> +</div> diff --git a/template/content/main.tpl b/template/content/main.tpl new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/template/content/main.tpl diff --git a/template/index.tpl b/template/index.tpl new file mode 100644 index 0000000..ab83971 --- /dev/null +++ b/template/index.tpl @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html lang="{$lang|default:'pl'}"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + + <title>{if $title}{$title} ♦ {/if}Młodzieżowy Festiwal Brydżowy ♦ Szczyrk 2016</title> + + <meta name="author" content="emkael" /> + <meta name="description" content="emkael.github.io" /> + <meta name="keywords" content="emkael, github, github pages, mkl" /> + + <base href="{$base|default:'/'}" /> + + {foreach from=$sheets item=sheet} + <link href="_css/{$sheet}" rel="stylesheet" /> + {/foreach} + + </head> + <body> + + {$menu} + + {$content} + + {foreach from=$scripts item=script} + <script src="_js/{$script}" type="text/javascript"></script> + {/foreach} + + </body> +</html> diff --git a/template/menu.tpl b/template/menu.tpl new file mode 100644 index 0000000..59d8194 --- /dev/null +++ b/template/menu.tpl @@ -0,0 +1,41 @@ +<nav class="navbar navbar-inverse navbar-fixed-top"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> + <span class="sr-only">Menu</span> + <span class="glyphicon glyphicon-menu-hamburger"></span> + </button> + <a class="navbar-brand" href=""> emkael.github.io </a> + </div> + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"> + {foreach from=$items key=label item=link} + {if is_array($link)} + <li class="dropdown{if $content|in_array:$link} active{/if}"> + {$items['_']} + <a href="{$link['_']|default:'#'|ltrim:'/'}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> + {$label} <span class="caret"></span> + </a> + <ul class="dropdown-menu"> + {foreach from=$link key=label item=sublink} + {if substr($label, 0, 10) == "_separator"} + <li role="separator" class="divider"></li> + {if $sublink} + <li class="dropdown-header">{$sublink}</li> + {/if} + {elseif $label != "_"} + <li><a href="{$sublink|ltrim:'/'}">{$label}</a></li> + {/if} + {/foreach} + </ul> + </li> + {else} + <li{if $content == $link} class="active"{/if}> + <a href="{$link|ltrim:'/'}">{$label}</a> + </li> + {/if} + {/foreach} + </ul> + </div> + </div> +</nav> |