diff options
author | Kate Butler <kate@innocraft.com> | 2019-06-18 03:56:56 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2019-06-18 03:56:56 +0300 |
commit | 3cdce09b6b27fa8378b2b7eec55760f3aa04951d (patch) | |
tree | 952131d791611f27703de9704056276a26b8a7ba | |
parent | d26139c15d24339dee3cbf2c9d131419403813ec (diff) |
Fix incorrect video in share links on welcome widget (#14521)
* Remove Piwik promo video on Welcome widget and replace with link to Matomo videos
* Fix image overlapping text on smaller screen widths
* Updated screenshots for dashboard welcome widget
* Update test screenshots
* Revert file permissions
* Fix incorrect share links on welcome widget
* Remove UI tests for WelcomeWidget
-rw-r--r-- | plugins/CoreHome/Widgets/GetPromoVideo.php | 2 | ||||
-rw-r--r-- | plugins/CoreHome/templates/getPromoVideo.twig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/Widgets/GetPromoVideo.php b/plugins/CoreHome/Widgets/GetPromoVideo.php index 63e4c776d0..c3f94141fe 100644 --- a/plugins/CoreHome/Widgets/GetPromoVideo.php +++ b/plugins/CoreHome/Widgets/GetPromoVideo.php @@ -37,7 +37,7 @@ class GetPromoVideo extends Widget $view = new View('@CoreHome/getPromoVideo'); $view->shareText = $this->translator->translate('CoreHome_SharePiwikShort'); $view->shareTextLong = $this->translator->translate('CoreHome_SharePiwikLong'); - $view->promoVideoUrl = 'https://www.youtube.com/watch?v=OslfF_EH81g'; + $view->promoVideoUrl = 'https://matomo.org/docs/videos/'; return $view->render(); } diff --git a/plugins/CoreHome/templates/getPromoVideo.twig b/plugins/CoreHome/templates/getPromoVideo.twig index 56e46d75ef..1918a30934 100644 --- a/plugins/CoreHome/templates/getPromoVideo.twig +++ b/plugins/CoreHome/templates/getPromoVideo.twig @@ -1,5 +1,5 @@ <div id="piwik-promo"> - <a id="piwik-promo-videos-link" href="https://matomo.org/docs/videos/" rel="noreferrer noopener" target="_blank"> + <a id="piwik-promo-videos-link" href="{{ promoVideoUrl|e('html_attr') }}" rel="noreferrer noopener" target="_blank"> <div id="piwik-promo-video"> <div id="piwik-promo-thumbnail"> <img src="plugins/CoreHome/images/promo_video_splash.jpg"/> |