Changeset 2102728
- Timestamp:
- 06/08/2019 04:24:13 PM (7 years ago)
- Location:
- announcekit/trunk
- Files:
-
- 2 edited
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
announcekit/trunk/index.php
r2100965 r2102728 5 5 * Plugin URI: https://announcekit.app/docs 6 6 * Description: Beautifully designed newsfeed powered with fancy widgets and email notifications. 7 * Version: 1. 0.07 * Version: 1.1 8 8 * Text Domain: announcekit 9 9 * Author: AnnounceKit … … 442 442 } 443 443 444 $conf['selector'] = $item['selector'] ? " .menu-item-" . $item['selector']: null;444 $conf['selector'] = $item['selector'] ? "XXXSELECTORXXX" : null; 445 445 $conf['widget'] = $item['widget_url']; 446 446 $conf[$type] = ['style' => $stlye]; 447 447 448 $widgets .= 'window.announcekit.push(' . json_encode(array_filter((array) $conf), JSON_UNESCAPED_SLASHES) . ');'; 448 $js = json_encode(array_filter((array) $conf), JSON_UNESCAPED_SLASHES); 449 450 if ($conf['selector']) { 451 $js = str_replace( 452 '"XXXSELECTORXXX"', 453 "'.' + (document.querySelector('.menu-item-" . 454 $item['selector'] . 455 "') || document.querySelector('.ak-man')).getAttribute('class').replace(/ /g, '.')", 456 $js 457 ); 458 } 459 460 $widgets .= 'window.announcekit.push(' . $js . ');'; 449 461 } 450 462 -
announcekit/trunk/readme.txt
r2100965 r2102728 4 4 Requires at least: 4.1 5 5 Tested up to: 5.2.1 6 Stable tag: 1. 0.06 Stable tag: 1.1 7 7 Requires PHP: 5.2.4 8 8 License: GNUGPLv3 … … 33 33 == Changelog == 34 34 35 = 1.1 = 36 * Bug fixes 37 35 38 = 1.0 = 36 39 * First release
Note: See TracChangeset
for help on using the changeset viewer.