update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -1,14 +1,14 @@
|
|||
<div id="piwik-promo">
|
||||
<div id="piwik-promo-video">
|
||||
<div id="piwik-promo-thumbnail">
|
||||
<img src="plugins/Zeitgeist/images/video_play.png"/>
|
||||
<img src="plugins/Morpheus/images/video_play.png"/>
|
||||
</div>
|
||||
|
||||
<div id="piwik-promo-embed" style="display:none;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a id="piwik-promo-videos-link" href="http://piwik.org/blog/2012/12/piwik-how-to-videos/" target="_blank">
|
||||
<a id="piwik-promo-videos-link" href="http://piwik.org/blog/2012/12/piwik-how-to-videos/" rel="noreferrer" target="_blank">
|
||||
{{ 'CoreHome_ViewAllPiwikVideoTutorials'|translate }}
|
||||
</a>
|
||||
|
||||
|
|
@ -16,18 +16,18 @@
|
|||
<span>{{ 'CoreHome_ShareThis'|translate }}:</span>
|
||||
|
||||
{# facebook #}
|
||||
<a href="http://www.facebook.com/sharer.php?u={{ promoVideoUrl|url_encode }}" target="_blank">
|
||||
<a href="http://www.facebook.com/sharer.php?u={{ promoVideoUrl|url_encode }}" rel="noreferrer" target="_blank">
|
||||
<img src="plugins/Referrers/images/socials/facebook.com.png" />
|
||||
</a>
|
||||
|
||||
{# twitter #}
|
||||
<a href="http://twitter.com/share?text={{ shareText|url_encode }}&url={{ promoVideoUrl|url_encode }}" target="_blank">
|
||||
<a href="http://twitter.com/share?text={{ shareText|url_encode }}&url={{ promoVideoUrl|url_encode }}" rel="noreferrer" target="_blank">
|
||||
<img src="plugins/Referrers/images/socials/twitter.com.png" />
|
||||
</a>
|
||||
|
||||
{# email #}
|
||||
<a href="mailto:?body={{ shareTextLong|url_encode(true) }}&subject={{ shareText|url_encode(true) }}" target="_blank">
|
||||
<img src="plugins/Zeitgeist/images/email.png" />
|
||||
<img src="plugins/Morpheus/images/email.png" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
@ -35,3 +35,18 @@
|
|||
|
||||
<div id="piwik-widget-footer" style="color:#666;">{{ 'CoreHome_CloseWidgetDirections'|translate }}</div>
|
||||
</div>
|
||||
|
||||
<script type="application/javascript">
|
||||
$(function () {
|
||||
$('#piwik-promo-thumbnail').click(function () {
|
||||
var promoEmbed = $('#piwik-promo-embed'),
|
||||
widgetWidth = $(this).closest('.widgetContent').width(),
|
||||
height = (266 * widgetWidth) / 421,
|
||||
embedHtml = '<iframe width="100%" height="' + height + '" src="https://www.youtube-nocookie.com/embed/OslfF_EH81g?autoplay=1&vq=hd720&wmode=transparent" frameborder="0" wmode="Opaque"></iframe>';
|
||||
|
||||
$(this).hide();
|
||||
promoEmbed.height(height).html(embedHtml);
|
||||
promoEmbed.show();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue