Add icon and open tree menu popup on icon click event. We use this jQuery component for tree: [login to view URL]
Icon is this element: <i class="fa fa-cog"></i>
Icon must have cursor hand on hover.
When click - opens tree built in menu according to noode clicked.
This event must be added every time tree structure changed on adding new nodes in it - attach this jQuery to appropriate tree event.
This is only jQuery task - no need for PHP source files here. Use Google Chrome, translate page to your language, inject jQuery script to loaded web page using Google Chrome add-ins named "cjs".
Will give access to our web site with user name password on this project start.
Task result is jQuery script which we can add in Google Chrome "cjs" and when page loads this script creates all events needed.