PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 2.3.1
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v2.3.1
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / views / modal-payment.php

modal-payment.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 2.3.1, at views/modal-payment.php

125 lines 7.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
3 ?>
4 <div id="imagify-pricing-modal" class="imagify-modal imagify-payment-modal hide-if-no-js" aria-hidden="false" role="dialog">
5 <div class="imagify-modal-content">
6 <div class="imagify-modal-main">
7 <?php
8 /**
9 * SECOND MODAL VIEW.
10 */
11 ?>
12
13 <div class="imagify-modal-views imagify-plans-selection-view" id="imagify-plans-selection-view" aria-hidden="true">
14 <p class="imagify-modal-title"><?php esc_html_e( 'Choose the Perfect Plan for Your Needs', 'imagify' ); ?></p>
15 <div class="imagify-tabs-contents">
16 <div class="imagify-tab-content imagify-current" id="imagify-pricing-tab-monthly" role="tabpanel">
17 <div class="imagify-modal-section">
18 <p><?php esc_html_e( 'Pick the plan that fits your image optimization goals and unlock the full potential of Imagify!', 'imagify' ); ?></p>
19 </div>
20 <?php $this->print_template( 'part-settings-discount-banner' ); ?>
21 <div class="imagify-toggle-container">
22 <span class="imagify-toggle-label">Monthly</span>
23 <label class="imagify-switch">
24 <input type="checkbox" id="imagify-toggle-plan" checked>
25 <span class="imagify-slider"></span>
26 </label>
27 <span class="imagify-toggle-label">Yearly</span>
28 <div class="imagify-arrow-container">
29 <img src="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2765%27 height=%2729%27 fill=%27none%27%3E%3Cpath fill=%27%23B8BFC5%27 d=%27M1.566 14.504a.5.5 0 0 0-.562.43l-.594 4.46a.5.5 0 1 0 .99.133l.53-3.965 3.964.528a.5.5 0 0 0 .133-.99l-4.46-.596Zm40.077-1.475.495-.07-.495.07ZM64.5 1a.5.5 0 0 0-1 0h1ZM32.616 13.054l-.47.17.47-.17Zm-31.513 2.25C7.708 23.94 18.576 28.252 27.473 28c4.45-.125 8.465-1.395 11.202-3.904 2.758-2.527 4.158-6.255 3.463-11.138l-.99.141c.654 4.599-.664 7.983-3.148 10.26-2.505 2.295-6.258 3.52-10.555 3.642-8.6.243-19.153-3.942-25.548-12.305l-.794.608Zm41.035-2.346c-.413-2.903-1.816-4.72-3.496-5.83l-.551.833c1.448.957 2.685 2.526 3.057 5.138l.99-.14Zm-9.992.267c1.477 4.073 4.263 6.62 7.615 7.806 3.338 1.18 7.203 1 10.855-.299C57.919 18.135 64.5 11.018 64.5 1h-1c0 9.537-6.257 16.314-13.219 18.79-3.48 1.238-7.105 1.388-10.187.298-3.067-1.085-5.632-3.41-7.008-7.204l-.94.34Zm6.496-6.098c-1.925-1.272-3.97-.785-5.3.538-1.316 1.308-1.962 3.45-1.197 5.56l.94-.341c-.624-1.723-.095-3.46.962-4.51 1.042-1.036 2.568-1.388 4.044-.413l.551-.834Z%27/%3E%3C/svg%3E" />
30 <img src="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2766%27 height=%2729%27 fill=%27none%27%3E%3Cpath fill=%27%238BC34A%27 d=%27M2.632 14.009a1 1 0 0 0-1.123.859l-1.19 8.92a1 1 0 0 0 1.983.265l1.057-7.93 7.93 1.058a1 1 0 1 0 .264-1.983l-8.92-1.19Zm40.01-.98.99-.141-.99.14ZM66 1a1 1 0 1 0-2 0h2ZM33.616 13.054l-.94.341.94-.34Zm-31.91 2.553c6.71 8.775 17.736 13.149 26.78 12.893 4.528-.128 8.673-1.42 11.527-4.035 2.894-2.652 4.335-6.552 3.62-11.577l-1.98.282c.634 4.456-.643 7.669-2.991 9.82-2.389 2.189-6.01 3.392-10.232 3.511-8.451.239-18.846-3.883-25.136-12.109l-1.588 1.216Zm41.927-2.719c-.434-3.05-1.92-4.991-3.715-6.178l-1.103 1.668c1.332.88 2.487 2.325 2.838 4.792l1.98-.282Zm-10.958.507c1.529 4.213 4.425 6.871 7.92 8.107 3.466 1.226 7.45 1.03 11.188-.299C59.257 18.546 66 11.258 66 1h-2c0 9.296-6.095 15.904-12.887 18.319-3.394 1.207-6.899 1.342-9.852.297-2.925-1.034-5.38-3.248-6.705-6.903l-1.88.682Zm7.243-6.685c-2.15-1.421-4.454-.866-5.929.6-1.446 1.438-2.149 3.782-1.313 6.085l1.88-.682c-.555-1.529-.083-3.063.844-3.985.898-.893 2.164-1.176 3.415-.35l1.103-1.668Z%27/%3E%3C/svg%3E" />
31 </div>
32 <div class="imagify-badge-container">
33 <span class="imagify-badge">2 MONTHS FREE</span>
34 </div>
35 </div>
36
37 <div class="imagify-pricing-table imagify-year-selected" id="imagify_all_plan_view">
38
39 <script type="text/html" id="imagify-offer-monthly-template"><div class="imagify-offer-line imagify-offer-monthlies imagify-flex-table">
40 <div class="imagify-col-details imagify-col-label">
41 <p class="imagify-label-plans"></p>
42 </div>
43 <div class="imagify-col-details">
44 <p>
45 <span class="imagify-the-offer">
46 <span class="imagify-offer-size"></span>
47 <span class="imagify-offer-by"><?php esc_html_e( '/month', 'imagify' ); ?></span>
48 </span>
49 <span class="imagify-approx">
50 <?php
51 printf(
52 /* translators: %s is a formatted number (don't use %d). */
53 esc_html__( 'approx: %s images', 'imagify' ),
54 '<span class="imagify-approx-nb"></span>'
55 );
56 ?>
57 </span>
58 </p>
59 </div>
60 <div class="imagify-col-price imagify-flex-table">
61 <span class="imagify-price-block">
62 <span class="imagify-dollars">$</span>
63 <span class="imagify-number-block">
64 <span class="imagify-switch-my"></span>
65 </span>
66 <span class="imagify-price-by"><?php esc_html_e( '/month', 'imagify' ); ?></span>
67 </span>
68
69 <span class="imagify-recommend" aria-hidden="true"><?php esc_html_e( 'We recommend for you', 'imagify' ); ?></span>
70
71 <p class="imagify-price-complement">
72 <?php echo esc_html__( 'Unlimited upload size', 'imagify' ); ?>
73 <br />
74 <?php echo esc_html__( 'Unlimited websites', 'imagify' ); ?>
75 <br />
76 <span class="imagify-price-add-data"></span>
77 </p>
78
79 </div><!-- .imagify-col-price -->
80 <div class="imagify-col-other-actions imagify-choose-plan-col">
81 <button type="button" class="button imagify-button-secondary mini imagify-payment-btn-select-plan"><?php esc_html_e( 'Choose plan', 'imagify' ); ?></button>
82 </div>
83 </div><!-- .imagify-offer-line --></script>
84 </div><!-- .imagify-pricing-table -->
85 <p class="imagify-footer-lines">You can upgrade, downgrade or cancel your plan at any time!</p>
86 </div><!-- .imagify-tab-content -->
87 </div><!-- .imagify-tabs-contents -->
88 </div><!-- .imagify-plans-selection-view -->
89
90
91 <?php
92 /**
93 * THIRD MODAL VIEW.
94 */
95 ?>
96
97 <div class="imagify-modal-views imagify-payment-process-view" id="imagify-payment-process-view" aria-hidden="true">
98
99 <iframe data-imagify-api="<?php echo esc_attr( get_imagify_option( 'api_key' ) ); ?>" id="imagify-payment-iframe" data-src="<?php echo esc_url( imagify_get_external_url( 'payment' ) ); ?>" name="imagify-payment-iframe"></iframe>
100
101 </div><!-- .imagify-modal-views -->
102
103 <?php
104 /**
105 * SUCCESS VIEW.
106 */
107 ?>
108
109 <div class="imagify-modal-views imagify-success-view" id="imagify-success-view" aria-hidden="true">
110 <img src="<?php echo esc_url( IMAGIFY_ASSETS_IMG_URL ); ?>big-blue-check.png" width="113" height="109" alt="">
111 <p><?php esc_html_e( 'Thank you for being awesome!', 'imagify' ); ?></p>
112 </div><!-- .imagify-modal-views -->
113
114 <button class="close-btn" type="button">
115 <i aria-hidden="true" class="dashicons dashicons-no-alt"></i>
116 <span class="screen-reader-text"><?php esc_html_e( 'Close', 'imagify' ); ?></span>
117 </button>
118
119 </div><!-- .imagify-modal-main -->
120
121 <div class="imagify-modal-loader"></div>
122 </div><!-- .imagify-modal-content-->
123 </div><!-- .imagify-payment-modal -->
124 <?php
125