Minor - format code

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent ce3a391fc0
commit 783566e18a
  1. 30
      main/session/about.php
  2. 6
      main/template/default/session/about.tpl

@ -87,9 +87,8 @@ foreach ($sessionCourses as $sessionCourse) {
]
);
$courseDescription = $courseObjectives = $courseTopics = $courseMethodology = $courseMaterial = $courseResources = $courseAssesment = null;
$courseDescription = $courseObjectives = $courseTopics = $courseMethodology = $courseMaterial = $courseResources = $courseAssessment = '';
$courseCustom = [];
foreach ($courseDescriptionTools as $descriptionTool) {
switch ($descriptionTool->getDescriptionType()) {
case CCourseDescription::TYPE_DESCRIPTION:
@ -111,7 +110,7 @@ foreach ($sessionCourses as $sessionCourse) {
$courseResources = $descriptionTool;
break;
case CCourseDescription::TYPE_ASSESMENT:
$courseAssesment = $descriptionTool;
$courseAssessment = $descriptionTool;
break;
case CCourseDescription::TYPE_CUSTOM:
$courseCustom[] = $descriptionTool;
@ -128,21 +127,26 @@ foreach ($sessionCourses as $sessionCourse) {
'methodology' => $courseMethodology,
'material' => $courseMaterial,
'resources' => $courseResources,
'assesment' => $courseAssesment,
'assessment' => $courseAssessment,
'custom' => array_reverse($courseCustom),
'coaches' => $coachesData,
'extra_fields' => $courseValues->getAllValuesForAnItem($sessionCourse->getId(), null, true)
'extra_fields' => $courseValues->getAllValuesForAnItem(
$sessionCourse->getId(),
null,
true
),
];
}
$sessionDates = SessionManager::parseSessionDates([
'display_start_date' => $session->getDisplayStartDate(),
'display_end_date' => $session->getDisplayEndDate(),
'access_start_date' => $session->getAccessStartDate(),
'access_end_date' => $session->getAccessEndDate(),
'coach_access_start_date' => $session->getCoachAccessStartDate(),
'coach_access_end_date' => $session->getCoachAccessEndDate()
],
$sessionDates = SessionManager::parseSessionDates(
[
'display_start_date' => $session->getDisplayStartDate(),
'display_end_date' => $session->getDisplayEndDate(),
'access_start_date' => $session->getAccessStartDate(),
'access_end_date' => $session->getAccessEndDate(),
'coach_access_start_date' => $session->getCoachAccessStartDate(),
'coach_access_end_date' => $session->getCoachAccessEndDate(),
],
true
);

@ -139,11 +139,11 @@
</div>
{% endif %}
{% if course_data.assesment %}
{% if course_data.assessment %}
<div class="topics">
<h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.assesment.getTitle }}</h4>
<h4 class="title-info"><em class="fa fa-book"></em> {{ course_data.assessment.getTitle }}</h4>
<div class="content-info">
{{ course_data.assesment.getContent }}
{{ course_data.assessment.getContent }}
</div>
</div>
{% endif %}

Loading…
Cancel
Save