How Can We Help?
Anywhere in your code place the following code
if(JRequest::getVar('view') == "frontpage" ) :
echo "I'm on the Front Page";
else :
echo "Not on the Front Page";
endif;
The above code may be modified according to your needs