[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    php...
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2005-08-16 11:33:36
Message-ID: 200508161333.40146.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


I'm trying to bring some order to the Krita part of the koffice website... I 
want to make more distinctions in the app info block. I have edited the 
relevant php file a little, but since I don't know php and am not aware of 
any existing policies, I'm presenting my changes here. No other application 
should be affected by these changes... Are they okay?


-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi

["appinfo.diff" (text/x-diff)]

Index: class_appinfo.inc
===================================================================
--- class_appinfo.inc	(revision 427310)
+++ class_appinfo.inc	(working copy)
@@ -24,6 +24,7 @@
 {
 	var $title;
 	var $authors = array();
+	var $current_authors = array();
 	var $maintainers = array();
 	var $contributors = array();
 	var $thankstos = array();
@@ -37,6 +38,7 @@
 
 	// tmp vars
 	var $author;
+    var $current_authors;
 	var $maintainer;
 	var $contributor;
 
@@ -62,6 +64,12 @@
 		array_push($this->authors, $author);
 	}
 
+    function addCurrentAuthor($name, $email="", $job="")
+    {
+        $curauthor = new Contributor($name, $email, $job)
+        array_push($this->current_authors, $curauthor);
+    }
+
 	function addMaintainer($name, $email="")
 	{
 		$contributor = new Author($name, $email);
@@ -159,6 +167,24 @@
 			print "</ul>\n";
 		}
 
+        if (count($this->current_authors))
+        {
+            print "<b>Current Author";
+            if( count( $this->current_authors ) > 1 )
+            {
+                 print "s";
+            }
+            print ":</b>\n";
+            print "<ul>\n";
+
+            for ($i=0; $i < count( $this->current_authors ); $i++)
+            {
+                $this->current_authors[$i]->show();
+            }
+            print "</ul>\n";
+        }
+
+
 		if (count($this->contributors))
 		{
 			print "<b>Contributor";

[Attachment #8 (application/pgp-signature)]

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic