Changeset 2247:931dddd634d0
- Timestamp:
- 10/04/13 13:35:02 (11 years ago)
- Branch:
- default
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/install/index.php
r2183 r2247 211 211 $init_fav['new_post'] = array('new_post','New entry','post.php', 212 212 'images/menu/edit.png','images/menu/edit-b.png', 213 'usage,contentadmin',null, 'menu-new-post');213 'usage,contentadmin',null,null); 214 214 $init_fav['newpage'] = array('newpage','New page','plugin.php?p=pages&act=page', 215 215 'index.php?pf=pages/icon-np.png','index.php?pf=pages/icon-np-big.png', -
inc/admin/class.dc.favorites.php
r2234 r2247 406 406 'small-icon' => 'images/menu/edit.png', 407 407 'large-icon' => 'images/menu/edit-b.png', 408 'permissions' =>'usage,contentadmin', 409 'id' => 'menu-new-post'), 408 'permissions' =>'usage,contentadmin'), 410 409 'posts' => array( 411 410 'title' => __('Entries'), … … 467 466 'url' => 'plugins.php', 468 467 'small-icon' => 'images/menu/plugins.png', 469 'large-icon' => 'images/menu/plugins-b.png'), 468 'large-icon' => 'images/menu/plugins-b.png'), 470 469 'langs' => array( 471 470 'title' => __('Languages'), … … 480 479 )); 481 480 } 482 483 public static function postsDashboard($core,$v) { 481 482 public static function postsDashboard($core,$v) 483 { 484 484 $post_count = $core->blog->getPosts(array(),true)->f(0); 485 485 $str_entries = __('%d entry', '%d entries',$post_count); 486 486 $v['title'] = sprintf($str_entries,$post_count); 487 487 } 488 489 public static function commentsDashboard($core,$v) { 488 489 public static function commentsDashboard($core,$v) 490 { 490 491 $comment_count = $core->blog->getComments(array(),true)->f(0); 491 492 $str_comments = __('%d comments', '%d comments',$comment_count); 492 493 $v['title']= sprintf($str_comments,$comment_count); 493 494 } 494 495 496 495 } -
inc/admin/prepend.php
r2229 r2247 262 262 $_menu['Blog']->prependItem(__('New entry'),'post.php','images/menu/edit.png', 263 263 preg_match('/post.php$/',$_SERVER['REQUEST_URI']), 264 $core->auth->check('usage,contentadmin',$core->blog->id) ,'menu-new-post');264 $core->auth->check('usage,contentadmin',$core->blog->id)); 265 265 266 266 $_menu['System']->prependItem(__('Update'),'update.php','images/menu/update.png', -
inc/dbschema/upgrade.php
r2144 r2247 152 152 $init_fav['new_post'] = array('new_post','New entry','post.php', 153 153 'images/menu/edit.png','images/menu/edit-b.png', 154 'usage,contentadmin',null, 'menu-new-post');154 'usage,contentadmin',null,null); 155 155 $init_fav['newpage'] = array('newpage','New page','plugin.php?p=pages&act=page', 156 156 'index.php?pf=pages/icon-np.png','index.php?pf=pages/icon-np-big.png',
Note: See TracChangeset
for help on using the changeset viewer.