Hi there
In my page.tpl.php
I have an ‘if’
statement that checks to see what node is being used and then add a class to the ‘container’
element relative to the node i.e.
<div id="container" class="clear-block <?php if ($node->type == 'card'): ?>card-node-type<?php endif ?>">
But I would also like to add a class to the ‘container’
element in the page.tpl.php
if I’m adding a new node ‘/node/add/card’
but I don’t know how to test for it as it is not a node type. How would I go around testing for this?
Many thanks