How to stick <?=$this->getThemePath()?> within PHP IF Statement???

Permalink
What is the correct way to do echo an alternate CSS if C5 is in Edit Mode? Having to flip back and forth from PHP to HTML multiple times in a single IF statement is screwing me up.

Here is what I've got (and it's wrong):

<?php if ($c->isEditMode()) {
echo "<link href='$this->getThemePath()/stickyfootereditmode.css' rel='stylesheet' type='text/css' />";
}

else {
echo "<link href='<?=$this->getThemePath()?>/stickyfooter.css' rel="stylesheet" type="text/css" />";
}
?>

I don't know how to stick <?=$this->getThemePath()?>
within the <?php if ($c->isEditMode()) { echo
statement.

 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
<?php if ($c->isEditMode()) { 
    //if its in editmode ?>
    <link href='<?php echo $this->getThemePath() ?>/stickyfootereditmode.css' rel='stylesheet' type='text/css' />
<?php } else {
    //if its not in editmode ?>
    <link href='<?php echo $this->getThemePath() ?>/stickyfooter.css' rel='stylesheet' type='text/css' />
<?php } ?>
zoinks replied on at Permalink Reply
Thank you so much!!!

Now, I can go and give the answer to the stickyfooter problem I encountered and asked about in the forums! Hope it helps someone else...