Changeset 1694:a699f8de9232 for admin
- Timestamp:
- 09/02/13 12:55:13 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r1682 r1694 581 581 } 582 582 583 $post_type = $core->getPostTypes(); 584 $current_blog_id = $core->blog->id; 585 if ($blog_id != $core->blog->id) { 586 $core->setBlog($blog_id); 587 } 588 583 589 foreach ($blog_users as $k => $v) 584 590 { … … 617 623 echo 618 624 '<h5>'.__('Publications on this blog:').'</h5>'. 619 '<ul>'. 620 '<li>'.__('Blog entries:').' <a href="#">123</a></li>'. 621 '<li>'.__('Pages:').' <a href="#">2</a></li>'. 625 '<ul>'; 626 foreach ($post_type as $type => $pt_info) { 627 $params = array( 628 'post_type' => $type, 629 'user_id' => $k 630 ); 631 echo '<li>'.sprintf(__('%1$s: %2$s'),__($pt_info['label']),$core->blog->getPosts($params,true)->f(0)).'</li>'; 632 } 633 echo 622 634 '</ul>'; 623 635 echo '</div>'; 624 636 } 625 637 } 638 if ($current_blog_id != $core->blog->id) { 639 $core->setBlog($current_blog_id); 640 } 626 641 } 627 642
Note: See TracChangeset
for help on using the changeset viewer.