| 10582 |
lgm |
1 |
|
|
|
2 |
<?php
|
|
|
3 |
if($stylesheet != 'authorize.css'){
|
|
|
4 |
//print_r($data);
|
| 11732 |
lgm |
5 |
$route = $this -> router -> fetch_module();
|
| 10582 |
lgm |
6 |
$data = $response['footer'];
|
|
|
7 |
if(isset($data) and !empty($data))
|
|
|
8 |
{
|
|
|
9 |
foreach($data as $headkey=>$value)
|
|
|
10 |
{
|
|
|
11 |
if(isset($value['render']) and !empty($value['render']))
|
|
|
12 |
{
|
|
|
13 |
unset($value['render']);
|
|
|
14 |
if(isset($value) and !empty($value))
|
|
|
15 |
$this->load->view($this->layoutName.$headkey,array($headkey=>$value));
|
|
|
16 |
else
|
|
|
17 |
$this->load->view($this->layoutName.$headkey);
|
|
|
18 |
}
|
|
|
19 |
else
|
|
|
20 |
{
|
|
|
21 |
if(isset($value) and !empty($value) and count($value)>1)
|
| 13554 |
anikendra |
22 |
{
|
|
|
23 |
//echo 'data list here';
|
|
|
24 |
}
|
| 10582 |
lgm |
25 |
}
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
}
|
|
|
31 |
}
|
|
|
32 |
?>
|
|
|
33 |
|
|
|
34 |
<div class="mask" onclick="toggleOverlay(event)"></div>
|
| 11760 |
lgm |
35 |
<div class="welcome-popup" ></div>
|
|
|
36 |
<div class="popup">
|
| 11789 |
lgm |
37 |
<img src="<?php echo base_url().'assets/images/logo.PNG'; ?>" alt="saholic"/>
|
| 11760 |
lgm |
38 |
<p>Try our new mobile site</p>
|
| 12524 |
anikendra |
39 |
<!--<div class="btn m-btn" onclick="removePopup(event);_gaq.push(['_trackEvent', 'MobileSite', 'Popup', '<?php echo uri_string();?>']);">continue</div>-->
|
|
|
40 |
<div class="btn m-btn" onclick="removePopup(event);ga('send', 'event', 'MobileSite', 'Popup', '<?php echo uri_string();?>');">continue</div>
|
|
|
41 |
<!--<a onClick="_gaq.push(['_trackEvent', 'Outbound', 'Popup', '<?php echo uri_string();?>']);" class="desktop-link" href="http://www.saholic.com/<?php echo uri_string();?>/?fullbrowser=true&utm_source=mobile_site">Go to Desktop Site</a>-->
|
|
|
42 |
<a onClick="ga('send', 'event', 'Outbound', 'Popup', '<?php echo uri_string();?>');" class="desktop-link" href="http://www.saholic.com/<?php echo uri_string();?>/?fullbrowser=true&utm_source=mobile_site">Go to Desktop Site</a>
|
| 11760 |
lgm |
43 |
</div><!--popup-->
|
| 10582 |
lgm |
44 |
|
|
|
45 |
</div><!--container-->
|
|
|
46 |
<script src="<?=base_url()?>assets/js/common.js?version=<?=$this->config->item('cdn_version');?>" type="text/javascript"></script>
|
| 11521 |
lgm |
47 |
<script src='<?=base_url().$this->config->item('current_client')?>/js/search_bar.js?version=<?=$this->config->item('cdn_version');?>' type="text/javascript"></script>
|
| 11717 |
lgm |
48 |
<?php
|
|
|
49 |
$userAgent = $_SERVER['HTTP_USER_AGENT'];
|
|
|
50 |
if (strripos($userAgent,'Opera') == 0) {?>
|
| 11785 |
anikendra |
51 |
<script pagespeed_no_defer="" data-pace-options='{ "startOnPageLoad": false }' src='<?=base_url()?>assets/js/pace.js' type="text/javascript"></script>
|
| 11717 |
lgm |
52 |
<?php } ?>
|
| 11731 |
lgm |
53 |
<!--Start product detail js-->
|
|
|
54 |
<?php if(isset($route) && $route == 'productinfo'){?>
|
|
|
55 |
<script type="text/javascript">
|
|
|
56 |
var isOperaMini = (navigator.userAgent.indexOf('Opera Mini') > -1);
|
| 11724 |
anikendra |
57 |
|
| 11731 |
lgm |
58 |
if(isOperaMini ){
|
| 16634 |
amit.gupta |
59 |
document.gpetElementById('view-more').style.display = 'block';
|
| 11731 |
lgm |
60 |
document.getElementById('viewmore_1').style.display = 'block';
|
|
|
61 |
}
|
| 16634 |
amit.gupta |
62 |
var len1 = 0;
|
| 16638 |
amit.gupta |
63 |
var len1 = 0;
|
| 16634 |
amit.gupta |
64 |
|
| 16638 |
amit.gupta |
65 |
swipe0 = document.getElementById('swipe_0');
|
|
|
66 |
swipe1 = document.getElementById('swipe_1');
|
|
|
67 |
|
|
|
68 |
if(swipe0 != null) {
|
|
|
69 |
len2 = swipe0.children[0].children.length;
|
|
|
70 |
}
|
|
|
71 |
|
| 16634 |
amit.gupta |
72 |
if (swipe1 != null) {
|
|
|
73 |
len1 = swipe1.children[0].children.length;
|
|
|
74 |
}
|
| 16638 |
amit.gupta |
75 |
|
| 16634 |
amit.gupta |
76 |
|
| 11731 |
lgm |
77 |
var count = 1
|
|
|
78 |
function showAll(){
|
|
|
79 |
|
|
|
80 |
if(count == 1){
|
|
|
81 |
document.getElementById('view-more').innerHTML = 'Close';
|
|
|
82 |
document.getElementById('swipe_0').children[0].style.whiteSpace = 'inherit';
|
|
|
83 |
document.getElementById('swipe_0').children[0].style.display = 'block';
|
|
|
84 |
for(var i =0; i< len;i++){
|
|
|
85 |
document.getElementsByClassName('pd-image')[i].style.width = '100%';
|
|
|
86 |
}
|
|
|
87 |
count = 2;
|
|
|
88 |
}else{
|
|
|
89 |
document.getElementById('view-more').innerHTML = 'View All';
|
|
|
90 |
document.getElementById('swipe_0').children[0].style.whiteSpace = 'nowrap';
|
|
|
91 |
document.getElementById('swipe_0').children[0].style.display = 'inline-block';
|
|
|
92 |
for(var i =0; i< len;i++){
|
|
|
93 |
document.getElementsByClassName('pd-image')[i].style.width = '';
|
|
|
94 |
}
|
|
|
95 |
count = 1;
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
var count1 = 1
|
|
|
100 |
function showAll1(){
|
|
|
101 |
if(count1 ==1){
|
|
|
102 |
document.getElementById('viewmore_1').innerHTML = 'Close';
|
|
|
103 |
document.getElementById('swipe_1').children[0].style.whiteSpace = 'inherit';
|
|
|
104 |
document.getElementById('swipe_1').children[0].style.display = 'block';
|
|
|
105 |
for(var i =0; i< len1;i++){
|
|
|
106 |
document.getElementsByClassName('rec-product')[i].style.width = '50%';
|
|
|
107 |
if(i%2 == 0){
|
|
|
108 |
document.getElementsByClassName('rec-product')[i].style.cssFloat = 'left';
|
|
|
109 |
}else{
|
|
|
110 |
document.getElementsByClassName('rec-product')[i].style.cssFloat = 'right';
|
|
|
111 |
document.getElementsByClassName('rec-product')[i].style.border = 'none';
|
|
|
112 |
}
|
|
|
113 |
}
|
|
|
114 |
count1 = 2;
|
|
|
115 |
}else{
|
|
|
116 |
document.getElementById('viewmore_1').innerHTML = 'View More';
|
|
|
117 |
document.getElementById('swipe_1').children[0].style.whiteSpace = 'nowrap';
|
|
|
118 |
document.getElementById('swipe_1').children[0].style.display = 'inline-block';
|
|
|
119 |
for(var i =0; i< len1;i++){
|
|
|
120 |
document.getElementsByClassName('rec-product')[i].style.width = '';
|
|
|
121 |
if(i%2 == 0){
|
|
|
122 |
document.getElementsByClassName('rec-product')[i].style.cssFloat = '';
|
|
|
123 |
}else{
|
|
|
124 |
document.getElementsByClassName('rec-product')[i].style.cssFloat = '';
|
|
|
125 |
document.getElementsByClassName('rec-product')[i].style.border = '';
|
|
|
126 |
}
|
|
|
127 |
}
|
|
|
128 |
count1 = 1;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
}
|
|
|
132 |
var isIE10 = false;
|
|
|
133 |
|
|
|
134 |
/*@cc_on
|
|
|
135 |
|
|
|
136 |
if (/^10/.test(@_jscript_version)) {
|
|
|
137 |
|
|
|
138 |
isIE10 = true;
|
|
|
139 |
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
@*/
|
|
|
143 |
|
|
|
144 |
var iOS = navigator.userAgent.match(/(iPad|iPhone|iPod)/g);
|
|
|
145 |
|
|
|
146 |
var ua = navigator.userAgent;
|
|
|
147 |
|
|
|
148 |
var userAgent = navigator.userAgent.toLowerCase();
|
|
|
149 |
|
|
|
150 |
if (isIE10) {
|
|
|
151 |
var a = document.getElementsByClassName('rec-hldr');
|
|
|
152 |
|
|
|
153 |
for (var i = 0; i < a.length; i++) {
|
|
|
154 |
|
|
|
155 |
a[i].style.overflowX = 'auto';
|
|
|
156 |
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
else if (ua.indexOf("Android") >= 0) {
|
|
|
162 |
|
|
|
163 |
var androidversion = parseFloat(ua.slice(ua.indexOf("Android") + 8));
|
|
|
164 |
|
|
|
165 |
if (androidversion < 3.0) {
|
|
|
166 |
|
|
|
167 |
var script = document.createElement("script");
|
|
|
168 |
|
|
|
169 |
script.type = "text/javascript";
|
|
|
170 |
|
|
|
171 |
script.src = base_url+'assets/js/iscroll.js'
|
|
|
172 |
|
|
|
173 |
document.body.appendChild(script);
|
|
|
174 |
|
|
|
175 |
script.onload = function() {
|
|
|
176 |
|
|
|
177 |
var point, pointStartX, pointStartY, deltaX, deltaY;
|
|
|
178 |
|
|
|
179 |
var i, scroller = [], len = document.getElementsByClassName('rec-hldr').length;
|
|
|
180 |
|
|
|
181 |
var scrollerArray = document.getElementsByClassName('rec-hldr');
|
|
|
182 |
|
|
|
183 |
for ( i = 0; i < scrollerArray.length; i++) {
|
|
|
184 |
|
|
|
185 |
var length = scrollerArray[i].children.length;
|
|
|
186 |
|
|
|
187 |
scroller[i] = new iScroll("swipe_"+ i, {
|
|
|
188 |
|
|
|
189 |
bounce : true,
|
|
|
190 |
|
|
|
191 |
momentum : true,
|
|
|
192 |
|
|
|
193 |
//hScroll: true,
|
|
|
194 |
|
|
|
195 |
vScroll : false,
|
|
|
196 |
|
|
|
197 |
hScrollbar : false,
|
|
|
198 |
|
|
|
199 |
vScrollbar : false,
|
|
|
200 |
|
|
|
201 |
snap : true,
|
|
|
202 |
|
|
|
203 |
onBeforeScrollStart : function(e) {
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
point = e.touches[0];
|
|
|
207 |
|
|
|
208 |
pointStartX = point.pageX;
|
|
|
209 |
|
|
|
210 |
pointStartY = point.pageY; null;
|
|
|
211 |
|
|
|
212 |
},
|
|
|
213 |
|
|
|
214 |
onBeforeScrollMove : function(e) {
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
point = e.touches[0];
|
|
|
218 |
|
|
|
219 |
//alert("onBeforeScrollMove");
|
|
|
220 |
|
|
|
221 |
deltaX = Math.abs(point.pageX - pointStartX);
|
|
|
222 |
|
|
|
223 |
deltaY = Math.abs(point.pageY - pointStartY);
|
|
|
224 |
|
|
|
225 |
if (deltaX >= deltaY) {
|
|
|
226 |
e.preventDefault();
|
|
|
227 |
|
|
|
228 |
// alert("horizontal");
|
|
|
229 |
|
|
|
230 |
} else {
|
|
|
231 |
|
|
|
232 |
//alert("vertical");
|
|
|
233 |
|
|
|
234 |
null;
|
|
|
235 |
|
|
|
236 |
}
|
|
|
237 |
|
|
|
238 |
}
|
|
|
239 |
});
|
|
|
240 |
setTimeout(function() {
|
|
|
241 |
|
|
|
242 |
for ( i = 0; i < len; i++) {
|
|
|
243 |
|
|
|
244 |
scroller[i].refresh();
|
|
|
245 |
|
|
|
246 |
}
|
|
|
247 |
|
|
|
248 |
}, 100);
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
}
|
|
|
252 |
}else {
|
|
|
253 |
|
|
|
254 |
var a = document.getElementsByClassName('rec-hldr');
|
|
|
255 |
|
|
|
256 |
for (var i = 0; i < a.length; i++) {
|
|
|
257 |
|
|
|
258 |
a[i].style.overflowX = 'auto';
|
|
|
259 |
|
|
|
260 |
a[i].style.webkitOverflowScrolling = 'touch';
|
|
|
261 |
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
}
|
|
|
265 |
|
|
|
266 |
}else if (iOS) {
|
|
|
267 |
|
|
|
268 |
if (navigator.userAgent.match(/(iPad|iPhone|iPod|iPod touch);.*CPU.*OS (6|7)_\d/i) ? true : false) {
|
|
|
269 |
|
|
|
270 |
var a = document.getElementsByClassName('rec-hldr');
|
|
|
271 |
for (var i = 0; i < a.length; i++) {
|
|
|
272 |
a[i].style.overflowX = 'auto';
|
|
|
273 |
a[i].style.overflowY = 'hidden';
|
|
|
274 |
a[i].style.webkitOverflowScrolling = 'touch';
|
|
|
275 |
}
|
|
|
276 |
|
|
|
277 |
}else{
|
|
|
278 |
var script = document.createElement("script");
|
|
|
279 |
script.type = "text/javascript";
|
|
|
280 |
script.src = base_url+'assets/js/iscroll.js'
|
|
|
281 |
document.body.appendChild(script);
|
|
|
282 |
script.onload = function() {
|
|
|
283 |
var point, pointStartX, pointStartY, deltaX, deltaY;
|
|
|
284 |
var i, scroller = [], len = document.getElementsByClassName('rec-wrapper').length;
|
|
|
285 |
var scrollerArray = document.getElementsByClassName('rec-wrapper');
|
|
|
286 |
//var length = scrollerArray[i].children.length;
|
|
|
287 |
scroller[i] = new iScroll(swipe_1, {
|
|
|
288 |
bounce : true,
|
|
|
289 |
momentum : true,
|
|
|
290 |
//hScroll: true,
|
|
|
291 |
vScroll : false,
|
|
|
292 |
hScrollbar : false,
|
|
|
293 |
vScrollbar : false,
|
|
|
294 |
snap : true,
|
|
|
295 |
onBeforeScrollStart : function(e) {
|
|
|
296 |
point = e.touches;
|
|
|
297 |
pointStartX = point.pageX;
|
|
|
298 |
pointStartY = point.pageY; null;
|
|
|
299 |
},
|
|
|
300 |
onBeforeScrollMove : function(e) {
|
|
|
301 |
point = e.touches;
|
|
|
302 |
//alert("onBeforeScrollMove");
|
|
|
303 |
deltaX = Math.abs(point.pageX - pointStartX);
|
|
|
304 |
deltaY = Math.abs(point.pageY - pointStartY);
|
|
|
305 |
if (deltaX >= deltaY) {
|
|
|
306 |
e.preventDefault();
|
|
|
307 |
// alert("horizontal");
|
|
|
308 |
} else {
|
|
|
309 |
//alert("vertical");
|
|
|
310 |
null;
|
|
|
311 |
}
|
|
|
312 |
}
|
|
|
313 |
});
|
|
|
314 |
}
|
|
|
315 |
}
|
|
|
316 |
}else if (ua.indexOf("BlackBerry") >= 0 || ua.indexOf("BB10") >= 0) {
|
|
|
317 |
var a = document.getElementsByClassName('rec-hldr');
|
|
|
318 |
for (var i = 0; i < a.length; i++) {
|
|
|
319 |
a[i].style.overflowX = 'auto';
|
|
|
320 |
a[i].style.webkitOverflowScrolling = 'touch';
|
|
|
321 |
}
|
|
|
322 |
}
|
|
|
323 |
</script>
|
|
|
324 |
<?php } ?>
|
|
|
325 |
<!--End product detail js-->
|
| 11752 |
lgm |
326 |
<script>
|
| 13306 |
anikendra |
327 |
document.getElementsByClassName('welcome-popup')[0].style.display = 'none';
|
|
|
328 |
document.getElementsByClassName('popup')[0].style.display = 'none';
|
|
|
329 |
/*
|
| 11752 |
lgm |
330 |
if(getCOOKIE('flag') == 1){
|
|
|
331 |
document.getElementsByClassName('welcome-popup')[0].style.display = 'none';
|
|
|
332 |
document.getElementsByClassName('popup')[0].style.display = 'none';
|
|
|
333 |
|
|
|
334 |
}else{
|
|
|
335 |
document.getElementsByClassName('welcome-popup')[0].style.display = 'block';
|
|
|
336 |
document.getElementsByClassName('popup')[0].style.display = 'block';
|
|
|
337 |
document.getElementsByClassName("welcome-popup")[0].style.minHeight = document.getElementsByTagName('body')[0].clientHeight + "px";
|
| 13306 |
anikendra |
338 |
}*/
|
|
|
339 |
|
| 11752 |
lgm |
340 |
</script>
|
| 11724 |
anikendra |
341 |
<!-- Start Alexa Certify Javascript -->
|
|
|
342 |
<script type="text/javascript">
|
|
|
343 |
_atrk_opts = { atrk_acct:"N82Fj1agtu00gJ", domain:"saholic.com",dynamic: true};
|
|
|
344 |
(function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })();
|
|
|
345 |
</script>
|
|
|
346 |
<noscript><img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=N82Fj1agtu00gJ" style="display:none" height="1" width="1" alt="" /></noscript>
|
| 13306 |
anikendra |
347 |
|
| 10582 |
lgm |
348 |
</body>
|
|
|
349 |
</html>
|
|
|
350 |
|
|
|
351 |
|
| 11724 |
anikendra |
352 |
<!-- <p>Page rendered in <strong>{elapsed_time}</strong> seconds</p> -->
|