[Fusionforge-commits] r18102 - trunk/src/www/themes/gforge

Marc-Etienne VARGENAU vargenau at fusionforge.org
Thu Oct 3 18:43:48 CEST 2013


Author: vargenau
Date: 2013-10-03 18:43:48 +0200 (Thu, 03 Oct 2013)
New Revision: 18102

Modified:
   trunk/src/www/themes/gforge/Theme.class.php
Log:
Update PHP Doc

Modified: trunk/src/www/themes/gforge/Theme.class.php
===================================================================
--- trunk/src/www/themes/gforge/Theme.class.php	2013-10-03 16:29:36 UTC (rev 18101)
+++ trunk/src/www/themes/gforge/Theme.class.php	2013-10-03 16:43:48 UTC (rev 18102)
@@ -67,12 +67,12 @@
 			$params['title'] = $params['title'] . " – " . forge_get_config('forge_name');
 		}
 
-                echo '
-			<table id="header" class="width-100p100">
+		echo '
+			<table id="header" class="fullwidth">
 				<tr>
 					<td id="header-col1">';
-				echo util_make_link ('/', html_image('header/top-logo.png',192,54,array('alt'=>'FusionForge Home')));
-				echo '</td>
+		echo util_make_link ('/', html_image('header/top-logo.png',192,54,array('alt'=>'FusionForge Home')));
+		echo '</td>
 					<td id="header-col2">';
 		$this->searchBox();
 		echo '
@@ -129,9 +129,9 @@
 		echo '</div><!-- id="maindiv" -->' . "\n";
 	}
 
-        function footer($params) {
+	function footer($params) {
 		$this->bodyFooter($params);
-                echo '
+		echo '
 			<!-- PLEASE LEAVE "Powered By FusionForge" on your site -->
 			<div class="align-right">
                        ' . $this->navigation->getPoweredBy() . '
@@ -141,11 +141,11 @@
 
 		plugin_hook('webanalytics_url', array());
 
-                echo '
+		echo '
 		</body>
 		</html>
 		';
-        }
+	}
 
 	/**
 	 * boxTop() - Top HTML box
@@ -153,6 +153,7 @@
 	 * @param   string  Box title
 	 * @param   bool    Whether to echo or return the results
 	 * @param   string  The box background color
+	 * @return string
 	 */
 	function boxTop($title, $id = '') {
 		if ($id) {
@@ -187,6 +188,7 @@
 	 *
 	 * @param   string  Box title
 	 * @param   string  The box background color
+	 * @return string
 	 */
 	function boxMiddle($title, $id = '') {
 		if ($id) {
@@ -210,8 +212,8 @@
 	 */
 	function boxBottom() {
 		$t_result='
-		</div> <!-- class="box-content" -->
-	</div> <!-- class="box-surround" -->
+                </div> <!-- class="box-content" -->
+            </div> <!-- class="box-surround" -->
 		';
 		return $t_result;
 	}
@@ -230,18 +232,18 @@
 	}
 
 	function tabGenerator($TABS_DIRS, $TABS_TITLES, $TABS_TOOLTIPS, $nested=false,
-					$selected=false, $sel_tab_bgcolor='WHITE',
-					$total_width='100%') {
+						  $selected=false, $sel_tab_bgcolor='WHITE',
+						  $total_width='100%') {
 		$count=count($TABS_DIRS);
 		if ($count < 1) {
-			return;
+			return '';
 		}
 
 		global $use_tooltips ;
 
 		$return = '
 		<!-- start tabs -->
-		<table class="tabGenerator width-100p100" ';
+		<table class="tabGenerator fullwidth" ';
 
 		if ($total_width != '100%') {
 			$return .= 'style="width:' . $total_width . ';"';
@@ -334,8 +336,8 @@
 		}
 
 		$return .= '</tr>
-	</table>
-	<!-- end tabs -->';
+		</table>
+		<!-- end tabs -->';
 
 		return $return;
 	}
@@ -347,7 +349,7 @@
 	 */
 	function beginSubMenu() {
 		$return = '
-	<p><strong>';
+            <p><strong>';
 		return $return;
 	}
 
@@ -419,7 +421,7 @@
 	 */
 	function multiTableRow($row_attr, $cell_data, $istitle) {
 		$return= '
-	<tr class="ff" '.$row_attr;
+		<tr class="ff" '.$row_attr;
 		if ( $istitle ) {
 			$return .=' align="center"';
 		}
@@ -441,7 +443,7 @@
 
 		}
 		$return .= '</tr>
-	';
+		';
 
 		return $return;
 	}
@@ -454,7 +456,7 @@
 	 */
 	function getThemeIdFromName($dirname) {
 		$res=db_query_params ('SELECT theme_id FROM themes WHERE dirname=$1',
-				      array($dirname));
+					  array($dirname));
 		return db_result($res,0,'theme_id');
 	}
 }




More information about the Fusionforge-commits mailing list