Unexpected results with conditionals inside template part

Why not use the body class to target these elements with CSS. You could do something like the following and make your PHP a little cleaner.

.product-item{width:33%;}
.home .product-item{width:25%;}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)