PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.3.1
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.3.1
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
easy-invoice / templates / admin / license-page.php

license-page.php in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.3.1, at templates/admin/license-page.php

281 lines 11.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * License Page Template
4 *
5 * Shows license information and activation form
6 *
7 * @package EasyInvoice
8 * @since 1.0.0
9 */
10
11 // Get current page
12 $current_page = $_GET['page'] ?? '';
13
14 // Check if Pro plugin wants to override the content
15 $pro_content = apply_filters('easy_invoice_license_page_content', '');
16 ?>
17
18 <div class="wrap easy-invoice-admin">
19 <div class="easy-invoice-content">
20 <?php if (!empty($pro_content)): ?>
21 <?php echo $pro_content; ?>
22 <?php else: ?>
23 <div class="free-version-card">
24 <div class="card-header">
25 <h2><?php _e('You\'re Using the Free Version', 'easy-invoice'); ?></h2>
26 <p><?php _e('No license activation required. You can continue using all free features.', 'easy-invoice'); ?></p>
27 </div>
28
29 <div class="card-content">
30 <div class="premium-features">
31 <h3><?php _e('Upgrade to Pro and Unlock These Premium Features:', 'easy-invoice'); ?></h3>
32 <div class="features-grid">
33 <div class="feature-item">
34 <div class="feature-icon">
35 <svg class="w-6 h-6" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
36 <path d="M12 1V23" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
37 <path d="M17 5H9.5C8.57174 5 7.6815 5.36875 7.02513 6.02513C6.36875 6.6815 6 7.57174 6 8.5C6 9.42826 6.36875 10.3185 7.02513 10.9749C7.6815 11.6313 8.57174 12 9.5 12H14.5C15.4283 12 16.3185 12.3687 16.9749 13.0251C17.6313 13.6815 18 14.5717 18 15.5C18 16.4283 17.6313 17.3185 16.9749 17.9749C16.3185 18.6313 15.4283 19 14.5 19H6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
38 </svg>
39 </div>
40 <div class="feature-content">
41 <h4><?php _e('Recurring Invoices', 'easy-invoice'); ?></h4>
42 <p><?php _e('Automatically generate and send recurring invoices on schedule.', 'easy-invoice'); ?></p>
43 </div>
44 </div>
45
46 <div class="feature-item">
47 <div class="feature-icon">
48 <svg class="w-6 h-6" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
49 <path d="M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
50 <path d="M14 2V8H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
51 </svg>
52 </div>
53 <div class="feature-content">
54 <h4><?php _e('Advanced PDF Customization', 'easy-invoice'); ?></h4>
55 <p><?php _e('Customize PDF templates with your branding, colors, and layout preferences.', 'easy-invoice'); ?></p>
56 </div>
57 </div>
58
59 <div class="feature-item">
60 <div class="feature-icon">
61 <svg class="w-6 h-6" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
62 <path d="M17 21V19C17 17.9391 16.5786 16.9217 15.8284 16.1716C15.0783 15.4214 14.0609 15 13 15H5C3.93913 15 2.92172 15.4214 2.17157 16.1716C1.42143 16.9217 1 17.9391 1 19V21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
63 <circle cx="9" cy="7" r="4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
64 </svg>
65 </div>
66 <div class="feature-content">
67 <h4><?php _e('Multiple Payment Gateways', 'easy-invoice'); ?></h4>
68 <p><?php _e('Accept payments via PayPal, Stripe, Square, Authorize.Net, and more.', 'easy-invoice'); ?></p>
69 </div>
70 </div>
71
72 <div class="feature-item">
73 <div class="feature-icon">
74 <svg class="w-6 h-6" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
75 <rect x="3" y="4" width="18" height="18" rx="2" ry="2" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
76 <line x1="16" y1="2" x2="16" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
77 <line x1="8" y1="2" x2="8" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
78 <line x1="3" y1="10" x2="21" y2="10" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
79 </svg>
80 </div>
81 <div class="feature-content">
82 <h4><?php _e('Partial Payments', 'easy-invoice'); ?></h4>
83 <p><?php _e('Allow customers to pay invoices in installments with flexible payment options.', 'easy-invoice'); ?></p>
84 </div>
85 </div>
86
87 <div class="feature-item">
88 <div class="feature-icon">
89 <svg class="w-6 h-6" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
90 <path d="M17 21V19C17 17.9391 16.5786 16.9217 15.8284 16.1716C15.0783 15.4214 14.0609 15 13 15H5C3.93913 15 2.92172 15.4214 2.17157 16.1716C1.42143 16.9217 1 17.9391 1 19V21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
91 <circle cx="9" cy="7" r="4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
92 <path d="M23 21V19C23 18.1137 22.6485 17.2628 22.0237 16.6425C21.3989 16.0221 20.5471 15.6722 19.66 15.6722C18.7729 15.6722 17.9211 16.0221 17.2963 16.6425C16.6715 17.2628 16.32 18.1137 16.32 19V21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
93 </svg>
94 </div>
95 <div class="feature-content">
96 <h4><?php _e('Client Portal', 'easy-invoice'); ?></h4>
97 <p><?php _e('Give clients access to view invoices, make payments, and manage their account.', 'easy-invoice'); ?></p>
98 </div>
99 </div>
100
101 <div class="feature-item">
102 <div class="feature-icon">
103 <svg class="w-6 h-6" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
104 <path d="M18 20V10" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
105 <path d="M12 20V4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
106 <path d="M6 20V14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
107 </svg>
108 </div>
109 <div class="feature-content">
110 <h4><?php _e('Advanced Reports', 'easy-invoice'); ?></h4>
111 <p><?php _e('Detailed analytics, revenue reports, and business insights.', 'easy-invoice'); ?></p>
112 </div>
113 </div>
114 </div>
115 </div>
116
117 <div class="upgrade-actions">
118 <a href="https://matrixaddons.com/plugins/easy-invoice/#free-vs-pro" target="_blank" class="upgrade-button">
119 <?php _e('Upgrade to Pro', 'easy-invoice'); ?>
120 </a>
121 </div>
122 </div>
123 </div>
124 <?php endif; ?>
125 </div>
126 </div>
127
128 <style>
129 /* License Page Styles */
130 .easy-invoice-admin {
131 max-width: 1000px;
132 margin: 0 auto;
133 padding: 20px;
134 }
135
136 .easy-invoice-content {
137 display: flex;
138 flex-direction: column;
139 gap: 30px;
140 }
141
142 /* Free Version Styles */
143 .free-version-card {
144 background: #fff;
145 border-radius: 12px;
146 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
147 overflow: hidden;
148 border: 1px solid #e5e7eb;
149 }
150
151 .free-version-card .card-header {
152 background: linear-gradient(135deg, #10b981 0%, #059669 100%);
153 color: #fff;
154 padding: 40px 30px;
155 text-align: center;
156 }
157
158 .free-version-card .card-header .header-icon {
159 font-size: 48px;
160 margin-bottom: 20px;
161 opacity: 0.9;
162 }
163
164 .free-version-card .card-header h2 {
165 margin: 0 0 15px 0;
166 font-size: 28px;
167 font-weight: 600;
168 }
169
170 .free-version-card .card-header p {
171 margin: 0;
172 font-size: 16px;
173 opacity: 0.9;
174 }
175
176 .free-version-card .card-content {
177 padding: 40px 30px;
178 }
179
180 /* Premium Features */
181 .premium-features {
182 margin-bottom: 40px;
183 }
184
185 .premium-features h3 {
186 margin: 0 0 30px 0;
187 color: #1d2327;
188 font-size: 22px;
189 font-weight: 600;
190 text-align: center;
191 }
192
193 .features-grid {
194 display: grid;
195 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
196 gap: 20px;
197 }
198
199 .feature-item {
200 display: flex;
201 align-items: flex-start;
202 gap: 15px;
203 padding: 20px;
204 background: #f8f9fa;
205 border-radius: 8px;
206 border-left: 4px solid #8b5cf6;
207 transition: all 0.2s ease;
208 }
209
210 .feature-item:hover {
211 background: #f0f0ff;
212 transform: translateY(-2px);
213 box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
214 }
215
216 .feature-icon {
217 color: #8b5cf6;
218 margin-top: 2px;
219 }
220
221 .feature-content h4 {
222 margin: 0 0 8px 0;
223 color: #1d2327;
224 font-size: 16px;
225 font-weight: 600;
226 }
227
228 .feature-content p {
229 margin: 0;
230 color: #646970;
231 font-size: 14px;
232 line-height: 1.5;
233 }
234
235 .upgrade-actions {
236 text-align: center;
237 padding: 30px 0;
238 border-top: 1px solid #e5e7eb;
239 }
240
241 .upgrade-button {
242 display: inline-block;
243 padding: 12px 24px;
244 background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
245 color: #fff;
246 text-decoration: none;
247 border-radius: 8px;
248 font-weight: 600;
249 font-size: 16px;
250 transition: all 0.3s ease;
251 box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
252 }
253
254 .upgrade-button:hover {
255 transform: translateY(-1px);
256 box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
257 color: #fff;
258 }
259
260 /* Responsive Design */
261 @media (max-width: 768px) {
262 .features-grid {
263 grid-template-columns: 1fr;
264 }
265
266 .upgrade-card .card-header,
267 .free-version-card .card-header {
268 padding: 30px 20px;
269 }
270
271 .upgrade-card .card-content,
272 .free-version-card .card-content {
273 padding: 30px 20px;
274 }
275
276 .upgrade-button {
277 padding: 10px 20px;
278 font-size: 14px;
279 }
280 }
281 </style>