gnucash-htdocs master: Revert removal of Google+

John Ralls jralls at code.gnucash.org
Sun Mar 31 13:00:50 EDT 2019


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/b2ef86df (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/826f469e (commit)



commit b2ef86dfe1c439fed616006b5a3dccae2b7b2bd2
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Mar 31 09:57:07 2019 -0700

    Revert removal of Google+
    
    To see if it broke layout.

diff --git a/externals/gnucash.css b/externals/gnucash.css
index 39291ad..7dd219e 100644
--- a/externals/gnucash.css
+++ b/externals/gnucash.css
@@ -625,12 +625,10 @@ h2.download-title {
    display:block;
 }
 
-/* Social media icon buttons. Note that they're anchored on
- * uservoice-icon and fb-icon has a negative position.
- */
-
 #fb-icon{
-left:-50px; width:42px; }
+   left:-100px;
+   width:42px;
+}
 
 #fb-icon{
    background:url('../images/icons/gc-fb.png') 0 0;
@@ -643,6 +641,22 @@ left:-50px; width:42px; }
    box-shadow: 0 0 4px silver;
 }
 
+#gplus-icon{
+   left:-50px;
+   width:42px;
+}
+
+#gplus-icon{
+   background:url('../images/icons/gc-gplus.png') 0 0;
+   border-radius:12px;
+}
+
+#gplus-icon a:hover{
+   background: url('../images/icons/gc-gplus.png') 0 -42px white;
+   border-radius: 16px;
+   box-shadow: 0 0 4px silver;
+}
+
 #uservoice-icon{
    left:0px;
    width:42px;
diff --git a/externals/header.phtml b/externals/header.phtml
index bfb1ee6..dbfe489 100644
--- a/externals/header.phtml
+++ b/externals/header.phtml
@@ -4,6 +4,7 @@
   $titleRSS = T_("Subscribe to RSS feed");
   $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
@@ -54,6 +55,18 @@
         <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="<?=$home?>/atom.php" />
     <?php } ?>
 
+    <!--This is the description shown on google+ profile for GnuCash-->
+    <meta name="description" content="A personal and small-business financial-accounting software, licensed under GNU/GPL and available for Linux, Windows, Mac OS X, BSD, and Solaris." />
+
+    <title><?= T_($title); ?> | GnuCash</title>
+    <!--script for Google+1 button-->
+    <script type="text/javascript">
+      (function() {
+        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
+        po.src = 'https://apis.google.com/js/plusone.js';
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
+      })();
+    </script>
   </head>
 
   <body>
@@ -64,7 +77,7 @@
         <p><img src="<?=$top_dir?>/images/gnucash-vert.png" alt="GnuCash" /></p>
       </div>
   
-      <div id="socialbuttons">
+      <div id="googleplusone">
   
         <!--facebook like button-->
         <div style="padding:0 0 5px 0">
@@ -80,13 +93,25 @@
           </script>
           
           <div class="fb-like" data-href="https://www.gnucash.org" data-send="false" data-layout="box_count" data-width="60" data-show-faces="true" data-font="verdana"></div>
-        </div> <!-- socialbuttons -->
+        </div> <!-- google +1 button-->
 
+<!-- HTML5:
+        <g:plusone size="tall" href="https://www.gnucash.org/"></g:plusone>
+      </div>
+      The following was taken from https://productforums.google.com/forum/#!topic/webmasters/UHu945nsdEM for older forms.
+ -->
+        <div class="g-plusone" id="my_plusone" size="tall" >
+          <script type="text/javascript">
+            document.getElementById("my_plusone").setAttribute("data-href", "https://www.gnucash.org/");
+          </script>
+        </div>
+      </div> <!-- googleplusone -->
 
       <!-- 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="https://gnucash.uservoice.com/" title="<?php echo T_($titleuservoice);?>"></a></li>
           <li id="donation-icon"><a href="https://gnucash.org/donate.phtml" title="<?php echo T_($titledonation);?>"></a></li>
           <li id="rss-icon"><a href="<?=$home?>/atom.php" title="<?php echo T_($titleRSS);?>"></a></li>



Summary of changes:
 externals/gnucash.css  | 24 +++++++++++++++++++-----
 externals/header.phtml | 29 +++++++++++++++++++++++++++--
 2 files changed, 46 insertions(+), 7 deletions(-)



More information about the gnucash-changes mailing list