Ejemplo n.º 1
0
<?php

$tags = array();
foreach ($data as $tag) {
    $link = sprintf('<a class="tag icon-add-before icon-before-tag" href="%s">%s</a>', URL . PERMALINK_BASE_TAG . ae_Permalink::prepareTag($tag), $tag);
    $tags[$tag] = $link;
}
ksort($tags);
?>
<div class="post-tags">
	<?php 
foreach ($tags as $link) {
    echo $link;
}
?>
</div>
Ejemplo n.º 2
0
 public function testPrepareTag()
 {
     $this->assertEquals(ae_Permalink::prepareTag('foo/bär 4'), 'foo_b%C3%A4r%204');
 }