commit
4a413f2739
After Width: | Height: | Size: 1008 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 8.1 KiB |
@ -1,27 +1,50 @@ |
||||
{% for hot_course in hot_courses %} |
||||
{% if hot_course.extra_info.title %} |
||||
<div class="col-md-4"> |
||||
<div class="items-course"> |
||||
<div class="items-course-image"> |
||||
<a href="{{ hot_course.extra_info.course_public_url }}"><img class="img-responsive" src="{{ hot_course.extra_info.course_image_large }}" alt="{{ hot_course.extra_info.title|e }}"/></a> |
||||
</div> |
||||
<div class="items-course-info"> |
||||
{% for item in hot_courses %} |
||||
{% if item.title %} |
||||
<div class="col-md-4 col-sm-4 col-xs-6"> |
||||
<div class="items"> |
||||
<div class="image"> |
||||
<img src="{{ item.course_image_large }}" class="img-responsive"> |
||||
{% if item.categoryName != '' %} |
||||
<span class="category">{{ item.categoryName }}</span> |
||||
<div class="cribbon"></div> |
||||
{% endif %} |
||||
<div class="black-shadow"> |
||||
<div class="author-card"> |
||||
{% for teacher in item.teachers %} |
||||
{% set counter = counter + 1 %} |
||||
{% if counter <= 3 %} |
||||
<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> |
||||
</div> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
<div class="user-actions">{{ item.description_button }}</div> |
||||
</div> |
||||
<div class="description"> |
||||
<h4 class="title"> |
||||
<a title="{{ hot_course.extra_info.title}}" href="{{ hot_course.extra_info.course_public_url }}">{{ hot_course.extra_info.title}}</a> |
||||
<a title="{{ item.title}}" href="{{ item.course_public_url }}">{{ item.title}}</a> |
||||
</h4> |
||||
<div class="teachers">{{ hot_course.extra_info.teachers }}</div> |
||||
<div class="ranking"> |
||||
{{ hot_course.extra_info.rating_html }} |
||||
{{ item.rating_html }} |
||||
</div> |
||||
<div class="toolbar"> |
||||
<div class="btn-group" role="group"> |
||||
{{ hot_course.extra_info.description_button }} |
||||
{{ hot_course.extra_info.register_button }} |
||||
{{ hot_course.extra_info.unsubscribe_button }} |
||||
|
||||
{{ item.register_button }} |
||||
{{ item.unsubscribe_button }} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
{% endif %} |
||||
{% endfor %} |
||||
|
@ -0,0 +1,130 @@ |
||||
<!-- view classic list special course --> |
||||
|
||||
<div class="classic-courses"> |
||||
{% for item in special_courses %} |
||||
<div class="panel panel-default"> |
||||
<div class="panel-body"> |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
<a class="thumbnail"> |
||||
{% if item.thumbnails != '' %} |
||||
<img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</a> |
||||
</div> |
||||
<div class="col-md-10"> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="pull-right"> |
||||
{% if item.document == '' %} |
||||
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}"> |
||||
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||
</a> |
||||
{% else %} |
||||
<div class="btn-group" role="group"> |
||||
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}"> |
||||
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||
</a> |
||||
{{ item.document }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% endif %} |
||||
<h4 class="course-items-title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}"> |
||||
{{ item.title }} {{ item.code_course }} |
||||
</a> |
||||
{{ item.notifications }} |
||||
{{ 'klipper.png' | img(22, 'CourseAutoRegister'|get_lang ) }} |
||||
{% endif %} |
||||
</h4> |
||||
<div class="course-items-session"> |
||||
{{ 'teacher.png' | img(16, 'Professor'|get_lang ) }} |
||||
<ul class="teachers"> |
||||
{% for teacher in item.teachers %} |
||||
<li> |
||||
{% set counter = counter + 1 %} |
||||
{% if counter > 1 %} | {% endif %} |
||||
<a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}"> |
||||
{{ teacher.firstname }} {{ teacher.lastname }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
|
||||
|
||||
<!-- view classic list course --> |
||||
{% for course in courses %} |
||||
<div class="classic-courses"> |
||||
{% for item in course %} |
||||
<div class="panel panel-default"> |
||||
<div class="panel-body"> |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
<a class="thumbnail"> |
||||
{% if item.thumbnails != '' %} |
||||
<img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</a> |
||||
</div> |
||||
<div class="col-md-10"> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="pull-right"> |
||||
{% if item.document == '' %} |
||||
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}"> |
||||
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||
</a> |
||||
{% else %} |
||||
<div class="btn-group" role="group"> |
||||
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}"> |
||||
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||
</a> |
||||
{{ item.document }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% endif %} |
||||
<h4 class="course-items-title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}"> |
||||
{{ item.title }} {{ item.code_course }} |
||||
</a> |
||||
{{ item.notifications }} |
||||
{% endif %} |
||||
</h4> |
||||
<div class="course-items-session"> |
||||
{{ 'teacher.png' | img(16, 'Professor'|get_lang ) }} |
||||
<ul class="teachers"> |
||||
{% for teacher in item.teachers %} |
||||
<li> |
||||
{% set counter = counter + 1 %} |
||||
{% if counter > 1 %} | {% endif %} |
||||
<a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}"> |
||||
{{ teacher.firstname }} {{ teacher.lastname }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
{% endfor %} |
@ -0,0 +1,131 @@ |
||||
<!-- new view course special --> |
||||
<div class="grid-courses"> |
||||
<div class="row"> |
||||
{% for item in special_courses %} |
||||
<div class="col-md-4 col-sm-4 col-xs-6"> |
||||
<div class="items"> |
||||
<div class="image"> |
||||
<div class="pin">{{ item.icon }}</div> |
||||
<img src="{{ item.image }}" class="img-responsive"> |
||||
{% if item.category != '' %} |
||||
<span class="category">{{ item.category }}</span> |
||||
<div class="cribbon"></div> |
||||
{% endif %} |
||||
<div class="black-shadow"> |
||||
<div class="author-card"> |
||||
{% for teacher in item.teachers %} |
||||
{% set counter = counter + 1 %} |
||||
{% if counter <= 3 %} |
||||
<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> |
||||
</div> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="admin-actions"> |
||||
{% if item.document == '' %} |
||||
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}"> |
||||
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||
</a> |
||||
{% else %} |
||||
<div class="btn-group" role="group"> |
||||
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}"> |
||||
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||
</a> |
||||
{{ item.document }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
<div class="description"> |
||||
<h4 class="title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}">{{ item.title }} {{ item.code_course }}</a> |
||||
{% endif %} |
||||
</h4> |
||||
<div class="notifications">{{ item.notifications }}</div> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
<!-- new view course list --> |
||||
{% for course in courses %} |
||||
<div class="grid-courses"> |
||||
<div class="row"> |
||||
{% for item in course %} |
||||
<div class="col-md-4 col-sm-4 col-xs-6"> |
||||
<div class="items"> |
||||
<div class="image"> |
||||
<img src="{{ item.image }}" class="img-responsive"> |
||||
{% if item.category != '' %} |
||||
<span class="category">{{ item.category }}</span> |
||||
<div class="cribbon"></div> |
||||
{% endif %} |
||||
<div class="black-shadow"> |
||||
<div class="author-card"> |
||||
{% for teacher in item.teachers %} |
||||
{% set counter = counter + 1 %} |
||||
{% if counter <= 3 %} |
||||
<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> |
||||
</div> |
||||
{% endif %} |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="admin-actions"> |
||||
{% if item.document == '' %} |
||||
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}"> |
||||
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||
</a> |
||||
{% else %} |
||||
<div class="btn-group" role="group"> |
||||
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}"> |
||||
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||
</a> |
||||
{{ item.document }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
<div class="description"> |
||||
<h4 class="title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}">{{ item.title }} {{ item.code_course }}</a> |
||||
{% endif %} |
||||
</h4> |
||||
<div class="notifications">{{ item.notifications }}</div> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
Loading…
Reference in new issue