mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-07-03 16:48:53 +00:00
Deleted downloads, events, gallery and guestbook templates. Revert intro.scss and main.css
This commit is contained in:
parent
05ff054002
commit
f8d3709d42
7 changed files with 3209 additions and 311 deletions
|
@ -15,6 +15,20 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 4em;
|
width: 4em;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px" viewBox="0 0 100 100" preserveAspectRatio="none" zoomAndPan="disable"><polygon points="0,0 100,0 100,25 50,0 0,25" style="fill:#{_palette(bg-alt)}" /><polygon points="0,100 100,100 100,75 50,100 0,75" style="fill:#{_palette(bg-alt)}" /></svg>');
|
||||||
|
background-position: top left;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
margin-left: -0.25em;
|
margin-left: -0.25em;
|
||||||
|
|
3150
assets/sass/main.css
Normal file
3150
assets/sass/main.css
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,45 +0,0 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
|
||||||
|
|
||||||
{% if page.header.show_breadcrumbs is defined %}
|
|
||||||
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
|
|
||||||
{% else %}
|
|
||||||
{% set show_breadcrumbs = true %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% block menu %}
|
|
||||||
{% include 'partials/sidebar_right.html.twig' %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<article class="post">
|
|
||||||
<header>
|
|
||||||
<div class="title">
|
|
||||||
<h2>{{ page.header.title }}</h2>
|
|
||||||
{% if page.header.subtitle %}
|
|
||||||
<p>{{ page.header.subtitle }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
{{ page.content|raw}}
|
|
||||||
|
|
||||||
<table>
|
|
||||||
{% for file in page.media.files %}
|
|
||||||
{% for type in page.header.file_types %}
|
|
||||||
{% if file.extension == type.extension or type.extension == '*' %}
|
|
||||||
<tr>
|
|
||||||
{% include 'partials/download_item.html.twig' with {file: file} %}
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<section id="footer" class="align-center">
|
|
||||||
{% include 'partials/footer.html.twig' %}
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
|
|
@ -1,43 +0,0 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
|
||||||
|
|
||||||
{% if page.header.show_breadcrumbs is defined %}
|
|
||||||
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
|
|
||||||
{% else %}
|
|
||||||
{% set show_breadcrumbs = true %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% block menu %}
|
|
||||||
{% include 'partials/sidebar_right.html.twig' %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<article class="post">
|
|
||||||
<header>
|
|
||||||
<div class="title">
|
|
||||||
<h2>{{ page.header.title }}</h2>
|
|
||||||
{% if page.header.subtitle %}
|
|
||||||
<p>{{ page.header.subtitle }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="meta">
|
|
||||||
<time class="published" itemprop="datePublished" datetime="{{page.date|dateTranslate(grav.config.system.pages.dateformat.long)}}">{{ page.date|dateTranslate(grav.config.system.pages.dateformat.long)}}</time>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="event-container">
|
|
||||||
<section class="event-listing">
|
|
||||||
{% include 'partials/event_item.html.twig' with { 'event': page.parent, 'single': true } %}
|
|
||||||
</section>
|
|
||||||
{% include 'partials/events_sidebar.html.twig' with { 'page': page.parent } %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<section id="footer" class="align-center">
|
|
||||||
{% include 'partials/footer.html.twig' %}
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
|
|
@ -1,51 +0,0 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
|
||||||
|
|
||||||
{% set collection = page.collection() %}
|
|
||||||
{% if page.header.show_breadcrumbs is defined %}
|
|
||||||
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
|
|
||||||
{% else %}
|
|
||||||
{% set show_breadcrumbs = true %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% block menu %}
|
|
||||||
{% include 'partials/sidebar_right.html.twig' %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<article class="post">
|
|
||||||
<header>
|
|
||||||
<div class="title">
|
|
||||||
<h2>{{ page.header.title }}</h2>
|
|
||||||
{% if page.header.subtitle %}
|
|
||||||
<p>{{ page.header.subtitle }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
{{ page.content|raw }}
|
|
||||||
|
|
||||||
<div class="events-container">
|
|
||||||
<section class="events-listing">
|
|
||||||
{% if collection|length != 0 %}
|
|
||||||
{% for event in collection %}
|
|
||||||
{% include 'partials/event_item.html.twig' with { 'page': event, 'single': false } %}
|
|
||||||
{% endfor %}
|
|
||||||
{% else %}
|
|
||||||
<h3>{{ "PLUGIN_EVENTS.EVENTS.NO_EVENTS_TITLE"|t }}</h3>
|
|
||||||
<p>{{ ("PLUGIN_EVENTS.EVENTS.NO_EVENTS_CONTENT"|t(uri.param('category')))|markdown }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
|
|
||||||
{% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<section id="footer" class="align-center">
|
|
||||||
{% include 'partials/footer.html.twig' %}
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
|
|
@ -1,39 +0,0 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
|
||||||
|
|
||||||
{% if page.header.show_breadcrumbs is defined %}
|
|
||||||
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
|
|
||||||
{% else %}
|
|
||||||
{% set show_breadcrumbs = true %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% block menu %}
|
|
||||||
{% include 'partials/sidebar_right.html.twig' %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<article class="post">
|
|
||||||
<header>
|
|
||||||
<div class="title">
|
|
||||||
<h2>{{ page.header.title }}</h2>
|
|
||||||
{% if page.header.subtitle %}
|
|
||||||
<p>{{ page.header.subtitle }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
{{ page.content|raw}}
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<div class="modular-row gallery-container {{ page.header.class }}">
|
|
||||||
{{ unite_gallery(page.media.images) }}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<section id="footer" class="align-center">
|
|
||||||
{% include 'partials/footer.html.twig' %}
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
|
||||||
|
|
||||||
{% if page.header.show_breadcrumbs is defined %}
|
|
||||||
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
|
|
||||||
{% else %}
|
|
||||||
{% set show_breadcrumbs = true %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% block menu %}
|
|
||||||
{% include 'partials/sidebar_right.html.twig' %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<article class="post">
|
|
||||||
<header>
|
|
||||||
<div class="title">
|
|
||||||
<h2>{{ page.header.title }}</h2>
|
|
||||||
{% if page.header.subtitle %}
|
|
||||||
<p>{{ page.header.subtitle }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
{{ page.content|raw}}
|
|
||||||
|
|
||||||
{% include "forms/form.html.twig" %}
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
var currentPage = 0;
|
|
||||||
|
|
||||||
$(document).on('click tap', '.js__load-more', function(event) {
|
|
||||||
$.getJSON(window.location + '/page:' + (currentPage + 1))
|
|
||||||
.success(function(response) {
|
|
||||||
currentPage = parseInt(response.page);
|
|
||||||
|
|
||||||
response.messages.forEach(function(message) {
|
|
||||||
$('.js__messages-container').append('<tr>' +
|
|
||||||
'<td>' + message.text + '<br />{{'PLUGIN_GUESTBOOK.WRITTEN_ON'|t}} ' + message.date + ' {{'PLUGIN_GUESTBOOK.BY'|t}} ' + message.author + '</td></tr>');
|
|
||||||
});
|
|
||||||
|
|
||||||
var totalRetrieved = response.itemsPerPage * (parseInt(response.page) + 1);
|
|
||||||
|
|
||||||
$('.totalRetrieved').html(totalRetrieved);
|
|
||||||
$('.totalAvailable').html(response.totalAvailable);
|
|
||||||
|
|
||||||
if (totalRetrieved >= response.totalAvailable) {
|
|
||||||
$('.totalRetrieved').html($('.totalAvailable').html());
|
|
||||||
$('.js__load-more').hide();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.error(function() {
|
|
||||||
alert('Unexpected error');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{% block item %}
|
|
||||||
{% if grav.twig.guestbookMessages|length %}
|
|
||||||
<h2>{{'PLUGIN_GUESTBOOK.MESSAGES'|t}}</h2>
|
|
||||||
|
|
||||||
{% for child in grav.twig.guestbookMessages.messages %}
|
|
||||||
{% set child = child|merge({'title': child.author}) %}
|
|
||||||
{% set child = child|merge({'content': child.text}) %}
|
|
||||||
{% include 'partials/guestbook_item.html.twig' with {'page':child, 'truncate':false} %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if grav.twig.guestbookMessages.totalRetrieved < grav.twig.guestbookMessages.totalAvailable %}
|
|
||||||
<form>
|
|
||||||
<div class="buttons">
|
|
||||||
<button type="button" class="button js__load-more">
|
|
||||||
Load more
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<section id="footer" class="align-center">
|
|
||||||
{% include 'partials/footer.html.twig' %}
|
|
||||||
</section>
|
|
||||||
{% endblock %}
|
|
Loading…
Add table
Reference in a new issue