Example #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;
}
Example #2
0
function tag_article_custom()
{
    global $step, $endform, $tag_name;
    $atts = gpsa(array('allowoverride', 'author', 'category', 'excerpted', 'form', 'id', 'keywords', 'limit', 'listform', 'month', 'offset', 'pgonly', 'section', 'sort', 'status', 'time'));
    extract($atts);
    $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('id', input_id($id)) . tagRow('status', status_pop($status)) . tagRow('section', section_pop('section', $section)) . tagRow('category', article_category_pop($category)) . tagRow('time', time_pop($time)) . tagRow('month', fInput('text', 'month', $month, 'edit', '', '', 7) . ' (' . gTxt('yyyy-mm') . ')') . tagRow('keywords', key_input('keywords', $keywords)) . tagRow('has_excerpt', yesno_pop('excerpted', $excerpted)) . tagRow('author', author_pop($author)) . tagRow('sort', sort_pop($sort)) . tagRow('limit', input_limit($limit)) . tagRow('offset', input_offset($offset)) . tagRow('pgonly', pgonly_pop($pgonly)) . tagRow('allowoverride', yesno_pop('allowoverride', $allowoverride)) . tagRow('form', form_pop('form', 'article', $form)) . $endform);
    if ($step == 'build') {
        $out .= tdb(tb($tag_name, $atts));
    }
    return $out;
}