Пример #1
0
<div class="widget">
	<div class="widget-title">
		<h4 class="nomargin left"><?php 
_e('Students', 'academy');
?>
</h4>
	</div>
	<div class="widget-content clearfix">
		<div class="users-listing clearfix">
			<?php 
$counter = 0;
foreach (ThemexCourse::getMembers() as $ID) {
    ThemexUser::refresh($ID);
    if (!empty(ThemexUser::$data['active_user'])) {
        $counter++;
        ?>
					<div class="user-image <?php 
        echo $counter == 3 ? 'last' : '';
        ?>
">
						<div class="bordered-image">
							<a title="<?php 
        echo ThemexUser::$data['active_user']['profile']['full_name'];
        ?>
" href="<?php 
        echo ThemexUser::$data['active_user']['profile_url'];
        ?>
"><?php 
        echo get_avatar($ID, 100);
        ?>
</a>