Create a PHP/CSS file
//Change to appropriate global variable
<?php global $authority; ?>
<style type="text/css">
//Basic CSS can go in here if need be.
body.custom-background {
background-color: white !important;
}
//Example of PHP creating CSS
<?php if($authority['center-logo'] == '1') { echo "#logo img {margin: auto;}"; } ?>
</style>
Written by Danny Outlaw
Related protips
1 Response
Not really a best one. You could generate the file by cron and then just include it with the link tag, as usual. This way the CDN can be used, for example.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#