if (isset($page['description'])) { ?>
} ?>
Language Direct | Pricing
foreach ($menu as $k => $v ) { if ($page['url'] == $k) { echo "
"; } else { echo "
"; } echo "
".__($v)."
"; }?>
if (@$_COOKIE['hrsignupid']) { header('Location: /eng/hrsignup?id='.urlencode($_COOKIE['hrsignupid'])); exit; } // get api data ob_start(); $save = array($_SERVER['QUERY_STRING'], $_POST); $_SERVER['QUERY_STRING'] = 'getData'; $_POST = array(); include('api.php'); $data = json_decode(ob_get_clean(),true); list($_SERVER['QUERY_STRING'],$_POST) = $save; function ld_pricing_get_products($args=array()) { global $data; $result = "
"; usort($data['products'],create_function('$a,$b','return $a["price"]-$b["price"];')); $sup = false; foreach($data['products'] as $k => $v) if ($v['price'] != floor($v['price'])) { $sup = true; break; } foreach($data['products'] as $k => $v) { $lessons = preg_replace('#\.0+$#','',$v['lessons']); if ($sup) { $price = sprintf('%02.2f',$v['price']); $price = preg_replace('#\.(.*)#','
\1
',$price); } else { $price = (int)$v['price']; } $result .= "
"; $result .= "
"; $result .= "
"; $result .= "
$v[name]
"; $q = $data['packages'][count($data['packages'])]['quantity']; $ba = array(); foreach($data['bonuses'] as $b) if ($b['product_id']==$v['product_id']) $ba[$b['max_lessons']] = $b['units']; ksort($ba); $max = 0; foreach($ba as $bak => $bav) if ($bak > $max && $bak <= $q) $max = $bak; $maxvalue = $max ? "
".__("Earn up to %d ".$data['partner']['unit_label'].'!',$ba[$max])."
" : ''; if ($v['subscription_product_price_id']) { $result .= "
$v[currency]
$price
".__('trial')."
"; $result .= "
"; $result .= '
'.__('%d min trial lesson*',$lessons*30).'
'; $result .= '
'.__('(selected languages only)').'
'; $result .= "
"; } else { $result .= "
$v[currency]
$price
".__('weekly')."
"; $result .= "
$maxvalue
"; $result .= '
'.($lessons==1?__('1 lesson per week'):__("%d lessons per week",$lessons)).'
'; $result .= '
'.__("(total %d minutes)",$lessons*30).'
'; $result .= "
"; } $result .= "
".__('Select')."
"; $result .= "
"; $result .= "
"; } $result .= "
"; return $result; } function ld_pricing_get_disclaimer() { global $data; $disclaimer = str_replace('
',strftime('%x',strtotime($data['partner']['promo_expiry'])),__($data['partner']['promo_disclaimer'])); $disclaimer = str_replace('
','
',$disclaimer); $disclaimer = "
$disclaimer ".__('Campaign ID:').' '.$data['partner']['src']."
"; return str_replace('
',strftime('%x',time() + 60*60*24*7),$disclaimer); // one week in advance } include('../page_includes/pricing.js.php'); ?>
$logoname = 'images/partners/'.$data['partner']['id'].'.png'; if (file_exists($logoname)) { ?>
} ?>