Changeset 3753360
- Timestamp:
- 10/18/2026 05:01:04 PM (5 weeks ago)
- Location:
- stedica-surveys/trunk
- Files:
-
- 5 edited
-
admin/class-stedica-admin.php (modified) (2 diffs)
-
assets/css/stedica-admin.css (modified) (1 diff)
-
changelog.txt (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
stedica-surveys.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stedica-surveys/trunk/admin/class-stedica-admin.php
r3738617 r3753360 1256 1256 $total_answers = (int) $wpdb->get_var( "SELECT COUNT(*) FROM {$answers_table}" ); 1257 1257 1258 echo '<div class="wrap">'; 1259 self::render_page_heading( 'Stedica Surveys' ); 1260 echo '<p>Retail Execution Intelligence Platform for dynamic surveys, field audits, analytics, and AI-assisted execution workflows.</p>'; 1258 echo '<div class="wrap stedica-dashboard-wrap">'; 1259 $this->dashboard_hero(); 1261 1260 1262 1261 echo '<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:24px 0;">'; … … 1486 1485 } 1487 1486 1487 $this->dashboard_footer(); 1488 1489 echo '</div>'; 1490 } 1491 1492 /** 1493 * Dashboard hero banner. 1494 * 1495 * Deliberately mirrors the banner Stedica SEO renders at the top of its own 1496 * admin home page, so a site running both plugins sees one family rather 1497 * than two unrelated products. 1498 * 1499 * The copy describes what this package actually ships. It replaced 1500 * "Retail Execution Intelligence Platform", which named one vertical and 1501 * did not match how the plugin is described on WordPress.org — the same 1502 * early-retail assumption that left hard-coded KPI column names in the 1503 * results table until 5.16.6. 1504 * 1505 * @since 5.16.7 1506 */ 1507 private function dashboard_hero() { 1508 1509 $icon_url = defined( 'STEDICA_SURVEYS_URL' ) 1510 ? STEDICA_SURVEYS_URL . 'assets/img/stedica-surveys-icon.svg' 1511 : ''; 1512 1513 $version = defined( 'STEDICA_SURVEYS_VERSION' ) ? STEDICA_SURVEYS_VERSION : ''; 1514 1515 $pills = array( 1516 __( '17 Question Types', 'stedica-surveys' ), 1517 __( 'Conditional Logic', 'stedica-surveys' ), 1518 __( 'Offline Capture', 'stedica-surveys' ), 1519 __( 'GPS & Photo', 'stedica-surveys' ), 1520 __( 'Charts, NPS & Cross-Tab', 'stedica-surveys' ), 1521 __( 'CSV & Excel Export', 'stedica-surveys' ), 1522 __( 'Shortcode, Block & Elementor', 'stedica-surveys' ), 1523 __( 'Email & Webhooks', 'stedica-surveys' ), 1524 ); 1525 1526 echo '<div class="ssv-hero"><div class="ssv-hero-inner">'; 1527 1528 echo '<div class="ssv-hero-brand">'; 1529 if ( '' !== $icon_url ) { 1530 echo '<img src="' . esc_url( $icon_url ) . '" alt="" class="ssv-hero-icon" />'; 1531 } 1532 echo '<div>'; 1533 echo '<div class="ssv-hero-eyebrow">' . esc_html__( 'WordPress Plugin', 'stedica-surveys' ) . '</div>'; 1534 echo '<h1 class="ssv-hero-title">Stedica <span class="ssv-red">' . esc_html__( 'Surveys', 'stedica-surveys' ) . '</span></h1>'; 1535 if ( '' !== $version ) { 1536 /* translators: %s: plugin version number. */ 1537 echo '<p class="ssv-hero-version">' . esc_html( sprintf( __( 'Version %s', 'stedica-surveys' ), $version ) ) . '</p>'; 1538 } 1539 echo '</div></div>'; 1540 1541 echo '<div class="ssv-hero-content">'; 1542 echo '<h2 class="ssv-hero-headline">' . esc_html__( 'Surveys Built For The Field.', 'stedica-surveys' ) 1543 . '<br><span class="ssv-red">' . esc_html__( 'They Keep Working Offline.', 'stedica-surveys' ) . '</span></h2>'; 1544 echo '<p class="ssv-hero-sub">' . esc_html__( 'Drag questions into sections, add show/hide logic, and publish with a shortcode, a block or an Elementor widget. Answers save as they are given, and when the connection drops they queue on the device and sync when it returns.', 'stedica-surveys' ) . '</p>'; 1545 1546 echo '<div class="ssv-hero-pills">'; 1547 foreach ( $pills as $pill ) { 1548 echo '<span class="ssv-pill">' . esc_html( $pill ) . '</span>'; 1549 } 1550 echo '</div>'; 1551 1552 echo '<div class="ssv-hero-cta">'; 1553 echo '<a class="ssv-btn ssv-btn-primary" href="' . esc_url( admin_url( 'admin.php?page=stedica-surveys-add' ) ) . '">' 1554 . esc_html__( 'Create Survey', 'stedica-surveys' ) . '</a>'; 1555 echo '<a class="ssv-btn ssv-btn-outline" href="' . esc_url( admin_url( 'admin.php?page=stedica-surveys-all' ) ) . '">' 1556 . esc_html__( 'All Surveys', 'stedica-surveys' ) . '</a>'; 1557 echo '</div>'; 1558 1559 echo '</div></div></div>'; 1560 } 1561 1562 /** 1563 * Dashboard footer strip. Same navy block as the hero, closing the page. 1564 * 1565 * @since 5.16.7 1566 */ 1567 private function dashboard_footer() { 1568 1569 $icon_url = defined( 'STEDICA_SURVEYS_URL' ) 1570 ? STEDICA_SURVEYS_URL . 'assets/img/stedica-surveys-icon.svg' 1571 : ''; 1572 1573 $version = defined( 'STEDICA_SURVEYS_VERSION' ) ? STEDICA_SURVEYS_VERSION : ''; 1574 1575 echo '<div class="ssv-footer">'; 1576 1577 echo '<div class="ssv-footer-brand">'; 1578 if ( '' !== $icon_url ) { 1579 echo '<img src="' . esc_url( $icon_url ) . '" alt="" width="24" height="24" style="border-radius:50%;vertical-align:middle" />'; 1580 } 1581 echo '<strong>' . esc_html__( 'Stedica Surveys', 'stedica-surveys' ) . '</strong>'; 1582 if ( '' !== $version ) { 1583 echo ' v' . esc_html( $version ); 1584 } 1585 echo '</div>'; 1586 1587 echo '<div class="ssv-footer-links">'; 1588 echo '<a href="https://wordpress.stedica.com" target="_blank" rel="noopener">wordpress.stedica.com</a>'; 1589 echo '<span>·</span>'; 1590 echo '<a href="' . esc_url( admin_url( 'admin.php?page=stedica-surveys-all' ) ) . '">' . esc_html__( 'All Surveys', 'stedica-surveys' ) . '</a>'; 1591 echo '<span>·</span>'; 1592 echo '<a href="' . esc_url( admin_url( 'admin.php?page=stedica-surveys-results' ) ) . '">' . esc_html__( 'Results', 'stedica-surveys' ) . '</a>'; 1593 echo '<span>·</span>'; 1594 echo '<a href="https://wordpress.org/plugins/stedica-surveys/" target="_blank" rel="noopener">' . esc_html__( 'Leave a review', 'stedica-surveys' ) . '</a>'; 1595 echo '</div>'; 1596 1488 1597 echo '</div>'; 1489 1598 } -
stedica-surveys/trunk/assets/css/stedica-admin.css
r3738617 r3753360 163 163 body[class*="stedica-surveys"] .stedica-starter-desc { font-size: 13px; color: #50575e; } 164 164 body[class*="stedica-surveys"] .stedica-starter-meta { font-size: 12px; color: #787c82; } 165 166 /* ============================================================================ 167 * Dashboard hero + footer 168 * ---------------------------------------------------------------------------- 169 * Mirrors the banner Stedica SEO puts at the top of its own admin home page, so 170 * the two plugins read as one family when a site runs both. 171 * 172 * Prefixed ssv- rather than SEO's sh-. The two stylesheets only load on their 173 * own screens so a clash is unlikely, but identical class names across sibling 174 * plugins is the kind of thing that stops being unlikely the moment someone 175 * enqueues one of them globally. 176 * 177 * Colours are stated literally rather than via --sh-* custom properties: those 178 * are defined in the SEO plugin's stylesheet, and inheriting them here would 179 * make this banner render correctly only while that plugin happens to be 180 * installed. 181 * ========================================================================== */ 182 183 body[class*="stedica-surveys"] .ssv-hero { 184 background: #121330; 185 border-radius: 6px; 186 margin: 16px 0 28px; 187 overflow: hidden; 188 box-shadow: 0 2px 4px rgba(18,19,48,.05), 0 8px 20px -8px rgba(18,19,48,.12); 189 position: relative; 190 /* Beat sibling admin notices without outranking WordPress's own chrome: 191 #adminmenuwrap is 9990 and paints its fly-out submenus inside that 192 context, so a large z-index here would open them behind the banner. */ 193 z-index: 1; 194 isolation: isolate; 195 } 196 197 body[class*="stedica-surveys"] .ssv-hero::before { 198 content: ''; 199 position: absolute; 200 top: -60px; right: -60px; 201 width: 320px; height: 320px; 202 border-radius: 50%; 203 background: radial-gradient(circle, rgba(237,41,57,.18) 0%, transparent 70%); 204 pointer-events: none; 205 } 206 207 body[class*="stedica-surveys"] .ssv-hero-inner { 208 display: flex; 209 flex-wrap: wrap; 210 gap: 28px; 211 align-items: flex-start; 212 padding: 40px 44px 30px; 213 } 214 215 body[class*="stedica-surveys"] .ssv-hero-brand { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; } 216 217 body[class*="stedica-surveys"] .ssv-hero-icon { 218 width: 72px; height: 72px; 219 /* The Stedica mark is a banded circle, so the glow follows the circle. 220 A 6px radius here left the shadow tracing a rounded square around a 221 round icon, with four empty navy corners inside it. */ 222 border-radius: 50%; 223 box-shadow: 0 4px 16px rgba(237,41,57,.35); 224 flex-shrink: 0; 225 } 226 227 body[class*="stedica-surveys"] .ssv-hero-eyebrow { 228 font-size: .72rem; 229 text-transform: uppercase; 230 letter-spacing: .1em; 231 color: rgba(255,255,255,.55); 232 margin-bottom: 4px; 233 } 234 235 body[class*="stedica-surveys"] .ssv-hero-title { 236 font-size: 2rem; 237 font-weight: 800; 238 color: #fff; 239 margin: 0; 240 line-height: 1; 241 letter-spacing: -.022em; 242 } 243 244 body[class*="stedica-surveys"] .ssv-hero-version { font-size: .72rem; color: rgba(255,255,255,.4); margin: 4px 0 0; } 245 246 body[class*="stedica-surveys"] .ssv-red { color: #ed2939; } 247 248 body[class*="stedica-surveys"] .ssv-hero-content { flex: 1 1 320px; } 249 250 body[class*="stedica-surveys"] .ssv-hero-headline { 251 font-size: 1.55rem; 252 font-weight: 700; 253 color: #fff; 254 line-height: 1.3; 255 margin: 0 0 12px; 256 letter-spacing: -.022em; 257 } 258 259 body[class*="stedica-surveys"] .ssv-hero-sub { 260 color: rgba(255,255,255,.72); 261 font-size: .95rem; 262 line-height: 1.6; 263 max-width: 560px; 264 margin: 0 0 18px; 265 } 266 267 body[class*="stedica-surveys"] .ssv-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; } 268 269 body[class*="stedica-surveys"] .ssv-pill { 270 background: rgba(255,255,255,.08); 271 border: 1px solid rgba(255,255,255,.14); 272 color: rgba(255,255,255,.82); 273 border-radius: 6px; 274 padding: 3px 12px; 275 font-size: .78rem; 276 white-space: nowrap; 277 } 278 279 body[class*="stedica-surveys"] .ssv-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; } 280 281 body[class*="stedica-surveys"] .ssv-btn { 282 display: inline-flex; 283 align-items: center; 284 gap: 6px; 285 padding: 10px 22px; 286 border-radius: 6px; 287 font-size: .92rem; 288 font-weight: 600; 289 text-decoration: none !important; 290 cursor: pointer; 291 transition: background .15s, transform .1s; 292 border: 2px solid transparent; 293 } 294 body[class*="stedica-surveys"] .ssv-btn-primary { background: #ed2939; color: #fff !important; border-color: #ed2939; } 295 body[class*="stedica-surveys"] .ssv-btn-primary:hover { background: #c41f2e; border-color: #c41f2e; color: #fff !important; } 296 body[class*="stedica-surveys"] .ssv-btn-outline { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); } 297 body[class*="stedica-surveys"] .ssv-btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: #fff !important; } 298 299 /* ---- Footer -------------------------------------------------------------- */ 300 body[class*="stedica-surveys"] .ssv-footer { 301 display: flex; 302 justify-content: space-between; 303 align-items: center; 304 flex-wrap: wrap; 305 gap: 12px; 306 padding: 18px 24px; 307 background: #121330; 308 border-radius: 6px; 309 margin-top: 24px; 310 } 311 312 body[class*="stedica-surveys"] .ssv-footer-brand { 313 color: rgba(255,255,255,.8); 314 font-size: .85rem; 315 display: flex; 316 align-items: center; 317 gap: 8px; 318 } 319 320 body[class*="stedica-surveys"] .ssv-footer-links { 321 display: flex; 322 gap: 12px; 323 align-items: center; 324 font-size: .82rem; 325 color: rgba(255,255,255,.4); 326 } 327 body[class*="stedica-surveys"] .ssv-footer-links a { color: rgba(255,255,255,.65) !important; text-decoration: none; transition: color .15s; } 328 body[class*="stedica-surveys"] .ssv-footer-links a:hover { color: #ed2939 !important; } 329 330 @media screen and (max-width: 782px) { 331 body[class*="stedica-surveys"] .ssv-hero-inner { padding: 28px 22px 22px; gap: 20px; } 332 body[class*="stedica-surveys"] .ssv-hero-icon { width: 56px; height: 56px; } 333 body[class*="stedica-surveys"] .ssv-hero-title { font-size: 1.6rem; } 334 body[class*="stedica-surveys"] .ssv-hero-headline { font-size: 1.25rem; } 335 body[class*="stedica-surveys"] .ssv-footer { flex-direction: column; align-items: flex-start; } 336 } -
stedica-surveys/trunk/changelog.txt
r3742502 r3753360 5 5 6 6 == Changelog == 7 8 = 5.16.7 = 9 10 Dashboard hero banner and footer. 11 12 page_dashboard() opened with a plain heading and a line describing the plugin as 13 a "Retail Execution Intelligence Platform" — one vertical, and not how it is 14 described on WordPress.org. That is the same early-retail assumption that left 15 hard-coded KPI column names in the results table until 5.16.6. 16 17 It is replaced by dashboard_hero(): product mark, eyebrow, title, version, 18 headline, description, feature pills and two calls to action, on the navy ground 19 Stedica SEO uses for the same banner. dashboard_footer() closes the page with a 20 matching strip carrying the version and a few links. 21 22 The CSS is prefixed ssv- rather than SEO's sh-, and states its colours literally 23 instead of inheriting --sh-* custom properties, which are defined in the SEO 24 plugin's stylesheet and would only resolve while that plugin is installed. Every 25 new rule is scoped to body[class*="stedica-surveys"], matching the contract 26 stated at the top of assets/css/stedica-admin.css. 27 28 No database change, no new setting, no change to any respondent-facing page. 7 29 8 30 = 5.16.6 = -
stedica-surveys/trunk/readme.txt
r3742502 r3753360 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.0 7 Stable tag: 5.16. 67 Stable tag: 5.16.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 236 236 == Changelog == 237 237 238 = 5.16.7 = 239 Adds a banner and footer to the plugin's Dashboard screen, matching the one 240 Stedica SEO uses, so the two plugins read as one family on a site running both. 241 The dashboard intro copy now describes the plugin as it is listed on 242 WordPress.org rather than naming a single industry. Presentation only. 243 238 244 = 5.16.6 = 239 245 Fixes the per-session scorecard table on the Results screen. Its columns were a -
stedica-surveys/trunk/stedica-surveys.php
r3742502 r3753360 4 4 * Plugin URI: https://stedica.com 5 5 * Description: Drag-and-drop survey builder: 17 question types including photo upload, conditional logic, offline answer queueing, a results dashboard, and CSV and Excel export. 6 * Version: 5.16. 66 * Version: 5.16.7 7 7 * Author: Stedica 8 8 * Requires at least: 6.4 … … 48 48 } 49 49 50 define( 'STEDICA_SURVEYS_VERSION', '5.16. 6' );50 define( 'STEDICA_SURVEYS_VERSION', '5.16.7' ); 51 51 define( 'STEDICA_SURVEYS_DB_VERSION', '3.5.0' ); 52 52 define( 'STEDICA_SURVEYS_FILE', __FILE__ );
Note:
See TracChangeset
for help on using the changeset viewer.