Subversion Repositories SmartDukaan

Rev

Rev 11845 | Rev 11913 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11845 Rev 11885
Line 37... Line 37...
37
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
37
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
38
        //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
38
        //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
39
	ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
39
	ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
40
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
40
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
41
      })();
41
      })();
-
 
42
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
-
 
43
_gaq.push(['_setCustomVar',
-
 
44
      1,             // This custom var is set to slot #1.  Required parameter.
-
 
45
      'User Type',   // The name of the custom variable.  Required parameter.
-
 
46
      'PrivateDeal',      // Sets the value of "User Type" to "Member" or "Visitor" depending on status.  Required parameter.
-
 
47
       2             // Sets the scope to session-level.  Optional parameter.
-
 
48
]);
-
 
49
<?php endif;?>
42
    </script>
50
    </script>
43
  </head>
51
  </head>
44
  <body>
52
  <body>
45
    
53
    
46
    <header class="clearfix">
54
    <header class="clearfix">
Line 98... Line 106...
98
  <div>Account</div>
106
  <div>Account</div>
99
   <?php } else { ?>
107
   <?php } else { ?>
100
   <div>Account</div>
108
   <div>Account</div>
101
  <?php }?>
109
  <?php }?>
102
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
110
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
-
 
111
  <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
-
 
112
  <a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
-
 
113
  <?php endif;?>
103
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
114
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
104
  <a href="<?php echo base_url().'my-recharges';?>">My Recharges</a>
115
  <a href="<?php echo base_url().'my-recharges';?>">My Recharges</a>
105
  <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a>
116
  <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a>
106
  <a href="<?php echo base_url().'login-details';?>">Change Password</a>
117
  <a href="<?php echo base_url().'login-details';?>">Change Password</a>
107
  <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
-
 
108
  <a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
-
 
109
  <?php endif;?>
-
 
110
  <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a>
118
  <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a>
111
  <!-- <a href="#">My Account</a> --> 
119
  <!-- <a href="#">My Account</a> --> 
112
  <?php } else {?>
120
  <?php } else {?>
113
  <a href="<?php echo base_url().'login';?>">Sign In</a>
121
  <a href="<?php echo base_url().'login';?>">Sign In</a>
114
  <a href="<?php echo base_url().'register';?>">Register</a>  
122
  <a href="<?php echo base_url().'register';?>">Register</a>