Skip to content

Commit 4bc8cae

Browse files
committed
* Matomo 4 compatibility
* Fix spelling issue
1 parent 8f3101b commit 4bc8cae

6 files changed

Lines changed: 17 additions & 18 deletions

File tree

.travis.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
language: php
44

55
php:
6-
- 5.6
7-
- 5.3.3
8-
# - hhvm
6+
- 7.2.5
97

108
services:
119
- redis-server
@@ -20,11 +18,8 @@ env:
2018
- TEST_SUITE=PluginTests MYSQL_ADAPTER=PDO_MYSQL TEST_AGAINST_CORE=minimum_required_piwik
2119

2220
matrix:
23-
exclude:
24-
# execute latest stable tests only w/ PHP 5.5
25-
- php: 5.3.3
26-
env: TEST_SUITE=PluginTests MYSQL_ADAPTER=PDO_MYSQL TEST_AGAINST_CORE=minimum_required_piwik
27-
- php: 5.4
21+
exclude:
22+
- php: 7.2.5
2823
env: TEST_SUITE=PluginTests MYSQL_ADAPTER=PDO_MYSQL TEST_AGAINST_CORE=minimum_required_piwik
2924

3025
script: $PIWIK_ROOT_DIR/tests/travis/travis.sh

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22

3+
### CustomOptOut 2.0.0
4+
* Matomo 4 compatibility
5+
* Fix spelling issue
6+
37
### CustomOptOut 1.0.2, 1.0.3 (HotFix)
48
* (PR #53) CSS fix and libraries update
59
* Update [CodeMirror Editor](http://codemirror.net)

SystemSettings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Piwik\Piwik;
1212
use Piwik\Settings\FieldConfig;
1313
use Piwik\Settings\Setting;
14-
14+
use Piwik\Settings\Plugin\SystemSettings as BaseSettings;
1515
/**
1616
* Defines Settings for CustomOptOut.
1717
*
@@ -21,7 +21,7 @@
2121
* $settings->metric->getValue();
2222
*
2323
*/
24-
class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings
24+
class SystemSettings extends BaseSettings
2525
{
2626
/**
2727
* @var Setting

lang/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"EditorThemeOptionName" : "Editor Theme",
66
"EditorThemeDescription" : "Choose a theme for the editor.",
77
"DefaultCssStyles" : "Default Stylesheets",
8-
"DefaultCssStylesDescription": "This css styles will be used if no page is selected.",
8+
"DefaultCssStylesDescription": "This css style will be used if no page is selected.",
99
"DefaultCssFile": "Default Stylesheets file",
1010
"DefaultCssFileDescription": "This css file will be used if no page is selected.",
1111
"EnableJavascriptInjectionDescription": "Enable this option to show fields to enter javascript.",
12-
"EnableJavascriptInjection": "Enable Javascript fields"
12+
"EnableJavascriptInjection": "Enable Javascript fields"
1313
}
1414
}

plugin.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CustomOptOut",
3-
"version": "1.0.3",
3+
"version": "2.0.0",
44
"description": "Create your own opt-out iframe css styles",
55
"keywords": [
66
"Opt-Out",
@@ -10,8 +10,8 @@
1010
"license": "GPL-3.0+",
1111
"homepage": "https:\/\/www.zwei-entwickler.de",
1212
"require": {
13-
"piwik": ">=3.0.0-b1,<4.0.0-b1",
14-
"php": ">=5.5.9"
13+
"matomo": ">=4.0.0-b1,<5.0.0-b1",
14+
"php": ">=7.2.5"
1515
},
1616
"donate": {
1717
"paypal": "info@two-developers.com"

templates/index.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,20 @@
6161
{% endif %}
6262
<tr>
6363
<td colspan="5">
64-
{% set optOutUrl %}{% spaceless %}
64+
{% set optOutUrl %}
6565
{% if showOldLinks %}
6666
{{ piwikUrl }}index.php?module=CustomOptOut&action=optOut&idsite={{ site.idsite|escape('url') }}&language={{ language }}
6767
{% else %}
6868
{{ piwikUrl }}index.php?module=CoreAdminHome&action=optOut&idsite={{ site.idsite|escape('url') }}&language={{ language }}
6969
{% endif %}
70-
{% endspaceless %}{% endset %}
70+
{% endset %}
7171
{% set iframeOptOut %}
7272
<iframe style="border: 0; height: 200px; width: 600px;" src="{{ optOutUrl }}"></iframe>
7373
{% endset %}
7474

7575
<code>{{ iframeOptOut|escape }}</code>
7676
<br/>
77-
{{ 'CoreAdminHome_OptOutExplanationBis'|translate("<a href='" ~ optOutUrl ~ "' target='_blank'>","</a>")|raw }}
77+
{{ 'CoreAdminHome_OptOutExplanationIntro'|translate("<a href='" ~ optOutUrl ~ "' target='_blank'>","</a>")|raw }}
7878
</td>
7979
{% endfor %}
8080
</table>

0 commit comments

Comments
 (0)