How to make "php if" for views block?
1.If you want to just add a class to the content of view container you can add it from the view itself 


if you have a template file for views you can add the class there. or you can set it as in views header and footer