Thiết lập giá trị
$_columnCount =
Ở trên đoạn
if($_columnCount == 5){ $imgSize = 180; }elseif($_columnCount == 3){ $imgSize = 245; }