if ($infITM->rec->isActive) {
echo $infITM->htm_testata_offerta();
echo $infITM->htm_dettagli_offerta();
} else {
if ( strlen($infITM->rec->off_htmExpired)>3 )
{
echo $infITM->rec->off_htmExpired;
} else {
// check default msg
/** @var ezSQL_mysqli $infITM->_db */
$expqrysql = "select `valore` from `config` where `chiave` LIKE 'MsgDef_OFRinActive'";
$expqry = $infITM->_db->query($expqrysql);
//var_dump($expqry);
if ($expqry) {
$expmsg = $infITM->_db->get_var();
if ($expmsg) {
$expmsg = str_ireplace("[","<", $expmsg);
$expmsg = str_ireplace("]",">", $expmsg);
$expmsg = str_ireplace("%%TITOLOSEOOFFERTA%%",$clsSEO->rec->seotitle, $expmsg);
//$expmsg = str_ireplace("offerta","", $expmsg);
echo($expmsg);
}
else
echo("...
");
}
//echo("
Offerta al momento non disponibile
Contattateci direttamente per ulteriori informazioni, grazie!
");
}
}
?>
//=============================================== ?>