How do you know you are on a page or page template with a certain custom post type loop in it?
You are on a page with “events” post type loop. How do you detect/define that with PHP?
I am actually using the page.php with a content type loop inside.
get_post_type : http://codex.wordpress.org/Function_Reference/get_post_type
or use the global $post; and $post->post_type to get the post type.
Maybe these are of use!