'Atom LinkedIn - Can show many LinkedIn widgets using One Module - LinkedIn Profile, LinkedIn Company Profile with Connections, Company Inside & Jobs You May Interested In.', 'name' => 'Atom LinkedIn' ); parent::__construct('atom_linkedin','',$params); } public function form($instance) { extract($instance); ?>

" />

" />

" />

Shortcode:
[atom_linkedin linkedin_option="" linkedin_id="" connections="" suffix=""]

display_linkedin($linkedin_option,$linkedin_id,$connections); echo $before_widget; echo $before_title . $title . $after_title; echo $data; echo $after_widget; } public static function display_linkedin($linkedin_option,$linkedin_id,$connections){ $data = ""; $data .= ""; if($linkedin_option == "MemberProfile" || $linkedin_option == "CompanyProfile"){ $data .= " "; }else{ $data .= " "; } $data .= "
Redmond Windshield Repair
"; return $data; } } //register the widget add_action('widgets_init','register_atom_linkedin'); function register_atom_linkedin(){ register_widget('atom_linkedin'); } //shortcode add_shortcode('atom_linkedin', 'atom_linkedin_shortcode'); function atom_linkedin_shortcode($atts){ $atts = shortcode_atts(array( 'linkedin_option' => 'CompanyProfile', 'linkedin_id' => '1337', 'connections' => 'true', 'suffix' => '' ), $atts); extract($atts); if(!empty($linkedin_option) && !empty($linkedin_id)){ $data = atom_linkedin::display_linkedin($linkedin_option, $linkedin_id, $connections); } else{ $data = "linkedin_option and linkedin_id are required to display the shortcode"; } return $data; }