Permalink
Browse files

Only show social buttons if in production.

  • Loading branch information...
1 parent 805f846 commit 3fb7febdb5afa361f0996e717f7b9384ea7d0dc8 @jverkoey committed Mar 18, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 application/views/scripts/index/index.phtml
@@ -55,12 +55,14 @@ if( !Zend_Auth::getInstance()->hasIdentity() ) { ?>
</div>
</div></div>
+<? if ('production' == $this->env) { ?>
<div id="social_sites">
<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub="jverkoey";</script>
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
<!-- AddThis Button END -->
</div>
+<? } ?>
</div>
</div>
@@ -76,12 +78,14 @@ if( !Zend_Auth::getInstance()->hasIdentity() ) { ?>
but for the time being you'll have to hit enter after selecting your language.</p>
<p>If you have any questions, <a href="/contact">drop us a line</a>.</p></div>
+<? if ('production' == $this->env) { ?>
<div id="social_sites">
<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub="jverkoey";</script>
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
<!-- AddThis Button END -->
</div>
+<? } ?>
</div>
<? } ?>

0 comments on commit 3fb7feb

Please sign in to comment.