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

2837 :
2838 :
2839 :
2840 :
2841 :
2842 :
2843 :
2844 :
2845 :
2846 :
2847 :
2848 :
2849 :
2850 :
2851 :
2852 :
2853 :
2854 :
2855 :
2856 :
2857 :