
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
/**
 * Register Social Params
 *
 * @link       https://codesupply.co
 * @since      1.0.0
 *
 * @package    Basic Twitter
 * @subpackage Includes
 */

/**
 * Set list social params
 *
 * @param array $list Array social params.
 * @return array Array social params.
 */
function btw_social_params( $list = array() ) {

	// Twitter.
	$list['twitter'] = array(
		'id'		=> 'twitter',
		'name'		=> esc_html__( 'Twitter', 'basic-twitter' ),
		'fields'	=> array(
			'csco_twitter_consumer_key'		=> esc_html__( 'Twitter Consumer Key', 'basic-twitter' ),
			'csco_twitter_consumer_secret'	=> esc_html__( 'Twitter Consumer Secret', 'basic-twitter' ),
			'csco_twitter_access_token'		=> esc_html__( 'Twitter Access Token', 'basic-twitter' ),
			'csco_twitter_access_token_secret'	=> esc_html__( 'Twitter Access Token Secret', 'basic-twitter' ),
		),
	);

	ob_start();
	?>
		<ol>
			<li><?php echo wp_kses_post( __( 'Go to <a href="https://apps.twitter.com/app/new" target="_blank">apps.twitter.com/app/new</a> and log in, if necessary.', 'basic-twitter' ) ); ?></li>
			<li><?php echo wp_kses_post( __( 'Enter your desired Application Name, Description and your website address making sure to enter the full address including the http://. You can leave the callback URL empty.', 'basic-twitter' ) ); ?></li>
			<li><?php echo wp_kses_post( __( 'Accept the TOS and submit the form by clicking the <strong>Create your Twitter Application</strong>.', 'basic-twitter' ) ); ?></li>
			<li><?php echo wp_kses_post( __( 'After creating your Twitter Application click on the tab that says Keys and Access Tokens, then you have to give access to your Twitter Account to use this Application. To do this, click the <strong>Create my Access Token</strong> button.', 'basic-twitter' ) ); ?></li>
			<li><?php echo wp_kses_post( __( 'Lastly copy the Consumer key (API key), Consumer Secret, Access Token and Access Token Secret from the screen into our setting fields.', 'basic-twitter' ) ); ?></li>
		</ol>
	<?php
	$list['twitter']['instructions'] = ob_get_clean();

	return $list;
}
add_filter( 'csco_register_social_params', 'btw_social_params' );
