← All changes
|
includes/extensions/Fomo_Notifications/templates/admin-wizard.php
+27
-6
51.1.44
→
51.1.87
View file →
| @@ -173,9 +173,9 @@ | ||
| 173 | 173 | <div class="kng-fomo-wizard-content"> |
| 174 | 174 | <div class="kng-fomo-wizard-section"> |
| 175 | 175 | <h3 class="kng-fomo-wizard-section-title"><?php esc_html_e('Notification Name', 'king-addons'); ?></h3> |
| 176 | 176 | <div class="kng-fomo-field"> |
| 177 | - <input type="text" class="kng-fomo-input" data-field="title" data-section="content" placeholder="<?php esc_attr_e('e.g., Recent Sales Popup', 'king-addons'); ?>"> | |
| 177 | + <input type="text" class="kng-fomo-input" id="kng-fomo-notif-name" data-field="name" placeholder="<?php esc_attr_e('e.g., Recent Sales Popup', 'king-addons'); ?>"> | |
| 178 | 178 | </div> |
| 179 | 179 | </div> |
| 180 | 180 | |
| 181 | 181 | <div class="kng-fomo-wizard-section"> |
| @@ -378,16 +378,21 @@ | ||
| 378 | 378 | <div class="kng-fomo-wizard-panel" data-step="3"> |
| 379 | 379 | <div class="kng-fomo-wizard-content"> |
| 380 | 380 | <div class="kng-fomo-wizard-section"> |
| 381 | 381 | <h3 class="kng-fomo-wizard-section-title"><?php esc_html_e('Notification Content', 'king-addons'); ?></h3> |
| 382 | + <div class="kng-fomo-content-auto-hint" style="background: #f0f7ff; border: 1px solid #c8dff7; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: #1d4f8e; display: none;"> | |
| 383 | + <strong><?php esc_html_e('Tip:', 'king-addons'); ?></strong> | |
| 384 | + <span class="kng-fomo-content-hint-text"><?php esc_html_e('Templates are auto-filled for your notification type. Customize below or leave as-is.', 'king-addons'); ?></span> | |
| 385 | + </div> | |
| 382 | 386 | <div class="kng-fomo-field"> |
| 383 | - <label class="kng-fomo-label"><?php esc_html_e('Title', 'king-addons'); ?></label> | |
| 384 | - <input type="text" class="kng-fomo-input" data-field="title" data-section="content" placeholder="<?php esc_attr_e('{{name}} just purchased', 'king-addons'); ?>"> | |
| 385 | - <p class="kng-fomo-field-help"><?php esc_html_e('Available placeholders: {{name}}, {{product}}, {{location}}, {{time}}', 'king-addons'); ?></p> | |
| 387 | + <label class="kng-fomo-label"><?php esc_html_e('Title Template', 'king-addons'); ?></label> | |
| 388 | + <input type="text" class="kng-fomo-input" data-field="title" data-section="content" placeholder="<?php esc_attr_e('{{name}}', 'king-addons'); ?>"> | |
| 389 | + <p class="kng-fomo-field-help"><?php esc_html_e('Placeholders: {{name}}, {{product}}, {{location}}, {{time}}, {{content}}, {{email}}, {{downloads}}, {{active_installs}}', 'king-addons'); ?></p> | |
| 386 | 390 | </div> |
| 387 | 391 | <div class="kng-fomo-field"> |
| 388 | - <label class="kng-fomo-label"><?php esc_html_e('Message', 'king-addons'); ?></label> | |
| 389 | - <textarea class="kng-fomo-textarea" data-field="message" data-section="content" placeholder="<?php esc_attr_e('{{product}} from {{location}}', 'king-addons'); ?>"></textarea> | |
| 392 | + <label class="kng-fomo-label"><?php esc_html_e('Message Template', 'king-addons'); ?></label> | |
| 393 | + <textarea class="kng-fomo-textarea" data-field="message" data-section="content" placeholder="<?php esc_attr_e('just purchased {{product}}', 'king-addons'); ?>"></textarea> | |
| 394 | + <p class="kng-fomo-field-help"><?php esc_html_e('Use {{placeholders}} to show dynamic data from each entry', 'king-addons'); ?></p> | |
| 390 | 395 | </div> |
| 391 | 396 | </div> |
| 392 | 397 | |
| 393 | 398 | <div class="kng-fomo-wizard-section"> |
| @@ -461,8 +466,24 @@ | ||
| 461 | 466 | <div class="kng-fomo-field"> |
| 462 | 467 | <label class="kng-fomo-label"><?php esc_html_e('Max Per Session', 'king-addons'); ?></label> |
| 463 | 468 | <input type="number" class="kng-fomo-input" data-field="max_per_session" data-section="display" value="5" min="1" max="50"> |
| 464 | 469 | <p class="kng-fomo-field-help"><?php esc_html_e('Maximum notifications to show per visitor session', 'king-addons'); ?></p> |
| 470 | + </div> | |
| 471 | + <div class="kng-fomo-field-row"> | |
| 472 | + <div class="kng-fomo-field"> | |
| 473 | + <label style="display: flex; align-items: center; gap: 12px;"> | |
| 474 | + <input type="checkbox" data-field="loop" data-section="display" checked> | |
| 475 | + <span class="kng-fomo-label" style="margin: 0;"><?php esc_html_e('Loop Notifications', 'king-addons'); ?></span> | |
| 476 | + </label> | |
| 477 | + <p class="kng-fomo-field-help"><?php esc_html_e('Restart from the beginning after showing all entries', 'king-addons'); ?></p> | |
| 478 | + </div> | |
| 479 | + <div class="kng-fomo-field"> | |
| 480 | + <label style="display: flex; align-items: center; gap: 12px;"> | |
| 481 | + <input type="checkbox" data-field="random" data-section="display"> | |
| 482 | + <span class="kng-fomo-label" style="margin: 0;"><?php esc_html_e('Random Order', 'king-addons'); ?></span> | |
| 483 | + </label> | |
| 484 | + <p class="kng-fomo-field-help"><?php esc_html_e('Show entries in random order instead of sequential', 'king-addons'); ?></p> | |
| 485 | + </div> | |
| 465 | 486 | </div> |
| 466 | 487 | </div> |
| 467 | 488 | |
| 468 | 489 | <div class="kng-fomo-wizard-section"> |