[Fusionforge-commits] r12907 - in trunk/src: plugins/message/common www/include www/themes/css www/themes/funky www/themes/gforge

Alain Peyrat aljeux at fusionforge.org
Fri Mar 25 11:51:47 CET 2011


Author: aljeux
Date: 2011-03-25 11:51:47 +0100 (Fri, 25 Mar 2011)
New Revision: 12907

Modified:
   trunk/src/plugins/message/common/messagePlugin.class.php
   trunk/src/www/include/Layout.class.php
   trunk/src/www/themes/css/fusionforge.css
   trunk/src/www/themes/funky/Theme.class.php
   trunk/src/www/themes/gforge/Theme.class.php
Log:
Adapt message plugin to fusionforge

Modified: trunk/src/plugins/message/common/messagePlugin.class.php
===================================================================
--- trunk/src/plugins/message/common/messagePlugin.class.php	2011-03-25 10:51:38 UTC (rev 12906)
+++ trunk/src/plugins/message/common/messagePlugin.class.php	2011-03-25 10:51:47 UTC (rev 12907)
@@ -51,7 +51,7 @@
 		$res = db_query_params('SELECT message FROM plugin_message', array());
 		if ($res && db_numrows($res)>0) {
 			echo '<div id="message_box">';
-			echo '<img id="message_close" style="float:right;cursor:pointer"  src="/themes/acos/images/ic/close.png" />';
+			echo html_image('ic/close.png','','', array('id' => 'message_close', 'style' => 'float:right;cursor:pointer'));
 			echo db_result($res, 0, 'message');
 			echo '</div>';
 		}

Modified: trunk/src/www/include/Layout.class.php
===================================================================
--- trunk/src/www/include/Layout.class.php	2011-03-25 10:51:38 UTC (rev 12906)
+++ trunk/src/www/include/Layout.class.php	2011-03-25 10:51:47 UTC (rev 12907)
@@ -240,6 +240,7 @@
 			<head>
 			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 		<?php
+		plugin_hook('htmlhead', array());
 		$this->headerTitle($params);
 		$this->headerFavIcon();
 		$this->headerRSS();

Modified: trunk/src/www/themes/css/fusionforge.css
===================================================================
--- trunk/src/www/themes/css/fusionforge.css	2011-03-25 10:51:38 UTC (rev 12906)
+++ trunk/src/www/themes/css/fusionforge.css	2011-03-25 10:51:47 UTC (rev 12907)
@@ -726,3 +726,13 @@
 	clear: left;
 	margin-bottom: 1px;
 }
+
+#message_box {
+   display:none;
+   background:#ffc;
+   border:1px solid #CCCCCC;
+   text-align:center;
+   font-weight:bold;
+   width:99%;
+   padding: 4px;
+}

Modified: trunk/src/www/themes/funky/Theme.class.php
===================================================================
--- trunk/src/www/themes/funky/Theme.class.php	2011-03-25 10:51:38 UTC (rev 12906)
+++ trunk/src/www/themes/funky/Theme.class.php	2011-03-25 10:51:47 UTC (rev 12907)
@@ -115,6 +115,8 @@
 		echo '</div>' . "\n";
 		echo '<div id="maindiv">' . "\n";
 
+        plugin_hook('message', array());
+
 		if(isset($GLOBALS['error_msg']) && $GLOBALS['error_msg']) {
 			echo $this->error_msg($GLOBALS['error_msg']);
 		}

Modified: trunk/src/www/themes/gforge/Theme.class.php
===================================================================
--- trunk/src/www/themes/gforge/Theme.class.php	2011-03-25 10:51:38 UTC (rev 12906)
+++ trunk/src/www/themes/gforge/Theme.class.php	2011-03-25 10:51:47 UTC (rev 12907)
@@ -106,6 +106,8 @@
 ';
 //		        echo '<div class="printheader">'. forge_get_config('forge_name') . ' ' . util_make_url('/') .'</div>';
 
+                plugin_hook('message', array());
+
 				if(isset($GLOBALS['error_msg']) && $GLOBALS['error_msg']) {
 					echo $this->error_msg($GLOBALS['error_msg']);
 				}




More information about the Fusionforge-commits mailing list