{include file="header.html"} {if !$info} {include file="fancybox.html"} {if in_array("ratings",$modules_array) && $ratings_settings.rate_listings} {/if} {if $data_set=="cars"} {/if} {foreach from=$fields_array item=v} {if $listing[$v.caption] && $v.type=='checkbox_group'} {elseif $listing[$v.caption] && ( $v.type=='youtube' || $v.type=='htmlarea' || $v.type=='textarea' )} {elseif $listing[$v.caption] && $v.type=='google_maps'} {/if} {if !in_array($v.type, $default_fields_types) && in_array($v.type, $modules_array)} {include file="modules/`$v.type`/details.html"} {/if} {/foreach}
{if $listing.sold==1 || $listing.rented==1 || $listing.featured==1 || $listing.priority_name || ($listing.video && $listing.enable_video)} {/if}
{if $data_set=="cars"}{$listing.make} {$listing.model}{else}{$listing.title|wordwrap:40:" ":true}{/if} {if $listing.sold && $ads_settings.enable_sold} {/if} {if $listing.rented && $ads_settings.enable_rented} {/if} {if $listing.featured && $ads_settings.enable_featured} {/if} {if $listing.priority_name && $ads_settings.enable_priorities} {/if} {if $listing.video && $listing.enable_video && $ads_settings.enable_video} {/if}
 
{$lng.listings.sold}
 
{$lng.listings.rented}
 
 
{$listing.priority_name}
 
