{if 'en' === $page_lang}
    {assign var='ArticleTitle' value=$item->title}
    {assign var='metadescription' value=$item->meta_desc_item}
    {assign var='detail_keywords' value=$item->meta_key_item}
{else}
    {assign var='ArticleTitle' value=$item->titlu_ro}
    {assign var='metadescription' value=$item->meta_desc_item_ro}
    {assign var='detail_keywords' value=$item->meta_key_item_ro}
{/if}

<div itemscope itemtype="http://schema.org/Article">
<meta itemscope itemprop="mainEntityOfPage"  itemType="https://schema.org/WebPage" itemid="https://google.com/article" />

<div class="content_page">
    <div class="text">
        <div class="container about pbottom60 ptop30 project">
            <div class="container">
            {* $item|@var_dump *}
                {if $page_lang == 'en'}
                <h3 itemprop="headline" class="title">{$item->title}</h3>
                {else}
                <h3 itemprop="headline" class="title">{$item->titlu_ro}</h3>
                {/if}
                <div itemprop="articleBody">
                {if $page_lang == 'en'}
                    {$item->content}
                {else}
                    {$item->content_ro}
                {/if}
                </div>
            </div>
        </div>
    </div>
</div>

<meta itemprop="datePublished" content="{$item->item_date|date_format:'%x%Z%X'}"/>
<meta itemprop="dateModified" content="{$item->item_date|date_format:'%x%Z%X'}"/>

{*gallery*}
{if $item->images|@count}
<div class="content_page">
    <div class="row nopadding">
        {foreach from=$item->images item='image'}
            {if $image.fields.type.value === "full"}    
            <div id="{$image.filename}" class="col-md-12 col-sm-12">    
                <img src="{$image.file_location}/{$image.filename}" alt="" class="img-responsive" itemscope itemtype="https://schema.org/VisualArtwork"/>
            </div>
            {else if $image.fields.type.value === "half"}
            <div id="{$image.filename}" class="col-md-6 col-sm-12">
                <img src="{$image.file_location}/{$image.filename}" alt="" class="img-responsive" itemscope itemtype="https://schema.org/VisualArtwork"/>
            </div>
            {/if}
        {/foreach}
    </div>
</div>
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "ItemList",
  "itemListElement": [
  {foreach from=$item->images item='image' name=googles}
    {
      "@type": "ListItem",
      "position": 1,
      "item": {
        "@type": "VisualArtwork",
        "url": "{$image.file_location}/{$image.filename}",
        "artMedium": "Digital",
        "artform": "Print",
        "datePublished": "{$item->item_date|date_format:'%x%Z%X'}"
      }
    }{if not $smarty.foreach.googles.last}, {/if}
  {/foreach}
  ]
}
</script>
{/if}
</div> <!-- Meta Scheme -->

<div class="content_page">
    <div class="text">
        <div class="container about pbottom60 ptop30 project">
            <div class="container text-center">
            {if 'en' == $page_lang}
                <h3 class="title">So what`s next?  We`re ready!</h3>
                <a href="#get_in_touch-modal" class="gray_cta" data-toggle="modal">Get in touch</a> 
            {else}
                <h3 class="title">Suntem pregatiti pentru noi proiecte!</h3>
                <a href="#get_in_touch-modal" class="gray_cta" data-toggle="modal">Contacteaza-ne</a> 
            {/if}
            </div>
        </div>
    </div>
</div>
{global_content name='modal_lets_chat'}

<div class="content_page">
    <div class="text">
        <div class="container about pbottom60 ptop30 project">
            <div class="row related_project">
            {if 'en' === $page_lang}
                <h3 class="title">Related</h3>
            {else}
                <h3 class="title">Din aceasi categorie</h3>
            {/if}
                <hr>
            </div>
            
            <div class="row related_project">
                {Portfolio filter_itemId_notequal=$item->item_id summarytemplate='related' filter_9_equal=$item->design_type }
            </div>
        </div>
    </div>
</div>
<!-- END CONTENT -->
{assign var='este_articol' value='true'}

{assign var='articol_detail_ro' value="/portfolio/`$item->item_id`/89/`$item->alias`"}
{assign var='articol_detail' value="/portfolio/`$item->item_id`/74/`$item->alias`"}
