"> ]+src=[\"'](s?https?:\/\/[\-_\.!~\*'()a-z0-9;\/\?:@&=\+\$,%#]+\.(jpg|jpeg|png|gif))[\"'][^>]+>/i", $post->post_content, $matches); if(isset($matches [1] [0])){ echo esc_url($matches [1] [0]); }else{ echo esc_url(get_theme_mod( 'simple_days_no_img' , get_template_directory_uri() .'/assets/images/no_image.png')); } }else{ $thumurl = wp_get_attachment_image_src( get_post_thumbnail_id() , 'full' ); echo esc_url($thumurl[0]); }?>"> ]+src=[\"'](s?https?:\/\/[\-_\.!~\*'()a-z0-9;\/\?:@&=\+\$,%#]+\.(jpg|jpeg|png|gif))[\"'][^>]+>/i", $post->post_content, $matches); if(isset($matches [1] [0])){ echo esc_url($matches [1] [0]); }else{ echo esc_url(get_theme_mod( 'simple_days_no_img' , get_template_directory_uri() .'/assets/images/no_image.png')); } }else{ $thumurl = wp_get_attachment_image_src( get_post_thumbnail_id() , 'full' ); echo esc_url($thumurl[0]); }?>">