shortcodes.php
13 lines
| 1 | <h3><?php echo __( 'Shortcodes', 'email-encoder-bundle' ); ?></h3> |
| 2 | <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> |
| 3 | <p><code>[eeb_protect_emails protect_using="with_javascript"]…[/eeb_protect_emails]</code> |
| 4 | </p> |
| 5 | <p><?php echo __( 'Create a protected mailto link:', 'email-encoder-bundle' ); ?></p> |
| 6 | <p><code>[eeb_mailto email="info@myemail.com" extra_attrs="target='_blank'" method="rot13" display="Custom Text"]</code> |
| 7 | </p> |
| 8 | <p><?php echo __( 'You can also protect phone numbers and any kind of text by using the following shortcode:', 'email-encoder-bundle' ); ?></p> |
| 9 | <h4><code>[eeb_protect_content protection_text="I am a noscript text" method="rot13"]My Email[/eeb_protect_content]</code></h4> |
| 10 | <p><?php echo __( 'Display the encoder form', 'email-encoder-bundle' ); ?></p> |
| 11 | <p><code>[eeb_form]</code> |
| 12 | </p> |
| 13 |