function __construct($ID, $name = '') { if ($ID != 0) { parent::__construct($ID, $name); } /* Set meta vars */ $this->first_name = get_user_meta($ID, 'first_name', true); $this->last_name = get_user_meta($ID, 'last_name', true); $this->courses_number = Instructor::get_courses_number($ID); }
?> :</span> <span class="info"><a href="mailto:<?php echo $instructor->user_email; ?> "><?php echo $instructor->user_email; ?> </a></span> </div> <div><span class="info_caption"><?php _e('Courses', 'cp'); ?> :</span> <span class="info"><?php echo Instructor::get_courses_number($instructor->ID); ?> </span> </div> </div> </td> <?php } else { ?> <td> <label class="ins-box"><?php _e('First Name', 'cp'); ?> <input type="user_firstname" value="<?php echo esc_attr($instructor->user_firstname); ?>