PluginProbe ʕ •ᴥ•ʔ
Email Encoder – Protect Email Addresses and Phone Numbers / 2.2.0
Email Encoder – Protect Email Addresses and Phone Numbers v2.2.0
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 / core / includes / partials / help-tabs / shortcodes.php
email-encoder-bundle / core / includes / partials / help-tabs Last commit date
general.php 2 years ago shortcodes.php 2 years ago template-tags.php 2 years ago
shortcodes.php
34 lines
1 <?php
2 $allowed_attr_html = EEB()->settings->get_safe_html_attr();
3 ?>
4 <h3><?php echo __( 'Shortcodes', 'email-encoder-bundle' ); ?></h3>
5 <p><?php echo __( 'You can protect those addresses using the following shortcode. Everything you add within these both tags, will be checked for emails automatically.', 'email-encoder-bundle' ); ?></p>
6 <p><code>[eeb_protect_emails protect_using="with_javascript"][/eeb_protect_emails]</code>
7 </p>
8 <p><?php echo __( 'Create a protected mailto link:', 'email-encoder-bundle' ); ?></p>
9 <p><code>[eeb_mailto email="info@myemail.com" extra_attrs="target='_blank'" method="rot13" display="Custom Text"]</code></p>
10 <p><?php echo __( 'For security reasons, we only allow specific HTML tags within the display arguments. You will find a full list below.', 'email-encoder-bundle' ); ?></p>
11 <p><?php echo __( 'You can also protect phone numbers and any kind of text by using the following shortcode:', 'email-encoder-bundle' ); ?></p>
12 <p><code>[eeb_protect_content protection_text="I am a noscript text" method="rot13" do_shortcode="yes"]My Email[/eeb_protect_content]</code></p>
13 <p><?php echo __( 'Display the encoder form', 'email-encoder-bundle' ); ?></p>
14 <p><code>[eeb_form]</code></p>
15 <p><strong><?php echo __( 'Allowed HTML attributes + arguments', 'email-encoder-bundle' ); ?></strong>
16 <?php
17 echo '<ul>';
18
19 foreach ($allowed_attr_html as $tag => $attributes) {
20 echo '<li><strong>' . htmlentities( '<' . $tag . '>' ) . '</strong>: ';
21
22 if (!empty($attributes)) {
23 echo trim( implode( ', ', array_keys( $attributes ) ), ', ' );
24 } else {
25 echo 'n/a';
26 }
27
28 echo '</li>';
29 }
30
31 echo '</ul>';
32 ?>
33 </p>
34