title: Adsense instead of the images
body: <p>I have a business directory. Each user can create their own little photo gallery 
  If the user does not upload a picture, I want to shows Adsense instead of the images.
  Is it possible? 
  Here's the code that displays the images:</p>
  
  <pre><code>    if ($this-&gt;config-&gt;getTemParam('skipFirstImage','0') == 1) {
      array_shift($this-&gt;images);
      }
  
      echo '&lt;div class="row-fluid"&gt;';
  
      if (!empty($this-&gt;images)) {
      echo '&lt;div class="span5"&gt;';
      include $this-&gt;loadTemplate( 'sub_images.tpl.php' );
      echo '&lt;/div&gt;';
      }
  
      echo '&lt;div class="span'.(!empty($this-&gt;images)? '7':' 12').'"&gt;';
      echo '&lt;div class="listing-desc"&gt;';
  </code></pre>
  
  <p>How can I do this?</p>