Merge branch 'release/1.6.0'
This commit is contained in:
commit
4bba46244b
13 changed files with 102 additions and 45 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,3 +1,13 @@
|
||||||
|
# v1.6.0
|
||||||
|
## 12/09/2016
|
||||||
|
|
||||||
|
1. [](#new)
|
||||||
|
* Add an option to have a sticky menu. Also added blueprint configuration to turn in on from the admin. Disabled by default. Uses https://github.com/bigspotteddog/ScrollToFixed
|
||||||
|
1. [](#improved)
|
||||||
|
* Invert order of previous and next button in the blog posts navigation
|
||||||
|
1. [](#bugfix)
|
||||||
|
* Fix forms not working as expected. Drop the form twig overrides as they break the forms, and don't really customise the output
|
||||||
|
|
||||||
# v1.5.0
|
# v1.5.0
|
||||||
## 07/14/2016
|
## 07/14/2016
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: Deliver
|
name: Deliver
|
||||||
version: 1.5.0
|
version: 1.6.0
|
||||||
description: "Deliver theme is a port of the Michael Reimer's Deliver Free PSD theme."
|
description: "Deliver theme is a port of the Michael Reimer's Deliver Free PSD theme."
|
||||||
icon: newspaper-o
|
icon: newspaper-o
|
||||||
author:
|
author:
|
||||||
|
@ -11,3 +11,28 @@ demo: http://demo.getgrav.org/deliver-skeleton/
|
||||||
keywords: deliver, theme, modern, fast, responsive, html5, css3
|
keywords: deliver, theme, modern, fast, responsive, html5, css3
|
||||||
bugs: https://github.com/getgrav/grav-theme-deliver/issues
|
bugs: https://github.com/getgrav/grav-theme-deliver/issues
|
||||||
license: MIT
|
license: MIT
|
||||||
|
|
||||||
|
form:
|
||||||
|
validation: loose
|
||||||
|
fields:
|
||||||
|
dropdown.enabled:
|
||||||
|
type: toggle
|
||||||
|
label: Dropdown in navbar
|
||||||
|
highlight: 1
|
||||||
|
default: 0
|
||||||
|
options:
|
||||||
|
1: PLUGIN_ADMIN.ENABLED
|
||||||
|
0: PLUGIN_ADMIN.DISABLED
|
||||||
|
validate:
|
||||||
|
type: bool
|
||||||
|
|
||||||
|
sticky_menu.enabled:
|
||||||
|
type: toggle
|
||||||
|
label: Sticky menu
|
||||||
|
highlight: 1
|
||||||
|
default: 0
|
||||||
|
options:
|
||||||
|
1: PLUGIN_ADMIN.ENABLED
|
||||||
|
0: PLUGIN_ADMIN.DISABLED
|
||||||
|
validate:
|
||||||
|
type: bool
|
||||||
|
|
|
@ -95,7 +95,7 @@ b, strong, label, th {
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10;
|
z-index: 10000;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 12rem;
|
height: 12rem;
|
||||||
background-color: rgba(255, 255, 255, 0.9);
|
background-color: rgba(255, 255, 255, 0.9);
|
||||||
|
@ -104,6 +104,16 @@ b, strong, label, th {
|
||||||
height: 50%; }
|
height: 50%; }
|
||||||
#header .fa {
|
#header .fa {
|
||||||
color: #000; }
|
color: #000; }
|
||||||
|
#header .fixed {
|
||||||
|
background: #fff;
|
||||||
|
padding-left: 14rem;
|
||||||
|
padding-right: 14rem;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
opacity: 0.9;
|
||||||
|
box-shadow: 0 0px 20px 0px rgba(0, 0, 0, 0.2); }
|
||||||
@media only all and (max-width: 47.938em) {
|
@media only all and (max-width: 47.938em) {
|
||||||
#header .logo h3 {
|
#header .logo h3 {
|
||||||
font-size: 1.9rem; } }
|
font-size: 1.9rem; } }
|
||||||
|
@ -216,6 +226,9 @@ b, strong, label, th {
|
||||||
#header #navbar .panel-activation {
|
#header #navbar .panel-activation {
|
||||||
display: inline-block; } }
|
display: inline-block; } }
|
||||||
|
|
||||||
|
.modular.header-image #header .fixed {
|
||||||
|
background: #666; }
|
||||||
|
|
||||||
.header-image.fullwidth #body {
|
.header-image.fullwidth #body {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0; }
|
padding-right: 0; }
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,5 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
dropdown:
|
dropdown:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
sticky_menu:
|
||||||
|
enabled: false
|
||||||
|
|
15
js/fixed-header.js
Normal file
15
js/fixed-header.js
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
$(document).ready(function() {
|
||||||
|
var navbar = $('#navbar');
|
||||||
|
var navbarOffset = navbar.offset().top;
|
||||||
|
|
||||||
|
$(window).scroll(function(){
|
||||||
|
var scroll = $(window).scrollTop();
|
||||||
|
|
||||||
|
if (scroll >= navbarOffset) {
|
||||||
|
navbar.height(navbar.height());
|
||||||
|
navbar.addClass('fixed');
|
||||||
|
} else {
|
||||||
|
navbar.removeClass('fixed');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
1
js/jquery-scrolltofixed-min.js
vendored
Normal file
1
js/jquery-scrolltofixed-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,7 @@
|
||||||
#header {
|
#header {
|
||||||
@extend .padding-horiz;
|
@extend .padding-horiz;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10;
|
z-index: 10000;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: $header-height;
|
height: $header-height;
|
||||||
background-color: rgba(255,255,255,0.90);
|
background-color: rgba(255,255,255,0.90);
|
||||||
|
@ -16,6 +16,18 @@
|
||||||
color: $black;
|
color: $black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixed {
|
||||||
|
background: #fff;
|
||||||
|
padding-left: 14rem;
|
||||||
|
padding-right: 14rem;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
opacity: 0.9;
|
||||||
|
box-shadow: 0 0px 20px 0px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
h3 {
|
h3 {
|
||||||
@extend %vertical-align;
|
@extend %vertical-align;
|
||||||
|
@ -189,6 +201,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modular.header-image #header .fixed {
|
||||||
|
background: #666;
|
||||||
|
}
|
||||||
|
|
||||||
.header-image {
|
.header-image {
|
||||||
&.fullwidth {
|
&.fullwidth {
|
||||||
#body {
|
#body {
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{% for field in form.fields %}
|
|
||||||
<div><strong>{{ field.label }}</strong>: {{ form.value(field.name)|e }}</div>
|
|
||||||
{% endfor %}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{% for field in form.fields %}
|
|
||||||
{{ field.label }}: {{ form.value(field.name)|e }}
|
|
||||||
{% endfor %}
|
|
|
@ -1,21 +0,0 @@
|
||||||
<div class="alert">{{ form.message }}</div>
|
|
||||||
|
|
||||||
<form name="{{ form.name }}"
|
|
||||||
action="{{ uri.rootUrl ~ (form.action|default(page.route)) }}"
|
|
||||||
method="{{ form.method|upper|default('POST') }}">
|
|
||||||
{% for field in form.fields %}
|
|
||||||
{% set value = form.value(field.name) %}
|
|
||||||
<div>
|
|
||||||
{% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
<div class="buttons">
|
|
||||||
{% for button in form.buttons %}
|
|
||||||
<button class="button" type="{{ button.type|default('submit') }}">{{ button.value|default('Submit') }}</button>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ nonce_field('form', 'form-nonce') }}
|
|
||||||
|
|
||||||
</form>
|
|
|
@ -33,6 +33,10 @@
|
||||||
{% do assets.addJs('theme://js/deliver.js') %}
|
{% do assets.addJs('theme://js/deliver.js') %}
|
||||||
{% do assets.addJs('theme://js/slidebars.min.js') %}
|
{% do assets.addJs('theme://js/slidebars.min.js') %}
|
||||||
{% do assets.addJs('theme://js/jquery.slideme2.js') %}
|
{% do assets.addJs('theme://js/jquery.slideme2.js') %}
|
||||||
|
{% if theme_config.sticky_menu.enabled %}
|
||||||
|
{% do assets.addJs('theme://js/jquery-scrolltofixed-min.js') %}
|
||||||
|
{% do assets.addJs('theme://js/fixed-header.js') %}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{{ assets.js() }}
|
{{ assets.js() }}
|
||||||
|
|
||||||
|
|
|
@ -22,14 +22,12 @@
|
||||||
<i class="fa fa-calendar"></i>
|
<i class="fa fa-calendar"></i>
|
||||||
{{ page.date|date("d") }}, {{ page.date|date("M") }}
|
{{ page.date|date("d") }}, {{ page.date|date("M") }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{% if page.header.author %}
|
{% if page.header.author %}
|
||||||
<span class="list-blog-author">
|
<span class="list-blog-author">
|
||||||
<i class="fa fa-user"></i>
|
<i class="fa fa-user"></i>
|
||||||
{{ page.header.author }}
|
{{ page.header.author }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.taxonomy.tag %}
|
{% if page.taxonomy.tag %}
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
<i class="fa fa-tag"></i>
|
<i class="fa fa-tag"></i>
|
||||||
|
@ -62,12 +60,12 @@
|
||||||
{% if show_prev_next %}
|
{% if show_prev_next %}
|
||||||
|
|
||||||
<p class="prev-next">
|
<p class="prev-next">
|
||||||
{% if not page.isFirst %}
|
{% if not page.isLast %}
|
||||||
<a class="button" href="{{ page.nextSibling.url }}"><i class="fa fa-chevron-left"></i> Next Post</a>
|
<a class="button" href="{{ page.prevSibling.url }}"><i class="fa fa-chevron-left"></i> Previous Post</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not page.isLast %}
|
{% if not page.isFirst %}
|
||||||
<a class="button" href="{{ page.prevSibling.url }}">Previous Post <i class="fa fa-chevron-right"></i></a>
|
<a class="button" href="{{ page.nextSibling.url }}">Next Post <i class="fa fa-chevron-right"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue