/**
 *
 * @TODO document
 *
 */
function load_child_style()
{
    if (!defined('PL_CUSTOMIZE')) {
        return;
    }
    // check for MU styles
    if (VDEV && is_multisite()) {
        global $blog_id;
        $mu_style = sprintf('%s/blogs/%s/style.css', EXTEND_CHILD_DIR, $blog_id);
        if (is_file($mu_style)) {
            $mu_style_url = sprintf('%s/blogs/%s/style.css', EXTEND_CHILD_URL, $blog_id);
            $cache_ver = '?ver=' . pl_cache_version($mu_style);
            pagelines_draw_css($mu_style_url . $cache_ver, 'pl-extend-style');
        }
    } else {
        if (is_file(PL_EXTEND_STYLE_PATH)) {
            $cache_ver = '?ver=' . pl_cache_version(PL_EXTEND_STYLE_PATH);
            pagelines_draw_css(PL_EXTEND_STYLE . $cache_ver, 'pl-extend-style');
        }
    }
}
/**
 *
 *  Loading CSS using relative path to theme root. This allows dynamic versioning, overriding in child theme
 *
 *  @package PageLines Framework
 *  @since 1.4.0
 *
 */
function pagelines_load_css_relative($relative_style_url, $id)
{
    $rurl = '/' . $relative_style_url;
    if (is_file(get_stylesheet_directory() . $rurl)) {
        $cache_ver = pl_cache_version(get_stylesheet_directory() . $rurl);
        pagelines_load_css(PL_CHILD_URL . $rurl, $id, $cache_ver);
    } elseif (is_file(get_template_directory() . $rurl)) {
        $cache_ver = pl_cache_version(get_template_directory() . $rurl);
        pagelines_load_css(PL_PARENT_URL . $rurl, $id, $cache_ver);
    }
}