<div id="product" dir="{$Product->getDir()}" data-log="view:product:{$Product->id}">
    <h1 id=title>{$Product->title} <span id="extratitle">{$Product->extratitle}</span></h1>
    {*    {if substr({$Product->collection_name},0,1) != "#"}<p id=collection><a*}
    {*                href="{$Product->getCollectionUrl()}">{$Page->translate('Collection')} {$Product->collection_name}</a>*}
    {*        </p>{/if}*}
    {if count($Product->getComments()) }
        {*                    <label class="product">{$Page->translate("Presentation de l'éditeur")}</label>*}
        <div class="comments">
            {foreach from=$Product->getComments() key=id item=c}
                <div class="comment">{$c.text}</div>
            {/foreach}
        </div>
    {/if}
    <br/>
    {include file=$localizer->getPath("tags.tpl") tags=$Product->getTags()}
    <br/>
    <table border='0' border="0">
        <td valign='top' align='center' id='book' style="width: 230px; text-align: left">
            {$Product->image(200,'','class="zoomable"')}
            {if $Product->pdfViewer()}
                <a id="pdfviewer" href="#" data-ref="{$Product->reference}" class="button">{$trad.ParcourirLivre}</a>
            {else}
                {if $Product->hasFlipping }
                    <a id="flipLink"
                       href="{$Page->compile('[flipping:url]')}/{$Page->page}"
                       class="button">{$trad.ParcourirLivre}</a>
                {/if}
            {/if}
        </td>
        <td valign='top' align='left'>
            <p id=reference><label class="product">{$trad.ref} :</label> {$Product->reference}
                &nbsp;
                <a class="like {if $Product->selected()}select{else}unselect{/if}"
                   data-like="product:{$Product->id}"></a>
            </p>
            <p id="description">{$Product->productDescription}</p>
            {if $Product->inCatalog }
                <p id=price>
                    {if $Page->isDigitalProductBought($Product->reference) }
                        <a href="{$Page->compile("[player:url]")}"
                           class="button">{$Page->translate('Accéder à votre playlist')}</a>
                    {else}
                        <label class="product">{$trad.price}</label>
                        {if $Product->stdPrice != $Product->price }<span
                                id="stdPrice">{$Product->stdPriceFmt}</span> {/if}
                        {$Product->priceFmt}
                        {if $Product->stdPrice != $Product->price }<span id="promoTag">{$Product->promoTag}</span> {/if}
                        <a href="{$Page->addUrlParameter("action=add&product={$Product->reference}&choice=1")}"
                           class="add_button addButtonForm">{$Page->translate(['buy','add'])}</a>
                    {/if}
                </p>
            {else}
                <a id="notincatalog" href="{$Page->compile('[notincatalog:url]')}"
                   target="_blank">{$Page->compile('[notincatalog:title]')}</a>
                {$widget->get('part','id=dialog:code=notincatalog:title=0:hidden=1')}
                <br/>
                <br/>
            {/if}
            {if $Product->price2ndHand!='' }
                <p id=price2ndHand><label class="product">{$trad.price2ndHand}</label> {$Product->price2ndHandFmt}
                    <a href="{$Page->addUrlParameter("action=add&product={$Product->reference}&choice=2")}"
                       class="add_button addProductForm">{$Page->translate('buy')}</a></p>
            {/if}


            <!--
	{if $Product->amazonLink != '' }<a class="plink" href="{$Product->amazonLink}">{$trad.ebookAmazon}</a>{/if}
-->
            {if count($Product->translations)!=0}
                <p id="language"><label class="product">{$trad.strTranslate} :</label>
                    &nbsp;
                    {foreach from=$Product->translations key=url item=lang}
                        <a id="lang" href="{$url}">{$lang}</a>
                    {/foreach}</p>
            {/if}

        </td>
        </tr>
        {if $Product->hasAudio }
            <tr>
                <td colspan="2" align="center">
                    <label class="product">{$Page->translate("Extrait audio")}</label>
                    <div id="audio">
                        {$Product->getAudioTag()}
                    </div>
                </td>
            </tr>
        {/if}
        {if $Product->hasVideo }
            <tr>
                <td colspan="2">
                    <label class="product">{$Page->translate("Extrait vidéo")}</label>
                    <div id="video">
                        {$Product->getVideoTag()}
                    </div>
                </td>
            </tr>
        {/if}
        <tr>
            <td colspan="2">
                {$Product->getComplement()}
            </td>
        </tr>


        <tr>
            <td colspan=2>

                {if $Product->summary!='' }
                    {*                    <label class="product">{$trad.summary}</label>*}
                    <div id=summary>{$Product->summary|nl2br}</div>
                    <br/>
                {/if}
                {if $Product->contents!=''}
                    <label class="product">{$trad.contents}</label>
                    <div id=contents>{$Product->contents|nl2br}</div>
                {/if}
            </td>
        </tr>
    </table>

    {if $Product->digital }
        {include file=$localizer->getPath("product_chapters.tpl")}
    {/if}



    <label class="product">{$trad.acheteurachete}</label><br/><br/>
    <div align="center">
        {$widget->get('productsList',"id=hList:type=hList:select=recommended:ref={$Product->reference}:count=10:width=75")}
    </div>
    <br/>


</div>