Changeset 1835742
- Timestamp:
- 03/07/2018 09:12:01 PM (8 years ago)
- Location:
- cookie-optin-interface
- Files:
-
- 8 edited
-
tags/1.0/README.md (modified) (2 diffs)
-
tags/1.0/README.txt (modified) (2 diffs)
-
tags/1.0/admin/class-coii-admin.php (modified) (4 diffs)
-
tags/1.0/public/js/coii-public.js (modified) (1 diff)
-
trunk/README.md (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-coii-admin.php (modified) (4 diffs)
-
trunk/public/js/coii-public.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cookie-optin-interface/tags/1.0/README.md
r1835700 r1835742 6 6 * Requires at least: 4.9.4 7 7 * Tested up to: 4.9.4 8 * Stable tag: 4.9.48 * Stable tag: 1.0.2 9 9 * License: GPLv3 or later 10 10 * License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 31 31 ### Changelog 32 32 33 #### 1.0.2 34 * fix: wrong domain cookie 35 * add: default values for dialogue text, yes-no-buttons 36 37 #### 1.0.1 38 * fatal error when installing plugin because hook-function „add“ 39 requires 6 instead of 4 parameters 40 * renamed debug-functions globally 41 * changed short description text 42 33 43 #### 1.0 34 44 * first release with all basic features -
cookie-optin-interface/tags/1.0/README.txt
r1835717 r1835742 5 5 Requires at least: 4.9.4 6 6 Tested up to: 4.9.4 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 30 30 == Changelog == 31 31 32 = 1.0.2 = 33 * fix: wrong domain cookie 34 * add: default values for dialogue text, yes-no-buttons 35 32 36 = 1.0.1 = 33 37 * fatal error when installing plugin because hook-function „add“ -
cookie-optin-interface/tags/1.0/admin/class-coii-admin.php
r1835698 r1835742 50 50 private $version; 51 51 52 /** 53 * The default dialogue text 54 * 55 * @since 1.0.0 56 * @access private 57 * @var string $default_dialogue_text default dialogue text 58 */ 59 private $default_dialogue_text = 'Do you want to allow tracking?'; 60 61 /** 62 * The default text for the accept button 63 * 64 * @since 1.0.0 65 * @access private 66 * @var string $default_yes_button_text default accept button text 67 */ 68 private $default_yes_button_text = 'yes'; 69 70 /** 71 * The The default text for the disallow button 72 * 73 * @since 1.0.0 74 * @access private 75 * @var string $default_no_button_text default disallow button text 76 */ 77 private $default_no_button_text = 'no'; 78 52 79 /** 53 80 * Initialize the class and set its properties. … … 260 287 261 288 $dialogue_text = get_option( $this->option_name . '_dialogue', NULL); 289 290 if ($dialogue_text == '') { 291 292 $dialogue_text = $this->default_dialogue_text; 293 294 } 295 262 296 echo '<textarea name="' . $this->option_name . '_dialogue' . '" id="' . $this->option_name . '_dialogue' . '" cols="50" rows="10"> '; 263 297 echo $dialogue_text; … … 276 310 $yes_button_text = get_option( $this->option_name . '_yes_button', NULL); 277 311 312 if ($yes_button_text == '') { 313 314 $yes_button_text = $this->default_yes_button_text; 315 316 } 317 278 318 echo '<input type="text" value="'.$yes_button_text.'"name="' . $this->option_name . '_yes_button' . '" id="' . $this->option_name . '_yes_button' . '"/> '; 279 319 } … … 289 329 $no_button_text = get_option( $this->option_name . '_no_button', NULL); 290 330 331 if ($no_button_text == '') { 332 333 $no_button_text = $this->default_no_button_text; 334 335 } 336 291 337 echo '<input type="text" value="'.$no_button_text.'" name="' . $this->option_name . '_no_button' . '" id="' . $this->option_name . '_no_button' . '"/> '; 292 338 -
cookie-optin-interface/tags/1.0/public/js/coii-public.js
r1835698 r1835742 44 44 } 45 45 46 document.cookie = name+"="+value+expires+"; path=/; domain=development";46 document.cookie = name+"="+value+expires+"; path=/;"; 47 47 } 48 48 -
cookie-optin-interface/trunk/README.md
r1835698 r1835742 6 6 * Requires at least: 4.9.4 7 7 * Tested up to: 4.9.4 8 * Stable tag: 4.9.48 * Stable tag: 1.0.2 9 9 * License: GPLv3 or later 10 10 * License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 31 31 ### Changelog 32 32 33 #### 1.0.2 34 * fix: wrong domain cookie 35 * add: default values for dialogue text, yes-no-buttons 36 37 #### 1.0.1 38 * fatal error when installing plugin because hook-function „add“ 39 requires 6 instead of 4 parameters 40 * renamed debug-functions globally 41 * changed short description text 42 33 43 #### 1.0 34 44 * first release with all basic features -
cookie-optin-interface/trunk/README.txt
r1835701 r1835742 5 5 Requires at least: 4.9.4 6 6 Tested up to: 4.9.4 7 Stable tag: 1.0 7 Stable tag: 1.0.2 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 30 30 == Changelog == 31 31 32 = 1.0.2 = 33 * fix: wrong domain cookie 34 * add: default values for dialogue text, yes-no-buttons 35 36 = 1.0.1 = 37 * fatal error when installing plugin because hook-function „add“ 38 requires 6 instead of 4 parameters 39 * renamed debug-functions globally 40 * changed short description text 41 32 42 = 1.0 = 33 43 * first release with all basic features -
cookie-optin-interface/trunk/admin/class-coii-admin.php
r1835698 r1835742 50 50 private $version; 51 51 52 /** 53 * The default dialogue text 54 * 55 * @since 1.0.0 56 * @access private 57 * @var string $default_dialogue_text default dialogue text 58 */ 59 private $default_dialogue_text = 'Do you want to allow tracking?'; 60 61 /** 62 * The default text for the accept button 63 * 64 * @since 1.0.0 65 * @access private 66 * @var string $default_yes_button_text default accept button text 67 */ 68 private $default_yes_button_text = 'yes'; 69 70 /** 71 * The The default text for the disallow button 72 * 73 * @since 1.0.0 74 * @access private 75 * @var string $default_no_button_text default disallow button text 76 */ 77 private $default_no_button_text = 'no'; 78 52 79 /** 53 80 * Initialize the class and set its properties. … … 260 287 261 288 $dialogue_text = get_option( $this->option_name . '_dialogue', NULL); 289 290 if ($dialogue_text == '') { 291 292 $dialogue_text = $this->default_dialogue_text; 293 294 } 295 262 296 echo '<textarea name="' . $this->option_name . '_dialogue' . '" id="' . $this->option_name . '_dialogue' . '" cols="50" rows="10"> '; 263 297 echo $dialogue_text; … … 276 310 $yes_button_text = get_option( $this->option_name . '_yes_button', NULL); 277 311 312 if ($yes_button_text == '') { 313 314 $yes_button_text = $this->default_yes_button_text; 315 316 } 317 278 318 echo '<input type="text" value="'.$yes_button_text.'"name="' . $this->option_name . '_yes_button' . '" id="' . $this->option_name . '_yes_button' . '"/> '; 279 319 } … … 289 329 $no_button_text = get_option( $this->option_name . '_no_button', NULL); 290 330 331 if ($no_button_text == '') { 332 333 $no_button_text = $this->default_no_button_text; 334 335 } 336 291 337 echo '<input type="text" value="'.$no_button_text.'" name="' . $this->option_name . '_no_button' . '" id="' . $this->option_name . '_no_button' . '"/> '; 292 338 -
cookie-optin-interface/trunk/public/js/coii-public.js
r1835698 r1835742 44 44 } 45 45 46 document.cookie = name+"="+value+expires+"; path=/; domain=development";46 document.cookie = name+"="+value+expires+"; path=/;"; 47 47 } 48 48
Note: See TracChangeset
for help on using the changeset viewer.