Example #1
0
<?php

ThemexUser::refresh($GLOBALS['user']->ID);
?>
<div class="expert-preview">
	<div class="expert-meta">
		<div class="expert-image bordered-image">
			<a href="<?php 
echo ThemexUser::$data['active_user']['profile_url'];
?>
"><?php 
echo get_avatar(ThemexUser::$data['active_user']['ID']);
?>
</a>
		</div>
		<?php 
get_template_part('module', 'links');
?>
	</div>
	<div class="expert-text">
		<h4 class="nomargin">
			<a href="<?php 
echo ThemexUser::$data['active_user']['profile_url'];
?>
">
			<?php 
echo ThemexUser::$data['active_user']['profile']['full_name'];
?>
			</a>
		</h4>
		<span class="expert-signature"><?php 
Example #2
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>