Joining two types of the menus in one page is fairly easy, so from the knowledge you took in the above topics, you just have to join them in HTML also. Intuition!
And sidebar to the right:
With collapsed sidebar:
Collapsed sidebar moving to the right: