Initial commit

This commit is contained in:
pmoreno.rodriguez 2022-02-04 07:12:18 +01:00 committed by GitHub
commit e2a4c0fa5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
72 changed files with 2122 additions and 0 deletions

14
CHANGELOG.md Normal file
View file

@ -0,0 +1,14 @@
# v1.0.0
## 05/12/2021
1. [](#new)
* Drop down menu functionality
* Fixed autoescaping in all twig templates
* Added slidedown functionality for sidebar menu with JQuery
* Full translation English and Spanish for administration and frontend
* Added Back-to-Top button
* Added Offline template
* Added option to choose the number of miniposts will be showed in sidebar (in Theme options)
* Added the order option in the blog item to order the miniposts as you want
* Add shadown to header
* Added avatarImage and subtitle options in blueprints

103
LICENSE.md Normal file
View file

@ -0,0 +1,103 @@
## creative commons
# Attribution 3.0 Unported
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
*License*
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
### 1. Definitions
a. __"Adaptation"__ means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
b. __"Collection"__ means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
c. __"Distribute"__ means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
d. __"Licensor"__ means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
e. __"Original Author""__ means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
f. __"Work"__ means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
g. __"You"__ means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
h. __"Publicly Perform"__ means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
i. __"Reproduce"__ means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
### 2. Fair Dealing Rights
Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
### 3. License Grant
Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
d. to Distribute and Publicly Perform Adaptations.
e. For the avoidance of doubt:
1. __Non-waivable Compulsory License Schemes.__ In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
2. __Waivable Compulsory License Schemes.__ In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
3. __Voluntary License Schemes.__ The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
### 4. Restrictions
The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested.
b. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
c. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
### 5. Representations, Warranties and Disclaimer
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
### 6. Limitation on Liability
EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
### 7. Termination
a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
### 8. Miscellaneous
a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
e. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
```
Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of this License.
Creative Commons may be contacted at https://creativecommons.org/.
```

50
README.md Normal file
View file

@ -0,0 +1,50 @@
# Future Theme for Grav CMS
Future Imperfect theme by HTML5UP ported from scratch to Grav. Version 2021
![future_screenshot](https://user-images.githubusercontent.com/60596353/139574049-72553855-d447-4405-a364-c39f6eb8665c.png)
Future Imperfect by HTML5UP, features a clean, minimalistic design, styling for all basic page elements and HTML5/CSS3 code designed for quick and easy customization.
# Features
Redesigned from scratch (version 2021)
- HTML5 and CSS3
- Fully Responsive
- Microdata for blogs
- ARIA accessibility conformance
- Various templates for presenting your content
- Full dropdown menu integrated in menu bar and sidebar.
- Styling for all basic page elements
- Styling for various modules
- Cross browser compatible
- Dynamic avatar images based on author
- ~~Sharing buttons for Facebook and Twitter with share count.~~
- Randomised page content in sidebar
- Top content pages in sidebar
- Fully responsive with full-page mobile navigation
- SCSS based CSS source files for easy customization
- Blueprints for Footer, Slogan and Social icons.
- Full Portfolio template with Glightbox library
# Supported Page Templates
- Default view template
- Error view template
- Blog view template
- Blog item view template
- Single view template
- Portfolio view template
- Form view template
- Modular view templates:
- Features Modular view template
- Banner Modular view template
- Contact Modular view template
# Installation
Installing the Future 2021 theme can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the theme with a simple terminal command, while the manual method enables you to do so via a zip file.
# Future plans
- ~~Translations English - Spanish for administration and front-end~~

176
blueprints.yaml Normal file
View file

@ -0,0 +1,176 @@
name: Future 2021
slug: future2021
type: theme
version: 1.0.0
description: Grav Future Imperfect by HTML5 UP (Version 2021)
icon: microchip
author:
name: Pedro Moreno
email: webmaster@juanvillen.es
url:
homepage: https://github.com/pmoreno-rodriguez/future2021
demo: http://future.juanvillen.es
keywords: future imperfect, html5up, theme, core, modern, fast, responsive, html5, css3
bugs: https://github.com/pmoreno-rodriguez/future2021/issues
license: MIT
dependencies:
- { name: grav, version: '>=1.6.0' }
form:
validation: loose
fields:
dropdown.enabled:
type: toggle
label: FUTURE.ADMIN.THEME.DROPDOWN_MENU
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
production-mode:
type: toggle
label: FUTURE.ADMIN.THEME.PRODUCTION_MODE
help: FUTURE.ADMIN.THEME.PRODUCTION_MODE_HELP
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
favicon:
type: file
label: FUTURE.ADMIN.THEME.FAVICON
destination: 'theme@:/images'
multiple: false
avoid_overwriting: false
random_name: false
toggleable: true
filesize: 3
accept: ['image/png', '.ico']
custom_logo:
type: file
label: FUTURE.ADMIN.THEME.CUSTOM_LOGO
size: large
destination: 'theme://images/logo'
multiple: false
markdown: true
description: FUTURE.ADMIN.THEME.CUSTOM_LOGO_DESCRIPTION
accept:
- image/png
custom_logo_mobile:
type: file
label: FUTURE.ADMIN.THEME.CUSTOM_LOGO_MOBILE
size: large
destination: 'theme://images/logo'
multiple: false
accept:
- image/png
slogan:
type: text
label: FUTURE.ADMIN.THEME.SLOGAN
blog_section:
type: columns
fields:
blog_fields:
type: column
fields:
blog:
type: fieldset
collapsible: true
collapsed: true
icon: rss
title: FUTURE.ADMIN.THEME.BLOG_DEFAULTS
fields:
blog_page:
type: text
label: FUTURE.ADMIN.THEME.BLOG_PAGE
help: FUTURE.ADMIN.THEME.BLOG_PAGE_DESCRIPTION
size: medium
default: '/blog'
miniposts:
type: toggle
label: FUTURE.ADMIN.THEME.MINIPOSTS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
miniposts_number:
type: range
label: FUTURE.ADMIN.THEME.MINIPOSTS_NUMBER
description: FUTURE.ADMIN.THEME.MINIPOSTS_NUMBER_DESCRIPTION
default: 3
validate:
min: 1
max: 5
footer_section:
type: columns
fields:
footer_fields:
type: column
fields:
footer:
type: fieldset
collapsible: true
collapsed: true
icon: list-alt
title: FUTURE.ADMIN.THEME.FOOTER
fields:
footer.title:
type: text
label: FUTURE.ADMIN.THEME.FOOTER_TITLE
footer.description:
type: textarea
rows: 5
markdown: true
label: FUTURE.ADMIN.THEME.FOOTER_DESCRIPTION
footer.copyright_text:
type: text
label: FUTURE.ADMIN.THEME.FOOTER_COPYRIGHT
footer.button_text:
type: text
label: FUTURE.ADMIN.THEME.FOOTER_BUTTON_TEXT
footer.button_url:
type: text
label: FUTURE.ADMIN.THEME.FOOTER_BUTTON_URL
social_icons:
type: fieldset
collapsible: true
collapsed: true
icon: share-alt
title: FUTURE.ADMIN.THEME.FOOTER_SOCIALS_ICONS
fields:
social:
name: social
type: list
style: vertical
collapsed: false
max: 5
fields:
.name:
type: text
label: FUTURE.ADMIN.THEME.FOOTER_SOCIALS_ICON_NAME
.url:
type: text
label: FUTURE.ADMIN.THEME.FOOTER_SOCIALS_ICON_URL
.icon:
type: iconpicker
label: FUTURE.ADMIN.THEME.FOOTER_SOCIALS_ICON_ICON

View file

@ -0,0 +1,70 @@
media:
video:
mp4: video/mp4
mov: video/quicktime
m4v: video/x-m4v
swf: video/x-flv
image:
jpg: image/jpeg
jpeg: image/jpeg
png: image/png
gif: image/gif
file:
txt: text/plain
doc: application/msword
html: text/html
pdf: application/pdf
zip: application/zip
gz: application/gzip
form:
key: filename
fields:
upload:
type: upload
label: Upload
allow:
'@media.*.keys'
accept:
'@media.*.values'
filename:
type: text
label: Filename
type:
type: hidden
default: video
name:
type: unset
description:
type: textarea
label: Description
url:
type: unset
path:
type: unset
thumb:
type: unset
width:
type: text
label: Width
height:
type: text
label: Height
mime:
type: hidden
default: 'application/octet-stream'
modified:
type: unset

95
blueprints/blog.yaml Normal file
View file

@ -0,0 +1,95 @@
title: Blog
'@extends':
type: default
context: blueprints://pages
child_type: item
title: Default
rules:
slug:
pattern: "[a-z][a-z0-9_-]+"
min: 2
max: 80
form:
fields:
tabs:
type: tabs
active: 1
fields:
advanced:
fields:
overrides:
fields:
header.child_type:
default: item
blog:
type: tab
title: FUTURE.ADMIN.BLOG.BLOG_TAB
fields:
content_title:
type: spacer
title: FUTURE.ADMIN.BLOG.BLOG_CONTENT_TITLE
header.content.items:
type: textarea
yaml: true
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS
default: '-@self.children'
validate:
type: yaml
header.content.limit:
type: text
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_LIMIT
default: 5
validate:
required: true
type: int
min: 1
header.content.order.by:
type: select
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY
default: date
options:
folder: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_FOLDER
title: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_TITLE
date: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_DATE
default: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_DEFAULT
header.content.order.dir:
type: select
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR
default: desc
options:
asc: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR_ASC
desc: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR_DESC
header.content.pagination:
type: toggle
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_PAGINATION
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
header.content.url_taxonomy_filters:
type: toggle
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

37
blueprints/default.yaml Normal file
View file

@ -0,0 +1,37 @@
title: Generic Page
'@extends':
type: default
context: blueprints://pages
form:
fields:
tabs:
type: tabs
active: 1
fields:
content:
type: tab
fields:
header.options:
type: columns
ordering@: header.title
fields:
header.content:
type: column
fields:
header.subtitle:
type: text
style: vertical
label: FUTURE.ADMIN.ITEM.ITEM_SUBTITLE
header.image:
type: column
fields:
header.primaryImage:
type: pagemediaselect
label: FUTURE.ADMIN.DEFAULT.PRIMARY_IMAGE
preview_images: true
header.avatarImage:
ordering@: header.primaryImage
type: pagemediaselect
label: FUTURE.ADMIN.ITEM.ITEM_AVATAR
preview_images: true

2
blueprints/form.yaml Normal file
View file

@ -0,0 +1,2 @@
title: Nopad
'@extends': default

56
blueprints/item.yaml Normal file
View file

@ -0,0 +1,56 @@
title: Item
'@extends':
type: default
context: blueprints://pages
form:
fields:
tabs:
fields:
blog:
type: tab
title: FUTURE.ADMIN.ITEM.ITEM_TAB
fields:
summary:
type: section
title: FUTURE.ADMIN.ITEM.ITEM_SUMMARY
underline: true
header.summary.enabled:
type: toggle
toggleable: true
label: FUTURE.ADMIN.ITEM.ITEM_SUMMARY_ENABLED
highlight: 1
options:
1: Enabled
0: Disabled
header.summary.format:
type: select
toggleable: true
label: FUTURE.ADMIN.ITEM.ITEM_SUMMARY_FORMAT
classes: fancy
options:
'short': FUTURE.ADMIN.ITEM.ITEM_SUMMARY_FORMAT_SHORT
'long': FUTURE.ADMIN.ITEM.ITEM_SUMMARY_FORMAT_LONG
header.summary.size:
type: text
toggleable: true
label: FUTURE.ADMIN.ITEM.ITEM_SUMMARY_SIZE
classes: large
placeholder: 300
validate:
type: int
min: 1
header.summary.delimiter:
type: text
toggleable: true
label: FUTURE.ADMIN.ITEM.ITEM_SUMMARY_DELIMITER
classes: large
placeholder: ===

View file

@ -0,0 +1,27 @@
title: Banner
'@extends': default
form:
fields:
tabs:
fields:
banner:
type: tab
title: FUTURE.ADMIN.MODULAR.BANNER.BANNER_TAB
fields:
header.subtitle:
type: text
label: FUTURE.ADMIN.MODULAR.BANNER.BANNER_SUBTITLE
header.buttontext:
type: text
label: FUTURE.ADMIN.MODULAR.BANNER.BANNER_BUTTON_TEXT
header.buttonurl:
type: text
label: FUTURE.ADMIN.MODULAR.BANNER.BANNER_BUTTON_URL
header.image:
type: pagemediaselect
label: FUTURE.ADMIN.MODULAR.BANNER.BANNER_IMAGE
preview_images: true
description: FUTURE.ADMIN.MODULAR.BANNER.BANNER_IMAGE_DESCRIPTION

View file

@ -0,0 +1,46 @@
title: Features
'@extends': default
form:
fields:
tabs:
fields:
features:
type: tab
title: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_TAB
fields:
header.class:
type: select
label: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_LAYOUT
default: standard
size: medium
options:
medium: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_LAYOUT_TWOCOLS
standard: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_LAYOUT_THREECOLS
header.features:
name: features
type: list
label: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_HEADER
fields:
.image:
type: pagemediaselect
label: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_IMAGE
preview_images: true
.title:
type: text
label: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_TITLE
.text:
type: textarea
autofocus: true
label: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_TEXT
maxlength: 500
rows: 5
.buttontext:
type: text
label: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_BUTTON_TEXT
.buttonurl:
type: text
label: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_BUTTON_URL
.buttonurl_target:
type: checkbox
label: FUTURE.ADMIN.MODULAR.FEATURES.FEATURES_BUTTON_URL_TARGET

60
blueprints/portfolio.yaml Normal file
View file

@ -0,0 +1,60 @@
extends@: default
form:
fields:
tabs:
type: tabs
active: 1
fields:
portfolio:
type: tab
title: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_TAB
fields:
content_title:
type: spacer
title: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_TITLE
header.class:
type: select
label: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_LAYOUT
default: standard
size: medium
options:
medium: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_LAYOUT_TWOCOLS
standard: FUTURE.ADMIN.PORTFOLIO.PORTOFOLIO_LAYOUT_THREECOLS
header.images:
type: list
style: vertical
label: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_IMAGES
collapsed: true
fields:
.image:
type: pagemediaselect
label: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_IMAGE
preview_images: true
accept:
- .png
- .jpg
- .gif
- .svg
.title:
type: text
label: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_IMAGE_TITLE
.description:
type: text
label: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_IMAGE_DESCRIPTION
.thumb:
type: filepicker
folder: 'self@'
label: FUTURE.ADMIN.PORTFOLIO.PORTFOLIO_IMAGE_THUMB
preview_images: true
accept:
- .png
- .jpg
- .gif
- .svg

9
future2021.php Normal file
View file

@ -0,0 +1,9 @@
<?php
namespace Grav\Theme;
use Grav\Common\Theme;
class Future2021 extends Theme
{
}

40
future2021.yaml Normal file
View file

@ -0,0 +1,40 @@
enabled: true
production-mode: true
favicon:
user/themes/future2021/images/Grav_logo.png:
name: Grav_logo.png
type: image/png
size: 15355
path: user/themes/future2021/images/Grav_logo.png
blog_page: /blog
slogan: 'AYUDA DE GRAV EN ESPAÑOL'
custom_logo:
user/themes/future2021/images/logo/Grav_logo.png:
name: Grav_logo.png
type: image/png
size: 15355
path: user/themes/future2021/images/logo/Grav_logo.png
custom_logo_mobile: { }
footer:
title: ABOUT
description: 'Mauris neque quam, fermentum ut nisl vitae, convallis maximus nisl. Sed mattis nunc id lorem euismod amet placerat. Vivamus porttitor magna enim, ac accumsan tortor cursus at phasellus sed ultricies.'
copyright_text: 'DESIGN: <a href="https://html5up.net/" target="_blank">HTML5 UP</a>. IMAGES: <a href="http://wallpaperswide.com/" target="_blank">WALLPAPESWIDE</a>.'
button_url: about
button_text: 'Show more'
social:
-
name: Twitter
url: 'https://www.twitter.com'
icon: 'fa fa-twitter'
-
name: Facebook
url: 'https://www.facebook.com'
icon: 'fa fa-facebook'
-
name: Instagram
url: 'https://www.instagram.com'
icon: 'fa fa-instagram'
dropdown:
enabled: true
miniposts: true
miniposts_number: 3

BIN
images/avatar.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
images/error/403.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
images/error/404.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
images/logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
images/logo/Grav_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
images/pic01.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
images/pic02.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
images/pic03.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
images/pic04.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

BIN
images/pic05.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
images/pic06.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
images/pic07.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
images/pic08.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
images/pic09.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
images/pic10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
images/pic11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
images/pic12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

249
languages.yaml Normal file
View file

@ -0,0 +1,249 @@
en:
FUTURE:
ADMIN:
THEME:
DROPDOWN_MENU: Dropdown in navbar
PRODUCTION_MODE: Production Mode
PRODUCTION_MODE_HELP: When enabled, Future will render with minified CSS
FAVICON: Choose your own favicon
CUSTOM_LOGO: Custom Logo
CUSTOM_LOGO_DESCRIPTION: Will be used instead of default logo `theme://images/grav-logo.svg`
CUSTOM_LOGO_MOBILE: Mobile Custom Logo
SLOGAN: Slogan
BLOG_DEFAULTS: Blog Defaults
BLOG_PAGE: Blog Page
BLOG_PAGE_DESCRIPTION: The route to the blog page when working with blog sidebar
MINIPOSTS: Enable Miniposts in Sidebar
MINIPOSTS_NUMBER: Miniposts number to show
MINIPOSTS_NUMBER_DESCRIPTION: Number of miniposts that will be showed in sidebar
FOOTER: Footer
FOOTER_TITLE: Footer Title
FOOTER_DESCRIPTION: Footer Description
FOOTER_COPYRIGHT: Copyright Text
FOOTER_BUTTON_TEXT: Button Text
FOOTER_BUTTON_URL: Button URL
FOOTER_SOCIALS_ICONS: Social Icons
FOOTER_SOCIALS_ICON_NAME: Social Name
FOOTER_SOCIALS_ICON_URL: URL Link to Social
FOOTER_SOCIALS_ICON_ICON: Icon to Social
DEFAULT:
PRIMARY_IMAGE: Primary image
MODULAR:
BANNER:
BANNER_TAB: Banner
BANNER_SUBTITLE: Subtitle
BANNER_BUTTON_TEXT: Button Text
BANNER_BUTTON_URL: Button URL
BANNER_IMAGE: Image
BANNER_IMAGE_DESCRIPTION: Select one image
FEATURES:
FEATURES_TAB: Features
FEATURES_LAYOUT: Layout
FEATURES_LAYOUT_TWOCOLS: Medium = 2 / 1 columns
FEATURES_LAYOUT_THREECOLS: Standard = 3 / 2 / 1 columns
FEATURES_HEADER: Features
FEATURES_IMAGE: Image
FEATURES_TITLE: Title
FEATURES_TEXT: Text
FEATURES_BUTTON_TEXT: Button Text
FEATURES_BUTTON_URL: Button URL
FEATURES_BUTTON_URL_TARGET: Open URL in a new window
BLOG:
BLOG_TAB: Blog Config
BLOG_CONTENT_TITLE: Content Definition
BLOG_CONTENT_ITEMS: Items
BLOG_CONTENT_ITEMS_LIMIT: Max Item Count
BLOG_CONTENT_ITEMS_ORDER_BY: Order By
BLOG_CONTENT_ITEMS_ORDER_BY_DATE: Date
BLOG_CONTENT_ITEMS_ORDER_BY_TITLE: Title
BLOG_CONTENT_ITEMS_ORDER_BY_FOLDER: Folder
BLOG_CONTENT_ITEMS_ORDER_BY_DEFAULT: Default
BLOG_CONTENT_ITEMS_ORDER_DIR: Order
BLOG_CONTENT_ITEMS_ORDER_DIR_ASC: Ascending
BLOG_CONTENT_ITEMS_ORDER_DIR_DESC: Descending
BLOG_CONTENT_ITEMS_PAGINATION: Pagination
BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS: URL Taxonomy Filters
ITEM:
ITEM_TAB: Blog Item
ITEM_OPTIONS: Options
ITEM_SUMMARY: Summary Item
ITEM_SUMMARY_ENABLED: Enabled Summary
ITEM_SUMMARY_FORMAT: Summary Format
ITEM_SUMMARY_FORMAT_SHORT: Use the first occurence of delimter or size
ITEM_SUMMARY_FORMAT_LONG: Summary delimiter will be ignored
ITEM_SUMMARY_SIZE: Size
ITEM_SUMMARY_DELIMITER: Summary Delimiter
ITEM_ORDER: Minipost Order
ITEM_SUBTITLE: Subtitle
ITEM_AVATAR: Avatar Image
PORTFOLIO:
PORTFOLIO_TAB: Portfolio
PORTFOLIO_TITLE: Portfolio Images
PORTFOLIO_LAYOUT: Layout
PORTFOLIO_LAYOUT_TWOCOLS: Medium = 2 / 1 columns
PORTOFOLIO_LAYOUT_THREECOLS: Standard = 3 / 2 / 1 columns
PORTFOLIO_IMAGES: Images
PORTFOLIO_IMAGE: Image
PORTFOLIO_IMAGE_TITLE: Title
PORTFOLIO_IMAGE_DESCRIPTION: Description
PORTFOLIO_IMAGE_THUMB: Thumbnails
BLOG:
ITEM:
CONTINUE_READING: Continue reading...
NEXT_POST: Next Post
PREV_POST: Previous Post
PAGINATION:
PREVIOUS: Previous
NEXT: Next
SIDEBAR:
SIMPLE_SEARCH:
HEADLINE: Search
RELATED_POSTS:
HEADLINE: Related Posts
RANDOM_ARTICLE:
HEADLINE: Random Article
FEELING_LUCKY: I'm Feeling Lucky!
SOME_TEXT_WIDGET:
HEADLINE: Some Text Widget
TAGS:
HEADLINE: Tags
POPULAR_TAGS:
HEADLINE: Popular Tags
ARCHIVES:
HEADLINE: Archives
SYNDICATE:
HEADLINE: Syndicate
LOGIN: Log in
LATESTPOSTS: Latest posts
FEATURED: Featured
PRIVACY: By using this form you agree to our
FORM_SUMMARY: Here is the summary of what you wrote to us
es:
FUTURE:
ADMIN:
THEME:
DROPDOWN_MENU: Menu Desplegable
PRODUCTION_MODE: Modo Producción
PRODUCTION_MODE_HELP: Si está activado, Future cargará con CSS minificado
FAVICON: Elige tu propio favicon
CUSTOM_LOGO: Logo personalizado
CUSTOM_LOGO_DESCRIPTION: Este logo se usará en lugar del log por defecto `theme://images/grav-logo.svg`
CUSTOM_LOGO_MOBILE: Logo personalizado para dispositivos móviles
SLOGAN: Slogan
BLOG_DEFAULTS: Opciones de Blog
BLOG_PAGE: Página de Blog
BLOG_PAGE_DESCRIPTION: Ruta de la página de Blog cuando funciona con el blog de barra lateral
MINIPOSTS: Activar Miniposts en la barra lateral
MINIPOSTS_NUMBER: Número de miniposts a mostrar
MINIPOSTS_NUMBER_DESCRIPTION: Número de miniposts que se mostrarán en la barra lateral
FOOTER: Pie de página
FOOTER_TITLE: Título del pie de página
FOOTER_DESCRIPTION: Descripción del pie de página
FOOTER_COPYRIGHT: Texto del Copyright
FOOTER_BUTTON_TEXT: Texto del botón
FOOTER_BUTTON_URL: URL del botón
FOOTER_SOCIALS_ICONS: Iconos Redes Sociales
FOOTER_SOCIALS_ICON_NAME: Nombre de Red Social
FOOTER_SOCIALS_ICON_URL: URL Link to Social
FOOTER_SOCIALS_ICON_ICON: Icono de Red Social
DEFAULT:
PRIMARY_IMAGE: Imagen principal
MODULAR:
BANNER:
BANNER_TAB: Banner
BANNER_SUBTITLE: Subtítulo
BANNER_BUTTON_TEXT: Texto del botón
BANNER_BUTTON_URL: URL del botón
BANNER_IMAGE: Imagen
BANNER_IMAGE_DESCRIPTION: Seleccione una imagen
FEATURES:
FEATURES_TAB: Funciones
FEATURES_LAYOUT: Diseño
FEATURES_LAYOUT_TWOCOLS: Medio = 2 / 1 columnas
FEATURES_LAYOUT_THREECOLS: Estándar = 3 / 2 / 1 columnas
FEATURES_HEADER: Funciones
FEATURES_IMAGE: Imagen
FEATURES_TITLE: Título
FEATURES_TEXT: Texto
FEATURES_BUTTON_TEXT: Texto del botón
FEATURES_BUTTON_URL: URL del botón
FEATURES_BUTTON_URL_TARGET: Abrir la URL en una nueva ventana
BLOG:
BLOG_TAB: Configuración del Blog
BLOG_CONTENT_TITLE: Definición de Contenido
BLOG_CONTENT_ITEMS: Artículos
BLOG_CONTENT_ITEMS_LIMIT: Límite máximo de artículos
BLOG_CONTENT_ITEMS_ORDER_BY: Ordenar por
BLOG_CONTENT_ITEMS_ORDER_BY_DATE: Fecha
BLOG_CONTENT_ITEMS_ORDER_BY_TITLE: Título
BLOG_CONTENT_ITEMS_ORDER_BY_FOLDER: Carpeta
BLOG_CONTENT_ITEMS_ORDER_BY_DEFAULT: Por defecto
BLOG_CONTENT_ITEMS_ORDER_DIR: Orden
BLOG_CONTENT_ITEMS_ORDER_DIR_ASC: Ascendente
BLOG_CONTENT_ITEMS_ORDER_DIR_DESC: Descendente
BLOG_CONTENT_ITEMS_PAGINATION: Paginación
BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS: Filtros de taxonomía por URL
ITEM:
ITEM_TAB: Artículo de Blog
ITEM_OPTIONS: Opciones
ITEM_SUMMARY: Resumen de Artículo
ITEM_SUMMARY_ENABLED: Activar Resumen
ITEM_SUMMARY_FORMAT: Formato de Resumen
ITEM_SUMMARY_FORMAT_SHORT: Utilizar la primera aparición de delimitador o tamaño
ITEM_SUMMARY_FORMAT_LONG: Se ignorará el delimitador de resumen
ITEM_SUMMARY_SIZE: Tamaño
ITEM_SUMMARY_DELIMITER: Delimitador de Resumen
ITEM_ORDER: Orden del Minipost
ITEM_SUBTITLE: Subtítulo
ITEM_AVATAR: Imagen de Avatar
PORTFOLIO:
PORTFOLIO_TAB: Portafolio
PORTFOLIO_TITLE: Imágenes de Portafolio
PORTFOLIO_LAYOUT: Diseño
PORTFOLIO_LAYOUT_TWOCOLS: Medio = 2 / 1 columnas
PORTOFOLIO_LAYOUT_THREECOLS: Estándar = 3 / 2 / 1 columnas
PORTFOLIO_IMAGES: Imágenes
PORTFOLIO_IMAGE: Imagen
PORTFOLIO_IMAGE_TITLE: Título
PORTFOLIO_IMAGE_DESCRIPTION: Descripción
PORTFOLIO_IMAGE_THUMB: Miniatura
BLOG:
ITEM:
CONTINUE_READING: Continuar leyendo...
NEXT_POST: Siguiente Entrada
PREV_POST: Entrada Anterior
PAGINATION:
PREVIOUS: Anterior
NEXT: Siguiente
SIDEBAR:
SIMPLE_SEARCH:
HEADLINE: Buscar
RELATED_POSTS:
HEADLINE: Entradas Relacionadas
RANDOM_ARTICLE:
HEADLINE: Artículo Aleatorio
FEELING_LUCKY: Voy a tener suerte!
SOME_TEXT_WIDGET:
HEADLINE: Algunos Widget de Texto
TAGS:
HEADLINE: Etiquetas
POPULAR_TAGS:
HEADLINE: Etiquetas Populares
ARCHIVES:
HEADLINE: Últimas entradas
SYNDICATE:
HEADLINE: Distribuir
LOGIN: Iniciar sesión
LATESTPOSTS: Últimos posts
FEATURED: Destacados
PRIVACY: Al usar este formulario estás de acuerdo con nuestra
FORM_SUMMARY: Aquí está el resumen de lo que nos escribió.

BIN
readme.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

BIN
screenshot.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

39
templates/blog.html.twig Normal file
View file

@ -0,0 +1,39 @@
{% embed 'partials/base.html.twig' %}
{% set collection = page.collection() %}
{% set base_url = page.url %}
{% set feed_url = base_url %}
{% if base_url == '/' %}
{% set base_url = '' %}
{% endif %}
{% if base_url == base_url_relative %}
{% set feed_url = base_url~'/'~page.slug %}
{% endif %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
{% if config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
{% for child in collection %}
{% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
{% endfor %}
{% if config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {'pagination':collection.params.pagination} %}
{% endif %}
{% endblock %}
{% block sidebar %}
{% include 'partials/sidebar_left.html.twig' %}
{% endblock %}
{% endembed %}

View file

@ -0,0 +1,34 @@
{% extends 'partials/base.html.twig' %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
{% if page.header.subtitle %}
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
</header>
{% if page.header.primaryImage %}
{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
{% else %}
{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
{% endif %}
{{ page.content|raw}}
</article>
<section id="footer" class="align-center">
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
</section>
{% endblock %}

16
templates/error.html.twig Normal file
View file

@ -0,0 +1,16 @@
{% extends 'partials/base.html.twig' %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
<article class="post">
<header>
<div class="title">
<h2><span class="icon fa-exclamation-triangle"></span> Error {{ page.header.http_response_code }}</h2>
<p>{{ page.content|raw }}</p>
</div>
</header>
</article>
{% endblock %}

14
templates/form.html.twig Normal file
View file

@ -0,0 +1,14 @@
{% extends 'partials/base.html.twig' %}
{% block content %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
</div>
<div class="meta">
</div>
</header>
{{ content|raw }}
{% include "forms/form.html.twig" %}
</article>
{% endblock %}

View file

@ -0,0 +1,17 @@
{% extends 'partials/base.html.twig' %}
{% block content %}
<article class="post">
<div class="title">
<h2>{{ form.message }}</h2>
</div>
<div class="meta">
<time class="published" datetime="{{form.date|date("Y-m-d")}}">{{ form.date|date("M j, Y")}}</time>
</div>
</header>
<p>{{'FUTURE.FORM_SUMMARY'|t}}</p>
{{ content|raw }}
{% include "forms/data.html.twig" %}
</article>
{% endblock %}

View file

@ -0,0 +1,51 @@
{% macro render_field(form, fields, scope) %}
{% import _self as self %}
{% for index, field in fields %}
{% set input = attribute(field, "input@") %}
{% if input is null or input == true %}
{% if form.value(scope ~ field.name) %}
{% block field %}
<div>
{% block field_name %}
<strong>{{ field.name|t|e }}</strong>:
{% endblock %}
{% block field_value %}
{% if field.type == 'checkboxes' %}
<ul>
{% set use_keys = field.use is defined and field.use == 'keys' %}
{% for key,value in form.value(scope ~ field.name) %}
{% set index = (use_keys ? key : value) %}
<li>{{ field.options[index]|e }}</li>
{% endfor %}
</ul>
{% elseif field.type == 'checkbox' %}
{{ (form.value(scope ~ field.name) == 1) ? "GRAV.YES"|t|e : "GRAV.NO"|t|e }}
{% elseif field.type == 'privacy' %}
{{ (form.value(scope ~ field.name) == 1) ? "Acepta la Política de Privacidad, Si"|t|e : "GRAV.NO"|t|e }}
{% elseif field.type == 'select' %}
{{ field.options[form.value(scope ~ field.name)]|e }}
{% else %}
{{ string(form.value(scope ~ field.name))|nl2br }}
{% endif %}
{% endblock %}
</div>
{% endblock %}
{% endif %}
{% else %}
{% if field.fields %}
{% set new_scope = field.nest_id ? scope ~ field.name ~ '.' : scope %}
{{ self.render_field(form, field.fields, new_scope) }}
{% endif %}
{% endif %}
{% endfor %}
{% endmacro %}
{% import _self as macro %}
{{ macro.render_field(form, form.fields, '') }}

View file

@ -0,0 +1,19 @@
{%- macro render_field(form, fields, scope) %}
{%- import _self as self %}
{%- for index, field in fields %}
{%- set input = attribute(field, "input@") %}
{%- if input is null or input == true %}
{%- set value = form.value(scope ~ (field.name ?? index)) %}
{{- scope ~ (field.name ?? index) }}: {{ string(value is iterable ? value|json_encode : value|escape('yaml')) ~ "\r\n" }}
{%- else %}
{%- if field.fields %}
{%- set new_scope = field.nest_id ? scope ~ field.name ~ '.' : scope -%}
{{- self.render_field(form, field.fields, new_scope) }}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- import _self as macro %}
{%- autoescape false %}
{{- macro.render_field(form, form.fields, '') ~ "\r\n" }}
{%- endautoescape %}

View file

@ -0,0 +1,39 @@
{% 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 %}
{{'FUTURE.PRIVACY'|t}} <a href="{{base_url}}/privacy">{{field.label}}</a>
{% endif %}
{{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
</label>
</div>
{% endblock %}

29
templates/item.html.twig Normal file
View file

@ -0,0 +1,29 @@
{% embed 'partials/base.html.twig' %}
{% set base_url = page.parent.url %}
{% set feed_url = base_url %}
{% if base_url == '/' %}
{% set base_url = '' %}
{% endif %}
{% if base_url == base_url_relative %}
{% set feed_url = base_url~'/'~page.parent.slug %}
{% endif %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
{% if config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
{% include 'partials/blog_item.html.twig' with {'truncate':false,'big_header':true} %}
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}
{% endembed %}

View file

@ -0,0 +1,36 @@
{% macro nav_loop(page) %}
{% import _self as macros %}
{% for p in page.children.visible %}
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
{% if p.children.visible.count > 0 %}
<li class="{{ current_page }}">
{% if p.routable == false %}
<a>
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
{{ p.menu }}
</a>
{% elseif p.routable != false and p.children.count > 0 %}
<a>
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
<span>{{ p.menu }}</span>
</a>
{% else %}
<a href="{{p.url}}">
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
{{ p.menu }}
</a>
{% endif %}
<ul>
{{ macros.nav_loop(p) }}
</ul>
</li>
{% else %}
<li class="{{ current_page }}">
<a href="{{ p.url }}">
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
{{ p.menu }}
</a>
</li>
{% endif %}
{% endfor %}
{% endmacro %}

View file

@ -0,0 +1,34 @@
{% extends 'partials/base.html.twig' %}
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
</div>
</header>
{% if big_header %}
{{ page.media.images|first.cropResize(1038,437).html(page.title, page.title, 'image featured')|raw }}
{% else %}
{{ page.media.images|first.cropZoom(1038,437).html(page.title, page.title, 'image featured')|raw }}
{% endif %}
{{ page.content}}
{% for module in page.collection() %}
{{ module.content|raw }}
{% endfor %}
</article>
{% endblock %}
{% block sidebar %}
{% include 'partials/sidebar_left.html.twig' %}
{% endblock %}

View file

@ -0,0 +1,21 @@
<section id="banner">
<div class="content">
<header>
<h1>{{ page.title}}</h1>
<p>{{page.header.subtitle}}</p>
</header>
<p>{{page.content|raw}}</p>
<ul class="actions">
<li><a href="{{page.header.buttonurl}}" class="button">{{page.header.buttontext}}</a></li>
</ul>
</div>
{% if page.header.image %}
<span class="image object fit">
{{page.media[page.header.image].loading('lazy').html('',page.title)|raw}}
</span>
{% else %}
<span class="image object fit">
{{page.media[page.header.primaryImage].loading('lazy').html('',page.title)|raw}}
</span>
{% endif %}
</section>

View file

@ -0,0 +1,5 @@
<section id="contact">
<p>{{ page.content|raw }}</p>
{% include "forms/form.html.twig" with { form: forms('contact-form')} %}
</section>
<br>

View file

@ -0,0 +1,30 @@
<section id="features">
{% set columns = page.header.class == 'standard' ? 'col-4 col-6-medium col-12-small' : 'col-6 col-12-small' %}
<header>
<h2>{{ page.title }}</h2>
</header>
{{ content|raw }}
<div class="row gtr-uniform">
{% for feature in page.header.features %}
<div class="{{columns}}">
<article class="box">
{% if feature.image %}<span class="image fit"><img src="{{page.media[feature.image].url}}" alt="{{feature.title}}" /></span>{% endif %}
<header>
{% if feature.title %}<h3>{{feature.title}}</h3>{% endif %}
{% if feature.text %}<p>{{feature.text|raw}}</p>{% endif %}
{% if feature.buttonurl %}<p><a href="{{feature.buttonurl}}" class="button fit" target={% if feature.buttonurl_target %}"_blank"{% endif%}>{{feature.buttontext}}</a></p>{% endif %}
</header>
</article>
</div>
{% endfor %}
</div>
</section>
<br>

View file

@ -0,0 +1,18 @@
{% extends 'partials/base.html.twig' %}
{% block header %}{% endblock %}
{% block content %}
<article class="post">
<header>
<div class="title">
<h1 class="logo"><a href="{{ home_url }}">{{ site.title }}</a></h1>
<h2>Error {{ page.header.http_response_code }}</h2>
<p>{{ page.content|raw }}</p>
</div>
</header>
</article>
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}

View file

@ -0,0 +1,23 @@
<section>
<ul class="posts">
{% for p in page.find(theme_config.blog_page).children.order('date', 'desc').slice(0, 5) %}
{% if p.header.primaryImage %}
{% set bannerimage = p.media[p.header.primaryImage]%}
{% else %}
{% set bannerimage = p.media.images|first %}
{% endif %}
<li>
<article>
<header>
<h3><a href="{{p.url}}">{{ p.title }}</a></h3>
<time class="published" datetime="{{p.date|date("Y-m-d")}}">{{ p.date|date("M j, Y")}}</time>
</header>
<a href="{{p.url}}" class="image">
{{ bannerimage.cropZoom(64,64).quality(60).loading('lazy').html('',p.title)|raw }}
</a>
</article>
</li>
{% endfor %}
</ul>
</section>

View file

@ -0,0 +1,87 @@
{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
{% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
{% set favicon = theme_config.favicon ? theme_config.favicon|first : { type:'image/png', path: url('theme://images/logo.png') } %}
{% set customlogo = theme_config.custom_logo ? theme_config.custom_logo|first : {type:'image/png', path: url('theme://images/logo.png') } %}
{% set new_base_url = base_url_absolute ~ theme_config.blog_page %}
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
<head>
{% block head deferred %}
<title>{% if page.title %}{{ page.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" />
{% include 'partials/metadata.html.twig' %}
<link rel="icon" type="{{ favicon.type }}" href="{{ url( favicon.path ) }}"/>
<link rel="canonical" href="{{ page.url(true, true) }}" />
{% endblock head %}
{% block stylesheets %}
{% do assets.addCss('theme://assets/css/main'~compress) %}
{% do assets.addCss('theme://assets/css/font-awesome.min.css') %}
{% do assets.addCss('theme://assets/css/custom.css', 10) %}
{% if page.template() == 'portfolio' %}
{% do assets.addCss('theme://assets/css/glightbox.min.css') %}
{% endif %}
{% endblock %}
{{ assets.css()|raw }}
{% block javascripts %}
{% do assets.add('jquery',101) %}
{% do assets.addJs('theme://assets/js/browser.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://assets/js/breakpoints.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://assets/js/util.js', {group:'bottom'}) %}
{% do assets.addJs('theme://assets/js/main.js', {group:'bottom'}) %}
{% do assets.addJs('theme://assets/js/custom.js', {group:'bottom'}) %}
{% if page.template() == 'portfolio' %}
{% do assets.addJs('theme://assets/js/glightbox.min.js', {group:'bottom'}) %}
{% endif %}
{% endblock %}
{{ assets.js()|raw }}
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
{% block header %}
{% include 'partials/header.html.twig' %}
{% endblock %}
{% block body %}
{% block menu %}{% endblock %}
{% block main %}
<div id="main">
{% block content %}{% endblock %}
</div>
{% block sidebar %}{% endblock %}
{% endblock %}
{% endblock %}
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% if page.template() == 'portfolio' %}
<script>
const lightbox = GLightbox({
touchNavigation: true,
loop: true,
autoplayVideos: true,
openEffect: 'zoom',
closeEffect: 'fade'
});
</script>
{% endif %}
{% endblock %}
</div>
<a id="back-to-top" href="#"><i class="fa fa-chevron-up"></i></a>
</body>
</html>
<!--
Future Imperfect by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->

View file

@ -0,0 +1,93 @@
<article class="post" itemprop="liveBlogUpdate" itemscope itemtype="http://schema.org/BlogPosting">
{% if page.header.author %}
{% set author = page.header.author %}
{% else %}
{% set author = page.header.taxonomy.author[0] %}
{% endif %}
{% if author %}
{% set avatar = author|replace(' ', '-')|lower %}
{% endif %}
<header>
<div class="title">
{% if page.header.link %}
<h2 itemprop="headline">
{% if page.header.continue_link is not sameas(false) %}
<a href="{{ page.url }}"></a>
{% endif %}
<a href="{{ page.header.link }}">{{ page.title }}</a>
</h2>
{% else %}
<h2 itemprop="headline"><a href="{{ page.url }}">{{ page.title }}</a></h2>
{% endif %}
{% if page.header.subtitle %}
<p itemprop="alternativeHeadline">{{ page.header.subtitle|raw }}</p>
{% endif %}
</div>
<div class="meta">
<time class="published" itemprop="datePublished" datetime="{{page.date|date("Y-m-d")}}">{{ page.date|date("M j, Y")}}</time>
{% if author %}
<a href="{{ base_url }}/author{{ config.system.param_sep }}{{ author }}" itemprop="keywords" class="author">{{ tag }}<span class="name" rel="author">{{ author }}</span>{% if page.header.avatarImage %}<img src="{{ page.media[page.header.avatarImage].url|e}}" alt="{{ author }}" />{% endif %}</a>
{% endif %}
</div>
</header>
{% if page.header.primaryImage %}
<a href="{{ page.url }}" class="image featured">{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}</a>
{% else %}
<a href="{{ page.url }}" class="image featured">{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}</a>
{% endif %}
<div itemprop="articleBody">
{% if page.header.continue_link is sameas(false) %}
{{ page.content|raw }}
{% if not truncate %}
{% set show_prev_next = true %}
{% endif %}
{% elseif truncate and page.summary != page.content %}
{{ page.summary|raw }}
{% elseif truncate %}
{{ page.content|truncate(550)|raw }}
{% else %}
{{ page.content|raw }}
{% set show_prev_next = true %}
{% endif %}
</div>
<footer>
<ul class="actions">
{% if truncate and page.summary != page.content %}
<li><a href="{{ page.url }}" class="button">{{'FUTURE.BLOG.ITEM.CONTINUE_READING'|t}}</a></li>
{% elseif truncate %}
<li><a href="{{ page.url }}" class="button">{{'FUTURE.BLOG.ITEM.CONTINUE_READING'|t}}</a></li>
{% endif %}
{% if show_prev_next %}
{% if not page.isLast %}
<li><a class="button" href="{{ page.prevSibling.url }}"><i class="fa fa-chevron-left"></i> {{'FUTURE.BLOG.ITEM.PREV_POST'|t}}</a></li>
{% endif %}
{% if not page.isFirst %}
<li><a class="button" href="{{ page.nextSibling.url }}">{{'FUTURE.BLOG.ITEM.NEXT_POST'|t}} <i class="fa fa-chevron-right"></i></a></li>
{% endif %}
{% endif %}
</ul>
<ul class="stats">
{% if page.taxonomy.tag %}
{% for tag in page.taxonomy.tag %}
<li><a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tag }}" itemprop="keywords">{{ tag }}</a></li>
{% endfor %}
{% endif %}
<li><a href="https://twitter.com/share" data-url="{{ page.url(true) }}" data-text="{{ page.title }}" class="icon brands fa-twitter">
</a></li>
<li><a href="http://www.facebook.com/sharer.php?u={{ page.url(true) }}" class="icon brands fa-facebook">
</a></li>
</ul>
</footer>
</article>

View file

@ -0,0 +1,4 @@
<ul class="icons">
{% include 'partials/social.html.twig' %}
</ul>
<p class="copyright">&copy; {{ "now"|date("Y") }} {{ site.author.name }}. {{config.theme.footer.copyright_text|raw}}</a>.</p>

View file

@ -0,0 +1,23 @@
<header id="header">
<h1 class="logo"><a href="{{ home_url }}">{{ site.title }}</a></h1>
<nav class="dropdown">
{% block header_navigation %}
{% include 'partials/navigation.html.twig' %}
{% endblock %}
</nav>
<nav class="main">
{% block header_extra %}
<ul>
{% if config.plugins.langswitcher.enabled %}
{% include 'partials/langswitcher.html.twig' %}
{% endif %}
{% if config.plugins.simplesearch.enabled %}
{% include 'partials/simplesearch_searchbox.html.twig' %}
{% endif %}
<li class="menu">
<a class="fa-bars" href="#menu">Menu</a>
</li>
</ul>
{% endblock %}
</nav>
</header>

View file

@ -0,0 +1,31 @@
<li class="langswitcher">
{% set display_format = display_format ?? config.get('plugins.langswitcher.language_display', 'long') %}
{% for language in langswitcher.languages %}
{% set show_language = true %}
{% if language == langswitcher.current %}
{% set lang_url = page.url %}
{% set active_class = ' active' %}
{% else %}
{% set base_lang_url = base_url_simple ~ grav.language.getLanguageURLPrefix(language) %}
{% set lang_url = base_lang_url ~ langswitcher.page_route ~ page.urlExtension %}
{% set untranslated_pages_behavior = grav.config.plugins.langswitcher.untranslated_pages_behavior %}
{% if untranslated_pages_behavior != 'none' %}
{% set translated_page = langswitcher.translated_pages[language] %}
{% if (not translated_page) or (not translated_page.published) %}
{% if untranslated_pages_behavior == 'redirect' %}
{% set lang_url = base_lang_url ~ '/' %}
{% elseif untranslated_pages_behavior == 'hide' %}
{% set show_language = false %}
{% endif %}
{% endif %}
{% endif %}
{% set active_class = '' %}
{% endif %}
{% if show_language %}
<a href="{{ lang_url ~ uri.params }}" class="external{{ active_class }}">{% include 'partials/langswitcher-' ~ display_format ~ '.html.twig' %}</a>
{% endif %}
{% endfor %}
</li>

View file

@ -0,0 +1,3 @@
{% for meta in page.metadata %}
<meta {% if meta.name %}name="{{ meta.name }}" {% endif %}{% if meta.http_equiv %}http-equiv="{{ meta.http_equiv }}" {% endif %}{% if meta.charset %}charset="{{ meta.charset }}" {% endif %}{% if meta.property %}property="{{ meta.property }}" {% endif %}{% if meta.content %}content="{{ meta.content }}" {% endif %}/>
{% endfor %}

View file

@ -0,0 +1,28 @@
<section>
<header class="">
<h3>{{ 'FUTURE.FEATURED'|t }}</h3>
</header>
<div class="mini-posts">
{% set slice_miniposts = config.theme.miniposts_number %}
{% for p in page.evaluate({'@taxonomy.category':'minipost'}).order('header.order', 'asc').slice(0,slice_miniposts) %}
<article class="mini-post">
<header>
<h3><a href="{{ p.url }}">{{ p.title }}</a></h3>
<time class="published" datetime="2015-10-20">{{ p.date|date("M j, Y")}}</time>
<a href="{{ p.url }}" class="author"><img src="{{ p.media[p.header.avatarImage].url}}" alt="" /></a>
</header>
<a href="{{ p.url }}" class="image">
{% if p.header.primaryImage %}
{{ p.media[p.header.primaryImage].cropZoom(1038,437).loading('lazy').html('',p.title)|raw}}
{% else %}
{{p.media.images|first.cropZoom(1038,437).loading('lazy').html('',p.title)|raw}}
{% endif %}
</a>
</article>
{% endfor %}
</div>
</section>
<!-- End of featured Section -->

View file

@ -0,0 +1,6 @@
{% import 'macros/topmenu.html.twig' as macros %}
<ul>
{{ macros.nav_loop(pages) }}
</ul>

View file

@ -0,0 +1,34 @@
{% set pagination = pagination|default(page.collection.params.pagination) %}
{% set base_url = base_url|default(page.url) %}
{% if pagination|length > 1 %}
<ul class="actions pagination">
{% if pagination.hasPrev %}
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
<li><a class="button large previous" rel="prev" href="{{ url }}">{{'FUTURE.BLOG.PAGINATION.PREVIOUS'|t}}</a></li>
{% else %}
<li><span class="disabled button large">{{'FUTURE.BLOG.PAGINATION.PREVIOUS'|t}}</span></li>
{% endif %}
{% for paginate in pagination %}
{% if paginate.isCurrent %}
<li><span class="disabled button large">{{ paginate.number }}</span></li>
{% elseif paginate.isInDelta %}
{% set url = (base_url ~ pagination.params ~ paginate.url)|replace({'//':'/'}) %}
<li><a class="button large" href="{{ url }}">{{ paginate.number }}</a></li>
{% elseif paginate.isDeltaBorder %}
<li class="gap"><span>&hellip;</span></li>
{% endif %}
{% endfor %}
{% if pagination.hasNext %}
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl)|replace({'//':'/'}) %}
<li><a class="button large next" rel="next" href="{{ url }}">{{'FUTURE.BLOG.PAGINATION.NEXT'|t}}</a></li>
{% else %}
<li><span class="disabled button large">{{'FUTURE.BLOG.PAGINATION.NEXT'|t}}</span></li>
{% endif %}
</ul>
{% endif %}

View file

@ -0,0 +1,11 @@
<ul class="related-pages">
{% for related_path, score in related_pages %}
{% set related = grav['pages'].get(related_path) %}
{% if related %}
<li>
<a href="{{ related.url }}" title="{{ related.title }}">{{ related.title }}</a> {% if config.plugins.relatedpages.show_score %}<span class="score">( {{ score }} )</span>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>

View file

@ -0,0 +1,30 @@
<section id="sidebar">
<!-- Intro -->
<section id="intro">
<a href="{{home_url}}" class="logo">{% if customlogo %}<img src="{{ url( customlogo.path ) }}" alt="{{site.title}}" /></a>{% else %}<a href="{{home_url}}" class="">{{site.title}}</a>{% endif %}
<header>
<h2>{{ site.title|e('html') }}</h2>
<p>{{theme_config.slogan|raw}}</a></p>
</header>
</section>
<!-- Mini Posts -->
{% if theme_config.miniposts == true %}
{% block miniposts %}
{% include 'partials/miniposts.html.twig' %}
{% endblock %}
{% endif %}
<!-- About -->
<section class="blurb">
<h2>{{theme_config.footer.title}}</h2>
<p>{{theme_config.footer.description}}</p>
<ul class="actions">
<li><a href="{{theme_config.footer.button_url}}" class="button">{{theme_config.footer.button_text}}</a></li>
</ul>
</section>
<!-- Footer -->
<section id="footer">
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
</section>
</section>

View file

@ -0,0 +1,69 @@
{% block menu_navigation %}
{% macro loop(page) %}
{% for p in page.children %}
{% if p.visible %}
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
<li class="{{ current_page }}">
{% if p.routable == false and p.children.count > 0%}
<a class="dropdown-btn">
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
<i class="fa fa-caret-down"></i>
<span>{{ p.menu }}</span>
</a>
<ul class="subitem_hide">
{{ _self.loop(p) }}
</ul>
{% elseif p.routable != false and p.children.count > 0 %}
<a>
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
<span>{{ p.menu }}</span>
</a>
<ul class="subitem">
{{ _self.loop(p) }}
</ul>
{% else %}
<a href="{{ p.url }}">
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
<span>{{ p.menu }}</span>
</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
{% endmacro %}
<ul class="menulink">
{% if theme_config.dropdown.enabled %}
{{ _self.loop(pages) }}
{% else %}
{% for p in pages.children.visible %}
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
<li class="{{ current_page }}">
{% if p.routable == false and p.children.count > 0%}
<a>
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
<span>{{ p.menu }}</span>
</a>
{% elseif p.routable != false and p.children.count > 0 %}
<a>
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
<span>{{ p.menu }}</span>
</a>
{% else %}
<a href="{{ p.url }}">
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
<span>{{ p.menu }}</span>
</a>
{% endif %}
</li>
{% endfor %}
{% endif %}
{% for mitem in site.menu %}
<li>
<a href="{{ mitem.url }}">
{% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
{{ mitem.text }}
</a>
</li>
{% endfor %}
</ul>
{% endblock %}

View file

@ -0,0 +1,57 @@
<section id="menu">
<!-- Search -->
<section>
{% if config.plugins.simplesearch.enabled %}
{% include 'partials/simplesearch_searchbox_sidebar.html.twig' %}
{% endif %}
</section>
<!-- Links -->
<section id="sidebarmenu">
{% include 'partials/sidebar_navigation.html.twig' %}
</section>
<!-- Actions -->
{% if config.plugins.archives.enabled %}
<section>
<header>
<h3>{{ 'FUTURE.SIDEBAR.ARCHIVES.HEADLINE'|t }}</h3>
</header>
{% include 'partials/archives.html.twig' %}
</section>
{% endif %}
{% if config.plugins.relatedpages.enabled %}
<section>
<header>
<h3>{{ 'FUTURE.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h3>
</header>
{% include 'partials/relatedpages.html.twig' %}
</section>
{% endif %}
{% if config.plugins.taxonomylist.enabled %}
<section>
<header>
<h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3>
</header>
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
</section>
{% endif %}
{% if config.plugins.login.enabled %}
<section>
<ul class="actions stacked">
<li><a href="#" class="button large fit">{{ 'FUTURE.LOGIN'|t }}</a></li>
</ul>
</section>
{% endif %}
</section>
<script>
{% if p.routable == false and p.children.count > 0%}
$(".subitem_hide").hide(); //this hides the list initially
$(".dropdown-btn").click(function(){
$(this).next(".subitem_hide").slideToggle();
});
{% else %}
$(".subitem").attr("style", "display:block"); //this shows the list if it is routable
$(".dropdown-btn").click(function(){
$(this).next(".subitem_hide").slideToggle();
});
{% endif %}
</script>

View file

@ -0,0 +1,23 @@
<section class="search-row">
{% set banner = page.media.images|first %}
{% if banner %}
<div class="search-image">
<a href="{{ page.url }}">{{ banner.cropZoom(100,100).html|raw }}</a>
</div>
{% endif %}
<div class="search-item">
<div class="search-title">
<h3><a href="{{ page.url }}">{{ page.title }}</a></h3>
</div>
<div class="search-details">
<span class="search-date">{{ page.date|date(config.system.pages.dateformat.short) }}</span>
</div>
<p>{{ page.summary|truncate(200)|raw }}</p>
<hr/>
</div>
</section>

View file

@ -0,0 +1,25 @@
{% set min_chars = config.get('plugins.simplesearch.min_query_length', 3) %}
<li class="search">
<a class="fa-search" href="#search">{{"PLUGIN_SIMPLESEARCH.SEARCH_PLACEHOLDER"|t}}</a>
<form id="search" data-simplesearch-form>
<input
name="searchfield"
class="search-input"
aria-label="search"
type="text"
{% if min_chars > 0 %} data-min="{{- min_chars -}}" {% endif %}
required
placeholder="{{"PLUGIN_SIMPLESEARCH.SEARCH_PLACEHOLDER"|t}}"
value="{{ query|e }}"
data-search-invalid="{{ "PLUGIN_SIMPLESEARCH.SEARCH_FIELD_MINIMUM_CHARACTERS"|t(min_chars)|raw }}"
data-search-separator="{{ config.system.param_sep }}"
data-search-input="{{ base_url_absolute }}{{ config.plugins.simplesearch.route == '@self' ? '' : (config.plugins.simplesearch.route == '/' ? '' : config.plugins.simplesearch.route) }}/query"
/>
{% if config.plugins.simplesearch.display_button %}
<button type="submit" class="search-submit">
<img src="{{ url('plugin://simplesearch/assets/search.svg') }}" />
</button>
{% endif %}
</form>
</li>

View file

@ -0,0 +1,24 @@
{% set min_chars = config.get('plugins.simplesearch.min_query_length', 3) %}
<div class="search-wrapper">
<form name="search" data-simplesearch-form>
<input
name="searchfield"
class="search-input"
aria-label="search"
type="text"
{% if min_chars > 0 %} data-min="{{- min_chars -}}" {% endif %}
required
placeholder="{{"PLUGIN_SIMPLESEARCH.SEARCH_PLACEHOLDER"|t}}"
value="{{ query|e }}"
data-search-invalid="{{ "PLUGIN_SIMPLESEARCH.SEARCH_FIELD_MINIMUM_CHARACTERS"|t(min_chars)|raw }}"
data-search-separator="{{ config.system.param_sep }}"
data-search-input="{{ base_url }}{{ config.plugins.simplesearch.route == '@self' ? '' : (config.plugins.simplesearch.route == '/' ? '' : config.plugins.simplesearch.route) }}/query"
/>
{% if config.plugins.simplesearch.display_button %}
<button type="submit" class="search-submit">
<img src="{{ url('plugin://simplesearch/assets/search.svg') }}" />
</button>
{% endif %}
</form>
</div>

View file

@ -0,0 +1,22 @@
{% set min_chars = config.get('plugins.simplesearch.min_query_length', 3) %}
<form class="search" data-simplesearch-form>
<input
name="searchfield"
class="search-input"
aria-label="search"
type="text"
{% if min_chars > 0 %} data-min="{{- min_chars -}}" {% endif %}
required
placeholder="{{"PLUGIN_SIMPLESEARCH.SEARCH_PLACEHOLDER"|t}}"
value="{{ query|e }}"
data-search-invalid="{{ "PLUGIN_SIMPLESEARCH.SEARCH_FIELD_MINIMUM_CHARACTERS"|t(min_chars)|raw }}"
data-search-separator="{{ config.system.param_sep }}"
data-search-input="{{ base_url_absolute }}{{ config.plugins.simplesearch.route == '@self' ? '' : (config.plugins.simplesearch.route == '/' ? '' : config.plugins.simplesearch.route) }}/query"
/>
{% if config.plugins.simplesearch.display_button %}
<button type="submit" class="search-submit">
<img src="{{ url('plugin://simplesearch/assets/search.svg') }}" />
</button>
{% endif %}
</form>

View file

@ -0,0 +1,3 @@
{% for item in theme_config.social %}
<li><a href="{{ item.url }}" class="icon brands {{item.icon}}"><span class="label">{{item.name}}</span></a></li>
{% endfor %}

View file

@ -0,0 +1,12 @@
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% if taxlist %}
<ul class="menulink">
<li>
{% for tax,value in taxlist[taxonomy]|sort %}
{% set active = uri.param(taxonomy) == tax? 'active' : '' %}
<a class="tags {{ active }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
{% endfor %}
</li>
</ul>
{% endif %}

View file

@ -0,0 +1,36 @@
{% extends 'partials/base.html.twig' %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
</div>
</header>
{{ page.content|raw}}
<!-- Portfolio -->
{% block portfolio %}
<section>
<div class="row">
{% for item in page.header.images %}
<div class="{{columns}} portfolio_item">
<a href="{{page.media[item.image].url}}" class="glightbox" data-width="100vw" data-zoomable="true" data-glightbox='title: {{item.title}}; description: {{item.description|raw}}'>
<span class="image fit"><img src="{{page.media[item.thumb].url}}" alt="image" /></span>
</a>
</div>
{% endfor %}
</div>
</section>
{% endblock %}
</article>
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}

View file

@ -0,0 +1,42 @@
{% extends 'partials/simplesearch_base.html.twig' %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %}
<article class="post simplesearch">
<header>
<div class="title">
{% block results %}
<div class="content-padding simplesearch">
<h1 class="search-header">{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS"|t }}</h1>
<div class="center">
{% include 'partials/simplesearch_searchbox_results.html.twig' %}
</div>
<p class="published" >
{% if query %}
{% set count = search_results ? search_results.count : 0 %}
{% if count is same as( 1 ) %}
{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_SINGULAR"|t(query|e)|raw }}
{% else %}
{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_PLURAL"|t(query|e, count)|raw }}
{% endif %}
{% endif %}
</p>
</div>
{% endblock %}
</div>
</header>
{% for page in search_results %}
{% include 'partials/simplesearch_item.html.twig' with {'page':page} %}
{% endfor %}
</article>
{% endblock %}
{% block sidebar %}
{% include 'partials/sidebar_left.html.twig' %}
{% endblock %}

BIN
thumbnail.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB