Exemplo n.º 1
0
echo $this->escape($this->filters['tag']);
?>
" />
				</fieldset>
				<?php 
if ($this->filters['tag']) {
    ?>
					<fieldset class="applied-tags">
						<ol class="tags">
						<?php 
    $url = 'index.php?option=' . $this->option . '&task=browse';
    $url .= $this->filters['search'] ? '&search=' . $this->escape($this->filters['search']) : '';
    $url .= $this->filters['sortby'] ? '&sortby=' . $this->escape($this->filters['sortby']) : '';
    $url .= $this->filters['category'] ? '&category=' . $this->escape($this->filters['category']) : '';
    $rt = new \Components\Publications\Helpers\Tags($database);
    $tags = $rt->parseTopTags($this->filters['tag']);
    foreach ($tags as $tag) {
        ?>
							<li>
								<a href="<?php 
        echo Route::url($url . '&tag=' . implode(',', $rt->parseTopTags($this->filters['tag'], $tag)));
        ?>
">
									<?php 
        echo $this->escape(stripslashes($tag));
        ?>
									<span class="remove">x</a>
								</a>
							</li>
							<?php 
    }