Exemple #1
0
function blog_home_image_url()
{
    global $WPGLOBAL;
    $prismic = $WPGLOBAL['prismic'];
    if (!blog_home()) {
        return '';
    }
    $image = blog_home()->getImage('bloghome.image');
    if ($image) {
        return $image->getMain()->getUrl();
    }
}
function blog_home_background_illustration()
{
    global $WPGLOBAL;
    $prismic = $WPGLOBAL['prismic'];
    if (!blog_home()) {
        return;
    }
    $illustration = blog_home()->getImage('bloghome.background_illustration');
    return $illustration && $illustration->getMain() ? $illustration->getMain()->getUrl() : null;
}