protected function _after_find(&$result, $options) { $picture = M('VideoAlbumPicture')->where('id=' . $result['picture_id'])->getField('url'); $result['album_picture'] = $picture; $result['user'] = D('UserUser')->getUserInfo($result['uid']); $result['game_title'] = get_game_title($result['game_id']); $result['game_name'] = get_game_name($result['game_id']); }
$eventName = $eventData->name; } ?> <div class="event"> <header class="event-header"> Match @ <?php echo date('H:i', strtotime($event->date)); ?> </header> <div class="event-content"> <h4><?php echo $eventName; ?> - Versus <?php echo get_opponent_name($event->opponent); ?> </h4> <p> Game: <?php echo get_game_name($event->game); ?> <br /> <a href="<?php echo !empty($event->matchlink) ? $event->matchlink : '#'; ?> " target="_blank">Details</a> </p> </div> </div> <?php }
<h4 class="header-thin">Top 5 Best Games</h4> </div> <div class="cms-box-content"> <?php foreach ($data->popularGames as $gameRank) { ?> <div class="media"> <div class="pull-left"> <?php echo get_game_icon($gameRank->game, true); ?> </div> <div class="media-body"> <h5 class="media-heading"><?php echo get_game_name($gameRank->game); ?> </h5> Played <?php echo $gameRank->rank; ?> times </div> </div> <?php } ?> </div> </div> <div class="span4 cms-box">