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:
authormattpiwik <matthieu.aubry@gmail.com>2011-05-27 06:28:29 +0400
committermattpiwik <matthieu.aubry@gmail.com>2011-05-27 06:28:29 +0400
commita08f19d81e1f8cf059c57841cc381a21aeb8c8c2 (patch)
tree2cf9dd34f85b032abd00471d9df7552d214af63a /plugins/Login
parent20ba9b6cbab2dbcdcc87a8e1d1a941c85ec420a6 (diff)
Refs #2008
* When custom logo, don't link the logo on login screen to piwik.org - add credits in footer, very discreet as to maximise the branding experience while still crediting us git-svn-id: http://dev.piwik.org/svn/trunk@4820 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Login')
-rw-r--r--plugins/Login/templates/header.tpl12
-rw-r--r--plugins/Login/templates/login.css5
-rw-r--r--plugins/Login/templates/login.tpl7
3 files changed, 19 insertions, 5 deletions
diff --git a/plugins/Login/templates/header.tpl b/plugins/Login/templates/header.tpl
index 90d18ed16e..bae192ca6a 100644
--- a/plugins/Login/templates/header.tpl
+++ b/plugins/Login/templates/header.tpl
@@ -56,8 +56,12 @@
{/if}
{include file="default/ie6.tpl"}
<div id="logo">
- <a href="http://piwik.org" title="{$linkTitle}">
- <img src='{$logoLarge}' width='200' style='margin-right:20px'>
- <div class="description"># {$linkTitle}</div>
- </a>
+ {if !$isCustomLogo}<a href="http://piwik.org" title="{$linkTitle}">{/if}
+ <img src='{$logoLarge}' title="{$linkTitle}" width='200' style='margin-right:20px'>
+ {if !$isCustomLogo}<div class="description"># {$linkTitle}</div>
+ {else}{capture name='poweredByPiwik'}
+ <i><a href="http://piwik.org/" target="_blank">{$linkTitle}</a></i>
+ {/capture}
+ {/if}
+ {if !$isCustomLogo}</a>{/if}
</div>
diff --git a/plugins/Login/templates/login.css b/plugins/Login/templates/login.css
index b3e38f35d4..78b6d508be 100644
--- a/plugins/Login/templates/login.css
+++ b/plugins/Login/templates/login.css
@@ -66,7 +66,7 @@ form p {
padding: 12px;
}
-#nav {
+#nav, #piwik {
margin: 0 0 0 8px;
padding: 16px;
}
@@ -117,6 +117,9 @@ form p {
.login #nav a {
color: #777;
}
+.login #piwik a {
+ color: #CDCDCD;
+}
body.login {
border-top-color: #464646;
diff --git a/plugins/Login/templates/login.tpl b/plugins/Login/templates/login.tpl
index 7e781f8625..fb0b93e58b 100644
--- a/plugins/Login/templates/login.tpl
+++ b/plugins/Login/templates/login.tpl
@@ -36,8 +36,15 @@
<p id="nav">
<a href="index.php?module=Login&amp;action=lostPassword" title="{'Login_LostYourPassword'|translate}">{'Login_LostYourPassword'|translate}</a>
</p>
+{if isset($smarty.capture.poweredByPiwik)}
+ <p id="piwik">
+ {$smarty.capture.poweredByPiwik}
+ </p>
+{/if}
+
</div>
+
</body>
</html>