stom66

Bootstrap4 Triple Cols

Nov 17th, 2017
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {*
  2. * Template name: Bootstrap4 Triple Cols
  3. * -------------------------------------
  4. *
  5. * This is the triple column version of the Bootstrap4 template. It extends the "Bootstrap4 Core"
  6. * template and provides 3 content sections that can be styled using custom classes.
  7. *
  8. * This template can be set as a "default" template and should be "listable".
  9. *
  10. * Part of the CMSMS Bootstrap4 template by stom | stom66.co.uk
  11. *}
  12. {extends file='cms_template:Bootstrap4 Core'}
  13. {block name='top' append}{strip}
  14. {$content2 = "{content block='content2' label='Content' tab='Content 2'}" scope=global}
  15. {$content2_style = "{content block='content2_style' label='Class' tab='Content 2' oneline='true'}"|default:"col-12" scope=global}
  16. {$content2_disable_markdown = "{content block='content2_disable_markdown' oneline='true' label='Content 2: Disable Markdown?' tab='zz_2logic_tab__'}"
  17. scope=global}
  18.  
  19. {$content3 = "{content block='content3' label='Content' tab='Content 3'}" scope=global}
  20. {$content3_style = "{content block='content3_style' label='Class' tab='Content 3' oneline='true'}"|default:"col-12" scope=global}
  21. {$content3_disable_markdown = "{content block='content3_disable_markdown' oneline='true' label='Content 3: Disable Markdown?' tab='zz_2logic_tab__'}"
  22. scope=global}
  23. {/strip}{/block}
  24.  
  25. {block name='content'}
  26. <div class="container">
  27. <div class="{$row_class}">
  28. {if $content1}
  29. <div class="{$content1_style}">
  30. {if $content1_disable_markdown!=="true" && $mod_Markdown}
  31. {eval var=$content1|markdown}
  32. {else}
  33. {$content1}
  34. {/if}
  35. </div>
  36. {/if}
  37. {if $content2}
  38. <div class="{$content2_style}">
  39. {if $content2_disable_markdown!=="true" && $mod_Markdown}
  40. {eval var=$content2|markdown}
  41. {else}
  42. {$content2}
  43. {/if}
  44. </div>
  45. {/if}
  46. {if $content3}
  47. <div class="{$content3_style}">
  48. {if $content3_disable_markdown!=="true" && $mod_Markdown}
  49. {eval var=$content3|markdown}
  50. {else}
  51. {$content3}
  52. {/if}
  53. </div>
  54. {/if}
  55. </div>
  56. </div>
  57. {/block}
RAW Paste Data