Login/log out/register functions into an image?
Hello
I've create a custom menu in the sidebar using <a href> and the wordpress default text widget. I could configure every link to work but the "login/logout/register" function.
All the other menus were simple because it jsut need this form:
<a href="http://www.mywebsite.com/submit-job" target=_self><img src="http://www.mywebsite.com/
wp-content/themes/jobroller/images/my-image.png">Submit a Job</a>
but as for "login/logout/register" button i'd like to create, i don't know how to write it, knowing it needs to takes into consideration all the conditions "if_user blabla" so that it works exactly like it works >>> if user is logged out, the name is "login/register" and it restrict the function like it does normally, and when the user is logged that the name turn into "Log out" (because user is already logged in) and that it keeps the role, funcitons, limtation etc.
I don't know how to explain.
Thanks