Changeset 433
- Timestamp:
- 05/06/07 10:35:01 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix/core/response/jResponseHtml.class.php
r411 r433 91 91 /**#@+ 92 92 * content for the head 93 * @var array 93 * @var array 94 94 */ 95 95 protected $_CSSLink = array (); … … 106 106 /**#@+ 107 107 * content for the body 108 * @var array 108 * @var array 109 109 */ 110 110 protected $_bodyTop = array(); … … 365 365 $more .= $param_name.'="'. htmlspecialchars($param_value).'" '; 366 366 } 367 echo '<link rel="stylesheet" type="text/css" href="',$src,'" ',$more,$this->_endTag; 367 if(!isset($params['rel'])) 368 $more .='rel="stylesheet" '; 369 echo '<link type="text/css" href="',$src,'" ',$more,$this->_endTag; 368 370 } 369 371 … … 376 378 $more .= $param_name.'="'. htmlspecialchars($param_value).'" '; 377 379 } 378 echo '<link rel="stylesheet" type="text/css" href="',$src,'" ',$more,$this->_endTag; 380 if(!isset($params['rel'])) 381 $more .='rel="stylesheet" '; 382 echo '<link type="text/css" href="',$src,'" ',$more,$this->_endTag; 379 383 } 380 384 echo '<![endif]-->'; … … 383 387 if($this->favicon != ''){ 384 388 $fav = htmlspecialchars($this->favicon); 385 echo '<link rel="icon" type="image/x-icon" href="' .$fav.'" />';386 echo '<link rel="shortcut icon" type="image/x-icon" href="' .$fav.'" />';389 echo '<link rel="icon" type="image/x-icon" href="',$fav,'" ',$this->_endTag; 390 echo '<link rel="shortcut icon" type="image/x-icon" href="',$fav,'" ',$this->_endTag; 387 391 } 388 392 … … 438 442 /** 439 443 * used to erase some head properties 440 * @param array $what list of one or many of this strings : 'CSSLink', 'Styles', 'JSLink', 'JSCode', 'Others','MetaKeywords','MetaDescription' 441 */ 442 final public function clearHtmlHeader ($what){ 443 $cleanable = array ('CSSLink', 'Styles', 'JSLink', 'JSCode', 'Others','MetaKeywords','MetaDescription'); 444 * @param array $what list of one or many of this strings : 'CSSLink', 'CSSIELink', 'Styles', 'JSLink', 'JSIELink', 'JSCode', 'Others','MetaKeywords','MetaDescription'. If null, it cleans all values. 445 */ 446 final public function clearHtmlHeader ($what=null){ 447 $cleanable = array ('CSSLink', 'CSSIELink', 'Styles', 'JSLink','JSIELink', 'JSCode', 'Others','MetaKeywords','MetaDescription'); 448 if($what==null) 449 $what= $cleanable; 444 450 foreach ($what as $elem){ 445 451 if (in_array ($elem, $cleanable)){
