archive.tpl 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {extends file='page.tpl'}
  2. {block name='page_header_container'}{/block}
  3. {block name="page_content_container"}
  4. <section id="content" class="page-content">
  5. {if isset($chposts) && !empty($chposts)}
  6. <div class="chselection_post">
  7. <div class="chselection_post_inner">
  8. {foreach from=$chposts item=chselection}
  9. <article id="blog_post" class="blog_post blog_post_{$chselection.post_format} clearfix">
  10. <div class="blog_post_content">
  11. <div class="blog_post_content_top col-lg-12 col-md-12 col-xs-12">
  12. <div class="post_thumbnail">
  13. {if isset($chselection.video) & !empty($chselection.video) }
  14. {if $chselection.video|@count > 1 }
  15. {assign var="class" value='newSlide owl-carousel'}
  16. {else}
  17. {assign var="class" value=''}
  18. {/if}
  19. {include file="module:chselection/views/templates/front/post-video.tpl" postvideos=$chselection.video width='870' height="482" class=$class arrow="0"}
  20. {elseif isset($chselection.audio) & !empty($chselection.audio) }
  21. {if $chselection.audio|@count > 1 }
  22. {assign var="class" value='newSlide owl-carousel'}
  23. {else}
  24. {assign var="class" value=''}
  25. {/if}
  26. {include file="module:chselection/views/templates/front/post-audio.tpl" postaudio=$chselection.audio class=$class arrow="0"}
  27. {elseif isset($chselection.gallery_lists) & !empty($chselection.gallery_lists) }
  28. {if $chselection.gallery_lists|@count > 1 }
  29. {assign var="class" value='carousel'}
  30. {else}
  31. {assign var="class" value=''}
  32. {/if}
  33. {include file="module:chselection/views/templates/front/post-gallery.tpl" gallery_lists=$chselection.gallery_lists imagesize="gallery_default" class=$class arrow="0"}
  34. {else}
  35. <img class="img-responsive" src="{$chselection.post_img.post_default}" alt="{$chselection.post_title}">
  36. {/if}
  37. </div>
  38. </div>
  39. <div class="blog_post_content_bottom col-lg-12 col-md-12 col-xs-12">
  40. <h3 class="post_title"><a href="{$chselection.link}">{$chselection.post_title}</a></h3>
  41. <div class="post_content">
  42. {if isset($chselection.post_excerpt) && !empty($chselection.post_excerpt)}
  43. {$chselection.post_excerpt|truncate:500:'...'|escape:'html':'UTF-8'}
  44. {else}
  45. {$chselection.post_content|truncate:400:'...'|escape:'html':'UTF-8'}
  46. {/if}
  47. </div>
  48. <div class="readmorenoir">
  49. <a class="read_more" href="{$chselection.link}">{l s='Continue' mod='xipblog'}</a>
  50. </div>
  51. </div>
  52. </div>
  53. </article>
  54. {/foreach}
  55. </div>
  56. </div>
  57. {/if}
  58. </section>
  59. {/block}