mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-07-23 10:28:57 +00:00
Compare commits
No commits in common. "e7c97306b79f7d2592a3cc03fcee4ae3c4b2b7e0" and "f86f237b7aa189c5e9cff8dc08c491b24e48aa58" have entirely different histories.
e7c97306b7
...
f86f237b7a
16 changed files with 67 additions and 225 deletions
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -1,16 +1,3 @@
|
||||||
# v1.3.0
|
|
||||||
## 03/04/2024
|
|
||||||
|
|
||||||
1. [](#new)
|
|
||||||
* New Downloads template
|
|
||||||
2. [](#improved)
|
|
||||||
* Updated README
|
|
||||||
* Updated translations
|
|
||||||
* Updated styles
|
|
||||||
* Updated author info in theme blueprints
|
|
||||||
* Removed partial Privacy template for contact form
|
|
||||||
* Updated contact demo page
|
|
||||||
|
|
||||||
# v1.2.5
|
# v1.2.5
|
||||||
## 01/08/2024
|
## 01/08/2024
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,6 @@ google_fonts_local: # Option to load Google Fonts from the theme or fr
|
||||||
favicon: # Choosse your own favicon
|
favicon: # Choosse your own favicon
|
||||||
custom_logo: # A custom logo rather than the default (see below)
|
custom_logo: # A custom logo rather than the default (see below)
|
||||||
custom_logo_mobile: # A custom logo to use for mobile navigation
|
custom_logo_mobile: # A custom logo to use for mobile navigation
|
||||||
type_logo_header: # Choose how the logo is displayed in header. Options: Image, Text or Both
|
|
||||||
slogan: # Custom text for slogan
|
slogan: # Custom text for slogan
|
||||||
menu_langswitcher: # Enable/Disable langswitcher icon in menu (langswitcher plugin needed)
|
menu_langswitcher: # Enable/Disable langswitcher icon in menu (langswitcher plugin needed)
|
||||||
menu_search: # Enable/Disable search icon in menu (simplesearch plugin needed)
|
menu_search: # Enable/Disable search icon in menu (simplesearch plugin needed)
|
||||||
|
|
8
_demo/pages/05.contact/04._contact-us/contact.md
Normal file → Executable file
8
_demo/pages/05.contact/04._contact-us/contact.md
Normal file → Executable file
|
@ -52,10 +52,8 @@ form:
|
||||||
rows: 10
|
rows: 10
|
||||||
-
|
-
|
||||||
name: privacy
|
name: privacy
|
||||||
type: checkbox
|
type: privacy
|
||||||
markdown: true
|
label: 'Privacy policy'
|
||||||
label: 'Accept our <a href="privacy">Privacy policy</a>'
|
|
||||||
outerclasses: col-12
|
|
||||||
validate:
|
validate:
|
||||||
required: true
|
required: true
|
||||||
message: 'You must agree to the privacy policy'
|
message: 'You must agree to the privacy policy'
|
||||||
|
@ -63,7 +61,7 @@ form:
|
||||||
-
|
-
|
||||||
type: submit
|
type: submit
|
||||||
value: Enviar
|
value: Enviar
|
||||||
outerclasses: col-12
|
outerclasses: form-field
|
||||||
classes: 'button primary'
|
classes: 'button primary'
|
||||||
process:
|
process:
|
||||||
save:
|
save:
|
||||||
|
|
|
@ -2046,6 +2046,7 @@ ul.actions.fit.stacked {
|
||||||
-ms-flex-shrink: 1;
|
-ms-flex-shrink: 1;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
padding: 1em 0 0 0;
|
padding: 1em 0 0 0;
|
||||||
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
ul.actions:not(.fixed) li > * {
|
ul.actions:not(.fixed) li > * {
|
||||||
|
@ -2552,7 +2553,6 @@ header p {
|
||||||
table {
|
table {
|
||||||
margin: 0 0 2em 0;
|
margin: 0 0 2em 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
word-break: break-word;
|
|
||||||
}
|
}
|
||||||
table tbody tr {
|
table tbody tr {
|
||||||
border: solid 1px rgba(160, 160, 160, 0.3);
|
border: solid 1px rgba(160, 160, 160, 0.3);
|
||||||
|
@ -2599,32 +2599,6 @@ table.alt tfoot {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for responsive tables */
|
|
||||||
@media screen and (max-width: 736px) {
|
|
||||||
.responsive table {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.responsive thead {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.responsive tr:nth-of-type(2n) {
|
|
||||||
background-color: inherit;
|
|
||||||
}
|
|
||||||
.responsive tr td:first-child {
|
|
||||||
background: #f4f4f4;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
.responsive tbody td {
|
|
||||||
display: block;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.responsive tbody td:before {
|
|
||||||
content: attr(data-th);
|
|
||||||
display: block;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Portofolio */
|
/* Portofolio */
|
||||||
.portfolio_container {
|
.portfolio_container {
|
||||||
padding: 1em 0;
|
padding: 1em 0;
|
||||||
|
@ -2981,6 +2955,7 @@ ul.menulink > li > ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
font-family: "Raleway", Helvetica, sans-serif;
|
font-family: "Raleway", Helvetica, sans-serif;
|
||||||
padding: 0.1em 0 0 0;
|
padding: 0.1em 0 0 0;
|
||||||
|
margin: 0 0 0 1em;
|
||||||
line-height: 2.3em;
|
line-height: 2.3em;
|
||||||
-webkit-transition: color 0.2s ease;
|
-webkit-transition: color 0.2s ease;
|
||||||
transition: color 0.2s ease;
|
transition: color 0.2s ease;
|
||||||
|
@ -3588,32 +3563,4 @@ CSS Styles for Page Toc Plugin
|
||||||
position: -webkit-sticky;
|
position: -webkit-sticky;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 3.5em;
|
top: 3.5em;
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Future2021
|
|
||||||
Grav Theme by Pedro Moreno
|
|
||||||
|
|
||||||
CSS Styles for Langswitcher Plugin
|
|
||||||
*/
|
|
||||||
#menu li.langswitcher {
|
|
||||||
margin-left: 0em !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#header .main ul li.langswitcher {
|
|
||||||
margin-left: 0em !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#header .main ul li.langswitcher > a {
|
|
||||||
text-decoration: none;
|
|
||||||
border-bottom: 0;
|
|
||||||
color: #838383;
|
|
||||||
text-indent: 0em;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 736px) {
|
|
||||||
#header .main ul li.langswitcher {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
2
assets/css/main.min.css
vendored
2
assets/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -37,6 +37,22 @@
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Styles for Langswitcher plugin */
|
||||||
|
|
||||||
|
#header .main ul li.langswitcher {
|
||||||
|
margin-left: 0em !important;
|
||||||
|
}
|
||||||
|
#header .main ul li.langswitcher > a {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 0;
|
||||||
|
color: #838383;
|
||||||
|
text-indent: 0em;
|
||||||
|
text-align: center;}
|
||||||
|
|
||||||
|
@media screen and (max-width: 736px) {
|
||||||
|
#header .main ul li.langswitcher {
|
||||||
|
display: none; } }
|
||||||
|
|
||||||
/* Styles to show Font Awesome 5 Free in shortcode core notices */
|
/* Styles to show Font Awesome 5 Free in shortcode core notices */
|
||||||
|
|
||||||
.sc-notice > div:before {
|
.sc-notice > div:before {
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
@include vendor('flex-grow', '1');
|
@include vendor('flex-grow', '1');
|
||||||
@include vendor('flex-shrink', '1');
|
@include vendor('flex-shrink', '1');
|
||||||
padding: (_size(element-margin) * 0.5) 0 0 0;
|
padding: (_size(element-margin) * 0.5) 0 0 0;
|
||||||
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
|
|
|
@ -20,6 +20,7 @@ ul.menulink > li > ul
|
||||||
list-style: none;
|
list-style: none;
|
||||||
font-family: _font(family-heading);
|
font-family: _font(family-heading);
|
||||||
padding: 0.1em 0 0 0;
|
padding: 0.1em 0 0 0;
|
||||||
|
margin: 0 0 0 1em;
|
||||||
line-height: 2.3em;
|
line-height: 2.3em;
|
||||||
-webkit-transition: color 0.2s ease;
|
-webkit-transition: color 0.2s ease;
|
||||||
transition: color 0.2s ease;
|
transition: color 0.2s ease;
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
table {
|
table {
|
||||||
margin: 0 0 _size(element-margin) 0;
|
margin: 0 0 _size(element-margin) 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
word-break: break-word;
|
|
||||||
|
|
||||||
tbody {
|
tbody {
|
||||||
tr {
|
tr {
|
||||||
|
@ -79,34 +78,4 @@
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for responsive tables */
|
|
||||||
|
|
||||||
.responsive {
|
|
||||||
|
|
||||||
@include breakpoint('<=small') {
|
|
||||||
table {
|
|
||||||
width:100%;
|
|
||||||
}
|
|
||||||
thead {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
tr:nth-of-type(2n) {
|
|
||||||
background-color: inherit;
|
|
||||||
}
|
|
||||||
tr td:first-child {
|
|
||||||
background: _palette(bg-alt);
|
|
||||||
font-weight:_font(weight-bold);
|
|
||||||
}
|
|
||||||
tbody td {
|
|
||||||
display: block;
|
|
||||||
text-align:center;
|
|
||||||
}
|
|
||||||
tbody td:before {
|
|
||||||
content: attr(data-th);
|
|
||||||
display: block;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
Future2021
|
|
||||||
Grav Theme by Pedro Moreno
|
|
||||||
|
|
||||||
CSS Styles for Langswitcher Plugin
|
|
||||||
*/
|
|
||||||
|
|
||||||
#menu li.langswitcher {
|
|
||||||
margin-left: 0em !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#header .main ul li.langswitcher {
|
|
||||||
margin-left: 0em !important;
|
|
||||||
}
|
|
||||||
#header .main ul li.langswitcher > a {
|
|
||||||
text-decoration: none;
|
|
||||||
border-bottom: 0;
|
|
||||||
color: #838383;
|
|
||||||
text-indent: 0em;
|
|
||||||
text-align: center;}
|
|
||||||
|
|
||||||
@media screen and (max-width: 736px) {
|
|
||||||
#header .main ul li.langswitcher {
|
|
||||||
display: none; } }
|
|
|
@ -67,4 +67,3 @@
|
||||||
// Grav Plugins.
|
// Grav Plugins.
|
||||||
|
|
||||||
@import 'grav-plugins/page-toc.scss';
|
@import 'grav-plugins/page-toc.scss';
|
||||||
@import 'grav-plugins/langswitcher';
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: Future 2021
|
name: Future 2021
|
||||||
slug: future2021
|
slug: future2021
|
||||||
type: theme
|
type: theme
|
||||||
version: 1.3.0
|
version: 1.2.6
|
||||||
description: Grav Future Imperfect by HTML5 UP (Version 2021)
|
description: Grav Future Imperfect by HTML5 UP (Version 2021)
|
||||||
icon: microchip
|
icon: microchip
|
||||||
author:
|
author:
|
||||||
|
|
|
@ -246,12 +246,7 @@ en:
|
||||||
PAGINATION:
|
PAGINATION:
|
||||||
PREVIOUS: Previous
|
PREVIOUS: Previous
|
||||||
NEXT: Next
|
NEXT: Next
|
||||||
DOWNLOADS:
|
|
||||||
TH_NAME: Name
|
|
||||||
TH_SIZE: Size
|
|
||||||
TH_MODIFIED: Modified
|
|
||||||
TH_DOWNLOAD: Download
|
|
||||||
TD_BUTTON: Download
|
|
||||||
SIDEBAR:
|
SIDEBAR:
|
||||||
SIMPLE_SEARCH:
|
SIMPLE_SEARCH:
|
||||||
HEADLINE: Search
|
HEADLINE: Search
|
||||||
|
@ -526,12 +521,7 @@ de:
|
||||||
PAGINATION:
|
PAGINATION:
|
||||||
PREVIOUS: Vorherige
|
PREVIOUS: Vorherige
|
||||||
NEXT: Nächste
|
NEXT: Nächste
|
||||||
DOWNLOADS:
|
|
||||||
TH_NAME: Name
|
|
||||||
TH_SIZE: Größe
|
|
||||||
TH_MODIFIED: Geändert
|
|
||||||
TH_DOWNLOAD: Herunterladen
|
|
||||||
TD_BUTTON: Herunterladen
|
|
||||||
SIDEBAR:
|
SIDEBAR:
|
||||||
SIMPLE_SEARCH:
|
SIMPLE_SEARCH:
|
||||||
HEADLINE: Suche
|
HEADLINE: Suche
|
||||||
|
@ -809,12 +799,7 @@ es:
|
||||||
PAGINATION:
|
PAGINATION:
|
||||||
PREVIOUS: Anterior
|
PREVIOUS: Anterior
|
||||||
NEXT: Siguiente
|
NEXT: Siguiente
|
||||||
DOWNLOADS:
|
|
||||||
TH_NAME: Nombre
|
|
||||||
TH_SIZE: Tamaño
|
|
||||||
TH_MODIFIED: Modificado
|
|
||||||
TH_DOWNLOAD: Descarga
|
|
||||||
TD_BUTTON: Descargar
|
|
||||||
SIDEBAR:
|
SIDEBAR:
|
||||||
SIMPLE_SEARCH:
|
SIMPLE_SEARCH:
|
||||||
HEADLINE: Buscar
|
HEADLINE: Buscar
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<article class="post">
|
|
||||||
<header>
|
|
||||||
<div class="title">
|
|
||||||
<h1>{{ title }}</h1>
|
|
||||||
{% if subtitle %}
|
|
||||||
<p>{{ subtitle }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{% if show_image and image %}
|
|
||||||
<span class="image featured">
|
|
||||||
{{ image.cropZoom(img_width, img_height).loading('lazy').attribute('decoding','async').html(title, title)|raw }}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{{ page.content|raw }}
|
|
||||||
|
|
||||||
<table class="responsive">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th><h3>{{ 'FUTURE.DOWNLOADS.TH_NAME'|t }}</h3></th>
|
|
||||||
<th><h3>{{ 'FUTURE.DOWNLOADS.TH_SIZE'|t }}</h3></th>
|
|
||||||
<th><h3>{{ 'FUTURE.DOWNLOADS.TH_MODIFIED'|t }}</h3></th>
|
|
||||||
<th><h3>{{ 'FUTURE.DOWNLOADS.TH_DOWNLOAD'|t }}</h3></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
|
|
||||||
{% for file in page.media.all %}
|
|
||||||
<tr>
|
|
||||||
{% include 'partials/download_item.html.twig' with {file: file} %}
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</article>
|
|
||||||
|
|
||||||
{% if show_sidebar == false %}
|
|
||||||
<section id="footer" class="align-center">
|
|
||||||
{% include 'partials/sidebar-bits/footer.html.twig' %}
|
|
||||||
</section>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block sidebar %}
|
|
||||||
{% if show_sidebar == true %}
|
|
||||||
{% include 'partials/sidebar_left.html.twig' %}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
38
templates/forms/fields/privacy/privacy.html.twig
Normal file
38
templates/forms/fields/privacy/privacy.html.twig
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{% extends "forms/field.html.twig" %}
|
||||||
|
|
||||||
|
{% block label %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block input %}
|
||||||
|
{% set id = field.id|default(field.name) ~ '-' ~ key %}
|
||||||
|
|
||||||
|
<div class="{{ form_field_wrapper_classes ?: 'form-input-wrapper' }} {{ field.size }} {{ field.wrapper_classes }}">
|
||||||
|
<input
|
||||||
|
{# required attribute structures #}
|
||||||
|
name="{{ (scope ~ field.name)|fieldName }}"
|
||||||
|
value="{{ field.value ?? '1' }}"
|
||||||
|
type="checkbox"
|
||||||
|
{% if value == field.value ?? '1' %} checked="checked" {% endif %}
|
||||||
|
|
||||||
|
{# input attribute structures #}
|
||||||
|
{% block input_attributes %}
|
||||||
|
id="{{ id|e }}"
|
||||||
|
{% if field.classes is defined %}class="{{ field.classes }}" {% endif %}
|
||||||
|
{% if field.style is defined %}style="{{ field.style|e }}" {% endif %}
|
||||||
|
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}
|
||||||
|
{% if field.autofocus in ['on', 'true', 1] %}autofocus="autofocus"{% endif %}
|
||||||
|
{% if field.novalidate in ['on', 'true', 1] %}novalidate="novalidate"{% endif %}
|
||||||
|
{% if required %}required="required"{% endif %}
|
||||||
|
{% if field.tabindex %}tabindex="{{ field.tabindex }}"{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
/>
|
||||||
|
<label style="display:inline;" for="{{ id|e }}">
|
||||||
|
{% if field.markdown %}
|
||||||
|
{{ field.label|t|markdown(false) }}
|
||||||
|
{% else %}
|
||||||
|
{{field.label}}
|
||||||
|
{% endif %}
|
||||||
|
{{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
|
@ -1,19 +0,0 @@
|
||||||
{% set datestamp = include('partials/page-bits/date.html.twig') %}
|
|
||||||
{% set size = file.size/1024 %}
|
|
||||||
{% set unit = "Kb" %}
|
|
||||||
{% if size > 1023 %}
|
|
||||||
{% set size = size/1024 %}
|
|
||||||
{% set unit = "Mb" %}
|
|
||||||
{% endif %}
|
|
||||||
<td>
|
|
||||||
{{ file.filename|regex_replace(['/-/','/_/'], [' ',' ']) }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ size|number_format(2, '.', ',') }}{{ unit }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ datestamp }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{ file.url }}" class="button small" download>{{ 'FUTURE.DOWNLOADS.TD_BUTTON'|t }}</a>
|
|
||||||
</td>
|
|
Loading…
Add table
Reference in a new issue