gnucash-htdocs master: Hide another code snippet

Frank H.Ellenberger fell at code.gnucash.org
Mon Oct 12 18:11:47 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/96d37c66 (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/42dad04f (commit)



commit 96d37c66d9f4470190d160cd1e88eecc1da2837e
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Tue Oct 13 00:11:24 2020 +0200

    Hide another code snippet

diff --git a/externals/header.phtml b/externals/header.phtml
index a67be80..81f6624 100644
--- a/externals/header.phtml
+++ b/externals/header.phtml
@@ -1,5 +1,4 @@
 <!DOCTYPE html>
-
 <?php
   $titleRSS = T_("Subscribe to RSS feed");
   $titledonation = T_("Support the GnuCash project with a donation");
@@ -38,7 +37,6 @@
     $locale_str = "en";
   }
 ?>
-
 <html prefix="og: https://ogp.me/ns#" lang="<?=$locale_str?>">
   <head>
 <?php // Primary Meta Tags
@@ -90,13 +88,11 @@
     <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="<?=$home?>/atom.php" />
 <?php } ?>
   </head>
-
   <body>
     <div id="head">
       <div id="branding">
         <p><img src="<?=$top_dir?>/images/gnucash-vert.png" alt="GnuCash" /></p>
       </div>
-
 <?php /* FIXME: It does not conform to
          https://curia.europa.eu/jcms/upload/docs/application/pdf/2019-07/cp190099en.pdf
          potential fix: an improved version of
@@ -122,7 +118,7 @@
         </div> <!-- facebook like button-->
       </div> <!-- socialbuttons -->
 */ ?>
-      <!-- the icons on the top right-->
+<?php // 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>
@@ -131,13 +127,13 @@
           <li id="rss-icon"><a href="<?=$home?>/atom.php" title="<?php echo T_($titleRSS);?>"></a></li>
         </ul>
       </div>
-      
+
       <div style="margin: 0px 0px 0 0;">
         <a href="<?=$home?>/"><!--img src="<?=$home?>/externals/gnucash_logo1.png" alt="[GnuCash Logo]" id="gnclogo" width="179" height="45" border="0"/ -->
         <img alt="banner" src="<?=$home?>/images/banner5.png" /></a>
         <p style="font-style:italic; font-size:1.1em; margin: 0 0 0 10px; color: #08006d; text-shadow:0px 0px 9px white;"><?php echo T_("Free Accounting Software");?></p>
       </div>
-      
+
       <span id="language">
         <?= T_("Language"); ?>:
           <a class="nav" href="<?= make_lang_href($current_page, $get_parms, "en_US"); ?>">English</a>
diff --git a/index.phtml b/index.phtml
index 998ff5b..c1be574 100644
--- a/index.phtml
+++ b/index.phtml
@@ -7,17 +7,12 @@ $page = $_SERVER['PHP_SELF'];
 include ("externals/header.phtml");
 include ("externals/menu.phtml");
 ?>
-
 <div id="content">
-
   <h1><?=T_("Welcome to GnuCash.org")?></h1>
-
   <div style="width: 100%; float: left">
-
     <div class="download">
       <div style="float: left;">
         <h2 id="dwnld-box"><?php printf (T_("Download GnuCash %s"), $latest_stable)?></h2>
-
         <ul>
           <li><img alt="linux" src="<?=$top_dir?>/images/icons/linux.png" />
             Linux <a href="<?=$latest_stable_path.$latest_stable_source?>"><?=T_("Source")?></a>
@@ -32,11 +27,9 @@ include ("externals/menu.phtml");
           <li><a href="<?=$home?>/download.phtml" style="font-size: 80%;"><?=T_("More downloads (Source, Development,...)")?></a></li>
         </ul>
       </div>
-
       <div class="downloadimage">
         <img alt="download" src="<?=$top_dir?>/images/gnc-download.png" />
       </div>
-
       <div style="float: left;">
         <p><?php printf(T_( "Version %s is the last version for %s and %s and earlier." ),
            "<a href=\"download.phtml#previous\">".$last_win7_version."</a>", "Windows 7", "MacOS 10.12" )?>
@@ -45,11 +38,11 @@ include ("externals/menu.phtml");
             "<a href=\"download.phtml#historical\">".$last_xp_vista_version."</a>" )?>
         </p>
       </div>
-    </div>
+    </div><?php // Download ?>
 
     <p class="justify"><?=$GLOBALS ["default_description"]?></p>
 
-    <!-- FIXME: I18N spaces, markup-->
+<?php // FIXME: I18N spaces, markup: ?>
     <p class="justify"><?=T_("Designed to be easy to use, yet powerful and flexible, <span class=\"gnucash\">GnuCash</span> allows you to track bank accounts, stocks, income and expenses.  As quick and intuitive to use as a checkbook register, it is based on professional accounting principles to ensure balanced books and accurate reports. "); ?></p>
   </div>
 
@@ -57,7 +50,7 @@ include ("externals/menu.phtml");
     <div class="dialog note">
       <h1><?=T_("Need Help?")?></h1>
       <p class="justify">
-      <!-- FIXME: I18N printf, markup -->
+<?php // FIXME: I18N printf, markup: ?>
         <?=T_("Looking for someone to contact about <span class=\"gnucash\">GnuCash</span>? Try the")?>
           <a href="https://wiki.gnucash.org/wiki/Mailing_Lists"><?=T_("Mailing Lists")?></a>
           <?=T_(", which are public, email-based discussion groups where you can ask and answer <span class=\"gnucash\">GnuCash</span> questions to other users.")?>
@@ -87,11 +80,9 @@ include ("externals/menu.phtml");
     <p><?php printf(T_("We've released GnuCash %s with many bugfixes and improvements including some %s!"), "4.0",
                     sprintf("<a href=\"%s\">%s</a>", $home . "/new_features-4.0.phtml", T_("great new features")))?>
     </p>
-  </div>
-  <!-- newfeatures -->
-
+  </div> <!-- newfeatures -->
 
-	<!-- Android app info 
+<?php /*!-- Android app info 
   <div class="download" style="margin-top:2em">
     <h3 style="margin-bottom:1px; margin-top:0px">GnuCash for Android</h3>
     <div style="width:172px; height:100%; float:right; margin-left:15px; margin-right:15px">
@@ -102,8 +93,7 @@ include ("externals/menu.phtml");
     </div>
     <p><?=T_("The GnuCash team recommends the GnuCash for Android app. This app allows you to keep track of your financial transactions on the go for later import into the desktop version of GnuCash.")?></p>
     <p><i><b><?=T_("Note that GnuCash for Android is not a port of the GnuCash program to Android.")?></b></i></p>
-  </div> < end Android app info -->
-</div>
-<!-- content -->
+  </div> < end Android app info */ ?>
+</div> <!-- content -->
 
 <?php include("externals/footer.phtml"); ?>



Summary of changes:
 externals/header.phtml | 10 +++-------
 index.phtml            | 24 +++++++-----------------
 2 files changed, 10 insertions(+), 24 deletions(-)



More information about the gnucash-changes mailing list