Browse Source

fix(single_index): update links to use getMuiLangUrl for language-specific URLs

master
peijunlei 2 weeks ago
parent
commit
97832c8a11
  1. 14
      public/themes/website/1/en/demo/single_index.html

14
public/themes/website/1/en/demo/single_index.html

@ -81,7 +81,7 @@
<h1 class="section__title section__title--hero">{$vo.sub_title|raw}</h1> <h1 class="section__title section__title--hero">{$vo.sub_title|raw}</h1>
<p class="section__desc">{$vo.description ?? ''}</p> <p class="section__desc">{$vo.description ?? ''}</p>
{hcTaglib:category id="$ui_product" item="vo" field="*"} {hcTaglib:category id="$ui_product" item="vo" field="*"}
<a class="s-btn s-btn--primary s-btn--pill" href="{$vo.alias ?? '/'}">Explore more</a>
<a class="s-btn s-btn--primary s-btn--pill" href="{:getMuiLangUrl($vo.alias ?? '/')}">Explore more</a>
{/hcTaglib:category} {/hcTaglib:category}
</div> </div>
{if !empty($news[$key-1])} {if !empty($news[$key-1])}
@ -150,7 +150,7 @@
{hcTaglib:allSubCategory pid="$ui_product" field="*" max-level="2" item="vo" sort="sort asc" key="key"} {hcTaglib:allSubCategory pid="$ui_product" field="*" max-level="2" item="vo" sort="sort asc" key="key"}
<article class="swiper-slide section-1__item"> <article class="swiper-slide section-1__item">
{hcTaglib:category id="$vo.id" item="vv" field="*"} {hcTaglib:category id="$vo.id" item="vv" field="*"}
<a href="{$vv.alias}?cat=product-control-{$vv.id}">
<a href="{:getMuiLangUrl($vv.alias)}?cat=product-control-{$vv.id}">
<div class="section-1__head"> <div class="section-1__head">
<span class="section-1__icon" aria-hidden="true"> <span class="section-1__icon" aria-hidden="true">
{if $key == 1} {if $key == 1}
@ -736,7 +736,7 @@
</div> </div>
<div class="section-1__more"> <div class="section-1__more">
{hcTaglib:category id="$ui_product" item="vo" field="*"} {hcTaglib:category id="$ui_product" item="vo" field="*"}
<a class="s-btn s-btn--primary s-btn--pill" href="{$vo.alias ?? '/'}">Explore more</a>
<a class="s-btn s-btn--primary s-btn--pill" href="{:getMuiLangUrl($vo.alias ?? '/')}">Explore more</a>
{/hcTaglib:category} {/hcTaglib:category}
</div> </div>
<div class="section-1__more mobile"> <div class="section-1__more mobile">
@ -786,7 +786,7 @@
<li class="glass-card">{$vv.title}</li> <li class="glass-card">{$vv.title}</li>
{/volist} {/volist}
</ul> </ul>
<a class="s-btn s-btn--light s-btn--pill" href="{$vo.children.0.alias ?? 'solution2.html'}">Explore more</a>
<a class="s-btn s-btn--light s-btn--pill" href="{:getMuiLangUrl($vo.children.0.alias ?? '/solution2.html')}">Explore more</a>
</div> </div>
</article> </article>
{/hcTaglib:allSubCategory} {/hcTaglib:allSubCategory}
@ -829,7 +829,7 @@
<div class="section-3__card-body"> <div class="section-3__card-body">
<h3 class="section-3__card-title">{$vo.title ?? ''}</h3> <h3 class="section-3__card-title">{$vo.title ?? ''}</h3>
<p class="section-3__card-desc">{$vo.description ?? ''}</p> <p class="section-3__card-desc">{$vo.description ?? ''}</p>
<a class="section-3__link" href="{$vo.url ?? ''}">
<a class="section-3__link" href="{:getMuiLangUrl($vo.url ?? '/')}">
Explore more Explore more
<svg viewBox="0 0 16.502 6.66113" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16.501953" height="6.661133" fill="none" customFrame="#000000"> <svg viewBox="0 0 16.502 6.66113" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16.501953" height="6.661133" fill="none" customFrame="#000000">
<path <path
@ -882,7 +882,7 @@
<div class="section-5__header"> <div class="section-5__header">
<h2 class="section__title">{$sub_cates[5]['title']}</h2> <h2 class="section__title">{$sub_cates[5]['title']}</h2>
{hcTaglib:category id="$ui_news" item="vo" field="*"} {hcTaglib:category id="$ui_news" item="vo" field="*"}
<a class="s-btn s-btn--primary s-btn--pill m-none" href="{$vo.alias ?? '/'}">Explore more</a>
<a class="s-btn s-btn--primary s-btn--pill m-none" href="{:getMuiLangUrl($vo.alias ?? '/')}">Explore more</a>
{/hcTaglib:category} {/hcTaglib:category}
</div> </div>
<div class="section-5__body"> <div class="section-5__body">
@ -941,7 +941,7 @@
</div> </div>
<div class="section-5__more d-flex pc-none justify-content-center pt-5"> <div class="section-5__more d-flex pc-none justify-content-center pt-5">
{hcTaglib:category id="$ui_news" item="vo" field="*"} {hcTaglib:category id="$ui_news" item="vo" field="*"}
<a class="s-btn s-btn--primary s-btn--pill" href="{$vo.alias ?? ''}">Explore more</a>
<a class="s-btn s-btn--primary s-btn--pill" href="{:getMuiLangUrl($vo.alias ?? '/')}">Explore more</a>
{/hcTaglib:category} {/hcTaglib:category}
</div> </div>
</div> </div>

Loading…
Cancel
Save