/** * active_social_networks * * Generate list of available social networks * @return array * @since 3.4 */ public function active_social_networks() { $networks_order = ESSBSocialFollowersCounterHelper::get_active_networks_order(); $networks = ESSBSocialFollowersCounterHelper::get_active_networks(); $result = array(); foreach ($networks_order as $social) { if (in_array($social, $networks)) { if ($this->is_properly_configured($social)) { $result[] = $social; } } } return $result; }