PluginProbe
Accessibility by AllAccessible / trunk
Accessibility by AllAccessible vtrunk
2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.6 trunk 1.0 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 All 43 releases
allaccessible / inc / FeatureComparison.php

FeatureComparison.php in Accessibility by AllAccessible trunk, at inc/FeatureComparison.php

113 lines 7.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Feature Comparison Table
4 *
5 * Shows free vs paid features to drive conversions
6 *
7 * @package AllAccessible
8 * @since 2.0.0
9 */
10
11 if (!defined('ABSPATH')) {
12 die('You are not allowed to call this page directly.');
13 }
14
15 /**
16 * Render feature comparison table
17 *
18 * Parent screen (SettingsPage.php) already opens an `.aacx-v2` namespace
19 * wrapper, so this partial renders inside that context.
20 *
21 * @param string $addon_url URL to addon/billing page
22 */
23 function aacb_render_feature_comparison($addon_url) {
24 ?>
25 <div class="aacx-v2__card aacx-v2__card--elevated aacx-v2__card--featured" style="margin-bottom: var(--aacx-space-6);">
26 <div class="aacx-v2__card-header" style="justify-content: center;">
27 <h2 style="text-align: center;">
28 <?php _e('Compare Plans', 'allaccessible'); ?>
29 </h2>
30 </div>
31 <div class="aacx-v2__card-body">
32 <div style="overflow-x: auto;">
33 <table class="aacx-v2__table">
34 <thead>
35 <tr>
36 <th>
37 <?php _e('Feature', 'allaccessible'); ?>
38 </th>
39 <th style="text-align: center;">
40 <?php _e('Free', 'allaccessible'); ?>
41 </th>
42 <th style="text-align: center; background: var(--aacx-primary-50); color: var(--aacx-primary-700);">
43 <?php _e('Starter', 'allaccessible'); ?>
44 </th>
45 <th style="text-align: center; background: var(--aacx-ai-50); color: var(--aacx-ai-700);">
46 <?php _e('Enterprise', 'allaccessible'); ?>
47 </th>
48 </tr>
49 </thead>
50 <tbody>
51 <tr>
52 <td><?php _e('Accessibility Widget', 'allaccessible'); ?></td>
53 <td style="text-align: center;"><span style="color: var(--aacx-ok-600); font-size: var(--aacx-text-xl);" aria-label="<?php esc_attr_e('Included', 'allaccessible'); ?>"></span></td>
54 <td style="text-align: center; background: var(--aacx-primary-50);"><span style="color: var(--aacx-ok-600); font-size: var(--aacx-text-xl);" aria-label="<?php esc_attr_e('Included', 'allaccessible'); ?>"></span></td>
55 <td style="text-align: center; background: var(--aacx-ai-50);"><span style="color: var(--aacx-ok-600); font-size: var(--aacx-text-xl);" aria-label="<?php esc_attr_e('Included', 'allaccessible'); ?>"></span></td>
56 </tr>
57 <tr>
58 <td><?php _e('Monthly Pageviews', 'allaccessible'); ?></td>
59 <td style="text-align: center; color: var(--aacx-text-muted); font-weight: var(--aacx-weight-semibold);">1,000</td>
60 <td style="text-align: center; background: var(--aacx-primary-50); color: var(--aacx-primary-700); font-weight: var(--aacx-weight-bold);">10,000</td>
61 <td style="text-align: center; background: var(--aacx-ai-50); color: var(--aacx-ai-700); font-weight: var(--aacx-weight-bold);"><?php esc_html_e('Unlimited', 'allaccessible'); ?></td>
62 </tr>
63 <tr>
64 <td>
65 <span class="aacx-v2__ai-badge"><?php _e('AI Image Alt Text', 'allaccessible'); ?></span>
66 </td>
67 <td style="text-align: center;"><?php esc_html_e('10 preview', 'allaccessible'); ?></td>
68 <td style="text-align: center; background: var(--aacx-primary-50); color: var(--aacx-primary-700); font-weight: var(--aacx-weight-bold);"><?php esc_html_e('Unlimited', 'allaccessible'); ?></td>
69 <td style="text-align: center; background: var(--aacx-ai-50); color: var(--aacx-ai-700); font-weight: var(--aacx-weight-bold);"><?php esc_html_e('Unlimited', 'allaccessible'); ?></td>
70 </tr>
71 <tr>
72 <td><?php _e('Compliance Audits', 'allaccessible'); ?></td>
73 <td style="text-align: center;"><span style="color: var(--aacx-slate-400);" aria-label="<?php esc_attr_e('Not included', 'allaccessible'); ?>"></span></td>
74 <td style="text-align: center; background: var(--aacx-primary-50); color: var(--aacx-primary-700);"><?php _e('Monthly', 'allaccessible'); ?></td>
75 <td style="text-align: center; background: var(--aacx-ai-50); color: var(--aacx-ai-700); font-weight: var(--aacx-weight-bold);"><?php _e('Weekly', 'allaccessible'); ?></td>
76 </tr>
77 <tr>
78 <td><?php _e('Widget Customization', 'allaccessible'); ?></td>
79 <td style="text-align: center;"><span style="color: var(--aacx-slate-400);" aria-label="<?php esc_attr_e('Not included', 'allaccessible'); ?>"></span></td>
80 <td style="text-align: center; background: var(--aacx-primary-50);"><span style="color: var(--aacx-ok-600); font-size: var(--aacx-text-xl);" aria-label="<?php esc_attr_e('Included', 'allaccessible'); ?>"></span></td>
81 <td style="text-align: center; background: var(--aacx-ai-50);"><span style="color: var(--aacx-ok-600); font-size: var(--aacx-text-xl);" aria-label="<?php esc_attr_e('Included', 'allaccessible'); ?>"></span></td>
82 </tr>
83 <tr>
84 <td><?php _e('VPAT Reports', 'allaccessible'); ?></td>
85 <td style="text-align: center;"><span style="color: var(--aacx-slate-400);" aria-label="<?php esc_attr_e('Not included', 'allaccessible'); ?>"></span></td>
86 <td style="text-align: center; background: var(--aacx-primary-50);"><span style="color: var(--aacx-slate-400);" aria-label="<?php esc_attr_e('Not included', 'allaccessible'); ?>"></span></td>
87 <td style="text-align: center; background: var(--aacx-ai-50);"><span style="color: var(--aacx-ok-600); font-size: var(--aacx-text-xl);" aria-label="<?php esc_attr_e('Included', 'allaccessible'); ?>"></span></td>
88 </tr>
89 <tr>
90 <td><?php _e('Priority Support', 'allaccessible'); ?></td>
91 <td style="text-align: center;"><span style="color: var(--aacx-slate-400);" aria-label="<?php esc_attr_e('Not included', 'allaccessible'); ?>"></span></td>
92 <td style="text-align: center; background: var(--aacx-primary-50);"><span style="color: var(--aacx-ok-600); font-size: var(--aacx-text-xl);" aria-label="<?php esc_attr_e('Included', 'allaccessible'); ?>"></span></td>
93 <td style="text-align: center; background: var(--aacx-ai-50); color: var(--aacx-ai-700); font-weight: var(--aacx-weight-bold);"><?php _e('Dedicated', 'allaccessible'); ?></td>
94 </tr>
95 </tbody>
96 </table>
97 </div>
98
99 <div style="margin-top: var(--aacx-space-6); text-align: center;">
100 <a href="<?php echo esc_url($addon_url); ?>"
101 target="_blank"
102 class="aacx-v2__btn aacx-v2__btn--primary aacx-v2__btn--lg">
103 <?php _e('Upgrade Plan', 'allaccessible'); ?>
104 <svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
105 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
106 </svg>
107 </a>
108 </div>
109 </div>
110 </div>
111 <?php
112 }
113