Last active
November 12, 2020 09:48
-
-
Save JacobLett/2f98e458ece094b2b311f84fc64dcb0b to your computer and use it in GitHub Desktop.
hubspot boolean hide content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://developers.hubspot.com/docs/cms/building-blocks/modules/export-to-template-context | |
| <!-- drag and drop module - start hide boolean hide condition --> | |
| {% boolean "show_sharing_buttons" label='Show Sharing Buttons?', value=True, export_to_template_context=True %} | |
| {% if widget_data.show_sharing_buttons.value %} | |
| <div class="footer__sharing-buttons"></div> | |
| {% module "sharing_buttons" path="/industrial-theme-pro/modules/blog-svg-sharing-buttons", label="Sharing Buttons" %} | |
| </div> | |
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- start hide boolean hide condition --> | |
| {% boolean "hide_tips" label='Hide Tips', value=True, export_to_template_context=True %} | |
| {% if not widget_data.hide_tips.body.value %} | |
| <table cellpadding="0" cellspacing="0" border="0" width="100%" class="templateColumnWrapper"> | |
| <tr> | |
| <td valign="middle" bgcolor="#ffc945" width="30%" class=" img-fluid column" style=" text-align: center; padding: 0; font-family: {{ primary_font }}; font-size: 22px; line-height: {{ primary_font_lheight }}em; color: #ffffff;width:30%; "> | |
| {% widget_block rich_text "tips_tricks" overrideable=True, label='Tips Tricks' %} | |
| {% widget_attribute "html" %} | |
| Tips & Tricks | |
| {% end_widget_attribute %} | |
| {% end_widget_block %} | |
| </td> | |
| <td valign="top" width="70%" class=" column" style="width:70%; text-align: left; padding: 0; font-family: {{ primary_font }}; font-size: {{ primary_font_size }}; line-height: {{ primary_font_lheight }}em; color: {{ primary_font_color }}; "> | |
| <table cellspacing="0" cellpadding="" width="100%" class="text-padding"> | |
| <tr> | |
| <td valign="top"> | |
| {% widget_block rich_text "article_text_2" overrideable=True, label='Article Text 2' %} | |
| {% widget_attribute "html" %} | |
| <h2><a href="#">Tips and Tricks</a></h2> | |
| <p>Around 30 words of text sit amet, consectetur adipisicing elit. Laudantium veniam libero adipisci placeat velit ab harum magnam. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium veniam libero. dolor sit amet, consectetur adipisicing elit. Laudantium veniam libero adipisci placeat velit ab harum magnam.</p> | |
| {% end_widget_attribute %} | |
| {% end_widget_block %} | |
| </td> | |
| </tr> | |
| </table> | |
| </td> | |
| </tr> | |
| </table> | |
| {% endif %} <!--/ End boolean hide condition --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment