Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r1358 r1422  
    121121$__dashboard_items = new ArrayObject(array(new ArrayObject,new ArrayObject)); 
    122122 
    123 # Documentation links 
    124123$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 } 
    139124 
    140125if ($core->auth->user_prefs->dashboard->dcnews) { 
     
    180165} 
    181166 
     167# Documentation links 
     168if ($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 
    182183$core->callBehavior('adminDashboardItems', $core, $__dashboard_items); 
    183184 
     
    201202); 
    202203 
     204# Dotclear updates notifications 
     205if ($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 
    203222if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->blog_count > 1) { 
    204223     echo 
     
    249268$dashboardItems = ''; 
    250269 
    251 # Dotclear updates notifications 
    252 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  
    268270# Errors modules notifications 
    269271if ($core->auth->isSuperAdmin()) 
     
    286288     if ($i->count() > 0) 
    287289     { 
    288           $dashboardItems .= '<div>'; 
     290          $dashboardItems .= '<div class="db-item">'; 
    289291          foreach ($i as $v) { 
    290292               $dashboardItems .= $v; 
     
    324326          '<form id="quick-entry" action="post.php" method="post">'. 
    325327          '<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>'. 
    327329          form::field('post_title',20,255,'','maximal'). 
    328           '</label></p>'. 
     330          '</p>'. 
    329331          '<p class="area"><label class="required" '. 
    330332          'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 
    331333          form::textarea('post_content',50,7). 
    332334          '</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>'. 
    335337          '<p><input type="submit" value="'.__('Save').'" name="save" /> '. 
    336338          ($core->auth->check('publish',$core->blog->id) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map