Napster: Funktion mit IF-Anweisung

Beitrag lesen

Hi,

<?php print(get_styleswitch_link('2', '9', 'w', 'foo', '<?php if (($css_name == 's') || ($css_name == 'w')) { print 'aktiv';}?>', 'bar'));?>

Probiers mal so:

<?php  
if (($css_name == 's') || ($css_name == 'w')) {  
  $css_klasse= 'aktiv';  
}  
print(get_styleswitch_link('2', '9', 'w', 'foo', $css_klasse, 'bar'));  
?>

MfG
Napster