Plugin Directory

Changeset 2094938


Ignore:
Timestamp:
05/25/2019 10:12:23 AM (7 years ago)
Author:
pusheco
Message:

Fix show modal option

Location:
pushe-webpush/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pushe-webpush/trunk/inc/base/BaseController.php

    r2094918 r2094938  
    1414    function __construct()
    1515    {
    16         $this->plugin_path = plugin_dir_path(dirname(__FILE__, 2));
    17         $this->plugin_url = plugin_dir_url(dirname(__FILE__, 2));
    18         $this->plugin =  plugin_basename(dirname(__FILE__, 3) . '/pushe-webpush.php');
     16        $this->plugin_path = plugin_dir_path(dirname(dirname(__FILE__)));
     17        $this->plugin_url = plugin_dir_url(dirname(dirname(__FILE__)));
     18        $this->plugin =  plugin_basename(dirname(dirname(dirname(__FILE__))) . '/pushe-webpush.php');
    1919    }
    2020}
  • pushe-webpush/trunk/inc/base/WebpushScripts.php

    r2094918 r2094938  
    4848        $appId = $this->getSettingValue('app_id');
    4949        $showDialog = $this->getModalOptionsValue('showDialog');
    50         $showDialog = isset($showDialog) ? $this->getModalOptionsValue('showDialog') : true;
     50        $showDialog = boolval($showDialog) ? 'true' : 'false';
    5151        $title = $this->getModalOptionsValue('title');
    5252        $content = $this->getModalOptionsValue('content');
  • pushe-webpush/trunk/pushe-webpush.php

    r2094918 r2094938  
    66 * Plugin Name: Pushe Webpush
    77 * Description: Official Pushe.co's webpush plugin for wordpress.
    8  * version: 0.2.0
     8 * version: 0.3.0
    99 * Author: pushe.co
    1010 * Author URI: https://pushe.co
  • pushe-webpush/trunk/readme.txt

    r2094918 r2094938  
    2020== changelog ==
    2121
     22== 0.3.0 ==
     23* Fix some minor bugs
     24* Fix modal options show dialog bug
     25
    2226= 0.2.0 =
    2327* Fix some minor bugs
Note: See TracChangeset for help on using the changeset viewer.