Dotclear


Ignore:
Timestamp:
09/03/13 08:55:45 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Utilisateurs du blog: distribution horizontale des blocs, ajout d'un lien mailto à la demande générale de Pep (pour super admin seulement), icône spécifique super admin, admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_pref.php

    r1696 r1698  
    599599                    ' ('.html::escapeHTML(dcUtils::getUserCN( 
    600600                         $k, $v['name'], $v['firstname'], $v['displayname'] 
    601                     )).')</h4>'. 
     601                    )).')</h4>'; 
     602 
     603                    if ($core->auth->isSuperAdmin()) { 
     604                         echo  
     605                         '<p>'.__('Email:').' '. 
     606                         ($v['email'] != '' ? '<a href="mailto:'.$v['email'].'">'.$v['email'].'</a>' : __('(none)')). 
     607                         '</p>'; 
     608                    } 
     609 
     610                    echo 
     611                    '<h5>'.__('Publications on this blog:').'</h5>'. 
     612                    '<ul>'; 
     613                    foreach ($post_type as $type => $pt_info) { 
     614                         $params = array( 
     615                              'post_type' => $type, 
     616                              'user_id' => $k 
     617                              ); 
     618                         echo '<li>'.sprintf(__('%1$s: %2$s'),__($pt_info['label']),$core->blog->getPosts($params,true)->f(0)).'</li>'; 
     619                    } 
     620                    echo 
     621                    '</ul>'; 
     622 
     623                    echo 
    602624                    '<h5>'.__('Permissions:').'</h5>'. 
    603625                    '<ul>'; 
    604626                    if ($v['super']) { 
    605                          echo '<li>'.__('Super administrator').'</li>'; 
     627                         echo '<li class="user_super">'.__('Super administrator').'</li>'; 
    606628                    } else { 
    607629                         foreach ($v['p'] as $p => $V) { 
    608                               echo '<li>'.__($perm_types[$p]).'</li>'; 
     630                              echo '<li '.($p == 'admin' ? 'class="user_admin"' : '').'>'.__($perm_types[$p]).'</li>'; 
    609631                         } 
    610632                    } 
     
    624646                         '</form>'; 
    625647                    } 
    626                     echo 
    627                     '<h5>'.__('Publications on this blog:').'</h5>'. 
    628                     '<ul>'; 
    629                     foreach ($post_type as $type => $pt_info) { 
    630                          $params = array( 
    631                               'post_type' => $type, 
    632                               'user_id' => $k 
    633                               ); 
    634                          echo '<li>'.sprintf(__('%1$s: %2$s'),__($pt_info['label']),$core->blog->getPosts($params,true)->f(0)).'</li>'; 
    635                     } 
    636                     echo 
    637                     '</ul>'; 
    638648                    echo '</div>'; 
    639649               } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map