예제 #1
0
<span style="padding:10px; display: inline-block; vertical-align: middle;">
  <?php 
/*echo h('locale_chooser');*/
?>
  <?php 
if (($u = TUser::getLogged()) !== NULL) {
    ?>
    <?php 
    echo msg('twitter.user.welcome');
    ?>
 
    <?php 
    echo h('link', array('controller' => 'user', 'action' => 'timeline', 'body' => $u->getName()));
    ?>
    <?php 
    THelpers::gravatar(20, $u);
    ?>
    /
    <?php 
    echo h('link', array('controller' => 'user', 'action' => 'logout', 'body' => 'logout'));
    ?>
  <?php 
}
?>
</span>
예제 #2
0
파일: find.view.php 프로젝트: fkali/yupp
  <layout name="twitter" />
  <head>
    <style type="text/css">
      .user-result {
        width: 150px;
        display: inline-block;
        align: left;
        margin-bottom: 5px;
      }
      .user-result img {
        vertical-align: middle;
        margin-right: 5px;
      }
    </style>
  </head>
  <body>
    <div class="well">
      <legend>Search result:</legend>
        <!-- search result -->
        <?php 
foreach ($users as $user) {
    echo '<div class="user-result">';
    // TODO: template para mostrar cada usuario
    THelpers::gravatar(40, $user);
    echo h('link', array('action' => 'timeline', 'id' => $user->getId(), 'body' => $user->getName())), $user->getId() == TUser::getLogged()->getId() ? ' (you)' : '';
    echo '</div>';
}
?>
    </div>
  </body>
</html>
예제 #3
0
<div class="message">
<?php 
YuppLoader::load('apps.twitter.helpers', 'THelpers');
?>

<?php 
THelpers::gravatar(40, $message->getCreatedBy());
?>

<?php 
echo h('link', array('controller' => 'user', 'action' => 'timeline', 'body' => $message->getCreatedBy()->getName(), 'id' => $message->getCreatedBy()->getId()));
?>

<?php 
echo $message->getText();
?>

<?php 
echo $message->getCreatedOn();
?>
</div>