#if($PhotoList.Count > 0) #foreach($PhotoItem in $PhotoList)
#if($DisplayPhoto ==true) ${xf.ViewContent( #else ${xf.ViewContent( #end
#end #end