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
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
is this for a block?
sorry. for not being more specific.
This would be in the default.php "theme" file.
when I investigate others themes i find things like:
where 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 :)
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()
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 :)
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 make sense?
<link rel="stylesheet" href="<?php echo $this->getThemePath()?>/full.css">
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.
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.