Drupal 7 - do something based on node ID in a .tpl file #drupal
<?php if (arg(0) == 'node' && is_numeric(arg(1))): ?>
<?php $nid = arg(1); // Get the nid ?>
<?php if (($nid == 45) || ($nid == 46)): ?>
<!-- Do something... -->
<?php endif; ?>
<?php endif; ?>