1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- {% for item in hot_courses %}
- {% if item.title %}
- <div class="col-xs-12 col-sm-6 col-md-4">
- <div class="items items-hotcourse">
-
- <div class="image">
- {% if item.is_registerd %}
- <a title="{{ item.title}}" href="{{ item.course_public_url }}">
- <img src="{{ item.course_image_large }}" class="img-responsive" alt="{{ item.title }}">
- </a>
- {% else %}
- <img src="{{ item.course_image_large }}" class="img-responsive" alt="{{ item.title }}">
- {% endif %}
- {% if item.categoryName != '' %}
- <span class="category">{{ item.categoryName }}</span>
- <div class="cribbon"></div>
- {% endif %}
- <div class="user-actions">{{ item.description_button }}</div>
- </div>
- <div class="description">
- <div class="block-title">
- {% if item.is_registerd %}
- <h4 class="title">
- <a alt="{{ item.title }}" title="{{ item.title }}" href="{{ item.course_public_url }}">{{ item.title_cut}}</a>
- </h4>
- {% else %}
- <h4 class="title" title="{{ item.title }}">
- {{ item.title_cut}}
- </h4>
- {% endif %}
- </div>
- <div class="ranking">
- {{ item.rating_html }}
- </div>
- <div class="block-author">
- {% for teacher in item.teachers %}
-
- {% if item.teachers | length > 2 %}
- <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
- <img src="{{ teacher.avatar }}" />
- </a>
- {% else %}
- <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
- <img src="{{ teacher.avatar }}" />
- </a>
- <div class="teachers-details">
- <h5>
- <a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
- {{ teacher.firstname }} {{ teacher.lastname }}
- </a>
- </h5>
- <p>{{ 'Teacher' | get_lang }}</p>
- </div>
- {% endif %}
- {% endfor %}
- </div>
- <div class="toolbar">
- <div class="left">
- {% if item.price %}
- {{ item.price }}
- {% endif %}
- </div>
- <div class="right">
- <div class="btn-group" role="group">
- {{ item.register_button }}
- {{ item.unsubscribe_button }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endif %}
- {% endfor %}
|