Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2018-08-06 17:16:51 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2018-08-06 17:16:51 +0300
commit325b38d1179cd213c6217470d4cefd09836d5dd5 (patch)
tree97858e6585b60c11e3291b17b56276a1e752671c /plugins/ExampleTheme
parentccff21200988e3ff72c8dcb1d09acdf47560a537 (diff)
email theming improvements (#13250)
* Move email/theme style variables to classes and generate LESS based on those. * Fix uses of email/theme styles. * Remove debugging code.
Diffstat (limited to 'plugins/ExampleTheme')
-rw-r--r--plugins/ExampleTheme/ExampleTheme.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/ExampleTheme/ExampleTheme.php b/plugins/ExampleTheme/ExampleTheme.php
index b2312b8e92..0ca5b8fcf7 100644
--- a/plugins/ExampleTheme/ExampleTheme.php
+++ b/plugins/ExampleTheme/ExampleTheme.php
@@ -9,7 +9,6 @@
namespace Piwik\Plugins\ExampleTheme;
-
use Piwik\Plugin;
class ExampleTheme extends Plugin
@@ -17,15 +16,15 @@ class ExampleTheme extends Plugin
public function getListHooksRegistered()
{
return [
- 'Emails.setThemeVariables' => 'setEmailThemeVariables',
+ 'Theme.configureThemeVariables' => 'configureThemeVariables',
];
}
- public function setEmailThemeVariables(&$vars)
+ public function configureThemeVariables(Plugin\ThemeStyles $vars)
{
- $vars['themeFontFamilyBase'] = 'Arial, Verdana, sans-serif';
- $vars['themeColorBrand'] = '#5793d4';
- $vars['themeColorHeaderBackground'] = '#0091ea';
- $vars['themeColorHeaderText'] = '#0d0d0d';
+ $vars->fontFamilyBase = 'Arial, Verdana, sans-serif';
+ $vars->colorBrand = '#5793d4';
+ $vars->colorHeaderBackground = '#0091ea';
+ $vars->colorHeaderText = '#0d0d0d';
}
}