123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- <!-- new view course special -->
- <div class="grid-courses">
- <div class="row">
- {% for item in special_courses %}
- <div class="col-xs-12 col-sm-6 col-md-4">
- <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 -->
- <div class="grid-courses">
- <!-- courses in category -->
- {% for category in courses.in_category %}
- {% set nameCategory = category.title_category %}
- {% set idCategory = category.id_category %}
- <div id="category_{{ idCategory }}" class="panel panel-default">
- <div class="panel-heading">
- {{ nameCategory }}
- </div>
- <div class="panel-body">
- <div class="row">
- {% for item in category.courses %}
- <div class="col-xs-12 col-sm-6 col-md-4">
- <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>
- </div>
- {% endfor %}
- <!-- end courses in category -->
- <div class="row">
- {% for item in courses.not_category %}
- <div class="col-xs-12 col-sm-6 col-md-4">
- <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>
|