contact form
parent
235a51bba6
commit
eec8d976d1
|
@ -53,7 +53,7 @@
|
|||
%}
|
||||
|
||||
<script>
|
||||
console.log("16", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {% render "shx-current-page" %})
|
||||
console.log("16", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {% render "shx-get-current-page" %})
|
||||
|
||||
</script>
|
||||
|
||||
|
@ -74,8 +74,12 @@
|
|||
{% liquid
|
||||
assign scheme_id = ""
|
||||
|
||||
capture shx_current_page
|
||||
render "shx-get-current-page"
|
||||
endcapture
|
||||
|
||||
if scheme.id == "scheme-main-navbar"
|
||||
if page.url == "/pages/texte" or product.tags contains "shx-texte"
|
||||
if shx_current_page == "texte"
|
||||
assign scheme_id = "scheme-shx-texte-navbar"
|
||||
elsif page.url == "/pages/figuren" or product.tags contains "shx-figuren"
|
||||
assign scheme_id = "scheme-shx-figuren-navbar"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% liquid
|
||||
assign current_page = "test"
|
||||
assign shx_current_page = "test"
|
||||
assign shx_texte = "texte"
|
||||
assign shx_figuren = "figuren"
|
||||
assign shx_contact = "contact"
|
||||
|
@ -16,12 +16,12 @@
|
|||
assign shx_contact_url = page_url | append: shx_contact
|
||||
|
||||
if page.url == shx_texte_url or product.tags contains shx_texte_tag
|
||||
assign current_page = shx_texte
|
||||
assign shx_current_page = shx_texte
|
||||
elsif page.url == shx_figuren_url or product.tags contains shx_figuren_tag
|
||||
assign current_page = shx_figuren
|
||||
assign shx_current_page = shx_figuren
|
||||
elsif page.url == shx_contact_url
|
||||
assign current_page = shx_contact
|
||||
assign shx_current_page = shx_contact
|
||||
endif
|
||||
%}
|
||||
|
||||
"{{ current_page }}"
|
||||
"{{ shx_current_page }}"
|
Loading…
Reference in New Issue