function wp_linkedin_updates($atts = array()) { $atts = shortcode_atts(array('only_self' => true, 'count' => 50), $atts, 'li_updates'); extract($atts); $updates = wp_linkedin_get_network_updates($count, $only_self); if (is_wp_error($updates)) { return wp_linkedin_error($updates); } elseif ($updates && is_object($updates)) { return wp_linkedin_load_template('network-updates', array_merge($atts, array('updates' => $updates))); } }
<div class="linkedin"><div class="profile"><?php echo wp_linkedin_load_template('profile-header', array('profile' => $profile)); if (isset($profile->positions->values) && is_array($profile->positions->values)) { echo wp_linkedin_load_template('profile-positions', array('profile' => $profile)); } if (LI_DEBUG) { echo wp_linkedin_load_template('profile-debug', array('profile' => $profile)); } ?> </div></div>