/**
  * Gets course author
  *
  * @access public	
  * @param int $ID
  * @return array
  */
 public static function getAuthor($ID)
 {
     global $wpdb;
     $results = $wpdb->get_results("\r\n\t\t\tSELECT post_author FROM " . $wpdb->posts . " \r\n\t\t\tWHERE ID = " . intval($ID) . "\r\n\t\t");
     $results = wp_list_pluck($results, 'post_author');
     $user = intval(reset($results));
     $author = ThemexUser::getUser($user);
     return $author;
 }
<div class="widget sidebar-widget">
	<div class="widget-title">
		<h4><?php 
_e('Owner', 'makery');
?>
</h4>
	</div>
	<div class="widget-content">
		<?php 
$author = ThemexUser::getUser(ThemexShop::$data['author'], true);
?>
		<div class="shop-author small clearfix">
			<div class="author-image">
				<div class="image-wrap">
					<a href="<?php 
echo esc_url($author['links']['profile']['url']);
?>
">
						<?php 
echo get_avatar($author['ID'], 150);
?>
	
					</a>
				</div>
			</div>
			<div class="author-details">
				<h4 class="author-name">
					<a href="<?php 
echo esc_url($author['links']['profile']['url']);
?>
">
Example #3
0
<?php

ThemexShop::refresh($post->ID);
$owner = ThemexUser::getUser(ThemexShop::$data['author']);
?>
<div class="shop-preview">
	<div class="shop-images clearfix">
		<?php 
for ($index = 0; $index < 4; $index++) {
    ?>
		<div class="item-image">
			<div class="image-wrap">
				<?php 
    if (isset(ThemexShop::$data['products'][$index])) {
        ?>
				<a href="<?php 
        echo get_permalink(ThemexShop::$data['products'][$index]);
        ?>
" title="<?php 
        echo get_the_title(ThemexShop::$data['products'][$index]);
        ?>
">
					<?php 
        echo ThemexCore::getImage(ThemexShop::$data['products'][$index], 200, THEME_URI . 'images/product.png');
        ?>
				</a>
				<?php 
    } else {
        ?>
				<a href="<?php 
        the_permalink();
Example #4
0
        ?>
</th>
					<td>
						<?php 
        echo $order['condition'];
        ?>
					</td>
				</tr>
				<tr>
					<th><?php 
        _e('Customer', 'makery');
        ?>
</th>
					<td>
						<?php 
        $customer = ThemexUser::getUser($order['customer'], true);
        ?>
						<a href="<?php 
        echo esc_url($customer['links']['profile']['url']);
        ?>
"><?php 
        echo $customer['profile']['full_name'];
        ?>
</a>
					</td>
				</tr>				
			</tbody>
		</table>
		<table class="profile-table shop_table order_details">
			<thead>
				<tr>
Example #5
0
<?php

ThemexUser::$data['active'] = ThemexUser::getUser($GLOBALS['user']->ID, true);
?>
<div class="image-border small">
	<div class="image-wrap">
		<a href="<?php 
echo ThemexUser::$data['active']['links']['profile']['url'];
?>
" title="<?php 
echo ThemexUser::$data['active']['profile']['full_name'];
?>
">
			<?php 
echo get_avatar(ThemexUser::$data['active']['ID'], 200);
?>
		</a>
	</div>
</div>