]> git.mxchange.org Git - friendica.git/commitdiff
some admin page fixes and cleanup
authorfriendica <info@friendica.com>
Tue, 6 Mar 2012 02:51:21 +0000 (18:51 -0800)
committerfriendica <info@friendica.com>
Tue, 6 Mar 2012 02:51:21 +0000 (18:51 -0800)
mod/admin.php
view/admin_plugins_details.tpl
view/admin_summary.tpl
view/theme/darkzero/theme.php

index 94bf4450328ef461f3bae30de9c9335f659e177f..2115f9241a5b772fb8601ab64380f8ec9bf44990 100755 (executable)
@@ -145,9 +145,10 @@ function admin_page_summary(&$a) {
                Array( t('Automatic Friend Account'), 0)
        );
        $users=0;
-       foreach ($r as $u){ $accounts[$u['page-flags']][1] = $u['count']; $users+=$u['count']; }
+       foreach ($r as $u){ $accounts[$u['page-flags']][1] = $u['count']; $users+= $u['count']; }
+
+       logger('accounts: ' . print_r($accounts,true));
 
-       
        $r = q("SELECT COUNT(id) as `count` FROM `register`");
        $pending = $r[0]['count'];
        
@@ -574,6 +575,8 @@ function admin_page_plugins(&$a){
                        '$status' => $status,
                        '$action' => $action,
                        '$info' => get_plugin_info($plugin),
+                       '$str_author' => t('Author: '),
+                       '$str_maintainer' => t('Maintainer: '),                 
                
                        '$admin_form' => $admin_form,
                        '$function' => 'plugins',
@@ -747,7 +750,8 @@ function admin_page_themes(&$a){
                        '$info' => get_theme_info($theme),
                        '$function' => 'themes',                
                        '$admin_form' => $admin_form,
-                       
+                       '$str_author' => t('Author: '),
+                       '$str_maintainer' => t('Maintainer: '),                 
                        '$readme' => $readme
                ));
        } 
index d7147b20b9daef1c2a1d96dc8e1585a34be00080..ead356f5b922b7101f49ca4cb53bb8d5eaca7b19 100755 (executable)
@@ -4,13 +4,18 @@
        <p><span class='toggleplugin icon $status'></span> $info.name - $info.version : <a href="$baseurl/admin/$function/$plugin/?a=t">$action</a></p>
        <p>$info.description</p>
        
-       <p class="author">
+       <p class="author">$str_author
        {{ for $info.author as $a }}
                {{ if $a.link }}<a href="$a.link">$a.name</a>{{ else }}$a.name{{ endif }},
        {{ endfor }}
        </p>
-       
 
+       <p class="maintainer">$str_maintainer
+       {{ for $info.maintainer as $a }}
+               {{ if $a.link }}<a href="$a.link">$a.name</a>{{ else }}$a.name{{ endif }},
+       {{ endfor }}
+       </p>
+       
        {{ if $admin_form }}
        <h3>$settings</h3>
        <form method="post" action="$baseurl/admin/$function/$plugin/">
index 59428986a1a7d98b463b0981b77d4d24013e4e7d..eed71fbe0e62152f16a7b1c53490329e835a6315 100755 (executable)
@@ -13,7 +13,7 @@
        {{ for $accounts as $p }}
                <dl>
                        <dt>$p.0</dt>
-                       <dd>$p.1</dd>
+                       <dd>{{ if $p.1 }}$p.1{{ else }}0{{ endif }}</dd>
                </dl>
        {{ endfor }}
 
index 37632c4b5fd7987e383324c0c25614713864c8f8..839d862a18575c7fe423cb480bd3bad7aacdaa8c 100755 (executable)
@@ -4,6 +4,8 @@
  * Name: Darkzero
  * Version: 1.0
  * Author: Fabio Communi <fabrix.xm@gmail.com>
+ * Maintainer: Fabio Communi <fabrix.xm@gmail.com>
+ * Maintainer: Mike Macgirvin <mike@macgirvin.com>
  */
 
 $a->theme_info = array(