Changeset 200948
- Timestamp:
- 02/02/2010 04:14:56 AM (15 years ago)
- Location:
- woopra/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
woopra/trunk/inc/frontend.php
r200933 r200948 10 10 */ 11 11 class WoopraFrontend extends Woopra { 12 13 14 15 16 17 18 12 19 13 20 /** … … 72 79 // Set jQuery Options 73 80 if ( $this->get_option('use_subdomain') ) 74 $ _woopra_localize[] = array('rootDomain' => $this->get_option('sub_domain') );81 $) ); 75 82 76 83 if ( $this->get_option('use_timeout') ) 77 $_woopra_localize[] = array('setTimeoutValue' => ($this->get_option('timeout')*1000) ); 84 $this->create_localize( array('setTimeoutValue' => ($this->get_option('timeout')*1000) ) ); 85 86 // For showing in the Woopra Desktop Application 87 $this->create_localize( array('name' => __('Name')) ); 88 $this->create_localize( array('email' => __('Email')) ); 78 89 79 90 // Output jQuery Options 80 wp_localize_script( 'woopra-tracking', 'woopraFrontL10n', $_woopra_localize ); 91 wp_localize_script( 'woopra-tracking', 'woopraFrontL10n', $this->local ); 92 } 93 94 /** 95 * Create the localized array string. 96 * @since 1.5.0 97 * @param $array 98 * @return none 99 */ 100 function create_localize($array) { 101 $this->local = array_merge($array , $this->local ); 81 102 } 82 103 -
woopra/trunk/js/jquery.tracking.js
r200932 r200948 57 57 $.trackWoopra = function(woopra_data) { 58 58 var script; 59 var woopraFrontL10n;60 59 var src = 'http://static.woopra.com/js/woopra.v2.js'; 61 60 … … 72 71 } 73 72 } 74 woopraTracker.addVisitorProperty( 'name', woopra_data.name );75 woopraTracker.addVisitorProperty( 'email', woopra_data.email );76 woopraTracker.addVisitorProperty( 'avatar', woopra_data.avatar );73 woopraTracker.addVisitorProperty(, woopra_data.name ); 74 woopraTracker.addVisitorProperty(, woopra_data.email ); 75 woopraTracker.addVisitorProperty('avatar', woopra_data.avatar ); 77 76 woopraTracker.track(); 78 77 debug('Woopra is loaded.');
Note: See TracChangeset
for help on using the changeset viewer.