This example plugin describes how to write a plugin for ZZInfoBar with buttons and an entry in the plugins menu. It will teach you also how to use some of the components like awsmDropdown or ZZInfoBars tools that work in the background. Feel free to use this code or parts of it in your own plugins, because that's what examples are created for, aren't they? ;)