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