Exemple #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('Custom Article Output', 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;
}
Exemple #2
0
function tag_breadcrumb()
{
    global $step, $endform, $name;
    $invars = gpsa(array('wraptag', 'label', 'sep', 'link'));
    extract($invars);
    $out = form(startTable('list') . tr(tdcs(hed(gTxt('tag_breadcrumb'), 3), 2)) . tagRow('breadcrumb_separator', fInput('text', 'sep', $sep, 'edit', '', '', 4)) . tagRow('label', fInput('text', 'label', $label, 'edit', '', '', 25)) . tagRow('wraptag', fInput('text', 'wraptag', $wraptag, 'edit', '', '', 2)) . tagRow('breadcrumb_linked', yesno_pop('link', $link)) . $endform);
    $out .= $step == 'build' ? tdb(tb($name, $invars)) : '';
    return $out;
}
Exemple #3
0
function tag_breadcrumb()
{
    global $step, $endform, $tag_name;
    $atts = gpsa(array('class', 'label', 'link', 'linkclass', 'sep', 'title', 'wraptag'));
    extract($atts);
    $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('breadcrumb_separator', fInput('text', 'sep', $sep, 'edit', '', '', 4)) . tagRow('breadcrumb_linked', yesno_pop('link', $link)) . tagRow('linkclass', fInput('text', 'linkclass', $linkclass, 'edit', '', '', 25)) . tagRow('label', fInput('text', 'label', $label, 'edit', '', '', 25)) . tagRow('title', fInput('text', 'title', $title, 'edit', '', '', 25)) . 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;
}