예제 #1
0
function tag_category()
{
    global $step, $endform, $tag_name;
    $atts = gpsa(array('class', 'link', 'name', 'this_section', 'title', 'type', 'url', 'wraptag'));
    extract($atts);
    $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('name', fInput('text', 'name', $name, 'edit', '', '', 25)) . tagRow('link_to_this_category', yesno_pop('link', $link)) . tagRow('title', yesno_pop('link', $link)) . tagRow('type', type_pop('type', $link)) . tagRow('url_only', yesno_pop('url', $link)) . 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_category_list()
{
    global $step, $endform, $tag_name;
    $atts = gpsa(array('active_class', 'break', 'categories', 'class', 'exclude', 'label', 'labeltag', 'parent', 'section', 'this_section', 'type', 'wraptag'));
    extract($atts);
    $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('type', type_pop($type)) . tagRow('parent', fInput('text', 'parent', $parent, 'edit', '', '', 20)) . tagRow('categories', fInput('text', 'categories', $categories, 'edit', '', '', 20)) . tagRow('exclude', fInput('text', 'exclude', $exclude, 'edit', '', '', 20)) . tagRow('this_section', yesno_pop('this_section', $this_section)) . tagRow('category_list_section', section_pop('section', $section)) . tagRow('label', fInput('text', 'label', $label ? $label : gTxt('categories'), 'edit', '', '', 20)) . tagRow('labeltag', input_tag('labeltag', $labeltag)) . tagRow('wraptag', input_tag('wraptag', $wraptag)) . tagRow('class', fInput('text', 'class', $class, 'edit', '', '', 14)) . tagRow('active_class', fInput('text', 'active_class', $active_class, 'edit', '', '', 14)) . tagRow('break', input_tag('break', $break)) . $endform);
    if ($step == 'build') {
        $out .= tdb(tb($tag_name, $atts));
    }
    echo $out;
}