Skip to content

Instantly share code, notes, and snippets.

@jacksonhoose
Created June 17, 2014 17:58
Show Gist options
  • Select an option

  • Save jacksonhoose/df26b2a0b39a418a2be9 to your computer and use it in GitHub Desktop.

Select an option

Save jacksonhoose/df26b2a0b39a418a2be9 to your computer and use it in GitHub Desktop.
timber menu item
<?php
if(class_exists('TimberMenu') && class_exists('TimberMenuItem'))
{
class MyMenu extends TimberMenu {
var $MenuItemClass = 'MyMenuItem';
}
class MyMenuItem extends TimberMenuItem {
}
}
@certainlyakey
Copy link
Copy Markdown

Thank you! I'd probably never be able to crack how to use custom TimberMenuItem without this gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment