示例#1
0
function tag_file_download_description()
{
    global $step, $endform, $tag_name;
    $atts = gpsa(array('class', 'escape', 'wraptag'));
    extract($atts);
    $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('escape', escape_pop($escape)) . tagRow('wraptag', input_tag('wraptag', $wraptag)) . tagRow('class', fInput('text', 'class', $class, 'edit', '', '', 25)) . $endform);
    if ($step == 'build') {
        $out .= tdb(tb($tag_name, $atts));
    }
    return $out;
}
示例#2
0
function tag_file_download_description()
{
    return tdb(tb('file_download_description'));
}
示例#3
0
function tag_image()
{
    global $path_from_root, $img_dir;
    $invars = gpsa(array('id', 'type', 'h', 'w', 'ext', 'alt'));
    $img_dir = !$img_dir ? 'images' : $img_dir;
    extract($invars);
    switch ($type) {
        case 'textile':
            $alt = $alt ? ' (' . $alt . ')' : '';
            $thing = '!' . $path_from_root . $img_dir . '/' . $id . $ext . $alt . '!';
            break;
        case 'textpattern':
            $thing = '<txp:image id="' . $id . $ext . '" />';
            break;
        case 'xhtml':
            $thing = '<img src="' . $path_from_root . $img_dir . '/' . $id . $ext . '" style="height:' . $h . 'px;width:' . $w . 'px" />';
    }
    return tdb($thing);
}