PluginProbe
CryptX / 4.0.1
CryptX v4.0.1
4.2.1 4.2.0 4.1.1 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.9 2.0 2.1 2.2 2.3 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 All 93 releases
cryptx / templates / admin / tabs / changelog.php

changelog.php in CryptX 4.0.1, at templates/admin/tabs/changelog.php

175 lines 5.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2 <?php
3 /**
4 * CryptX Changelog Settings Tab Template
5 *
6 * @var array $changelogs Array of changelog entries
7 */
8
9 if (!defined('ABSPATH')) {
10 exit;
11 }
12 ?>
13
14 <div class="cryptx-tab-content cryptx-changelog-settings">
15 <table class="form-table">
16 <!-- Header Section -->
17 <tr>
18 <th colspan="2">
19 <h3 style="margin: 20px 0 10px 0; padding: 10px 0; border-bottom: 1px solid #ddd;">
20 <?php esc_html_e('CryptX Changelog', 'cryptx'); ?>
21 </h3>
22 <p class="description">
23 <?php esc_html_e('View the complete history of CryptX updates, improvements, and bug fixes.', 'cryptx'); ?>
24 </p>
25 </th>
26 </tr>
27
28 <?php if (empty($changelogs)): ?>
29 <!-- No Changelog Available -->
30 <tr>
31 <th scope="row"><?php esc_html_e('Status', 'cryptx'); ?></th>
32 <td>
33 <div class="notice notice-warning inline">
34 <p>
35 <span class="dashicons dashicons-warning" style="color: #f56e28;"></span>
36 <?php esc_html_e('No changelog information available. The readme.txt file may be missing or corrupted.', 'cryptx'); ?>
37 </p>
38 </div>
39 </td>
40 </tr>
41 <?php else: ?>
42 <!-- Changelog Entries -->
43 <?php foreach ($changelogs as $index => $changelog): ?>
44 <tr>
45 <th scope="row" style="vertical-align: top; width: 150px;">
46 <div class="cryptx-version-badge">
47 <strong><?php echo esc_html($changelog['version']); ?></strong>
48 </div>
49 </th>
50 <td>
51 <div class="cryptx-changelog-content">
52 <?php if (!empty($changelog['items'])): ?>
53 <ul class="cryptx-changelog-list">
54 <?php foreach ($changelog['items'] as $item): ?>
55 <li><?php echo wp_kses_post($item); ?></li>
56 <?php endforeach; ?>
57 </ul>
58 <?php else: ?>
59 <p class="description"><?php esc_html_e('No details available for this version.', 'cryptx'); ?></p>
60 <?php endif; ?>
61 </div>
62 </td>
63 </tr>
64
65 <?php if ($index < count($changelogs) - 1): ?>
66 <!-- Separator between versions -->
67 <tr>
68 <td colspan="2" style="padding: 0;">
69 <hr style="margin: 15px 0; border: none; border-top: 1px solid #f0f0f0;">
70 </td>
71 </tr>
72 <?php endif; ?>
73 <?php endforeach; ?>
74
75 <!-- Footer Information -->
76 <tr>
77 <th colspan="2">
78 <div style="margin-top: 30px; padding-top: 20px; border-top: 1px solid #ddd;">
79 <p class="description" style="text-align: center; font-style: italic;">
80 <?php
81 printf(
82 esc_html__('Showing %d version entries. For complete documentation, visit the %s.', 'cryptx'),
83 count($changelogs),
84 '<a href="https://wordpress.org/plugins/cryptx/" target="_blank">' . esc_html__('WordPress Plugin Directory', 'cryptx') . '</a>'
85 );
86 ?>
87 </p>
88 </div>
89 </th>
90 </tr>
91 <?php endif; ?>
92 </table>
93 </div>
94
95 <style>
96 .cryptx-changelog-settings .cryptx-version-badge {
97 background: #0073aa;
98 color: white;
99 padding: 8px 12px;
100 border-radius: 4px;
101 font-size: 13px;
102 font-weight: 600;
103 display: inline-block;
104 min-width: 80px;
105 text-align: center;
106 box-shadow: 0 1px 3px rgba(0,0,0,0.1);
107 }
108
109 .cryptx-changelog-settings .cryptx-changelog-content {
110 margin-left: 0;
111 }
112
113 .cryptx-changelog-settings .cryptx-changelog-list {
114 margin: 0;
115 padding-left: 20px;
116 list-style: none;
117 }
118
119 .cryptx-changelog-settings .cryptx-changelog-list li {
120 position: relative;
121 margin-bottom: 8px;
122 padding-left: 20px;
123 line-height: 1.5;
124 color: #555;
125 }
126
127 .cryptx-changelog-settings .cryptx-changelog-list li:before {
128 content: "";
129 color: #0073aa;
130 font-weight: bold;
131 position: absolute;
132 left: 0;
133 top: 0;
134 }
135
136 .cryptx-changelog-settings .cryptx-changelog-list li:last-child {
137 margin-bottom: 0;
138 }
139
140 .cryptx-changelog-settings .notice.inline {
141 margin: 0;
142 padding: 12px;
143 }
144
145 .cryptx-changelog-settings .notice.inline .dashicons {
146 float: left;
147 margin-right: 8px;
148 margin-top: 2px;
149 }
150
151 .cryptx-changelog-settings .form-table th {
152 padding-right: 20px;
153 }
154
155 .cryptx-changelog-settings .form-table td {
156 padding-left: 20px;
157 }
158
159 /* Responsive adjustments */
160 @media (max-width: 782px) {
161 .cryptx-changelog-settings .cryptx-version-badge {
162 margin-bottom: 10px;
163 }
164
165 .cryptx-changelog-settings .form-table th {
166 width: auto !important;
167 padding-right: 10px;
168 }
169
170 .cryptx-changelog-settings .form-table td {
171 padding-left: 10px;
172 }
173 }
174 </style>
175