Revision 1408
Added by DarkViper over 13 years ago
include.php | ||
---|---|---|
216 | 216 |
// replace the keywords |
217 | 217 |
function replace($aMatch) { |
218 | 218 |
$retval = '['.$aMatch.'=UNKNOWN]'; |
219 |
$retval_1 = ''; |
|
220 | 219 |
switch ($aMatch) { |
221 | 220 |
case 'a': |
222 |
$retval_1 = '<a href="'.$this->url.'"'; |
|
221 |
$retval = '<a href="'.$this->url.'"'; |
|
222 |
// break; // ignore 'break' to add the rest of <a>-tag |
|
223 | 223 |
case 'ac': |
224 |
$retval = '<a href="'.$this->url.'" class="'.$this->currClass.'"'; |
|
225 |
$retval = ($retval_1 == '') ? $retval : $retval_1; |
|
226 |
if(($this->flags & SM2_XHTML_STRICT)) { |
|
227 |
$retval .= ' title="'.(($this->flags & SM2_NO_TITLE) ? ' ' : $this->page['tooltip']).'"'; |
|
224 |
if( substr($retval, 0, 2) != '<a'){ |
|
225 |
$retval = '<a href="'.$this->url.'" class="'.$this->currClass.'"'; |
|
228 | 226 |
} |
229 |
else { |
|
227 |
if(($this->flags & SM2_NO_TITLE)) { |
|
228 |
$retval .= ' title="'.$this->page['tooltip'].'"'; |
|
229 |
} |
|
230 |
if(!($this->flags & SM2_XHTML_STRICT)) { |
|
230 | 231 |
$retval .= ' target="'.$this->page['target'].'"'; |
231 |
$retval .= ($this->flags & SM2_NO_TITLE) ? '' : ' title="'.$this->page['tooltip'].'"'; |
|
232 | 232 |
} |
233 | 233 |
$retval .= '>'; |
234 | 234 |
break; |
Also available in: Unified diff
small changes in handling of SM2_NO_TITLE ans SM2_XHTML_STRICT