Exemplo n.º 1
0
function wppb_load_stuff()
{
    global $wppb_options, $css;
    // Grab and sanitize data
    $wppb_options = wppb_sanitize_inputs();
    // Grabbing raw CSS before addition of URLs (urls are needed for internal CSS file, but cause problems when exporting themes etc. as they need to be removed)
    //$wppb_options['css'] = $css;
    // Processing CSS on an external server
    $css = wppb_load_processed_css($css);
    $wppb_options['css'] = $css;
    // Serve CSS
    $css = wppb_convert_css_on_load($css);
    // Hook for extra functionality at this point
    do_action('wppb_load_stuff_hook');
    echo $css;
    exit;
}
Exemplo n.º 2
0
function wppb_convert_published_urls($css)
{
    $css = wppb_convert_css_on_load($css);
    return $css;
}