title: Magento 1.9 - echo Product Stock Alert next to "Out of Stock" Label
body: <p>as the title suggests, I'm trying to display the "Sign up to be notified when this product is back in stock" link next to the "Out of Stock" Label.</p>
  
  <p>So it should look like:<br>
  <img src="https://i.stack.imgur.com/WBJeP.gif" alt="Example"></p>
  
  <p>I'm going through all of the templates, and in <code>template/catalog/product/view.phtml</code> there is this code snippet:<br><code>&lt;?php echo $this-&gt;getChildHtml('alert_urls') ?&gt;</code>, which is from:<br><code>template/productalert/product/view.phtml</code> (which just contains the code to echo the actual link.) What I would like to do in this template is something like the following, where I have <code>INSERT STOCK ALERT LINK HERE</code>:</p>
  
  <pre><code>&lt;?php $_product = $this-&gt;getProduct() ?&gt;
  
  &lt;?php if ($this-&gt;displayProductStockStatus()): ?&gt;
      &lt;?php if ($_product-&gt;isAvailable()): ?&gt;
          &lt;p class="availability in-stock"&gt;
              &lt;span&gt;&lt;?php echo $this-&gt;__('In stock') ?&gt;&lt;/span&gt;
          &lt;/p&gt;
      &lt;?php else: ?&gt;
          &lt;p class="availability out-of-stock"&gt;
              &lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;
              &lt;!-- ******* INSERT STOCK ALERT LINK HERE ******* --&gt;
          &lt;/p&gt;
      &lt;?php endif; ?&gt;
  &lt;?php endif; ?&gt;
  &lt;?php echo $this-&gt;getChildHtml('product_type_data_extra') ?&gt;
  &lt;?php echo $this-&gt;getPriceHtml($_product) ?&gt;
  </code></pre>
  
  <p>I have disabled Price alerts as this is not needed. So the only alert will be the Sign up for stock notification. </p>
  
  <p>I've tried many things, but I think perhaps that it is the scope of the <code>$this</code> variable that prevents me from accessing it. Your advice or suggestions are most welcomed!</p>