PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.12
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.12
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / inbox / list.php

list.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.12, at classes/views/inbox/list.php

73 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6 <div class="frm-inbox-wrapper">
7 <div class="frm-tabs-navs">
8 <ul class="frm-flex-box">
9 <li class="frm-active">
10 <?php
11 esc_html_e( 'Inbox', 'formidable' );
12 echo wp_kses_post( FrmInboxController::get_notice_count( false ) );
13 ?>
14 </li>
15 <li><?php esc_html_e( 'Dismissed', 'formidable' ); ?></li>
16 </ul>
17 </div>
18 <div class="frm-tabs-delimiter">
19 <span class="frm-tabs-active-underline"></span>
20 </div>
21 <div class="frm-tabs-container">
22 <div class="frm-tabs-slide-track frm-flex-box">
23 <?php foreach ( $template as $key => $template_item ) : ?>
24 <?php if ( in_array( $key, array( 'unread', 'dismissed' ), true ) ) : ?>
25 <?php $tab_classname = 'dismissed' === $key ? 'frm-dismissed-inbox-messages' : ''; ?>
26
27 <div class="frm-scrollbar-wrapper <?php echo 'unread' === $key ? 'frm-active' : ''; ?>">
28 <div class="<?php echo esc_attr( $tab_classname ); ?>">
29 <?php if ( 'unread' === $key ) : ?>
30 <div id="frm_empty_inbox" class="<?php echo esc_attr( $subscribe_inbox_classnames ); ?>">
31 <?php
32 FrmAppController::api_email_form(
33 'subscribe',
34 __( 'You don\'t have any new messages', 'formidable' ),
35 __( 'Get the details about new updates, tips, sales, and more. We\'ll keep you in the loop.', 'formidable' )
36 );
37 ?>
38 <button id="frm-add-my-email-address" class="button-primary frm-button-primary"><?php esc_html_e( 'Subscribe', 'formidable' ); ?></button>
39 </div>
40 <?php endif; ?>
41
42 <?php foreach ( $template_item as $tab_key => $message ) : ?>
43 <div class="frm-inbox-message-container frm-flex-col" data-message="<?php echo esc_attr( $tab_key ); ?>" >
44 <div class="frm-inbox-message-heading frm-flex-box frm-justify-between">
45 <div class="frm-flex-col">
46 <span>
47 <?php
48 printf(
49 /* translators: %s: Time stamp */
50 esc_html__( '%s ago', 'formidable' ),
51 esc_html( FrmAppHelper::human_time_diff( $message['created'] ) )
52 );
53 ?>
54 </span>
55 <h3><?php echo esc_html( $message['subject'] ); ?></h3>
56 </div>
57 <?php if ( 'unread' === $key ) : ?>
58 <a href="#" class="frm_inbox_dismiss"><?php esc_html_e( 'Dismiss', 'formidable' ); ?></a>
59 <?php endif; ?>
60 </div>
61 <p><?php echo wp_kses_post( $message['message'] ); ?></p>
62 <?php echo wp_kses( $message['cta'], array( 'a' => array( 'href' => true ) ) ); ?>
63 </div>
64 <?php endforeach; ?>
65
66 </div>
67 </div>
68 <?php endif; ?>
69 <?php endforeach; ?>
70 </div>
71 </div>
72 </div>
73