Created
June 17, 2014 17:58
-
-
Save jacksonhoose/df26b2a0b39a418a2be9 to your computer and use it in GitHub Desktop.
timber menu item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(class_exists('TimberMenu') && class_exists('TimberMenuItem')) | |
{ | |
class MyMenu extends TimberMenu { | |
var $MenuItemClass = 'MyMenuItem'; | |
} | |
class MyMenuItem extends TimberMenuItem { | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! I'd probably never be able to crack how to use custom
TimberMenuItem
without this gist.