Actually I want to change the color of current topic... Here is my CSS code:
.active{
color: red;
border-left: 1px solid red;
}
Also here is my PHP class:
class Languages
{
public $active;
public $data = '<div class="menu">
<ul>
<li $active["en"]>English</li>
<li $active["fr"]>French</li>
</ul>
</div>';
function English()
{
// other codes
$this->active["en"] = 'active';
return $active;
}
function French()
{
// other codes
$this->active["fr"] = 'active';
return $active;
}
}
But the above code does not work, why?! And how can I fix it?