Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme customizing hooks #255

Closed
wants to merge 3 commits into from

Conversation

mgazdzik
Copy link
Contributor

@mgazdzik mgazdzik commented Apr 2, 2014

Added some hooks required for custom theming:

  • Template.addBeforeMenuContent - was used for adding breadcrumbs. Parameter is used to pass what should be last element of breadcrumbs, according to active plugin.
  • Template.addExtraContentTopBar - this allows to formulate own top menu, not necessarily split into two twig templates. All variables used in respective templates are passed into this hook, allowing to apply own logic.
  • LanguageManager.alterAvailableLanguages - allows plugins to nicely limit available languages to only defined list.
  • Template.loginScreenExtraAssets - allows to inject additional assets to modify login screen look
  • Template.footerAddExtra - allows to inject some custom footer into Piwik

mattab added a commit that referenced this pull request Apr 14, 2014
…tent before the content, after the content, before the top bar

Fixes #4986
@mattab
Copy link
Member

mattab commented Apr 14, 2014

Thanks for the suggestions and PR! I've put instead a couple new generic hooks.
c3b6c38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants