- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r1358 r1422 121 121 $__dashboard_items = new ArrayObject(array(new ArrayObject,new ArrayObject)); 122 122 123 # Documentation links124 123 $dashboardItem = 0; 125 if ($core->auth->user_prefs->dashboard->doclinks) {126 if (!empty($__resources['doc']))127 {128 $doc_links = '<h3>'.__('Documentation and support').'</h3><ul>';129 130 foreach ($__resources['doc'] as $k => $v) {131 $doc_links .= '<li><a href="'.$v.'" title="'.$k.' '.__('(external link)').'">'.$k.'</a></li>';132 }133 134 $doc_links .= '</ul>';135 $__dashboard_items[$dashboardItem][] = $doc_links;136 $dashboardItem++;137 }138 }139 124 140 125 if ($core->auth->user_prefs->dashboard->dcnews) { … … 180 165 } 181 166 167 # Documentation links 168 if ($core->auth->user_prefs->dashboard->doclinks) { 169 if (!empty($__resources['doc'])) 170 { 171 $doc_links = '<h3>'.__('Documentation and support').'</h3><ul>'; 172 173 foreach ($__resources['doc'] as $k => $v) { 174 $doc_links .= '<li><a href="'.$v.'" title="'.$k.' '.__('(external link)').'">'.$k.'</a></li>'; 175 } 176 177 $doc_links .= '</ul>'; 178 $__dashboard_items[$dashboardItem][] = $doc_links; 179 $dashboardItem++; 180 } 181 } 182 182 183 $core->callBehavior('adminDashboardItems', $core, $__dashboard_items); 183 184 … … 201 202 ); 202 203 204 # Dotclear updates notifications 205 if ($core->auth->isSuperAdmin() && is_readable(DC_DIGESTS)) 206 { 207 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 208 $new_v = $updater->check(DC_VERSION); 209 $version_info = $new_v ? $updater->getInfoURL() : ''; 210 211 if ($updater->getNotify() && $new_v) { 212 $message = 213 '<div><p>'.sprintf(__('Dotclear %s is available!'),$new_v).'</p> '. 214 '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'. 215 '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'. 216 ($version_info ? ' </li><li><a href="'.$version_info.'">'.__('information about this version').'</a>' : ''). 217 '</li></ul></div>'; 218 dcPage::message($message,false,true); 219 } 220 } 221 203 222 if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->blog_count > 1) { 204 223 echo … … 249 268 $dashboardItems = ''; 250 269 251 # Dotclear updates notifications252 if ($core->auth->isSuperAdmin() && is_readable(DC_DIGESTS))253 {254 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions');255 $new_v = $updater->check(DC_VERSION);256 $version_info = $new_v ? $updater->getInfoURL() : '';257 258 if ($updater->getNotify() && $new_v) {259 $dashboardItems .=260 '<div id="upg-notify" class="static-msg"><p>'.sprintf(__('Dotclear %s is available!'),$new_v).'</p> '.261 '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'.262 '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'.263 ($version_info ? ' </li><li><a href="'.$version_info.'">'.__('information about this version').'</a>' : '').264 '</li></ul></div>';265 }266 }267 268 270 # Errors modules notifications 269 271 if ($core->auth->isSuperAdmin()) … … 286 288 if ($i->count() > 0) 287 289 { 288 $dashboardItems .= '<div >';290 $dashboardItems .= '<div class="db-item">'; 289 291 foreach ($i as $v) { 290 292 $dashboardItems .= $v; … … 324 326 '<form id="quick-entry" action="post.php" method="post">'. 325 327 '<fieldset><legend>'.__('New entry').'</legend>'. 326 '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 328 '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 327 329 form::field('post_title',20,255,'','maximal'). 328 '</ label></p>'.330 '</p>'. 329 331 '<p class="area"><label class="required" '. 330 332 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 331 333 form::textarea('post_content',50,7). 332 334 '</p>'. 333 '<p><label for="cat_id" class="classic">'.__('Category:').' '.334 form::combo('cat_id',$categories_combo).'</ label></p>'.335 '<p><label for="cat_id" class="classic">'.__('Category:').'</label> '. 336 form::combo('cat_id',$categories_combo).'</p>'. 335 337 '<p><input type="submit" value="'.__('Save').'" name="save" /> '. 336 338 ($core->auth->check('publish',$core->blog->id)
Note: See TracChangeset
for help on using the changeset viewer.