<script type="text/javascript" src="js/facebox.js"></script> <link href="css/facebox.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function mobileLightbox() { var url = $("#mobile_select option:selected").attr('value'); url = unescape(url); jQuery.facebox("<iframe src='" + url + "' style='height:484px; width:100%; overflow:hidden;' scrolling='no' frameborder='0'></iframe>"); $("#facebox").css('top','40px'); } </script> <?php require_once "social_ingot.php"; require_once "config.php"; $social_ingot = new SocialIngot($api_key, $secret); $mobile_widgets = $social_ingot->widgets_mobile_get($vc_plural, $success_url, $cancel_url, '', array('enduser_ip' => $ip, 'country_code' => 'US', 'currency_code' => 'USD'), '', 0, 'sale_amount'); if (is_array($mobile_widgets)) { ?> <span style="float:left;"> <div class="subtitle">Mobile Phone</div> <img style="float:left;" src="images/mobilephone.gif" /> <form style="float:left;" id="mobile" onsubmit="return false;"> <select style="float:left; margin-top:12px" id="mobile_select"> <?php foreach ($mobile_widgets as $widget) { if ($widget['sale_amount'] < $xe) { continue; }
/** * This signs the request. * * @param string $method - the method we're querying in the API. * @param array $params - the params that are beign sent to the API call. */ private function finalize_params($method, &$params) { $this->add_standard_params($method, $params); // we need to do this before signing the params $this->convert_array_values_to_json($params); $params['sig'] = SocialIngot::generate_sig($params, $this->secret); }