Classical phase transitions in a one-dimensional short-range spin model