Version Description
- Dashboard widget daily order fixed
Download this release
Release Info
Developer | m_uysl |
Plugin | Yandex Metrica |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.1.1
- README.md +4 -1
- readme.txt +4 -1
- yandex-metrica.php +7 -3
README.md
CHANGED
@@ -4,7 +4,7 @@ Contributors: [m_uysl](https://github.com/mustafauysal/)
|
|
4 |
Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.1.1
|
7 |
-
Stable tag: 1.1
|
8 |
License: GPLv2 (or later)
|
9 |
|
10 |
Easy way to use Yandex Metrica in your WordPress site.
|
@@ -60,6 +60,9 @@ Extract the zip file and just drop the contents in the `wp-content/plugins/` dir
|
|
60 |
|
61 |
## Changelog ##
|
62 |
|
|
|
|
|
|
|
63 |
### 1.1 ###
|
64 |
- Dashboard widget UI improvements
|
65 |
- Bug fixes
|
4 |
Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.1.1
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 (or later)
|
9 |
|
10 |
Easy way to use Yandex Metrica in your WordPress site.
|
60 |
|
61 |
## Changelog ##
|
62 |
|
63 |
+
#### 1.1.1 ####
|
64 |
+
- Dashboard widget daily order fixed
|
65 |
+
|
66 |
### 1.1 ###
|
67 |
- Dashboard widget UI improvements
|
68 |
- Bug fixes
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: m_uysl
|
|
3 |
Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.1.1
|
6 |
-
Stable tag: 1.1
|
7 |
License: GPLv2 (or later)
|
8 |
|
9 |
Easy way to use Yandex Metrica in your WordPress site.
|
@@ -59,6 +59,9 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
62 |
= 1.1 =
|
63 |
- Dashboard widget UI improvements
|
64 |
- Bug fixes
|
3 |
Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.1.1
|
6 |
+
Stable tag: 1.1.1
|
7 |
License: GPLv2 (or later)
|
8 |
|
9 |
Easy way to use Yandex Metrica in your WordPress site.
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 1.1.1 =
|
63 |
+
- Dashboard widget daily order fixed
|
64 |
+
|
65 |
= 1.1 =
|
66 |
- Dashboard widget UI improvements
|
67 |
- Bug fixes
|
yandex-metrica.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Yandex Metrica
|
|
4 |
Plugin URI: http://uysalmustafa.com/plugins/yandex-metrica
|
5 |
Description: Best metrica plugin for the use Yandex Metrica in your WordPress site.
|
6 |
Author: Mustafa Uysal
|
7 |
-
Version: 1.1
|
8 |
Text Domain: yandex_metrica
|
9 |
Domain Path: /languages/
|
10 |
Author URI: http://uysalmustafa.com
|
@@ -199,8 +199,12 @@ class WP_Yandex_Metrica extends WP_Stack_Plugin {
|
|
199 |
|
200 |
public function dashboard_chart_js() {
|
201 |
wp_enqueue_script( 'jquery' );
|
202 |
-
$statical_data =
|
203 |
-
|
|
|
|
|
|
|
|
|
204 |
}
|
205 |
|
206 |
/**
|
4 |
Plugin URI: http://uysalmustafa.com/plugins/yandex-metrica
|
5 |
Description: Best metrica plugin for the use Yandex Metrica in your WordPress site.
|
6 |
Author: Mustafa Uysal
|
7 |
+
Version: 1.1.1
|
8 |
Text Domain: yandex_metrica
|
9 |
Domain Path: /languages/
|
10 |
Author URI: http://uysalmustafa.com
|
199 |
|
200 |
public function dashboard_chart_js() {
|
201 |
wp_enqueue_script( 'jquery' );
|
202 |
+
$statical_data = self::$metrica_api->get_counter_statistics( $this->options["counter_id"], $this->start_date, $this->end_date, "data" );
|
203 |
+
foreach ($statical_data as $key => $row) {
|
204 |
+
$days[$key] = $row['date'];
|
205 |
+
}
|
206 |
+
array_multisort($days, SORT_ASC, $statical_data);
|
207 |
+
include( dirname( __FILE__ ) . '/templates/dashboard-charts-js.php' );
|
208 |
}
|
209 |
|
210 |
/**
|