|
|
|
@ -54,7 +54,7 @@ class IndexController extends BaseController |
|
|
|
|
if (api_get_setting('display_categories_on_homepage') == 'true') { |
|
|
|
|
//$template->assign('course_category_block', $pageController->return_courses_in_categories()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!api_is_anonymous()) { |
|
|
|
|
if (api_is_platform_admin()) { |
|
|
|
|
$pageController->setCourseBlock(); |
|
|
|
@ -62,16 +62,16 @@ class IndexController extends BaseController |
|
|
|
|
$pageController->return_teacher_link(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Hot courses & announcements |
|
|
|
|
$hotCourses = null; |
|
|
|
|
$announcementsBlock = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Navigation links |
|
|
|
|
//$pageController->returnNavigationLinks($template->getNavigationLinks()); |
|
|
|
|
$pageController->returnNotice(); |
|
|
|
|
$pageController->returnHelp(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (api_is_platform_admin() || api_is_drh()) { |
|
|
|
|
$pageController->returnSkillsLinks(); |
|
|
|
|
}*/ |
|
|
|
@ -99,7 +99,7 @@ class IndexController extends BaseController |
|
|
|
|
$attribute->setStorageType(AttributeValueInterface::STORAGE_TEXT); |
|
|
|
|
$this->getDoctrine()->getManager()->persist($attribute); |
|
|
|
|
$this->getDoctrine()->getManager()->flush(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$attributeColor = new ExtraField(); |
|
|
|
|
$attributeColor->setName('color'); |
|
|
|
|
$attributeColor->setVariable('color'); |
|
|
|
@ -107,19 +107,19 @@ class IndexController extends BaseController |
|
|
|
|
$attributeColor->setStorageType(AttributeValueInterface::STORAGE_TEXT); |
|
|
|
|
$this->getDoctrine()->getManager()->persist($attributeColor); |
|
|
|
|
$this->getDoctrine()->getManager()->flush(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$color = new ExtraFieldValues(); |
|
|
|
|
$color->setComment('lol'); |
|
|
|
|
$color->setAttribute($attributeColor); |
|
|
|
|
$color->setValue('blue'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$user->addAttribute($color); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$smallSize = new ExtraFieldValues(); |
|
|
|
|
$smallSize->setComment('lol'); |
|
|
|
|
$smallSize->setAttribute($attribute); |
|
|
|
|
$smallSize->setValue('S'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$user->addAttribute($smallSize); |
|
|
|
|
$userManager->updateUser($user); |
|
|
|
|
*/ |
|
|
|
|