PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/profile/components/views/profile_visits.php

https://github.com/yii-simon/yii-user-management
PHP | 15 lines | 13 code | 2 blank | 0 comment | 1 complexity | 591df4612fce1e8dcc59b7b3c12ef5e7 MD5 | raw file
  1. <?
  2. echo '<p>'. Yum::t('These users have visited your profile recently') . ': </p>';
  3. if($visits) {
  4. foreach($visits as $visit)
  5. printf('<div style="text-align:center; float:left; width:100px; padding-bottom:10px;">%s <br/> %s</div>',
  6. CHtml::link($visit->visitor->getAvatar(true), array(
  7. Yum::module('profile')->profileView, 'id' => $visit->visitor_id)),
  8. substr($visit->visitor->username,0,12)
  9. );
  10. } else
  11. echo Yum::t('Nobody has visited your profile yet');
  12. ?>
  13. <div style="clear: both;"> </div>