Plugin Directory

Changeset 1674913


Ignore:
Timestamp:
06/09/2017 04:41:10 PM (9 years ago)
Author:
nepirity
Message:

Adding version 1.0.5 files

Location:
nepirity-analytics/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • nepirity-analytics/trunk/modules/admin.php

    r1673045 r1674913  
    103103        }
    104104
    105         NP()->views()->print_tab_page($group_name, $tabs);
     105        if (count($tabs)) {
     106            NP()->views()->print_tab_page($group_name, $tabs);
     107        }
    106108    }
    107109
  • nepirity-analytics/trunk/modules/settings.php

    r1673045 r1674913  
    112112    public function print_nepirity_summary() {
    113113        echo '<h3 class="title">'.np_translate("Nepirity Settings").'</h3>';
    114         echo '<p>'.np_translate("In order to use Nepirity Analysis Service, please enter your account information.").'</p>';
     114        echo '<p>';
     115        echo np_translate("License key to manage plug-in information.");
     116        echo '<br />';
     117        echo np_translate("Please click the update button below when the license information is modified.");
     118        echo '</p>';
    115119
    116120        echo '<form  method="post" enctype="multipart/form-data">';
     
    206210        }
    207211
     212        if (isset($option['value'])) {
     213            $value = $option['value'];
     214        }
     215
    208216        if ($type == 'textarea') {
    209217            return '<textarea class="large-text code" rows="6" name="'.$option['name'].'" id="'.$option['name'].'">'.$value.'</textarea>';
  • nepirity-analytics/trunk/modules/setup.php

    r1673045 r1674913  
    141141        $fields = NP()->settings()->get_nepirity_option_fields();
    142142
     143        for ($i=0; $i<count($fields); $i++) {
     144            if ($fields[$i]['name'] == Setting::FIELD_NEPIRITY_KEY) {
     145                $fields[$i]['desc'] = "";
     146                $fields[$i]['desc'] .= np_translate('Nepirity Key');
     147                $fields[$i]['desc'] .= " / ";
     148                $fields[$i]['desc'] .= np_translate('E-Mail');
     149
     150                $defualt_value = NP()->settings()->get_nepirity_key();
     151
     152                if ($defualt_value == '') {
     153                    $defualt_value = get_option('admin_email');
     154                }
     155
     156                $fields[$i]['value'] = $defualt_value;
     157            }
     158        }
     159
     160        $msg = "";
     161        $msg .= np_translate("Please, enter your Nepirity plugin key or E-mail address.");
     162        $msg .= "<br />";
     163        $msg .= np_translate("If you enter an email address, the account will be created automatically with the nepirity key.");
     164
    143165        self::print_wizard_pannel(self::get_wizard_title(np_translate("Nepirity Plugin Setting")),
    144             np_translate("Please, enter your Nepirity plugin key."), $fields, 'nepirity_setup');
     166            $msg, $fields, 'nepirity_setup');
    145167    }
    146168
     
    159181
    160182    private static function update_nepirity_setting() {
     183        if (isset($_POST[Setting::FIELD_NEPIRITY_KEY])) {
     184            $value = $_POST[Setting::FIELD_NEPIRITY_KEY];
     185
     186            if (filter_var($value, FILTER_VALIDATE_EMAIL)) {
     187                $_POST[Setting::FIELD_NEPIRITY_KEY]
     188                    = NP()->jsonrpc()->account()->retrieve_service_key($value, get_option("siteurl"));
     189            }
     190        }
    161191        self::update_settings(NP()->settings()->get_nepirity_option_fields());
    162192    }
  • nepirity-analytics/trunk/nepirity-analytics.php

    r1674112 r1674913  
    33Plugin Name: Nepirity Analytics
    44Description: Nepirity Analytics is a plugin that provides web traffic data analysis feature with data gathered from Google Analytics.
    5 Version:     1.0.4
     5Version:     1.0.5
    66Author:      Nepirity Corp.
    77Author URI:  https://www.nepirity.com/
  • nepirity-analytics/trunk/readme.txt

    r1674112 r1674913  
    55Requires at least: 4.6.5
    66Tested up to: 4.8
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62= 1.0.5 =
     63 - The installation wizard has been changed.
     64
    6265= 1.0.4 =
    6366- Tested in a new version of WordPress.
     
    7780
    7881== Upgrade Notice ==
    79 = 1.0.4 =
    80 Tested in a new version of WordPress.
     82= 1.0.5 =
     83The installation wizard has been changed.
  • nepirity-analytics/trunk/sdk/classes/libs/vendor/autoload.php

    r1666843 r1674913  
    55require_once __DIR__ . '/composer' . '/autoload_real.php';
    66
    7 return ComposerAutoloaderInit1141a84b0b426f824f9fa56339560405::getLoader();
     7return ComposerAutoloaderInita09a11f19ac3416d7c1f0ff2abf7e7ec::getLoader();
  • nepirity-analytics/trunk/sdk/classes/libs/vendor/composer/autoload_real.php

    r1666843 r1674913  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit1141a84b0b426f824f9fa56339560405
     5class ComposerAutoloaderInita09a11f19ac3416d7c1f0ff2abf7e7ec
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInit1141a84b0b426f824f9fa56339560405', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInita09a11f19ac3416d7c1f0ff2abf7e7ec', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit1141a84b0b426f824f9fa56339560405', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInita09a11f19ac3416d7c1f0ff2abf7e7ec', 'loadClassLoader'));
    2525
    2626        $map = require __DIR__ . '/autoload_namespaces.php';
Note: See TracChangeset for help on using the changeset viewer.