class-eeb-admin.php
7 years ago
class-eeb-site.php
7 years ago
deprecated.php
7 years ago
template-functions.php
7 years ago
deprecated.php
65 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Deprecated template Functions |
| 4 | * |
| 5 | * @package Email_Encoder_Bundle |
| 6 | * @category WordPress Plugins |
| 7 | */ |
| 8 | |
| 9 | // this is an include only WP file |
| 10 | if (!defined('ABSPATH')) { |
| 11 | die; |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Template function for encoding email |
| 16 | * |
| 17 | * @deprecated |
| 18 | * |
| 19 | * @global Eeb_Site $Eeb_Site |
| 20 | * @param string $email |
| 21 | * @param string $display if non given will be same as email |
| 22 | * @param string $method Optional, else the default setted method will; be used |
| 23 | * @param string $extra_attrs Optional |
| 24 | * @return string |
| 25 | */ |
| 26 | if (!function_exists('encode_email')): |
| 27 | function encode_email($email, $display = null, $method = null, $extra_attrs = '') { |
| 28 | return eeb_email($email, $display, $extra_attrs, $method); |
| 29 | } |
| 30 | endif; |
| 31 | |
| 32 | /** |
| 33 | * Template function for encoding content |
| 34 | * |
| 35 | * @deprecated |
| 36 | * |
| 37 | * @global Eeb_Site $Eeb_Site |
| 38 | * @param string $content |
| 39 | * @param string $method Optional, default null |
| 40 | * @return string |
| 41 | */ |
| 42 | if (!function_exists('encode_content')): |
| 43 | function encode_content($content, $method = null) { |
| 44 | return eeb_content($content, $method); |
| 45 | } |
| 46 | endif; |
| 47 | |
| 48 | /** |
| 49 | * Template function for encoding emails in the given content |
| 50 | * |
| 51 | * @deprecated |
| 52 | * |
| 53 | * @global Eeb_Site $Eeb_Site |
| 54 | * @param string $content |
| 55 | * @param boolean $enc_tags Optional, default true |
| 56 | * @param boolean $enc_mailtos Optional, default true |
| 57 | * @param boolean $enc_plain_emails Optional, default true |
| 58 | * @return string |
| 59 | */ |
| 60 | if (!function_exists('encode_email_filter')): |
| 61 | function encode_email_filter($content, $enc_tags = true, $enc_mailtos = true, $enc_plain_emails = true) { |
| 62 | return eeb_email_filter($content, $enc_tags, $enc_mailtos, $enc_plain_emails); |
| 63 | } |
| 64 | endif; |
| 65 |