added a link to typo3.org/community and a list of the authors from installed extensio...
authorIngo Renner <ingo.renner@typo3.org>
Sat, 28 Apr 2007 15:16:04 +0000 (15:16 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Sat, 28 Apr 2007 15:16:04 +0000 (15:16 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2291 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/help/about/index.php
typo3/stylesheet.css

index 916d9bb..8fa9d89 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
        * fixed bug #1290: TCEFORM.table.field.linkTitleToSelf-Option could be confusing
        * !!! removed option ->TCEFORM_confObj:linkTitleToSelf.returnUrl = 1 as it seemed unlogical not to use it
        * fixed bug 3993: Missing error message for big uploaded files - A message is there but it wasn't useful, changed it to something more understandable
+       * added a link to typo3.org/community and a list of the authors from installed extensions to the the about page (Help->About)
 
 2007-04-28  Michael Stucki  <michael@typo3.org>
 
index aed1cec..60f18fc 100755 (executable)
@@ -106,11 +106,22 @@ class SC_mod_help_about_index {
                $content='
                        <div id="typo3-mod-help-about-index-php-outer">
                                <img src="'.$BACK_PATH.'gfx/typo3logo.gif" width="123" height="34" vspace="10" alt="TYPO3 logo" />
-                               <div id="typo3-mod-help-about-index-php-inner">
+                               <div class="typo3-mod-help-about-index-php-inner">
                                        <h2>TYPO3 Information</h2>
                                        <h3>'.$LANG->getLL('welcome',1).'</h3>
                                        <p>'.$minorText.'</p>
                                </div>
+
+                               <div class="typo3-mod-help-about-index-php-inner">
+                                       <h2>Community Credits</h2>
+                                       <p>Visit <a href="http://typo3.org/community/">typo3.org/community</a> if you want to know why TYPO3 rocks.</p>
+                               </div>
+
+                               <div class="typo3-mod-help-about-index-php-inner">
+                                       <h2>Extension Authors</h2>
+                                       <p>This is a list of the people who contributed to the extensions you\'re using in your installation.</p>
+                                       <p><br />'.$this->getExtensionAuthors().'</p>
+                               </div>
                        </div>
                ';
                $this->content.= $content;
@@ -125,6 +136,32 @@ class SC_mod_help_about_index {
        function printContent() {
                echo $this->content;
        }
+       
+       /**
+        * gets the author names from the installed extensions
+        * 
+        * @return      string  list of extensions authors and their e-mail
+        */
+       function getExtensionAuthors() {
+               $content = '<table border="0" cellspacing="2" cellpadding="1"><tr><th>Extension</th><th>Author</th></tr>';
+               
+               $loadedExtensions = $GLOBALS['TYPO3_LOADED_EXT'];
+               foreach ($loadedExtensions as $extensionKey => $extension) {
+                       if (is_array($extension) && $extension['type'] != 'S') {
+                               $emconfPath = PATH_site.$extension['siteRelPath'].'ext_emconf.php';
+                               include($emconfPath);
+                                                               
+                               $emconf = $EM_CONF['']; // ext key is not set when loading the ext_emconf.php directly
+                               
+                               $content.= '<tr><td>'.$emconf['title'].' ('.$extensionKey.')</td>'.
+                                                               '<td><a href="mailto:'.$emconf['author_email'].'?subject='.rawurlencode('Thanks for your '.$emconf['title'].' extension').'">'.$emconf['author'].'</a></td></tr>';
+                       }               
+               }
+
+               $content.= '</table>';
+
+               return $content;
+       }
 }
 
 // Include extension?
index f513e3a..a1bbe3f 100755 (executable)
@@ -467,12 +467,12 @@ TABLE#typo3-permissionMatrix TD { text-align: center; width: 16%; }
 TABLE#typo3-permissionMatrix TD.bgColor2 { font-weight: bold; padding-left: 10px; padding-right: 10px; }
 
 /* Help > About */
-#typo3-mod-help-about-index-php-outer { margin: 0px auto; width: 333px; text-align:center;}
-#typo3-mod-help-about-index-php-inner { margin: 0px auto; border: 1px solid black; background: #eaeaea; padding: 5px; text-align: left; }
-#typo3-mod-help-about-index-php-inner h2 { margin-top: 0; }
-#typo3-mod-help-about-index-php-inner h3 { margin-top: 10px; margin-bottom: 10px; background-color: transparent; font-size: 14px; text-align: center; }
-#typo3-mod-help-about-index-php-inner a { color: black; }
-#typo3-mod-help-about-index-php-inner a:hover { text-decoration: none; }
+#typo3-mod-help-about-index-php-outer { margin: 0px auto; width: 350px; text-align:center;}
+#typo3-mod-help-about-index-php-outer .typo3-mod-help-about-index-php-inner { margin: 10px auto; border: 1px solid black; background: #eaeaea; padding: 5px; text-align: left; }
+#typo3-mod-help-about-index-php-outer .typo3-mod-help-about-index-php-inner h2 { margin-top: 0; }
+#typo3-mod-help-about-index-php-outer .typo3-mod-help-about-index-php-inner h3 { margin-top: 10px; margin-bottom: 10px; background-color: transparent; font-size: 14px; text-align: center; }
+#typo3-mod-help-about-index-php-outer .typo3-mod-help-about-index-php-inner a { color: black; }
+#typo3-mod-help-about-index-php-outer .typo3-mod-help-about-index-php-inner a:hover { text-decoration: none; }
 
 /* New element */
 BODY#typo3-db-new-php IMG { vertical-align: middle; }