Exemple #1
0
/**
 * Display the footer scripts, defined in Theme Settings.
 */
function calibrefx_footer_scripts()
{
    $footer_scripts = cap_attr(calibrefx_get_option('footer_scripts'));
    echo apply_filters('calibrefx_footer_scripts', $footer_scripts);
    // If singular, echo scripts from custom field
    if (is_singular()) {
        calibrefx_custom_field('_calibrefx_scripts');
    }
}
Exemple #2
0
/**
 * Echo the header custom styles, defined in Theme Settings.
 */
function calibrefx_header_custom_styles()
{
    $custom_css = stripslashes(calibrefx_get_option('custom_css'));
    if (!empty($custom_css)) {
        printf('<style type="text/css">%1$s</style>', apply_filters('calibrefx_header_custom_styles', $custom_css));
    }
    // If singular, echo scripts from custom field
    if (is_singular()) {
        printf('<style type="text/css">%1$s</style>', calibrefx_custom_field('_calibrefx_custom_styles'));
    }
}