Example #1
0
File: pop.php Project: philum/cms
function video_auto($doc, $l, $id, $media)
{
    //p§w/h
    list($pdoc, $w, $h) = subparams_a($doc);
    if ($w == '1') {
        return popvideo($pdoc);
    }
    $l = $w ? $w : $l;
    $l = $l > 0 ? $l : 640;
    $h = $h > 0 ? $h : 440;
    if (substr($pdoc, 0, 4) == 'http') {
        $pdoc = auto_video($pdoc, '', '', 2);
    }
    $vid = video_providers($pdoc);
    if ($vid && $media != 3 or $id != get('read')) {
        return popvideo($pdoc);
    }
    if ($pdoc) {
        $ret = video_players($pdoc, $vid, $l, $h, $id) . "\n";
    }
    return $ret;
}
Example #2
0
File: lib.php Project: philum/cms
function svg($d)
{
    list($f, $w, $h) = subparams_a($d);
    return '<img src="' . '/imgb/icons/' . $f . '.svg' . '" width="' . $w . '" height="' . ($h ? $h : $w) . '" />';
}