Skip to content

Commit

Permalink
Add dist files for custom theme
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Oct 2, 2024
1 parent b0ebc1a commit 7126d15
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dist/themes/cms-custom-theme/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "monsieurbiz/cms-custom-theme",
"title": "CMS custom theme",
"extra": {
"sylius-theme": {
"title": "CMS custom theme"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% extends '@SyliusShop/layout.html.twig' %}

{% set metaTitle = page.metaTitle ? page.metaTitle : page.title %}

{% block title %}{{ metaTitle }}{% endblock %}

{% block metatags %}
{{ parent() }}
<meta property="og:type" content="page" />
{% if metaTitle is not empty %}
<meta property="og:title" content="{{ metaTitle }}"/>
{% endif %}
{% if page.metaDescription is not empty %}
<meta name="description" property="og:description" content="{{ page.metaDescription }}"/>
{% endif %}
{% if page.metaKeywords is not empty %}
<meta name="keywords" content="{{ page.metaKeywords }}"/>
{% endif %}
{% endblock %}

{% block content %}
<div style="background-color: #f8f9fa; margin-top: 50px; padding: 50px; border-radius: 5px; margin-bottom: 20px;">
<h1 class="ui monster dividing header">{{ page.title }}</h1>
<div>
{{ page.content|monsieurbiz_richeditor_render_field }}
</div>
</div>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{#
UI Element template
type: text
element fields :
content
align
#}
{% set align = element.align is defined and element.align is not empty ? element.align : 'inherit' %}
{% if element is not empty and element.content is not empty %}
<div style="text-align: {{align}};background-color: #dfe0e1; padding: 20px;">
{{ element.content | raw }}
</div>
{% endif %}

0 comments on commit 7126d15

Please sign in to comment.