|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style type="text/css">
.marginTop10 { margin-top: 10px; }
#recommended_material_container > div { box-shadow: 0 0px 10px rgba(0,0,0,0.15); border: 1px solid #ddd; margin: 10px; padding: 5px; }
#required_material_container > div { box-shadow: 0 0px 10px rgba(0,0,0,0.15); border: 1px solid #ddd; margin: 10px; padding: 5px; }
.materialImage { float: left; margin-right: 5px; }
.materialPrice { float: right; font-weight: bold; }
.materialTitle { font-weight: bold; margin-bottom: 5px; }
.hasPicture { margin-left: 90px; }
</style>
<ss:logic:variable as="course" value="\Components\AF\Courses\CollectiveCourses::getCourseFromProductId($product['product_id'])" parsenow="value" />
[? \Components\AF\Courses\CollectiveCourses::renderProductDescriptionTable($course) ?]
<ss:logic:if test="strlen($course['course_comment'])">
<div style="color: #b00;" class="marginTop10">
Note: [? $course['course_comment'] ?]
</div>
</ss:logic:if>
<ss:logic:if test="\Components\Settings\ConfigurationItems::getValue('\Components\AF\Courses\CollectiveCourses', 'membership_may_be_required')">
<ss:logic:if test="\Components\Commerce\Products::getColumn($course['product_id'], 'product_requires_membership')">
<div style="color: #b00;" class="marginTop10">
A valid membership is required in order to enroll in this course
</div>
</ss:logic:if>
</ss:logic:if>
<ss:logic:if test="\Components\Settings\ConfigurationItems::getValue('\Components\AF\Courses\CollectiveCourses', 'registration_fee_may_be_required')">
<ss:logic:if test="$course['course_requires_registrationfee']">
<div style="color: #b00;" class="marginTop10">
A valid registration fee is required in order to enroll in this course
<ss:logic:if test="\Components\Settings\ConfigurationItems::getValue('\Components\AF\Courses\CollectiveCourses', 'registration_fee_members_exempted')">
(members are exempt).
</ss:logic:if>
</div>
</ss:logic:if>
</ss:logic:if>
<ss:logic:variable as="course_levels" value="\Components\AF\Courses\Levels::getAllLevelIdsForCourse($course['course_id'])" parsenow="value" />
<ss:logic:if test="strlen($course['course_objectives'])">
<div class="marginTop10">
<strong>Objectives</strong><br />
<ss:logic:parse parsenow="text" text="$course['course_objectives']" />
<div style="clear: both;"></div>
</div>
</ss:logic:if>
<ss:logic:else test="count($course_levels)">
<ss:logic:variable as="level" value="\Components\AF\Courses\Configuration\Levels::get($course_levels[0])" parsenow="value" />
<ss:logic:if test="$level['level_objectives']">
<div class="marginTop10">
<strong>Objectives</strong><br />
<ss:logic:parse parsenow="text" text="$level['level_objectives']" />
<div style="clear: both;"></div>
</div>
</ss:logic:if>
</ss:logic:else>
<ss:logic:variable as="books_required" value="\Components\AF\Courses\Books::getAllRequiredForCourse($course['course_id'], true)" parsenow="value" />
<ss:logic:variable as="books_recommended" value="\Components\AF\Courses\Books::getAllRecommendedForCourse($course['course_id'], true)" parsenow="value" />
<ss:logic:if test="count($books_required) || count($books_recommended)">
<div class="marginTop10">
<ss:logic:if test="count($books_required)">
<strong>Required Course Material</strong>
<div id="required_material_container">
<ss:data:repeater as="book" datasource="$books_required">
<div>
<div class="materialImage">
<ss:logic:if test="$book['product_icon']">
<ss:standard:image src="'/media/commerce_products/' + $book['product_id'] + '/' + $book['product_icon']" parsenow="src" width="80" />
</ss:logic:if>
</div>
<div class="materialPrice">[? formatCurrency($book['product_price_base']) ?]</div>
<div class="materialTitle[? $book['product_icon'] ? ' hasPicture' : '' ?]">[? $book['product_title'] ?]</div>
<div class="materialDescription[? $book['product_icon'] ? ' hasPicture' : '' ?]">[? $book['product_content'] ?]</div>
<div style="clear: both;"> </div>
</div>
</ss:data:repeater>
</div>
</ss:logic:if>
<ss:logic:if test="count($books_recommended)">
<ss:logic:if test="count($books_required)">
<br />
</ss:logic:if>
<strong>[? \Components\AF\Courses\CollectiveCourses::configGetValue('recommended_course_material_title') ?]</strong>
<div id="recommended_material_container">
<ss:data:repeater as="book" datasource="$books_recommended">
<div>
<div class="materialImage">
<ss:logic:if test="$book['product_icon']">
<ss:standard:image src="'/media/commerce_products/' + $book['product_id'] + '/' + $book['product_icon']" parsenow="src" width="80" />
</ss:logic:if>
</div>
<div class="materialPrice">[? formatCurrency($book['product_price_base']) ?]</div>
<div class="materialTitle[? $book['product_icon'] ? ' hasPicture' : '' ?]">[? $book['product_title'] ?]</div>
<div class="materialDescription[? $book['product_icon'] ? ' hasPicture' : '' ?]">[? $book['product_content'] ?]</div>
<div style="clear: both;"> </div>
</div>
</ss:data:repeater>
</div>
</ss:logic:if>
</div>
</ss:logic:if>
<style type="text/css">
.marginTop10 { margin-top: 10px; }
#recommended_material_container > div { box-shadow: 0 0px 10px rgba(0,0,0,0.15); border: 1px solid #ddd; margin: 10px; padding: 5px; }
#required_material_container > div { box-shadow: 0 0px 10px rgba(0,0,0,0.15); border: 1px solid #ddd; margin: 10px; padding: 5px; }
.materialImage { float: left; margin-right: 5px; }
.materialPrice { float: right; font-weight: bold; }
.materialTitle { font-weight: bold; margin-bottom: 5px; }
.hasPicture { margin-left: 90px; }
</style>
<ss:logic:variable as="course" value="\Components\AF\Courses\CollectiveCourses::getCourseFromProductId($product['product_id'])" parsenow="value" />
[? \Components\AF\Courses\CollectiveCourses::renderProductDescriptionTable($course) ?]
<ss:logic:if test="strlen($course['course_comment'])">
<div style="color: #b00;" class="marginTop10">
Note: [? $course['course_comment'] ?]
</div>
</ss:logic:if>
<ss:logic:if test="\Components\Settings\ConfigurationItems::getValue('\Components\AF\Courses\CollectiveCourses', 'membership_may_be_required')">
<ss:logic:if test="\Components\Commerce\Products::getColumn($course['product_id'], 'product_requires_membership')">
<div style="color: #b00;" class="marginTop10">
A valid membership is required in order to enroll in this course
</div>
</ss:logic:if>
</ss:logic:if>
<ss:logic:if test="\Components\Settings\ConfigurationItems::getValue('\Components\AF\Courses\CollectiveCourses', 'registration_fee_may_be_required')">
<ss:logic:if test="$course['course_requires_registrationfee']">
<div style="color: #b00;" class="marginTop10">
A valid registration fee is required in order to enroll in this course
<ss:logic:if test="\Components\Settings\ConfigurationItems::getValue('\Components\AF\Courses\CollectiveCourses', 'registration_fee_members_exempted')">
(members are exempt).
</ss:logic:if>
</div>
</ss:logic:if>
</ss:logic:if>
<ss:logic:variable as="course_levels" value="\Components\AF\Courses\Levels::getAllLevelIdsForCourse($course['course_id'])" parsenow="value" />
<ss:logic:if test="strlen($course['course_objectives'])">
<div class="marginTop10">
<strong>Objectives</strong><br />
<ss:logic:parse parsenow="text" text="$course['course_objectives']" />
<div style="clear: both;"></div>
</div>
</ss:logic:if>
<ss:logic:else test="count($course_levels)">
<ss:logic:variable as="level" value="\Components\AF\Courses\Configuration\Levels::get($course_levels[0])" parsenow="value" />
<ss:logic:if test="$level['level_objectives']">
<div class="marginTop10">
<strong>Objectives</strong><br />
<ss:logic:parse parsenow="text" text="$level['level_objectives']" />
<div style="clear: both;"></div>
</div>
</ss:logic:if>
</ss:logic:else>
<ss:logic:variable as="books_required" value="\Components\AF\Courses\Books::getAllRequiredForCourse($course['course_id'], true)" parsenow="value" />
<ss:logic:variable as="books_recommended" value="\Components\AF\Courses\Books::getAllRecommendedForCourse($course['course_id'], true)" parsenow="value" />
<ss:logic:if test="count($books_required) || count($books_recommended)">
<div class="marginTop10">
<ss:logic:if test="count($books_required)">
<strong>Required Course Material</strong>
<div id="required_material_container">
<ss:data:repeater as="book" datasource="$books_required">
<div>
<div class="materialImage">
<ss:logic:if test="$book['product_icon']">
<ss:standard:image src="'/media/commerce_products/' + $book['product_id'] + '/' + $book['product_icon']" parsenow="src" width="80" />
</ss:logic:if>
</div>
<div class="materialPrice">[? formatCurrency($book['product_price_base']) ?]</div>
<div class="materialTitle[? $book['product_icon'] ? ' hasPicture' : '' ?]">[? $book['product_title'] ?]</div>
<div class="materialDescription[? $book['product_icon'] ? ' hasPicture' : '' ?]">[? $book['product_content'] ?]</div>
<div style="clear: both;"> </div>
</div>
</ss:data:repeater>
</div>
</ss:logic:if>
<ss:logic:if test="count($books_recommended)">
<ss:logic:if test="count($books_required)">
<br />
</ss:logic:if>
<strong>[? \Components\AF\Courses\CollectiveCourses::configGetValue('recommended_course_material_title') ?]</strong>
<div id="recommended_material_container">
<ss:data:repeater as="book" datasource="$books_recommended">
<div>
<div class="materialImage">
<ss:logic:if test="$book['product_icon']">
<ss:standard:image src="'/media/commerce_products/' + $book['product_id'] + '/' + $book['product_icon']" parsenow="src" width="80" />
</ss:logic:if>
</div>
<div class="materialPrice">[? formatCurrency($book['product_price_base']) ?]</div>
<div class="materialTitle[? $book['product_icon'] ? ' hasPicture' : '' ?]">[? $book['product_title'] ?]</div>
<div class="materialDescription[? $book['product_icon'] ? ' hasPicture' : '' ?]">[? $book['product_content'] ?]</div>
<div style="clear: both;"> </div>
</div>
</ss:data:repeater>
</div>
</ss:logic:if>
</div>
</ss:logic:if>
|
|
|
|
|
|
|
|
|
|
|
|
y7FriCBD 2019
y7FriCBD 2019
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
af-year-7-y7fricbd-2019
af-year-7-y7fricbd-2019
|
|
|
|
year 7, course, product, book, title, required, material, content, base, price, formatcurrency, objectives, order, enroll, valid, comment, exempt, members, fee, registration, membership, configgetvalue, recommended
year 7, course, product, book, title, required, material, content, base, price, formatcurrency, objectives, order, enroll, valid, comment, exempt, members, fee, registration, membership, configgetvalue, recommended
|
|
|
|
[? \Components\AF\Courses\CollectiveCourses::renderProductDescriptionTable($course) ?] Note: [? $course['course_comment'] ?] A valid membership is required in order to enroll in this course A valid reg
[? \Components\AF\Courses\CollectiveCourses::renderProductDescriptionTable($course) ?] Note: [? $course['course_comment'] ?] A valid membership is required in order to enroll in this course A valid reg
|
|
|
|
|
|
|
|
|