Esempio n. 1
0
function fifu_cat_show_image()
{
    $url = fifu_cat_get_url();
    $alt = fifu_cat_get_alt();
    if ($url) {
        echo fifu_get_html($url, $alt);
    }
}
Esempio n. 2
0
function fifu_replace($html, $post_id)
{
    $url = get_post_meta($post_id, 'fifu_image_url', true);
    $alt = get_post_meta($post_id, 'fifu_image_alt', true);
    if ($url) {
        $html = fifu_get_html($url, $alt);
    }
    return $html;
}