I’ve faced with a problem of differentiating node templates for print-version (I’m using “print” module) and default node’s default template.
I have a <div>
which should be present in node–node_type.tpl.php but not in print-version (it contains info that is not required when viewing the page not on the display).
Currently I’m solving this with adding
<?php if (arg(0) == 'node'): ?> <div>.....</div> <?php endif; ?>
But it seems to me that this kind an awkward way.
Can you offer any Drupal-alike and more convenient way to gain that?
Thank you.