Changeset 2475667
- Timestamp:
- 02/16/2021 03:13:19 PM (5 years ago)
- Location:
- announcekit/trunk
- Files:
-
- 2 edited
-
index.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
announcekit/trunk/index.php
r2475140 r2475667 5 5 * Plugin URI: https://announcekit.app/docs 6 6 * Description: Beautifully designed newsfeed powered with fancy widgets and email notifications. 7 * Version: 2.0. 57 * Version: 2.0.6 8 8 * Text Domain: announcekit 9 9 * Author: AnnounceKit … … 232 232 add_settings_field("selector", 'Attach to menu', array(&$this, 'render_settings_field'), __FILE__, $first_section, array( 233 233 "key" => "selector" 234 )); 235 236 add_settings_field("position", 'Position', array(&$this, 'render_settings_field'), __FILE__, $first_section, array( 237 "key" => "position" 234 238 )); 235 239 } … … 299 303 array_push($opts, array('label' => "Manual selector", "value" => '0')); 300 304 305 $html = "<select class='form-control' " . $default_attrs . ">" . $this->render_option_tag($opts, $value) . "</select>"; 306 break; 307 308 case 'position': 309 $opts = array(array('value'=>'absolute', 'label'=>'absolute'), array('value'=>'relative', 'label'=>'relative'), array('value'=>'inherit', 'label'=>'inherit')); 301 310 $html = "<select class='form-control' " . $default_attrs . ">" . $this->render_option_tag($opts, $value) . "</select>"; 302 311 break; … … 459 468 switch ($item['type']) { 460 469 case 'Badge / Line': 461 $stlye['position'] = "absolute";470 $stlye['position'] = $item['position'] ? $item['position'] : "absolute"; 462 471 $type = "badge"; 463 472 break; … … 540 549 echo ' 541 550 <script type="text/javascript"> 542 function selPath(item) { var nodeName = item.nodeName.toLowerCase(); var id = item.getAttribute("id") ? "#" + item.getAttribute("id") : ""; var cl = [].slice.apply(item.classList);; cl.length ? cl.unshift("") : null; cl = cl.join("."); return [nodeName, id, cl].join("") }551 function selPath(item) { if(!item)return null; var nodeName = item.nodeName.toLowerCase(); var id = item.getAttribute("id") ? "#" + item.getAttribute("id") : ""; var cl = [].slice.apply(item.classList);; cl.length ? cl.unshift("") : null; cl = cl.join("."); return [nodeName, id, cl].join("") } 543 552 window.announcekit = (window.announcekit || { queue: [], on: function(n, x) { window.announcekit.queue.push([n, x]); }, push: function(x) { window.announcekit.queue.push(x); } }); 544 553 ' . -
announcekit/trunk/readme.txt
r2475140 r2475667 4 4 Requires at least: 4.1 5 5 Tested up to: 5.4 6 Stable tag: 2.0. 56 Stable tag: 2.0.6 7 7 Requires PHP: 5.2.4 8 8 License: GNUGPLv3 … … 56 56 == Changelog == 57 57 58 = 2.0.6 = 59 * CSS tweaking stuff 60 58 61 = 2.0.4 = 59 62 * Minor
Note: See TracChangeset
for help on using the changeset viewer.