I don't understand, where the mistake is in this line of code.
$Header .= "<a href='#' onclick='ToggleView(\"Thumbnail\");return false;' title='Grid'><div class='" . if ($Starting_Layout = 'Thumbnail'){ echo 'active';} . " thumb-toggle-icon'></div></a>"; Can someone help me fix it?
ifin assignment. 2.$Starting_Layoutis being set, not compared. 3.$Headernot initialized.if ($Starting_Layout = 'Thumbnail'){ echo 'active';}. Replace this with using short-if:echo ($Starting_Layout = 'Thumbnail' ? "active" : "")