Skip to content

Commit feb93a9

Browse files
committed
custom templates for ProEvents Plugin
1 parent 18167c9 commit feb93a9

File tree

17 files changed

+347
-114
lines changed

17 files changed

+347
-114
lines changed

assets/javascript/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ jumplink.initMomentDataApi = function () {
4343
var date = moment($this.data('momentDisplayFromNow')).fromNow();
4444
$this.text(date);
4545
});
46+
47+
var $displayToNow = $('[data-moment-display-to-now]');
48+
$displayToNow.each(function () {
49+
$this = $(this);
50+
var date = moment($this.data('momentDisplayToNow')).fromNow();
51+
$this.text(date);
52+
});
4653
}
4754

4855
jumplink.setLanguage = function () {

assets/scss/_carousel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
height: calc(100vh - 8px) !important; // 2 x 4px for the gradient border
2626
.slick-slide {
2727
background-position: center center;
28-
background-size: 30% 100%;
28+
background-size: 30% auto;
2929
background-repeat: no-repeat;
3030
width: calc(100vw - 8px) !important; // 2 x 4px for the gradient border
3131
height: calc(100vh - 8px) !important; // 2 x 4px for the gradient border
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
title = "Termin"
2+
url = "/termine/:event_id"
3+
layout = "jumplink-barba-default-page"
4+
description = "Termin Detail Ansicht"
5+
is_hidden = 0
6+
contentType = "html"
7+
8+
[proEvent]
9+
event_id = ":event_id"
10+
==
11+
{#<nav class="row breadcrumb bg-white">
12+
<a class="breadcrumb-item text-warning" href="/">Start</a>
13+
<a class="breadcrumb-item text-warning" href="/termine">Termine</a>
14+
<span class="breadcrumb-item active">{{ event_item.title }}</span>
15+
</nav>#}
16+
17+
{% partial 'PluginProevents/event_detail' %}

pages/PluginProevents/kalender.htm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
title = "Kalender"
2+
url = "/kalender"
3+
layout = "jumplink-barba-default-page-fluid"
4+
is_hidden = 0
5+
contentType = "html"
6+
7+
[proEventCalendar]
8+
eventpage = "ProEvents/event-details"
9+
style = "responsive"
10+
calendar = "all_calendars"
11+
eurocal = 1
12+
ical = 1
13+
==
14+
{% partial 'PluginProevents/calendar' __SELF__=proEventCalendar %}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@
1414
num = 100
1515
pagination = 0
1616
==
17-
{% component 'PluginProEventList' %}
17+
{#<nav class="row breadcrumb bg-white">
18+
<a class="breadcrumb-item text-warning" href="/">Start</a>
19+
<span class="breadcrumb-item active">{{this.page.title}}</span>
20+
</nav>#}
21+
22+
{% partial 'PluginProevents/event_list' %}

pages/ProEvents/event-details.htm

Lines changed: 0 additions & 11 deletions
This file was deleted.

partials/PluginCatalogProductDetails/default.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h2 itemprop=”name” content="{{ product.title }}" class="font-handwritten">
6161
{% endif %}
6262
</div>
6363

64-
{% if product.sku is defined and show_sku %}
64+
{% if product.sku is defined and product.sku|length > 0 and show_sku %}
6565
<div itemprop="gtin13" content="{{ product.sku }}" class="w-100">
6666
EAN {{ product.sku }}
6767
<a href="https://www.ean-search.org/perl/ean-search.pl?q={{ product.sku }}" target="_blank">
@@ -70,7 +70,7 @@ <h2 itemprop=”name” content="{{ product.title }}" class="font-handwritten">
7070
</div>
7171
{% endif %}
7272

73-
{% if product.specifications is defined and show_specifications_link %}
73+
{% if product.specifications is defined and product.specifications|length > 0 and show_specifications_link %}
7474
Weitere Informationen
7575
<a href="{{product.specifications | replace({'{{base_specifications_url}}': this.theme.router_base_specifications_url, '{{brand}}': product.brand.slug, '{{name}}': product.slug})}}" target="_blank" class="specifications">
7676
{% partial "jumplink-iconset" name="arrow_back" color="link-color" direction="up" size=16 class="" %}

partials/PluginProEventList/default.htm

Lines changed: 0 additions & 5 deletions
This file was deleted.

partials/PluginProEventList/footer_list.htm

Lines changed: 0 additions & 22 deletions
This file was deleted.

partials/PluginProEventList/show_schedule.htm

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)