Changeset 1631751
- Timestamp:
- 04/07/2017 07:08:20 AM (9 years ago)
- Location:
- at-internet/trunk
- Files:
-
- 6 edited
-
atinternet-smarttag.php (modified) (1 diff)
-
includes/class-atinternet-smarttag-settings.php (modified) (1 diff)
-
includes/class-atinternet-smarttag.php (modified) (1 diff)
-
includes/lib/class-atinternet-smarttag-tracking-tree-structure.php (modified) (3 diffs)
-
includes/lib/class-atinternet-smarttag-tracking.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
at-internet/trunk/atinternet-smarttag.php
r1605763 r1631751 10 10 * Tested up to: 4.0 11 11 * 12 * Text Domain: at -internet12 * Text Domain: atinternet-smarttag 13 13 * Domain Path: /lang/ 14 14 * -
at-internet/trunk/includes/class-atinternet-smarttag-settings.php
r1605705 r1631751 142 142 'default' => '', 143 143 'placeholder' => __( '123456', 'at-internet' ) 144 ), 145 array( 146 'id' => 'level2', 147 'label' => __( 'Level 2' , 'at-internet' ), 148 'description' => __( 'Level 2 site number on which you want to send the data. Can be empty and will be overriden by page\'s configuration.', 'at-internet' ), 149 'type' => 'number', 150 'default' => '', 151 'placeholder' => __( '3', 'at-internet' ) 144 152 ), 145 153 array( -
at-internet/trunk/includes/class-atinternet-smarttag.php
r1605705 r1631751 139 139 */ 140 140 public function atinternet_tracking () { 141 new ATInternet_SmartTag_Tracking( get_the_ID());141 new ATInternet_SmartTag_Tracking(); 142 142 } // End atinternet_tracking () 143 143 -
at-internet/trunk/includes/lib/class-atinternet-smarttag-tracking-tree-structure.php
r1605700 r1631751 111 111 break; 112 112 } 113 114 $this->get_level2(); 113 115 } 114 116 … … 131 133 132 134 return $categories; 135 } 136 137 /** 138 * Get page's level 2. 139 * @access private 140 * @since 1.0.0 141 * @return int 142 */ 143 private function get_level2() { 144 if( $post_level2 = get_post_meta( $this->post_id, $this->prefix . 'level2', true ) ) { 145 $this->level2 = $post_level2; 146 } else { 147 $this->level2 = get_option( $this->prefix . 'level2', '' ); 148 } 149 150 return $this->level2; 133 151 } 134 152 … … 213 231 break; 214 232 } 215 if( $post_level2 = get_post_meta( $this->post_id, $this->prefix . 'level2', true ) ) { 216 $this->level2 = $post_level2; 217 } 233 218 234 } 219 235 -
at-internet/trunk/includes/lib/class-atinternet-smarttag-tracking.php
r1605700 r1631751 44 44 $this->prefix = $prefix; 45 45 46 if( is_singular() ) $this->screen_type = 'post'; 46 if( is_singular() ) { 47 $this->screen_type = 'post'; 48 $this->post_id = get_the_ID(); 49 } 47 50 if( is_search() ) $this->screen_type = 'search'; 48 51 if( is_archive() ) $this->screen_type = 'archive'; 49 if( is_home() ) $this->screen_type = 'home'; 52 if( is_home() ) { 53 $this->screen_type = 'home'; 54 $this->post_id = get_option('page_on_front'); 55 } 50 56 51 57 // eCommerce part -
at-internet/trunk/readme.txt
r1606021 r1631751 1 1 === AT Internet SmartTag === 2 Contributors: at_internet,BenDlz2 Contributors: BenDlz 3 3 Tags: AT Internet, Analytics, Tracking, Woocommerce 4 4 Requires at least: 4.0 … … 12 12 == Description == 13 13 14 AT Internet SmartTag allows you to automatically track your Wordpress website with [AT Internet] (http://atinternet.com "AT Internet") solution.14 AT Internet SmartTag allows you to automatically track your Wordpress website with [AT Internet] (http://atinternet.com "AT Internet") solution. 15 15 16 16 == Installation == … … 32 32 == Changelog == 33 33 34 = 0.1.1 = 35 * 2017-04-07 36 * Add global site level 2 37 * Few bug fixes 38 34 39 = 0.1 = 35 40 * 2017-02-27
Note: See TracChangeset
for help on using the changeset viewer.