I have some PHP variables, which are these:
<?php
$on = "ON";
$off = "OFFLINE";
$disabled ="disabled";
?>
Well, what I want to do is a bit more automatic, if I use the variable " $off
" automatically in another sector the variable " $disabled
" is added.
And if it is in " $on
" do not put anything.
The "disabled" is within a " class=""
" in an HTML tag.
And here would have to go the Off / On
<div id="lideres-jugador-header">
<?php echo "$off"; ?>
</div>
And here I would go if it is disabled or not at all:
<a href="/link/" class="waves-effect waves-light btn <?php echo "$disabled"; ?>"> <font color="#FFFFFF">VER</font></a>