single.tpl 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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="{$chvars.class}_area single">
  19. <div class="{$chvars.class}_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:chselection/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:chselection/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='carousel'}
  41. {else}
  42. {assign var="class" value=''}
  43. {/if}
  44. {include file="module:chselection/views/templates/front/post-gallery.tpl" gallery_lists=$chpost.gallery_lists imagesize="gallery_default" class=$class arrow="1"}
  45. {else}
  46. <img class="chselection_img img-responsive" src="{$chpost.post_img.post_default}" alt="{$chpost.post_title}">
  47. {/if}
  48. </div>
  49. </div>
  50. <div class="blog_post_content_bottom">
  51. <h1 class="post_title">{$chpost.post_title}</h1>
  52. <div class="post_meta clearfix">
  53. <div class="meta_author">
  54. {* <i class="icon-user"></i> *}
  55. <span>{l s='By' mod='chselection'} {$chpost.post_author_arr.firstname} {$chpost.post_author_arr.lastname}</span>
  56. </div>
  57. <div class="post_meta_date">
  58. {* <i class="icon-calendar"></i> *}
  59. {$chpost.post_date|date_format:"%b %dTH, %Y"}
  60. </div>
  61. <div class="meta_comment">
  62. {* <i class="icon-eye"></i> *}
  63. <span>{l s='Views' mod='chselection'} ({$chpost.comment_count})</span>
  64. </div>
  65. </div>
  66. <div class="post_content">
  67. {$chpost.post_content nofilter}
  68. </div>
  69. </div>
  70. {if isset($chpost.related_products)}
  71. <section class="featured-products clearfix">
  72. {*<h2>{l s='Viewed products' d='Modules.Viewedproduct.Shop'}</h2>*}
  73. {assign var="larg" value=$chpost.related_products|@count}
  74. <div class="products">
  75. {foreach from=$chpost.related_products item="product"}
  76. <div class="blog_product col-lg-3">
  77. {include file="catalog/_partials/miniatures/product.tpl" product=$product}
  78. </div>
  79. {/foreach}
  80. </div>
  81. </section>
  82. {/if}
  83. </div>
  84. </article>
  85. </div>
  86. </div>
  87. {include file="module:chselection/views/templates/front/custom-nav.tpl"}
  88. </section>
  89. {*
  90. {if ($chpost.comment_status == 'open') || ($chpost.comment_status == 'close')}
  91. {include file="module:chselection/views/templates/front/comment-list.tpl"}
  92. {/if}
  93. {if (isset($disable_blog_com) && $disable_blog_com == 1) && ($chpost.comment_status == 'open')}
  94. {include file="module:chselection/views/templates/front/comment.tpl"}
  95. {/if}
  96. *}
  97. {/block}
  98. {*
  99. {block name="left_column"}
  100. {assign var="layout_column" value=$layout|replace:'layouts/':''|replace:'.tpl':''|strval}
  101. {if ($layout_column == 'layout-left-column')}
  102. <div id="left-column" class="sidebar col-xs-12 col-sm-4 col-md-3">
  103. {if ($chselection_column_use == 'default_ps')}
  104. {hook h="displaychselectionleft"}
  105. {else}
  106. {hook h="displayLeftColumn"}
  107. {/if}
  108. </div>
  109. {/if}
  110. {/block}
  111. {block name="right_column"}
  112. {assign var="layout_column" value=$layout|replace:'layouts/':''|replace:'.tpl':''|strval}
  113. {if ($layout_column == 'layout-right-column')}
  114. <div id="right-column" class="sidebar col-xs-12 col-sm-4 col-md-3">
  115. {if ($chselection_column_use == 'own_ps')}
  116. {hook h="displaychselectionright"}
  117. {else}
  118. {hook h="displayRightColumn"}
  119. {/if}
  120. </div>
  121. {/if}
  122. {/block}
  123. *}