single.tpl 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. {assign var="larg" value=$chpost.related_products|@count}
  63. <div class="products">
  64. {foreach from=$chpost.related_products item="product"}
  65. <div class="blog_product col-lg-3">
  66. {include file="catalog/_partials/miniatures/product.tpl" product=$product}
  67. </div>
  68. {/foreach}
  69. </div>
  70. </section>
  71. {/if}
  72. <!-- <div class="trait dernier"></div> -->
  73. </div>
  74. </article>
  75. </div>
  76. </div>
  77. {include file="module:chcreateur/views/templates/front/custom-nav.tpl"}
  78. </section>
  79. {*
  80. {if ($chpost.comment_status == 'open') || ($chpost.comment_status == 'close')}
  81. {include file="module:chcreateur/views/templates/front/comment-list.tpl"}
  82. {/if}
  83. {if (isset($disable_blog_com) && $disable_blog_com == 1) && ($chpost.comment_status == 'open')}
  84. {include file="module:chcreateur/views/templates/front/comment.tpl"}
  85. {/if}
  86. *}
  87. {/block}
  88. {*
  89. {block name="left_column"}
  90. {assign var="layout_column" value=$layout|replace:'layouts/':''|replace:'.tpl':''|strval}
  91. {if ($layout_column == 'layout-left-column')}
  92. <div id="left-column" class="sidebar col-xs-12 col-sm-4 col-md-3">
  93. {if ($chselection_column_use == 'default_ps')}
  94. {hook h="displaychselectionleft"}
  95. {else}
  96. {hook h="displayLeftColumn"}
  97. {/if}
  98. </div>
  99. {/if}
  100. {/block}
  101. {block name="right_column"}
  102. {assign var="layout_column" value=$layout|replace:'layouts/':''|replace:'.tpl':''|strval}
  103. {if ($layout_column == 'layout-right-column')}
  104. <div id="right-column" class="sidebar col-xs-12 col-sm-4 col-md-3">
  105. {if ($chselection_column_use == 'own_ps')}
  106. {hook h="displaychselectionright"}
  107. {else}
  108. {hook h="displayRightColumn"}
  109. {/if}
  110. </div>
  111. {/if}
  112. {/block}
  113. *}