r22523 - htdocs/trunk/externals - Restore some overwritten code with a more recent version. That\'s because the beta website from where the patch comes, was not in sync with the current one.

Cristian Marchi cmarchi at code.gnucash.org
Mon Nov 5 06:44:56 EST 2012


Author: cmarchi
Date: 2012-11-05 06:44:55 -0500 (Mon, 05 Nov 2012)
New Revision: 22523
Trac: http://svn.gnucash.org/trac/changeset/22523

Modified:
   htdocs/trunk/externals/header.phtml
Log:
Restore some overwritten code with a more recent version. That\'s because the beta website from where the patch comes, was not in sync with the current one.

Modified: htdocs/trunk/externals/header.phtml
===================================================================
--- htdocs/trunk/externals/header.phtml	2012-11-05 09:19:40 UTC (rev 22522)
+++ htdocs/trunk/externals/header.phtml	2012-11-05 11:44:55 UTC (rev 22523)
@@ -5,6 +5,7 @@
 $titledonation = T_("Support the GnuCash project with a donation");
 $titleuservoice = T_("Request or vote enhancements for GnuCash");
 $titlegplus = T_("GnuCash on Google +");
+$titlefb = T_("GnuCash on facebook");
 
 # This function will create a link to the given page
 # reusing the get parameters that were specified
@@ -75,34 +76,29 @@
 <p><img src="<?=$top_dir?>/images/gnucash-vert.png" alt="GnuCash" /></p>
 </div>
 
-<!--This is an image out of the view that is shown on google+ profile for GnuCash
-<div style="position:absolute;top:-1000px;left:-1000px;"><img src="<?=$home?>/images/gnc-download.png" alt="GnuCash small business accounting" height="152" width="125" /></div>-->
-
 <div id="googleplusone">
 
 <!--facebook like button-->
 <div style="padding:0 0 5px 0">
 <div id="fb-root"></div>
-    <script type="text/javascript">
-    //<![CDATA[
-    (function() {
-        document.write('<fb:like width="200" data-href="www.gnucash.org" data-send="false" data-layout="box_count" data-width="60" data-show-faces="true" data-font="verdana"></fb:like>');
-        var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
-        s.type = 'text/javascript';
-        s.async = true;
-        s.src = 'http://connect.facebook.net/en_US/all.js#xfbml=1';
-        s1.parentNode.insertBefore(s, s1);
-    })();
-    //]]>
-    </script>
+<script>(function(d, s, id) {
+  var js, fjs = d.getElementsByTagName(s)[0];
+  if (d.getElementById(id)) {return;}
+  js = d.createElement(s); js.id = id;
+  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
+  fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'facebook-jssdk'));</script>
+
+<div class="fb-like" data-href="www.gnucash.org" data-send="false" data-layout="box_count" data-width="60" data-show-faces="true" data-font="verdana"></div>
 </div>
 <!-- google +1 button-->
-<g:plusone size="tall" href="http://www.gnucash.org/beta/"></g:plusone>
+<g:plusone size="tall" href="http://www.gnucash.org/"></g:plusone>
 </div>
 
 <!-- the icons on the top right-->
 <div style="float:right;">
 <ul id="navlist">
+  <li id="fb-icon"><a href="https://www.facebook.com/Gnucash" title="<?php echo T_($titlefb);?>"></a></li>
   <li id="gplus-icon"><a href="https://plus.google.com/u/0/103666182558673867088/" title="<?php echo T_($titlegplus);?>"></a></li>
   <li id="uservoice-icon"><a href="http://gnucash.uservoice.com/" title="<?php echo T_($titleuservoice);?>"></a></li>
   <li id="donation-icon"><a href="http://sourceforge.net/donate/index.php?group_id=192" title="<?php echo T_($titledonation);?>"></a></li>



More information about the gnucash-changes mailing list