| Line 44... |
Line 44... |
| 44 |
$url .= '?user_id='.$logged_user['id'];
|
44 |
$url .= '?user_id='.$logged_user['id'];
|
| 45 |
}
|
45 |
}
|
| 46 |
?>
|
46 |
?>
|
| 47 |
<div class="herotext col-xs-12">
|
47 |
<div class="herotext col-xs-12">
|
| 48 |
Daily profitable deals for you
|
48 |
Daily profitable deals for you
|
| 49 |
<?php //echo $this->element('headerlinks');?>
|
- |
|
| 50 |
<script type="text/javascript">
|
49 |
<script type="text/javascript">
|
| 51 |
$(function(){
|
50 |
$(function(){
|
| 52 |
$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
|
51 |
$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
|
| 53 |
$('.notificationUrl').prop('href','<?php echo $url;?>');
|
52 |
$('.notificationUrl').prop('href','<?php echo $url;?>').data('id','<?php echo $notification['NotificationRule']['id'];?>');
|
| 54 |
if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
|
53 |
if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
|
| 55 |
$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});
|
54 |
$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});
|
| 56 |
var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
|
55 |
var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
|
| 57 |
$.post( "/notification_views/add", postdata, function( data ) {});
|
56 |
$.post( "/notification_views/add", postdata, function( data ) {});
|
| 58 |
ga('send', 'event', 'popupnotification', 'shown', me);
|
57 |
ga('send', 'event', 'popupnotification-<?php echo $notification['NotificationRule']['id'];?>', 'shown', me);
|
| 59 |
var properties = {};
|
58 |
var properties = {};
|
| 60 |
properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
|
59 |
properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
|
| 61 |
pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);
|
60 |
pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);
|
| 62 |
}
|
61 |
}
|
| 63 |
});
|
62 |
});
|