Changeset 1835710
- Timestamp:
- 03/07/2018 08:35:31 PM (8 years ago)
- Location:
- cookie-optin-interface/trunk
- Files:
-
- 3 edited
-
coii.php (modified) (1 diff)
-
includes/class-coii-loader.php (modified) (1 diff)
-
public/class-coii-public.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cookie-optin-interface/trunk/coii.php
r1835698 r1835710 16 16 * Plugin Name: Cookie-OptIn-Interface 17 17 * Plugin URI: https://www.nickyreinert.de/coii 18 * Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.18 * Description: Allow users to decide whether being tracked or not 19 19 * Version: 1.0.0 20 20 * Author: Nicky Reinert -
cookie-optin-interface/trunk/includes/class-coii-loader.php
r1835698 r1835710 140 140 * @param object $component A reference to the instance of the object on which the shortcode is defined. 141 141 * @param string $callback The name of the function that defines the shortcode. 142 142 143 */ 143 144 public function add_shortcode( $tag, $component, $callback) { 144 $this->shortcodes = $this->add( $this->shortcodes, $tag, $component, $callback ); 145 146 $this->shortcodes = $this->add( $this->shortcodes, $tag, $component, $callback, NULL, NULL ); 145 147 } 146 148 -
cookie-optin-interface/trunk/public/class-coii-public.php
r1835698 r1835710 85 85 public function show_coii_dialogue() { 86 86 87 debug ('showing dialogue');87 debug_coii('showing dialogue'); 88 88 89 89 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/coii-public.css', array(), $this->version, 'all' ); … … 106 106 if(!isset($_COOKIE['coii_allow_tracking_pixel'])) { 107 107 108 debug ('control cookie not set');108 debug_coii('control cookie not set'); 109 109 110 110 $this->show_coii_dialogue(); … … 112 112 } else { 113 113 114 debug ('control cookie is set');114 debug_coii('control cookie is set'); 115 115 116 116 if ($_COOKIE['coii_allow_tracking_pixel'] === 'yes') { 117 117 118 debug ('enabling tracking by setting up the pixel');118 debug_coii('enabling tracking by setting up the pixel'); 119 119 120 120 echo '<script>'.$tracking_pixel.'</script>'; … … 122 122 } else { 123 123 124 debug ('disabled tracking, no action to take');124 debug_coii('disabled tracking, no action to take'); 125 125 126 126 }
Note: See TracChangeset
for help on using the changeset viewer.