title: Using Wordpress methods in echo - doesn't seem to work correctly?
body: <p>Not even sure if methods is the correct terminology...</p>
  
  <p>Here is the original working code:</p>
  
  <pre><code>&lt;a href="&lt;?php bloginfo('url'); ?&gt;"&gt;
  &lt;img src="&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/logo.png" alt="Polished Logo" id="logo"/&gt;&lt;/a&gt;
  &lt;img src="&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/separator.png" width="2" height="59" alt="Line" class="logo_line"/&gt;
  &lt;p id="logo_title"&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I wanted it to only execute on the homepage, so I wrote this:</p>
  
  <pre><code>&lt;? 
  if ( $_SERVER["REQUEST_URI"] == '/' ){
  echo '&lt;a href="'.bloginfo('url').'"&gt;
  &lt;img src="'.bloginfo('stylesheet_directory').'/images/logo.png" alt="Polished Logo" id="logo"/&gt;&lt;/a&gt;
  &lt;img src="'.bloginfo('stylesheet_directory').'/images/separator.png" width="2" height="59" alt="Line" class="logo_line"/&gt;
  &lt;p id="logo_title"&gt;'.bloginfo('description').'&lt;/p&gt;';
  }
  ?&gt;
  </code></pre>
  
  <p>But it outputs the <code>bloginfo()</code> and the other declarations completely outside the html tags I have created. For instance, with <code>bloginfo('stylesheet_directory')</code> it will display the directory outside the <code>IMG</code> tags I created.</p>
  
  <p>Any ideas? Apparently my syntax isn't correct or something....</p>