zzwy2/view/article/serve.html

65 lines
2.3 KiB
HTML
Raw Normal View History

2022-10-08 09:31:39 +00:00
{layout name="layout_two"/}
{php}
use app\model\Article;
use app\model\Category;
use app\model\Block;
$position = Category::getPosition($category["id"]);
$childrenMenu = Category::getChildrenByParentId(Category::CATEGORY_SERVICE);
$blocks = Block::getByCategoryId(Category::CATEGORY_SERVE_BLOCK);
$blocks = Block::convertValue($blocks);
{/php}
<div class="bannerdata">
<div class="img">
<img src="{$category['src']}" alt="{$category['title']}">
</div>
</div>
<div class="searceboxtop">
<div class="cont w1360">
<div class="navminbox">
{$position|raw}
</div>
<div class="right">
{foreach $childrenMenu as $childrenMenuItem}
<a href="{:getUri($childrenMenuItem)}" {if $category["id"] ==$childrenMenuItem['id'] }class="on"{/if}>{$childrenMenuItem['title']}</a>
{/foreach}
</div>
</div>
</div>
<div class="contentboxer">
<div class="searceboxone searceproperty padding">
<div class="cont w1360">
<div class="img" style=" background: url({$blocks['bac_img']['value']}) no-repeat center; "><img src="{$blocks['bac_img']['value']}" ></div>
<div class="img imgphone" style=" background: url({$blocks['bac_img_mobile']['value']}) no-repeat center / cover; ">
<img src="{$blocks['bac_img_mobile']['value']}" ></div>
<div class="text">
<div>
<div class="h1 wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">{$blocks['Propertyservices']['value']}</div>
<div class="h2 wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.1s">{$blocks['services']['value']}</div>
<div class="em wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.2s"></div>
<div class="p wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.3s">
{$blocks['tixi']['value']|raw}
</div>
<div class="e wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.4s">
{$blocks['tixi_en']['value']|raw}
</div>
</div>
</div>
</div>
</div>
<div class="searceboxtwo">
{foreach $items as $item}
<div class="cont w1360">
<div class="left">
<div class="h1">{$item["title"]}</div>
<div class="p">
{$item["content"]|raw}
</div>
</div>
<div class="right"><img src="{$item['src']}" ></div>
</div>
{/foreach}
</div>
</div>