/** * Smiley short notation as defined in database */ static function short($markup, $matches) { $smileys = Smiley::getShort(); $name = $smileys[$matches[2]]; return isset($name) ? $matches[1] . Smiley::img($name) . $matches[3] : $matches[0]; }
?> <ul class="smiley-tabs" role="navigation"> <? if ($favorites_activated): ?> <li class="favorites <? if ($view === 'favorites') echo 'current'; ?>"> <a href="<?php echo $controller->url_for('smileys/index/favorites'); ?> " data-dialog> <?php echo _('Favoriten'); ?> </a> </li> <? endif; ?> <? if (Smiley::getShort()): ?> <li <? if ($view === 'short') echo 'class="current"'; ?>> <a href="<?php echo $controller->url_for('smileys/index/short'); ?> " data-dialog> <?php echo _('Kürzel'); ?> </a> </li> <? endif; ?> <li <? if ($view === 'all') echo 'class="current"'; ?>> <a href="<?php echo $controller->url_for('smileys/index/all'); ?>