Skip to content

Commit

Permalink
Merge pull request #124 from Voog/122_123_design_improvements
Browse files Browse the repository at this point in the history
Add various design improvements
  • Loading branch information
PeeterPaal authored May 24, 2022
2 parents 17957ac + bca4130 commit feb0eda
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 20 deletions.
4 changes: 3 additions & 1 deletion components/footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="footer-inner formatted">
<div class="cfx">
{% include "search" %}
{% xcontent name="footer" %}

{%- assign footer_content_title_tooltip = "content_tooltip_all_pages_same_language" | lce -%}
{% xcontent name="footer" title_tooltip=footer_content_title_tooltip %}
</div>
<div class="voog-reference">{% loginblock %}{{ "footer_login_link" | lc }}{% endloginblock %}</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/template-meta.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
{% endfor %}
{% endif %}
{% else %}
{% if og_obj.image? %}
{% assign og_image = og_obj.image.for-width-1200 %}
{% if og_obj.og_image? %}
{% assign og_image = og_obj.og_image.for-width-1200 %}
{% endif %}
{% endif %}

Expand Down
28 changes: 25 additions & 3 deletions layouts/auto_generated_product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@

{%- assign gallery_content_size = gallery_content_html | strip | size -%}

{%- capture product_social_html -%}
{%- unless editmode -%}
{%- xcontent name="product-social" -%}
{%- endunless -%}
{%- endcapture -%}

{%- assign product_social_size = product_social_html | strip | size -%}

<body class="{% if site.search.enabled %}search-enabled{% endif %}{% if editmode %} editmode{% endif %}">
<div class="wrap cfx">
{% include "langmenu" %}
Expand Down Expand Up @@ -60,7 +68,9 @@

{%- if gallery_content_size > 0 or editmode -%}
<section class="mar_0-8 content-body content-formatted mar_t-32 js-product-gallery" data-search-indexing-allowed="true">
{% content bind=product name="gallery" %}
{%- assign gallery_title = "gallery" | lce -%}
{%- assign gallery_title_tooltip = "content_tooltip_additional_images" | lce -%}
{% content bind=product name="gallery" title=gallery_title title_tooltip=gallery_title_tooltip %}
</section>
{% endif -%}
</div>
Expand Down Expand Up @@ -90,7 +100,17 @@
{% include "buy-button" %}
</div>

{% content bind=product %}
{%- if editmode or product_social_size > 0 -%}
<div class="product-cross-page-info">
{%- assign cross_page_info_title = "cross_page_info" | lce -%}
{%- assign cross_page_info_title_tooltip = "content_tooltip_all_pages_same_type" | lce -%}
{% xcontent name="product-social" title=cross_page_info_title title_tooltip=cross_page_info_title_tooltip %}
</div>
{%- endif -%}

{%- assign content_default_title = "content" | lce -%}
{%- assign content_default_title_tooltip = "content_tooltip_specific_page" | lce -%}
{% content bind=product title=content_default_title title_tooltip=content_default_title_tooltip %}
</section>
</div>
</div>
Expand All @@ -100,7 +120,9 @@
<section
class="content-product-wide content-area mar_0-8"
data-search-indexing-allowed="true">
{% content bind=product name="content" %}
{%- assign bottom_content_title = "additional_content" | lce -%}
{%- assign bottom_content_title_tooltip = "content_tooltip_additional_information" | lce -%}
{% content bind=product name="content" title=bottom_content_title title_tooltip=bottom_content_title_tooltip %}
</section>
{%- endif -%}

Expand Down
6 changes: 4 additions & 2 deletions layouts/blog___news.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
{% endif %}
</nav>
</div>
<section class="content blog-content inner cfx" {{ edy_intro_edit_text }}>
{% content %}
<section class="content blog-content inner cfx">
{%- assign content_default_title = "content" | lce -%}
{%- assign content_default_title_tooltip = "content_tooltip_specific_page" | lce -%}
{% content title=content_default_title title_tooltip=content_default_title_tooltip %}
{% if editmode %}
<div class="addbutton">{% addbutton %}</div>
{% endif %}
Expand Down
9 changes: 7 additions & 2 deletions layouts/blog_article.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@
</header>
<section class="post-content">
<div class="post-excerpt cfx formatted">{% editable article.excerpt %}</div>
<div class="post-body cfx formatted" {{ edy_intro_edit_text }}>{% editable article.body %}</div>
<div class="post-body cfx formatted">{% content name="additional_body" bind="Article" %}</div>
<div class="post-body cfx formatted">{% editable article.body %}</div>

{%- assign bottom_content_title = "additional_content" | lce -%}
{%- assign bottom_content_title_tooltip = "content_tooltip_additional_information" | lce -%}
<div class="post-body cfx formatted">
{% content name="additional_body" bind="Article" title=bottom_content_title title_tooltip=bottom_content_title_tooltip %}
</div>

