Conditional Statement for a Page Template in WordPress
<?php if ( is_page_template( 'template--home.php' ) || is_page_template( 'template--rewards.php' ) ) { // run this code } ?>