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
Course Curriculum
Jonathan Tsang edited this page Sep 1, 2017
·
1 revision
- Course Landing
<section class="course-curriculum {% 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">
{% if section.settings.heading != blank %}
<h3 class="section__heading">{{ section.settings.heading }}</h3>
{% if section.settings.subheading != blank %}
<h4 class="section__subheading">{{ section.settings.subheading }}</h4>
{% endif %}
{% endif %}
<div class="course-curriculum__chapter-list">
{% for chapter in page.course.chapters %}
{% assign index = forloop.index + 1 %}
<div class='course-curriculum__chapter'>
<header class="course-curriculum__chapter-header">
<span class="course-curriculum__chapter-number">{{ index }}</span>
<h5 class="course-curriculum__chapter-title">{{ chapter.name }}</h5>
{% if chapter.duration_in_seconds > 0 %}
<div class='course-curriculum__chapter-time'>
{{ chapter.duration_in_seconds_as_time }}
</div>
{% endif %}
</header>
<div class="course-curriculum__chapter-content" id="chapter-{{ index + 1 }}">
{% for content in chapter.contents %}
<a href="{{ content.take_course_url }}" class="course-curriculum__chapter-lesson">
{{ content.name }}
{% if content.free %}
<span class="course-curriculum__chapter-lesson--free">{{ 'liquid.partials.course_landing_page_curriculum.label_free' | translate }}</span>
{% endif %}
</a>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% style %}
...
{% endstyle %}
{% schema %}
...
{% schema %}
Alignment, Layout & Style modifiers will be encapsulated with {% style %} & {% endstyle %} tags.
section.course-curriculum {
.section__heading,
.section__subheading {
text-align: {{ section.settings.heading_alignment }};
}
}
Schema will be encapsulated with {% schema %} & {% endschema %} tags.
{
"label": "Course Curriculum",
"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": "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