{% extends 'AtechNetCoreBundle/base.html.twig' %}
{% import "AtechNetCoreBundle/macros.html.twig" as macros %}
{% block content %}
<div class="main-content">
<div class="container">
<ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
{% endfor %}
</ul>
<div class="blog-list">
<div class="row">
<div class="col-sm-9">
<h1>{{ title }}</h1>
{{ content | raw }}
<p>{{ 'blog_list_description' | trans }}</p><br>
{% if customerTypeId == 2 %}
<div class="row blog-posts ws partner-news-feed-sec">
{% for blog in blogs %}
<a class="col-md-12" href="{{ blog.href }}" title="{{ blog.title }}">
<div class="blog-image"><img loading="lazy" decoding="async" src="{{ blog.thumb }}" alt="{{ blog.title }}"></div>
<div class="blog-detail">
<h2>{{ blog.title }}</h2>
<p>{{ blog.text | raw }}</p>
<div class="author">
<img loading="lazy" decoding="async" src="{{ asset('theme/images/signatures/' ~ blog.salesManagerId ~ '.png') }}" alt="{{ blog.salesManagerName }}" title="{{ blog.salesManagerName }}"><span><strong>{{ blog.salesManagerName }}</strong><br/>{{ blog.created }}</span>
</div>
</div>
</a>
{% endfor %}
</div>
{% else %}
<div class="row blog-posts">
{% for blog in blogs %}
<a class="col-sm-4 mb-5" href="{{ blog.href }}" title="{{ blog.title }}">
<div class="row">
<div class="col-sm-12 blog-box-image">
<img loading="lazy" decoding="async" src="{{ blog.thumb }}" alt="{{ blog.title }}" width="280" height="158">
</div>
<div class="col-sm-12">
<h2 class="blog-box-title mt-3">{{ blog.title }}</h2>
<span class="blog-created-date">{{ blog.created }}</span>
<div class="blog-box-desc"><p>{{ blog.text }}</p></div>
<span class="btn btn-primary btn-small">{{ 'Read more' | trans }}</span>
</div>
</div>
</a>
{% if not loop.last and loop.index % 3 == 0 %}
</div><div class="row blog-posts">
{% endif %}
{% else %}
<div class="col">
<div class="alert alert-warning" role="alert">
{{ 'There are no blog posts' | trans }}
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% if pagination.total > 1 %}
{{ macros.printPaginator(pagination) }}
{% endif %}
</div>
<div class="col-sm-3 ps-sm-3">
{{ include(template_from_string(columnRight)) }}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block title %}{{ seoTitle }} | {{ parent() }}{% endblock %}
{% block canonical %}
{% if canonical_link != '' %}<link rel="canonical" href="{{ canonical_link }}" />{% endif %}
{% endblock %}
{% block robots %}
{% if parent() == '' and indexable is defined and indexable == false %}<meta name="robots" content="noindex">{% else %}{{ parent() }}{% endif %}
{% endblock %}
{% block meta %}
{% set defaultLocale = app.request.session.get('defaultLocale') %}
{% set domainTLD = defaultLocale %}
{% if domainTLD == 'en' %}
{% set domainTLD = 'eu' %}
{% endif %}
{% if app.request.query.get("page") %}
<meta name="description" content="" />
<meta property="og:description" content="" />
{% else %}
<meta name="description" content="{{ seoDescription }}" />
<meta property="og:description" content="{{ seoDescription }}" />
{% endif %}
<meta property="og:url" content="{{ app.request.uri }}" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="{{ defaultLocale |ogLocale }}" />
<meta property="og:title" content="{{ seoTitle }}" />
<meta property="og:image" content="https://www.furbify.{{ domainTLD }}/theme/images/furbify-share-image.png" />
{% if linkPrev %}
<link rel="prev" href="{{ linkPrev }}">
{% endif %}
{% if linkNext %}
<link rel="next" href="{{ linkNext }}">
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript">
$(document).ready(function() {
$('.blog-posts').equation({
blog: true,
selector: 'a',
selectors: [
'.blog-box-title'
],
resize: '.blog-box-title'
});
$('.blog-box-desc p').each((k, item) => {
item.innerHTML = item.innerHTML.replace(/ /g, " ");
});
});
</script>
{% endblock %}
{% block schema %}
{{ parent() }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{% for breadcrumb in breadcrumbs %}
{
"@type": "ListItem",
"position": {{ loop.index }},
"name": "{{ breadcrumb.text|e('js') }}",
"item": "{{ breadcrumb.href }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
</script>
{% endblock %}
{% block header %}
{{ include(template_from_string(header)) }}
{% endblock %}
{% block footer %}
{{ include(template_from_string(footer)) }}
{% endblock %}