-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all default templates with new layout/content
- Loading branch information
Showing
9 changed files
with
219 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
<footer id="footer"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<ul class="list-unstyled text-left footer-menu"> | ||
{% for item in footer_menu.get_items %} | ||
<li class="{{ item.classes | join(' ') }} pr-3 d-inline-block"> | ||
<a href="{{ item.link }}" class="text-white">{{ item.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
<!doctype html> | ||
<!--[if lt IE 7]><html class="ie ie6 lt-ie9 lt-ie8 lt-ie7" {{site.language_attributes}}> <![endif]--> | ||
<!--[if IE 7]><html class="ie ie7 lt-ie9 lt-ie8" {{site.language_attributes}}> <![endif]--> | ||
<!--[if IE 8]><html class="ie ie8 lt-ie9" {{site.language_attributes}}> <![endif]--> | ||
<!--[if gt IE 8]><!--><html {{site.language_attributes}}> <!--<![endif]--> | ||
<!--[if lt IE 7]><html class="ie ie6 lt-ie9 lt-ie8 lt-ie7" {{ site.language_attributes }}> <![endif]--> | ||
<!--[if IE 7]><html class="ie ie7 lt-ie9 lt-ie8" {{ site.language_attributes }}> <![endif]--> | ||
<!--[if IE 8]><html class="ie ie8 lt-ie9" {{ site.language_attributes }}> <![endif]--> | ||
<!--[if gt IE 8]><!--><html {{ site.language_attributes }}> <!--<![endif]--> | ||
{% set page_title %}{% if wp_title %}{{ wp_title }} - {{ site.name }}{% else %}{{ site.name }}{% endif %}{% endset %} | ||
<head> | ||
<meta charset="{{site.charset}}"> | ||
<meta charset="{{ site.charset }}"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<meta name="description" content="{{site.description}}"> | ||
<link rel="pingback" href="{{site.pingback_url}}" /> | ||
<link rel="icon" href="{{site.theme.link}}/favicon.png"> | ||
<meta name="description" content="{{ site.description }}"> | ||
|
||
{% if options.google_site_verification %} | ||
<meta name="google-site-verification" content="{{ options.google_site_verification }}"> | ||
{% endif %} | ||
|
||
<link rel="pingback" href="{{ site.pingback_url }}"> | ||
<link rel="canonical" href="{{ site.link }}"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.theme.link }}/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.theme.link }}/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="{{ site.theme.link }}/favicon-16x16.png"> | ||
<link rel="manifest" href="{{ site.theme.link }}/site.webmanifest"> | ||
|
||
<title>{{ page_title }}</title> | ||
|
||
<link rel="stylesheet" href="{{site.theme.link}}/style.css" type="text/css" media="screen" /> | ||
<link rel="stylesheet" href="{{ site.theme.link }}/style.css" type="text/css" media="screen" /> | ||
|
||
{{function('wp_head')}} | ||
{{ function('wp_head') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
{% extends "layouts/base.twig" %} | ||
|
||
{% block content %} | ||
Sorry, we couldn't find what you're looking for. | ||
<section class="404 py-5" style="min-height: 500px;"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12 col-lg-8 offset-lg-1"> | ||
<h3 class="h1">Oops! Nothing to see here.</h3> | ||
<p>The link you clicked may be broken or the page might have moved. Please double check your URL or use one of the links below.</p> | ||
<p><a href="{{ site.link }}" class="btn btn-lg btn-primary">Go Home</a><a href="{{ site.link }}/contact" class="btn btn-lg btn-info ml-3">Contact Us</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,47 @@ | ||
{% extends "layouts/base.twig" %} | ||
{% block content %} | ||
|
||
{% for post in posts %} | ||
{% include ["tease-"~post.post_type~".twig", "tease.twig"] %} | ||
{% endfor %} | ||
|
||
{% block content %} | ||
<section class="news pb-5"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<hr> | ||
<div class="mb-5"> | ||
<div class="row"> | ||
{% for news_post in posts %} | ||
<a class="news-item col-12 col-md-6" href="{{ news_post.link }}"> | ||
<h3>{{ news_post.title }}</h3> | ||
<h5>{{ news_post.date }}</h5> | ||
<p>{{ news_post.preview() }}</p> | ||
<div class="category {{ news_post.category.slug }}"> | ||
{{ news_post.category }} | ||
</div> | ||
</a> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<hr> | ||
<div class="tool-pagination"> | ||
{% if posts.pagination.prev %} | ||
<a href="{{posts.pagination.prev.link}}" class="prev {{posts.pagination.prev.link|length ? '' : 'invisible'}}">Prev</a> | ||
{% endif %} | ||
<ul class="pages"> | ||
{% for page in posts.pagination.pages %} | ||
<li> | ||
{% if page.link %} | ||
<a href="{{page.link}}" class="{{page.class}}">{{page.title}}</a> | ||
{% else %} | ||
<span class="{{page.class}}">{{page.title}}</span> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% if posts.pagination.next %} | ||
<a href="{{posts.pagination.next.link}}" class="next {{posts.pagination.next.link|length ? '' : 'invisible'}}">Next</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,61 @@ | ||
{% extends "layouts/base.twig" %} | ||
|
||
{% block content %} | ||
<h2>{{foo}}</h2> | ||
<p>{{qux}}</p> | ||
{% for post in posts %} | ||
{% include ['tease-'~post.post_type~'.twig', 'tease.twig'] %} | ||
{% endfor %} | ||
|
||
<section class="news pb-5"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12 col-lg-8 offset-lg-1"> | ||
<div class="mb-4 mt-5 text-left d-inline-block">News Archive</div> | ||
<hr> | ||
<div class="mb-5"> | ||
<div class="row"> | ||
{% for news_post in posts %} | ||
<div class="col-12" data-location="{{ news_post.link }}"> | ||
<h3>{{ news_post.title }}</h3> | ||
<h5>{{ news_post.date }}</h5> | ||
<p>{{ news_post.preview() }}</p> | ||
<div class="category {{ news_post.category.slug }}"> | ||
{{ news_post.category }} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<hr> | ||
{% if pagination is not empty %} | ||
<div class="tool-pagination"> | ||
{% if pagination.prev %} | ||
<a href="{{ pagination.prev.link }}" class="prev btn d-inline-block mr-3 {{ pagination.prev.link|length ? '' : 'invisible' }}">Prev</a> | ||
{% endif %} | ||
<ul class="pages list-unstyled d-inline-block"> | ||
{% for page in pagination.pages %} | ||
<li class="d-inline-block mx-1"> | ||
{% if page.link %} | ||
<a href="{{ page.link }}" class="{{ page.class }}">{{ page.title }}</a> | ||
{% else %} | ||
<span class="{{ page.class }}">{{ page.title }}</span> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% if pagination.next %} | ||
<a href="{{ pagination.next.link }}" class="next btn d-inline-block ml-3 {{ pagination.next.link|length ? '' : 'invisible' }}">Next</a> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div class="col-lg-3" style="margin-top: 150px;"> | ||
<h4>Archives</h4> | ||
<ul class="list-unstyled"> | ||
{% for item in archives.items %} | ||
<li><a href="{{item.link}}">{{item.name}}</a></li> | ||
{% for child in item.children %} | ||
<li class="child pl-3"><a href="{{child.link}}">{{child.name}}</a></li> | ||
{% endfor %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,46 @@ | ||
{% extends "layouts/base.twig" %} | ||
|
||
{% block content %} | ||
|
||
<div class="content-wrapper"> | ||
<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}"> | ||
<section class="article-content"> | ||
<h1 class="article-h1">{{post.title}}</h1> | ||
|
||
<p class="blog-author"> | ||
<span>By</span><a href="{{post.author.path}}"> {{ post.author.name }} </a><span>•</span> {{ post.post_date|date}} | ||
</p> | ||
|
||
<div class="article-body"> | ||
{{post.content}} | ||
<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}"> | ||
<section class="article-content py-5"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12 col-lg-8 offset-lg-1"> | ||
{% if post.thumbnail.src %} | ||
<img src="{{ post.thumbnail.src }}" alt="" class="mb-4 w-100"> | ||
{% endif %} | ||
<h1 class="article-h1">{{ post.title }}</h1> | ||
<h5 class="category {{ post.category.slug }}">{{ post.category }}</h5> | ||
<p class="blog-author"> | ||
<span>By</span><a href="{{post.author.path}}"> {{ post.author.name }} </a><span>•</span> {{ post.post_date | date }} | ||
</p> | ||
<div class="article-body"> | ||
{{ post.content }} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
{% if post.comment_status != 'closed' %} | ||
<section class="comments"> | ||
<div class="respond"> | ||
<h3 class="h2">Comments</h3> | ||
{{ comment_form }} | ||
</div> | ||
<div class="responses"> | ||
{% for cmt in post.get_comments() %} | ||
{% include "comment.twig" with {comment:cmt} %} | ||
{% endfor %} | ||
</div> | ||
|
||
<section class="comments pb-5"> | ||
<section class="article-content"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12 col-lg-10 offset-lg-1"> | ||
<hr> | ||
<div class="respond"> | ||
<h3 class="h2 text-lightblue">Comments</h3> | ||
{{ comment_form }} | ||
</div> | ||
<div class="responses"> | ||
{% for cmt in post.get_comments() %} | ||
{% include "comment.twig" with {comment:cmt} %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</section> | ||
{% endif %} | ||
</article> | ||
</div> <!-- /content-wrapper --> | ||
|
||
{% endif %} | ||
</article> | ||
{% endblock %} |