Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/class.dc.menu.php

    r1179 r2566  
    1616     private $id; 
    1717     public $title; 
    18       
     18 
    1919     public function __construct($id,$title,$itemSpace='') 
    2020     { 
     
    2424          $this->items = array(); 
    2525     } 
    26       
     26 
    2727     public function addItem($title,$url,$img,$active,$show=true,$id=null,$class=null) 
    2828     { 
     
    3131          } 
    3232     } 
    33       
     33 
    3434     public function prependItem($title,$url,$img,$active,$show=true,$id=null,$class=null) 
    3535     { 
     
    3838          } 
    3939     } 
    40       
     40 
    4141     public function draw() 
    4242     { 
     
    4444               return ''; 
    4545          } 
    46            
     46 
    4747          $res = 
    4848          '<div id="'.$this->id.'">'. 
    4949          ($this->title ? '<h3>'.$this->title.'</h3>' : ''). 
    5050          '<ul>'."\n"; 
    51            
     51 
    5252          for ($i=0; $i<count($this->items); $i++) 
    5353          { 
     
    5959               } 
    6060          } 
    61            
     61 
    6262          $res .= '</ul></div>'."\n"; 
    63            
     63 
    6464          return $res; 
    6565     } 
    66       
     66 
    6767     protected function itemDef($title,$url,$img,$active,$id=null,$class=null) 
    6868     { 
     
    7474               $ahtml = ''; 
    7575          } 
    76            
     76 
    7777          $img = dc_admin_icon_url($img); 
    78            
     78 
    7979          return 
    8080          '<li'.(($active || $class) ? ' class="'.(($active) ? 'active ' : '').(($class) ? $class : '').'"' : ''). 
     
    8282          (($img) ? ' style="background-image: url('.$img.');"' : ''). 
    8383          '>'. 
    84            
     84 
    8585          '<a href="'.$link.'"'.$ahtml.'>'.$title.'</a></li>'."\n"; 
    8686     } 
    8787} 
    88 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map