Is this code right?

Permalink
<?php
global $c;
if ($c->isEditMode()) {
echo t('<style> {#stationary-container {margin-top: 60px;} </style>');
};
?>


Im trying to apply an additional style if the page is in edit mode.

Steve

tallacman
 
okhayat replied on at Permalink Reply
okhayat
Yes. You can also remove the global $c line.
Mnkras replied on at Permalink Best Answer Reply
Mnkras
when in doubt look at the core code ;)

a nice example is in /concrete/themes/default/elements/header.php

and yes that is right ;)
tallacman replied on at Permalink Reply
tallacman
I knew I had see that somewhere. Thanks, Mike.