{{ var sprite = 'https://dmn92m25mtw4z.cloudfront.net/img_set/sprite/v1/sprite-1w.png'; }} {{ var spritesheet = '/img/uploads/freemium-core-sprites.svg'; }} {{? it.markup }} {{= it.markup }} {{?? it.controls__guest }} {{# def.controls__guest }} {{?? it.controls__user }} {{# def.controls__user }} {{?? it.course_groupings }} {{# def.course_groupings }} {{?? it.dropdown_menu }} {{# def.dropdown_menu }} {{?? it.header }} {{# def.header }} {{?? it.lander }} {{# def.lander }} {{?? it.menu__courses }} {{# def.menu__courses }} {{?? it.switch_user }} {{# def.switch_user }} {{?? it.toast__message }} {{# def.toast__message }} {{?? it.toast__message__achievement }} {{# def.toast__message__achievement }} {{?}} /* PUBLIC DEFS */ {{## def.controls__guest: {{ var self = it.controls__guest; }} #}} {{## def.controls__user: {{ var self = it.controls__user; }}
#}} {{## def.course_groupings: {{ var self = it.course_groupings; }}
#}} {{## def.dropdown_menu: {{ var self = it.dropdown_menu; }} {{? self.items }} {{?? self.markup }} {{= self.markup }} {{?}} #}} {{## def.header: {{ var self = it.header; var inline_course_color = 'style="background:'+ self.course_color + '"'; var inline_course_bg = 'style="background:'+ self?.course?.bg_css + '"'; var inline_bg_default = 'style="background:#05A7CF "' ; var inline_bg_white = 'style="background:#FFFFFF "' ; var is_parent_dashboard =self.secondary?.title?.includes("Parental"); }} {{? self.is_expired || self.is_important }} {{ var msg = ''; }} {{? self.is_expired }} {{ msg = self.is_expired.msg; }} {{?? self.is_important }} {{ msg = self.is_important.msg; }} {{?}}
{{= msg }}
{{?}} #}} {{## def.lander: {{ var self = it.lander;}} #}} {{## def.menu__courses: {{ var self = it.menu__courses; }}
{{~ self.course_wall :groupset }} {{ var inline_style = ''; }} {{? groupset.bg_colour }} {{ inline_style = 'style="color:'+ groupset.bg_colour + ';"'; }} {{?}} {{ var inline_css = 'color:' + groupset.bg_colour; }}
{{? groupset.bg_colour && groupset.image_key }} {{ inline_style = 'style="background-color:'+ groupset.bg_colour +';'; }} {{ inline_style += 'background-image:url('+ self.getTextbookArt(groupset.image_key) +');"'; }} {{?? groupset.bg_colour }} {{ inline_style = 'style="background-color:'+ groupset.bg_colour +';"'; }} {{??}} {{ inline_style = ''; }} {{?}} {{ inline_css = 'background-color:' + groupset.bg_colour; }} {{ inline_css += ';background-image:url(' + self.getTextbookArt(groupset.image_key) + ')'; }} {{? self.course_wall.length > 1 }}
{{= groupset.name }}
{{?}}
    {{~ groupset.plan_ids :plan_id }} {{ var plan = self.courses[plan_id]; }}
  • {{= plan.name }}
  • {{~}}
{{~}}
#}} {{## def.switch_user: {{ var self = it.switch_user; }} {{= self.name }} #}} {{## def.toast__message: {{ var self = it.toast__message; }} {{? !self.markup }} {{? self.header_close }} {{# def.icon :'svg-icon-close' }} {{?}}
{{? self.body_close }} {{# def.icon :'svg-icon-close' }} {{?}} {{? !self.body_markup }} {{= self.body_message || '' }} {{??}} {{= self.body_markup }} {{?}}
{{??}} {{= self.markup }} {{?}} #}} {{## def.toast__message__achievement: {{ var self = it.toast__message__achievement; }} {{ var item = self.item; }}
{{# def.icon :'svg-icon-close' }}
{{= self.heading || '' }}
{{? item.img_bg1_url }} {{?}} {{? item.img_bg2_url }} {{?}} {{? item.img_fg1_url }} {{?}} {{? item.img_fg2_url }} {{?}} {{? item.trophy_text }} {{= item.trophy_text }} {{?}}
{{= item.name }}
    {{~ item.criteria :criterium }}
  • {{= criterium.label }}
  • {{~}}
#}} /* PRIVATE DEFS */ {{## def.icon :sprite_id: {{ var url = spritesheet + '#' + sprite_id; }} #}} {{## def.icon__dropdown: {{# def.icon :'svg-caret-down' }} #}} {{## def.icon__menu: {{# def.icon :'svg-icon-menu' }} #}} {{## def.icon__menu__apps: {{# def.icon :'svg-icon-menu-squares' }} #}} {{## def.icon__menu__home: #}} {{## def.icon__btn__courses: #}} {{## def.icon__btn__search: #}} {{## def.icon__userqa:fillColor: #}} {{## def.secondary_bar: {{? self.secondary }}
{{# def.icon__menu__home}} {{? self.secondary.breadcrumbs }}
    {{~ self.secondary.breadcrumbs :crumb:index }} {{ var data_nav = !crumb.action ? self.data_nav : ''; }}
  1. {{? index }} {{= self.breadcrumb_divider }} {{?}} {{? crumb.action || crumb.url }} {{= crumb.label }} {{? crumb.is_dropdown }} {{# def.icon__dropdown }} {{?}} {{??}} {{= crumb.label }} {{?}}
  2. {{~}}
{{??}} {{= self.secondary.controls_left || '' }} {{?}}
{{? self.secondary.title }}
{{= self.secondary.title }}
{{?}}
{{?}} #}}