Changeset 1698:add60e1e9451 for admin/blog_pref.php
- Timestamp:
- 09/03/13 08:55:45 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r1696 r1698 599 599 ' ('.html::escapeHTML(dcUtils::getUserCN( 600 600 $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 602 624 '<h5>'.__('Permissions:').'</h5>'. 603 625 '<ul>'; 604 626 if ($v['super']) { 605 echo '<li >'.__('Super administrator').'</li>';627 echo '<li class="user_super">'.__('Super administrator').'</li>'; 606 628 } else { 607 629 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>'; 609 631 } 610 632 } … … 624 646 '</form>'; 625 647 } 626 echo627 '<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' => $k633 );634 echo '<li>'.sprintf(__('%1$s: %2$s'),__($pt_info['label']),$core->blog->getPosts($params,true)->f(0)).'</li>';635 }636 echo637 '</ul>';638 648 echo '</div>'; 639 649 }
Note: See TracChangeset
for help on using the changeset viewer.