PluginProbe
Powerkit – Supercharge your WordPress Site / 2.3.2
Powerkit – Supercharge your WordPress Site v2.3.2
3.1.1 3.1.0 3.0.9 3.0.8 trunk 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 All 87 releases
powerkit / modules / social-links / helpers / helper-powerkit-links-api-config.php

helper-powerkit-links-api-config.php in Powerkit – Supercharge your WordPress Site 2.3.2, at modules/social-links/helpers/helper-powerkit-links-api-config.php

62 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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