From 2615404eab2e96048583caccf86248af2dd90d9b Mon Sep 17 00:00:00 2001 From: Benaka Moorthi Date: Sun, 4 Aug 2013 18:46:23 -0400 Subject: Refs #4040, #4041, move visualization only view properties to separate visualizations, changed JavaScript properties to 'client side parameters' and 'overridable properties' to 'client side properties', changed keep_summary_row from a JavaScript property to a client side property, allowed visualization properties to be inherited, fixed system that allowed visualizations to set custom defaults for property values, modified behavior of datatable_css_class viewdatatable property, allow view properties to be customized in metadata based on the visualization used, and tweaks to UI Integration tests. --- core/Twig.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/Twig.php') diff --git a/core/Twig.php b/core/Twig.php index 5a316c65ce..f65825065b 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -73,6 +73,15 @@ class Twig $this->addFunction_loadJavascriptTranslations(); $this->addFunction_sparkline(); $this->addFunction_postEvent(); + $this->addFunction_isPluginLoaded(); + } + + protected function addFunction_isPluginLoaded() + { + $isPluginLoadedFunction = new Twig_SimpleFunction('isPluginLoaded', function ($pluginName) { + return PluginsManager::getInstance()->isPluginLoaded($pluginName); + }); + $this->twig->addFunction($isPluginLoadedFunction); } protected function addFunction_includeAssets() -- cgit v1.2.3 From b56ce034374aaf72807ba1e625be5c97fd2df1c8 Mon Sep 17 00:00:00 2001 From: Thomas ZILLIOX Date: Mon, 5 Aug 2013 19:07:53 +0200 Subject: Theme the sparklines, graph & transitions --- core/Twig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Twig.php') diff --git a/core/Twig.php b/core/Twig.php index 5a316c65ce..f8325a1ce5 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -33,7 +33,7 @@ use Twig_SimpleFunction; */ class Twig { - const SPARKLINE_TEMPLATE = ' + const SPARKLINE_TEMPLATE = ' '; /** -- cgit v1.2.3 From 7d670462a05ea6f66f0305614cf7177539188381 Mon Sep 17 00:00:00 2001 From: Thomas ZILLIOX Date: Fri, 9 Aug 2013 20:23:06 +0200 Subject: Activate sparklines colors to the MultiSites plugin --- core/Twig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Twig.php') diff --git a/core/Twig.php b/core/Twig.php index 4b32e4931c..a5a9cea40e 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -34,7 +34,7 @@ use Twig_SimpleFunction; class Twig { const SPARKLINE_TEMPLATE = ' - '; + '; /** * @var Twig_Environment -- cgit v1.2.3