update
This commit is contained in:
BIN
themes/.DS_Store
vendored
Normal file
BIN
themes/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
themes/classic/.DS_Store
vendored
Normal file
BIN
themes/classic/.DS_Store
vendored
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -138,3 +138,22 @@ document.addEventListener("click", (event) => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
function moveContent(retries = 20) { // 20 * 500ms = 10s
|
||||
var eratyElement = document.getElementById("eraty");
|
||||
var wrapperElement = document.querySelector(".block-raty--wrapper");
|
||||
|
||||
if (eratyElement && wrapperElement) {
|
||||
var eratyContent = eratyElement.innerHTML;
|
||||
eratyElement.innerHTML = "";
|
||||
var newContent = document.createElement("div");
|
||||
newContent.innerHTML = eratyContent;
|
||||
wrapperElement.appendChild(newContent);
|
||||
} else if (retries > 0) {
|
||||
setTimeout(() => moveContent(retries - 1), 500);
|
||||
}
|
||||
}
|
||||
|
||||
moveContent();
|
||||
});
|
||||
|
||||
@@ -47,13 +47,13 @@
|
||||
<link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
|
||||
{/foreach}
|
||||
{/block}
|
||||
|
||||
|
||||
{block name='head_microdata'}
|
||||
{include file="_partials/microdata/head-jsonld.tpl"}
|
||||
{/block}
|
||||
|
||||
|
||||
{block name='head_microdata_special'}{/block}
|
||||
|
||||
|
||||
{block name='head_pagination_seo'}
|
||||
{include file="_partials/pagination-seo.tpl"}
|
||||
{/block}
|
||||
@@ -64,7 +64,7 @@
|
||||
<meta property="og:url" content="{$urls.current_url}" />
|
||||
<meta property="og:site_name" content="{$shop.name}" />
|
||||
{if !isset($product) && $page.page_name != 'product'}<meta property="og:type" content="website" />{/if}
|
||||
{/block}
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
{block name='head_viewport'}
|
||||
@@ -79,7 +79,7 @@
|
||||
{block name='stylesheets'}
|
||||
{include file="_partials/stylesheets.tpl" stylesheets=$stylesheets}
|
||||
{/block}
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
||||
{block name='javascript_head'}
|
||||
{include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars}
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user