| Line 27... |
Line 27... |
| 27 |
unset($rechargeconfig['response'][4]);
|
27 |
unset($rechargeconfig['response'][4]);
|
| 28 |
unset($rechargeconfig['response'][5]);
|
28 |
unset($rechargeconfig['response'][5]);
|
| 29 |
$cachemodule = array('header','footer');
|
29 |
$cachemodule = array('header','footer');
|
| 30 |
$rechargeconfig = getCache($rechargeconfig,$cachemodule);
|
30 |
$rechargeconfig = getCache($rechargeconfig,$cachemodule);
|
| 31 |
$data = array();
|
31 |
$data = array();
|
| - |
|
32 |
$last = $this->uri->total_segments();
|
| - |
|
33 |
$itemcode = $this->uri->segment($last);
|
| - |
|
34 |
if(strpos($itemcode, '-')){
|
| - |
|
35 |
$itemcode = explode('-',$itemcode);
|
| - |
|
36 |
$title = implode(' ', $itemcode);
|
| - |
|
37 |
$title = ucfirst($title);
|
| - |
|
38 |
for($i=0;$i<=sizeof($itemcode);$i++){
|
| - |
|
39 |
if($itemcode[$i] == 'online' || $itemcode[$i] == 'recharge'){
|
| - |
|
40 |
unset($itemcode[$i]);
|
| - |
|
41 |
}
|
| - |
|
42 |
}
|
| - |
|
43 |
$itemcode = implode(' ', $itemcode);
|
| - |
|
44 |
$itemcode = ltrim($itemcode);
|
| - |
|
45 |
$itemcode = rtrim($itemcode);
|
| - |
|
46 |
$data['rechargeOperator'] = $itemcode;
|
| - |
|
47 |
$data['title'] = $title;
|
| - |
|
48 |
}else{
|
| - |
|
49 |
$data['title'] = 'Mobile and DTH online recharge | saholic.com';
|
| - |
|
50 |
}
|
| 32 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
51 |
$this->lessphp->object()->ccompile('assets/css/recharge.less','assets/css/recharge.css');
|
| 33 |
$data['stylesheet'] = 'recharge.css';
|
52 |
$data['stylesheet'] = 'recharge.css';
|
| 34 |
$data['title'] = 'Mobile and DTH online recharge | saholic.com';
|
- |
|
| 35 |
$data['metaKeywords'] = 'mobile, recharge';
|
53 |
$data['metaKeywords'] = 'mobile, recharge';
|
| 36 |
$data['metaDescription'] = 'Description" content="Recharge your Mobile and DTH online for all cities using Credit/Debit card & net banking. Fast, Secure and Hassle Free Recharge';
|
54 |
$data['metaDescription'] = 'Description" content="Recharge your Mobile and DTH online for all cities using Credit/Debit card & net banking. Fast, Secure and Hassle Free Recharge';
|
| 37 |
$cache = getFileCache('rechargeOperators');
|
55 |
$cache = getFileCache('rechargeOperators');
|
| 38 |
if(isset($cache) && !empty($cache)){
|
56 |
if(isset($cache) && !empty($cache)){
|
| 39 |
$data['response'] = $cache;
|
57 |
$data['response'] = $cache;
|