Commit e73e8cdc authored by Paul Hibbitts's avatar Paul Hibbitts

Theme updates.

parent 637a2c03
# v1.9.83
## 01/01/2018
1. [](#new)
* Added option not to display RSS Feed Header Images when in 'chromeless' display mode
# v1.9.82
## 12/31/2017
......
name: Course Hub Bootstrap
version: 1.9.82
version: 1.9.83
description: "A customized version of the Bootstrap theme (built with Bootstrap 3) for use with the Grav Course Hub skeleton package."
icon: university
author:
......
......@@ -70,6 +70,15 @@ form:
1: Enabled
0: Disabled
header.hide_rss_feed_header_images_when_chromeless:
type: toggle
label: "Display Header Images when 'Chromeless'"
highlight: 0
default: 0
options:
0: Yes
1: No
header.rss_feed_preview_paragraphs:
type: select
size: small
......
......@@ -70,6 +70,15 @@ form:
1: Enabled
0: Disabled
header.hide_rss_feed_header_images_when_chromeless:
type: toggle
label: "Display Header Images when 'Chromeless'"
highlight: 0
default: 0
options:
0: Yes
1: No
header.rss_feed_preview_paragraphs:
type: select
size: small
......
......@@ -35,7 +35,13 @@
</h5>
<time>{{ item.date.date|date("m/d/Y") }}</time>
{% if page.header.rss_feed_header_images %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% else %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% endif %}
{% set paragraphs = item.content | split('</p>') %}
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
......@@ -56,7 +62,13 @@
</h4>
<time>{{ item.date.date|date("m/d/Y") }}</time>, {{ item.retrievedTitle }}
{% if page.header.rss_feed_header_images %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% else %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% endif %}
{% set paragraphs = item.content | split('</p>') %}
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
......
......@@ -40,7 +40,13 @@
</h5>
<time>{{ item.date.date|date("m/d/Y") }}</time>
{% if page.header.rss_feed_header_images %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% else %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% endif %}
{% set paragraphs = item.content | split('</p>') %}
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
......@@ -61,7 +67,13 @@
</h4>
<time>{{ item.date.date|date("m/d/Y") }}</time>, {{ item.retrievedTitle }}
{% if page.header.rss_feed_header_images %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% else %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% endif %}
{% set paragraphs = item.content | split('</p>') %}
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
......
title: Course Hub Options
'@extends':
type: default
context: blueprints://pages
form:
fields:
tabs:
type: tabs
active: 1
fields:
options:
type: tab
fields:
gitsync:
type: section
title: Git Repository
underline: true
header.hide_git_sync_repo_link:
type: toggle
label: Display Git Repository Edit Page Link
help: Determines if the Git Repository edit Page link is displayed for this page
default: 0
highlight: 0
options:
0: Yes
1: No
validate:
type: bool
header.git_sync_repo_link:
type: text
size: large
label: Custom Git Repository Page URL
help: Custom Git Repository URL for this page, to override the automatically calculated URL
default: null
validate:
type: URL
rssfeed:
type: tab
title: RSS Feeds Display
fields:
rssfeeditems:
type: section
title: Display Options
underline: true
header.rss_feed_display_order:
type: select
size: small
label: RSS Feed Order
default: date
options:
source: By Source
date: By Date
header.rss_feed_header_images:
type: toggle
label: RSS Feed Header Images
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
header.hide_rss_feed_header_images_when_chromeless:
type: toggle
label: "Display Preview Images when 'Chromeless'"
highlight: 0
default: 0
options:
0: Yes
1: No
header.rss_feed_preview_paragraphs:
type: select
size: small
label: RSS Feed Preview Paragraphs
default: one
options:
none: None
one: One
two: Two
additional_rss_feed_info:
type: display
size: large
label: ''
markdown: true
content: "Note: To add or change RSS Feeds use the **Twig Feeds** Plugin"
title: Course Hub Options
'@extends':
type: default
context: blueprints://pages
form:
fields:
tabs:
type: tabs
active: 1
fields:
options:
type: tab
fields:
gitsync:
type: section
title: Git Repository
underline: true
header.hide_git_sync_repo_link:
type: toggle
label: Display Git Repository Edit Page Link
help: Determines if the Git Repository edit Page link is displayed for this page
default: 0
highlight: 0
options:
0: Yes
1: No
validate:
type: bool
header.git_sync_repo_link:
type: text
size: large
label: Custom Git Repository Page URL
help: Custom Git Repository URL for this page, to override the automatically calculated URL
default: null
validate:
type: URL
rssfeed:
type: tab
title: RSS Feeds Display
fields:
rssfeeditems:
type: section
title: Display Options
underline: true
header.rss_feed_display_order:
type: select
size: small
label: RSS Feed Order
default: date
options:
source: By Source
date: By Date
header.rss_feed_header_images:
type: toggle
label: RSS Feed Header Images
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
header.hide_rss_feed_header_images_when_chromeless:
type: toggle
label: "Display Preview Images when 'Chromeless'"
highlight: 0
default: 0
options:
0: Yes
1: No
header.rss_feed_preview_paragraphs:
type: select
size: small
label: RSS Feed Preview Paragraphs
default: one
options:
none: None
one: One
two: Two
additional_rss_feed_info:
type: display
size: large
label: ''
markdown: true
content: "Note: To add or change RSS Feeds use the **Twig Feeds** Plugin"
{# new twig template file - hibbittsdesign.org #}
{% embed 'partials/base.html.twig' %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12 blog-main">
{% if not page.header.hide_page_title %}
<h3>{{page.title}}</h3>
{% else %}
<h3 aria-label={{page.title}}></h3>
{% endif %}
{% if config.plugins.twigfeeds.enabled %}
{% set index = 1 %}
{% set feed_items = [] %}
{% for name, feed in twig_feeds %}
{% for item in feed.items %}
{% set index = index + 1 %}
{% set item = item|merge({ 'retrievedTitle': feed.title }) %}
{% set item = item|merge({ 'sortDate': item.date.date }) %}
{% set feed_items = feed_items|merge({ (index): (item) }) %}
{% endfor %}
{% endfor %}
{{ page.content }}
{% if page.header.rss_feed_display_order == 'source' %}
{% for name, feed in twig_feeds %}
<h4><a class="newwindow external-link" href="{{ feed.source }}">{{ feed.title }}</a></h4>
{% for item in feed.items %}
<h5>
<a class="newwindow external-link" href="{{ item.url }}">{{ item.title }}</a>
</h5>
<time>{{ item.date.date|date("m/d/Y") }}</time>
{% if page.header.rss_feed_header_images %}
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% else %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% endif %}
{% set paragraphs = item.content | split('</p>') %}
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
{% set secondParagraph = paragraphs[1] ~ '</p>' %}
{% if not (page.header.rss_feed_preview_paragraphs == 'none') %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
{% endfor %}
{% endfor %}
{% else %}
{% for index, item in feed_items|sort_by_key('sortDate')|reverse %}
<h4>
<a class="newwindow external-link" href="{{ item.url }}">{{ item.title }}</a>
</h4>
<time>{{ item.date.date|date("m/d/Y") }}</time>, {{ item.retrievedTitle }}
{% if page.header.rss_feed_header_images %}
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% else %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% endif %}
{% set paragraphs = item.content | split('</p>') %}
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
{% set secondParagraph = paragraphs[1] ~ '</p>' %}
{% if not (page.header.rss_feed_preview_paragraphs == 'none') %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
{% endfor %}
{% endif %}
{% else %}
<p>Install and configure the <strong>Twig Feeds</strong> Plugin to display RSS Feeds on this page.</p>
{% endif %}
{# Git repository edit link - hibbittsdesign.org #}
{% if ( page.header.git_sync_repo_link_display is defined and page.header.git_sync_repo_link_display == 'page' ) or (( config.site.gitrepo.editlinklocation == 'page' and page.header.git_sync_repo_link_display is not defined ) and not (page.header.hide_git_sync_repo_link)) %}
<hr>
<br>
{% include 'partials/gitrepo_link_note.html.twig' %}
<br>
{% endif %}
</div>
{# removed sidebar rendering - hibbittsdesign.org #}
</div>
</div>
{% endblock %}
{% endembed %}
{# new twig template file - hibbittsdesign.org #}
{% embed 'partials/base.html.twig' %}
{% block content %}
<div class="container">
<div class="row">
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) %}
<div class="col-sm-8 blog-main">
{% else %}
<div class="col-sm-12 blog-main">
{% endif %}
{% if not page.header.hide_page_title %}
<h3>{{page.title}}</h3>
{% else %}
<h3 aria-label={{page.title}}></h3>
{% endif %}
{% if config.plugins.twigfeeds.enabled %}
{% set index = 1 %}
{% set feed_items = [] %}
{% for name, feed in twig_feeds %}
{% for item in feed.items %}
{% set index = index + 1 %}
{% set item = item|merge({ 'retrievedTitle': feed.title }) %}
{% set item = item|merge({ 'sortDate': item.date.date }) %}
{% set feed_items = feed_items|merge({ (index): (item) }) %}
{% endfor %}
{% endfor %}
{{ page.content }}
{% if page.header.rss_feed_display_order == 'source' %}
{% for name, feed in twig_feeds %}
<h4><a class="newwindow external-link" href="{{ feed.source }}">{{ feed.title }}</a></h4>
{% for item in feed.items %}
<h5>
<a class="newwindow external-link" href="{{ item.url }}">{{ item.title }}</a>
</h5>
<time>{{ item.date.date|date("m/d/Y") }}</time>
{% if page.header.rss_feed_header_images %}
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% else %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% endif %}
{% set paragraphs = item.content | split('</p>') %}
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
{% set secondParagraph = paragraphs[1] ~ '</p>' %}
{% if not (page.header.rss_feed_preview_paragraphs == 'none') %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
{% endfor %}
{% endfor %}
{% else %}
{% for index, item in feed_items|sort_by_key('sortDate')|reverse %}
<h4>
<a class="newwindow external-link" href="{{ item.url }}">{{ item.title }}</a>
</h4>
<time>{{ item.date.date|date("m/d/Y") }}</time>, {{ item.retrievedTitle }}
{% if page.header.rss_feed_header_images %}
{% if grav.uri.param('chromeless') or (config.site.chromeless.enabled) %}
{% if not header.hide_rss_feed_header_images_when_chromeless %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% else %}
<p>{{ item.content|preg_get('/(<img(?:(\s*(class)\s*=\s*\x22([^\x22]+)\x22*)+|[^>]+?)*>)/') }}</p>
{% endif %}
{% endif %}
{% set paragraphs = item.content | split('</p>') %}
{% set firstParagraph = paragraphs[0] ~ '</p>' %}
{% set secondParagraph = paragraphs[1] ~ '</p>' %}
{% if not (page.header.rss_feed_preview_paragraphs == 'none') %}
<p>{{ firstParagraph | striptags }}</p>
{% if page.header.rss_feed_preview_paragraphs == 'two' %}
<p>{{ secondParagraph | striptags }}</p>
{% endif %}
<p><a class="newwindow external-link" href="{{ item.url }}">Continue reading...</a></p><br>
{% endif %}
{% endfor %}
{% endif %}
{% else %}
<p>Install and configure the <strong>Twig Feeds</strong> Plugin to display RSS Feeds on this page.</p>
{% endif %}
{# Git repository edit link - hibbittsdesign.org #}
{% if ( page.header.git_sync_repo_link_display is defined and page.header.git_sync_repo_link_display == 'page' ) or (( config.site.gitrepo.editlinklocation == 'page' and page.header.git_sync_repo_link_display is not defined ) and not (page.header.hide_git_sync_repo_link)) %}
<hr>
<br>
{% include 'partials/gitrepo_link_note.html.twig' %}
<br>
{% endif %}
</div>
{# check content display flag - hibbittsdesign.org #}
{% if not (grav.uri.param('chromeless')) %}
<div class="col-sm-4 blog-sidebar">
{% include 'partials/sidebar.html.twig' with {'blog':page} %}
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% endembed %}
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