C5 variables for Dynamic css/html

Permalink
Hi!

Is there any list of C5-variables that I can use to make the html/css dynamic.

eg.
IF ($pagetyp == full) {regular code} else {sidebar code}

you catch my drift.

Thanks /Fredrik

 
12345j replied on at Permalink Reply
12345j
is this for a block?
fdanell replied on at Permalink Reply
sorry. for not being more specific.
This would be in the default.php "theme" file.
when I investigate others themes i find things like:

<style type="text/css">@import "<?php echo $this->getThemePath()?>/theme.css";</style>


where
getThemePath()
must be a variable inherited from C5.

however, I found this huge list of variables and that's exactly what I was looking for.
The list can be found at:
http://docs.mnkras.com/functions.html...

I've got myself some digging to do :)
12345j replied on at Permalink Best Answer Reply
12345j
well if its in a theme, then you can choose to load certain things- If you want a full page type that loads a different css, make a file called full.php and then load a different stylesheet in in- like
<link rel="stylesheet" href="<?php echo $this->getThemePath()?>/full.css">
make sense?
fdanell replied on at Permalink Reply
Hmm... that makes very much sense. Thanks.
I think ill put essentials in one css, the specific full-theme attributes in another css and specific sidebar-theme attributes in another css so I can make changes faster.