I need to add a "has-children" class to the tag if the current page's or post's menu item in fact has children.
As this "logic" has to work with Pages, Posts, Categories etc. menu items it seems it is not easy to find out.
Thanks in advance!
Edit: I am not sure I explained good enough: I need to add "has-children" not if the current page is a page-child but only if the current page's menu-item is a menu-item-child...