PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.2
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 5.2, at classes/views/inbox/list.php

125 lines 5.1 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_wrap" id="frm_inbox_page">
7 <div class="frm_page_container">
8 <?php
9 FrmAppHelper::get_admin_header(
10 array(
11 'label' => __( 'Inbox', 'formidable' ),
12 'publish' => array( 'FrmInboxController::dismiss_all_button', compact( 'messages' ) ),
13 )
14 );
15 ?>
16 <div id="post-body-content">
17 <div id="frm_message_list">
18 <?php
19
20 $has_messages = ! empty( $messages );
21 foreach ( $messages as $key => $message ) {
22 if ( ! isset( $message['icon'] ) ) {
23 $message['icon'] = 'frm_tooltip_icon';
24 }
25
26 ?>
27 <section class="frm_inbox_card" data-message="<?php echo esc_attr( $key ); ?>">
28 <span class="frm_inbox_card_icon" aria-hidden="true">
29 <?php FrmAppHelper::icon_by_class( 'frmfont ' . esc_attr( $message['icon'] ) ); ?>
30 </span>
31 <header>
32 <h3>
33 <?php echo esc_html( $message['subject'] ); ?>
34 </h3>
35 <span class="frm_inbox_date">
36 <?php
37 if ( ! isset( $message['read'] ) || ! isset( $message['read'][ $user->ID ] ) ) {
38 $inbox->mark_read( $key );
39 ?>
40 <span class="frm_inbox_unread"></span>
41 <?php
42 }
43
44 printf(
45 /* translators: %s: Time stamp */
46 esc_html__( '%s ago', 'formidable' ),
47 esc_html( FrmAppHelper::human_time_diff( $message['created'] ) )
48 );
49 ?>
50 </span>
51 </header>
52 <div class="frm_inbox_body">
53 <p><?php echo FrmAppHelper::kses( $message['message'], array( 'a', 'p', 'div', 'span', 'br' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
54 </div>
55 <footer>
56 <?php echo FrmAppHelper::kses( $message['cta'], array( 'a' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
57 </footer>
58 </section>
59 <?php
60 }
61 if ( $has_messages ) {
62 ?>
63 <div style="margin:20px"><?php do_action( 'frm_page_footer', array( 'table' => 'inbox' ) ); ?></div>
64 <?php
65 }
66 ?>
67 </div>
68
69 <div class="frm_no_items <?php echo esc_attr( $has_messages ? 'frm_hidden' : '' ); ?>" id="frm_empty_inbox">
70 <img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/email.jpg' ); ?>" alt="Email Address" height="202px" />
71 <h2><?php esc_html_e( 'You don\'t have any messages', 'formidable' ); ?></h2>
72 <p>
73 <?php esc_html_e( 'Get the details about new updates, tips, sales, and more. We\'ll keep you in the loop.', 'formidable' ); ?>
74 <?php esc_html_e( 'Want more news and email updates?', 'formidable' ); ?>
75 </p>
76 <style>
77 #_form_3_ { font-size:14px; line-height:1.6; font-family:arial, helvetica, sans-serif; margin:0; }
78 ._form_hide { display:none; visibility:hidden; }
79 ._form_show { display:block; visibility:visible; }
80 #_form_3_ ._form_element { position:relative; }
81 #_form_3_ input[type="text"]._has_error { border-color:#f37c7b; }
82 #_form_3_ ._error { display:block; position:absolute; font-size:14px; z-index:10000001; }
83 #_form_3_ ._error._above { padding-bottom:4px; bottom:39px; right:0; }
84 #_form_3_ ._error._below { padding-top:4px; top:100%; right:0; }
85 #_form_3_ ._error._above ._error-arrow { bottom:0; right:15px; border-left:5px solid transparent; border-right:5px solid transparent; border-top:5px solid #f37c7b; }
86 #_form_3_ ._error._below ._error-arrow { top:0; right:15px; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:5px solid #f37c7b; }
87 #_form_3_ ._error-inner { padding:8px 12px; background-color:#f37c7b; font-size:14px; font-family:arial, sans-serif; color:#fff; text-align:center; text-decoration:none; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; }
88 #_form_3_ ._error-inner._form_error { margin-bottom:5px; text-align:left; }
89 #_form_3_ ._button-wrapper ._error-inner._form_error { position:static; }
90 #_form_3_ ._error-inner._no_arrow { margin-bottom:10px; }
91 #_form_3_ ._error-arrow { position:absolute; width:0; height:0; }
92 #_form_3_ ._error-html { margin-bottom:10px; }
93 #_form_3_ { position:relative; }
94 #_form_3_:before,#_form_3_:after { content:" "; display:table; }
95 #_form_3_:after { clear:both; }
96 #_form_3_ ._form-thank-you { position:relative; left:0; right:0; text-align:center; font-size:18px; }
97 </style>
98 <form method="POST" action="https://strategy1137274.activehosted.com/proc.php" id="_form_3_" class="_form _form_3 frm-fields frm-subscribe" novalidate>
99 <input type="hidden" name="u" value="3" />
100 <input type="hidden" name="f" value="3" />
101 <input type="hidden" name="s" />
102 <input type="hidden" name="c" value="0" />
103 <input type="hidden" name="m" value="0" />
104 <input type="hidden" name="act" value="sub" />
105 <input type="hidden" name="v" value="2" />
106 <div class="_form-content">
107 <p>
108 <input type="text" name="email" value="<?php echo esc_attr( $user->user_email ); ?>" placeholder="<?php esc_attr_e( 'Type your email', 'formidable' ); ?>" required/>
109 </p>
110 <div class="_button-wrapper">
111 <button id="_form_3_submit" type="submit" class="_submit button-primary frm-button-primary">
112 <?php esc_html_e( 'Subscribe', 'formidable' ); ?>
113 </button>
114 </div>
115 <div class="_clear-element"></div>
116 </div>
117 <div class="_form-thank-you" style="display:none;"></div>
118 <?php do_action( 'frm_page_footer', array( 'table' => 'inbox' ) ); ?>
119 </form>
120 </div>
121
122 </div>
123 </div>
124 </div>
125