blog->settings->addNamespace('construction'); $menu_class = ''; if (dcCore::app()->blog->settings->construction->construction_flag) { dcCore::app()->addBehavior('adminPageHTMLHead','constructionadminPageHTMLHead'); $menu_class = 'construction-blog'; } $_menu['Blog']->addItem(__('Construction'), 'plugin.php?p=construction','index.php?pf=construction/icon.png', preg_match('/plugin.php\?p=construction(&.*)?$/',$_SERVER['REQUEST_URI']), dcCore::app()->auth->check('admin',dcCore::app()->blog->id), $menu_class ); function constructionadminPageHTMLHead() { echo ''."\n"; } dcCore::app()->addBehavior('adminDashboardFavorites','constructionDashboardFavorites'); function constructionDashboardFavorites($core,$favs) { $favs->register('construction', array( 'title' => __('Construction'), 'url' => 'plugin.php?p=construction', 'small-icon' => 'index.php?pf=construction/icon.png', 'large-icon' => 'index.php?pf=construction/icon-big.png', 'permissions' => 'usage,contentadmin' )); }