Commit 430a9eba authored by Paul Hibbitts's avatar Paul Hibbitts

Theme updates.

parent 03a4ed6d
# v2.1.0
## 02/10/2018
1. [](#improved)
* Updated optional direct link to site theme files to support Git Sync setup
# v2.0.9
## 02/08/2018
1. [](#improved)
* Updated 'advanced' course example
1. [](#bugfix)
* Restored optional direct link to site theme files
# v2.0.8
## 02/08/2018
......
---
title: 'Week 1 - Course Overview'
swipe_deck_title: 'Course Overview'
swipe_deck_id: 9967fp
swipe_deck_pdf_url: #
published: true
visible: false
---
---
title: 'Week 1 - Introduction to UX Design'
swipe_deck_title: 'Introduction to UX Design'
swipe_deck_id: 9967fp
swipe_deck_pdf_url:
published: true
visible: false
---
name: Course Hub Bootstrap
version: 2.0.8
version: 2.1.0
description: "A customized version of the Bootstrap theme (built with Bootstrap 3) for use with the Grav Course Hub skeleton package."
icon: university
author:
......
......@@ -72,6 +72,9 @@
{% if ( page.header.git_sync_repo_link_display is defined and page.header.git_sync_repo_link_display == 'footer' ) or (( config.site.gitrepo.editlinklocation == 'footer' and page.header.git_sync_repo_link_display is not defined ) and not (page.header.hide_git_sync_repo_link)) %}
<p>{% include 'partials/gitrepo_link.html.twig' %}</p>
{% endif %}
{% if config.site.gitrepo.editthemelinklocation == 'footer' %}
<p>{% include 'partials/gitrepo_theme_link.html.twig' %}</p>
{% endif %}
<br>
{% set content = pages.find('/footer').content %}
{% if content %}
......
{# new twig template file - hibbittsdesign.org #}
{% if config.site.gitrepo.edittreeurl %}
{% set gitrepothemeeditlinkurl = config.site.gitrepo.edittreeurl ~ '/themes/mytheme/' %}
{% set git_repo_link_url = config.site.gitrepo.edittreeurl %}
{% if config.site.gitrepo.editlinkicon is empty %}
{% if 'github' in git_repo_link_url %}
{% set git_repo_link_icon = "github" %}
{% elseif 'gitlab' in git_repo_link_url %}
{% set git_repo_link_icon = "gitlab" %}
{% elseif 'bitbucket' in git_repo_link_url %}
{% set git_repo_link_icon = "bitbucket" %}
{% else %}
{% set git_repo_link_icon = "git" %}
{% endif %}
{% else %}
{% set git_repo_link_icon = config.site.gitrepo.editlinkicon %}
{% endif %}
<a class="newwindow external-link" href="{{ gitrepothemeeditlinkurl }}" title="{{ config.site.gitrepo.editthemelinktext }}">
<i class="fa fa-{{ git_repo_link_icon }}" aria-hidden="true"></i>
{{ config.site.gitrepo.editthemelinktext }}</a><br>
{% else %}
{% set git_sync_repo_link = config.plugins['git-sync'].repository %}
{% if config.plugins['git-sync'].enabled and config.plugins['git-sync'].repository is empty %}
{% set admin_panel_appearance_url = grav.base_url ~ '/admin/plugins/git-sync' %}
<a class="newwindow external-link" href="{{ admin_panel_appearance_url }}" title="Setup Git Sync">
<i class="fa fa-cog" aria-hidden="true"></i>
Setup Git Sync</a>
{% else %}
{% set git_sync_repo_link = config.plugins['git-sync'].repository %}
{% if 'github' in git_sync_repo_link %}
{% set git_repo_link_icon = "github" %}
{% set gitrepothemeeditlinkurl = (git_sync_repo_link|replace({'.git':'/'})) ~ 'blob/master/themes/mytheme/' %}
......@@ -22,4 +45,5 @@
<a class="newwindow external-link" href="{{ gitrepothemeeditlinkurl }}" title="{{ config.site.gitrepo.editthemelinktext }}">
<i class="fa fa-{{ git_repo_link_icon }}" aria-hidden="true"></i>
{{ config.site.gitrepo.editthemelinktext }}</a><br>
{% endif %}
{% endif %}
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
{% include 'partials/metadata.html.twig' %}
<title>
{% if header.title %}{{ header.title|e('html') }}
|
{% endif %}{{ site.title|e('html') }}</title>
<link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png', true) }}"/>
{% block stylesheets %}
{% if config.theme.bootstrapcss == 'canvaslms' %}
{% do assets.add('theme://css/bootstrapcanvaslms.css',96) %}
{% else %}
{% do assets.add('theme://css/bootstrap.css',96) %}
{% endif %}
{% do assets.add('theme://css/font-awesome.min.css',99) %}
{% do assets.add('theme://css-compiled/theme.css',97) %}
{% do assets.addCss('theme://css/chbcustom.css',99) %}
{% do assets.addCss('theme://css/custom.css',100) %}
{# added custom.css file pointer - hibbittsdesign.org #}
{% endblock %}
{{ assets.css() }}
{% block javascripts %}
{% do assets.add('jquery', 101) %}
{% do assets.add('theme://js/modernizr.custom.71422.js', 100) %}
{% do assets.add('theme://js/my.js', 99) %}
{# load custom JS - hibbittsdesign.org #}
{% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
{% do assets.add('https://oss.maxcdn.com/respond/1.4.2/respond.min.js') %}
{% do assets.add('theme://js/html5shiv-printshiv.min.js') %}
{% endif %}
{% endblock %}
{{ assets.js() }}
{% endblock head%}
</head>
<body id="top" class="{% block body_classes %}{{ page.header.body_classes }}{% endblock %}">
{% if config.plugins.langswitcher.enabled %}
{% include 'partials/langswitcher.html.twig' %}
{% endif %}
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) and (not config.site.chromeless.enabled) %}
{% block header_navigation %}
{% include 'partials/navigation.html.twig' %}
{% endblock %}
{% endif %}
{% block content %}{% endblock %}
{% block pagination %}{% endblock %}
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) and (not config.site.chromeless.enabled) %}
<div class="footer">
<div class="container">
{# added top of page navigation element - hibbittsdesign.org #}
<div class="up-arrow">
<a href="#" id="top" title="Top of Page">
<i class="fa fa-angle-up" aria-hidden="true"></i>
</a>
</div>
<div class="text-muted">
{% if config.site.gitrepo.editlinklocation == 'footer' and not (page.header.hide_git_sync_repo_link) %}
<p>{% include 'partials/gitrepo_link.html.twig' %}</p>
{% endif %}
{% if config.site.gitrepo.editthemelinklocation == 'footer' %}
<p>{% include 'partials/gitrepo_theme_link.html.twig' %}</p>
{% endif %}
<br>
{% set content = pages.find('/footer').content %}
{% if content %}
{{ content }}
{% endif %}
{% if config.site.cc_license.enabled %}
<p>{% include 'partials/creative_commons_license.html.twig' %}</p>
{% endif %}
</div>
</div>
</div>
{% else %}
<body style="margin-bottom: 60px;">
{% endif %}
{% block bottom %}{% endblock %}
{# added global scripts - hibbittsdesign.org #}
{% include 'partials/scripts.html.twig' %}
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment