public static function my_point() { ?> <div class="panel"> <div class="heading"> <i class="fa fa-line-chart"></i> <?php echo ___('My recent reward point actives'); ?> </div> <?php /** * show lastest histories */ $histories = theme_custom_point::get_history_list(array('posts_per_page' => 5)); if (!$histories) { ?> <div class="content"> <?php echo status_tip('info', ___('No data yet.')); ?> </div> <?php } else { echo $histories; } ?> </div> <?php }
echo theme_custom_point::get_point_img_url(); ?> " alt=""> </div> <div class="media-body"> <h4 class="media-heading"> <strong class="total-point"><?php echo number_format(theme_custom_point::get_point(theme_cache::get_current_user_id())); ?> </strong> </h4> </div> </div> </div><!-- /.content --> <?php $history_list = theme_custom_point::get_history_list(array('posts_per_page' => 20)); if (empty($history_list)) { ?> <div class="content"> <div class="page-tip"><?php echo status_tip('info', ___('Your have not any history yet.')); ?> </div> </div><!-- /.content --> <?php } else { echo $history_list; } ?> </div> </div>