Using conditionals in mustache templates

Using conditionals in mustache templates

by Linda Bicknell -
Number of replies: 0

I am trying to figure out how I can add at least 295 pixels to the left-margin of a site logo when the nav-drawer is open in Moodle. I am using the Maker theme by 3rd Wave Media that tends to hide the logo when the drawer is open. I want to scoot the logo over dynamically when it is open like other themes. For instance, the Enlightlite theme performs this action perfectly. We invested a lot in this theme so wanted to see if I can fix this one issue. 

I know I have to do this somewhere in the mustache templates but is there a way to add a new class to the logo element based on whether the aria-hidden attribute is equal to false on the #nav-drawer element?

Any help or guidance in this area would be most helpful. 

Thank you!


Average of ratings: -