{assign var="store_name" value={config key="store_name"}} {$price=''} {$url=''} {$title=''} {$description=''} {$lang_locale='fr_FR'} {$idcat=0} {* {block name="page-title"} {strip} {if isset($page_title)} {$page_title} {elseif isset($breadcrumbs)} {foreach from=$breadcrumbs|array_reverse item=breadcrumb} {$breadcrumb.title|unescape} - {/foreach} {$store_name} {else} {loop type="meedleseo" name="meedleseodefault" oi="0" ot="index" locale="{$lang_locale}"}{$META_TITLE}{/loop} {elseloop rel="meedleseodefault"}{$store_name}{/elseloop} {/if} {/strip} {/block} *} {$object_type=''} {$object_id = {product attr="id"}} {if $object_id}{$object_type='product'}{/if} {if $object_id == ''} {if {content attr="id"}} {loop type="content" id={content attr="id"} limit=1 name="ifcontent"} {$object_id = {$ID}} {if $object_id}{$object_type='content'}{/if} {/loop} {/if} {/if} {if $object_id == ''} {$object_id = {category attr="id"}} {if $object_id}{$object_type='category'}{/if} {/if} {if $object_id == ''} {if {folder attr="id"}} {loop type="folder" id={folder attr="id"} limit=1 name="iffolder"} {$object_id = $ID} {if $object_id}{$object_type='folder'}{/if} {/loop} {/if} {/if} {if $object_type == 'category' || $object_type == 'product' || $object_type == 'folder' || $object_type == 'content'} {$breadcrumbs = []} {if $object_type == 'category'} {loop name="category_path" type="category-path" category=$object_id} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]} {if $idcat==0} {$idcat=$ID} {/if} {/loop} {else} {if $object_type == 'product'} {loop type="product" name="product_breadcrumb" id=$object_id limit="1" with_prev_next_info="1"} {loop name="category_path2" type="category-path" category={$DEFAULT_CATEGORY}} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]} {/loop} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]} {/loop} {/if} {/if} {loop type="meedleseo" name="meedleseo" oi="{$object_id}" ot="{$object_type}" locale="{$locale}" limit="1" width="1200" height="600" resize_mode="crop"} {$NOFOLLOW_BALISE nofilter} {if $TYPE} {$og_type=$TYPE} {else} {$og_type='website'} {/if} {$price=''} {$title = $TITLE} {$description = $DESCRIPTION} {loop name='loopmeta' type={$VIEW_TYPE} id=$VIEW_ID limit="1"} {if $title == ''} {$title = $META_TITLE} {/if} {if $description == ''} {if $META_DESCRIPTION} {$description=$META_DESCRIPTION} {elseif $CHAPO} {$description=$CHAPO|truncate:150:""} {/if} {/if} {$url={$URL nofilter}} {ifloop rel="image"} {loop type="image" name="image" source={$VIEW_TYPE} source_id={$ID} width="1200" height="600" resize_mode="crop" limit="1"} {$image_src = $IMAGE_URL} {/loop} {/ifloop} {if $VIEW_TYPE == 'product'} {$price = $PRICE} {$og_type='product'} {/if} {/loop} {* Facebook, Pinterest and Google+ tags *} {$company_name={config key='opengraph_company_name'}} {if not $company_name}{$company_name={config key="store_name"}}{/if} {if $company_name} {/if} {if $TITLE == ""} {else} {/if} {if $IMAGE_URL != ''} {else} {ifloop rel="image"} {loop type="image" name="image" source={$object_type} source_id={$ID} width="1200" height="600" resize_mode="crop" limit="1"} {if $IMAGE_URL != ''} {/if} {/loop} {/ifloop} {/if} {if $price} {* Price tags *} {/if} {* Twitter tags *} {if {config key='opengraph_twitter_company_name'}} {/if} {if {config key='opengraph_twitter_creator_name'}} {/if} {if $TITLE == ""} {else} {/if} {if $IMAGE_URL != ''} {/if} {/loop} {elseloop rel="meedleseo"} {if $object_id !== '' && $object_type !== ''} {ifloop rel={$object_type}} {$og_type='website'} {$title=''} {$description=''} {$image_src=''} {$price=''} {$url=''} {loop name={$object_type} type={$object_type} id=$object_id limit="1"} {$title = $META_TITLE} {if $META_DESCRIPTION} {$description=$META_DESCRIPTION} {elseif $CHAPO} {$description=$CHAPO|truncate:150:""} {/if} {$url={$URL nofilter}} {ifloop rel="image"} {loop type="image" name="image" source={$object_type} source_id={$ID} width="1200" height="600" resize_mode="crop" limit="1"} {$image_src = $IMAGE_URL} {/loop} {/ifloop} {if $object_type == 'product'} {$price = $PRICE} {$og_type='product'} {/if} {/loop} {* Facebook, Pinterest and Google+ tags *} {$company_name={config key='opengraph_company_name'}} {if not $company_name}{$company_name={config key="store_name"}}{/if} {if $company_name} {/if} {if $image_src != ''} {else} {if $ID} {ifloop rel="image"} {loop type="image" name="image" source={$object_type} source_id={$ID} width="1200" height="600" resize_mode="crop" limit="1"} {if $IMAGE_URL != ''} {/if} {/loop} {/ifloop} {/if} {/if} {if $price} {* Price tags *} {/if} {* Twitter tags *} {if {config key='opengraph_twitter_company_name'}} {/if} {if {config key='opengraph_twitter_creator_name'}} {/if} {if $image_src != ''} {/if} {/ifloop} {/if} {/elseloop} {else} {loop type="meedleseo" name="meedleseoogdefault" oi="0" ot="index" locale="{$locale}" limit="1" width="1200" height="600" resize_mode="crop"} {$NOFOLLOW_BALISE nofilter} {* Facebook, Pinterest and Google+ tags *} {$company_name={config key='opengraph_company_name'}} {if not $company_name}{$company_name={config key="store_name"}}{/if} {if $company_name} {/if} {if $IMAGE_URL != ''} {/if} {if $price} {* Price tags *} {/if} {* Twitter tags *} {if {config key='opengraph_twitter_company_name'}} {/if} {if {config key='opengraph_twitter_creator_name'}} {/if} {if $IMAGE_URL != ''} {/if} {/loop} {/if}