PHP: Making my code simpler/shorter welcome message
<p>Any suggestion to make this welcome message shorter:</p>

<pre><code> &lt;?php 
 if(isset($_SESSION['user_id'])) {
  if(isSet($_SESSION['1stTime'])){
  ?&gt;
  &lt;strong id="welcome" style="font-size: 10px;"&gt;
  &lt;a href="logout.php"&gt;
  Logga ut
  &lt;/a&gt;
  &lt;/strong&gt;
  &lt;?php
  }else{
  $_SESSION['1stTime'] = time();
  ?&gt;
  &lt;script&gt;
  $(document).ready(function() {
  $("#welcome").fadeIn("slow");
   setTimeout(function(){
   $("#welcome").fadeOut("slow"); 
    setTimeout(function(){
     $("#welcome").html("&lt;a href='logout.php'&gt;Logga ut&lt;/a&gt;");
     $("#welcome").fadeIn();
     }, 800);
   }, 5000);
  });
  &lt;/script&gt;
  &lt;strong id="welcome" style="display: none; color: #FFF; font-size: 10px;"&gt;Hej, &lt;?php echo $FULL; ?&gt;!&lt;/strong&gt;
  &lt;?php 
  } 
  }
  ?&gt;
</code></pre>

<p>First it checks if you are signed in. Next if 1stTime is set, if it is then show "Log out" in swedish, if it isnt, then introduce with "Hi, NAME", and then change to "Log out" after 5 seconds(jquery) + set the session</p>

<p>How can i make this simpler?</p>
