Ich will eine PHP Ausgabe um die Ausgabe einer ID ergänzen. Im Original sieht das so aus
PHP
$compile .= '<div class="fw_block bg_start'.(isset($module['custom_class']) && strlen($module['custom_class'])>0 ? " ".$module['custom_class'] : '').'" data-option="'.$module['properties'].'" data-background="" style=" background:'.((strlen($module['bg_color'])>0) ? "#".$module['bg_color'] : '').' '.((strlen($module['bg_image'])>0) ? "url('".$module['bg_image']."')" : '').' '.(($module['properties'] == "stretch") ? 'no-repeat' : 'repeat').' 0 0; '.(($module['properties'] == "stretch") ? 'background-size:cover;' : '').'">';
Meine Ergänzung um die ID:
PHP
$compile .= '<div id='(isset($module['custom_ID'])' class="fw_block bg_start'.(isset($module['custom_class']) && strlen($module['custom_class'])>0 ? " ".$module['custom_class'] : '').'" data-option="'.$module['properties'].'" data-background="" style=" background:'.((strlen($module['bg_color'])>0) ? "#".$module['bg_color'] : '').' '.((strlen($module['bg_image'])>0) ? "url('".$module['bg_image']."')" : '').' '.(($module['properties'] == "stretch") ? 'no-repeat' : 'repeat').' 0 0; '.(($module['properties'] == "stretch") ? 'background-size:cover;' : '').'">';
.... geht leider nicht - sprich ich erhalte einen weissen Bildschirm. Ich vermute einen Syntaxfehler. Kann mir da jemand helfen?