Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #8 #9

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/modular/features.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section id="features" class="section-features text-center">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-features text-center">
<div class="container">
<div class="row">
{{ page.content }}
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/form.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section class="section-signup bg-faded">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-signup bg-faded">
<div class="container">
{{ page.content }}

Expand Down
4 changes: 3 additions & 1 deletion templates/modular/intro.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section class="section-intro bg-faded text-center hidden-overflow">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-intro bg-faded text-center hidden-overflow">
<div class="container">
{% if page.header.title %}
<h3 class="wp wp-1">{{ page.header.title }}</h3>
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/news.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section id="news" class="section-news">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-news">
<div class="container">
<h3 class="sr-only">{{ page.header.title }}</h3>
<div class="bg-inverse">
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/pricing.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section id="subscriptions" class="section-pricing bg-faded text-center">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-pricing bg-faded text-center">
<div class="container">
{{ page.content }}
{% if page.header.pricing %}
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/testimonials.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section class="section-testimonials text-center bg-inverse">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-testimonials text-center bg-inverse">
<div class="container">
{{ page.content }}
<div id="carousel-testimonials" class="carousel slide" data-ride="carousel" data-interval="0">
Expand Down
4 changes: 3 additions & 1 deletion templates/modular/text.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<section class="section-text">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

<section id="{{ _self.pageLinkName(page.menu) }}" class="section-text">
<div class="container">
{{ page.content }}
{% for row in page.header.text|batch(2) %}
Expand Down
3 changes: 2 additions & 1 deletion templates/modular/video.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

{% for video in page.header.videos %}
<section class="section-video bg-inverse text-center wp wp-4">
<section id="{{ _self.pageLinkName(page.menu) }}" class="section-video bg-inverse text-center wp wp-4">
<video id="video{{ loop.index }}" class="video-js vjs-default-skin vjs-big-play-centered" controls poster="{{ page.media[video.poster].url }}" data-setup='{}'>
{% for source in video.sources %}
<source src="{{ source.url }}" type='{{ source.type }}'>
Expand Down