[Fusionforge-commits] r6810 - in trunk/gforge/www: . include themes/gforge-simple-theme themes/lite themes/ultralite

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Jan 29 21:19:16 CET 2009


Author: lolando
Date: 2009-01-29 21:19:16 +0100 (Thu, 29 Jan 2009)
New Revision: 6810

Modified:
   trunk/gforge/www/env.inc.php
   trunk/gforge/www/include/Layout.class.php
   trunk/gforge/www/themes/gforge-simple-theme/Theme.class.php
   trunk/gforge/www/themes/lite/Theme.class.php
   trunk/gforge/www/themes/ultralite/Theme.class.php
Log:
Version info to page footer even for non-default themes, and centralise the version info in GForge.class (until the renaming happens)

Modified: trunk/gforge/www/env.inc.php
===================================================================
--- trunk/gforge/www/env.inc.php	2009-01-29 20:04:03 UTC (rev 6809)
+++ trunk/gforge/www/env.inc.php	2009-01-29 20:19:16 UTC (rev 6810)
@@ -7,8 +7,6 @@
  * 
  */
 
-$ff_version = '4.7';
-
 # In case of errors, let output be clean.
 $gfRequestTime = microtime( true );
 

Modified: trunk/gforge/www/include/Layout.class.php
===================================================================
--- trunk/gforge/www/include/Layout.class.php	2009-01-29 20:04:03 UTC (rev 6809)
+++ trunk/gforge/www/include/Layout.class.php	2009-01-29 20:19:16 UTC (rev 6810)
@@ -14,6 +14,7 @@
  */
  
 require_once $gfcommon.'include/constants.php';
+require_once $gfcommon.'include/GForge.class.php';
 require_once $gfwww.'search/include/SearchManager.class.php';
 
 class Layout extends Error {
@@ -267,10 +268,17 @@
 
 	function footerEnd($params) { ?>
 
-<!-- PLEASE LEAVE "Powered By GForge" on your site -->
+<!-- PLEASE LEAVE "Powered By FusionForge" on your site -->
 <br />
 <center>
-<a href="http://gforge.org/"><img src="/images/pow-gforge.png" alt="Powered By GForge Collaborative Development Environment" border="0" /></a>
+<a href="http://fusionforge.org/"><img src="/images/pow-gforge.png" alt="Powered By FusionForge" border="0" /></a>
+<br />
+<?php
+			$forge = GForge() ;
+		printf (_('This site is running %1$s version %2$d'),
+			$forge->software_name,
+			$forge->software_version) ;
+?>
 </center>
 
 <?php

Modified: trunk/gforge/www/themes/gforge-simple-theme/Theme.class.php
===================================================================
--- trunk/gforge/www/themes/gforge-simple-theme/Theme.class.php	2009-01-29 20:04:03 UTC (rev 6809)
+++ trunk/gforge/www/themes/gforge-simple-theme/Theme.class.php	2009-01-29 20:19:16 UTC (rev 6810)
@@ -14,6 +14,7 @@
  */
 
 require_once $gfwww.'search/include/SearchManager.class.php';
+require_once $gfcommon.'include/GForge.class.php';
 
 class Theme extends Error {
 
@@ -208,12 +209,20 @@
 	$this->footerEnd($params);
 
 }
-function footerEnd($params) { ?> <!-- PLEASE LEAVE "Powered By GForge" on your site -->
+function footerEnd($params) { ?> <!-- PLEASE LEAVE "Powered By FusionForge" on your site -->
 <div id="footer"><a href="http://gforge.org/"><img
 	src="<?php echo util_make_url ('/images/pow-gforge.png'); ?>"
-	alt="Powered By GForge Collaborative Development Environment"
-	border="0" /></a></div>
+	alt="Powered By FusionForge"
+	border="0" /></a>
+<br />
 <?php
+		    $forge = GForge() ;
+	    printf (_('This site is running %1$s version %2$s'),
+		    $forge->software_name,
+		    $forge->software_version) ;
+?>
+</div>
+<?php
 global $sys_show_source;
 if ($sys_show_source) {
 	echo util_make_link ('/source.php?file='.getStringFromServer('SCRIPT_NAME'),_('Show source'),array('class'=>'showsource'));

Modified: trunk/gforge/www/themes/lite/Theme.class.php
===================================================================
--- trunk/gforge/www/themes/lite/Theme.class.php	2009-01-29 20:04:03 UTC (rev 6809)
+++ trunk/gforge/www/themes/lite/Theme.class.php	2009-01-29 20:19:16 UTC (rev 6810)
@@ -8,6 +8,7 @@
  *
  * @version   $Id$
  */
+require_once $gfcommon.'include/GForge.class.php';
 
 class Theme extends Layout {
 
@@ -171,11 +172,16 @@
 
 		<!-- end inner body row -->
 </div> <!-- end of content -->
-<!-- PLEASE LEAVE "Powered By GForge" on your site -->
+<!-- PLEASE LEAVE "Powered By FusionForge" on your site -->
 <br />
 <center>
-<a href="http://gforge.org/"><img src="<?php echo util_make_url ('/images/pow-gforge.png'); ?>" alt="Powered By GForge Collaborative Development En
-vironment" border="0" /></a>
+<a href="http://fusionforge.org/"><img src="<?php echo util_make_url ('/images/pow-gforge.png'); ?>" alt="Powered By FusionForge" border="0" /></a>
+<?php
+		    $forge = GForge() ;
+	    printf (_('This site is running %1$s version %2$d'),
+		    $forge->software_name,
+		    $forge->software_version) ;
+?>
 </center>
 
 </body>

Modified: trunk/gforge/www/themes/ultralite/Theme.class.php
===================================================================
--- trunk/gforge/www/themes/ultralite/Theme.class.php	2009-01-29 20:04:03 UTC (rev 6809)
+++ trunk/gforge/www/themes/ultralite/Theme.class.php	2009-01-29 20:19:16 UTC (rev 6810)
@@ -1,4 +1,7 @@
 <?php
+
+require_once $gfcommon.'include/GForge.class.php';
+
 class Theme extends Layout {
 	/**
 	 * Theme() - Constructor
@@ -138,12 +141,18 @@
 	function footer($params) {
 		?>
 		<!-- end main body row -->
-		<!-- PLEASE LEAVE "Powered By GForge" on your site -->
+		<!-- PLEASE LEAVE "Powered By FusionForge" on your site -->
 		<br />
 		<center>
-		<a href="http://gforge.org/">Powered By GForge Collaborative Development Environment</a>
+		<a href="http://fusionforge.org/">Powered By FusionForge</a><br />
+<?php
+			$forge = GForge() ;
+		printf (_('This site is running %1$s version %2$d'),
+			$forge->software_name,
+			$forge->software_version) ;
+?>
 		</center>
-		<?php
+<?php		
 		global $sys_show_source;
 		if ($sys_show_source) {
 			echo util_make_link ('/source.php?file='.getStringFromServer('SCRIPT_NAME'),_('Show Source'),array('class'=>'showsource'));




More information about the Fusionforge-commits mailing list