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