Esempio n. 1
0
function tag_article_custom()
{
    global $step, $endform, $name;
    $invars = gpsa(array('form', 'limit', 'category', 'section', 'sortby', 'sortdir', 'excerpted', 'author', 'month', 'keywords', 'listform'));
    extract($invars);
    $out = form(startTable('list') . tr(tdcs(hed(gTxt('tag_article_custom'), 3), 2)) . tagRow('form', form_pop($form, 'article', 'form')) . tagRow('listform', form_pop($listform, 'article', 'listform')) . tagRow('limit', inputLimit($limit)) . tagRow('category', category_pop($category)) . tagRow('section', section_pop($section)) . tagRow('keywords', key_input('keywords', $keywords)) . tagRow('author', author_pop($author)) . tagRow('sort_by', sort_pop($sortby)) . tagRow('sort_direction', sortdir_pop($sortdir)) . tagRow('month', inputMonth($month) . ' (' . gTxt('yyyy-mm') . ')') . tagRow('has_excerpt', yesno_pop('excerpted', $excerpted)) . $endform);
    $out .= $step == 'build' ? tdb(tb($name, $invars)) : '';
    return $out;
}
Esempio n. 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;
}