I need to use PHP to set a conditional and change the css style for the following element:
<h3 id=“h3_g_<?= $gall[“url”] ?>” class=“ir”><?= $gall[“name”] ?></h3>
Something like:
<?php
if ($workpage) {
print("<h3 id=\"h3_g_<?= $gall[\"url\"] ?>\" class=\"ir\" style=\"top:59px!important;\"><?= $gall[\"name\"] ?></h3>");
} else {
print("<h3 id=\"h3_g_<?= $gall[\"url\"] ?>\" class=\"ir\"><?= $gall[\"name\"] ?></h3>");
}
?>
However, I don’t have the syntax right. Another option would be to assign a different class (rather than try to use an inline style). I could use some help with the syntax first.