<p> <?php echo counted($postspage->numtotal, 'post', 'posts'); ?> <?php if (gb::$is_categories) { ?> filed under <span class="highlight"><?php echo sentenceize($categories, 'h'); ?> </span> <?php } elseif (gb::$is_tags) { ?> tagged with <span class="highlight"><?php echo sentenceize($tags, 'h'); ?> </span> <?php } ?> </p> </div> <div class="breaker"></div> </div> <?php } ?> <div class="wrapper"> <!-- =========================== sidebar =========================== --> <?php
function collLinks($what, $prefix = '', $suffix = '', $template = '<a href="%u">%n</a>', $nglue = ', ', $endglue = ' and ', $htmlescape = true) { if (!$this->{$what}) { return ''; } $links = array(); $vn = $what . '_prefix'; $u = gb::$site_url . gb::$index_prefix . gb::${$vn}; foreach ($this->{$what} as $tag) { $links[] = strtr($template, array('%u' => $u . urlencode($tag), '%n' => h($tag))); } return $nglue !== null ? $prefix . sentenceize($links, null, $nglue, $endglue) . $suffix : $links; }