PluginProbe ʕ •ᴥ•ʔ
Email Encoder – Protect Email Addresses and Phone Numbers / 2.5.3
Email Encoder – Protect Email Addresses and Phone Numbers v2.5.3
2.5.3 2.5.2 2.5.1 2.5.0 2.4.8 trunk 0.10 0.11 0.12 0.20 0.21 0.22 0.30 0.31 0.32 0.40 0.41 0.42 0.50 0.60 0.70 0.71 0.80 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.5 1.5.2 1.51 1.53 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.10 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7
email-encoder-bundle / templates / eeb-page-display.php
email-encoder-bundle / templates Last commit date
help-tabs 4 months ago widgets 3 months ago eeb-page-display.php 3 months ago index.php 7 months ago
eeb-page-display.php
107 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3
4 $mulsitie_slug = ( is_multisite() ) ? 'network/' : '';
5
6 ?>
7
8 <div class="wrap eeb-wrap">
9
10 <div class="eeb-page-header">
11 <div class="eeb-brand">
12 <div class="eeb-brand-logo">
13 <img src="<?php echo esc_url( EEB_PLUGIN_URL . 'assets/img/icon-email-encoder.svg' ); ?>" alt="" />
14 </div>
15 <div class="eeb-brand-meta">
16 <h1>
17 <?php esc_html_e( 'Email Encoder', 'email-encoder-bundle' ); ?>
18 <span class="eeb-brand-version">v<?php echo esc_html( EEB_VERSION ); ?></span>
19 </h1>
20 <p><?php esc_html_e( 'by EDMON', 'email-encoder-bundle' ); ?></p>
21 </div>
22 </div>
23
24 <?php $support_text = ( new \OnlineOptimisation\EmailEncoderBundle\Admin\SupportExport() )->generate(); ?>
25 <div class="eeb-header-actions">
26 <a href="https://wpemailencoder.com/email-protection-checker/"
27 target="_blank" rel="noopener"
28 class="eeb-action-btn">
29 <span class="dashicons dashicons-search"></span>
30 <span class="eeb-tooltip-text"><?php esc_html_e( 'Email Protection Checker', 'email-encoder-bundle' ); ?></span>
31 </a>
32 <a href="https://www.wpemailencoder.com/help-files/"
33 target="_blank" rel="noopener"
34 class="eeb-action-btn">
35 <span class="dashicons dashicons-book"></span>
36 <span class="eeb-tooltip-text"><?php esc_html_e( 'Documentation', 'email-encoder-bundle' ); ?></span>
37 </a>
38 <a href="http://wordpress.org/support/plugin/email-encoder-bundle#postform"
39 target="_blank" rel="noopener"
40 class="eeb-action-btn">
41 <span class="dashicons dashicons-welcome-comments"></span>
42 <span class="eeb-tooltip-text"><?php esc_html_e( 'Report a Problem', 'email-encoder-bundle' ); ?></span>
43 </a>
44 <a href="#"
45 id="eeb-copy-support-info"
46 class="eeb-action-btn"
47 data-support-text="<?php echo esc_attr( $support_text ); ?>">
48 <span class="dashicons dashicons-clipboard"></span>
49 <span class="eeb-tooltip-text"><?php esc_html_e( 'Copy Support Info', 'email-encoder-bundle' ); ?></span>
50 </a>
51 <a href="http://wordpress.org/support/view/plugin-reviews/email-encoder-bundle"
52 target="_blank" rel="noopener"
53 class="eeb-action-btn eeb-action-btn--review">
54 <span class="dashicons dashicons-star-filled"></span>
55 <span class="eeb-tooltip-text"><?php esc_html_e( 'Leave a review', 'email-encoder-bundle' ); ?></span>
56 </a>
57 </div>
58 </div>
59
60 <?php
61 // .wp-header-end is the WP-core marker that stops `common.js` from
62 // hoisting `.notice` elements next to the first <h1> on the page —
63 // which was injecting save banners into our header.
64 ?>
65 <div class="wp-header-end"></div>
66
67 <?php if ( ! empty( $display_notices ) ) :
68 // Render save banners as a Divi-style centered toast (icon-only)
69 // instead of a top-of-page strip. Detect status from the helper's
70 // `notice notice-{type}` class so the icon + tint match.
71 $first_notice = (string) reset( $display_notices );
72 $toast_status = 'info';
73 if ( strpos( $first_notice, 'notice-success' ) !== false ) {
74 $toast_status = 'success';
75 } elseif ( strpos( $first_notice, 'notice-error' ) !== false ) {
76 $toast_status = 'error';
77 } elseif ( strpos( $first_notice, 'notice-warning' ) !== false ) {
78 $toast_status = 'warning';
79 }
80 $toast_icons = [
81 'success' => 'yes',
82 'error' => 'no-alt',
83 'warning' => 'warning',
84 'info' => 'info',
85 ];
86 ?>
87 <div class="eeb-save-toast" data-status="<?php echo esc_attr( $toast_status ); ?>" role="status" aria-live="polite">
88 <span class="dashicons dashicons-<?php echo esc_attr( $toast_icons[ $toast_status ] ); ?>"></span>
89 </div>
90 <?php endif; ?>
91
92 <form method="post" action="">
93 <?php
94 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- settings_fields() is a WordPress core function that outputs safe HTML.
95 settings_fields( $this->getPageName() );
96 ?>
97 <input type="hidden" name="<?php echo esc_attr( $this->getPageName() ); ?>_nonce" value="<?php echo esc_attr( wp_create_nonce( $this->getPageName() ) ); ?>">
98
99 <div class="eeb-layout">
100 <div class="eeb-main">
101 <?php include( 'widgets/main.php' ); ?>
102 </div>
103 </div>
104 </form>
105
106 </div>
107