{$lng.listings.short_video}
{include file="modules/ratings/rating.html"}
{* start image gallery *} {if ($ads_settings.enable_video && $listing.enable_video && $listing.video) || $listing.images|@count>0} {/if} {if !(($ads_settings.enable_video && $listing.enable_video && $listing.video) || $listing.images|@count>0)} {/if} {capture name=some_content assign=video}{if $ads_settings.enable_video && $listing.enable_video && $listing.video}1{else}0{/if}{/capture} {foreach from=$listing.images item=v name=foo} {if (!$video && $smarty.foreach.foo.index%4==0) || ($video && ($smarty.foreach.foo.index==0 || $smarty.foreach.foo.index%4==3))}{/if} {if $smarty.foreach.foo.index==0 && $video} {/if} {if !$video} {if $smarty.foreach.foo.index==$listing.images|@count-1 && $listing.images|@count<4} {section name=loop start=$listing.images|@count loop=4-$listing.images|@count step=1} {/section} {/if} {if $smarty.foreach.foo.index%4==3 && $smarty.foreach.foo.index!=$listing.images|@count-1}{/if} {else} {if $smarty.foreach.foo.index==$listing.images|@count-1 && $listing.images|@count<4} {section name=loop start=$listing.images|@count loop=3-$listing.images|@count step=1} {/section} {/if} {if $smarty.foreach.foo.index%4==2 && $smarty.foreach.foo.index!=$listing.images|@count-1}{/if} {/if} {if $smarty.foreach.foo.index>=$listing.images|@count-1}{/if} {/foreach} {if ($ads_settings.enable_video && $listing.enable_video && $listing.video) || $listing.images|@count>0} {/if} {* end image gallery *} {* if listings_compare *} {if in_array("listings_compare", $modules_array)} {include file="modules/listings_compare/cmp_js.html"}
{if $no_compare} {include file="modules/listings_compare/compare_box.html"}
{/if} {/if} {* end if listings_compare *} {* ------ details1 banners ------- *} {if in_array('details1',$banners_positions)} {banner->getTemplateBanners p1='details1' p2=$section p3=$listing.category_id p4=$bloc assign='array_banners'} {if $array_banners|@count}
{/if} {foreach from=$array_banners item=v}
{include file="banner.html"}
{/foreach} {if $array_banners|@count}
{/if}{/if} {* ------- end details1 banners ------- *} {if in_array("loancalc",$modules_array)} {include file="modules/loancalc/loancalc.html"} {/if}
  {if $key} {if $ad_options.pending_featured} {/if} {if $ad_options.pending_highlited} {/if} {if $ad_options.pending_priority} {/if} {if $ad_options.pending_video} {/if} {if $settings.nologin_allow_edit || $settings.nologin_allow_delete || $settings.nologin_extra_options} {/if} {/if} {if $ads_settings.enable_stock==1} {/if} {foreach from=$fields_array item=v} {if ( ($listing[$v.caption] && $v.type!="price") || $v.type=="checkbox" || $listing[$v.depending.caption1] || $listing[$v.depending.caption2] || $listing[$v.depending.caption3] || $listing[$v.depending.caption4] || ($v.caption=='price' && $listing.price>=0) ) && $v.type!='checkbox_group' && $v.type!='youtube' && $v.type!='htmlarea' && $v.type!='textarea' && $v.type!='google_maps'} {/if} {/foreach} {* -------- social networks ---------- *} {if in_array("social_networks", $modules_array)} {include file="modules/social_networks/sn_details.html"} {/if} {* -------- end social networks ---------- *} {if $listing.user_id && ($logged_in || !$ads_settings.hide_contact_when_not_logged) && (!$listing.sold || !$ads_settings.hide_contact_when_sold) && (!$listing.rented || !$ads_settings.hide_contact_when_rented)} {if $listing.user.store>0} {elseif $ads_settings.show_more_link && (!$listing.sold || !$ads_settings.hide_contact_when_sold) && (!$listing.rented || !$ads_settings.hide_contact_when_rented)} {/if} {/if} {if ($logged_in || !$ads_settings.hide_contact_when_not_logged) && (!$listing.sold || !$ads_settings.hide_contact_when_sold) && (!$listing.rented || !$ads_settings.hide_contact_when_rented)} {include file="details_user_contact.html"} {/if} {* ------ details2 banners ------- *} {if in_array('details2',$banners_positions)} {banner->getTemplateBanners p1='details2' p2=$section p3=$listing.category_id p4=$bloc assign='array_banners'} {if $array_banners|@count}{/if}{/if} {* ------- end details2 banners ------- *}
{$lng.general.status}:{if $listing.pending}{$lng.listings.waiting_admin_approval}{elseif $listing.active}{$lng.listings.active}{else}{$lng.listings.inactive}{/if}
{$lng.listings.pending_featured}
{$lng.listings.pending_highlited}
{$lng.listings.pending_priority}: {$ad_options.pending_priority_name}
{$lng.listings.pending_video}
{$lng.listings.added_on}:{$listing.date_nice}
{$lng.general.expires}:{if $listing.date_expires_nice}{$listing.date_expires_nice}{else}{$lng.general.never}{/if}
{if $settings.nologin_allow_edit}{/if} {if $settings.nologin_allow_delete}{/if} {if $settings.nologin_extra_options}{/if}
{$lng.general.edit} {$lng.listings.edit_photos}{$lng.general.delete}{$lng.listings.edit_options}
{$lng.listings.details}
{$lng.listings.category}:{$listing.category}
{$lng.listings.stock_no}:#{$listing.stock}
{if $v.type=="depending"} {$v.depending.name1}: {else} {$v.name}: {/if} {if $v.type=='url'}{/if} {if $v.prefix}{$v.prefix}{/if} {if $v.type=="date"} {$listing.vis[$v.caption]} {elseif $v.validation_type=="numeric"} {$listing.formatted[$v.caption]} {elseif $v.type=="textarea"} {$listing.formatted[$v.caption]} {elseif $v.type=="file"} {if $listing[$v.caption]}{/if} {elseif $v.type=="image"} {if $listing[$v.caption]}{/if} {elseif $v.type=="multiselect"} {$listing[$v.caption]|@implode:', '} {elseif $v.type=="checkbox"} {if $listing[$v.caption]==1}{$lng.general.Yes}{else}{$lng.general.No}{/if} {elseif $v.type=="depending"} {* ------- depending -------- *} {$listing[$v.depending.caption1]} {if $listing[$v.depending.caption2]}
{$v.depending.name2}: {$listing[$v.depending.caption2]} {/if} {if $listing[$v.depending.caption3]}
{$v.depending.name3}: {$listing[$v.depending.caption3]} {/if} {if $listing[$v.depending.caption4]}
{$v.depending.name4}: {$listing[$v.depending.caption4]} {/if} {* ------- end depending -------- *} {elseif $v.type=="price"} {* ------- price -------- *} {$listing.price_curr} {else} {$listing[$v.caption]} {/if} {if $v.postfix}{$v.postfix}{/if} {if $v.type=='url'}{/if}
{/if} {foreach from=$array_banners item=v}
{include file="banner.html"}
{/foreach} {if $array_banners|@count}
{$listing.title}
{$listing.description_formatted|wordwrap:60:" ":true}
{$v.name}
{foreach from=$listing[$v.caption] item=t name=check} {if $smarty.foreach.check.index!=0 && $smarty.foreach.check.index%3==2}{/if} {/foreach} {* uncomment the following to show all options *} {* {foreach from=$v.extra_elements_array item=t name=check} {if $smarty.foreach.check.index!=0 && $smarty.foreach.check.index%3==2}{/if} {/foreach} *}
  {$t}
{if in_array($t.name, $listing[$v.caption])}{else}{/if}  {$t.name}
{$v.name}
{$listing[$v.caption]}
{$v.name}

{$lng.general.back}

{* ------ details3 banners ------- *} {if in_array('details3',$banners_positions)} {banner->getTemplateBanners p1='details3' p2=$section p3=$listing.category_id p4=$bloc assign='array_banners'} {if $array_banners|@count}
{/if} {foreach from=$array_banners item=v}
{include file="banner.html"}
{/foreach} {if $array_banners|@count}
{/if}{/if} {* ------- end details3 banners ------- *} {else}
{$info}
{/if} {if in_array("comments", $modules_array)} {include file="modules/comments/comments.html"} {/if} {if in_array("similar_ads", $modules_array)} {include file="modules/similar_ads/similar_ads.html"} {/if} {* ------ details4 banners ------- *} {if in_array('details4',$banners_positions)} {banner->getTemplateBanners p1='details4' p2=$section p3=$listing.category_id p4=$bloc assign='array_banners'} {if $array_banners|@count}
{/if} {foreach from=$array_banners item=v}
{include file="banner.html"}
{/foreach} {if $array_banners|@count}
{/if}{/if} {* ------- end details4 banners ------- *} {literal} {include file="footer.html"}