Ejemplo n.º 1
0
function tag_comments()
{
    global $step, $endform, $tag_name;
    $atts = gpsa(array('break', 'breakclass', 'class', 'form', 'limit', 'offset', 'sort', 'wraptag'));
    extract($atts);
    $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('form', form_pop('form', 'comment', $form)) . tagRow('sort', discuss_sort_pop($sort)) . tagRow('limit', input_limit($limit)) . tagRow('offset', input_offset($offset)) . tagRow('wraptag', input_tag('wraptag', $wraptag)) . tagRow('class', fInput('text', 'class', $class, 'edit', '', '', 25)) . tagRow('break', input_tag('break', $break)) . tagRow('breakclass', fInput('text', 'breakclass', $breakclass, 'edit', '', '', 25)) . $endform);
    if ($step == 'build') {
        $out .= tdb(tb($tag_name, $atts));
    }
    return $out;
}
Ejemplo n.º 2
0
function tag_recent_comments()
{
    global $step, $endform, $tag_name;
    $atts = gpsa(array('break', 'class', 'label', 'labeltag', 'limit', 'sort', 'wraptag'));
    extract($atts);
    $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('sort', discuss_sort_pop($sort)) . tagRow('limit', fInput('text', 'limit', $limit, 'edit', '', '', 2)) . tagRow('label', fInput('text', 'label', $label ? $label : gTxt('recent_comments'), 'edit', '', '', 20)) . tagRow('labeltag', input_tag('labeltag', $labeltag)) . tagRow('wraptag', input_tag('wraptag', $wraptag)) . tagRow('class', fInput('text', 'class', $class, 'edit', '', '', 5)) . tagRow('break', input_tag('break', $break)) . $endform);
    if ($step == 'build') {
        $out .= tdb(tb($tag_name, $atts));
    }
    return $out;
}