-
Notifications
You must be signed in to change notification settings - Fork 146
/
Homepage.twig
50 lines (39 loc) · 2.13 KB
/
Homepage.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{% extends getPartial('page-design') %}
{% import "Ceres::PageDesign.Macros.LayoutContainer" as LayoutContainer %}
{% set showDefaultHomepage = config("Ceres.default.homepage") %}
{% set companyLogo = config("Ceres.header.company_logo") %}
{% set companyName = trans("Ceres::Template.headerCompanyName") %}
{% block PartialHead %}
<meta name="description" content="{{ trans('Ceres::Template.homepageMetaDescription') }}">
<meta name="robots" content="{% if forceNoIndex %}NOINDEX{% else %}{{ config("Ceres.meta.robots_home") }}{% endif %}">
<meta property="og:title" content="{{ companyName }}"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="{{ services.webstoreConfig.getWebstoreConfig().domainSsl }}"/>
<meta property="og:image"
content="{% if ('http' in companyLogo) or ('layout/' in companyLogo) %}{{ companyLogo }}{% else %}{{ plugin_path('Ceres') }}/{{ companyLogo }}{% endif %}"/>
<script type="application/ld+json">
{"@context": "http://schema.org","@type": "WebSite","url": "{{ services.webstoreConfig.getWebstoreConfig().domainSsl }}","potentialAction":{"@type": "SearchAction","target": "{{ services.webstoreConfig.getWebstoreConfig().domainSsl ~ urls.search }}?query={search_term}","query-input": "required name=search_term"}}
</script>
<title>{{ companyName }}</title>
{% endblock %}
{% block PageBody %}
{% if ceresConfig.homepage.showShopBuilderContent or request.get('isContentBuilder') == 1 %}
<div class="container-max">
<div class="row">
<div class="col">
{% for content in container("Ceres::Homepage") if content.plugin == "Plenty" %}
{{ content.result|raw }}
{% endfor %}
</div>
</div>
</div>
{% else %}
{% if showDefaultHomepage == "true" %}
{% include 'Ceres::Homepage.MarketingHomepage.twig' %}
{% else %}
{% block ThemeHomepage %}
{% include 'Ceres::Homepage.DefaultHomepage.twig' %}
{% endblock %}
{% endif %}
{% endif %}
{% endblock %}