Layouts - Main
This is the navigation bar of the whole page
Main Models
numCart
: Number of items in the cart, if there are anylanguages
: contains all the available languages for the pagepagesToEdit
: contain the key of the pages for edition
Utility Functions
onGoHome()
: go to home viewgoToPageEdit(page.key)
: Direct to some of the valid edition pages for administrators and business ownersgetLogState()
: Returns true if there is a logged in user and false if notonGoLogin()
: Go to the login pageonGoMyProfile()
: Go to the user profile pageonSignOut()
: Close a user's sessionselectLanguage(lang.id, lang.code)
: change the language on the whole page
Example of base theme
onGoHome()
goToPageEdit(page.key)
- pagesToEdit
onGoMyProfile()
onSignOut()
onCart()
if click, the 0 represent the calculated items un the cart with numCartselectLanguage
to select one language of languages
Updated almost 6 years ago