Created
March 27, 2011 22:19
-
-
Save laras126/889693 to your computer and use it in GitHub Desktop.
output-styles.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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