if (strlen($sf_params->get('author'))) { ?> <?php // Pulling the author object here is a little redundant but we don't want to change the signature of ?> <?php // the partials too much in order to pass in information ?> <?php $author = Doctrine::getTable('sfGuardUser')->findOneByUsername($sf_params->get('author')); ?> <?php if ($author) { ?> <?php $filters[] = a_('<span>by the author</span> %author%', array('%author%' => a_remove_filter_button($author->getName() ? $author->getName() : $author, $filterUrl, 'author'))); ?> <?php } ?> <?php } ?> <h3 class="a-blog-filters browser"> <?php if (count($filters)) { ?> <?php // Pluralize $type ?>
?> <?php $filters[] = a_('in the category %category%', array('%category%' => a_remove_filter_button($category->name, $filterUrl, 'cat'))); ?> <?php } ?> <?php } ?> <?php if (strlen($sf_params->get('tag'))) { ?> <?php $filters[] = a_('with the tag %tag%', array('%tag%' => a_remove_filter_button($sf_params->get('tag'), $filterUrl, 'tag'))); ?> <?php } ?> <h3 class="a-blog-filters browser"> <?php if (count($filters)) { ?> <?php // Pluralize $type ?> <?php $type = $count != 1 ? $typePlural : $type; ?>