<?php

class CoursePress_Helper_SocialMedia {
	/**
	 * Function all to get Social Sharing services with labels.
	 *
	 * @since 2.0.5
	 *
	 * @return array Array of social services.
	 */
	public static function get_social_sharing_array() {
		$services = array(
			'facebook' => __( 'Facebook', 'coursepress' ),
			'twitter' => __( 'Twitter', 'coursepress' ),
			'google' => __( 'Google', 'coursepress' ),
			'email' => __( 'Email', 'coursepress' ),
		);
		/**
		 * Filter allow to add some social media.
		 *
		 * Filter allow to add some social media. You need to use
		 * "coursepress_social_link_{$service}" filter to handle frontend output.
		 *
		 * @see CoursePress_Data_Shortcode_CourseTemplatecourse_social_links()
		 *
		 * @since 2.0.5
		 */
		return apply_filters( 'coursepress_social_media_social_sharing_array', $services );
	}
	/**
	 * Function all to get Social Sharing services keys.
	 *
	 * @since 2.0.5
	 *
	 * @return array Array of social services keys.
	 */
	public static function get_social_sharing_keys() {
		$services = self::get_social_sharing_array();
		$services = array_keys( $services );
		return $services;
	}
}