<?php

class SWP_Linkedin extends SWP_Social_Network {
	/**
	 * The Magic __construct Method
	 *
	 * This method is used to instantiate the social network object. It does three things.
	 * First it sets the object properties for each network. Then it adds this object to
	 * the globally accessible swp_social_networks array. Finally, it fetches the active
	 * state (does the user have this button turned on?) so that it can be accessed directly
	 * within the object.
	 *
	 * @since  3.0.0 | 06 APR 2018 | Created
	 * @since  3.0.9 | 04 JUN 2018 | Removed deprecated API request (share counts)
	 * @param  none
	 * @return none
	 * @access public
	 */
	public function __construct() {

		// Update the class properties for this network
		$this->name           = esc_html__( 'LinkedIn', 'social-warfare' );
		$this->cta            = esc_html__( 'Share', 'social-warfare' );
		$this->key            = 'linkedin';
		$this->default        = 'true';
		$this->base_share_url = 'https://www.linkedin.com/cws/share?url=';

		$this->init_social_network();
	}
}
