Dotclear

Changeset 851:0993f64c4809 for inc/admin


Ignore:
Timestamp:
07/31/12 13:52:11 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
sexy
Message:

sexy step 2 : no more cats.

Location:
inc/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r848 r851  
    414414          self::jsVar('dotclear.msg.confirm_delete_user', 
    415415               __('Are you sure you want to delete selected users (%s)?')). 
    416           self::jsVar('dotclear.msg.confirm_delete_category', 
    417                __('Are you sure you want to delete category "%s"?')). 
    418           self::jsVar('dotclear.msg.confirm_reorder_categories', 
    419                __('Are you sure you want to reorder all categories?')). 
    420416          self::jsVar('dotclear.msg.confirm_delete_media', 
    421417               __('Are you sure you want to remove media "%s"?')). 
  • inc/admin/lib.pager.php

    r848 r851  
    4747               '<th colspan="2">'.__('Title').'</th>'. 
    4848               '<th>'.__('Date').'</th>'. 
    49                '<th>'.__('Category').'</th>'. 
    5049               '<th>'.__('Author').'</th>'. 
    5150               '<th>'.__('Status').'</th>'. 
     
    7574     private function postLine() 
    7675     { 
    77           if ($this->core->auth->check('categories',$this->core->blog->id)) { 
    78                $cat_link = '<a href="category.php?id=%s">%s</a>'; 
    79           } else { 
    80                $cat_link = '%2$s'; 
    81           } 
    82            
    83           if ($this->rs->cat_title) { 
    84                $cat_title = sprintf($cat_link,$this->rs->cat_id, 
    85                html::escapeHTML($this->rs->cat_title)); 
    86           } else { 
    87                $cat_title = __('None'); 
    88           } 
    89            
    9076          $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 
    9177          switch ($this->rs->post_status) { 
     
    130116          html::escapeHTML($this->rs->post_title).'</a></td>'. 
    131117          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 
    132           '<td class="nowrap">'.$cat_title.'</td>'. 
    133118          '<td class="nowrap">'.$this->rs->user_id.'</td>'. 
    134119          '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'. 
  • inc/admin/prepend.php

    r848 r851  
    238238          'images/menu/search.png','images/menu/search-b.png', 
    239239          'usage,contentadmin',null,null)); 
    240      $_fav['categories'] = new ArrayObject(array('categories','Categories','categories.php', 
    241           'images/menu/categories.png','images/menu/categories-b.png', 
    242           'categories',null,null)); 
    243240     $_fav['media'] = new ArrayObject(array('media','Media manager','media.php', 
    244241          'images/menu/media.png','images/menu/media-b.png', 
     
    302299          preg_match('/media(_item)?.php(\?.*)?$/',$_SERVER['REQUEST_URI']), 
    303300          $core->auth->check('media,media_admin',$core->blog->id)); 
    304      $_menu['Blog']->prependItem(__('Categories'),'categories.php','images/menu/categories.png', 
    305           preg_match('/categories.php(\?.*)?$/',$_SERVER['REQUEST_URI']), 
    306           $core->auth->check('categories',$core->blog->id)); 
    307301     $_menu['Blog']->prependItem(__('Search'),'search.php','images/menu/search.png', 
    308302          preg_match('/search.php(\?.*)?$/',$_SERVER['REQUEST_URI']), 
Note: See TracChangeset for help on using the changeset viewer.

Sites map