PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.11.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.11.1
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
ablocks / vendor / storeengine / wordpress-sdk / views / insights-deactivation-reasons.php

insights-deactivation-reasons.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.11.1, at vendor/storeengine/wordpress-sdk/views/insights-deactivation-reasons.php

93 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @var SE_License_SDK_Insights $this
4 * @var array $reasons
5 * @var array $dataCollectionList Plain-language list of data points sent when the user opts in.
6 * @var string $serverHost License/feedback server host (e.g. store.kodezen.com).
7 * @var string $privacyPolicyUrl Vendor privacy policy URL (may be empty).
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13 ?>
14 <div class="se-sdk-deactivation-modal--wrap reason">
15 <div class="se-sdk-deactivation-modal--header">
16 <h3>
17 <?php if ( $this->client->getProductLogo() ) { ?>
18 <img height="32" src="<?php echo esc_attr( $this->client->getProductLogo() ); ?>" alt="<?php echo esc_attr( $this->client->getPackageName() ); ?>">
19 <?php } ?>
20 <?php esc_html_e( 'Quick Feedback', 'storeengine-sdk' ); ?>
21 </h3>
22 <a href="javascript:void 0;" class="se-sdk-deactivation-modal--close" aria-label="<?php esc_attr_e( 'Close', 'storeengine-sdk' ); ?>">
23 <svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
24 <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path>
25 </svg>
26 </a>
27 </div>
28 <div class="se-sdk-deactivation-modal--body">
29 <div class="feedback-message">
30 <?php printf(
31 __( 'If you have a moment, please let us know why you are deactivating %s.', 'storeengine-sdk' ),
32 '<strong>' . esc_html( $this->client->getPackageName() ) . '</strong>',
33 ); ?>
34 </div>
35 <?php if ( ! empty( $showSupportTicket ) && ! empty( $this->supportURL ) ) { ?>
36 <div class="se-sdk-deactivation-modal--open-ticket">
37 <span><?php esc_html_e( 'If you face any issues, please create a support ticket', 'storeengine-sdk' ); ?></span>
38 <a class="open-ticket-link" href="<?php echo esc_url( $this->supportURL ); ?>" target="_blank" rel="noopener noreferrer">
39 <?php esc_html_e( 'Open a Ticket', 'storeengine-sdk' ); ?>
40 <svg width="6" height="10" viewBox="0 0 6 10" fill="none" xmlns="http://www.w3.org/2000/svg">
41 <path d="M0.528636 0.528636C0.788986 0.268287 1.211 0.268287 1.47134 0.528636L5.47134 4.52864C5.73169 4.78899 5.73169 5.211 5.47134 5.47134L1.47134 9.47134C1.211 9.7317 0.788986 9.7317 0.528636 9.47134C0.268287 9.211 0.268287 8.78899 0.528636 8.52864L4.05728 4.99999L0.528636 1.47134C0.268287 1.211 0.268287 0.788986 0.528636 0.528636Z"/>
42 </svg>
43 </a>
44 </div>
45 <?php } ?>
46 <ul class="reasons">
47 <?php foreach ( $reasons as $reason ) { ?>
48 <li class="reason-item" data-type="<?php echo esc_attr( $reason['type'] ); ?>" data-placeholder="<?php echo esc_attr( $reason['placeholder'] ); ?>">
49 <label>
50 <input class="reason-type" type="radio" name="<?php echo esc_attr( $this->client->getSlug() ); ?>-selected-reason" value="<?php echo esc_attr( $reason['id'] ); ?>"> <?php echo esc_html( $reason['text'] ); ?>
51 </label>
52 </li>
53 <?php } ?>
54 </ul>
55
56 <div class="se-sdk-deactivation-modal--consent">
57 <details class="se-sdk-consent-details">
58 <summary class="se-sdk-consent-summary"><?php esc_html_e( 'What data do we collect?', 'storeengine-sdk' ); ?></summary>
59 <div class="se-sdk-consent-content">
60 <p class="se-sdk-consent-intro">
61 <?php
62 printf(
63 /* translators: %s: server host name, e.g. store.kodezen.com */
64 esc_html__( 'When you click "Submit & Deactivate", your selected reason and the following information about your site are sent to %s to help us improve the plugin:', 'storeengine-sdk' ),
65 '<strong>' . esc_html( $serverHost ) . '</strong>'
66 );
67 ?>
68 </p>
69 <ul class="se-sdk-consent-list">
70 <?php foreach ( $dataCollectionList as $dataPoint ) { ?>
71 <li><?php echo esc_html( $dataPoint ); ?></li>
72 <?php } ?>
73 </ul>
74 <p class="se-sdk-consent-note">
75 <?php esc_html_e( 'Prefer not to share this? Choose "Skip & Deactivate" and nothing is sent.', 'storeengine-sdk' ); ?>
76 <?php if ( ! empty( $privacyPolicyUrl ) ) { ?>
77 <a href="<?php echo esc_url( $privacyPolicyUrl ); ?>" target="_blank" rel="noopener noreferrer">
78 <?php esc_html_e( 'Privacy Policy', 'storeengine-sdk' ); ?>
79 </a>
80 <?php } ?>
81 </p>
82 </div>
83 </details>
84 </div>
85
86 </div>
87 <div class="se-sdk-deactivation-modal--footer">
88 <button class="button send-reason"><?php esc_html_e( 'Submit & Deactivate', 'storeengine-sdk' ); ?></button>
89 <button class="button button-link dont-bother-me"><?php esc_html_e( 'Skip & Deactivate', 'storeengine-sdk' ); ?></button>
90 </div>
91 </div>
92 <?php
93