{include file="header.tpl" css="js/jquery/plugins/prettyphoto/css/prettyPhoto"}

{$listing.title|escape:"html"}

{include file="notification.tpl"}
{if $config.thumbshot} {/if}
{if isset($listing.$instead_thumbnail) and $listing.$instead_thumbnail neq ''} {else} {$listing.url} {/if}
{if isset($crossed_categories) && !empty($crossed_categories)} {/if} {if $config.pagerank} {/if} {esynHooker name="viewListingAfterMainFieldsDisplay"}
{$lang.title}: {$listing.title}
{$lang.category}: {if is_array($category.path)} {foreach from=$category.path item=cat name="categpath"} {$cat.title} {if not $smarty.foreach.categpath.last} / {/if} {/foreach} {else} {$category.title} {/if}
{$lang.crossed_to}: {foreach from=$crossed_categories item="crossed_category" name="crossed_category"} {$crossed_category.title} {if not $smarty.foreach.crossed_category.last},{/if} {/foreach}
{$lang.clicks}: {$listing.clicks}
{$lang.listing_added}: {$listing.date|date_format:$config.date_format}
{$lang.pagerank}: {print_pagerank pagerank=$listing.pagerank}
{$listing.description} {if $fields} {include file="box-header.tpl" caption=$lang.fields style="fixed"} {esynHooker name="viewListingBeforeFieldsDisplay"} {foreach from=$fields item=field} {assign var="key" value=$field.name} {assign var="field_name" value='field_'|cat:$field.name} {if $listing.$key || ($listing.$key eq '0')} {/if} {/foreach}
{$lang.$field_name}: {if ($field.type eq 'text') || ($field.type eq 'textarea') || ($field.type eq 'number')} {$listing.$key} {elseif $field.type eq 'checkbox'} {assign var="values" value=','|explode:$listing.$key} {if $values} {foreach name="checkbox_iter" from=$values item=field_val} {assign var="lang_key" value="field_"|cat:$field.name|cat:"_"|cat:$field_val} {$lang.$lang_key}{if !$smarty.foreach.checkbox_iter.last}, {/if} {/foreach} {/if} {elseif $field.type eq 'storage'} {$lang.download} {elseif $field.type eq 'image'} {assign var="image_name" value="small_"|cat:$listing.$key} {assign var="image_path" value=$smarty.const.ESYN_HOME|cat:"uploads"|cat:$smarty.const.ESYN_DS|cat:$image_name} {if $image_path|file_exists} {print_img ups=true full=true fl=$image_name alt=$listing.$key} {else} {print_img ups=true full=true fl=$listing.$key alt=$listing.$key} {/if} {elseif $field.type eq 'pictures'} {assign var="images" value=","|explode:$listing.$key} {foreach from=$images item=image} {assign var="image_name" value="small_"|cat:$image} {assign var="image_path" value=$smarty.const.ESYN_HOME|cat:"uploads"|cat:$smarty.const.ESYN_DS|cat:$image_name} {if $image_path|file_exists} {print_img ups=true full=true fl=$image_name alt=$image} {else} {print_img ups=true full=true fl=$image alt=$image} {/if} {/foreach} {elseif $field.type eq 'combo'} {assign var="field_combo" value="field_"|cat:$field.name|cat:'_'|cat:$listing.$key} {$lang.$field_combo} {elseif $field.type eq 'radio'} {assign var="field_radio" value="field_"|cat:$field.name|cat:'_'|cat:$listing.$key} {$lang.$field_radio} {/if}
{esynHooker name="viewListingAfterFieldsDisplay"} {include file="box-footer.tpl"} {/if} {esynHooker name="tplFrontViewListingBeforeDeepLinks"} {if $listing._deep_links} {include file="box-header.tpl" caption=$lang.quick_links style="fixed"} {foreach from=$listing._deep_links item=t key=u} {$t|escape:"html"} 
{/foreach} {include file="box-footer.tpl"} {/if}
{include_file js="js/jquery/plugins/prettyphoto/jquery.prettyPhoto, js/frontend/view-listing"} {esynHooker name="viewListingBeforeFooter"} {include file="footer.tpl"}