\n",TTW_THEMENAME, TTW_VERSION, ttw_getopt('ttw_subtheme'));
if (!ttw_getadminopt('ttw_hide_metainfo'))
echo(str_replace("\\", "", ttw_getadminopt('ttw_metainfo')."\n"));
// handle 3 stylesheed situations
// default: used weaver-style.css
// no weaver-style.css: when first installed, there will not be a weaver-style.css, so use inline instead
// force inline: user wants inline css
$css_file = ttw_get_css_filename(); // fetch the name of the css file
if (ttw_getadminopt('ttw_force_inline_css') || !file_exists($css_file)) { // generate inline CSS
require_once('wvr-generatecss.php'); // include only now at runtime.
echo(' \n");
} else {
printf("\n", ttw_get_css_url());
}
/* now head options */
echo(str_replace("\\", "", ttw_getopt('ttw_theme_head_opts')));
echo(str_replace("\\", "", ttw_getopt('ttw_head_opts'))); /* let the user have the last word! */
$per_page_code = ttw_get_per_page_value('page-head-code');
if (!empty($per_page_code)) {
echo(str_replace("\\", "",$per_page_code));
}
do_action('ttwx_extended_wp_head'); /* call extended wp_head stuff */
do_action('ttwx_super_wp_head'); // future header plugin
ttw_bake_PIE();
echo("\n\n");
}
endif;
function ttw_bake_PIE() {
/**
* Attach CSS3PIE behavior to elements
* Add elements here that need PIE applied
*/
if ((ttw_getopt('ttw_rounded_corners') || ttw_getopt('ttw_wrap_shadow')) && !ttw_getadminopt('ttw_hide_PIE')) {
$pie_loc = get_template_directory_uri() . '/js/PIE/PIE.php';
// #container, #primary, #secondary, #altleft, #altright, #ttw-top-widget, #ttw-bot-widget,
// #access, #access2
echo("
\n");
}
}
function ttw_get_css_filename() {
$wpdir = wp_upload_dir(); // get the upload directory
$save_dir = $wpdir['basedir'] . '/weaver-subthemes/';
return $save_dir . 'style-weaver.css';
}
function ttw_get_css_url() {
$wpdir = wp_upload_dir(); // get the upload directory
$save_url = $wpdir['baseurl'] . '/weaver-subthemes/';
return $save_url . 'style-weaver.css';
}
?>