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:
authorFabian Becker <halfdan@xnorfz.de>2013-02-26 03:00:35 +0400
committerFabian Becker <halfdan@xnorfz.de>2013-02-26 03:00:35 +0400
commitb7d1318e05751aa6e1d1c071f1e585736e566a36 (patch)
tree2012e070427c381d3f52ff7603ec3ce0f369a1b3 /plugins/Login
parente8594bba0fc8adefc2f831914584ed38ca29edcc (diff)
Two additional variables in Controller.php for the views.
Use SVG logo if available, for IE < 9 use png logo.
Diffstat (limited to 'plugins/Login')
-rw-r--r--plugins/Login/templates/header.tpl12
-rw-r--r--plugins/Login/templates/login.css5
2 files changed, 14 insertions, 3 deletions
diff --git a/plugins/Login/templates/header.tpl b/plugins/Login/templates/header.tpl
index 095dc7b8fc..6b27f66710 100644
--- a/plugins/Login/templates/header.tpl
+++ b/plugins/Login/templates/header.tpl
@@ -41,10 +41,16 @@
{include file="CoreHome/templates/iframe_buster_body.tpl"}
<div id="logo">
{if !$isCustomLogo}<a href="http://piwik.org" title="{$linkTitle}">{/if}
+ {if $hasSVGLogo}
+ <img src='{$logoSVG}' title="{$linkTitle}" alt="Piwik" width="240" style='margin-right: 20px' class="ie-hide" />
+ <!--[if lt IE 9]>
+ {/if}
<img src='{$logoLarge}' title="{$linkTitle}" alt="Piwik" width="240" style='margin-right:20px' />
- {if $isCustomLogo}{capture name='poweredByPiwik'}
- <i><a href="http://piwik.org/" target="_blank">{$linkTitle}</a></i>
- {/capture}
+ {if $hasSVGLogo}<![endif]-->{/if}
+ {if $isCustomLogo}
+ {capture name='poweredByPiwik'}
+ <i><a href="http://piwik.org/" target="_blank">{$linkTitle}</a></i>
+ {/capture}
{/if}
{if !$isCustomLogo}</a>
<div class="description"><a href="http://piwik.org" title="{$linkTitle}">{$linkTitle}</a>
diff --git a/plugins/Login/templates/login.css b/plugins/Login/templates/login.css
index 3234903f57..4aa60469a2 100644
--- a/plugins/Login/templates/login.css
+++ b/plugins/Login/templates/login.css
@@ -220,3 +220,8 @@ a {
float: left;
margin-left: 16px;
}
+
+/* IE < 9 will use this */
+html.old-ie .ie-hide {
+ display: none;
+}