| 1 |
<?php |
| 2 |
/** |
| 3 |
* Social API Config |
| 4 |
* |
| 5 |
* @package Powerkit |
| 6 |
* @subpackage Modules/Helper |
| 7 |
*/ |
| 8 |
|
| 9 |
/** |
| 10 |
* Social API Config Class |
| 11 |
*/ |
| 12 |
class Powerkit_Links_Api_Config { |
| 13 |
|
| 14 |
/** |
| 15 |
* Cache Timeout |
| 16 |
* |
| 17 |
* @var string $cache_timeout Cache Timeout. |
| 18 |
*/ |
| 19 |
public static $cache_timeout; |
| 20 |
|
| 21 |
/** |
| 22 |
* Config |
| 23 |
* |
| 24 |
* @var string $config Config List. |
| 25 |
*/ |
| 26 |
public static $config = array(); |
| 27 |
|
| 28 |
/** |
| 29 |
* Initialize. |
| 30 |
* |
| 31 |
* @since 1.0.0 |
| 32 |
*/ |
| 33 |
public function __construct() { |
| 34 |
self::$cache_timeout = (int) apply_filters( 'powerkit_social_links_cache_timeout', 60 ); |
| 35 |
|
| 36 |
self::$config['dribbble_user'] = get_option( 'powerkit_social_links_dribbble_user' ); |
| 37 |
self::$config['facebook_user'] = get_option( 'powerkit_social_links_facebook_user' ); |
| 38 |
self::$config['instagram_user'] = get_option( 'powerkit_social_links_instagram_user' ); |
| 39 |
self::$config['youtube_slug'] = get_option( 'powerkit_social_links_youtube_slug' ); |
| 40 |
self::$config['youtube_channel_type'] = get_option( 'powerkit_social_links_youtube_channel_type' ); |
| 41 |
self::$config['telegram_chat'] = get_option( 'powerkit_social_links_telegram_chat' ); |
| 42 |
self::$config['pinterest_user'] = get_option( 'powerkit_social_links_pinterest_user' ); |
| 43 |
self::$config['soundcloud_user_id'] = get_option( 'powerkit_social_links_soundcloud_user_id' ); |
| 44 |
self::$config['vimeo_user'] = get_option( 'powerkit_social_links_vimeo_user' ); |
| 45 |
self::$config['twitter_user'] = get_option( 'powerkit_social_links_twitter_user' ); |
| 46 |
self::$config['behance_user'] = get_option( 'powerkit_social_links_behance_user' ); |
| 47 |
self::$config['github_user'] = get_option( 'powerkit_social_links_github_user' ); |
| 48 |
self::$config['vk_id'] = get_option( 'powerkit_social_links_vk_id' ); |
| 49 |
self::$config['vk_type'] = get_option( 'powerkit_social_links_vk_type' ); |
| 50 |
self::$config['twitch_user_id'] = get_option( 'powerkit_social_links_twitch_user_id' ); |
| 51 |
self::$config['flickr_user_id'] = get_option( 'powerkit_social_links_flickr_user_id' ); |
| 52 |
self::$config['snapchat_user'] = get_option( 'powerkit_social_links_snapchat_user' ); |
| 53 |
self::$config['medium_user'] = get_option( 'powerkit_social_links_medium_user' ); |
| 54 |
self::$config['reddit_user'] = get_option( 'powerkit_social_links_reddit_user' ); |
| 55 |
self::$config['reddit_type'] = get_option( 'powerkit_social_links_reddit_type' ); |
| 56 |
self::$config['strava_user'] = get_option( 'powerkit_social_links_strava_user' ); |
| 57 |
self::$config['ok_slug'] = get_option( 'powerkit_social_links_ok_slug' ); |
| 58 |
self::$config['ok_type'] = get_option( 'powerkit_social_links_ok_type' ); |
| 59 |
self::$config['linkedin_slug'] = get_option( 'powerkit_social_links_linkedin_slug' ); |
| 60 |
} |
| 61 |
} |
| 62 |
|