Warning, can not parse template (content_custom_pic) (Error: Type 0, syntax error, unexpected 'if' (T_IF), line 4707 )

4697 :
4698 :
4699 :
4700 :
4701 :
4702 :
4703 :
4704 :
4705 :
4706 :
4707 :
4708 :
4709 :
4710 :
4711 :
4712 :
4713 :
4714 :
4715 :
4716 :
4717 :