Пример #1
0
function phpthumb_post_image($null, $id, $args)
{
    $args = wp_parse_args($args);
    extract($args);
    $crop = (bool) $crop;
    if (!isset($resize)) {
        $resize = true;
    }
    if (isset($width)) {
        return array(tj_phpthumb_it(get_attached_file($id), $width, $height, $crop, $resize), false, false, false);
    }
    return false;
}
function tja_get_avatar_upload($user, $w, $h, $c)
{
    if ($user->user_avatar_path) {
        return tj_phpthumb_it($user->user_avatar_path, $w, $h, $c);
    }
}
Пример #3
0
function jhp_get_gallery_image($id, $w = 0, $h = 0, $crop = false)
{
    return tj_phpthumb_it(get_attached_file($id), $w, $h, $crop);
}