Skip to content

Commit

Permalink
rename session.tpl a classic_session.tpl - refs BT#7683
Browse files Browse the repository at this point in the history
  • Loading branch information
aragonc committed May 26, 2016
1 parent 6408592 commit 2f94b5a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/userportal.lib.php
Expand Up @@ -1258,7 +1258,7 @@ public function returnCoursesAndSessions($user_id)
);
} else {
$sessions_with_no_category = $this->tpl->fetch(
$this->tpl->get_template('/user_portal/session.tpl')
$this->tpl->get_template('/user_portal/classic_session.tpl')
);
}
$sessionCount++;
Expand Down Expand Up @@ -1357,7 +1357,7 @@ public function returnCoursesAndSessions($user_id)

$this->tpl->assign('session', $sessionParams);
$html_sessions .= $this->tpl->fetch(
$this->tpl->get_template('user_portal/session.tpl')
$this->tpl->get_template('user_portal/classic_session.tpl')
);

$sessionCount++;
Expand Down
Expand Up @@ -40,9 +40,11 @@
{{ row.description }}
{% endif %}
<div class="info-session">
<span><i class="fa fa-user" aria-hidden="true"></i>
{{ row.coach_name }}
</span>
{% if row.coach_name != '' %}
<span><i class="fa fa-user" aria-hidden="true"></i>
{{ row.coach_name }}
</span>
{% endif %}
<span><i class="fa fa-calendar" aria-hidden="true"></i>
{{ row.date }}
</span>
Expand All @@ -68,9 +70,11 @@
{{ row.description }}
{% endif %}
<div class="info-session">
<span><i class="fa fa-user" aria-hidden="true"></i>
{{ row.coach_name }}
</span>
{% if row.coach_name != '' %}
<span><i class="fa fa-user" aria-hidden="true"></i>
{{ row.coach_name }}
</span>
{% endif %}
<span><i class="fa fa-calendar" aria-hidden="true"></i>
{{ row.date }}
</span>
Expand Down
9 changes: 7 additions & 2 deletions main/template/default/user_portal/grid_session.tpl
Expand Up @@ -16,8 +16,11 @@
{{ row.description }}
{% endif %}
<div class="info-session">
<span><i class="fa fa-user" aria-hidden="true"></i>
{{ row.coach_name }}
{% if row.coach_name != '' %}
<span><i class="fa fa-user" aria-hidden="true"></i>
{{ row.coach_name }}
</span>
{% endif %}
</span>
<span><i class="fa fa-calendar" aria-hidden="true"></i>
{{ row.date }}
Expand All @@ -28,7 +31,9 @@
{% for item in row.courses %}
<div class="col-md-4 col-sm-4 col-xs-6">
<div class="items">
{{ item.icon | var_dump }}
<div class="image">

<img src="{{ item.icon }}" class="img-responsive">
{% if item.category != '' %}
<span class="category">{{ item.category }}</span>
Expand Down

0 comments on commit 2f94b5a

Please sign in to comment.