コード例 #1
0
ファイル: SmileyFormat.php プロジェクト: ratbird/hope
 /**
  * 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];
 }
コード例 #2
0
ファイル: index.php プロジェクト: ratbird/hope
?>

<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');
?>