1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 06:57:53 +00:00
Files
matomo/plugins/Marketplace/templates/_requestTrialNotificationEmail.twig
Stefan Giehl 075845c48a Allow users to request a premium feature trial (#22139)
* Allow users to request a trial for a premium plugin

* Update expected screenshots

* Implement plugin trial notification

* Change button if trial was already requested

* use correct notification message

* restructure code

* use DI in API

* fix possible problem with non alphanum userlogins

* code cleanup & tests

* Add UI tests for dismissable notification

* Disable trial requests when config set to -1

* disallow trial requests for super users again

* Automatically cancel/remove a plugin trial request when the plugin is installed

* test debug

* Properly clean up trial request confirmation state on close

* Use plugin display name for all trial related frontend dialogs/notifications

* use plugin display name in email

* Allow trial request from plugin details modal

* store plugin display name for notifications

* Use more resilient action/event state passing

* Update expected screenshots

* Build vue components

* don't sanitize api parameters for requestTrial

* Ensure plugin name in email is escaped

* Fix tests

* Implement hash param to trigger new plugin overlay (#22167)

* Implement hash param to trigger new plugin overlay

* Update plugins/Marketplace/vue/src/PluginList/PluginList.vue

---------

Co-authored-by: Marc Neudert <marc@innocraft.com>

* Build vue files

* Update trial request notification plugin display name expectations

---------

Co-authored-by: Marc Neudert <marc@innocraft.com>
Co-authored-by: mneudert <mneudert@users.noreply.github.com>
2024-04-29 10:34:59 +02:00

15 خطوط
871 B
Twig

{% set marketplaceLinkOpen = '<a href="' ~ marketplaceLink ~'">' %}
{% set marketplaceLinkClose = '</a>' %}
{% set pluginLinkOpen = '<a href="' ~ pluginLink ~'">' %}
{% set pluginLinkClose = '</a>' %}
<p>{{ 'General_HelloUser'|translate(login) }}</p>
<p>{{ 'Marketplace_RequestTrialNotificationEmailIntro'|translate(pluginName) }}</p>
<p>{{ 'Marketplace_RequestTrialNotificationEmailHowToStartIntro'|translate }}</p>
<ol>
<li>{{ 'Marketplace_RequestTrialNotificationEmailHowToStartStep1'|translate(marketplaceLinkOpen, marketplaceLinkClose)|raw }}</li>
<li>{{ 'Marketplace_RequestTrialNotificationEmailHowToStartStep2'|translate }}</li>
<li>{{ 'Marketplace_RequestTrialNotificationEmailHowToStartStep3'|translate }}</li>
</ol>
<p>{{ 'Marketplace_RequestTrialNotificationEmailMoreInfo'|translate(pluginName|escape, pluginLinkOpen, pluginLinkClose)|raw }}</p>