Достали из нашей базы в ЛК, отряхнули от спана Espo и выкатили сюда. Код — чёрные блоки, как любим.
[ [*id:in=`1,14`:then=`[ [$schemaContacts.tpl]]`:else=`[ [$schema.tpl]]`]]
schemaContacts.tpl
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Organization", "address": { "@type": "PostalAddress", "addressLocality": "[ [++prod-address]]", "postalCode": "174511" }, "email": "[ [++email]]", "faxNumber": "[ [++sales_phone]]", "member": [ { "@type": "Organization" }, { "@type": "Organization" } ], "name": "Строительство деревянных домов под ключ eco wood house", "telephone": "[ [++sales_phone]]" } </script>
schema.tpl
[ [!pdoCrumbs?
&showHome = `1`
&tplWrapper = `@INLINE <script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement":
[ {{+output}} ]
}
</script>`
&tplHome = `@INLINE {
"@type": "ListItem",
"position": [ [+idx]],
"item":
{
"@id": "[ [+link]]",
"name": "[ [+menutitle]]"
}
},`
&tplCurrent = `@INLINE {
"@type": "ListItem",
"position": [ [+idx]],
"item":
{
"@id": "[ [+link]]",
"name": "[ [+menutitle]]"
}
}`
&tpl = `@INLINE {
"@type": "ListItem",
"position": [ [+idx]],
"item":
{
"@id": "[ [+link]]",
"name": "[ [+menutitle]]"
}
},`
]]
Комментарии
Комментарии (0)