{% extends 'themes/ismart/base.html.twig' %}{% block body %} <main class="article-main"> <section class="ac-detail-content-container"> <div class="ac-detail-header" style="background-image: url({{ asset('themes/ismart/img/article/article-bg-header.jpeg') }})"> <div class="ac-detail-header-title"><span>{{ post.category.title }}</span></div> </div> {% set locale = app.request.get('_locale') %} <div class="container"> <div class="ac-detail-breadcrumbs"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="{{ url('frontend_site_default',{'_locale':locale}) }}">iSMART</a></li> {% if post.category.parent is not empty %} <li class="breadcrumb-item"><a href="{{ post.category.parent.customPath }}">{{ post.category.parent.title }}</a></li> <li class="breadcrumb-item active"><a href="{{ post.category.customPath }}">{{ post.category.title }}</a></li> {% else %} <li class="breadcrumb-item active"><a href="{{ post.category.customPath }}">{{ post.category.title }}</a></li> {% endif %}{# <li class="breadcrumb-item active" aria-current="page"><a href="#">{{"Truyền thông" | trans}}</a></li>#} </ol> </nav> </div> <div class="ac-detail-wrapper d-lg-flex flex-lg-row justify-content-sm-between"> <div class="ac-detail-content" data-aos="fade-up" data-aos-delay="100"> <div class="ac-detail-content-title"> <span>{{ post.title }}</span> </div> <span class="date">{{ post.createdAt | date("d/m/Y") }}</span> <div class="ac-detail-content-status d-flex flex-row"> <div class="fb-like" data-href="{{ url('frontend_site_post_detail',{slug:post.slug, id:post.id}) }}" data-width="" data-layout="" data-action="" data-size="large" data-share="true"></div> </div> <div class="ac-detail-content-all"> <div class="details-content"> <div class="entry-content"> <p><span style="font-weight: 400;"> {{ post.description | raw }} </span><b></b> </p> {{ post.content | raw }} </div> </div> </div> <div class="line-detail"></div> <div class="ac-detail-other related"> <div class="ac-detail-other-title"><span>{{"ĐỪNG BỎ LỠ NHỮNG TIN TỨC THÚ VỊ TỪ iSMART" | trans}}</span></div> <div class="ac-detail-other-items row"> {% set articles = getFeaturedArticle(4) %} {% set groups = articles | batch(2, false) %} {% for items in groups %} {% for article in items %} <a href="{{ forceSSL(url('frontend_site_post_detail',{ slug: article.post.slug })) }}" class="col-lg-6"> <div class="ac-detail-other-item d-flex flex-row"> <div class="image"><img loading="lazy" src="{{ article.post.image }}" alt=""></div> <div class="descripton d-flex flex-column gap-1"><span class="item-title">{{ article.post.title }}</span> <span class="item-content">{{ article.post.description }}</span> </div> </div> </a> {% endfor %} {% endfor %} </div> </div> </div> <div class="ac-detail-hot d-flex flex-lg-column flex-md-row flex-sm-column align-content-center" data-aos="fade-up" data-aos-delay="300"> <div class="ac-detail-hot-container d-flex flex-column"> <div class="ac-detail-hot-title d-flex align-content-center"><span>{{"TIN TỨC NÓNG HỔI" | trans}}</span></div> {% set articles = getLatestArticle(3) %} {% for article in articles %} <a href="{{ forceSSL(url('frontend_site_post_detail',{slug:article.post.slug})) }}"> <div class="ac-detail-hot-item d-flex flex-row"> <div class="image"><img loading="lazy" src="{{ article.post.image }}" alt=""></div> <div class="descripton d-flex flex-column gap-1"><span class="item-title">{{ article.post.title }}</span> <span class="item-content">{{ article.post.description }}</span> </div> </div> </a> {% endfor %} </div> <div class="ac-detail-hot-container d-flex flex-column"> {% set category = post.category %} {% set articles = getArticleByCategory(category, 3) %} <div class="ac-detail-hot-title d-flex align-content-center"><span>{{ category.title | upper }}</span></div> {% for article in articles %} <a href="{{ forceSSL(url('frontend_site_post_detail',{slug:article.post.slug})) }}"> <div class="ac-detail-hot-item d-flex flex-row"> <div class="image"><img loading="lazy" src="{{ article.post.image }}" alt=""></div> <div class="descripton d-flex flex-column gap-1"><span class="item-title">{{ article.post.title }}</span> <span class="item-content"> {{ article.post.description }} </span> </div> </div> </a> {% endfor %} </div> </div> </div> </div> </section> </main>{% endblock %}