function tag_feed_link() { global $step, $endform, $name; $invars = gpsa(array('label', 'category', 'section', 'flavor', 'wraptag', 'limit')); extract($invars); $label = !$label ? 'XML' : $label; $flavarr = array('rss' => 'rss', 'atom' => 'atom'); $out = form(startTable('list') . tr(tdcs(hed(gTxt('tag_feed_link'), 3), 2)) . tagRow('label', fInput('text', 'label', $label, 'edit', '', '', 25)) . tagRow('limit', inputLimit($limit)) . tagRow('wraptag', fInput('text', 'wraptag', $wraptag, 'edit', '', '', 2)) . tagRow('flavour', selectInput('flavor', $flavarr, $flavor)) . tagRow('section', section_pop($section)) . tagRow('category', category_pop($section)) . $endform); $out .= $step == 'build' ? tdb(tb($name, $invars)) : ''; return $out; }
function tag_feed_link() { global $step, $endform, $tag_name; $atts = gpsa(array('category', 'flavor', 'format', 'label', 'limit', 'section', 'title', 'wraptag')); extract($atts); $label = $label ? $label : 'XML'; $out = form(startTable('tagbuilder') . tr(tdcs(hed(gTxt('tag_' . $tag_name), 3), 2)) . tagRow('flavor', feed_flavor_pop($flavor)) . tagRow('format', feed_format_pop($format)) . tagRow('section', section_pop('section', $section)) . tagRow('category', article_category_pop($section)) . tagRow('limit', input_limit($limit)) . tagRow('label', fInput('text', 'label', $label, 'edit', '', '', 25)) . tagRow('title', fInput('text', 'title', $title, 'edit', '', '', 25)) . tagRow('wraptag', input_tag('wraptag', $wraptag)) . $endform); if ($step == 'build') { $out .= tdb(tb($tag_name, $atts)); } return $out; }