Changeset 2122496
- Timestamp:
- 07/13/2019 12:02:58 PM (7 years ago)
- Location:
- announcekit/trunk
- Files:
-
- 2 edited
-
index.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
announcekit/trunk/index.php
r2116111 r2122496 5 5 * Plugin URI: https://announcekit.app/docs 6 6 * Description: Beautifully designed newsfeed powered with fancy widgets and email notifications. 7 * Version: 1. 27 * Version: 1.3 8 8 * Text Domain: announcekit 9 9 * Author: AnnounceKit … … 189 189 "key" => "selector_manual" 190 190 )); 191 192 add_settings_field( 193 "user_tracking", 194 "User tracking", 195 array(&$this, 'render_settings_field'), 196 __FILE__, 197 $first_section, 198 array( 199 "key" => "user_tracking" 200 ) 201 ); 191 202 192 203 add_settings_field("position_right", 'Right', array(&$this, 'render_settings_field'), __FILE__, $first_section, array( … … 253 264 $value . 254 265 "' />"; 266 break; 267 268 case 'user_tracking': 269 $html = '<input value="1" ' . ($value == "1" ? "checked" : "") . ' type="checkbox" ' . $default_attrs . ' />'; 255 270 break; 256 271 … … 462 477 $conf[$type] = ['style' => $stlye]; 463 478 479 if ($item['user_tracking']) { 480 $current_user = wp_get_current_user(); 481 if ($current_user->exists()) { 482 $conf['data'] = [ 483 "user_id" => $current_user->ID, 484 "user_name" => $current_user->display_name, 485 "user_email" => $current_user->user_email, 486 "user_login" => $current_user->user_login 487 ]; 488 } 489 } 490 464 491 if ($item['selector'] == "0" && $item['selector_manual']) { 465 492 $conf['selector'] = $item['selector_manual']; -
announcekit/trunk/readme.txt
r2116108 r2122496 4 4 Requires at least: 4.1 5 5 Tested up to: 5.2.1 6 Stable tag: 1. 26 Stable tag: 1.3 7 7 Requires PHP: 5.2.4 8 8 License: GNUGPLv3 … … 33 33 == Changelog == 34 34 35 = 1.3 = 36 * Support for user tracking 37 35 38 = 1.2 = 36 39 * Ability to set own element selector
Note: See TracChangeset
for help on using the changeset viewer.