예제 #1
0
function cptr($echo = null, $limit = null, $excerpt = null, $words = null, $thumb = null, $width = null, $height = null)
{
    $params = array();
    if ($echo !== null and is_bool($echo)) {
        $params['echo'] = $echo;
    } else {
        $params['echo'] = true;
    }
    if ($limit !== null) {
        $params['limit'] = $limit;
    }
    if ($excerpt !== null) {
        $params['excerpt'] = $excerpt;
    }
    if ($words !== null) {
        $params['words'] = $words;
    }
    if ($thumb !== null) {
        $params['thumb'] = $thumb;
    }
    if ($width !== null) {
        $params['width'] = $width;
    }
    if ($height !== null) {
        $params['height'] = $height;
    }
    return ci_cptr_short($params);
}
예제 #2
0
function ci_cpr_short($atts)
{
    _cptr_deprecated_function(__FUNCTION__, '2.2', 'ci_cptr_short');
    return ci_cptr_short($atts);
}