{% if editmode %}
<div class="post-tags">
Expand Down
13 changes: 10 additions & 3 deletions layouts/common_page.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@
<div class="container-wrap cfx">
<div class="container">
{% include "submenu" %}
<section class="content cfx formatted" {{ edy_intro_edit_text }}>
{% contentblock name="content_header" publish_default_content="true" %}<h1>{{ page.title }}</h1>{% endcontentblock %}
{% content %}
<section class="content cfx formatted">
{%- assign page_title_content_title = "title" | lce -%}
{%- assign page_title_content_title_tooltip = "content_tooltip_current_page_title" | lce -%}
{% contentblock name="content_header" publish_default_content="true" title=page_title_content_title title_tooltip=page_title_content_title_tooltip %}
<h1>{{ page.title }}</h1>
{% endcontentblock %}

{%- assign content_default_title = "content" | lce -%}
{%- assign content_default_title_tooltip = "content_tooltip_specific_page" | lce -%}
{% content title=content_default_title title_tooltip=content_default_title_tooltip %}
</section>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions layouts/front_page.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
<section class="content formatted js-background-type {{ front_page_content_cover_type }}">
<div class="tbl">
<div class="tbl-row">
<div class="tbl-cell" {{ edy_intro_edit_text }}>
{% content %}
<div class="tbl-cell">
{%- assign content_default_title = "content" | lce -%}
{%- assign content_default_title_tooltip = "content_tooltip_specific_page" | lce -%}
{% content title=content_default_title title_tooltip=content_default_title_tooltip %}
</div>
</div>
</div>
Expand Down
10 changes: 8 additions & 2 deletions layouts/product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,21 @@
{%- endif -%}
</div>
<section class="content-body content-formatted mar_0-32 mar_t-32" data-search-indexing-allowed="true">
{% content name="gallery" %}
{%- assign gallery_title = "gallery" | lce -%}
{%- assign gallery_title_tooltip = "content_tooltip_additional_images" | lce -%}
{% content name="gallery" title=gallery_title title_tooltip=gallery_title_tooltip %}
</section>
</div>

<div class="flex_row-2--item-50">
<div class="mar_0-32 flex_col t-sticky">
<section class="content-body content-formatted js-buy-btn-content"
data-search-indexing-allowed="true">
{% contentblock %}{{ "write_product_description_here" | lc: editor_locale }}{% endcontentblock %}
{%- assign content_default_title = "content" | lce -%}
{%- assign content_default_title_tooltip = "content_tooltip_specific_page" | lce -%}
{% contentblock title=content_default_title title_tooltip=content_default_title_tooltip %}
{{ "write_product_description_here" | lc: editor_locale }}
{% endcontentblock %}
</section>
</div>
</div>
Expand Down
10 changes: 8 additions & 2 deletions layouts/product_list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@
<div class="container">
{% include "submenu" %}
<section class="content cfx formatted" {{ edy_intro_edit_text }}>
{% contentblock name="content_header" publish_default_content="true" %}<h1>{{ page.title }}</h1>{% endcontentblock %}
{%- assign page_title_content_title = "title" | lce -%}
{%- assign page_title_content_title_tooltip = "content_tooltip_current_page_title" | lce -%}
{% contentblock name="content_header" publish_default_content="true" title=page_title_content_title title_tooltip=page_title_content_title_tooltip %}
<h1>{{ page.title }}</h1>
{% endcontentblock %}
{% include 'menu-breadcrumbs' %}
{% include 'product-list-block' %}
<div class="product-list-content" data-search-indexing-allowed="true">
{% content %}
{%- assign content_default_title = "content" | lce -%}
{%- assign content_default_title_tooltip = "content_tooltip_specific_page" | lce -%}
{% content title=content_default_title title_tooltip=content_default_title_tooltip %}
</div>
</section>
</div>
Expand Down
4 changes: 4 additions & 0 deletions sources/stylesheets/layouts/_auto-generated-product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
background-repeat: no-repeat;
background-position: center;
}

.product-cross-page-info {
margin-bottom: 32px;
}
}

.product-price {
Expand Down
4 changes: 4 additions & 0 deletions stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3371,6 +3371,10 @@ body .edy-settings-editor:not(.editor_default) .edy-popover-content .edy-setting
background-position: center;
}

.product-content .product-cross-page-info {
margin-bottom: 32px;
}

.product-price {
padding: 8px 0 24px 0;
}
Expand Down
2 changes: 1 addition & 1 deletion stylesheets/main.min.css

Large diffs are not rendered by default.

0 comments on commit feb0eda

Please sign in to comment.