title: Hide and show a div depending on login
body: <p>I know I am close but I can not get this to work. I am creatign my own navigation for Login and "My Profile". I am usign the Wordpress code <code>&lt;?php wp_loginout(); ?&gt;</code> for the Login/Logout and that works fine. Right next to that I have the words "My Profile" and I need to show and hide this based on the login status. If they are logged in, it shows up, if they are not, then it does not show. </p>
  
  <p><a href="https://stackoverflow.com/questions/8964856/hide-and-show-a-div-depending-on-session">I found this thread</a> and tried the code but it does not seem to work. </p>
  
  <p>Here is the code I used from that thread:</p>
  
  <pre><code>    &lt;?php if ($user_is_an_admin): ?&gt;
  &lt;div id='admin'&gt;
        My Profile
  &lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>I realize this is to show only if the person logging in is an ADMIN but I thought I would try this first to see if i could get it to work then peruse the code for logged in or not.</p>
  
  <p>So to cut to the chase, I need to know what the code would be for show/hide the "My Profile" based on weather the person is logged in or not. Regardless of there permission settings. </p>