$network); $result["{$position}_networks_order"][] = $network."|".$data["name"]; } foreach ($all_networks as $key => $data) { if (!in_array($key, $result["{$position}_networks"])) { $result["{$position}_networks_order"][] = $key."|".$data["name"]; } } $result ["{$position}_name_change"] = "true"; $result ["{$position}_share_name"] = "Share"; $result ["{$position}_facebook_name"] = "Share"; $result ["{$position}_twitter_name"] = "Tweet"; $result ["{$position}_google_name"] = "+1"; $result ["{$position}_pinterest_name"] = "Pin"; $result ["{$position}_buffer_name"] = "Share"; $result ["{$position}_love_name"] = "Love"; return $result; }