Show create content menu item to ananymous users but call URL for login/register popup on click
I had the same problem, and solved it without coding. 


Manually set the menu path with absolute URL, ie. http://yourdomain.com/node/add/node-type
Install and enable the module r4032login‎
Done!