single.tpl 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. {extends file='page.tpl'}
  2. {block name='page_header_container'}{/block}
  3. {block name='head_seo_title'} {$page.meta.title} - {$chpost.post_title} {/block}
  4. {block name='head' append}
  5. <meta property="og:url" content="{$urls.current_url}" />
  6. <meta property="og:type" content="article" />
  7. <meta property="og:title" content="{$page.meta.title} - {$chpost.post_title}" />
  8. <meta property="og:description" content="{$chpost.meta_description nofilter}" />
  9. {if isset($chpost.gallery_lists) & !empty($chpost.gallery_lists) }
  10. {$firstData = $chpost.gallery_lists|reset}
  11. <meta property="og:image" content="{$urls.shop_domain_url}{$firstData.gallery_default}" />
  12. {elseif isset($chpost.post_img.post_default) }
  13. <meta property="og:image" content="{$urls.shop_domain_url}{$chpost.post_img.post_default}" />
  14. {/if}
  15. {/block}
  16. {block name="page_content_container"}
  17. <section id="content" class="page-content">
  18. <div class="chcreateur_post single">
  19. <div class="chcreateur_post_inner">
  20. <article id="blog_post" class="blog_post">
  21. <div class="blog_post_content">
  22. <div class="blog_post_content_top">
  23. <div class="post_thumbnail">
  24. {if isset($chpost.video) & !empty($chpost.video)}
  25. {if $chpost.video|@count > 1 }
  26. {assign var="class" value='newSlide owl-carousel'}
  27. {else}
  28. {assign var="class" value=''}
  29. {/if}
  30. {include file="module:chcreateur/views/templates/front/post-video.tpl" postvideos=$chpost.video width='870' height="482" class=$class arrow="1"}
  31. {elseif isset($chpost.audio) & !empty($chpost.audio) }
  32. {if $chpost.audio|@count > 1 }
  33. {assign var="class" value='newSlide owl-carousel'}
  34. {else}
  35. {assign var="class" value=''}
  36. {/if}
  37. {include file="module:chcreateur/views/templates/front/post-audio.tpl" postaudio=$chpost.audio width='870' height="482" class=$class arrow="1"}
  38. {elseif isset($chpost.gallery_lists) & !empty($chpost.gallery_lists) }
  39. {if $chpost.gallery_lists|@count > 1 }
  40. {assign var="class" value=''}
  41. {else}
  42. {assign var="class" value='responsive'}
  43. {/if}
  44. {include file="module:chcreateur/views/templates/front/post-gallery.tpl" gallery_lists=$chpost.gallery_lists imagesize="gallery_default" class=$class arrow="1"}
  45. {else}
  46. <div class="post_gallery_img item">
  47. <img class="chselection_img img-responsive" src="{$chpost.post_img.post_default}" alt="{$chpost.post_title}">
  48. </div>
  49. {/if}
  50. </div>
  51. </div>
  52. <div class="blog_post_content_bottom">
  53. <h1 class="post_title">{$chpost.post_title}</h1>
  54. <p class="excerpt">{$chpost.post_excerpt}</p>
  55. <div class="post_content">
  56. {$chpost.post_content nofilter}
  57. </div>
  58. </div>
  59. {if isset($chpost.related_products)}
  60. <section class="featured-products clearfix">
  61. {*<h2>{l s='Viewed products' d='Modules.Viewedproduct.Shop'}</h2>*}
  62. {*
  63. {assign var="larg" value=$chpost.related_products|@count}
  64. <div class="products">
  65. {foreach from=$chpost.related_products item="product"}
  66. <div class="blog_product col-lg-3">
  67. {include file="catalog/_partials/miniatures/product.tpl" product=$product}
  68. </div>
  69. {/foreach}
  70. </div>
  71. *}
  72. <div class="pos_content row">
  73. <div class="product_accessoriesslide owl-carousel">
  74. {foreach from=$chpost.related_products item="product"}
  75. {block name='product_miniature'}
  76. <div class="item-product">
  77. {include file='catalog/_partials/miniatures/product.tpl' product=$product}
  78. </div>
  79. {/block}
  80. {/foreach}
  81. </div>
  82. </div>
  83. </section>
  84. {/if}
  85. <!-- <div class="trait dernier"></div> -->
  86. </div>
  87. </article>
  88. </div>
  89. </div>
  90. {include file="module:chcreateur/views/templates/front/custom-nav.tpl"}
  91. </section>
  92. {*
  93. {if ($chpost.comment_status == 'open') || ($chpost.comment_status == 'close')}
  94. {include file="module:chcreateur/views/templates/front/comment-list.tpl"}
  95. {/if}
  96. {if (isset($disable_blog_com) && $disable_blog_com == 1) && ($chpost.comment_status == 'open')}
  97. {include file="module:chcreateur/views/templates/front/comment.tpl"}
  98. {/if}
  99. *}
  100. {/block}
  101. {*
  102. {block name="left_column"}
  103. {assign var="layout_column" value=$layout|replace:'layouts/':''|replace:'.tpl':''|strval}
  104. {if ($layout_column == 'layout-left-column')}
  105. <div id="left-column" class="sidebar col-xs-12 col-sm-4 col-md-3">
  106. {if ($chselection_column_use == 'default_ps')}
  107. {hook h="displaychselectionleft"}
  108. {else}
  109. {hook h="displayLeftColumn"}
  110. {/if}
  111. </div>
  112. {/if}
  113. {/block}
  114. {block name="right_column"}
  115. {assign var="layout_column" value=$layout|replace:'layouts/':''|replace:'.tpl':''|strval}
  116. {if ($layout_column == 'layout-right-column')}
  117. <div id="right-column" class="sidebar col-xs-12 col-sm-4 col-md-3">
  118. {if ($chselection_column_use == 'own_ps')}
  119. {hook h="displaychselectionright"}
  120. {else}
  121. {hook h="displayRightColumn"}
  122. {/if}
  123. </div>
  124. {/if}
  125. {/block}
  126. *}