1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-12-23 05:22:53 +00:00
website/themes/openlp2v2/templates/base.tmpl

127 lines
6.0 KiB
Cheetah
Raw Normal View History

2015-07-11 21:57:10 +00:00
## -*- coding: utf-8 -*-
<%namespace name="base" file="base_helper.tmpl" import="*" />
<%namespace name="notes" file="annotation_helper.tmpl" import="*" />
${set_locale(lang)}
${base.html_headstart()}
<%block name="extra_head">
### Leave this block alone.
</%block>
${template_hooks['extra_head']()}
</head>
<body class="no-trans txlive">
<!-- ${permalink} -->
% if permalink is not UNDEFINED and permalink == '/':
2015-07-11 21:57:10 +00:00
<%include file="front_page.html"/>
% else:
<div class="scrollToTop"><a href="#" title="Scroll to top"><i class="fa fa-fw fa-arrow-up fa-lg"></i></a></div>
2015-07-11 21:57:10 +00:00
<header class="header fixed clearfix navbar navbar-fixed-top">
<div class="container">
<div class="row">
2015-07-11 22:32:47 +00:00
<div class="col-md-3">
2015-07-11 21:57:10 +00:00
<div class="header-left clearfix">
<div class="logo smooth-scroll">
<a href="/"><img id="logo" src="/assets/images/logo.png" alt="OpenLP"></a>
2015-07-11 21:57:10 +00:00
</div>
<div class="site-name-and-slogan smooth-scroll">
<div class="site-name"><a href="/">OpenLP</a></div>
2015-07-11 21:57:10 +00:00
<div class="site-slogan">Empower Your Church</div>
</div>
</div>
</div>
2015-07-11 22:32:47 +00:00
<div class="col-md-9">
2015-07-11 21:57:10 +00:00
<div class="header-right clearfix">
<div class="main-navigation animated">
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse scrollspy smooth-scroll" id="navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
% if permalink.startswith(u'/blog'):
2015-07-11 21:57:10 +00:00
<li class="active"><a href="/blog/">Blog</a></li>
% else:
<li><a href="/blog/">Blog</a></li>
% endif
<li><a href="/#about">About</a></li>
<li><a href="/#features">Features</a></li>
<li><a href="/#downloads">Downloads</a></li>
<li><a href="/#testimonials">Testimonials</a></li>
<li><a href="/#help">Help</a></li>
<li><a href="https://manual.openlp.org/">Manual</a></li>
<li><a href="https://forums.openlp.org/">Forums</a></li>
2015-07-11 21:57:10 +00:00
</ul>
</div>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</header>
% if post is not UNDEFINED and post:
<div class="post-heading" style="background-image: url(${post.meta('previewimage')})">
2015-07-11 21:57:10 +00:00
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<h1>${post.meta('title')}</h1>
2015-07-11 21:57:10 +00:00
</div>
</div>
</div>
</div>
% elif permalink is not UNDEFINED and permalink.startswith(u'/blog/'):
<div class="blog-heading">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<h1>Reflections and Projections</h1>
</div>
</div>
</div>
</div>
2015-07-11 21:57:10 +00:00
% endif
<div class="container" id="content">
<div class="body-content">
<div class="row">
${template_hooks['page_header']()}
<%block name="content"></%block>
</div>
</div>
</div>
<footer id="footer">
<div class="space"></div>
<div class="subfooter">
<div class="container">
<div class="row">
<div class="col-md-12">
<p class="text-center">
2019-02-15 12:09:37 +00:00
Copyright &copy; 2004-<span class="notranslate">2019</span> OpenLP Developers |
Theme based on <a href="http://htmlcoder.me/worthy-free-bootstrap-template">Worthy</a> by HTML Coder |
<i class="fa fa-fw fa-money notranslate"></i> <a href="/donate">Donate to OpenLP</a>
</p>
</div>
</div>
</div>
</div>
</footer>
2015-07-11 21:57:10 +00:00
% endif
${base.late_load_js()}
<script>jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
<%block name="extra_js"></%block>
% if annotations and post and not post.meta('noannotations'):
${notes.code()}
% elif not annotations and post and post.meta('annotations'):
${notes.code()}
% endif
${body_end}
${template_hooks['body_end']()}
</body>
</html>