PRO: API www.karmasoftonline.com

API: http://www.karmasoftonline.com/ and https://demo.karmasoftonline.com/schedule.json?today=2016-12-30 or https://api.json-content-importer.com/extra/json/demo.karmasoftonline.com/1.json

Example:

  • Mon 12/26 7:00am
    Guided Meditation 101
  • Mon 12/26 8:15AM
    Hot Yoga
    Jucy Vega

Shortcode:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[jsoncontentimporter nameoftemplate="yoga"]
[jsoncontentimporter nameoftemplate="yoga"]
[jsoncontentimporter nameoftemplate="yoga"]

Twig-Code:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<ul>
{% set c= 0 %}
{% for d in dates %}
{% for l in d.lessons %}
{% set c=c+1 %}
{% if c<3 %}
<li>
{{d.long | date("D m/d") }} {{l.start_time}}<br>
<b>{{l.name}}</b><br>
{% if l.instructor_name %}
{{ l.instructor_name}}<br>
<img src={{l.instructor_avatar}}>
{% endif %}
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
<ul> {% set c= 0 %} {% for d in dates %} {% for l in d.lessons %} {% set c=c+1 %} {% if c<3 %} <li> {{d.long | date("D m/d") }} {{l.start_time}}<br> <b>{{l.name}}</b><br> {% if l.instructor_name %} {{ l.instructor_name}}<br> <img src={{l.instructor_avatar}}> {% endif %} </li> {% endif %} {% endfor %} {% endfor %} </ul>
<ul>
{% set c= 0 %}
{% for d in dates %}
    {% for l in d.lessons %}
        {% set c=c+1 %}
        {% if c<3 %}
            <li>
            {{d.long | date("D m/d") }} {{l.start_time}}<br>
            <b>{{l.name}}</b><br>
            {% if l.instructor_name %}
                {{ l.instructor_name}}<br>
                <img src={{l.instructor_avatar}}>
            {% endif %}
            </li>
        {% endif %}
    {% endfor %}
{% endfor %}
</ul>