Convert PHP to Liquid