diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-02-19 05:04:32 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-02-19 05:04:32 +0300 |
commit | 03dce19eecb4c17dd6f5ba937c1f0731cb5c97dd (patch) | |
tree | a186e0026d009665e3e950c74dc9043617159185 /plugins/CoreHome/templates/header_message.tpl | |
parent | 79c42e474759ae6bfdb106e77df6db09dc47d7c8 (diff) |
- adding an update check mechanism: once a day, piwik will check against api.piwik.org to check if a new piwik release is available. If a new release is available, the top right orange message will display: "Piwik 0.2.30 is available! Please update now (see changes)." with link to piwik.org/docs/update and piwik.org/changelog
- adding helper function to send http request with enforced timeout (to make sure that the piwik UI doesn't hang for 30 seconds when checking for a new release once a day, if piwik.org down)
- adding some installation strings that weren't in the translation file already
- adding two checkboxes during installation: register to piwik major & security releases newsletter, register for general piwik newsletter.
Diffstat (limited to 'plugins/CoreHome/templates/header_message.tpl')
-rw-r--r-- | plugins/CoreHome/templates/header_message.tpl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/header_message.tpl b/plugins/CoreHome/templates/header_message.tpl index 5e2f05136d..c4e4df0985 100644 --- a/plugins/CoreHome/templates/header_message.tpl +++ b/plugins/CoreHome/templates/header_message.tpl @@ -1,7 +1,11 @@ <span id="header_message"> {if $piwikUrl == 'http://piwik.org/demo/'} {'General_YouAreCurrentlyViewingDemoOfPiwik'|translate:"<a target='_blank' href='http://piwik.org'>Piwik</a>":"<a href='http://piwik.org/'><u>":"</u></a>":"<a href='http://piwik.org'><u>piwik.org</u></a>"} +{elseif $latest_version_available} + <img src='themes/default/images/warning_small.png' alt='' style="vertical-align: middle;"> + Piwik {$latest_version_available} is available! + <br /><a target='_blank' href='misc/redirectToUrl.php?url=http://piwik.org/docs/update/'>Please update now</a> (see <a href='misc/redirectToUrl.php?url=http://piwik.org/changelog/' target='_blank'>changes</a>). {else} - {'General_PiwikIsACollaborativeProject'|translate:"<a href='http://piwik.org'>":"$piwik_version</a>":"<br />":"<u><a href='mailto:hello@piwik.org?subject=I would like to help Piwik! Here is my idea and how I could contribute'>":"</a></u>"} + {'General_PiwikIsACollaborativeProject'|translate:"<a href='misc/redirectToUrl.php?url=http://piwik.org'>":"$piwik_version</a>":"<br />":"<u><a href='mailto:hello@piwik.org?subject=I would like to help Piwik! Here is my idea and how I could contribute'>":"</a></u>"} {/if} </span> |