This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Jonathan Tsang edited this page Sep 1, 2017
·
1 revision
- Bundle
- Course Landing
- Site Landing
<section class="description {% if section.settings.background_color_preset != 'none' %}{{ section.settings.background_color_preset | append: '-section-color-preset' }}{% endif %}" data-preview-item="course-curriculum">
<div class="container">
<div class="section__content">
<div class="section__body">
{{ section.settings.body }}
</div>
</div>
</div>
</section>
{% style %}
...
{% endstyle %}
{% schema %}
...
{% schema %}
Alignment, Layout & Style modifiers will be encapsulated with {% style %} & {% endstyle %} tags.
section.description {
.section__heading,
.section__subheading {
text-align: {{ section.settings.heading_alignment }};
}
}
Schema will be encapsulated with {% schema %} & {% endschema %} tags.
{
"label": "Description",
"settings": [
{
"label": "Headings",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
"default": "What's included?"
},
{
"type": "text",
"id": "subheading",
"label": "Subheading",
"default": ""
},
{
"type": "radio",
"id": "heading_alignment",
"label": "Alignment",
"description": "Headings will inherit the same alignment",
"default": "left",
"options": [
{
"value": "left",
"label": "Left"
},
{
"value": "center",
"label": "Center"
},
{
"value": "right",
"label": "Right"
}
]
}
]
},
{
"label": "Text",
"settings": [
{
"type": "richtext",
"id": "body",
"label": "",
"default": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante vitae nulla vulputate elementum. Maecenas imperdiet malesuada lacinia. Donec sit amet aliquet urna. Nam sit amet eros dapibus, commodo ligula a, imperdiet mi. Fusce rhoncus eros in leo rutrum, at lobortis leo sodales. Quisque nibh tellus, rutrum placerat turpis ac, ullamcorper suscipit nisl. Nullam faucibus quam a leo imperdiet, vel blandit nibh iaculis. Duis efficitur ipsum eu eros fermentum, in volutpat erat tincidunt. Curabitur sit amet vulputate sem. Donec vel facilisis est. Morbi vitae mollis massa, sed maximus ex. Duis elit orci, scelerisque ut erat eu, tincidunt euismod erat.</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante vitae nulla vulputate elementum. Maecenas imperdiet malesuada lacinia. Donec sit amet aliquet urna. Nam sit amet eros dapibus, commodo ligula a, imperdiet mi. Fusce rhoncus eros in leo rutrum, at lobortis leo sodales. Quisque nibh tellus, rutrum placerat turpis ac, ullamcorper suscipit nisl. Nullam faucibus quam a leo imperdiet, vel blandit nibh iaculis. Duis efficitur ipsum eu eros fermentum, in volutpat erat tincidunt. Curabitur sit amet vulputate sem. Donec vel facilisis est. Morbi vitae mollis massa, sed maximus ex. Duis elit orci, scelerisque ut erat eu, tincidunt euismod erat.</p>"
}
]
},
{
"label": "Background",
"settings": [
{
"type": "select",
"id": "background_color_preset",
"label": "Color Preset",
"description": "Presets can be configured in the Colors configuration menu",
"default": "primary",
"options": [
{ "value": "none", "label": "None" },
{ "value": "primary", "label": "Primary" },
{ "value": "secondary", "label": "Secondary" },
{ "value": "tertiary", "label": "Tertiary" }
]
}
]
}
]
}
- Introduction
- Layouts
- Pages
- Sections
- Snippets
- Affiliate Dashboard Menu
- Form Errors
- Site Wide Footer Scripts
- Theme Wide CSS
- Theme Wide Footer Scripts
- Styles