Skip to content

Instantly share code, notes, and snippets.

@laras126
Created March 27, 2011 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laras126/889693 to your computer and use it in GitHub Desktop.
Save laras126/889693 to your computer and use it in GitHub Desktop.
output-styles.php
<?php
$shortname = get_option('of_shortname');
$output = '';
// Variables containing style options
$hdr_bg_color = get_option($shortname . '_hdr_bg_color');
$body_bg_color = get_option($shortname . '_body_bg_color');
$body_font = get_option($shortname . '_body_font');
// Output styles
if ($output <> '') {
$output = "/* Custom Styling */\n\t" . $output;
}
// Pull styles from dynamic stylesheet
$wpf_styleoptions = STYLESHEETPATH . 'wpfolio-styles.php'; if( is_file( $wpf_styleoptions ) )
require $wpf_styleoptions;
// Echo Optional Styles
echo $output;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment