Plugin Directory

Changeset 2475667


Ignore:
Timestamp:
02/16/2021 03:13:19 PM (5 years ago)
Author:
restpack
Message:

minor

Location:
announcekit/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • announcekit/trunk/index.php

    r2475140 r2475667  
    55 * Plugin URI: https://announcekit.app/docs
    66 * Description: Beautifully designed newsfeed powered with fancy widgets and email notifications.
    7  * Version: 2.0.5
     7 * Version: 2.0.6
    88 * Text Domain: announcekit
    99 * Author: AnnounceKit
     
    232232    add_settings_field("selector", 'Attach to menu', array(&$this, 'render_settings_field'), __FILE__, $first_section, array(
    233233      "key" => "selector"
     234    ));
     235
     236    add_settings_field("position", 'Position', array(&$this, 'render_settings_field'), __FILE__, $first_section, array(
     237      "key" => "position"
    234238    ));
    235239  }
     
    299303        array_push($opts, array('label' => "Manual selector", "value" => '0'));
    300304
     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'));
    301310        $html = "<select class='form-control' " . $default_attrs . ">" . $this->render_option_tag($opts, $value) . "</select>";
    302311        break;
     
    459468      switch ($item['type']) {
    460469        case 'Badge / Line':
    461           $stlye['position'] = "absolute";
     470          $stlye['position'] = $item['position'] ? $item['position'] : "absolute";
    462471          $type = "badge";
    463472          break;
     
    540549    echo '
    541550    <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("") }
    543552      window.announcekit = (window.announcekit || { queue: [], on: function(n, x) { window.announcekit.queue.push([n, x]); }, push: function(x) { window.announcekit.queue.push(x); } });
    544553      ' .
  • announcekit/trunk/readme.txt

    r2475140 r2475667  
    44Requires at least: 4.1
    55Tested up to: 5.4
    6 Stable tag: 2.0.5
     6Stable tag: 2.0.6
    77Requires PHP: 5.2.4
    88License: GNUGPLv3
     
    5656== Changelog ==
    5757
     58= 2.0.6 =
     59* CSS tweaking stuff
     60
    5861= 2.0.4 =
    5962* Minor
Note: See TracChangeset for help on using the changeset viewer.