custom report WIP, declared a 1.0.0 version

This commit is contained in:
Alexander Yakovlev 2018-12-06 22:28:59 +07:00
parent fa6c8be2ca
commit 59de8336d1
10 changed files with 296 additions and 166 deletions

38
API.php Normal file
View File

@ -0,0 +1,38 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\ClickHeat;
use Piwik\DataTable;
use Piwik\DataTable\Row;
/**
* API for plugin ClickHeat
*
* @method static \Piwik\Plugins\ClickHeat\API getInstance()
*/
class API extends \Piwik\Plugin\API
{
/**
* Another example method that returns a data table.
* @param int $idSite
* @param string $period
* @param string $date
* @param bool|string $segment
* @return DataTable
*/
public function getClickHeatmap($idSite, $period, $date, $segment = false)
{
$table = new DataTable();
$table->addRowFromArray(array(Row::COLUMNS => array('nb_visits' => 5)));
return $table;
}
}

View File

@ -9,3 +9,4 @@
* rename clickheat.php to clickheat_config.php (Windows mixes up ClickHeat.php with clickheat.php)
* 0.1.7 fixed bug
* 0.1.9 fixed bug
* 1.0.0 Matomo 3.7 upgrade

View File

@ -13,23 +13,24 @@
namespace Piwik\Plugins\ClickHeat;
use Piwik\Config;
require_once "clickheat_config.php";
class ClickHeat extends \Piwik\Plugin
{
function install()
{
{
global $clickheatConf;
/** Create main cache paths */
$dir = PIWIK_INCLUDE_PATH.'/tmp/cache/clickheat/';
if (!is_dir($dir.'logs'))
$logPath = $clickheatConf['logPath'];
$cachePath = $clickheatConf['cachePath'];
if (!is_dir($logPath))
{
mkdir($dir.'logs', 0777, true);
mkdir($logPath, 0777, true);
}
if (!is_dir($dir.'cache'))
if (!is_dir($cachePath))
{
mkdir($dir.'cache', 0777, true);
}
$htaccess = PIWIK_INCLUDE_PATH.'/plugins/ClickHeat/dot_htaccess';
if (file_exists($htaccess)) {
copy($htaccess, PIWIK_INCLUDE_PATH.'/plugins/ClickHeat/.htaccess');
mkdir($cachePath, 0777, true);
}
}
}

19
Reports/Base.php Normal file
View File

@ -0,0 +1,19 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\ClickHeat\Reports;
use Piwik\Plugin\Report;
abstract class Base extends Report
{
protected function init()
{
$this->categoryId = 'General_Visitors';
}
}

101
Reports/GetClickHeatmap.php Normal file
View File

@ -0,0 +1,101 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\ClickHeat\Reports;
use Piwik\Piwik;
use Piwik\Plugin\Report;
use Piwik\Plugin\ViewDataTable;
use Piwik\View;
/**
* This class defines a new report.
*
* See {@link http://developer.piwik.org/api-reference/Piwik/Plugin/Report} for more information.
*/
class GetClickHeatmap extends Base
{
protected function init()
{
parent::init();
$this->name = Piwik::translate('ClickHeat_ClickHeatmap');
$this->dimension = null;
$this->documentation = Piwik::translate('');
// This defines in which order your report appears in the mobile app, in the menu and in the list of widgets
$this->order = 41;
// By default standard metrics are defined but you can customize them by defining an array of metric names
// $this->metrics = array('nb_visits', 'nb_hits');
// Uncomment the next line if your report does not contain any processed metrics, otherwise default
// processed metrics will be assigned
// $this->processedMetrics = array();
// Uncomment the next line if your report defines goal metrics
// $this->hasGoalMetrics = true;
// Uncomment the next line if your report should be able to load subtables. You can define any action here
// $this->actionToLoadSubTables = $this->action;
// Uncomment the next line if your report always returns a constant count of rows, for instance always
// 24 rows for 1-24hours
// $this->constantRowsCount = true;
// If a subcategory is specified, the report will be displayed in the menu under this menu item
// $this->subcategoryId = 'ClickHeat_ClickHeatmap';
}
/**
* Here you can configure how your report should be displayed. For instance whether your report supports a search
* etc. You can also change the default request config. For instance change how many rows are displayed by default.
*
* @param ViewDataTable $view
*/
public function configureView(ViewDataTable $view)
{
if (!empty($this->dimension)) {
$view->config->addTranslations(array('label' => $this->dimension->getName()));
}
// $view->config->show_search = false;
// $view->requestConfig->filter_sort_column = 'nb_visits';
// $view->requestConfig->filter_limit = 10';
$view->config->columns_to_display = array_merge(array('label'), $this->metrics);
}
/**
* Here you can define related reports that will be shown below the reports. Just return an array of related
* report instances if there are any.
*
* @return \Piwik\Plugin\Report[]
*/
public function getRelatedReports()
{
return array(); // eg return array(new XyzReport());
}
/**
* A report is usually completely automatically rendered for you but you can render the report completely
* customized if you wish. Just overwrite the method and make sure to return a string containing the content of the
* report. Don't forget to create the defined twig template within the templates folder of your plugin in order to
* make it work. Usually you should NOT have to overwrite this render method.
*
* @return string
public function render()
{
$view = new View('@ClickHeat/getClickHeatmap');
$view->myData = array();
return $view->render();
}
*/
}

View File

@ -1 +0,0 @@
0.1.9

View File

@ -1,35 +0,0 @@
<?php
/**
* ClickHeat - Clicks' heatmap
*
* @link http://www.dugwood.com/clickheat/index.html
* @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
* @version $Id$
*
* @package Piwik\Plugins\ClickHeat
*/
namespace Piwik\Plugins\ClickHeat;
use Piwik\Config;
class ClickHeat extends \Piwik\Plugin
{
function install()
{
/** Create main cache paths */
$dir = PIWIK_INCLUDE_PATH.'/tmp/cache/clickheat/';
if (!is_dir($dir.'logs'))
{
mkdir($dir.'logs', 0777, true);
}
if (!is_dir($dir.'cache'))
{
mkdir($dir.'cache', 0777, true);
}
$htaccess = PIWIK_INCLUDE_PATH.'/plugins/ClickHeat/dot_htaccess';
if (file_exists($htaccess)) {
copy($htaccess, PIWIK_INCLUDE_PATH.'/plugins/ClickHeat/.htaccess');
}
}
}

View File

@ -1,116 +1,116 @@
{
"ClickHeat": {
"LANG_USER" : "User",
"LANG_PASSWORD" : "Password",
"LANG_LOGIN" : "Login",
"LANG_LOGIN_ERROR" : "Login error, wrong user or password",
"LANG_LOGOUT" : "Logout",
"LANG_UNKNOWN_DIR" : "Can't define current directory, please contact us",
"LANG_DAYS" : "M,T,W,T,F,S,S",
"LANG_RANGE" : "Day,Week,Month",
"LANG_MONTHS" : "0,January,February,March,April,May,June,July,August,September,October,November,December",
"LANG_SITE" : "Website",
"LANG_GROUP" : "Group",
"LANG_BROWSER" : "Browser",
"LANG_ALL" : "All",
"LANG_UNKNOWN" : "Other/unknown",
"LANG_EXAMPLE_URL" : "Webpage",
"LANG_LAYOUT" : "Group's layout",
"LANG_LAYOUT_FIXED" : "Fixed content/menu",
"LANG_LAYOUT_LIQUID" : "Liquid content/menu (automatic adjusting to available space)",
"LANG_LAYOUT_NONE" : "Margin (no content), liquid",
"LANG_LAYOUT_0" : "Liquid content and menu",
"LANG_LAYOUT_1" : "Fixed left menu, liquid content",
"LANG_LAYOUT_2" : "Fixed centered content (automatic left and right margins)",
"LANG_LAYOUT_3" : "Fixed content stuck to the left (automatic right margin)",
"LANG_LAYOUT_4" : "Fixed right menu, liquid content",
"LANG_LAYOUT_5" : "Fixed left and right menus, liquid content",
"LANG_LAYOUT_6" : "Fixed content stuck to the right (automatic left margin)",
"LANG_LAYOUT_LEFT" : "Fixed left width (pixels)",
"LANG_LAYOUT_CENTER" : "Fixed central width (pixels)",
"LANG_LAYOUT_RIGHT" : "Fixed right width (pixels)",
"LANG_SCREENSIZE" : "Screen size",
"LANG_HEATMAP" : "Heatmap and its transparency",
"LANG_LATEST_CHECK" : "Upgrade",
"LANG_LATEST_KO" : "Can't find dynamically the latest available version, yours is %s, the latest one read directly from Dugwood's website is",
"LANG_LATEST_OK" : "You have the latest available version (%s)",
"LANG_LATEST_NO" : "Your version (%s) isn't the latest available one (%s). You can download the latest one on our website:",
"LANG_LOG_MY_CLICKS" : "Log my clicks?",
"LANG_JAVASCRIPT_ADMIN_COOKIE" : "In order to avoid pollution of your statistics,\\nyou can choose not to log your own clicks\\n\\nOK = log my clicks\\nCancel = don't log my clicks",
"LANG_JAVASCRIPT" : "Javascript code to be pasted on pages you want to study",
"LANG_JAVASCRIPT_IMAGE" : "Show ClickHeat logo on the studied page: ",
"LANG_JAVASCRIPT_SHORT" : "Compact code (3 lines only)",
"LANG_JAVASCRIPT_QUOTA" : "Maximum clicks per page and visitor, next clicks won't be saved (0 = no limit, 3 is a good choice)",
"LANG_JAVASCRIPT_SITE" : "Website name (allowed characters: A-Z, a-z, 0-9, underscore, hyphen, dot)",
"LANG_JAVASCRIPT_GROUP" : "Group name, to group similar pages for a simpler analysis",
"LANG_JAVASCRIPT_GROUP0" : "use a keyword",
"LANG_JAVASCRIPT_GROUP1" : "allowed characters: A-Z, a-z, 0-9, underscore, hyphen, dot",
"LANG_JAVASCRIPT_GROUP2" : "use webpage's title (<a href=\"http://www.Dugwood.com/clickheat/performance.html\" onclick=\"window.open(this.href, 'external',return false\">not recommended</a>)",
"LANG_JAVASCRIPT_GROUP3" : "use webpage's URL (<a href=\"http://www.Dugwood.com/clickheat/performance.html\" onclick=\"window.open(this.href, 'external',return false\">not recommended</a>)",
"LANG_JAVASCRIPT_PASTE" : "Copy and paste the code below on your pages, just before the end of the page (before &lt;/body&gt; tag):",
"LANG_JAVASCRIPT_DEBUG" : "Once the code pasted on your pages, don't forget to test if the code works correctly, by calling your page with the parameter <span class=\"error\">debugclickheat</span>. For example for http://www.site.com/index.html call http://www.site.com/index.html<span class=\"error\">?debugclickheat</span>. You should see a message showing the state of Clickheat. If you encounter any problem, feel free to contact us",
"LANG_NO_CLICK_BELOW" : "Leave below this line in English please",
"LANG_NO_CLICK_BELOW" : "No clicks recorded beneath this line",
"LANG_ERROR_GROUP" : "Unknown group. _JAVASCRIPT_",
"LANG_ERROR_DATA" : "No logs for the selected period (first think removing filters: browser, screensize). _JAVASCRIPT_",
"LANG_ERROR_JAVASCRIPT" : "Did you correctly installed Javascript code on your webpages?",
"LANG_ERROR_FILE" : "Can't open log file",
"LANG_ERROR_SCREEN" : "Non-standard screen size",
"LANG_ERROR_LOADING" : "Generating image, please wait...",
"LANG_ERROR_FIXED" : "All widths are fixed, that is not possible. Please change one of your layout width above.",
"LANG_DEFAULT" : "default",
"LANG_CHECKS" : "Preliminary checks",
"LANG_CHECK_WRITABLE" : "Write permissions in configuration directory",
"LANG_CHECK_NOT_WRITABLE" : "PHP hasn't got write permission in the configuration directory",
"LANG_CHECK_GD" : "GD graphic library",
"LANG_CHECK_GD_IMG" : "imagecreatetruecolor() unavailable, can't create images (with good quality), check that GD is installed",
"LANG_CHECK_GD_ALPHA" : "imagecolorallocatealpha() unavailable, can't create transparent images (you can ignore this, but transparency is really recommended)",
"LANG_CHECK_GD_PNG" : "imagepng() unavailable, can't create PNG images, sorry",
"LANG_CHECKS_OK" : "Next step: configuration",
"LANG_CHECKS_KO" : "One or more tests have failed. Please correct problems and refresh this page.",
"LANG_CONFIG" : "Configuration",
"LANG_CONFIG_HEADER_HEATMAP" : "Heatmap rendering",
"LANG_CONFIG_HEADER_DISPLAY" : "Main display",
"LANG_CONFIG_HEADER_SECURITY" : "Security",
"LANG_CONFIG_HEADER_LOGIN" : "Login parameters",
"LANG_CONFIG_LOGPATH" : "Logfiles' directory",
"LANG_CONFIG_LOGPATH_DIR" : "Logfiles directory doesn't exist. Please create it",
"LANG_CONFIG_LOGPATH_KO" : "Logfiles directory doesn't have write permissions, please give it write permission for PHP user",
"LANG_CONFIG_CACHEPATH" : "Temporary files directory",
"LANG_CONFIG_CACHEPATH_DIR" : "Temporary files directory doesn't exist. Please create it",
"LANG_CONFIG_CACHEPATH_KO" : "Temporary files directory doesn't have write permissions, please give it write permission for PHP user",
"LANG_CONFIG_REFERERS" : "Domain names (separated by commas) allowed to log clicks on this server",
"LANG_CONFIG_GROUPS" : "Group names (separated by commas) allowed to log clicks on this server",
"LANG_CONFIG_FILESIZE" : "Maximum logfile size (in KB) of a group over a day (1000 clicks are about 25KB, 0 = no size limit)",
"LANG_CONFIG_CHECK" : "Check configuration",
"LANG_CONFIG_MEMORY" : "Memory limit (default php.ini value: %dMB, limits: from %d to %dMB, but <a href=\"http://www.Dugwood.com/clickheat/performance.html\" onclick=\"window.open(this.href, 'external',return false\">be careful with high values</a>)",
"LANG_CONFIG_MEMORY_KO" : "please stay in the specified range",
"LANG_CONFIG_STEP" : "Clicks grouping by X*X pixels' zones (speed up display of heatmaps)",
"LANG_CONFIG_STEP_KO" : "zones can't be under 1x1 pixels",
"LANG_CONFIG_DOT" : "Heatmaps' dot size (pixels)",
"LANG_CONFIG_DOT_KO" : "dot size can't be zero",
"LANG_CONFIG_PALETTE" : "If you see red squares on heatmaps check this box",
"LANG_CONFIG_HEATMAP" : "Show heatmap (rather than clicks' map)",
"LANG_CONFIG_FLASHES" : "Hide &lt;Flash&gt; objects",
"LANG_CONFIG_IFRAMES" : "Hide &lt;iframe&gt; frames",
"LANG_CONFIG_YESTERDAY" : "Show yesterday statistics at start (rather than today)",
"LANG_CONFIG_ALPHA" : "Transparency level (0 => 100)",
"LANG_CONFIG_FLUSH" : "Automatic flush of statistics older than X days (0 = keep all files, not recommended)",
"LANG_CONFIG_START" : "First day of week",
"LANG_CONFIG_START_M" : "Monday",
"LANG_CONFIG_START_S" : "Sunday",
"LANG_CONFIG_ADMIN_LOGIN" : "Administrator's identifier",
"LANG_CONFIG_ADMIN_PASS" : "Administrator's password (enter it twice)",
"LANG_CONFIG_VIEWER_LOGIN" : "Visitor's identifier (if empty, account is disabled)",
"LANG_CONFIG_VIEWER_PASS" : "Visitor's password (enter it twice)",
"LANG_CONFIG_LOGIN" : "identifier must be at least 4 characters",
"LANG_CONFIG_PASS" : "password is empty",
"LANG_CONFIG_MATCH" : "passwords don't match",
"LANG_CONFIG_SAVE" : "Save configuration",
"LANG_CLEANER_RUNNING" : "Cleaning in progress...",
"LANG_CLEANER_RUN" : "Cleaning finished: %d files and %d directories have been deleted",
"LANG_CANCEL" : "Cancel",
"LANG_UPGRADE" : "Upgrade",
"LANG_UPGRADE_NEXT" : "Check your configuration, then save it to finish upgrade"
}
"ClickHeat": {
"LANG_USER": "User",
"LANG_PASSWORD": "Password",
"LANG_LOGIN": "Login",
"LANG_LOGIN_ERROR": "Login error, wrong user or password",
"LANG_LOGOUT": "Logout",
"LANG_UNKNOWN_DIR": "Can't define current directory, please contact us",
"LANG_DAYS": "M,T,W,T,F,S,S",
"LANG_RANGE": "Day,Week,Month",
"LANG_MONTHS": "0,January,February,March,April,May,June,July,August,September,October,November,December",
"LANG_SITE": "Website",
"LANG_GROUP": "Group",
"LANG_BROWSER": "Browser",
"LANG_ALL": "All",
"LANG_UNKNOWN": "Other\/unknown",
"LANG_EXAMPLE_URL": "Webpage",
"LANG_LAYOUT": "Group's layout",
"LANG_LAYOUT_FIXED": "Fixed content\/menu",
"LANG_LAYOUT_LIQUID": "Liquid content\/menu (automatic adjusting to available space)",
"LANG_LAYOUT_NONE": "Margin (no content), liquid",
"LANG_LAYOUT_0": "Liquid content and menu",
"LANG_LAYOUT_1": "Fixed left menu, liquid content",
"LANG_LAYOUT_2": "Fixed centered content (automatic left and right margins)",
"LANG_LAYOUT_3": "Fixed content stuck to the left (automatic right margin)",
"LANG_LAYOUT_4": "Fixed right menu, liquid content",
"LANG_LAYOUT_5": "Fixed left and right menus, liquid content",
"LANG_LAYOUT_6": "Fixed content stuck to the right (automatic left margin)",
"LANG_LAYOUT_LEFT": "Fixed left width (pixels)",
"LANG_LAYOUT_CENTER": "Fixed central width (pixels)",
"LANG_LAYOUT_RIGHT": "Fixed right width (pixels)",
"LANG_SCREENSIZE": "Screen size",
"LANG_HEATMAP": "Heatmap and its transparency",
"LANG_LATEST_CHECK": "Upgrade",
"LANG_LATEST_KO": "Can't find dynamically the latest available version, yours is %s, the latest one read directly from Dugwood's website is",
"LANG_LATEST_OK": "You have the latest available version (%s)",
"LANG_LATEST_NO": "Your version (%s) isn't the latest available one (%s). You can download the latest one on our website:",
"LANG_LOG_MY_CLICKS": "Log my clicks?",
"LANG_JAVASCRIPT_ADMIN_COOKIE": "In order to avoid pollution of your statistics,\\nyou can choose not to log your own clicks\\n\\nOK = log my clicks\\nCancel = don't log my clicks",
"LANG_JAVASCRIPT": "Javascript code to be pasted on pages you want to study",
"LANG_JAVASCRIPT_IMAGE": "Show ClickHeat logo on the studied page: ",
"LANG_JAVASCRIPT_SHORT": "Compact code (3 lines only)",
"LANG_JAVASCRIPT_QUOTA": "Maximum clicks per page and visitor, next clicks won't be saved (0 = no limit, 3 is a good choice)",
"LANG_JAVASCRIPT_SITE": "Website name (allowed characters: A-Z, a-z, 0-9, underscore, hyphen, dot)",
"LANG_JAVASCRIPT_GROUP": "Group name, to group similar pages for a simpler analysis",
"LANG_JAVASCRIPT_GROUP0": "use a keyword",
"LANG_JAVASCRIPT_GROUP1": "allowed characters: A-Z, a-z, 0-9, underscore, hyphen, dot",
"LANG_JAVASCRIPT_GROUP2": "use webpage's title (<a href=\"http:\/\/www.Dugwood.com\/clickheat\/performance.html\" onclick=\"window.open(this.href, 'external',return false\">not recommended<\/a>)",
"LANG_JAVASCRIPT_GROUP3": "use webpage's URL (<a href=\"http:\/\/www.Dugwood.com\/clickheat\/performance.html\" onclick=\"window.open(this.href, 'external',return false\">not recommended<\/a>)",
"LANG_JAVASCRIPT_PASTE": "Copy and paste the code below on your pages, just before the end of the page (before &lt;\/body&gt; tag):",
"LANG_JAVASCRIPT_DEBUG": "Once the code pasted on your pages, don't forget to test if the code works correctly, by calling your page with the parameter <span class=\"error\">debugclickheat<\/span>. For example for http:\/\/www.site.com\/index.html call http:\/\/www.site.com\/index.html<span class=\"error\">?debugclickheat<\/span>. You should see a message showing the state of Clickheat. If you encounter any problem, feel free to contact us",
"LANG_NO_CLICK_BELOW": "No clicks recorded beneath this line",
"LANG_ERROR_GROUP": "Unknown group. _JAVASCRIPT_",
"LANG_ERROR_DATA": "No logs for the selected period (first think removing filters: browser, screensize). _JAVASCRIPT_",
"LANG_ERROR_JAVASCRIPT": "Did you correctly installed Javascript code on your webpages?",
"LANG_ERROR_FILE": "Can't open log file",
"LANG_ERROR_SCREEN": "Non-standard screen size",
"LANG_ERROR_LOADING": "Generating image, please wait...",
"LANG_ERROR_FIXED": "All widths are fixed, that is not possible. Please change one of your layout width above.",
"LANG_DEFAULT": "default",
"LANG_CHECKS": "Preliminary checks",
"LANG_CHECK_WRITABLE": "Write permissions in configuration directory",
"LANG_CHECK_NOT_WRITABLE": "PHP hasn't got write permission in the configuration directory",
"LANG_CHECK_GD": "GD graphic library",
"LANG_CHECK_GD_IMG": "imagecreatetruecolor() unavailable, can't create images (with good quality), check that GD\u00a0is installed",
"LANG_CHECK_GD_ALPHA": "imagecolorallocatealpha() unavailable, can't create transparent images (you can ignore this, but transparency is really recommended)",
"LANG_CHECK_GD_PNG": "imagepng() unavailable, can't create PNG\u00a0images, sorry",
"LANG_CHECKS_OK": "Next step: configuration",
"LANG_CHECKS_KO": "One or more tests have failed. Please correct problems and refresh this page.",
"LANG_CONFIG": "Configuration",
"LANG_CONFIG_HEADER_HEATMAP": "Heatmap rendering",
"LANG_CONFIG_HEADER_DISPLAY": "Main display",
"LANG_CONFIG_HEADER_SECURITY": "Security",
"LANG_CONFIG_HEADER_LOGIN": "Login parameters",
"LANG_CONFIG_LOGPATH": "Logfiles' directory",
"LANG_CONFIG_LOGPATH_DIR": "Logfiles directory doesn't exist. Please create it",
"LANG_CONFIG_LOGPATH_KO": "Logfiles directory doesn't have write permissions, please give it write permission for PHP user",
"LANG_CONFIG_CACHEPATH": "Temporary files directory",
"LANG_CONFIG_CACHEPATH_DIR": "Temporary files directory doesn't exist. Please create it",
"LANG_CONFIG_CACHEPATH_KO": "Temporary files directory doesn't have write permissions, please give it write permission for PHP user",
"LANG_CONFIG_REFERERS": "Domain names (separated by commas) allowed to log clicks on this server",
"LANG_CONFIG_GROUPS": "Group names (separated by commas) allowed to log clicks on this server",
"LANG_CONFIG_FILESIZE": "Maximum logfile size (in KB) of a group over a day (1000 clicks are about 25KB, 0 = no size limit)",
"LANG_CONFIG_CHECK": "Check configuration",
"LANG_CONFIG_MEMORY": "Memory limit (default php.ini value: %dMB, limits: from %d to %dMB, but <a href=\"http:\/\/www.Dugwood.com\/clickheat\/performance.html\" onclick=\"window.open(this.href, 'external',return false\">be careful with high values<\/a>)",
"LANG_CONFIG_MEMORY_KO": "please stay in the specified range",
"LANG_CONFIG_STEP": "Clicks grouping by X*X pixels' zones (speed up display of heatmaps)",
"LANG_CONFIG_STEP_KO": "zones can't be under 1x1 pixels",
"LANG_CONFIG_DOT": "Heatmaps' dot size (pixels)",
"LANG_CONFIG_DOT_KO": "dot size can't be zero",
"LANG_CONFIG_PALETTE": "If you see red squares on heatmaps check this box",
"LANG_CONFIG_HEATMAP": "Show heatmap (rather than clicks' map)",
"LANG_CONFIG_FLASHES": "Hide &lt;Flash&gt; objects",
"LANG_CONFIG_IFRAMES": "Hide &lt;iframe&gt; frames",
"LANG_CONFIG_YESTERDAY": "Show yesterday statistics at start (rather than today)",
"LANG_CONFIG_ALPHA": "Transparency level (0 => 100)",
"LANG_CONFIG_FLUSH": "Automatic flush of statistics older than X days (0 = keep all files, not recommended)",
"LANG_CONFIG_START": "First day of week",
"LANG_CONFIG_START_M": "Monday",
"LANG_CONFIG_START_S": "Sunday",
"LANG_CONFIG_ADMIN_LOGIN": "Administrator's identifier",
"LANG_CONFIG_ADMIN_PASS": "Administrator's password (enter it twice)",
"LANG_CONFIG_VIEWER_LOGIN": "Visitor's identifier (if empty, account is disabled)",
"LANG_CONFIG_VIEWER_PASS": "Visitor's password (enter it twice)",
"LANG_CONFIG_LOGIN": "identifier must be at least 4 characters",
"LANG_CONFIG_PASS": "password is empty",
"LANG_CONFIG_MATCH": "passwords don't match",
"LANG_CONFIG_SAVE": "Save configuration",
"LANG_CLEANER_RUNNING": "Cleaning in progress...",
"LANG_CLEANER_RUN": "Cleaning finished: %d files and %d directories have been deleted",
"LANG_CANCEL": "Cancel",
"LANG_UPGRADE": "Upgrade",
"LANG_UPGRADE_NEXT": "Check your configuration, then save it to finish upgrade",
"ClickHeatmap": "Click Heatmap"
}
}

0
libs/click.php Executable file → Normal file
View File

View File

@ -1,24 +1,30 @@
{
"name": "ClickHeat",
"homepage": "http://piwikjapan.org",
"version": "0.1.9",
"homepage": "http:\/\/piwikjapan.org",
"version": "1.0.0",
"description": "ClickHeat is a visual heatmap of clicks on a HTML page. This plugin based on Dugwood's ClickHeat version 1.14. Plugin not consider IIS. Sorry.",
"theme": false,
"keywords": ["clickheat", "heatmap", "dugwood", "piwikjapan", "YAMAMOTO Takashi"],
"keywords": [
"clickheat",
"heatmap",
"dugwood",
"piwikjapan",
"YAMAMOTO Takashi"
],
"require": {
"piwik": ">=2.11.0"
"piwik": ">=3.7.0-stable,<4.0.0-b1"
},
"license": "GPLv3 or later",
"authors": [
{
"name": "Dugwood",
"email": "",
"homepage": "http://www.dugwood.com/clickheat/index.html"
"homepage": "http:\/\/www.dugwood.com\/clickheat\/index.html"
},
{
"name": "YAMAMOTO Takashi (PiwikJapan)",
"email": "yamachan@piwikjapan.org",
"homepage": "http://www.piwikjapan.org/"
"homepage": "http:\/\/www.piwikjapan.org\/"
}
],
"support": {